/* =========================
   NAVBAR
========================= */

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    color: white;
}

.navbar-container {
    width: 92%;
    max-width: 1400px;
    margin: auto;

    height: 85px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 20px;
    font-weight: bold;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-menu a {
    color: white;
    font-size: 15px;
    transition: 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #fbbf24;
}

.member-button {
    border: 1px solid rgba(255,255,255,0.7);
    padding: 8px 16px;
    border-radius: 6px;
}

.member-button:hover {
    background: white;
    color: #1d4ed8 !important;
}

.mobile-menu {
    display: none;
    background: transparent;
    color: white;
    font-size: 25px;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 650px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background-image:
        url("../assets/img/library-bg.jpg");

    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(15, 23, 42, 0.55),
            rgba(15, 23, 42, 0.7)
        );
}

.hero-content {
    position: relative;

    max-width: 800px;

    color: white;

    padding: 100px 20px 40px;
}

.hero-subtitle {
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #fbbf24;
    font-weight: bold;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-description {
    max-width: 650px;
    margin: auto;

    font-size: 17px;

    color: #e5e7eb;
}

.hero-buttons {
    margin-top: 30px;

    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-primary,
.btn-outline {
    padding: 13px 25px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-outline {
    border: 1px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: #1d4ed8;
}


/* =========================
   SEARCH
========================= */

.search-section {
    position: relative;
    margin-top: -40px;
    z-index: 10;
}

.search-box {
    width: 75%;
    max-width: 950px;

    margin: auto;

    background: white;

    border-radius: 8px;

    padding: 8px;

    display: flex;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.15);
}

.search-box input {
    flex: 1;

    border: none;
    outline: none;

    padding: 15px;

    font-size: 16px;
}

.search-box button {
    border: none;

    background: #2563eb;
    color: white;

    padding: 0 25px;

    border-radius: 6px;

    font-size: 14px;
}


/* =========================
   GENERAL SECTION
========================= */

.collection,
.services,
.news {
    padding: 90px 6%;
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-title span,
.section-label {
    color: #2563eb;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.section-title h2 {
    font-size: 32px;
    margin: 10px 0;
}

.section-title p {
    color: #6b7280;
}


/* =========================
   CATEGORY
========================= */

.category-grid {
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.category-card {
    border: 1px solid #e5e7eb;

    padding: 30px 22px;

    text-align: center;

    border-radius: 10px;

    transition: 0.3s;

    background: white;
}

.category-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 10px 25px rgba(0,0,0,0.08);

    border-color: #2563eb;
}

.category-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

.category-card h3 {
    margin-bottom: 10px;
}

.category-card p {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 15px;
}

.category-card a {
    color: #2563eb;
    font-size: 13px;
    font-weight: bold;
}


/* =========================
   INFORMATION
========================= */

.information {
    background: #f8fafc;
    padding: 90px 6%;
}

.information-container {
    max-width: 1150px;

    margin: auto;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 70px;

    align-items: center;
}

.image-box {
    height: 350px;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #1d4ed8,
            #60a5fa
        );

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 100px;
}

.information-content h2 {
    font-size: 35px;

    line-height: 1.2;

    margin: 10px 0 20px;
}

.information-content p {
    color: #6b7280;
    margin-bottom: 15px;
}

.information-stats {
    display: flex;
    gap: 40px;

    margin-top: 30px;
}

.information-stats div {
    display: flex;
    flex-direction: column;
}

.information-stats strong {
    font-size: 25px;
    color: #2563eb;
}

.information-stats span {
    font-size: 12px;
    color: #6b7280;
}


/* =========================
   SERVICES
========================= */

.service-grid {
    max-width: 1150px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.service-card {
    text-align: center;

    padding: 30px 20px;

    border: 1px solid #e5e7eb;

    border-radius: 10px;
}

.service-card > div {
    font-size: 40px;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-card p {
    color: #6b7280;
    font-size: 13px;
}

.service-card a {
    display: inline-block;

    margin-top: 15px;

    color: #2563eb;

    font-size: 12px;

    font-weight: bold;
}


/* =========================
   NEWS
========================= */

.news {
    background: #f8fafc;
}

.news-grid {
    max-width: 1150px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.news-card {
    background: white;

    border-radius: 10px;

    overflow: hidden;

    border: 1px solid #e5e7eb;
}

.news-image {
    height: 160px;

    background:
        linear-gradient(
            135deg,
            #dbeafe,
            #bfdbfe
        );

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 60px;
}

.news-content {
    padding: 22px;
}

.news-content > span {
    color: #2563eb;

    font-size: 11px;

    font-weight: bold;
}

.news-content h3 {
    margin: 8px 0;
}

.news-content p {
    color: #6b7280;

    font-size: 13px;

    margin-bottom: 15px;
}

.news-content a {
    color: #2563eb;

    font-size: 12px;

    font-weight: bold;
}


/* =========================
   FOOTER
========================= */

.footer {
    background: #263746;

    color: #e5e7eb;

    padding-top: 65px;
}

.footer-container {
    width: 88%;
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1.5fr;

    gap: 50px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 15px;
}

.footer-brand img {
    width: 55px;
}

.footer-column p {
    color: #cbd5e1;

    font-size: 13px;
}

.footer-column h3 {
    color: white;

    margin-bottom: 18px;
}

.footer-column a {
    display: block;

    color: #cbd5e1;

    font-size: 13px;

    margin-bottom: 9px;
}

.footer-column a:hover {
    color: #60a5fa;
}

.footer-login {
    display: inline-block !important;

    margin-top: 15px;

    border: 1px solid #60a5fa;

    padding: 8px 20px;

    border-radius: 5px;

    color: #60a5fa !important;
}

.footer-bottom {
    width: 88%;
    max-width: 1200px;

    margin: 50px auto 0;

    padding: 20px 0;

    border-top: 1px solid #475569;

    font-size: 12px;

    color: #94a3b8;
}