/* =============================================================================
   Featured Landing Page Two Column Hero — style.css
   Prefix: lx-featured-landing-two-column-hero-
   Helper classes on section: lx-flch-*
   All rules scoped under .lx-featured-landing-two-column-hero-section
   ============================================================================= */

/* ── Section & Container ──────────────────────────────────────────────────── */
.lx-featured-landing-two-column-hero-section {
    padding: 32px 0;
    margin: 0;
    position: relative;
    font-family: "Instrument Sans", sans-serif;
    color: #000;
    background: #fff;
    line-height: 1.6;
    box-sizing: border-box;
}

.lx-featured-landing-two-column-hero-section *,
.lx-featured-landing-two-column-hero-section *::before,
.lx-featured-landing-two-column-hero-section *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

/* ── Hero row — two-column layout ─────────────────────────────────────────── */
.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-hero {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 32px;
    row-gap: 24px;
    margin-bottom: 36px;
    align-items: center;
}

/* ── Hero content (left col on desktop, stacked below image on mobile) ─────── */
.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-content {
    order: 2;
}

/* ── Hero image (right col on desktop, above content on mobile) ─────────────  */
.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-image-wrapper {
    order: 1;
}

/* ── Hero category-links row — mirrors .lx-featured-landing-two-column-hero-article-categories ── */
.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-category-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

/* ── Category link above hero title ──────────────────────────────────────── */
.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-category-link {
    font-family: "Instrument Sans", sans-serif;
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 1.8px;
    line-height: 16px;
    text-transform: uppercase;
    text-decoration: underline;
    color: #000;
    display: inline-block;
    margin-bottom: 0;
}

/* ── Hero title ───────────────────────────────────────────────────────────── */
.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-title {
    font-family: "Libre Caslon Display", serif;
    font-size: 32px;
    line-height: 40px;
    font-weight: 400;
    margin-bottom: 32px;
}

.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-title a {
    font-family: "Libre Caslon Display", serif;
    font-size: 32px;
    line-height: 40px;
    font-weight: 400;
    text-decoration: none;
    color: #000;
    display: block;
    transition: opacity 0.2s ease;
}

.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-title a:hover {
    opacity: 0.7;
}

/* ── Hero meta (author / date) ────────────────────────────────────────────── */
.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-meta {
    font-family: "Instrument Sans", sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #000;
}

/* ── Hero image wrapper ───────────────────────────────────────────────────── */
.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-image-wrapper {
    position: relative;
    overflow: hidden;
}

.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-image-wrapper a {
    display: block;
    overflow: hidden;
    background-color: #e5e5e5;
}

.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-image {
    width: 100%;
    height: auto;
    min-height: 336px;
    max-height: 336px;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
    transition: transform 0.5s ease;
}

.lx-featured-landing-two-column-hero-section
.lx-featured-landing-two-column-hero-image-wrapper:hover
.lx-featured-landing-two-column-hero-image {
    transform: scale(1.05);
}

/* ── Article grid ─────────────────────────────────────────────────────────── */
.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 24px;
    row-gap: 24px;
    transition: opacity 0.3s ease;
}

/* ── Article card ─────────────────────────────────────────────────────────── */
.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-article-card {
    display: block;
    text-decoration: none;
    color: #000;
}

/* ── Article image wrapper ────────────────────────────────────────────────── */
.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-article-image-link {
    display: block;
}

.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-article-image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #e5e5e5;
    margin-bottom: 24px;
    height: 336px;
    min-height: 336px;
    max-height: 336px;
}

.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-article-image-wrapper a {
    display: block;
    text-decoration: none;
    overflow: hidden;
}

.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-article-image {
    width: 100%;
    height: 100%;
    min-height: 336px;
    max-height: 336px;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
    transition: transform 0.5s ease;
}

.lx-featured-landing-two-column-hero-section
.lx-featured-landing-two-column-hero-article-image-wrapper:hover
.lx-featured-landing-two-column-hero-article-image {
    transform: scale(1.05);
}

/* ── Gold flag ────────────────────────────────────────────────────────────── */
.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-article-gold-flag {
    display: none;
    position: absolute;
    top: 0;
    right: 24px;
    z-index: 11;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.3));
}

.lx-featured-landing-two-column-hero-section .lx-flch-article-is-gold-list
.lx-featured-landing-two-column-hero-article-gold-flag {
    display: block;
}

/* ── Year badges ──────────────────────────────────────────────────────────── */
.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-article-badges {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-article-badge {
    background-color: #ffffff;
    padding: 8px 20px;
    font-family: "Instrument Sans", sans-serif;
    font-size: 13px;
    font-weight: 400;
    border-radius: 20px;
    display: inline-block;
    text-decoration: none;
    color: #000000;
    line-height: 16px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* ── Category labels ──────────────────────────────────────────────────────── */
.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-article-categories {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-article-category {
    font-family: "Instrument Sans", sans-serif;
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 1.8px;
    line-height: 16px;
    text-transform: uppercase;
    display: inline-block;
    text-decoration: underline;
    color: #000;
    transition: opacity 0.2s ease;
}

.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-article-category:hover {
    opacity: 0.6;
}

.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-article-category-dot {
    font-family: "Instrument Sans", sans-serif;
    font-size: 12px;
    line-height: 16px;
    color: #000;
    text-decoration: none;
}

/* ── Article title ────────────────────────────────────────────────────────── */
.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-article-title {
    font-family: "Libre Caslon Display", serif;
    font-size: 32px;
    line-height: 40px;
    font-weight: 400;
    margin: 0;
}

.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-article-title a {
    font-family: "Libre Caslon Display", serif;
    font-size: 32px;
    line-height: 40px;
    font-weight: 400;
    text-decoration: none;
    color: #000;
    display: block;
    transition: opacity 0.2s ease;
}

.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-article-title a:hover {
    opacity: 0.7;
}

/* ── No results ───────────────────────────────────────────────────────────── */
.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-no-results {
    font-family: "Instrument Sans", sans-serif;
    font-size: 16px;
    color: #666;
    grid-column: 1 / -1;
    padding: 32px 0;
}

/* ── Load More — hidden by default; .lx-featured-landing-two-column-hero-show-load-more shows it ── */
.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-load-more-wrapper {
    display: none;
    justify-content: center;
    margin-top: 48px;
}

.lx-featured-landing-two-column-hero-section.lx-featured-landing-two-column-hero-show-load-more
.lx-featured-landing-two-column-hero-load-more-wrapper {
    display: flex;
}

.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-load-more {
    font-family: "Instrument Sans", sans-serif;
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 1.8px;
    line-height: 16px;
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
    border: 1px solid #000;
    padding: 0 32px;
    height: 48px;
    min-width: 64px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
    background: #fff;
}

.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-load-more:hover {
    background-color: #000;
    color: #fff;
}

.lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-load-more.is-loading {
    opacity: 0.6;
    cursor: wait;
}

/* ── 2-col grid — tablet ──────────────────────────────────────────────────── */
@media (min-width: 768px) {
    .lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* ── Desktop — min-width: 1280px ──────────────────────────────────────────── */
@media (min-width: 1280px) {
    .lx-featured-landing-two-column-hero-section {
        padding: 64px 0;
        margin: 0;
    }

    /* Hero row — two columns, content left / image right */
    .lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-hero {
        grid-template-columns: 1fr 1fr;
        column-gap: 32px;
        row-gap: 24px;
        align-items: start;
    }

    .lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-content {
        order: 1;
    }

    .lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-image-wrapper {
        order: 2;
    }

    /* Hero title — larger on desktop */
    .lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-title {
        font-size: 64px;
        line-height: 74px;
    }

    .lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-title a {
        font-size: 64px;
        line-height: 74px;
    }

    /* Hero meta — larger on desktop */
    .lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-meta {
        font-size: 16px;
        line-height: 24px;
    }

    /* Hero image — taller on desktop */
    .lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-image {
        min-height: 418px;
        max-height: 418px;
    }

    /* Article grid — 3 columns on desktop */
    .lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-articles-grid {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 24px;
        row-gap: 24px;
    }

    /* Article images — taller on desktop */
    .lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-article-image {
        height: 100%;
        min-height: 273px;
        max-height: 273px;
    }

    .lx-featured-landing-two-column-hero-section .lx-featured-landing-two-column-hero-article-image-wrapper {
        height: 273px;
        min-height: 273px;
        max-height: 273px;
    }
}

/* ── Partner Content card ─────────────────────────────────────────────────── */

/* Outer card wrapper — sits in normal grid flow */
.lx-featured-landing-two-column-hero-section .lx-flch-partner-card {
    display: block;
}

/* ── Nativo slot container ────────────────────────────────────────────────── */
.lx-featured-landing-two-column-hero-section .lx-flch-nativo-slot {
    display: block;
    width: 100%;
}

/* ── Nativo injected anchor wrapper ────────────────────────────────────────── */
.lx-featured-landing-two-column-hero-section .lx-flch-nativo-slot a,
.lx-featured-landing-two-column-hero-section .lx-flch-nativo-slot .ntv-headline-anchor {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ── Nativo injected image container (.ntv-img) ──────────────────────────── */
.lx-featured-landing-two-column-hero-section .lx-flch-nativo-slot .ntv-img {
    position: relative;
    width: 100%;
    height: 336px !important;
    min-height: 336px;
    overflow: hidden;
    background-color: #e5e5e5;
    margin-bottom: 16px !important;
    display: block;
}

.lx-featured-landing-two-column-hero-section .lx-flch-nativo-slot .ntv-img-size {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Nativo image itself */
.lx-featured-landing-two-column-hero-section .lx-flch-nativo-slot img,
.lx-featured-landing-two-column-hero-section .lx-flch-nativo-slot .c-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
    transition: transform 0.5s ease;
}

.lx-featured-landing-two-column-hero-section .lx-flch-nativo-slot a:hover img,
.lx-featured-landing-two-column-hero-section .lx-flch-nativo-slot a:hover .c-image {
    transform: scale(1.05);
}

/* ── Nativo disc wrap — "Partner Content" disclosure label row ─────────────── */
.lx-featured-landing-two-column-hero-section .lx-flch-nativo-slot .ntv-disc-wrap {
    display: flex !important;
    align-items: center;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
}

/* Nativo "Partner Content" pill inside disc wrap */
.lx-featured-landing-two-column-hero-section .lx-flch-nativo-slot .c-link {
    font-family: "Instrument Sans", sans-serif !important;
    font-size: 12px !important;
    font-weight: normal !important;
    letter-spacing: 1.8px !important;
    line-height: 16px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    color: #000 !important;
    border: 1px solid rgba(0, 0, 0, 0.5) !important;
    padding: 3px 8px 2px !important;
    border-radius: 0 !important;
    background: transparent !important;
    display: inline-block !important;
    position: static !important;
    top: auto !important;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.lx-featured-landing-two-column-hero-section .lx-flch-nativo-slot .c-link:hover {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
}

/* ── Nativo injected headline ────────────────────────────────────────────── */
.lx-featured-landing-two-column-hero-section .lx-flch-nativo-slot h2,
.lx-featured-landing-two-column-hero-section .lx-flch-nativo-slot h3,
.lx-featured-landing-two-column-hero-section .lx-flch-nativo-slot .ntv-headline {
    font-family: "Libre Caslon Display", serif !important;
    font-size: 32px !important;
    line-height: 40px !important;
    font-weight: 400 !important;
    letter-spacing: initial !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
}

/* ── "Partner Content" label (used in placeholder) ──────────────────────── */
.lx-featured-landing-two-column-hero-section .lx-flch-partner-label {
    font-family: "Instrument Sans", sans-serif;
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 1.8px;
    line-height: 16px;
    text-transform: uppercase;
    text-decoration: none !important;
    color: #000;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.5);
    padding: 3px 8px 2px;
    cursor: default;
    pointer-events: none;
}

/* ── Placeholder card (shown when no Placement ID is configured) ─────────── */

/* Image wrapper — identical dimensions to article-image-wrapper */
.lx-featured-landing-two-column-hero-section .lx-flch-partner-image-wrap {
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    height: 336px;
    min-height: 336px;
    max-height: 336px;
    background-color: #e5e5e5;
}

/* Fill div */
.lx-featured-landing-two-column-hero-section .lx-flch-partner-img-fill {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e5e5;
}

/* Centred label inside the grey image area */
.lx-featured-landing-two-column-hero-section .lx-flch-partner-img-label {
    font-family: "Instrument Sans", sans-serif;
    font-size: 12px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #999;
}

/* ── Desktop overrides for partner content ───────────────────────────────── */
@media (min-width: 1280px) {
    .lx-featured-landing-two-column-hero-section .lx-flch-nativo-slot .ntv-img {
        height: 273px !important;
        min-height: 273px;
    }

    .lx-featured-landing-two-column-hero-section .lx-flch-partner-image-wrap {
        height: 273px;
        min-height: 273px;
        max-height: 273px;
    }
}

/* ── Gutenberg editor preview ─────────────────────────────────────────────── */
.block-editor-block-list__block .lx-featured-landing-two-column-hero-section {
    pointer-events: none;
}

/* Ensure partner placeholder image area has correct height in the editor */
.block-editor-block-list__block .lx-flch-partner-image-wrap {
    height: 336px;
    min-height: 336px;
    max-height: 336px;
}

@media (min-width: 1280px) {
    .block-editor-block-list__block .lx-flch-partner-image-wrap {
        height: 273px;
        min-height: 273px;
        max-height: 273px;
    }
}

.block-editor-block-list__block .lx-flch-partner-img-fill {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
}

/* ── Region label show / hide ────────────────────────────────────────────────
 * .lx-flch-region-wrap wraps the bullet dot + region label together.
 * Hidden by default; .lx-flch-show-region on the section reveals it.
 * --------------------------------------------------------------------------- */
.lx-featured-landing-two-column-hero-section .lx-flch-region-wrap {
    display: none;
}
/* ✅ FIXED VERSION */
.lx-featured-landing-two-column-hero-section.lx-flch-show-region .lx-flch-region-wrap {
    display: inline-flex;        /* FIX: aligns properly with other inline items */
    align-items: center;         /* FIX: vertical alignment */
    gap: 4px;                    /* FIX: matches category spacing */
    margin-left: 0;              /* FIX: removes offset causing misalignment */
    white-space: nowrap;         /* FIX: prevents awkward wrapping */
}