/* Estilos Globais */
body {
    background-color: #000000; /* BackGround: preto */
    color: #FFFFFF; /* Texto Principal: branco */
    font-family: 'Nunito Sans', sans-serif; /* Texto principal: Nunito Sans Regular (400) */
    margin: 0;
    padding: 0;
    font-weight: 400; /* Regular */
    padding-top: 80px; /* Adicionado padding para compensar header fixo */
}

h1, h2, h3, h4, h5, h6 {
    color: #FFFFFF; /* Titulos e Subtitulos: branco */
    font-weight: 700; /* Titulos: Nunito Sans Bold (700) */
}

/* Outros estilos serão adicionados aqui */


/* Estilos do Cabeçalho */
header {
    /* display: flex; */ /* Movido para .header-container */
    /* justify-content: space-between; */ /* Movido para .header-container */
    /* align-items: center; */ /* Movido para .header-container */
    padding: 0; /* Removido padding horizontal */
    height: 70px; /* Altura fixa para manter linha baixa */
    background-color: #000000; /* Cor de fundo preta */
    border-bottom: 1px solid #808080; /* Linha cinza separadora */
    position: fixed; /* Fixar no topo */
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box; /* Incluir padding na largura total */
    z-index: 1000; /* Garantir que fique sobre o conteúdo */
    background: #000;
    color: #fff;
    width: 100%;
    border-bottom: 1px solid #444;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 20px;
    box-sizing: border-box;
}

header .logo {
    display: flex;
    align-items: center;
    height: 70px;
}

header .logo a {
    display: flex; /* Use flex to center image */
    align-items: center; /* Vertically center image */
    justify-content: center; /* Horizontally center image */
    height: 70px;   /* Match header height */
    overflow: hidden; /* Clip the clickable area */
}

header .logo img {
    height: 130px !important;
    width: auto !important;
    display: block;
}

.header-container nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-container nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.header-container nav ul li a {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 1.1em;
    font-weight: 400;
    transition: color 0.2s;
}

.header-container nav ul li a:hover {
    color: #a50707 !important;
}

.header-container .newsletter-button {
    margin-left: 20px;
    display: flex;
    align-items: center;
    height: 40px;
}

.newsletter-button a {
    background: #a50707;
    color: #fff;
    font-weight: bold;
    font-size: 1.15em;
    border-radius: 7px;
    padding: 8px 18px;
    border: none;
    text-decoration: none;
    transition: background 0.2s;
    display: inline-block;
    margin-left: 10px;
}
.newsletter-button a:hover {
    background: #770404;
    color: #fff;
}

.header-container .menu-toggle {
    display: none;
}

.menu-toggle {
    display: none; /* aparece só no mobile */
}

.menu-overlay .menu-close, 
.menu-overlay .close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 36px;
    height: 36px;
    z-index: 1100;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-overlay .menu-close span,
.menu-overlay .close span {
    position: absolute;
    width: 32px;
    height: 4px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.2s;
}

.menu-overlay .menu-close span:first-child {
    transform: rotate(45deg);
}
.menu-overlay .menu-close span:last-child {
    transform: rotate(-45deg);
}

/* Esconde menu-toggle (hamburger) quando overlay estiver aberto */
.menu-overlay.active ~ .header-container .menu-toggle,
.menu-overlay.active + .header-container .menu-toggle {
    display: none !important;
}

/* Título "Categorias" igual ao resto do site, com linha vermelha */
.menu-overlay .menu-title {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    color: #fff;
    font-size: 1.22em;
    font-weight: 700;
    padding: 16px 0 0 28px;
    letter-spacing: 2px;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
}
.menu-overlay .menu-title::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 28px;
    background: #a50707;
    margin-right: 10px;
    border-radius: 3px;
    vertical-align: middle;
}

/* Categorias do menu mobile menores */
.menu-overlay ul li a {
    font-size: 1.14em !important;
    padding-left: 28px;
    display: block;
}

/* Adicionar mais estilos para responsividade e hover effects depois */


/* Estilos do Conteúdo Principal */
main {
    padding: 20px;
    max-width: 1200px; /* Voltando para 1200px */
    margin: 20px auto; /* Centralizar e adicionar margem superior/inferior */
    /* Deixar espaço para publicidade nas laterais (implícito pela max-width e margin auto) */
}

.news-block {
    margin-bottom: 40px; /* Espaço entre os blocos (para publicidade) */
}

.news-block h2 {
    font-weight: 700; /* Titulos: Nunito Sans Bold */
    font-size: 1.8em;
    margin-bottom: 20px;
    border-left: 4px solid #8B0000; /* Detalhe vermelho escuro */
    padding-left: 10px;
}

.news-cards-grid {
    display: grid;
    gap: 20px;
}

/* Estilos para os cards de notícia (baseado no Anexo 3) */
.card {
    background-color: #282828; /* Cinza um pouco mais claro que #333 */
    border-radius: 5px; /* Bordas levemente arredondadas */
    overflow: hidden;
    color: #FFFFFF; /* Texto principal branco */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Sombra sutil */
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px); /* Efeito leve ao passar o mouse */
}

.card img {
    width: 100%;
    height: 150px; /* Altura fixa para imagens nos cards menores */
    object-fit: cover; /* Cobrir o espaço sem distorcer */
    background-color: #444; /* Cor de fundo para placeholder */
    border-bottom: 1px solid #444;
    display: block;
}

.card.card-large img {
    height: 300px; /* Altura maior para o card principal de destaque */
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    font-size: 1.1em;
    font-weight: 700; /* Titulos: Nunito Sans Bold */
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-content h3 a {
    color: #FFFFFF;
    text-decoration: none;
}

.card-content h3 a:hover {
    color: #A9A9A9;
}

.card-content .meta {
    font-size: 0.75em; /* Tamanho original */
    color: #A9A9A9; /* Texto Secundário: cinza médio */
    font-weight: 300; /* Texto secundário: Nunito Sans Extralight */
}

/* Layout específico para blocos como Futebol, Basquete (Anexo 3) - 4 cards */
.grid-layout-anexo3 {
    /* Modificado para manter sempre 4 colunas fixas, independente do número de cards */
    grid-template-columns: repeat(4, 1fr); /* Sempre 4 colunas de tamanho igual */
    gap: 20px;
}

/* Garantir que cada card ocupe exatamente uma coluna */
.grid-layout-anexo3 .card {
    width: 100%;
    min-width: 0; /* Evitar que o conteúdo force o card a crescer */
}

/* Layout específico para bloco Destaque (Anexo 2) - 1 grande, 3 pequenos */
.grid-layout-anexo2 {
    display: grid;
    grid-template-columns: 2.6fr 1fr;   /* Era 2fr 1fr */
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}
.card-large {
    grid-row: 1 / span 3;
    grid-column: 1 / span 2;
    display: flex
;
    flex-direction: column;
    height: 100%;
}

.card-small {
    grid-column: 2 / 3;
    height: 170px;
}

.card-top { 
    display: flex;
    grid-row: 1 / 2;
    grid-column: 3;
    
    
}
.card-middle { 
    display: flex;
    grid-row: 2 / 3;
    grid-column: 3;
    
}
.card-bottom { 
    display: flex;
    grid-row: 3 / 4;
    grid-column: 3;
    
}

.card {
    background: #222;
    border-radius: 10px;
    box-shadow: none;
    padding: 0;
    overflow: hidden;
    margin: 0;
}

.card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.card-large img {
    width: 100%;
    height: 320px;   /* já está ótimo, ajuste se quiser */
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 24px;
}


/* Ajustar estilos dos cards pequenos no Anexo 2 (sem imagem principal, talvez?) */
.grid-layout-anexo2 .card-small .card-content {
   /* Estilos específicos se necessário */
}

.grid-layout-anexo2 .card-small img {
    /* Esconder ou estilizar imagem pequena se houver */
    width: 150px; /* Largura fixa */
    height: 100%; /* Ocupar altura total do card */
    object-fit: cover; /* Cobrir sem distorcer */
    /* float: left; */ /* Removido */
    margin-right: 10px; /* Espaço entre imagem e texto */
    border-radius: 5px 0 0 5px; /* Arredondar cantos esquerdos */
}

.grid-layout-anexo2 .card-small .card-content {
    overflow: hidden; /* Para conter o float */
    padding: 10px; /* Reduzido */
}

.grid-layout-anexo2 .card-small .card-content h3 {
    font-size: 0.9em; /* Reduzido */
    margin-bottom: 5px;
}

/* Adicionar mais estilos para responsividade e detalhes */


/* Estilos do Rodapé */
footer {
    background-color: #1a1a1a; /* Um pouco mais claro que o fundo para diferenciar */
    color: #A9A9A9; /* Texto Secundário: cinza médio */
    padding: 30px 20px;
    margin-top: 40px;
    text-align: center;
}

.social-media a {
    margin: 0 10px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.5em; /* Tamanho dos ícones */
}

/* Adicionar ícones reais (FontAwesome ou SVGs) depois */

footer p {
    margin-top: 20px;
    font-size: 0.9em;
    font-weight: 300; /* Texto secundário: Nunito Sans Extralight */
}


/* ... (Estilos anteriores) ... */

/* Ajustes Finos e Detalhes */

/* Melhorar espaçamento e alinhamento do cabeçalho */
header nav ul li a:hover {
    color: #A9A9A9; /* Cinza médio no hover */
}

header .newsletter-button a:hover {
    background-color: #A52A2A; /* Vermelho um pouco mais escuro no hover */
}

/* Ajustes nos cards */


/* Ajustes no layout Anexo 2 (Destaques) */


/* Espaços de Publicidade */
.ad-space {
    height: 100px; 
    background-color: #222; 
    margin: 30px 0; 
    text-align: center; 
    line-height: 100px; 
    color: #555;
}

.ad-space-side {
    width: 150px; /* Largura da publicidade lateral */
    height: 600px; /* Altura exemplo */
    background-color: #222;
    position: fixed; /* Fixar nas laterais */
    top: 180px; /* Aumentado espaçamento abaixo do cabeçalho */
    color: #555;
    text-align: center;
    line-height: 600px;
    z-index: 900; /* Abaixo do header */
}

.ad-space-left {
    left: 20px; /* Voltando para 20px */
}

.ad-space-right {
    right: 20px; /* Voltando para 20px */
}

/* Estilos da Página de Categoria */
.category-page-content {
    /* Container principal da página de categoria */
}

.category-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 30px;
    border-bottom: 2px solid #8B0000; /* Linha vermelha abaixo do título */
    padding-bottom: 10px;
    color: #FFFFFF;
}

.featured-article {
    margin-bottom: 40px;
    background-color: #1a1a1a; /* Fundo levemente diferente */
    /* padding: 20px; */ /* Removido padding geral */
    border-radius: 5px;
    overflow: hidden; /* Garantir que o border-radius funcione com a imagem */
}

.featured-article img {
    width: 100%;
    max-height: 400px; /* Limitar altura da imagem principal */
    object-fit: cover;
    border-radius: 5px 5px 0 0; /* Arredondar apenas cantos superiores */
    /* margin-bottom: 15px; */ /* Removido margin */
    background-color: #444;
    display: block; /* Garantir que seja bloco */
}

.featured-article-content {
    padding: 20px; /* Adicionar padding apenas ao conteúdo de texto */
}

.featured-article h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.featured-article p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #E0E0E0; /* Cinza claro para o texto */
    margin-bottom: 15px;
}

.featured-article a {
    color: #8B0000;
    text-decoration: none;
    font-weight: 700;
}

.featured-article a:hover {
    text-decoration: underline;
}

.recent-news-list h3 {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 4px solid #8B0000; /* Detalhe vermelho como nos blocos da home */
    padding-left: 10px;
    color: #FFFFFF;
}

/* NOVO: Container para o grid de notícias recentes */
.news-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Três colunas */
    gap: 25px; /* Espaçamento entre os cards */
}

.news-list-item {
    /* display: flex; */ /* Removido flex, agora é item de grid */
    /* margin-bottom: 25px; */ /* Removido margin, gap do grid controla */
    /* border-bottom: 1px solid #444; */ /* Removido border, não necessário no grid */
    background-color: #282828;
    border-radius: 5px;
    overflow: hidden;
    transition: background-color 0.2s ease-in-out;
    /* min-height: 150px; */ /* Altura mínima pode não ser necessária com grid, testar */
    display: flex; /* Manter flex para layout interno do card */
    flex-direction: column; /* Empilhar imagem e conteúdo dentro do card */
}

/* .news-list-item:last-child { */ /* Não mais necessário com grid */
    /* border-bottom: none; */
    /* margin-bottom: 0; */
/* } */

.news-list-item:hover {
    background-color: #333333;
}

.news-list-item img {
    width: 100%; /* Imagem ocupa toda a largura do card */
    height: 150px; /* Altura fixa da imagem */
    object-fit: cover;
    /* margin-right: 20px; */ /* Removido margin */
    border-radius: 5px 5px 0 0; /* Arredondar cantos superiores */

    font-size: 1.3em;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 5px;
}

.news-item-content h4 a {
    color: #FFFFFF;
    text-decoration: none;
}

.news-item-content h4 a:hover {
    color: #A9A9A9;
}

.news-item-content .meta {
    font-size: 0.8em;
    color: #A9A9A9;
    margin-top: auto; /* Empurrar meta para baixo se houver espaço */
    padding-top: 8px; /* Espaço acima do meta */
    font-weight: 300;
}

.news-item-content p {
    font-size: 0.95em;
    line-height: 1.5;
    color: #D3D3D3; /* Cinza um pouco mais claro */
    margin-bottom: 8px; /* Espaço abaixo do resumo */
}

/* Ajustes de Responsividade para Categoria */
@media (max-width: 768px) {
    .category-title {
        font-size: 2em;
    }
    .featured-article h2 {
        font-size: 1.6em;
    }
    /* NOVO: Ajuste para grid em mobile */
    .news-grid-container {
        grid-template-columns: 1fr; /* Uma coluna em mobile */
    }
    /* Ajustes antigos para .news-list-item em mobile não são mais necessários da mesma forma */
    /* .news-list-item {
        flex-direction: column; 
        min-height: auto; 
    } */
    .news-list-item img {
        /* width: 100%; */ /* Já é 100% */
        height: 180px; /* Altura maior em mobile */
        /* margin-right: 0; */
        /* margin-bottom: 15px; */
        /* border-radius: 5px 5px 0 0; */ /* Já está assim */
    }
    .news-item-content {
        padding: 15px; /* Padding uniforme */
        /* justify-content: flex-start; */ /* Manter centralizado */
    }
}


/* Ajustes de Responsividade (Exemplo básico) */
@media (max-width: 1550px) {
    .ad-space-side {
        display: none; /* Esconder publicidade lateral em telas menores */
    }
    main {
        padding: 20px; /* Remover padding extra se não houver ads laterais */
    }
    .header-container {
        padding: 0 20px; /* Ajustar padding interno em telas menores */
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 120px; /* Ajustar padding para header maior em mobile */
    }
    header {
        height: auto; /* Altura automática em mobile */
        padding: 0; /* Remover padding do header */
    }
    .header-container {
        padding: 10px 20px;
        max-width: 100%; /* Ocupar toda a largura */
    }
    header .logo img {
        height: 60px; /* Logo menor em mobile */
    }
    header nav ul {
        flex-wrap: wrap; /* Quebrar linha do menu */
        margin-top: 10px;
    }
    header nav ul li {
        margin: 5px 10px 5px 0;
    }
    header .newsletter-button {
        margin-top: 10px;
    }
    .grid-layout-anexo2 {
        grid-template-columns: 1fr; /* Empilhar tudo em telas pequenas */
    }
    .grid-layout-anexo2 .card-large {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .grid-layout-anexo2 .card-small {
        grid-column: 1 / -1;
    }
    /* Ajuste para manter 2 colunas em tablets e 1 coluna em mobile */
    .grid-layout-anexo3 {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas em tablets */
    }
}

/* Ajuste adicional para telas muito pequenas */
@media (max-width: 480px) {
    .grid-layout-anexo3 {
        grid-template-columns: 1fr; /* 1 coluna em telas muito pequenas */
    }
}

.grid-layout-anexo2 .card-large .card-content p.meta {
    font-size: 1em; /* Aumentado para destaque */
    line-height: 1.4;
    margin-bottom: 10px; /* Espaço abaixo do resumo */
}
.grid-layout-anexo2 .card-large .card-content h3 {
    font-size: 1.6em; /* Aumentado de 1.1em */
    line-height: 1.4;
}


/* Ajuste para aumentar logo */






.news-item-content {
    flex: 1; /* Ocupar espaço restante verticalmente */
    padding: 15px; /* Igual ao .card-content */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-item-content h4 {
    font-size: 1.3em;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 5px;
}

.news-item-content h4 a {
    color: #FFFFFF;
    text-decoration: none;
}

.news-item-content h4 a:hover {
    color: #A9A9A9;
}

.news-item-content .meta {
    font-size: 0.8em;
    color: #A9A9A9;
    margin-top: auto; /* Empurrar meta para baixo se houver espaço */
    padding-top: 8px; /* Espaço acima do meta */
    font-weight: 300;
}

.news-item-content p {
    font-size: 0.95em;
    line-height: 1.5;
    color: #D3D3D3; /* Cinza um pouco mais claro */
    margin-bottom: 8px; /* Espaço abaixo do resumo */
}



/* Ajuste para igualar fonte do resumo/subtítulo do card principal da homepage ao da categoria */
.grid-layout-anexo2 .card-large .card-content p:not(.meta) {
    font-size: 1em; /* Match category page summary size */
    line-height: 1.4; /* Match category page summary line-height */
    margin-bottom: 10px; /* Match category page summary margin */
    color: #E0E0E0; /* Match category page summary color */
}


/* Estilos para a seção de tabelas das ligas */
.league-tables-section {
    margin-bottom: 40px;
    background-color: #1a1a1a;
    border-radius: 5px;
    padding: 20px;
}

.league-tables-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    border-left: 4px solid #8B0000;
    padding-left: 10px;
}

/* Menu mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.96);
    z-index: 1100;
    display: none; /* Ativado via JS */
    flex-direction: column;
    padding-top: 48px;
    box-sizing: border-box;
    transition: opacity 0.3s;
}

.menu-overlay.active {
    display: flex !important;
}

.menu-overlay ul {
    list-style: none;
    padding: 0;
    margin: 36px 0 0 0;
    width: 100%;
    text-align: left;
}

.menu-overlay ul li {
    margin-bottom: 20px;
}

.menu-overlay ul li a {
    color: #fff !important;
    font-size: 1.6em;
    font-weight: 500;
    text-decoration: none !important;
    transition: color 0.2s;
    padding-left: 28px;
    display: block;
}

.menu-overlay ul li a:hover {
    color: #a50707 !important;
}

.menu-overlay ul li.current-menu-item a {
    color: #a50707 !important;
}

/* Estilos para o menu mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    header nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background-color: #111;
        z-index: 999;
        transition: left 0.3s ease;
        padding: 80px 20px 20px;
        overflow-y: auto;
    }
    
    header nav.active {
        left: 0;
    }
    
    header nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    header nav ul li {
        margin: 10px 0;
        width: 100%;
    }
    
    header nav ul li a {
        display: block;
        padding: 10px 0;
        font-size: 1.2em;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .header-container {
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
    }
    
    header .newsletter-button {
        margin-left: auto;
    }
}


/* Estilos específicos para páginas de matéria/artigo */
.article-page-main {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
}

.article-layout-container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Coluna principal maior, sidebar menor */
    gap: 40px;
    align-items: start;
}

.main-content-column {
    /* Coluna principal do conteúdo */
}

.article-content-wrapper {
    background-color: #1a1a1a;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px;
}

.featured-image {
    margin: 0;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.featured-image figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #FFFFFF;
    padding: 20px;
    font-size: 0.9em;
    font-style: italic;
}

.article-header-content {
    padding: 30px;
    border-bottom: 1px solid #444;
}

.article-header-content h1 {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #FFFFFF;
}

.article-subtitle {
    font-size: 1.2em;
    color: #A9A9A9;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    color: #A9A9A9;
}

.article-meta .author {
    font-weight: 700;
}

.article-meta .date {
    font-weight: 300;
}

.article-body {
    padding: 30px;
    line-height: 1.7;
}

.article-body p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #E0E0E0;
}

.article-body h2 {
    font-size: 1.6em;
    font-weight: 700;
    margin: 30px 0 20px 0;
    color: #FFFFFF;
    border-left: 4px solid #8B0000;
    padding-left: 15px;
}

.article-body h3 {
    font-size: 1.4em;
    font-weight: 700;
    margin: 25px 0 15px 0;
    color: #FFFFFF;
}

/* Espaços de publicidade específicos para matéria */
.ad-space-materia-body {
    height: 120px;
    background-color: #222;
    margin: 30px 0;
    text-align: center;
    line-height: 120px;
    color: #555;
    border-radius: 5px;
}

.ad-space-materia-footer {
    height: 100px;
    background-color: #222;
    margin: 30px 0;
    text-align: center;
    line-height: 100px;
    color: #555;
    border-radius: 5px;
}

/* Sidebar da matéria */
.article-sidebar {
    /* Sidebar direita */
}

.sidebar-relacionadas-header {
    background-color: #8B0000;
    padding: 15px 20px;
    border-radius: 5px 5px 0 0;
}

.sidebar-relacionadas-header h4 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 700;
    color: #FFFFFF;
}

.sidebar-relacionadas-card {
    background-color: #282828;
    border-bottom: 1px solid #444;
    padding: 15px;
    display: flex;
    gap: 15px;
    transition: background-color 0.2s ease;
}

.sidebar-relacionadas-card:hover {
    background-color: #333333;
}

.sidebar-relacionadas-card:last-of-type {
    border-bottom: none;
    border-radius: 0 0 5px 5px;
}

.sidebar-relacionadas-img {
    flex-shrink: 0;
}

.sidebar-relacionadas-img img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
}

.sidebar-relacionadas-content {
    flex: 1;
}

.sidebar-relacionadas-content a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 400;
    line-height: 1.4;
    display: block;
}

.sidebar-relacionadas-content a:hover {
    color: #A9A9A9;
}

.ad-space-sidebar {
    background-color: #222;
    border-radius: 5px;
    color: #555;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Layout específico para seção "Leia Também" */
.related-articles-block {
    margin-bottom: 40px;
}

.grid-layout-related {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

a:visited {
  color: inherit; 
  text-decoration: none;
}

a {
  text-decoration: none;
}

/* Responsividade para páginas de matéria */
@media (max-width: 1024px) {
    .article-layout-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .grid-layout-related {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-page-main {
        padding: 10px;
        margin: 10px auto;
    }
    
    .article-header-content {
        padding: 20px;
    }
    
    .article-header-content h1 {
        font-size: 1.8em;
    }
    
    .article-body {
        padding: 20px;
    }
    
    .grid-layout-related {
        grid-template-columns: 1fr;
    }
    
    .sidebar-relacionadas-card {
        padding: 12px;
    }
    
    .sidebar-relacionadas-img img {
        width: 70px;
        height: 50px;
    }
}

@media (max-width: 700px) {
    .header-container {
        height: 56px !important;
        padding: 0 10px !important;
    }
    .logo img {
        width: 120px !important;
        max-width: 160px !important;
        height: auto !important;
        margin: 0 !important;
    }
    .newsletter-button {
        display: none !important;
    }
    nav {
        display: none !important;
    }
   .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        width: 44px;
        height: 44px;
        cursor: pointer;
        margin-left: auto;
        gap: 7px; /* espaço entre as barras */
        padding: 0;
        background: none;
        border: none;
    }
    .menu-toggle span {
        display: block;
        width: 32px;
        height: 4px;
        margin: 0;
        background: #fff;
        border-radius: 3px;
        transition: all 0.2s;
    }

@media (max-width: 700px) {
  .menu-overlay.active ~ .header-container .menu-toggle,
  .menu-overlay.active + .header-container .menu-toggle,
  body.menu-open .menu-toggle {
    display: none !important;
  }
}

/* === Destaques igual ao HTML antigo === */
.grid-layout-anexo2 {
    display: grid;
    grid-template-columns: 2.4fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.card-large {
    grid-row: 1 / span 3;
    grid-column: 1 / 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
}

.card-large img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    display: block;
}

.card-large .card-content {
    padding: 28px 26px 24px 26px;
}

.card-large .card-content h3 {
    font-size: 2em;
    margin-bottom: 16px;
}
.card-large .card-content p.meta {
    font-size: 1.13em;
    color: #A9A9A9;
    margin-bottom: 14px;
}
.card-large .card-content p:not(.meta) {
    font-size: 1.13em;
    line-height: 1.32;
    color: #E0E0E0;
}

.card-small {
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    background: none;
    box-shadow: none;
    border-radius: 10px;
    min-height: 135px;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.card-small-flex {
    display: flex;
    align-items: stretch;
    height: 100%;
    width: 100%;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
}

.card-small-img {
    flex: 0 0 120px;
    width: 120px;
    height: 100%;
    overflow: hidden;
}

.card-small-img img {
    width: 120px;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px 0 0 10px;
}

.card-small .card-content {
    flex: 1;
    padding: 16px 18px 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.card-small .card-content h3 {
    font-size: 1.07em;
    margin-bottom: 5px;
    font-weight: 700;
}

.card-small .card-content a {
    color: #fff;
    text-decoration: none;
}

.card-small .meta {
    color: #c2c2c2;
    font-size: 0.89em;
    margin-top: 5px;
}

}