
/* Seção de Grid das Notícias */
#noticias-grid {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    margin: 2rem 0;
    border-radius: 10px;
}

#noticias-grid > span{
    display: none;
}

#noticias-grid h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

#noticias-grid .subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Container das notícias */
.noticias-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card individual da notícia */
.noticia-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    position: relative;
    cursor: pointer;
}

.noticia-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Imagem da notícia */
.noticia-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #ecf0f1;
}

.noticia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.noticia-card:hover .noticia-image img {
    transform: scale(1.05);
}

/* Data da notícia */
.noticia-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    min-width: 50px;
}

.noticia-date .day {
    display: block;
    font-size: 1.2rem;
    line-height: 1;
}

.noticia-date .month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Conteúdo da notícia */
.noticia-content {
    padding: 1.5rem;
}

.noticia-content h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.noticia-description {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer da notícia */
.noticia-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1;
}

.noticia-category {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
}

/* Botão Saiba Mais */
.btn-saiba-mais {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.btn-saiba-mais:hover {
    background: linear-gradient(45deg, #2980b9, #1c5980);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Botão Carregar Mais */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.btn-load-more {
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.btn-load-more:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.3);
}

/* Responsividade */
@media (max-width: 768px) {
    #descricaoPag {
        padding: 2rem 1rem;
    }
    
    #descricaoPag h1 {
        font-size: 2rem;
    }
    
    #descricaoPag h2 {
        font-size: 1.1rem;
    }
    
    #descricaoPag p {
        font-size: 1rem;
    }
    
    #noticias-grid {
        padding: 2rem 1rem;
    }
    
    #noticias-grid h2 {
        font-size: 1.8rem;
    }
    
    .noticias-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .noticia-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .btn-saiba-mais {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    #noticias-grid > span{
        display: block;
        margin-bottom: 2rem;
    }

    #descricaoPag h1 {
        font-size: 1.7rem;
    }
    
    .noticias-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .noticia-image {
        height: 180px;
    }
    
    .noticia-content {
        padding: 1rem;
    }
    
    .noticia-content h3 {
        font-size: 1.1rem;
    }
}

/* Animação de entrada */
.noticia-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay escalonado para as animações */
.noticia-card:nth-child(1) { animation-delay: 0.1s; }
.noticia-card:nth-child(2) { animation-delay: 0.2s; }
.noticia-card:nth-child(3) { animation-delay: 0.3s; }
.noticia-card:nth-child(4) { animation-delay: 0.4s; }
.noticia-card:nth-child(5) { animation-delay: 0.5s; }
.noticia-card:nth-child(6) { animation-delay: 0.6s; }

/* Estados de carregamento */
.loading .noticia-card {
    opacity: 0.6;
    pointer-events: none;
}

.loading .btn-load-more {
    opacity: 0.6;
    pointer-events: none;
}

.loading .btn-load-more::after {
    content: ' ⟳';
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}