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

.blog-hero {
    position: relative;
    /* Mesma regra dos demais heros: 80vh, teto de 800px, piso de 320px.
       min-height (em vez de height) para os chips de categoria poderem quebrar
       sem cortar. Mobile mantém min-height própria na media query abaixo. */
    min-height: clamp(320px, 80vh, 800px);
    display: flex;
    align-items: center;
    padding: var(--hero-pad-top) 0 var(--hero-pad-bottom);
    background: var(--color-bg-navy);
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.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;
    -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: var(--gap-content);
    text-align: center;
}

.blog-hero__label {
    display: inline-flex;
    align-items: center;
    gap: clamp(10px, 0.63vw, 12px);
    font-family: var(--font-text);
    font-weight: 400;
    font-size: var(--fs-label);
    line-height: 1.7;
    letter-spacing: -0.01em;
    color: var(--color-white);
}

.blog-hero__label-line {
    display: inline-block;
    width: var(--line-width);
    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: var(--fs-hero-title);
    line-height: 1.1;
    color: var(--color-white);
    max-width: 808px;
}

.blog-hero__description {
    font-family: var(--font-text);
    font-weight: 400;
    font-size: var(--fs-body);
    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;
    max-width: 80%;
    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: var(--fs-body);
    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) ----- */

.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: var(--fs-body);
    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);
}

.blog-hero__select-chevron {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-white);
    pointer-events: none;
}

.blog-hero__select option {
    color: #252B37;
    background: var(--color-white);
}

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

@media (max-width: 1024px) {
    .blog-hero__filters {
        max-width: 100%;
        border-radius: 24px;
    }
}

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

    .blog-hero__content {
        gap: 24px;
    }

    .blog-hero__filters {
        display: none;
    }

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