/* =========================================================================
   noticias.css - Estilos da Página de Notícias
   ========================================================================= */

.news-main {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

/* --- Alerta / Destaque (Anuidade) --- */
.news-alert {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 1.5rem;
    margin-bottom: 3rem;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.news-alert h3 {
    color: #856404;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-alert p {
    color: #856404;
    margin-bottom: 0;
}

/* --- Grid de Notícias --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* --- Cartão de Notícia --- */
.news-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Faixa colorida no topo do card baseada na categoria */
.news-card::before {
    content: '';
    height: 4px;
    width: 100%;
    background: var(--primary-blue);
}

.news-content {
    padding: 1.5rem;
    flex: 1; /* Ocupa o espaço disponível para empurrar o rodapé */
    display: flex;
    flex-direction: column;
}

/* Data e Categoria */
.news-meta {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Botão "Leia Mais" dentro do card */
.news-link {
    margin-top: auto; /* Empurra para o fundo */
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-link:hover {
    text-decoration: underline;
}

/* Paginação (Visual) */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 3rem;
}

.page-link {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--text-color);
}

.page-link.active {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}