/* 
 * AVANTULO S.A. News Styles
 * Version: 1.0
 * Date: July 1, 2025
 */

/* News Grid Layout */
#analyticsNewsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* News Card */
.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* News Image */
.news-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;
}

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

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #007bff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: capitalize;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.category-badge.markets { background-color: #4285f4; }
.category-badge.technology { background-color: #667eea; }
.category-badge.economy { background-color: #28a745; }
.category-badge.crypto { background-color: #ffc107; color: #212529; }
.category-badge.real-estate { background-color: #dc3545; }

/* News Content */
.news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #6c757d;
}

.news-date {
    font-weight: 500;
}

.news-source {
    font-style: italic;
}

.news-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 600;
    color: #212529;
}

.news-excerpt {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.news-link {
    display: inline-block;
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    margin-top: auto;
}

.news-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    #analyticsNewsGrid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    #analyticsNewsGrid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .news-image {
        height: 180px;
    }
}

@media (max-width: 576px) {
    #analyticsNewsGrid {
        grid-template-columns: 1fr;
    }
}
