/* ==========================================================================
   News Section - Dynamic Asymmetrical Bento Grid (Estilo Referencia)
   Layout com Cards Diferenciados:
   - Card 1: Destaque Vertical Alto (Imagem no Topo, Conteudo em Baixo)
   - Card 2: Split Horizontal (Texto a Esquerda, Imagem Arredondada a Direita)
   - Card 3: Split Horizontal Alternado (Imagem a Esquerda, Texto a Direita)
   ========================================================================== */

.news-tile {
    background-color: var(--colors-canvas-parchment, #f0f2f5) !important;
    padding: 72px 0 80px 0;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   1. Cabecalho Editorial
   ========================================================================== */

.news-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.news-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--colors-primary, #0066cc);
    margin-bottom: 8px;
}

.news-headline {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
    font-size: clamp(32px, 3.8vw, 42px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #111113;
    margin: 0;
}

.news-subhead {
    font-size: 16.5px;
    line-height: 1.48;
    letter-spacing: -0.15px;
    color: #555761;
    margin: 8px 0 0 0;
}

/* ==========================================================================
   2. Bento Grid Principal
   ========================================================================== */

.news-bento-grid {
    display: grid;
    grid-template-columns: 1fr 1.38fr;
    grid-template-rows: repeat(2, minmax(250px, 1fr));
    gap: 24px;
    align-items: stretch;
    width: 100%;
}

.news-bento-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

/* Base Card Style */
.news-bento-card {
    background-color: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    width: 100%;
    height: 100%;
    transition: border-color 0.25s ease;
}

.news-bento-link:hover .news-bento-card {
    border-color: rgba(0, 0, 0, 0.16);
}

/* ==========================================================================
   Card 1: Vertical Tall Card (Esquerda - 2 Linhas de Altura)
   ========================================================================== */

.news-bento-tall-link {
    grid-row: span 2;
    height: 100%;
}

.news-bento-card-tall {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background-color: #ffffff;
}

.news-bento-card-tall .news-bento-img-wrap {
    position: relative;
    width: 100%;
    height: 310px;
    min-height: 280px;
    overflow: hidden;
    background-color: #eaedf1;
    border-radius: 23px 23px 0 0;
}

.news-bento-card-tall .news-bento-content {
    padding: 28px 26px 24px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    background-color: #ffffff;
}

/* ==========================================================================
   Cards 2 e 3: Split Cards Horizontais Conectados (Direita)
   ========================================================================== */

.news-bento-split-link {
    width: 100%;
    height: 100%;
}

.news-bento-split-card {
    display: grid;
    grid-template-columns: 1.2fr 0.95fr;
    gap: 0;
    width: 100%;
    height: 100%;
    align-items: stretch;
}

/* Variante Invertida: Imagem a Esquerda, Texto a Direita */
.news-bento-split-card.news-split-img-left {
    grid-template-columns: 0.95fr 1.2fr;
}

.news-bento-split-card .news-bento-content {
    padding: 26px 26px 22px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-width: 0;
    background-color: #ffffff;
}

.news-bento-split-card .news-bento-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 220px;
    overflow: hidden;
    background-color: #eaedf1;
}

/* ==========================================================================
   Elementos Compartilhados de Imagem e Tipografia
   ========================================================================== */

.news-bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: filter 0.3s ease;
}

.news-bento-link:hover .news-bento-img {
    filter: brightness(0.92) contrast(1.06);
}

.news-bento-title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.26;
    letter-spacing: -0.2px;
    color: #111113;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.news-bento-card-tall .news-bento-title {
    font-size: 22px;
    margin-bottom: 12px;
}

.news-bento-link:hover .news-bento-title {
    color: var(--colors-primary, #0066cc);
}

.news-bento-excerpt {
    font-size: 13.5px;
    line-height: 1.5;
    color: #555761;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-bento-card-tall .news-bento-excerpt {
    font-size: 14px;
    -webkit-line-clamp: 3;
}

/* Rodape com Data e Botao Ler Mais */
.news-bento-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.news-bento-date {
    font-size: 12.5px;
    font-weight: 500;
    color: #8e8e93;
    letter-spacing: -0.1px;
}

.news-bento-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--colors-primary, #0066cc);
    letter-spacing: -0.1px;
    transition: color 0.2s ease;
}

.news-bento-cta svg {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Transicao Horizontal da Seta (Sem Scale, Sem Shadow) */
.news-bento-link:hover .news-bento-cta svg {
    transform: translateX(4px);
}

.news-bento-link:hover .news-bento-cta {
    color: var(--colors-primary-focus, #0071e3);
}

/* Tags Abaixo da Descricao da Noticia */
.news-bento-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.news-bento-tag {
    display: inline-flex;
    align-items: center;
    background-color: #f2f3f5;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--rounded-pill, 9999px);
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #555761;
    letter-spacing: -0.1px;
    line-height: 1.35;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.news-bento-link:hover .news-bento-tag {
    background-color: rgba(0, 102, 204, 0.08);
    border-color: rgba(0, 102, 204, 0.18);
    color: var(--colors-primary, #0066cc);
}

/* ==========================================================================
   3. Breakpoints Responsivos
   ========================================================================== */

@media (max-width: 991.98px) {
    .news-tile {
        padding: 56px 0;
    }

    .news-bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
    }

    .news-bento-tall-link {
        grid-row: span 1;
    }

    .news-bento-card-tall .news-bento-img-wrap {
        height: 240px;
        min-height: 200px;
    }

    .news-bento-split-card,
    .news-bento-split-card.news-split-img-left {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

@media (max-width: 767.98px) {
    .news-tile {
        padding: 44px 0;
    }

    .news-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }

    .news-bento-split-card,
    .news-bento-split-card.news-split-img-left {
        grid-template-columns: 1fr;
        gap: 0;
        border-radius: 20px;
    }

    .news-bento-split-card .news-bento-img-wrap {
        height: 200px;
        min-height: 180px;
        order: 1 !important;
    }

    .news-bento-split-card .news-bento-content {
        order: 2 !important;
        padding: 22px 20px;
    }

    .news-bento-card-tall {
        border-radius: 20px;
    }

    .news-bento-card-tall .news-bento-img-wrap {
        height: 200px;
        min-height: 180px;
    }

    .news-bento-card-tall .news-bento-content {
        padding: 22px 20px;
    }

    .news-bento-title,
    .news-bento-card-tall .news-bento-title {
        font-size: 18px;
    }

    .news-bento-excerpt {
        font-size: 13px;
        margin-bottom: 16px;
    }
}

/* ==========================================================================
   4. Estilos da Página Completa de Notícias (Preservados)
   ========================================================================== */

.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
/* ==========================================================================
   4. Página Completa de Notícias (Arquivo Geral - Estilo Bento Conectado)
   ========================================================================== */

.news-archive-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.news-archive-link .news-bento-split-card {
    min-height: 240px;
}

.news-load-more {
    margin-top: 48px;
    text-align: center;
}

.news-all-loaded {
    display: inline-block;
    font-size: 13.5px;
    font-weight: 500;
    color: #8e8e93;
    letter-spacing: -0.1px;
    padding: 10px 22px;
    background-color: rgba(0, 0, 0, 0.04);
    border-radius: var(--rounded-pill, 9999px);
}

.news-empty-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 56px 24px;
    text-align: center;
}

/* Fallback para elementos legados */
.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.news-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px !important;
    overflow: hidden;
    height: 100%;
    box-shadow: none !important;
    transition: border-color 0.25s ease;
}

.news-card-link:hover .news-card {
    border-color: rgba(0, 0, 0, 0.16);
}

.news-date {
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: -0.1px;
    color: #8e8e93;
}

.news-title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.2px;
    color: #111113;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.news-card-link:hover .news-title {
    color: var(--colors-primary, #0066cc);
}

.news-excerpt {
    font-size: 13.5px;
    line-height: 1.5;
    color: #555761;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--rounded-pill, 9999px);
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #111113;
    letter-spacing: -0.1px;
}

.news-img-wrap {
    height: 100%;
    min-height: 220px;
    overflow: hidden;
    background-color: #eaedf1;
}

.news-badge-featured {
    display: inline-block;
    background-color: var(--colors-primary, #0066cc);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--rounded-pill, 9999px);
    padding: 3px 10px;
    margin-bottom: 8px;
    line-height: 1.3;
}


