/* ==========================================================================
   Blog Page — Overrides específicos
   ========================================================================== */

.blog-page .nav {
    gap: 64px;
}

/* ==========================================================================
   Blog Hero — Seção escura com título centralizado + chips de categoria
   ========================================================================== */

.blog-hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    padding: 180px 0 96px;
    /* Azul navy do Figma — mais próximo de #0f2a47/#112a48 do que do dark padrão */
    background: #0f2a47;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Padrão de fundo — grid quadriculada sutil do Figma (node 14277:22495).
   Reproduzido em CSS puro via gradients lineares: 0 bytes de imagem,
   perfeito pro Lighthouse. A máscara radial faz o grid sumir nas bordas. */
.blog-hero__overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 96px 96px;
    background-position: center top;
    /* Máscara radial: grid mais visível no centro, some suavemente nas bordas */
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}


.blog-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* ----- Texto central ----- */

.blog-hero__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.blog-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-text);
    font-weight: 400;
    font-size: 18px;
    line-height: 170%;
    letter-spacing: -0.01em;
    color: var(--color-white);
}

.blog-hero__label-line {
    display: inline-block;
    width: 71px;
    height: 0;
    border-top: 1px solid var(--color-primary);
    flex-shrink: 0;
}

.blog-hero__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 40px;
    line-height: 1.1;
    color: var(--color-white);
    max-width: 808px;
}

.blog-hero__description {
    font-family: var(--font-text);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-hero);
    max-width: 758px;
}

/* ----- Filtros (chips) ----- */

.blog-hero__filters {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.08) 100%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.blog-hero__filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: var(--color-bg-light);
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.blog-hero__filter:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
}

.blog-hero__filter--active,
.blog-hero__filter--active:hover {
    background: #1f3a5f;
    color: var(--color-white);
}

/* ----- Select mobile (dropdown nativo) -----
   Inicialmente oculto em desktop. No mobile substitui os chips. */

.blog-hero__select-wrapper {
    position: relative;
    display: none;
    width: 100%;
    max-width: 361px;
}

.blog-hero__select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding: 14px 44px 14px 16px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.3;
    color: var(--color-white);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.08) 100%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.blog-hero__select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Chevron customizado (native select arrow está escondido via appearance: none) */
.blog-hero__select-chevron {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-white);
    pointer-events: none;
}

/* As opções ainda renderizam com o UI nativo do sistema — não tentamos estilizar.
   Forçamos cor de texto escura pra garantir legibilidade no menu dropdown. */
.blog-hero__select option {
    color: #252B37;
    background: var(--color-white);
}

/* ===== Responsivo ===== */

@media (max-width: 1024px) {
    .blog-hero {
        min-height: 480px;
        padding: 140px 0 72px;
    }

    .blog-hero__filters {
        max-width: 100%;
        border-radius: 24px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .blog-hero__content {
        gap: 24px;
    }

    .blog-hero__title {
        font-size: 32px;
        line-height: 40px;
    }

    .blog-hero__description {
        font-size: 15px;
    }

    /* Troca: chips saem, select entra */
    .blog-hero__filters {
        display: none;
    }

    .blog-hero__select-wrapper {
        display: block;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 120px 0 56px;
    }

    .blog-hero__title {
        font-size: 28px;
        line-height: 36px;
    }

    .blog-hero__description {
        font-size: 14px;
    }
}
