/* --- HEADER DA PÁGINA --- */
.page-header {
    /* Usando a imagem enviada como fundo */
    background: linear-gradient(rgba(6, 44, 14, 0.712), rgba(6, 44, 23, 0.514)), 
                url('../images/fotos/batista_amazonico.jpeg') center/cover no-repeat;
    padding: 120px 0 80px; /* Espaço para o menu e respiro interno */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh; /* Garante que o header ocupe toda a altura da tela */
}

.page-header span {
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1rem;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-top: 6px;
    color: #eee;
}

/* --- DESTAQUE (FEATURED) --- */
.featured-news {
    margin-top: -40px;
    margin-bottom: 80px;
}

.featured-card {
    background: var(--white);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.featured-img img { width: 100%; height: 100%; object-fit: cover; }

.featured-text {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category {
    color: var(--accent-gold);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 15px;
}

.featured-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--deep-green);
}

/* --- FILTROS E GRID --- */
.news-filters {
    display: flex;
    padding: 40px;
    gap: 15px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 30px;
    border: 1px solid #ddd;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--deep-green);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.news-thumb {
    width: 100%;
    height: 380px; /* Aumentamos a altura para acomodar o formato vertical de um jornal */
    background-color: #f4f7f6; /* Fundo neutro caso a imagem tenha proporções ligeiramente diferentes */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    /* A MÁGICA ESTÁ AQUI: 'contain' garante que a imagem apareça 100% sem nenhum corte */
    object-fit: contain; 
    object-position: center;
    transition: transform 0.5s ease;
}

/* Mantém o efeito de zoom sutil ao passar o mouse, sem estourar o card */
.news-card:hover .news-thumb img {
    transform: scale(1.03); 
}

.news-info { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.date { font-size: 0.8rem; color: #aaa; font-weight: 600; margin-bottom: 10px; display: block; }

.news-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--deep-green);
    line-height: 1.3;
}

.btn-open {
    background: transparent;
    border: none;
    color: var(--accent-gold);
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    padding: 0;
    margin-top: auto;
    font-size: 0.9rem;
}

.link-jornal {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: 0.3s;
}

.link-jornal:hover {
    color: var(--deep-green);
    transform: translateX(5px);
}

/* --- PAGINAÇÃO (CORREÇÃO DO BOTÃO PRÓXIMO) --- */
.pagination {
    margin: 60px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.pagination a {
    min-width: 40px; /* Garante que números caibam */
    height: 40px;
    padding: 0 15px; /* Dá respiro para palavras longas como "Próximo" */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    text-decoration: none;
    color: var(--deep-green);
    border-radius: 5px;
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap; /* Impede quebra de linha */
}

.pagination a.active {
    background: var(--deep-green);
    color: var(--white);
    border-color: var(--deep-green);
}

