/* ==========================================================================
   CONFIGURAÇÕES GERAIS E VARIÁVEIS
   ========================================================================== */
:root {
    --primary-color: #0034B7;
    --primary-light: rgba(0, 52, 183, 0.1);
    --bg-body: #F4F7F9;
    --bg-white: #FFFFFF;
    --text-dark: #2D3748;
    --text-muted: #4A5568;
    --border-radius: 12px;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.03);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.main {
    background-color: var(--bg-body);
    padding: 100px 0;
    min-height: 100vh;
}

/* ==========================================================================
   CONTEÚDO DA NOTÍCIA (ÁREA DE LEITURA EM DUAS COLUNAS INVERTIDAS)
   ========================================================================== */
.container-leitura {
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    /* INVERTIDO: 450px fixos para infos na esquerda | 1fr espaço adaptável para o texto na direita */
    grid-template-columns: 450px 1fr;
    gap: 40px;
    align-items: start;
}

/* --- LADO ESQUERDO: Bloco de Infos (Título, Imagem, Meta) --- */
.coluna-info-materia {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: sticky; /* Mantém fixo na tela enquanto o texto rola na direita */
    top: 120px;
}

.titulo-materia {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 25px;
}

.imgNoticia {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 6px;
    overflow: hidden;
}

.imgNoticia img, .imagem-materia {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.meta-dados-materia {
    border-top: 1px solid #E2E8F0;
    padding-top: 20px;
    font-size: 1rem;
    color: var(--text-dark);
}

.meta-dados-materia p {
    margin-bottom: 10px;
}

/* --- LADO DIREITO: Caixa de Rolagem do Texto --- */
.coluna-texto-materia {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    
    /* Configuração de Rolagem Interna */
    max-height: 700px;
    overflow-y: auto;
    padding-right: 20px;
}

/* Customização fina da barra de rolagem do texto */
.coluna-texto-materia::-webkit-scrollbar {
    width: 6px;
}
.coluna-texto-materia::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.coluna-texto-materia::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.conteudoNoticia p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 24px;
    text-align: left;
}

/* ==========================================================================
   SEÇÃO "MAIS NOTÍCIAS"
   ========================================================================== */
.secao-mais-noticias {
    width: 90%;
    margin: 80px auto 40px;
}

.titulo-secao {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.noticias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
}

.noticiaDestaques {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.noticiaDestaques:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 52, 183, 0.15);
}

.imgDestaque {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.imgDestaque img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.noticiaDestaques:hover .imgDestaque img {
    transform: scale(1.05);
}

.noticiaPrincInfo {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.noticiaPrincInfo h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.noticiaDestaques:hover .noticiaPrincInfo h3 {
    color: var(--primary-color);
}

.noticiaPrincInfo p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.data-publicacao {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 950px) {
    .container-leitura {
        grid-template-columns: 1fr; /* Coluna única no mobile */
        gap: 20px;
    }

    .coluna-info-materia {
        position: static;
        padding: 30px 20px;
    }

    .coluna-texto-materia {
        max-height: none; /* Desativa a rolagem interna em celulares */
        overflow-y: visible;
        padding: 30px 20px;
    }

    .titulo-materia {
        font-size: 1.8rem;
    }
}