/* ========================= */
/* GLOSSARY PAGES STYLES     */
/* ========================= */

/* Base: mantém o fundo azul da marca (o hero cobre o topo) */
body {
    background: var(--brand-blue);
}

/* ---------------------------------------- */
/* 1. SEÇÃO DE TÍTULO (HERO DO GLOSSÁRIO)   */
/* ---------------------------------------- */
.glossary-hero {
    padding: 60px 0;
    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 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 .short-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. SEÇÕES DE CONTEÚDO (PADRÃO)           */
/* ---------------------------------------- */
main section:not(.glossary-hero) {
    padding: 80px 0;
    background: white;
}

/* Alternância de fundo (começa após o hero) */
main section:nth-child(even):not(.glossary-hero) {
    background-color: var(--bg-light);
}

/* Container interno para conteúdo */
.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Títulos das seções */
main section h2 {
    font-family: "Dosis", sans-serif;
    font-weight: 600;
    color: var(--brand-blue);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

main section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--brand-yellow);
    border-radius: 2px;
}

/* Nas seções pares, a linha pode ser azul (como no seu exemplo) */
main section:nth-child(even):not(.glossary-hero) h2::after {
    background: var(--brand-blue);
}

/* Parágrafos */
main section p {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--ink-700);
}

/* Listas (bolinhas laranjas) */
main section ul {
    list-style: none;
    padding-left: 0;
    margin: 40px 0;
}

main section li {
    margin-bottom: 25px;
    padding-left: 40px;
    position: relative;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--ink-700);
}

main section li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    background: #ffaa00;
    border-radius: 50%;
}

/* Links */
main section a:not(.pattern-card a) {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    padding-bottom: 2px;
}

main section a:hover {
    color: var(--brand-blue-hero);
    border-bottom-color: #ffaa00;
}

/* Texto em negrito */
main section:not(.glossary-hero) strong {
    color: var(--brand-blue);
    font-weight: 700;
}

/* ---------------------------------------- */
/* 3. COMPONENTES ESPECÍFICOS DO GLOSSÁRIO  */
/* ---------------------------------------- */

/* ---- Strategic Patterns (cards) ---- */
.pattern-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.pattern-card {
    background: white;
    border: 1px solid #eef0ff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 26px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pattern-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--brand-yellow);
    border-radius: 2px 2px 0 0;
}

.pattern-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.pattern-card h3 {
    font-family: "Dosis", sans-serif;
    font-size: 1.4rem;
    color: var(--brand-blue);
    margin-bottom: 12px;
}

.pattern-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink-700);
    margin-bottom: 0;
}

/* ---- Real Customer Feedback (citações) ---- */
.feedback-quote {
    background: #f7f8ff;
    border-left: 4px solid var(--brand-yellow);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--ink-700);
    position: relative;
}

.feedback-quote::before {
    content: "“";
    font-size: 3rem;
    color: var(--brand-blue);
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: serif;
}

.feedback-quote p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    padding-left: 20px;
}

/* ---- Related Terms (lista de links) ---- */
.related-terms-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.related-terms-list li {
    margin-bottom: 0;
    padding-left: 0;
}

.related-terms-list li::before {
    display: none; /* remove bolinha laranja */
}

.related-terms-list a {
    display: inline-block;
    background: rgba(247, 248, 255, 0.6);
    color: var(--brand-blue);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.related-terms-list a:hover {
    background: var(--brand-blue);
    color: white;
    border-bottom: none;
}

/* ---------------------------------------- */
/* 4. RESPONSIVIDADE                        */
/* ---------------------------------------- */
@media (max-width: 768px) {
    .glossary-hero {
        padding: 40px 0;
    }

    .glossary-hero h1 {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    main section:not(.glossary-hero) {
        padding: 60px 0;
    }

    main section h2 {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }

    main section p,
    main section li {
        font-size: 1rem;
    }

    main section li {
        padding-left: 35px;
    }

    main section li::before {
        top: 8px;
        width: 8px;
        height: 8px;
    }

    .pattern-cards {
        grid-template-columns: 1fr;
    }

    .feedback-quote {
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .content-container {
        padding: 0 15px;
    }

    main section h2 {
        font-size: 1.5rem;
    }

    .glossary-hero .container {
        padding: 0 15px;
    }

    .pattern-card {
        padding: 20px;
    }
}