/* ============================================================
   NTM Homepage Hero — Editorial Cover Story Slider (Figma redesign)

   Two-column layout at desktop (lead | feature). The slider nav
   arrows sit inside .feature, pinned absolutely to the lower-left
   corner of the card column (just outside the card edge). The card
   is a single block: photo on top + dark body underneath.
   ============================================================ */

.ntm-hero-editorial {
    position: relative;
    overflow: hidden;
    background-color: var(--ntm-bg-dark);
    color: var(--ntm-ink-inverse);
    font-family: var(--ntm-font-sans);
    isolation: isolate;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Decorative arcs --------------------------------------- */
.ntm-hero-editorial__arc {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    line-height: 0;
}

.ntm-hero-editorial__arc img {
    width: 100%;
    height: auto;
    display: block;
}

.ntm-hero-editorial__arc--top {
    top: -4%;
    right: -6%;
    width: 42%;
    max-width: 720px;
    opacity: 0.9;
}

.ntm-hero-editorial__arc--bottom {
    bottom: -16%;
    left: -4%;
    width: 95%;
    max-width: 1500px;
    opacity: 0.95;
}

/* --- Layout shell ------------------------------------------ */
.ntm-hero-editorial__container {
    position: relative;
    z-index: 2;
    max-width: var(--ntm-container-max);
    padding-top: clamp(56px, 5.2vw, 100px);
    padding-bottom: clamp(56px, 5.5vw, 110px);
}

.ntm-hero-editorial__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

@media (min-width: 992px) {
    .ntm-hero-editorial__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
        column-gap: clamp(80px, 8vw, 140px);
        align-items: center;
    }
}

/* --- Left column ------------------------------------------- */
.ntm-hero-editorial__lead {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
    max-width: 640px;
}

.ntm-hero-editorial__display {
    margin: 0;
    font-family: var(--ntm-font-serif);
    font-weight: 400;
    font-size: clamp(2.5rem, 4.6vw, 5rem);
    line-height: 1.04;
    letter-spacing: -0.01em;
    color: var(--ntm-ink-inverse);
}

.ntm-hero-editorial__display-line {
    display: block;
}

.ntm-hero-editorial__display-line--italic {
    font-style: italic;
    color: var(--ntm-accent-teal);
}

/* --- Quote --------------------------------------------- */
.ntm-hero-editorial__quote-swiper {
    width: 100%;
    max-width: 560px;
    margin: 0;
    overflow: hidden;
}

.ntm-hero-editorial__quote {
    margin: 0;
    padding: 4px 0 4px 20px;
    border-left: 2px solid var(--ntm-accent-teal);
    font-family: var(--ntm-font-serif);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.05rem, 1.3vw, 1.5rem);
    line-height: 1.2;
    color: var(--ntm-ink-inverse);
}

.ntm-hero-editorial__quote p {
    margin: 0;
}

.ntm-hero-editorial__quote--empty {
    min-height: 1px;
    border-left: 0;
    padding: 0;
}

.ntm-hero-editorial__tagline {
    margin: 0;
    font-family: var(--ntm-font-sans);
    font-weight: 400;
    font-size: clamp(0.9375rem, 1.05vw, 1.25rem);
    line-height: 1.32;
    letter-spacing: 0.04em;
    color: var(--ntm-ink-inverse);
    max-width: 560px;
}

/* --- CTA --------------------------------------------- */
.ntm-hero-editorial__actions {
    display: flex;
    align-items: center;
}

.ntm-hero-editorial__cta {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    width: 288px;
    height: 49px;
    background-color: transparent;
    border: 0.5px solid var(--ntm-ink-inverse);
    color: var(--ntm-ink-inverse);
    font-family: var(--ntm-font-sans);
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ntm-hero-editorial__cta:hover,
.ntm-hero-editorial__cta:focus-visible {
    background-color: var(--ntm-accent-teal);
    border-color: var(--ntm-accent-teal);
    color: var(--ntm-ink-inverse);
    text-decoration: none;
}

/* --- Right column: cover-story card + nav ----------------- */
.ntm-hero-editorial__feature {
    position: relative;
    width: 100%;
    min-width: 0;
    justify-self: end;
}

.ntm-hero-editorial__card-swiper {
    margin: 30px 0;
    width: 100%;
    overflow: hidden;
}

/* Nav arrows — pinned to the lower-left of the feature column,
   sitting in the gap just outside the card's left edge. */
.ntm-hero-editorial__nav {
    position: absolute;
    left: -130px;
    bottom: 30px;
    z-index: 6;
    display: flex;
    gap: 12px;
}

.ntm-hero-editorial__nav-btn {
    box-sizing: border-box;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--ntm-ink-inverse);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    font-size: 1.125rem;
    font-family: var(--ntm-font-sans);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.ntm-hero-editorial__nav-btn:hover:not(:disabled),
.ntm-hero-editorial__nav-btn:focus-visible {
    border-color: var(--ntm-accent-teal);
    color: var(--ntm-accent-teal);
}

.ntm-hero-editorial__nav-btn--next {
    color: var(--ntm-accent-teal);
    border-color: rgba(42, 139, 148, 0.45);
}

.ntm-hero-editorial__nav-btn.swiper-button-disabled {
    opacity: 0.4;
    cursor: default;
}

/* --- Card ------------------------------------------------ */
.ntm-hero-editorial__card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #0f0f0f;
    color: var(--ntm-ink-inverse);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 24px 16px rgba(15, 15, 15, 0.4);
    overflow: hidden;
}

.ntm-hero-editorial__card-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    text-decoration: none;
    text-indent: -9999px;
    overflow: hidden;
}

/* Photo block: landscape (5:4). */
.ntm-hero-editorial__card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    background-color: #1d1d1d;
}

.ntm-hero-editorial__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.5s ease;
}

.ntm-hero-editorial__card:hover .ntm-hero-editorial__card-img {
    transform: scale(1.02);
}

/* Cover Story pill — top-right, overlaying the photo. */
.ntm-hero-editorial__card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background-color: var(--ntm-accent-teal);
    border: 1px solid var(--ntm-accent-teal);
    color: var(--ntm-ink-inverse);
    font-family: var(--ntm-font-sans);
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
    line-height: 1.3;
    text-transform: uppercase;
}

/* Body block — dark surface below the photo. */
.ntm-hero-editorial__card-body {
    position: relative;
    z-index: 1;
    padding: 26px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    background-color: #0f0f0f;
}

.ntm-hero-editorial__card-chip {
    align-self: flex-start;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--ntm-ink-inverse);
    font-family: var(--ntm-font-sans);
    font-weight: 400;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    line-height: 1.45;
}

.ntm-hero-editorial__card-title {
    margin: 0;
    font-family: var(--ntm-font-serif);
    font-weight: 400;
    font-size: clamp(1.375rem, 1.8vw, 2rem);
    line-height: 1.12;
    color: var(--ntm-ink-inverse);
}

.ntm-hero-editorial__card-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
}

.ntm-hero-editorial__card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ntm-hero-editorial__card-author {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ntm-hero-editorial__card-author-name {
    margin: 0;
    font-family: var(--ntm-font-sans);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--ntm-ink-inverse);
}

.ntm-hero-editorial__card-author-role {
    margin: 0;
    font-family: var(--ntm-font-sans);
    font-weight: 400;
    font-size: 0.9375rem;
    letter-spacing: 0.04em;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.65);
}

.ntm-hero-editorial__card-read {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 0;
    color: var(--ntm-ink-inverse);
    font-family: var(--ntm-font-sans);
    font-weight: 400;
    font-size: 0.9375rem;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 4px;
    white-space: nowrap;
}

.ntm-hero-editorial__card-read-icon {
    display: inline-block;
    line-height: 1;
    font-size: 1.125rem;
    transform: translateY(-1px);
}

.ntm-hero-editorial__card:hover .ntm-hero-editorial__card-read {
    color: var(--ntm-accent-teal);
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 1199.98px) and (min-width: 992px) {
    .ntm-hero-editorial__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
        column-gap: clamp(60px, 6vw, 100px);
    }
    .ntm-hero-editorial__nav {
        left: -100px;
    }
}

@media (max-width: 991.98px) {
    .ntm-hero-editorial__arc--top {
        width: 75%;
        top: -3%;
        right: -10%;
    }
    .ntm-hero-editorial__arc--bottom {
        width: 160%;
        left: -30%;
        bottom: -12%;
        opacity: 0.85;
    }
    .ntm-hero-editorial__feature {
        justify-self: stretch;
        max-width: 540px;
        margin: 0 auto;
    }
    .ntm-hero-editorial__nav {
        position: static;
        margin-top: 24px;
        order: 2;
    }
    .ntm-hero-editorial__card-swiper {
        order: 1;
    }
    .ntm-hero-editorial__feature {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .ntm-hero-editorial__display {
        font-size: clamp(2rem, 9vw, 3rem);
    }
    .ntm-hero-editorial__cta {
        width: 100%;
        max-width: 320px;
    }
    .ntm-hero-editorial__card-body {
        padding: 22px 22px 26px;
    }
    .ntm-hero-editorial__card-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .ntm-hero-editorial__card-badge {
        top: 14px;
        right: 14px;
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}
