/* ==========================================================================
   Component: Dynamic Posts (Noticias y Eventos FLDM)
   ========================================================================== */

/* Shared Editorial Feed */
.news-editorial-feed {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

/* Feed Item: Baseline Card */
.news-feed-item {
    border-top: 1px solid var(--border-color, #E5E3DD);
    padding: 24px 0;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.news-feed-item:first-child {
    border-top: none;
    padding-top: 0;
}

/* Thumbnail Container (Desktop: 140px x 96px, 140/96 aspect-ratio) */
.news-feed-thumb {
    width: 140px;
    height: 96px;
    aspect-ratio: 140 / 96;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-fine-guinda, rgba(139, 35, 50, 0.2));
    background: var(--fldm-recessed, #F4F3F0);
    box-sizing: border-box;
}

.news-feed-thumb img,
.news-feed-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card Body */
.news-feed-body {
    flex-grow: 1;
    min-width: 0;
}

/* Metadata (Date & Badge) */
.news-feed-meta {
    font-size: 13px;
    color: var(--fldm-wine, #8B2332);
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.news-event-badge {
    background: rgba(139, 35, 50, 0.08);
    color: var(--fldm-wine, #8B2332);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Card Title */
.news-item-title {
    font-size: 21px;
    color: var(--text-main, #1A1A1A);
    margin: 0 0 10px 0;
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.news-item-title a {
    text-decoration: none;
    color: inherit;
    transition: color 150ms ease;
}

.news-item-title a:hover {
    color: var(--fldm-wine, #8B2332) !important;
}

/* Excerpt */
.news-feed-excerpt {
    margin: 0 0 12px 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--fldm-gris-text, #2D3748);
    overflow-wrap: anywhere;
}

/* Action Link */
.news-feed-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--fldm-wine, #8B2332);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 150ms ease;
}

.news-feed-link:hover {
    color: var(--fldm-primary-dark, #4A081D);
    text-decoration: underline;
}

/* Home Section Layout (Stitch Editorial) */
.news-asymmetric-grid {
    display: grid;
    grid-template-columns: 1fr 1.65fr;
    gap: 56px;
    align-items: flex-start;
}

.news-left-rail {
    position: sticky;
    top: 100px;
}

.news-eyebrow {
    display: inline-block;
    color: var(--fldm-wine, #8B2332);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.news-feed-thumb-featured {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 280px;
    min-height: 180px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color, #E5E3DD);
    background: var(--fldm-recessed, #F4F3F0);
}

.news-feed-thumb-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .news-asymmetric-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .news-left-rail {
        position: static;
    }
}

@media (max-width: 768px) {
    .news-feed-item {
        gap: 18px;
        padding: 20px 0;
    }
}

@media (max-width: 640px) {
    .news-feed-item {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .news-feed-thumb {
        width: 100%;
        height: 180px;
        aspect-ratio: auto;
        border-radius: 6px;
    }

    .news-feed-thumb img,
    .news-feed-thumb-img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }
}

