:root {
    /* Cores Oficiais e Design System */
    --primary-green: #00701a;
    --accent-yellow: #ffcc00;
    --bg-gray: #f8f9fa;
    --text-dark: #1a2a3a;
    --text-muted: #555;
    --dark-blue: #0a192f;
    --white: #ffffff;
    
    /* Border Radius */
    --br-md: 12px;
    --br-lg: 20px;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
}

/* Base */
.container { width: 95%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 60px 0; }

/* Topo e Pesquisa */
.news-top { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 40px; 
    gap: 20px;
}
.news-intro h1 { 
    color: var(--primary-green); 
    font-size: 2.2rem; 
    font-weight: 800; 
    letter-spacing: -0.5px;
    margin: 0;
}
.news-search { position: relative; width: 350px; }
.news-search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #aaa; }
.news-search input { 
    width: 100%; 
    padding: 12px 15px 12px 45px; 
    border-radius: 30px; 
    border: 1px solid #ddd; 
    outline: none; 
    transition: 0.3s ease; 
}
.news-search input:focus { border-color: var(--primary-green); box-shadow: 0 0 0 4px rgba(0, 112, 26, 0.1); }

/* Destaque (Hero) - Camada de Proteção de Texto */
.hero-card { 
    position: relative;
    height: 500px; 
    border-radius: var(--br-lg); 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-align: center;
    padding: 40px; 
    color: var(--white); 
    margin-bottom: 50px; 
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.8));
    z-index: 1;
}
.hero-info { position: relative; z-index: 2; max-width: 850px; }
.badge-destaque { 
    background: var(--accent-yellow); 
    color: #000; 
    padding: 6px 16px; 
    border-radius: 6px; 
    font-weight: 800; 
    font-size: 0.75rem; 
    margin-bottom: 20px; 
    display: inline-block;
    text-transform: uppercase;
}
.hero-card h2 { font-size: 3rem; line-height: 1.1; margin-bottom: 20px; font-weight: 800; }
.hero-meta { display: flex; gap: 20px; justify-content: center; font-size: 0.9rem; opacity: 0.9; }

/* Filtros */
.news-filters { display: flex; gap: 10px; margin-bottom: 50px; flex-wrap: wrap; justify-content: center; }
.filter-btn { 
    padding: 10px 24px; 
    border-radius: 25px; 
    border: 1px solid #eee; 
    background: var(--white); 
    cursor: pointer; 
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; 
    transition: 0.3s; 
    color: var(--text-dark); 
}
.filter-btn.active { background: var(--primary-green); color: var(--white); border-color: var(--primary-green); }

/* Feed de Notícias Completas */
.news-grid { display: flex; flex-direction: column; gap: 40px; }
.news-item { 
    display: flex; 
    flex-direction: row; 
    border-radius: var(--br-md); 
    border: 1px solid #eee; 
    background: var(--white); 
    overflow: hidden; 
    transition: 0.3s ease;
    scroll-margin-top: 100px;
}
.news-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* Ajuste Técnico de Imagens */
.item-img { 
    position: relative; 
    flex: 0 0 420px; /* Largura fixa no desktop */
    overflow: hidden; 
    aspect-ratio: 16 / 10; /* Garante que todas as fotos tenham a mesma proporção */
}
.item-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* Preenche o espaço sem achatar a foto */
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.news-item:hover .item-img img { transform: scale(1.08); }

.item-content { padding: 40px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.item-meta { display: flex; align-items: center; gap: 10px; font-size: 0.75rem; font-weight: 800; margin-bottom: 15px; color: #888; }
.cat-name { color: var(--primary-green); text-transform: uppercase; }
.separator { width: 4px; height: 4px; background: #ccc; border-radius: 50%; }

.item-content h3 { 
    font-size: 1.8rem; 
    margin-bottom: 15px; 
    color: var(--text-dark); 
    line-height: 1.3; 
    font-weight: 700;
}
.item-content p { 
    color: var(--text-muted); 
    font-size: 1.1rem; 
    line-height: 1.7; 
    margin-bottom: 15px; 
    max-width: 800px;
}

/* --- RESPONSIVIDADE --- */

@media (max-width: 992px) {
    .item-img { flex: 0 0 350px; }
    .hero-card h2 { font-size: 2.5rem; }
    .item-content h3 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .news-top { flex-direction: column; text-align: center; }
    .news-search { width: 100%; }
    
    .news-item { flex-direction: column; }
    .item-img { 
        flex: none; 
        width: 100%; 
        aspect-ratio: 16 / 9; /* Mais horizontal em telas menores */
    }
    
    .item-content { padding: 30px; }
    .item-content h3 { font-size: 1.4rem; }
    .hero-card { height: 400px; padding: 25px; }
    .hero-card h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .news-filters { 
        justify-content: flex-start; 
        overflow-x: auto; 
        padding: 5px 0 15px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .news-filters::-webkit-scrollbar { display: none; }
    
    .filter-btn { white-space: nowrap; padding: 8px 18px; font-size: 0.85rem; }
    
    .hero-card { height: 320px; }
    .hero-card h2 { font-size: 1.6rem; }
    .hero-meta { flex-direction: column; gap: 8px; }
    
    .item-content { padding: 20px; }
    .item-content p { font-size: 1rem; }
}