/* ============================================= */
/* ESTILOS DA SEÇÃO ÚLTIMAS NOTÍCIAS (CORRIGIDO) */
/* ============================================= */

.noticias-section {
    width: 100%;
    padding: 20px 0;
    background-color: #f8f9fa; /* Cinza claro de fundo */
}

.noticias-section .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Títulos da seção */
.noticias-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}
.noticias-section .section-title strong {
    color: #ffcc00;
}
.noticias-section .section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
}

/* AQUI ESTÁ A REGRA QUE CONTROLA O TAMANHO */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; /* diminui espaço entre cards */
}


/* Estilos do card de notícia */
.noticia-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.noticia-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.noticia-imagem {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.noticia-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.noticia-card:hover .noticia-imagem img {
    transform: scale(1.05);
}

.noticia-conteudo {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.noticia-categoria {
    display: inline-block;
    background-color: #ffcc00;
    color: #333;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    align-self: flex-start;
}

.noticia-titulo {
    font-size: 1.25rem;
    font-weight: 600;
    color: #003366;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.noticia-resumo {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;

    /* --- Adicione as 4 linhas abaixo --- */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Número de linhas desejado */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.noticia-leia-mais {
    color: #003366;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}
.noticia-card:hover .noticia-leia-mais {
    color: #ffcc00;
}

/* Estilo e alinhamento do botão "Ver todas as notícias" */
.ver-mais-wrapper {
    margin-top: 40px;
    text-align: center; /* Centraliza o botão */
}

.btn-ver-mais-noticias {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    background-color: #fff;
    color: #003366;
    border: 2px solid #003366;
    transition: all 0.3s ease; /* Transição suave para o hover */
}

.btn-ver-mais-noticias:hover {
    background-color: #003366; /* Fundo inverte para azul */
    color: #fff; /* Texto inverte para branco */
    transform: translateY(-2px); /* Efeito sutil de levantar */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}