/* ========================= */
/* GLOSSARY INDEX PAGE STYLES */
/* ========================= */

/* Base: mantém o fundo azul da marca */
body {
    background: var(--brand-blue);
}

/* ---------------------------------------- */
/* 1. HERO SECTION                          */
/* ---------------------------------------- */
.glossary-hero {
    padding: 80px 0 60px;
    text-align: center;
    background: var(--brand-blue);
    color: white;
    position: relative;
    overflow: hidden;
}

.glossary-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(50, 58, 204, 0.95) 0%,
        rgba(42, 48, 179, 0.98) 100%
    );
    z-index: 1;
}

.glossary-hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.glossary-hero .eyebrow {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-yellow);
    margin-bottom: 16px;
    font-weight: 600;
    opacity: 0.9;
}

.glossary-hero h1 {
    font-family: "Dosis", sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--brand-yellow);
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.glossary-hero .hero-description {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* ---------------------------------------- */
/* 2. INTRO SECTION                         */
/* ---------------------------------------- */
.glossary-intro {
    padding: 80px 0 60px;
    background: white;
    text-align: center;
}

.glossary-intro .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.glossary-intro h2 {
    font-family: "Dosis", sans-serif;
    font-weight: 600;
    color: var(--brand-blue);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.glossary-intro h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--brand-yellow);
    border-radius: 2px;
}

.glossary-intro p {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--ink-700);
    max-width: 650px;
    margin: 0 auto;
}

/* ---------------------------------------- */
/* 3. GLOSSARY CLUSTER SECTIONS             */
/* ---------------------------------------- */
.glossary-cluster {
    padding: 60px 0;
    background: white;
}

.glossary-cluster:nth-child(even) {
    background-color: var(--bg-light);
}

.glossary-cluster .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.glossary-cluster h2 {
    font-family: "Dosis", sans-serif;
    font-weight: 600;
    color: var(--brand-blue);
    font-size: clamp(1.6rem, 3vw, 2rem);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 12px;
}

.glossary-cluster h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--brand-yellow);
    border-radius: 2px;
}

.glossary-cluster:nth-child(even) h2::after {
    background: var(--brand-blue);
}

.glossary-cluster > .container > p {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ink-700);
    margin-bottom: 32px;
}

/* ---- Link Grid ---- */
.glossary-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.glossary-link-grid a {
    display: block;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.95rem;
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 16px;
    background: rgba(247, 248, 255, 0.6);
    border: 1px solid #eef0ff;
    border-radius: 8px;
    transition: all 0.25s ease;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.glossary-link-grid a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--brand-yellow);
    border-radius: 0 2px 2px 0;
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.glossary-link-grid a:hover {
    background: white;
    color: var(--brand-blue-hero);
    border-color: var(--brand-yellow);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateX(3px);
}

.glossary-link-grid a:hover::before {
    transform: scaleY(1);
}

/* ---------------------------------------- */
/* 4. CTA SECTION                           */
/* ---------------------------------------- */
.glossary-cta {
    padding: 80px 0;
    background: linear-gradient(
        135deg,
        rgba(50, 58, 204, 0.95) 0%,
        rgba(42, 48, 179, 0.98) 100%
    );
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.glossary-cta .container {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.glossary-cta h2 {
    font-family: "Dosis", sans-serif;
    font-weight: 600;
    color: var(--brand-yellow);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 20px;
}

.glossary-cta p {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
    opacity: 0.95;
}

.glossary-cta .btn-primary {
    display: inline-block;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-blue);
    background: var(--brand-yellow);
    padding: 16px 40px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
}

.glossary-cta .btn-primary:hover {
    background: #ffc933;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ---------------------------------------- */
/* 5. RESPONSIVIDADE                        */
/* ---------------------------------------- */
@media (max-width: 768px) {
    .glossary-hero {
        padding: 50px 0 40px;
    }

    .glossary-hero h1 {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    .glossary-intro {
        padding: 60px 0 40px;
    }

    .glossary-cluster {
        padding: 50px 0;
    }

    .glossary-link-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px;
    }

    .glossary-link-grid a {
        font-size: 0.9rem;
        padding: 10px 14px;
    }

    .glossary-cta {
        padding: 60px 0;
    }

    .glossary-cta h2 {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }
}

@media (max-width: 480px) {
    .glossary-hero .container,
    .glossary-intro .container,
    .glossary-cluster .container,
    .glossary-cta .container {
        padding: 0 15px;
    }

    .glossary-link-grid {
        grid-template-columns: 1fr;
    }

    .glossary-cluster h2 {
        font-size: 1.4rem;
    }

    .glossary-cta .btn-primary {
        padding: 14px 32px;
        font-size: 1rem;
    }
}