/* Seção de Notícias - Design Minimalista e Moderno */
.news {
    background: #ffffff;
    padding: 80px 0;
    position: relative;
}

.news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(255, 255, 255, 0) 50%),
                linear-gradient(225deg, rgba(245, 158, 11, 0.02) 0%, rgba(255, 255, 255, 0) 50%);
    z-index: 0;
}

/* Grid de notícias */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
    margin-top: 2rem;
}

/* Card de notícia */
.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

/* Card em destaque */
.news-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-left: 4px solid #02243d;
    display: grid;
    grid-template-columns: 1fr;
}

/* Layout do card em destaque para desktop */
@media (min-width: 992px) {
    .news-card.featured {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "image content";
    }
    
    .news-card.featured .featured-image {
        grid-area: image;
        height: 100%;
        border-right: 1px solid rgba(226, 232, 240, 0.5);
        border-bottom: none;
    }
    
    .news-card.featured .news-content {
        grid-area: content;
    }
}

/* Layout para tablets e mobile */
@media (max-width: 991px) {
    .news-card.featured {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .news-card.featured {
        grid-column: span 1;
    }
}

/* Badge de categoria */
.news-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #02243d;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.2);
    z-index: 2;
    transition: all 0.3s ease;
}

.news-card:hover .news-badge {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.news-card.featured .news-badge {
    background: #f8e874;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

/* Conteúdo da notícia */
.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #02243d;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-card.featured h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.news-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

/* Metadados da notícia */
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    font-size: 0.85rem;
    color: #64748b;
}

.news-date,
.news-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-date i,
.news-time i {
    color: #02243d;
    font-size: 0.9rem;
}

/* Imagem da notícia */
.news-image {
    height: 250px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

/* Imagem para o card em destaque */
.featured-image {
    height: 250px;
}

/* Efeito hover nas imagens */
.news-card:hover .news-image img {
    transform: scale(1.05);
    filter: brightness(1.03);
}

/* Sobreposição na imagem */
.news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.1));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover .news-image::after {
    opacity: 1;
}

/* Botão "Ver todas as notícias" */
.news-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    color: #02243d;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    margin-top: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    position: relative;
  z-index: 1024;
}

.news-all-btn:hover {
    background: #02243d;
    color: #ffffff!important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.15);
}

.news-all-btn i {
    font-size: 0.9rem;
    transition: transform 0.25s ease;
}

.news-all-btn:hover i {
    transform: translateX(3px);
}

.news-footer {
    text-align: center;
    margin-top: 2.5rem;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsividade */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-card.featured {
        grid-column: auto;
    }
    
    .news {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .news-image {
        height: 160px;
    }
    
    .featured-image {
        height: 200px;
    }
    
    .news-card h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .news-content {
        padding: 1.2rem;
    }
    
    .news-card p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .news-meta {
        font-size: 0.8rem;
    }
    
    .news-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.7rem;
    }
}

/* Otimizações para acessibilidade */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.news-card:focus-within {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    outline: 2px solid rgba(37, 99, 235, 0.5);
    outline-offset: 2px;
}

.news-all-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}
