/* css/news.css */

.news-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.news-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: 700;
}

#news-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.news-item:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 1024px) {
    #news-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    #news-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .news-item {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: 40px 0;
    }
    
    .news-section h2 {
        font-size: 1.8rem;
    }
    
    #news-container {
        padding: 0 15px;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .news-title {
        font-size: 1rem;
    }
    
    .news-description {
        font-size: 0.85rem;
    }
}
