/* ============================================================
   NTM Masterclasses — Listing page (editorial light)

   Scoped under .ntm-mc-listing. Palette and tokens kept local so
   the redesign does not bleed into the rest of the site. Header
   and footer (NTM masthead + common footer) are untouched.
   ============================================================ */

.ntm-mc-listing {
    --bg: #FFFFFF;
    --bg-soft: #F5EFE0;
    --ivory: #FAFAF7;
    --ink: #0A0E14;
    --ink-soft: #1A1A1A;
    --ink-mute: #5A5A5A;
    --ink-faint: #999285;
    --rule: #E5E0D5;
    --rule-soft: #EFE8D5;
    --teal: #0F4A48;
    --teal-deep: #083635;

    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

.ntm-mc-listing a { color: inherit; text-decoration: none; }
.ntm-mc-listing button { font-family: inherit; }

.ntm-mc-listing__container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 48px;
}

/* ───────── HERO ───────── */
.ntm-mc-hero {
    padding: 96px 0 64px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    border-bottom: 1px solid var(--rule);
}

.ntm-mc-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 56px;
}
.ntm-mc-breadcrumb a:hover { color: var(--ink); }
.ntm-mc-breadcrumb .sep,
.ntm-mc-breadcrumb .current { color: var(--teal); }

.ntm-mc-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 32px;
}
.ntm-mc-hero__label::before,
.ntm-mc-hero__label::after {
    content: '';
    width: 32px; height: 1px;
    background: var(--teal);
}

.ntm-mc-hero__title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    font-size: clamp(52px, 7.5vw, 120px);
    line-height: 0.92;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin: 0;
}
.ntm-mc-hero__title em {
    font-style: italic;
    color: var(--teal);
}

.ntm-mc-hero__standfirst {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(18px, 1.7vw, 22px);
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 60ch;
    margin: 32px auto 0;
}

/* ───────── FILTER BAR (sticky) ───────── */
.ntm-mc-filter-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rule);
    padding: 20px 0;
    margin-top: 0;
}
.ntm-mc-filter-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.ntm-mc-filter-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.ntm-mc-filter-chip {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-mute);
    padding: 8px 16px;
    border: 1px solid var(--rule);
    background: transparent;
    cursor: pointer;
    transition: all .25s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.ntm-mc-filter-chip:hover {
    color: var(--ink);
    border-color: var(--ink-mute);
}
.ntm-mc-filter-chip.is-active {
    color: var(--ivory);
    background: var(--teal);
    border-color: var(--teal);
}

.ntm-mc-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--rule);
    padding: 6px 14px;
    transition: border-color .25s ease;
    width: 280px;
    border-radius: 999px;
    background: var(--ivory);
}
.ntm-mc-search:focus-within { border-color: var(--teal); }
.ntm-mc-search svg {
    width: 14px; height: 14px;
    stroke: var(--ink-mute);
    flex-shrink: 0;
}
.ntm-mc-search input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--ink);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    width: 100%;
    padding: 4px 0;
}
.ntm-mc-search input::placeholder { color: var(--ink-mute); }
.ntm-mc-search__clear {
    background: transparent;
    border: 0;
    color: var(--ink-mute);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 4px;
    transition: color .2s ease;
}
.ntm-mc-search__clear:hover { color: var(--teal); }

/* ───────── FEATURED MASTERCLASS ───────── */
.ntm-mc-featured-section {
    padding: 80px 0 64px;
}

.ntm-mc-featured {
    background: var(--ivory);
    border: 1px solid var(--rule);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    cursor: pointer;
    transition: all .3s ease;
    min-height: 520px;
}
.ntm-mc-featured:hover {
    border-color: var(--teal);
    transform: translateY(-3px);
}
.ntm-mc-featured__img {
    background-size: cover;
    background-position: center;
    filter: contrast(1.05);
    position: relative;
    min-height: 320px;
}
.ntm-mc-featured__badge {
    position: absolute;
    top: 24px; left: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 14px;
    font-size: 9px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 600;
    border: 1px solid rgba(15, 74, 72, 0.3);
}
.ntm-mc-featured__body {
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ntm-mc-featured__num {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 300;
    font-size: 14px;
    color: var(--teal);
    margin-bottom: 16px;
}
.ntm-mc-featured__num .divider {
    margin: 0 12px;
    color: var(--ink-faint);
    font-style: normal;
}
.ntm-mc-featured__cat {
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 18px;
}
.ntm-mc-featured__title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    font-size: clamp(28px, 2.8vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0;
}
.ntm-mc-featured__title em { font-style: italic; color: var(--teal); }
.ntm-mc-featured__standfirst {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin-top: 22px;
}
.ntm-mc-featured__instructor {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.ntm-mc-featured__inst-label {
    font-size: 9px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-mute);
    font-weight: 500;
    margin-bottom: 4px;
}
.ntm-mc-featured__inst-name {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-size: 17px;
    color: var(--ink);
}
.ntm-mc-featured__inst-name em { color: var(--teal); }
.ntm-mc-featured__arrow {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 22px;
    color: var(--teal);
    transition: transform .3s ease;
    flex-shrink: 0;
}
.ntm-mc-featured:hover .ntm-mc-featured__arrow {
    transform: translateX(6px);
}

/* ───────── GRID ───────── */
.ntm-mc-classes-section {
    padding: 32px 0 96px;
}

.ntm-mc-classes-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rule);
    flex-wrap: wrap;
    gap: 24px;
}
.ntm-mc-classes-head h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.0;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0;
}
.ntm-mc-classes-head h2 em { font-style: italic; color: var(--teal); }
.ntm-mc-classes-head__count {
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.ntm-mc-classes-head__count strong { color: var(--teal); }

.ntm-mc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.ntm-mc-card {
    background: var(--ivory);
    border: 1px solid var(--rule);
    overflow: hidden;
    cursor: pointer;
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
    color: inherit;
}
.ntm-mc-card:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
}
.ntm-mc-card__img {
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    filter: contrast(1.05);
    position: relative;
}
.ntm-mc-card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(10, 14, 20, 0.4) 100%);
}
.ntm-mc-card__img--empty {
    background: linear-gradient(135deg, #1f2228 0%, #353a44 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 2rem;
}
.ntm-mc-card__badge {
    position: absolute;
    top: 16px; right: 16px;
    background: rgba(10, 14, 20, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    font-size: 9px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ivory);
    font-weight: 500;
    z-index: 2;
}
.ntm-mc-card__badge--free { background: var(--teal); }
.ntm-mc-card__badge--owned { background: var(--teal-deep); }
.ntm-mc-card__badge--locked { background: rgba(10, 14, 20, 0.85); }

.ntm-mc-card__body {
    padding: 28px 28px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ntm-mc-card__cat {
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 12px;
}
.ntm-mc-card__title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 20px;
    transition: color .25s ease;
}
.ntm-mc-card__title em { font-style: italic; color: var(--teal); }
.ntm-mc-card:hover .ntm-mc-card__title { color: var(--teal); }

.ntm-mc-card__instructor {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
}
.ntm-mc-card__inst-label {
    font-size: 9px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-mute);
    font-weight: 500;
    margin-bottom: 6px;
}
.ntm-mc-card__inst-name {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.ntm-mc-card__inst-name em { font-style: italic; color: var(--teal); }

/* ───────── PAGINATION ───────── */
.ntm-mc-pagination {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.ntm-mc-pagination__info {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin: 0;
}
.ntm-mc-pagination__info strong { color: var(--teal); }
.ntm-mc-pagination__controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ntm-mc-pag-btn {
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--rule);
    background: transparent;
    cursor: pointer;
    transition: all .25s ease;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 16px;
    color: var(--ink-mute);
    border-radius: 50%;
    text-decoration: none;
}
.ntm-mc-pag-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
}
.ntm-mc-pag-btn.is-active {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--ivory);
    cursor: default;
}
.ntm-mc-pag-btn.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.ntm-mc-pag-btn--arrow {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    width: auto;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    height: 42px;
}
.ntm-mc-pag-ellipsis {
    display: inline-block;
    color: var(--ink-mute);
    padding: 0 6px;
    font-family: 'Fraunces', Georgia, serif;
}

/* ───────── EMPTY ───────── */
.ntm-mc-empty {
    text-align: center;
    padding: 80px 24px;
    border: 1px dashed var(--rule);
    background: var(--ivory);
}
.ntm-mc-empty h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    font-size: clamp(28px, 3vw, 40px);
    color: var(--ink);
    margin: 0 0 12px;
}
.ntm-mc-empty h3 em { font-style: italic; color: var(--teal); }
.ntm-mc-empty p {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 300;
    font-size: 17px;
    color: var(--ink-mute);
    margin: 0;
}

/* ───────── SPEAK CTA ───────── */
.ntm-mc-speak {
    padding: 120px 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.ntm-mc-speak__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.ntm-mc-speak__label {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 24px;
}
.ntm-mc-speak__label::before {
    content: '';
    width: 32px; height: 1px;
    background: var(--teal);
}
.ntm-mc-speak__title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    font-size: clamp(40px, 5vw, 72px);
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin: 0;
}
.ntm-mc-speak__title em { font-style: italic; color: var(--teal); }
.ntm-mc-speak__copy {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 28px 0 0;
    max-width: 48ch;
}
.ntm-mc-speak__cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 20px 40px;
    background: var(--teal);
    color: var(--ivory) !important;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 600;
    transition: all .3s ease;
    margin-top: 36px;
}
.ntm-mc-speak__cta:hover {
    background: var(--teal-deep);
    gap: 18px;
    color: var(--ivory) !important;
    text-decoration: none;
}

.ntm-mc-speak__benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--rule);
}
.ntm-mc-speak__benefit {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--rule);
    align-items: start;
}
.ntm-mc-speak__benefit-num {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 300;
    font-size: 28px;
    color: var(--teal);
    line-height: 1;
}
.ntm-mc-speak__benefit h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: 19px;
    line-height: 1.25;
    color: var(--ink);
    margin: 0 0 6px;
}
.ntm-mc-speak__benefit h4 em { font-style: italic; color: var(--teal); }
.ntm-mc-speak__benefit p {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-mute);
    margin: 0;
}

/* ───────── EXPLORE MORE ───────── */
.ntm-mc-explore {
    padding: 96px 0;
    border-bottom: 1px solid var(--rule);
    background: var(--bg);
}
.ntm-mc-explore__head {
    text-align: center;
    margin-bottom: 56px;
}
.ntm-mc-explore__label {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 20px;
}
.ntm-mc-explore__label::before,
.ntm-mc-explore__label::after {
    content: '';
    width: 32px; height: 1px;
    background: var(--teal);
}
.ntm-mc-explore__title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.0;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0;
}
.ntm-mc-explore__title em { font-style: italic; color: var(--teal); }

.ntm-mc-explore__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.ntm-mc-explore-card {
    background: var(--ivory);
    border: 1px solid var(--rule);
    overflow: hidden;
    cursor: pointer;
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
    color: inherit;
}
.ntm-mc-explore-card:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
}
.ntm-mc-explore-card__img {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    filter: contrast(1.05);
}
.ntm-mc-explore-card__body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ntm-mc-explore-card__title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 12px;
}
.ntm-mc-explore-card__title em { font-style: italic; color: var(--teal); }
.ntm-mc-explore-card__copy {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-mute);
    flex: 1;
    margin: 0 0 18px;
}
.ntm-mc-explore-card__link {
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap .25s ease;
}
.ntm-mc-explore-card:hover .ntm-mc-explore-card__link { gap: 12px; }

/* ───────── RESPONSIVE ───────── */
@media (max-width: 1100px) {
    .ntm-mc-featured { grid-template-columns: 1fr; }
    .ntm-mc-featured__img { min-height: 320px; }
    .ntm-mc-featured__body { padding: 36px 32px; }
    .ntm-mc-grid { grid-template-columns: repeat(2, 1fr); }
    .ntm-mc-speak__grid { grid-template-columns: 1fr; gap: 48px; }
    .ntm-mc-explore__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .ntm-mc-listing__container { padding: 0 24px; }
    .ntm-mc-filter-bar__inner { flex-direction: column; align-items: stretch; }
    .ntm-mc-search { width: 100%; }
    .ntm-mc-grid { grid-template-columns: 1fr; }
    .ntm-mc-pagination { flex-direction: column; align-items: flex-start; }
    .ntm-mc-explore__grid { grid-template-columns: 1fr; }
    .ntm-mc-classes-head { flex-direction: column; align-items: flex-start; }
    .ntm-mc-hero { padding-top: 64px; }
}
