/* =====================================================================
   Talim Academy — New Home (Figma: "Desktop Hero — Talim Academy", 1440 × 7039)
   Desktop values are taken 1:1 from the Figma frame. Between 1024px and
   1440px the whole page is scaled with `zoom` (see new-home.js); below
   1024px the stacked mobile layout at the end of this file takes over.
   ===================================================================== */

:root {
    --nh-green: #005c32;
    --nh-green-btn: #015036;
    --nh-ink: #052b19;
    --nh-gold: #d3af5e;
    --nh-text: #444343;
    --nh-cream: #faf4ec;
    --nh-cream-line: #ffd475;
    --nh-footer: #012e1b;
    --nh-zoom: 1;
}

*, *::before, *::after { box-sizing: border-box; }

.nh-body {
    margin: 0;
    background: #fdfcf7;
    color: var(--nh-text);
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Zero-specificity reset so component classes always win. */
:where(.nh-body) :where(h1, h2, h3, h4, p, ul, blockquote) { margin: 0; padding: 0; }
:where(.nh-body) :where(ul) { list-style: none; }
:where(.nh-body) :where(a) { color: inherit; text-decoration: none; }
:where(.nh-body) :where(img) { display: block; max-width: none; }
:where(.nh-body) :where(button) { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }

/* The header and footer are also rendered inside the legacy Bootstrap layout
   (frontend.layouts.master); these class-scoped resets beat its element rules
   while staying below every component rule that follows. */
.nh-header, .nh-footer { font-family: 'Poppins', 'Hind Siliguri', sans-serif; line-height: normal; text-align: left; }
.nh-header { color: #2a2b2b; }
.nh-header :where(ul, p, h4, form), .nh-footer :where(ul, p, h4) { margin: 0; padding: 0; list-style: none; }
.nh-header :where(a), .nh-footer :where(a) { color: inherit; text-decoration: none; }
:where(.nh-header, .nh-footer) a:hover { color: inherit; }
.nh-header :where(img), .nh-footer :where(img) { display: block; width: auto; height: auto; max-width: none; }
.nh-header :where(button) { padding: 0; border: 0; border-radius: 0; background: none; font: inherit; color: inherit; cursor: pointer; }

.nh-page { overflow-x: hidden; overflow-x: clip; zoom: var(--nh-zoom); }
.nh-wrap { position: relative; width: 1440px; margin: 0 auto; }

/* Shared ------------------------------------------------------------ */
.nh-pill {
    position: relative;
    flex: none;
    width: var(--w);
    height: var(--h, 55px);
    border: 2px solid var(--nh-cream-line);
    border-radius: 32px;
}
.nh-pill--cream { background: var(--nh-cream); }
.nh-pill--white { background: #fff; }
.nh-pill__icon { position: absolute; left: calc(var(--ix) - 2px); top: calc(var(--iy) - 2px); }
.nh-pill__text {
    position: absolute;
    left: calc(var(--tx) - 2px);
    top: calc(var(--ty) - 2px);
    transform: translateX(-50%);
    white-space: nowrap;
    color: var(--nh-green);
    font-weight: 600;
}
.nh-pill__text--lg { font-size: 20px; line-height: 26px; }
.nh-pill__text--md { font-size: 16px; line-height: 26px; }

.nh-section-head { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.nh-h2 { color: var(--nh-ink); font-size: 42px; font-weight: 700; line-height: 63px; white-space: nowrap; }
.nh-h2--split { line-height: 51px; }
.nh-lead { color: var(--nh-text); font-size: 18px; line-height: 26px; }

.nh-btn {
    display: flex;
    align-items: center;
    height: 52px;
    border-radius: 22px;
    background: var(--nh-green);
    color: #fff !important;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .2s ease, transform .2s ease;
}
.nh-btn:hover { background: #014a28; }
.nh-btn--lg { height: 62px; font-size: 22px; }

/* An arrow drawn pointing down in Figma and rotated -90° into place; the
   margins swap its layout box to the rotated size. */
.nh-arrow-rot {
    flex: none;
    width: var(--aw);
    height: var(--ah);
    margin: calc((var(--aw) - var(--ah)) / 2) calc((var(--ah) - var(--aw)) / 2);
    transform: rotate(-90deg);
}

.nh-watermark { position: absolute; pointer-events: none; }
.nh-watermark img { position: absolute; }

/* Header ------------------------------------------------------------ */
.nh-header {
    position: relative;
    z-index: 20;
    height: 161px;
    background: linear-gradient(133.6deg, #fcfaf7 21.262%, #fcf1d9 72.012%) 0 -2px / 100% 973px no-repeat;
}
.nh-header__inner { display: flex; align-items: center; height: 161px; padding: 35px 60px 0 66px; }

.nh-logo { position: relative; flex: none; width: 148px; height: 72px; }
.nh-logo img { position: absolute; }

.nh-nav { display: flex; flex: 1; align-items: center; margin-left: 136px; }
.nh-nav__list { display: flex; gap: 32px; }
.nh-nav__list > li { position: relative; }
.nh-nav__list > li > a {
    position: relative;
    display: block;
    color: #2a2b2b;
    font-size: 15px;
    font-weight: 500;
    line-height: 23px;
    white-space: nowrap;
}
.nh-nav__list > li > a.is-active::after {
    content: '';
    position: absolute;
    left: 2px;
    right: 0;
    top: 34px;
    height: 2px;
    background: var(--nh-green);
}
.nh-nav__list > li > a:hover { color: var(--nh-green); }
.nh-nav__chevron { position: absolute; left: calc(100% + 5px); top: 10.8px; }
.nh-nav__menu {
    position: absolute;
    top: calc(100% + 18px);
    left: -16px;
    min-width: 210px;
    padding: 10px 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(5, 43, 25, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nh-nav__has-menu::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 20px; }
.nh-nav__has-menu:hover .nh-nav__menu,
.nh-nav__has-menu:focus-within .nh-nav__menu { opacity: 1; visibility: visible; transform: none; }
.nh-nav__menu a { display: block; padding: 9px 18px; color: #2a2b2b; font-size: 15px; font-weight: 500; }
.nh-nav__menu a:hover { background: var(--nh-cream); color: var(--nh-green); }

.nh-header__actions { display: flex; align-items: center; margin-left: auto; }
.nh-lang-wrap { position: relative; }
.nh-lang-wrap::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.nh-header .nh-lang {
    display: flex;
    align-items: center;
    width: 115px;
    height: 39px;
    padding-left: 14.3px;
    border: 1px solid #d0d0d0;
    border-radius: 18px;
    color: #2a2b2b;
    font-size: 15px;
    font-weight: 500;
    line-height: 23px;
}
.nh-lang__globe { margin-right: 6.3px; }
.nh-lang__chevron { margin-left: 7px; }
.nh-lang__menu {
    position: absolute;
    z-index: 30;
    right: 0;
    top: calc(100% + 10px);
    display: flex;
    flex-direction: column;
    min-width: 170px;
    padding: 8px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(5, 43, 25, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nh-lang-wrap:hover .nh-lang__menu,
.nh-lang-wrap:focus-within .nh-lang__menu { opacity: 1; visibility: visible; transform: none; }
.nh-lang__label { padding: 6px 10px 2px; color: #8a8f8c; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.nh-lang__menu a, .nh-header .nh-lang__menu button {
    display: block;
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    color: #2a2b2b;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}
.nh-lang__menu a:hover, .nh-header .nh-lang__menu button:hover { background: var(--nh-cream); color: var(--nh-green); }
.nh-lang__menu .is-active { color: var(--nh-green); font-weight: 600; }
.nh-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin-left: 18px;
    border: 1px solid #d0d0d0;
    border-radius: 13px;
    color: var(--nh-green-btn);
    transition: background-color .2s ease;
}
.nh-header .nh-cart:hover { background: var(--nh-cream); color: var(--nh-green-btn); }
.nh-cart + .nh-btn-login { margin-left: 13px; }
.nh-btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 89px;
    padding: 0 16px;
    height: 45px;
    margin-left: 18px;
    border: 1px solid var(--nh-green-btn);
    border-radius: 13px;
    color: #2a2b2b;
    font-size: 15px;
    font-weight: 500;
    transition: background-color .2s ease, color .2s ease;
}
.nh-btn-login:hover { background: var(--nh-green-btn); color: #fff !important; }
.nh-btn-start {
    display: flex;
    align-items: center;
    width: 146px;
    height: 45px;
    margin-left: 13px;
    padding-left: 20px;
    border-radius: 13px;
    background: var(--nh-green-btn);
    color: #fff !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 23px;
    white-space: nowrap;
}
.nh-btn-start span { margin-left: 9px; font-weight: 600; }

.nh-burger { display: none; }

/* Hero -------------------------------------------------------------- */
.nh-hero { position: relative; height: 810px; overflow: hidden; background: #2b2318; }
.nh-hero__slide {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: left -88px;
    background-size: max(1754px, 100%) auto;
    opacity: 0;
    transition: opacity .7s ease;
}
.nh-hero__slide.is-active { opacity: 1; }
.nh-hero__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .48); }
.nh-hero__inner { height: 810px; }

.nh-hero__arrow { position: absolute; z-index: 2; top: 371px; width: 50px; height: 50px; border-radius: 50%; transition: transform .2s ease; }
.nh-hero__arrow img { margin: -.5px; }
.nh-hero__arrow:hover { transform: scale(1.06); }
.nh-hero__arrow--prev { left: 60px; }
.nh-hero__arrow--prev img { transform: scaleX(-1); }
.nh-hero__arrow--next { left: 1332px; }

.nh-hero__content {
    position: absolute;
    left: 0;
    right: 0;
    top: 87px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-align: center;
}
.nh-hero__badge .nh-pill__text { font-size: 15px; font-weight: 500; line-height: 22.5px; }
.nh-hero__badge-icon { width: 42px; height: 42px; }
.nh-hero__badge-mosque { position: absolute; left: 5px; top: 8px; }
.nh-hero__title {
    width: 841px;
    margin-top: 6px;
    color: #fff;
    font-size: 55px;
    font-weight: 700;
    line-height: 64px;
    letter-spacing: -1.3px;
}
.nh-hero__title span { color: var(--nh-gold); }
.nh-hero__text { width: 631px; margin-top: 5px; font-size: 17px; line-height: 29px; }
.nh-hero__actions { display: flex; gap: 15px; margin: 39px 0 0 56px; }
.nh-hero__btn {
    display: flex;
    align-items: center;
    height: 59px;
    border-radius: 14px;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease;
}
.nh-hero__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); }
.nh-hero__btn--primary { gap: 10px; width: 254px; padding-left: 30px; background: var(--nh-green); color: #fff !important; font-size: 17px; font-weight: 700; }
.nh-hero__btn--outline { gap: 15px; width: 283px; padding-left: 19px; border: 2px solid var(--nh-gold); background: #fff; color: var(--nh-green) !important; font-size: 15px; font-weight: 600; }

.nh-hero__dots { position: absolute; left: 667.15px; top: 721px; display: flex; gap: 8px; }
.nh-hero__dots button { width: 24.8px; height: 8px; border-radius: 9px; background: #b1b2b5; transition: background-color .3s ease; }
.nh-hero__dots button.is-active { background: var(--nh-gold); }

/* Stats · learners · programs -------------------------------------- */
.nh-learn {
    position: relative;
    height: 1488px;
    background: linear-gradient(50.354deg, #fcfaf7 3.278%, #fcf6e8 39.372%, #fcf1d9 75.466%);
}
.nh-learn__pattern {
    position: absolute;
    left: calc(50% - 897px);
    top: 471px;
    width: 1870px;
    height: 1017px;
    background: url('img/pattern-rot.webp') 0 -138px / 1870px no-repeat;
    opacity: .3075;
    pointer-events: none;
}
.nh-learn__arch-left {
    position: absolute;
    left: calc(50% - 720px);
    top: 246px;
    width: 629px;
    height: 1242px;
    opacity: .53;
    transform: scaleX(-1);
    pointer-events: none;
}
.nh-learn__arch-right { position: absolute; left: calc(50% + 286px); top: 1040px; width: 435px; height: 448px; opacity: .53; pointer-events: none; }
.nh-learn__inner { height: 1488px; }
.nh-learn__wm-right { left: 735px; top: 267px; }
.nh-learn__wm-left { left: 18px; top: 1287.8px; }

.nh-stats {
    position: absolute;
    z-index: 3;
    left: 135px;
    top: -43px;
    width: 1169px;
    height: 187px;
    border: 3px solid #fff;
    border-radius: 34px;
    background: linear-gradient(87.033deg, #f4dfb0 .814%, #fdf9ee 50.727%, #fdf9ef 72.266%, #fdfbf5 99.589%);
    box-shadow: 0 14px 28px -8px rgba(214, 172, 82, .38);
}
.nh-stats > * { position: absolute; }
.nh-stats__panel { left: 11.38px; top: 6.15px; width: 1153.4px; height: 168.7px; border-radius: 34px; background: linear-gradient(to right, #fef7e7, #fdfbf5); }
.nh-stats__students-icon { left: 59.77px; top: 20.54px; }
.nh-stats__item strong { display: block; color: #091310; font-weight: 700; white-space: nowrap; }
.nh-stats__item > span { display: block; color: #333; white-space: nowrap; }
.nh-stats__item--students { left: 220.69px; top: 23.15px; }
.nh-stats__item--students strong { font-size: 52px; line-height: 78px; }
.nh-stats__item--students > span { margin: -16px 0 0 2.62px; font-size: 30px; line-height: 45px; }
.nh-stats__bar { display: block; width: 62px; height: 4px; margin: 2.85px 0 0 2.85px; border-radius: 3px; background: var(--nh-gold); }
.nh-stats__item--mentors { left: 572.54px; top: 38px; }
.nh-stats__item--courses { left: 927.54px; top: 40px; }
.nh-stats__item--mentors strong, .nh-stats__item--courses strong { font-size: 45px; line-height: 67.5px; }
.nh-stats__item--mentors > span, .nh-stats__item--courses > span { font-size: 20px; line-height: 30px; }
.nh-stats__item--mentors > span { margin: -12.35px 0 0 -.46px; }
.nh-stats__item--courses > span { margin: -11.12px 0 0 3.54px; }
.nh-stats__divider { width: 3.5px; height: 103.3px; background: #e6e6e6; }
.nh-stats__divider--1 { left: 415.46px; top: 45.38px; }
.nh-stats__divider--2 { left: 754.15px; top: 41.46px; }
.nh-stats__circle--mentors { left: 454.65px; top: 42.73px; width: 89px; height: 89px; }
.nh-stats__cap { position: absolute; left: 19.05px; top: 27.87px; }
.nh-stats__courses-icon { left: 798.62px; top: 43px; }

.nh-learners { position: absolute; left: 266px; top: 193px; display: flex; }
.nh-learners__avatars { position: relative; flex: none; width: 438.45px; height: 135.38px; }
.nh-avatar {
    position: absolute;
    top: 0;
    width: 135.38px;
    height: 135.38px;
    border: 4.51px solid #fff;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
}
.nh-avatar img { position: absolute; }
.nh-learners__text { position: relative; margin: 9px 0 0 18.55px; white-space: nowrap; }
.nh-learners__text strong { display: block; margin-bottom: -17px; color: var(--nh-green); font-size: 60px; font-weight: 700; line-height: 90px; }
.nh-learners__text > span:last-child { display: block; margin-left: 3px; color: #404342; font-size: 30px; line-height: 45px; }
.nh-learners__sparkle { position: absolute; left: 419px; top: -3px; width: 37.9px; height: 37.9px; }
.nh-learners__sparkle img { position: absolute; }

.nh-perks { position: absolute; left: 285.36px; top: 361px; display: flex; align-items: flex-start; }
.nh-perks__item { display: flex; align-items: flex-start; gap: 14.7px; }
.nh-perks__item:not(.nh-perks__item--last) { margin-right: 13px; }
.nh-perks__item--first { gap: 16.5px; }
.nh-perks__item + .nh-perks__item::before { content: ''; flex: none; width: 2px; height: 61.8px; margin: 3px 6.8px 0 0; background: #dcd7d7; }
.nh-perks__item:nth-child(2)::before { width: 2.5px; }
.nh-perks__item > span:last-child { flex: none; margin-top: 10px; color: var(--nh-text); font-size: 20px; font-weight: 500; line-height: 21px; }
.nh-perks__item--first > span:last-child { line-height: 22px; }
.nh-perks__heart { position: relative; flex: none; width: 68px; height: 68px; }
.nh-perks__heart-icon { position: absolute; left: 17.5px; top: 19.2px; }

.nh-programs__head { top: 513px; }
.nh-programs__head .nh-h2 { margin-top: 10.25px; transform: translateX(31px); }
.nh-programs__head .nh-lead { margin-top: 12px; transform: translateX(-8.5px); }

.nh-programs { position: absolute; left: 58px; top: 756px; display: flex; gap: 20px; }
.nh-program { position: relative; width: 430px; height: 528px; padding: 4px; border-radius: 27px; background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.nh-program:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(5, 43, 25, .1); }
.nh-program__media { position: relative; height: 286px; border-radius: 23px; overflow: hidden; }
.nh-program__media > img { position: absolute; }
.nh-program__live {
    position: absolute;
    left: 25px;
    top: 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    width: 176px;
    height: 36px;
    padding-left: 12px;
    border-radius: 19.5px;
    background: #f02c00;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    line-height: 25.5px;
}
.nh-program--adults .nh-program__live { left: 26px; gap: 12px; width: 99px; padding-left: 15px; color: #f4fbf8; }
.nh-program__body { position: absolute; left: 4px; top: 245px; width: 422px; height: 279px; padding: 11px 0 0 34px; border-radius: 27px; background: #fff; }
.nh-program__badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: 196px;
    height: 43px;
    margin-left: -10px;
    padding-left: 5px;
    border-radius: 22px;
    background: #f7eee1;
    color: var(--nh-green);
    font-size: 15px;
    font-weight: 600;
}
.nh-program__title { margin-top: 2px; color: var(--nh-ink); font-size: 26px; font-weight: 600; line-height: 39px; }
.nh-program__text { width: 373px; margin-top: 5px; color: #5e5e5e; font-size: 15px; font-weight: 500; line-height: 22px; }
.nh-program__meta { display: flex; align-items: center; margin: 23px 0 0 3px; }
.nh-program__meta li { display: flex; align-items: center; gap: 8px; color: #5e5e5e; font-size: 10px; font-weight: 500; line-height: 22px; white-space: nowrap; }
.nh-program__meta li + li::before { content: ''; width: 1px; height: 16px; margin: 0 2px 0 10px; background: #ccc; }
.nh-program__rule { position: absolute; left: 31px; top: 211px; }
.nh-program__link { position: absolute; left: 38px; top: 228px; display: flex; align-items: center; gap: 15px; color: var(--nh-green) !important; font-size: 17px; font-weight: 600; }
.nh-program--adults .nh-program__link { left: 42px; }
.nh-program__link img { transition: transform .2s ease; }
.nh-program__link:hover img { transform: translateX(3px); }

.nh-programs__all { position: absolute; left: 619px; top: 1373px; gap: 16px; width: 263px; height: 55px; padding-left: 31px; border-radius: 30px; }

/* Recorded courses -------------------------------------------------- */
.nh-recorded { position: relative; height: 781px; overflow: hidden; }
.nh-recorded__bg { position: absolute; left: calc(50% - 719px); top: -11px; width: 1550px; height: 792px; pointer-events: none; }
.nh-recorded__inner { height: 781px; }
.nh-recorded__mockup { position: absolute; left: 61px; top: 73px; width: 736px; height: 645px; border-radius: 41px; background: var(--nh-gold); }
.nh-recorded__screen { position: absolute; left: 8px; top: 7px; width: 720px; height: 631px; border-radius: 37px; overflow: hidden; }
.nh-recorded__screen img { position: absolute; left: -65px; top: -.25px; width: 842px; height: 631.5px; }
.nh-recorded__tag { position: absolute; left: 41px; top: 42px; width: 342px; height: 75px; border-radius: 15px; background: var(--nh-cream); }
.nh-recorded__tag img { position: absolute; left: 21px; top: 11px; }
.nh-recorded__tag strong { position: absolute; left: 89px; top: 13px; color: var(--nh-green); font-size: 20px; font-weight: 600; line-height: 30px; white-space: nowrap; }
.nh-recorded__tag span { position: absolute; left: 89px; top: 38px; color: var(--nh-text); font-size: 12px; line-height: 26px; white-space: nowrap; }

.nh-recorded__content { position: absolute; left: 853px; top: 80px; width: 540px; }
.nh-recorded__title { margin: 3.9px 0 0 5px; color: var(--nh-ink); font-size: 35px; font-weight: 700; line-height: 48.75px; white-space: nowrap; }
.nh-recorded__lead { margin: 13.6px 0 0 5px; font-size: 18px; line-height: 26px; white-space: nowrap; }
.nh-recorded__list { display: flex; flex-direction: column; gap: 20.67px; margin-top: 27px; }
.nh-recorded__list li { position: relative; padding-left: 77px; }
.nh-recorded__list img { position: absolute; left: -2px; top: -4px; }
.nh-recorded__list strong { display: block; color: #252424; font-size: 17px; font-weight: 600; line-height: 25.5px; }
.nh-recorded__list span { display: block; margin-top: -1.5px; font-size: 14px; line-height: 26px; }
.nh-recorded__btn { gap: 13px; width: 345px; margin-top: 33px; padding-left: 34px; }

/* Learner stories --------------------------------------------------- */
.nh-stories { position: relative; height: 987px; background: #fcfaf7; }
.nh-stories__inner { height: 987px; }
.nh-stories__wm { left: 853.1px; top: 2.2px; }
.nh-stories__head { top: 87px; }
.nh-stories__head .nh-pill { transform: translateX(8.5px); }
.nh-stories__head .nh-h2 { margin-top: .25px; transform: translateX(22.5px); }
.nh-stories__head .nh-lead { margin-top: 12px; transform: translateX(16.5px); }

.nh-story-video, .nh-review { position: absolute; border-radius: 17px; background: #fff; box-shadow: -3px 3px 12px 2px rgba(0, 0, 0, .1); }
.nh-story-video > *, .nh-review > * { position: absolute; }
.nh-story-video { left: 61px; top: 333px; width: 792px; height: 505px; }
.nh-story-video__media { left: 32px; top: 17px; width: 727.4px; height: 317px; border-radius: 23px; overflow: hidden; }
.nh-story-video__media img { position: absolute; left: -14.37px; top: -43.1px; width: 756.2px; height: 425.6px; }
.nh-story-video__quote-icon { left: 32px; top: 354.8px; }
.nh-story-video__quote { left: 106px; top: 353px; color: #365b3a; font-size: 20px; font-weight: 500; line-height: 26px; white-space: nowrap; }
.nh-story-video__person { left: 100px; top: 420px; }

.nh-person { padding-left: 92px; min-height: 72px; white-space: nowrap; }
.nh-person__photo { position: absolute; left: 0; top: 0; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; }
.nh-person__photo img { position: absolute; object-fit: cover; }
.nh-person strong { display: block; padding-top: 9px; color: var(--nh-ink); font-size: 18px; font-weight: 600; line-height: 27px; }
.nh-person > span:last-child { display: block; margin-top: -2px; color: #557c59; font-size: 15px; font-weight: 500; line-height: 26px; }

.nh-review { left: 875px; width: 504px; }
.nh-review--a { top: 333px; height: 259px; }
.nh-review--b { top: 606px; height: 232px; }
.nh-review__stars { left: 33px; top: 28px; }
.nh-review__quote-icon { left: 429px; top: 24px; }
.nh-review__text { left: 33px; top: 71px; color: #365b3a; font-size: 16px; font-weight: 500; line-height: 26px; white-space: nowrap; }
.nh-review .nh-person { left: 38px; top: 163px; padding-left: 90px; }
.nh-review .nh-person > span:last-child { margin-top: 0; }
.nh-review--b .nh-review__stars { top: 21px; }
.nh-review--b .nh-review__quote-icon { top: 16px; }
.nh-review--b .nh-review__text { top: 62px; }
.nh-review--b .nh-person { top: 142px; }
.nh-review--b .nh-person strong { padding-top: 11px; }

.nh-stories__pager { position: absolute; left: 609px; top: 878px; display: flex; align-items: center; }
.nh-stories__dots { margin: 0 14px 0 18px; }

/* Our story --------------------------------------------------------- */
.nh-about { position: relative; height: 662px; background: linear-gradient(53.61deg, #fcfaf7 19.422%, #fcf1d9 68.393%); }
.nh-about__inner { height: 662px; }
.nh-about__wm { left: 233px; top: 56.2px; }
.nh-about__content { position: absolute; left: 95px; top: 86px; }
.nh-about__content .nh-h2 { margin: 13px 0 0 6px; }
.nh-about__text { margin: 9px 0 0 6px; font-size: 18px; line-height: 26px; white-space: nowrap; }
.nh-about__btn { gap: 24px; width: 259px; margin: 60px 0 0 6px; padding-left: 45px; }
.nh-about__media { position: absolute; left: 648px; top: 81px; width: 732px; height: 500px; border-radius: 40px; overflow: hidden; }
.nh-about__media > img { width: 100%; height: 100%; }
.nh-about__play { position: absolute; left: 314px; top: 199px; transition: transform .2s ease; }
.nh-about__play:hover { transform: scale(1.06); }

/* Support ----------------------------------------------------------- */
.nh-support { position: relative; height: 745px; background: linear-gradient(160.569deg, #fcfaf7 3.4086%, #fcf1d9 85.143%); }
.nh-support__pattern {
    position: absolute;
    left: calc(50% - 741.3px);
    top: 1px;
    width: 1574.7px;
    height: 743px;
    background: url('img/pattern-rot.webp') 0 -237px / 1574.7px no-repeat;
    opacity: .3075;
    pointer-events: none;
}
.nh-support__inner { height: 745px; }
.nh-support__main { position: absolute; left: 58px; top: 54px; width: 848px; height: 638px; border-radius: 16px; background: #faf7f2; box-shadow: -1px 4px 10px 2px rgba(0, 0, 0, .12); }
.nh-support__main > * { position: absolute; }
.nh-support__photo { left: 393px; top: 49px; width: 455px; height: 589px; border-bottom-right-radius: 15px; }
.nh-support__main .nh-pill { left: 43px; top: 63px; }
.nh-support__main .nh-h2 { left: 43px; top: 128px; }
.nh-support__text { left: 43px; top: 239px; font-size: 18px; line-height: 26px; white-space: nowrap; }
.nh-hotline { left: 43px; top: 339px; width: 406px; height: 94px; border: 1px solid #fff; border-radius: 18px; background: #e8ebde; }
.nh-hotline > * { position: absolute; }
.nh-hotline img { left: 24px; top: 16px; }
.nh-hotline span { left: 108px; top: 19px; color: var(--nh-text); font-size: 16px; font-weight: 500; line-height: 16px; white-space: nowrap; }
.nh-hotline strong { left: 108px; top: 35px; color: var(--nh-ink); font-size: 30px; font-weight: 700; line-height: 45px; white-space: nowrap; }
.nh-support__cta { left: 43px; top: 453px; gap: 29px; width: 406px; padding-left: 52px; }
.nh-support__help { left: 57px; top: 523px; display: flex; align-items: center; gap: 12px; color: var(--nh-ink) !important; font-size: 14px; font-weight: 500; line-height: 16px; white-space: nowrap; }
.nh-support__help:hover { color: var(--nh-green) !important; }
.nh-support__help { text-decoration: underline !important; text-underline-position: from-font; }

.nh-support__card { position: absolute; left: 920px; width: 458px; border: 1px solid #fff; border-radius: 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.nh-support__card > * { position: absolute; }
.nh-support__card--video { top: 54px; height: 337px; background: #fef0ed; }
.nh-support__card--group { top: 405px; height: 287px; background: #e9f0fd; }
.nh-support__tile { display: block; left: 37px; top: 23px; width: 64px; height: 63px; border-radius: 12px; background: #fcd9d3; }
.nh-support__tile img { position: absolute; left: 12px; top: 16px; }
.nh-support__card h3 { left: 37px; top: 102px; color: var(--nh-ink); font-size: 26px; font-weight: 700; line-height: 39px; white-space: nowrap; }
.nh-support__card p { left: 36px; top: 146px; font-size: 16px; line-height: 26px; white-space: nowrap; }
.nh-support__link {
    left: 36px;
    top: 234px;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 187px;
    height: 52px;
    padding-left: 28px;
    border-radius: 18px;
    background: #fff;
    color: #bf453d !important;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    transition: box-shadow .2s ease;
}
.nh-support__link:hover { box-shadow: 0 8px 18px rgba(0, 0, 0, .08); }
.nh-support__illus { left: 205px; top: 88px; width: 246px; height: 184px; }
.nh-support__card--group .nh-support__tile { top: 27px; background: #ceddf5; }
.nh-support__card--group .nh-support__tile img { left: 11px; top: 10.7px; }
.nh-support__card--group h3 { top: 99px; font-size: 24px; line-height: 34px; }
.nh-support__card--group p { top: 140px; }
.nh-support__card--group .nh-support__link { top: 207px; padding-left: 20px; color: #2359c1 !important; }
.nh-support__card--group .nh-support__illus { left: 280px; top: 116px; width: 183px; height: 183px; }
.nh-support__wm { left: 109px; top: 4.7px; }

/* App --------------------------------------------------------------- */
.nh-app { position: relative; height: 872px; background: linear-gradient(136.646deg, #fcfaf7 21.262%, #fcf1d9 72.012%); }
.nh-app__pattern {
    position: absolute;
    left: calc(50% + 28px);
    top: 0;
    width: 692px;
    height: 872px;
    background: url('img/pattern-rot.webp') -203.8px -3.3px / 1143px no-repeat;
    opacity: .3075;
    pointer-events: none;
}
.nh-app__inner { height: 872px; }
.nh-app__wm { left: 349.1px; top: -.3px; }
.nh-app__content { position: absolute; left: 61px; top: 74px; }
.nh-app__title { margin: 17px 0 0 5px; color: var(--nh-ink); font-size: 46px; font-weight: 700; line-height: 58px; white-space: nowrap; }
.nh-app__title span { color: var(--nh-gold); }
.nh-app__text { margin: 18px 0 0 5px; font-size: 20px; font-weight: 500; line-height: 26px; white-space: nowrap; }
.nh-app__perks { display: flex; margin: 34px 0 0 5px; }
.nh-app__perks li { display: flex; align-items: flex-start; flex: none; }
.nh-app__perks li + li::before { content: ''; flex: none; width: 1.5px; height: 40px; margin: 4px var(--sep-gap) 0 0; background: #dcd7d7; }
.nh-app__perks span { margin: 6px 0 0 16px; font-size: 15px; font-weight: 500; line-height: 17px; white-space: nowrap; }
.nh-store { position: relative; display: block; width: 442px; height: 111px; margin: 78px 0 0 3px; border-radius: 17px; background: var(--nh-green); transition: transform .2s ease, box-shadow .2s ease; }
.nh-store:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0, 92, 50, .25); }
.nh-store + .nh-store { margin-top: 24px; }
.nh-store__art { position: absolute; }
.nh-store--play .nh-store__art { left: 25px; top: 2px; width: 299px; height: 107px; }
.nh-store--apple .nh-store__art { left: 18px; top: 0; width: 306px; height: 102px; }
.nh-store__arrow { position: absolute; left: 364px; top: 35px; }
.nh-app__trust { display: flex; align-items: center; margin: 24px 0 0 39.9px; font-size: 16px; font-weight: 500; line-height: 26px; }
.nh-app__trust img { margin-right: 13px; }
.nh-app__trust i { width: 6px; height: 6px; margin: 0 16px 0 22px; border-radius: 50%; background: var(--nh-green); }
.nh-app__phones { position: absolute; left: 662px; top: 139px; width: 746px; height: 597px; }
.nh-app__mock { position: relative; width: 746px; height: 597px; }
.nh-app__shadow { position: absolute; left: 123px; top: 469px; width: 637px; height: 194px; opacity: .44; overflow: hidden; }
.nh-app__shadow img { position: absolute; left: -30.7px; top: -286.1px; width: 667.7px; height: 667.5px; }

/* Footer ------------------------------------------------------------ */
.nh-footer { background: var(--nh-footer); color: #fcfaf7; }
.nh-footer__inner { height: 440.8px; }
.nh-footer__logo { position: absolute; left: 62.1px; top: 85px; width: 248.3px; height: 121.1px; }
.nh-footer__logo img { position: absolute; }
.nh-footer__tagline { position: absolute; left: 64px; top: 243px; font-size: 23px; line-height: 32px; white-space: nowrap; }
.nh-footer__social { position: absolute; left: 64px; top: 335px; display: flex; gap: 13px; }
.nh-footer__social a { position: relative; width: 42px; height: 42px; border-radius: 50%; transition: transform .2s ease; }
.nh-footer__social a:hover { transform: translateY(-2px); }
.nh-footer__social-glyph { position: absolute; left: 9px; top: 9px; }
.nh-footer__col { position: absolute; top: 142px; }
.nh-footer__col--1 { left: 704px; }
.nh-footer__col--2 { left: 930px; }
.nh-footer__col--3 { left: 1175px; }
.nh-footer__col h4 { position: relative; color: #eee; font-size: 25px; font-weight: 600; line-height: 27px; white-space: nowrap; }
.nh-footer__col h4::after { content: ''; position: absolute; left: 0; top: 40px; width: 48px; height: 3px; background: var(--nh-gold); }
.nh-footer__col ul { display: flex; flex-direction: column; gap: 16px; margin-top: 51px; }
.nh-footer__col a { font-size: 18px; line-height: 26px; white-space: nowrap; transition: color .2s ease; }
.nh-footer__col a:hover { color: var(--nh-gold); }
.nh-footer__bottom { height: 91.2px; border-top: 1.2px solid rgba(211, 175, 94, .42); }
.nh-footer__bottom p { padding: 26px 0 0 62px; font-family: 'Inter', sans-serif; font-size: 20px; line-height: 26px; }

/* =====================================================================
   Below 1024px — stacked layout (the Figma file has no mobile frame, so
   this keeps the desktop styling and reflows it into one column).
   ===================================================================== */
@media (max-width: 1023.98px) {
    .nh-page { zoom: 1; }
    .nh-wrap { width: auto; padding: 0 20px; }

    .nh-section-head,
    .nh-learners, .nh-perks, .nh-programs, .nh-programs__all,
    .nh-recorded__content, .nh-recorded__mockup,
    .nh-story-video, .nh-review, .nh-stories__pager,
    .nh-about__content, .nh-about__media,
    .nh-support__main, .nh-support__card,
    .nh-app__content, .nh-app__phones { position: relative; left: auto; top: auto; }

    .nh-learn, .nh-learn__inner, .nh-recorded, .nh-recorded__inner, .nh-stories, .nh-stories__inner,
    .nh-about, .nh-about__inner, .nh-support, .nh-support__inner, .nh-app, .nh-app__inner, .nh-footer__inner { height: auto; }

    .nh-watermark, .nh-learn__arch-left, .nh-learn__arch-right, .nh-learn__pattern, .nh-app__pattern { display: none; }
    .nh-h2, .nh-recorded__title, .nh-app__title { font-size: 28px; line-height: 36px; white-space: normal; }
    .nh-h2--split { line-height: 36px; }
    .nh-h2 br, .nh-lead br, .nh-recorded__lead br, .nh-about__text br, .nh-support__text br,
    .nh-app__text br, .nh-program__text br, .nh-review__text br, .nh-story-video__quote br { display: none; }
    .nh-lead, .nh-recorded__lead, .nh-about__text, .nh-support__text, .nh-app__text { font-size: 16px; white-space: normal; }
    .nh-programs__head .nh-h2, .nh-programs__head .nh-lead, .nh-stories__head .nh-pill,
    .nh-stories__head .nh-h2, .nh-stories__head .nh-lead { transform: none; }
    .nh-section-head .nh-h2 { margin-top: 14px; }
    .nh-section-head .nh-lead { margin-top: 10px; }

    /* Header */
    .nh-header { height: 84px; }
    .nh-header__inner { height: 84px; padding: 0 20px; }
    .nh-logo { transform: scale(.75); transform-origin: left center; }
    .nh-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; margin-left: auto; padding: 0 10px; }
    .nh-burger span { height: 2px; border-radius: 2px; background: var(--nh-ink); transition: transform .25s ease, opacity .25s ease; }
    .nh-header.is-open .nh-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nh-header.is-open .nh-burger span:nth-child(2) { opacity: 0; }
    .nh-header.is-open .nh-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nh-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 84px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        padding: 12px 20px 24px;
        background: #fffdf8;
        box-shadow: 0 16px 30px rgba(5, 43, 25, .12);
    }
    .nh-header.is-open .nh-nav { display: flex; }
    .nh-nav__list { flex-direction: column; gap: 0; }
    .nh-nav__list > li > a { padding: 12px 0; border-bottom: 1px solid #efe8da; }
    .nh-nav__list > li > a.is-active::after { display: none; }
    .nh-nav__chevron { display: none; }
    .nh-nav__menu { position: static; display: block; padding: 0 0 6px 14px; box-shadow: none; background: none; opacity: 1; visibility: visible; transform: none; }
    .nh-nav__has-menu::after { display: none; }
    .nh-header__actions { flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }
    .nh-btn-login, .nh-btn-start { margin: 0; }

    /* Hero */
    .nh-hero, .nh-hero__inner { height: auto; }
    .nh-hero__inner { padding: 64px 20px 120px; }
    .nh-hero__content { position: static; }
    .nh-hero__badge { --w: 100% !important; max-width: 340px; }
    .nh-hero__badge .nh-pill__text { left: calc(50% + 24px); font-size: 13px; }
    .nh-hero__title { width: auto; font-size: 32px; line-height: 40px; letter-spacing: -.5px; margin-top: 18px; }
    .nh-hero__text { width: auto; max-width: 560px; margin-top: 14px; font-size: 15px; line-height: 25px; }
    .nh-hero__actions { flex-direction: column; margin: 28px 0 0; width: 100%; max-width: 300px; }
    .nh-hero__btn { width: 100%; justify-content: center; padding: 0; }
    .nh-hero__arrow { display: none; }
    .nh-hero__dots { left: 50%; top: auto; bottom: 70px; transform: translateX(-50%); }

    /* Stats + learners + programs */
    .nh-learn { padding-bottom: 64px; }
    .nh-stats {
        position: relative;
        left: auto;
        top: -40px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: auto;
        height: auto;
        padding: 20px 12px;
    }
    .nh-stats > * { position: static; }
    .nh-stats__panel, .nh-stats__divider, .nh-stats__students-icon, .nh-stats__circle--mentors, .nh-stats__courses-icon { display: none; }
    .nh-stats__item { text-align: center; }
    .nh-stats__item strong { font-size: 30px !important; line-height: 40px !important; }
    .nh-stats__item > span { margin: 0 !important; font-size: 14px !important; line-height: 20px !important; white-space: normal; }
    .nh-stats__bar { margin: 6px auto 0; }

    .nh-learners { flex-direction: column; align-items: center; text-align: center; }
    .nh-learners__avatars { transform: scale(.6); margin: -27px 0; }
    .nh-learners__text { margin: 12px 0 0; }
    .nh-learners__text strong { font-size: 40px; line-height: 56px; margin: 0; }
    .nh-learners__text > span:last-child { font-size: 20px; line-height: 30px; margin: 0; }
    .nh-learners__sparkle { display: none; }

    .nh-perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
    .nh-perks__item { margin: 0 !important; align-items: center; }
    .nh-perks__item::before { display: none !important; }
    .nh-perks__item img, .nh-perks__heart { transform: scale(.8); }
    .nh-perks__item > span:last-child { width: auto !important; margin: 0; font-size: 16px; }

    .nh-programs__head { margin-top: 56px; }
    .nh-programs { flex-direction: column; align-items: center; margin-top: 32px; }
    .nh-program { width: 100%; max-width: 430px; }
    .nh-program__body { left: 4px; right: 4px; width: auto; }
    .nh-program__text { width: auto; }
    .nh-programs__all { margin: 32px auto 0; }

    /* Recorded */
    .nh-recorded { overflow: visible; padding: 64px 0; }
    .nh-recorded__inner { display: flex; flex-direction: column-reverse; gap: 36px; }
    .nh-recorded__mockup { width: 100%; max-width: 736px; height: auto; aspect-ratio: 736 / 645; margin: 0 auto; }
    .nh-recorded__screen { left: 1.1%; top: 1.1%; width: 97.8%; height: 97.8%; }
    .nh-recorded__screen img { left: -9%; width: 117%; height: 100%; }
    .nh-recorded__tag { transform: scale(.8); transform-origin: left top; left: 5%; top: 5%; }
    .nh-recorded__content { width: auto; }
    .nh-recorded__title { margin-top: 14px; }
    .nh-recorded__list span { white-space: normal; }
    .nh-recorded__btn { width: auto; max-width: 345px; padding-right: 24px; }

    /* Stories */
    .nh-stories { padding: 64px 0; }
    .nh-stories__inner { display: flex; flex-direction: column; gap: 20px; }
    .nh-stories__head { margin-bottom: 16px; }
    .nh-story-video, .nh-review { width: auto; height: auto; padding: 16px 16px 20px; }
    .nh-story-video > *, .nh-review > * { position: relative; left: auto !important; top: auto !important; }
    .nh-story-video__media { width: 100%; height: auto; aspect-ratio: 727 / 317; }
    .nh-story-video__media img { left: -2%; top: -13.6%; width: 104%; height: auto; }
    .nh-story-video__quote-icon, .nh-review__quote-icon { display: none; }
    .nh-story-video__quote, .nh-review__text { margin: 16px 0; font-size: 16px; white-space: normal; }
    .nh-review .nh-person, .nh-review--b .nh-person { left: auto; top: auto; }
    .nh-person { white-space: normal; }
    .nh-stories__pager { align-self: center; }

    /* About */
    .nh-about { padding: 64px 0; }
    .nh-about__inner { display: flex; flex-direction: column; gap: 32px; }
    .nh-about__content > * { margin-left: 0 !important; }
    .nh-about__text { white-space: normal; }
    .nh-about__media { width: 100%; height: auto; aspect-ratio: 732 / 500; border-radius: 24px; }
    .nh-about__play { left: 50%; top: 50%; transform: translate(-50%, -50%); }

    /* Support */
    .nh-support { padding: 48px 0; }
    .nh-support__inner { display: flex; flex-direction: column; gap: 16px; }
    .nh-support__main, .nh-support__card { width: auto; height: auto; padding: 24px 20px; }
    .nh-support__main > *, .nh-support__card > * { position: relative; left: auto !important; top: auto !important; }
    .nh-support__main { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 0; overflow: hidden; }
    .nh-support__photo { order: 9; width: 100%; max-width: 360px; height: auto; align-self: center; }
    .nh-support__text { white-space: normal; }
    .nh-hotline { width: 100%; max-width: 406px; }
    .nh-hotline > * { position: absolute !important; }
    .nh-hotline strong { font-size: 24px; }
    .nh-support__cta { width: 100%; max-width: 406px; gap: 16px; padding: 0; justify-content: center; font-size: 18px; }
    .nh-support__card { min-height: 0; }
    .nh-support__card h3 { margin-top: 16px; white-space: normal; }
    .nh-support__card p { margin: 6px 0 16px; }
    .nh-support__illus { display: none; }

    /* App */
    .nh-app { padding: 56px 0 24px; }
    .nh-app__inner { display: flex; flex-direction: column; gap: 24px; }
    .nh-app__content > * { margin-left: 0 !important; }
    .nh-app__title { margin-top: 16px; }
    .nh-app__perks { flex-direction: column; gap: 12px; margin-top: 24px; }
    .nh-app__perks li { width: auto !important; }
    .nh-app__perks li::before { display: none; }
    .nh-store { width: 100%; max-width: 442px; margin-top: 28px; transform-origin: left top; }
    .nh-app__trust { margin-top: 20px; flex-wrap: wrap; }
    .nh-app__phones { width: 100%; height: auto; aspect-ratio: 746 / 597; }
    .nh-app__mock { width: 100%; height: auto; }
    .nh-app__shadow { display: none; }

    /* Footer */
    .nh-footer__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding-top: 48px; padding-bottom: 40px; }
    .nh-footer__inner > * { position: relative !important; left: auto !important; top: auto !important; }
    .nh-footer__brand { grid-column: 1 / -1; }
    .nh-footer__logo { display: block; position: relative; left: auto; top: auto; transform: scale(.8); transform-origin: left top; margin-bottom: -24px; }
    .nh-footer__tagline { position: static; margin-top: 16px; font-size: 18px; line-height: 28px; white-space: normal; }
    .nh-footer__social { position: static; margin-top: 20px; }
    .nh-footer__col h4 { font-size: 20px; }
    .nh-footer__col ul { margin-top: 34px; gap: 10px; }
    .nh-footer__col a { font-size: 16px; }
    .nh-footer__bottom { height: auto; }
    .nh-footer__bottom p { padding: 20px 0; font-size: 15px; }
}

/* Dynamic content (admin data) -------------------------------------- */
.nh-fill { position: absolute; left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover; }
/* Admin-uploaded images keep the design box; other aspect ratios fit inside it. */
.nh-custom-img { object-fit: contain; object-position: bottom center; }
.nh-custom-img--cover { object-fit: cover; }
.nh-clamp, .nh-story-video__quote.is-dynamic, .nh-review__text.is-dynamic,
.nh-about__title.is-dynamic, .nh-about__text.is-dynamic, .nh-program__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}
.nh-program__title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-right: 30px; }
.nh-program__text { -webkit-line-clamp: 3; line-clamp: 3; }
.nh-story-video__media { display: block; }
.nh-story-video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); transition: transform .2s ease; }
.nh-story-video__media:hover .nh-story-video__play { transform: translate(-50%, -50%) scale(1.06); }
.nh-story-video__quote.is-dynamic { width: 680px; -webkit-line-clamp: 2; line-clamp: 2; }
.nh-review__text.is-dynamic { width: 440px; -webkit-line-clamp: 3; line-clamp: 3; }
.nh-story-video__play[hidden] { display: none; }
.nh-story-video__media:not([href]) { cursor: default; }
/* Long roles (e.g. designation + company) stay inside the card. */
.nh-review .nh-person > span:last-child { max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.nh-story-video .nh-person > span:last-child { max-width: 560px; overflow: hidden; text-overflow: ellipsis; }
/* Story pager dots (one per story) + fade when a story rotates in. */
.nh-stories__dots { display: flex; align-items: center; gap: 10px; }
.nh-stories__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #d9d9d9; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.nh-stories__dots button.is-active { background: #072521; transform: scale(1.2); }
.nh-stories__pager button:disabled { cursor: default; }
/* Story swap: card content slides in (from right on next, from left on prev), staggered per card. */
.is-swapping > * { animation: nh-story-slide .6s cubic-bezier(.22, .61, .36, 1) both; animation-delay: var(--nh-swap-delay, 0s); }
.is-swapping.is-from-left > * { animation-name: nh-story-slide-left; }
.is-swapping .nh-story-video__thumb { animation: nh-story-zoom .8s ease both; }
@keyframes nh-story-slide { from { opacity: 0; translate: 40px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes nh-story-slide-left { from { opacity: 0; translate: -40px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes nh-story-zoom { from { opacity: .4; scale: 1.08; } to { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) {
    .is-swapping > *, .is-swapping .nh-story-video__thumb { animation: none; }
}
.nh-about__title.is-dynamic { width: 520px; -webkit-line-clamp: 2; line-clamp: 2; }
.nh-about__text.is-dynamic { width: 520px; -webkit-line-clamp: 6; line-clamp: 6; }

@media (max-width: 1023.98px) {
    .nh-story-video__quote.is-dynamic, .nh-review__text.is-dynamic,
    .nh-about__title.is-dynamic, .nh-about__text.is-dynamic { width: auto; }
    .nh-story-video__play { width: 72px; }

    /* Stories on mobile: one swipeable card, the review cards are reached via the pager. */
    .has-story-pager .nh-review { display: none; }
    .has-story-pager .nh-story-video { min-height: 260px; padding: 20px 20px 24px; touch-action: pan-y; }
    .nh-story-video.is-no-video .nh-story-video__media { display: none; }
    .nh-story-video.is-no-video .nh-story-video__quote-icon { display: block; width: 36px; height: auto; }
    .nh-story-video__quote.is-dynamic { margin: 14px 0 18px; font-size: 16px; line-height: 26px; -webkit-line-clamp: 5; line-clamp: 5; }
    .nh-story-video.is-no-video .nh-story-video__quote.is-dynamic { margin-top: 12px; }
    .nh-person { display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding-left: 70px; }
    .nh-person__photo { width: 56px; height: 56px; }
    .nh-person strong { padding-top: 0 !important; font-size: 16px; line-height: 22px; }
    .nh-review .nh-person > span:last-child,
    .nh-story-video .nh-person > span:last-child { max-width: none; margin-top: 2px; font-size: 14px; line-height: 20px; }

    .nh-stories__pager { gap: 4px; }
    .nh-stories__pager > button { display: grid; place-items: center; min-width: 44px; min-height: 44px; }
    .nh-stories__dots { flex-wrap: wrap; justify-content: center; max-width: 200px; gap: 8px; margin: 0 10px; }
    .nh-stories__dots button { position: relative; }
    /* Bigger tap area without bigger dots. */
    .nh-stories__dots button::after { content: ''; position: absolute; inset: -8px; }
}

/* Animations ---------------------------------------------------------
   Uses the individual `translate` / `scale` properties so they stack on
   top of the layout `transform`s above instead of replacing them. */
[data-nh-count] { display: inline-block; font-variant-numeric: tabular-nums; }

/* Reveal on scroll (classes are added by new-home.js, so no-JS shows everything).
   Scoped under .nh-page so it beats the cards' own hover transitions until it settles. */
.nh-page .nh-reveal {
    opacity: 0;
    translate: 0 28px;
    transition: opacity .7s ease var(--nh-delay, 0ms), translate .7s cubic-bezier(.2, .7, .2, 1) var(--nh-delay, 0ms);
}
.nh-page .nh-reveal.is-visible { opacity: 1; translate: none; }

/* Hero: slow zoom-out on the active slide. */
.nh-hero__slide.is-active { animation: nh-ken-burns 9s ease-out both; }
@keyframes nh-ken-burns { from { scale: 1.08; } to { scale: 1; } }

/* Image zoom on hover. */
.nh-program__media img, .nh-story-video__media img:not(.nh-story-video__play), .nh-about__media > img { transition: scale .6s ease; }
.nh-program:hover .nh-program__media img,
.nh-story-video__media[href]:hover img:not(.nh-story-video__play),
.nh-about__media:hover > img { scale: 1.06; }

/* Card lift on hover. */
.nh-review, .nh-support__card, .nh-story-video { transition: translate .25s ease, box-shadow .25s ease; }
.nh-review:hover, .nh-support__card:hover, .nh-story-video:hover { translate: 0 -4px; box-shadow: 0 16px 32px rgba(5, 43, 25, .12); }

/* Gentle float on illustrations. */
.nh-app__mock { animation: nh-float 6s ease-in-out infinite; }
.nh-support__illus { animation: nh-float 5s ease-in-out infinite; }
.nh-support__card--group .nh-support__illus { animation-delay: -2.5s; }
.nh-recorded__tag { animation: nh-float 5.5s ease-in-out infinite; }
@keyframes nh-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Stats icons pop while the card reveals (finishes before the reveal settles and drops .is-visible). */
.nh-stats.is-visible .nh-stats__students-icon,
.nh-stats.is-visible .nh-stats__circle,
.nh-stats.is-visible .nh-stats__courses-icon { animation: nh-pop .5s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--nh-delay, 0ms) + 100ms); }
@keyframes nh-pop { from { scale: .6; opacity: 0; } to { scale: 1; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .nh-hero__slide.is-active, .nh-app__mock, .nh-support__illus, .nh-recorded__tag { animation: none; }
    .nh-program__media img, .nh-story-video__media img, .nh-about__media > img,
    .nh-review, .nh-support__card, .nh-story-video { transition: none; }
    .nh-program:hover .nh-program__media img, .nh-about__media:hover > img,
    .nh-story-video__media[href]:hover img { scale: none; }
    .nh-review:hover, .nh-support__card:hover, .nh-story-video:hover { translate: none; }
}
