/* ===== SEÇÕES PRINCIPAIS ===== */
section {
    margin: 2rem 0;
    padding: 0 20px;
}

section h2 {
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #456797;
    font-weight: 700;
}

/* ===== BLOCO DESTAQUES ===== */
.destaques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.destaques .post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.destaques .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.destaques .post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #ABBFDB;
    transition: transform 0.3s ease;
}

.destaques .post-card:hover img {
    transform: scale(1.05);
}

.destaques .post-card h3 {
    padding: 1.2rem 1.2rem 0.5rem;
    font-size: 1.3rem;
    line-height: 1.3;
}

.destaques .post-card h3 a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.destaques .post-card p {
    padding: 1.2rem 1.2rem;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== BLOCO ÚLTIMAS NOTÍCIAS ===== */
.ultimas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.ultimas .post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
}

.ultimas .post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.ultimas .post-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 2px solid #e2e8f0;
}

.ultimas .post-card h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.ultimas .post-card h3 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ultimas .post-card p {
    padding: 1rem 1rem;
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
}

/* ===== BADGE CATEGORIA ===== */
.post-thumbnail {
    position: relative;
    display: block;
    width: 100%;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #1a365d;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
    z-index: 2;
}

.destaques .post-thumbnail img {
    height: 200px;
    object-fit: cover;
}

.ultimas .post-thumbnail img {
    height: 150px;
    object-fit: cover;
}

/* ===== BANNERS ===== */
.banner-destaques {
    margin: 2rem 0;
    text-align: center;
}

.banner-widget {
    max-width: 100%;
    margin: 0 auto;
}

.banner-widget img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ===== ANIMAÇÕES FRONT-PAGE ===== */
.destaques-grid .post-card,
.ultimas-grid .post-card {
    animation: fadeIn 0.6s ease-out;
}

.post-card .excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== RESPONSIVIDADE FRONT-PAGE ===== */
@media (max-width: 768px) {
    section {
        padding: 0 15px;
    }
    
    section h2 {
        font-size: 1.6rem;
    }
    
    .destaques-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .ultimas-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .destaques .post-card img,
    .ultimas .post-card img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .destaques .post-card h3 {
        font-size: 1.1rem;
        padding: 1rem 1rem 0.5rem;
    }
    
    .ultimas .post-card h3 {
        font-size: 1rem;
        padding: 0.8rem 0.8rem 0.4rem;
    }
    
    .destaques .post-card .excerpt,
    .ultimas .post-card .excerpt {
        padding: 0 1rem 1rem;
        font-size: 0.85rem;
    }
}