/* QAS Consultoria - styles/news.css */

/* Estilos da Seção de Notícias */
.news-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.news-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.news-section .section-tag {
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #2E7D32;
}

.news-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.news-section .section-description {
    font-size: 1.1rem;
    color: #6c757d;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Grid de Notícias */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Card de Notícia */
.news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Imagem da Notícia */
.news-image-link {
    display: block;
}

.news-image {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-color: #e9ecef;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

/* Conteúdo do Card */
.news-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 15px;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 15px 0;
    flex-grow: 1;
}

.news-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #2E7D32;
}

.news-summary {
    color: #6c757d;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2E7D32;
    font-weight: 500;
    text-decoration: none;
    margin-top: auto;
    transition: transform 0.3s ease;
}

.news-link:hover {
    transform: translateX(4px);
}

/* Ações e Estados */
.news-actions {
    text-align: center;
}

.news-loading, .news-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.news-loading i {
    font-size: 2rem;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .news-section .section-title {
        font-size: 2rem;
    }
}
