/* ===================================
   Part: Section - Noticias (News)
   ================================== */
.news-section {
    padding: var(--space-xxl) 0;
    background-color: var(--color-white); /* Back to white */
    position: relative;
    overflow: hidden;
}

.news-container {
    max-width: 1000px; /* Narrower container for a tighter look */
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.news-header {
    margin-bottom: var(--space-lg);
    display: block; /* Use block for simple centering of children */
}

.news-header .section-title-es,
.news-header .section-title-sub {
    color: var(--color-dark) !important; /* Back to dark text */
}

.news-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: repeat(4, 1fr); /* Force 4 equal rows */
    gap: 10px;
    min-height: 380px; /* Ensure a minimum height for the section */
}

/* Featured Card on the Left - Spans all 4 sub-article rows */
.news-card.featured {
    grid-column: span 1;
    grid-row: span 4;
    background: var(--color-dark);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Normal Cards on the Right */
.news-card:not(.featured) {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: var(--color-gray-light); /* Use light gray for contrast on white bg */
    gap: 12px;
    padding: 6px 10px;
    height: 100%; /* Fill the grid cell */
}

.news-card:not(.featured) .news-image-wrapper {
    width: 90px;
    height: 65px;
    flex-shrink: 0;
}

.news-card:not(.featured) .news-content {
    padding: 0;
}

.news-card:not(.featured) .news-title {
    font-size: 0.9rem; /* Smaller font */
    line-height: 1.3;
    color: var(--color-dark);
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.news-card:not(.featured) .news-excerpt {
    display: none;
}

.news-card {
    position: relative;
    border-radius: 2px;
    transition: var(--transition-base);
    text-decoration: none;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.news-image-wrapper {
    position: relative;
    overflow: hidden;
}

.news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.news-content {
    padding: var(--space-md); /* Reduced padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card.featured .news-content {
    padding: 15px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.news-date {
    color: var(--color-gray);
}

.news-category {
    background: var(--color-accent); /* Red accent for date/tags on deep blue/white */
    color: var(--color-white);
    padding: 1px 6px;
    text-transform: uppercase;
    font-size: 0.65rem;
}

.news-card.featured .news-category {
    background: var(--color-primary);
}

.news-title {
    margin-bottom: 4px;
    line-height: 1.3;
    font-weight: 700;
    font-family: var(--font-body);
}

.news-card.featured .news-title {
    font-size: 1.25rem; /* Reduced from 1.5rem */
    color: var(--color-white);
}

.news-excerpt {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 0px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-more {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 8px;
}


/* Featured specific tweaks */
.news-card.featured .news-image-wrapper {
    aspect-ratio: 16 / 9;
}

/* Responsive */
@media (max-width: 1100px) {
    /* Switch to a simple vertical list when the 1+4 layout feels tight */
    .news-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
        min-height: auto;
    }

    .news-card.featured {
        grid-row: span 1;
        flex-direction: row !important;
        align-items: center;
        background: rgba(255, 255, 255, 0.95);
        height: 100px;
        padding: 10px;
    }

    .news-card.featured .news-image-wrapper {
        width: 140px;
        height: 80px;
        aspect-ratio: auto;
    }

    .news-card.featured .news-content {
        padding: 0 15px;
        color: var(--color-dark) !important;
        justify-content: center;
    }

    .news-card.featured .news-title {
        font-size: 1.1rem;
        margin-bottom: 4px;
        color: var(--color-dark) !important;
    }
    
    .news-card.featured .news-meta .news-date {
        color: var(--color-gray);
    }

    .news-card.featured .news-excerpt,
    .news-card.featured .news-more {
        display: none !important;
    }

    /* Adjust normal sub-article cards slightly for the wider list view */
    .news-card:not(.featured) {
        height: 100px;
    }

    .news-card:not(.featured) .news-image-wrapper {
        width: 140px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: var(--space-lg) 0;
    }

    .news-grid {
        gap: 10px;
    }

    /* All items become ultra compact lists on mobile */
    .news-card {
        height: 85px !important;
        padding: 8px !important;
    }

    .news-image-wrapper {
        width: 100px !important;
        height: 70px !important;
    }

    .news-content {
        padding: 0 10px !important;
    }

    .news-title {
        font-size: 0.9rem !important;
    }
}


