/* --- Layout Geral da Página --- */
#novidadesPage .container-news-wrapper{
    margin: 2em 10vw;
    padding: 20px;
}
.news-page-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.news-page-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

/* --- Filtros (Nav) - Substitui o Select --- */
.news-filter-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.filter-label {
    font-weight: 600;
    color: #666;
    margin-right: 5px;
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Estilo dos Botões de Filtro */
.filter-pill {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f5f5f5;
    color: #555;
    border-radius: 50px; /* Formato de pílula */
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.filter-pill:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
    transform: translateY(-2px);
}

/* --- REUSO DO GRID (Igual ao anterior) --- */
.news-grid-home {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .news-grid-home { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .news-grid-home { grid-template-columns: repeat(4, 1fr); }
}

/* --- Card Styles (Igual ao anterior) --- */
.news-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.news-thumb-wrapper {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    font-size: 1.2rem;
    margin: 0 0 10px;
    line-height: 1.4;
}

.news-card-title a { text-decoration: none; color: #333; font-weight: 700; }
.news-card-title a:hover { color: #0073aa; }

.news-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: transparent;
    color: #333;
    border: 1px solid #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    align-self: flex-start;
    transition: all 0.3s;
}

.news-btn:hover { background-color: #333; color: #fff; }

/* --- Paginação WP --- */
.news-pagination {
    text-align: center;
    margin-top: 40px;
}
.news-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}
.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
}