/* --- Seção Principal de Notícias --- */
.todas-noticias-section {
    background-color: #f8f9fa; /* Fundo levemente acinzentado */
}

/* --- Cabeçalho Simples da Página --- */
.page-header h1 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--dark-text);
}

.page-header p.lead {
    color: var(--gray-text);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Filtros de Categoria --- */
.news-filters .filter-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    margin: 0.25rem;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: var(--dark-text);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.news-filters .filter-btn:hover {
    background-color: var(--tertiary-color);
    border-color: var(--tertiary-color);
    color: var(--primary-color);
}

.news-filters .filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(83, 158, 213, 0.3);
}

/* --- Container da Lista de Notícias --- */
.news-list-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Card de Notícia (Layout Horizontal) --- */
.news-card {
    display: flex;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 65, 155, 0.07);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 2rem;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 65, 155, 0.1);
}

/* Wrapper da Imagem (Esquerda) */
.news-card-image-link {
    flex-shrink: 0;
    width: 300px;
    position: relative;
    display: block;
    overflow: hidden;
}

.news-card-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image-link img {
    transform: scale(1.05);
}

/* Categoria sobre a imagem */
.news-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    background-color: rgba(0, 65, 155, 0.9);
    color: #fff;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Corpo do Card (Direita) */
.news-card-body {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.news-card-date {
    font-size: 0.8rem;
    color: var(--gray-text);
    margin-bottom: 0.5rem;
}

.news-card-title {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-card-title a {
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card-title a:hover {
    color: var(--primary-color);
}

.news-card-text {
    font-size: 0.95rem;
    color: var(--gray-text);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Máximo de 3 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-readmore {
    margin-top: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
    align-self: flex-start;
}

.news-card-readmore:hover {
    color: var(--secondary-color);
}

.news-card-readmore i {
    transition: transform 0.2s ease;
    vertical-align: middle;
}

.news-card-readmore:hover i {
    transform: translateX(5px);
}

/* --- Responsividade para Telas Pequenas --- */
@media (max-width: 767.98px) {
    .news-card {
        flex-direction: column; /* Empilha os itens verticalmente */
    }

    .news-card-image-link {
        width: 100%;
        height: 220px;
    }

    .news-card-body {
        padding: 1.5rem;
    }
}


.home-news-header.section-header {
    text-align: center;
    margin-bottom: 50px;
}

/* Estilo para a "tag" pequena acima do título */
.home-news-header .section-tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--tertiary-color); /* Usando suas variáveis de cor */
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Estilo para o título principal da seção */
.home-news-header .section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-text); /* Garante a cor escura do texto */
    margin-top: 10px;
    margin-bottom: 0; /* Remove a margem inferior para não criar espaçamento duplo */
    padding-bottom: 0; /* Remove o padding para não interferir no layout */
}

/* Garante que a pseudo-classe ::after não seja herdada de outras regras genéricas */
.home-news-header .section-title::after {
    content: none;
}

