/**
 * Nahdet Misr Learning — Figma UI v1.8.10
 * Design authority: user-provided Home / Curriculums / Curriculum-detail screenshots.
 * Palette: white · deep navy · teal accents (no SE Asia/USD utility chrome).
 */

:root {
  --nm-navy: #1a2b4c;
  --nm-navy-deep: #0f1a2e;
  --nm-navy-mid: #243556;
  --nm-teal: #00a99d;
  --nm-teal-deep: #008f85;
  --nm-teal-soft: #e6f7f6;
  --nm-ink: #1a2b4c;
  --nm-muted: #5c6478;
  --nm-gray-bg: #f4f6f8;
  --nm-gray-soft: #f8f9fb;
  --nm-border: #e2e6ee;
  --nm-white: #ffffff;
  --nm-chrome: #1a2b4c;
  --nm-chrome-mid: #0f1a2e;
  --nm-navy-tint: #eef2f8;
  --nm-path-blue: #1a2b4c;
  --nm-path-muted: #5c6478;
  --nm-red: #00a99d;
  --nm-red-deep: #008f85;
  --nm-gray-text: #5c6478;
  --nm-font-display: "Montserrat", "DM Sans", system-ui, sans-serif;
  --nm-font-sans: "DM Sans", "Montserrat", system-ui, sans-serif;
  --nm-font-arabic: "Noto Sans Arabic", "DM Sans", Tahoma, sans-serif;
  --nm-wrap: 1180px;
  --nm-radius: 14px;
  --nm-radius-lg: 20px;
  --nm-radius-pill: 999px;
  --nm-shadow: 0 12px 40px rgba(26, 43, 76, 0.1);
  --nm-header-h: 72px;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
}

body {
  font-family: var(--nm-font-sans);
  color: var(--nm-ink);
  background: #fff;
  /* Do not set overflow-x on body — non-visible overflow-x forces overflow-y
     and clips sticky header dropdowns. Clip horizontal scroll on .nm-main instead. */
  max-width: 100%;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--nm-font-display);
  letter-spacing: -0.01em;
  color: var(--nm-navy);
}

.nm-wrap {
  width: min(100% - 2.5rem, var(--nm-wrap));
  margin-inline: auto;
}

/* Skip link: clip off-canvas (safe for RTL). Do NOT use left/-999 + inset-inline-start. */
.nm-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  background: var(--nm-teal);
  color: #fff;
  z-index: 9999;
}
.nm-skip-link:focus {
  position: fixed;
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 16px;
  clip: auto;
  clip-path: none;
  overflow: visible;
  inset-inline-start: 12px;
  top: 12px;
  left: auto;
  right: auto;
}

/* —— Buttons —— */
.nm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--nm-radius-pill);
  padding: 12px 26px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  text-decoration: none;
  border: 1.5px solid transparent;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.nm-btn:hover { transform: translateY(-1px); }
.nm-btn:focus-visible {
  outline: 2px solid var(--nm-teal-deep);
  outline-offset: 3px;
}

.nm-btn--primary,
.nm-btn--teal {
  background: var(--nm-teal);
  border-color: var(--nm-teal);
  color: #fff !important;
}
.nm-btn--primary:hover,
.nm-btn--teal:hover {
  background: var(--nm-teal-deep);
  border-color: var(--nm-teal-deep);
}
.nm-btn--primary:focus-visible,
.nm-btn--teal:focus-visible {
  outline-color: var(--nm-navy);
}

.nm-btn--secondary {
  background: #fff;
  color: var(--nm-navy) !important;
  border-color: var(--nm-navy);
}
.nm-btn--secondary:hover {
  background: var(--nm-gray-soft);
  border-color: var(--nm-navy-deep);
  color: var(--nm-navy-deep) !important;
}

.nm-btn--ghost-on-dark {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.75);
}
.nm-btn--ghost-on-dark:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nm-btn--on-dark,
.nm-btn--pill-light {
  background: #fff;
  color: var(--nm-navy) !important;
  border-color: #fff;
}

.nm-btn--text {
  background: transparent;
  border: 0;
  color: #fff !important;
  padding-inline: 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hide legacy utility chrome */
.nm-utility-bar,
#nm-region-switch,
#nm-currency,
.nm-site-header select,
.nm-site-header .nm-switcher,
.nm-site-header [data-nm-region],
.nm-site-header [data-nm-currency],
.nm-header-tools select,
.nm-header-tools .nm-switcher {
  display: none !important;
}

/* =========================================================
   HEADER — white chrome, navy links, teal CTA
   ========================================================= */
.nm-site-header {
  display: block !important;
  width: 100% !important;
  background: #fff !important;
  border-bottom: 1px solid var(--nm-border) !important;
  position: sticky;
  top: 0;
  z-index: 1002;
  box-shadow: 0 1px 0 rgba(26, 43, 76, 0.04);
}

.nm-site-header__bar,
.nm-site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  min-height: var(--nm-header-h);
  padding: 10px 0;
  flex-wrap: nowrap;
}

.nm-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  background: transparent !important;
  border-radius: 0;
  padding: 0 !important;
  box-shadow: none !important;
  text-decoration: none;
  color: var(--nm-navy);
  font-family: var(--nm-font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  max-width: none;
}
.nm-logo img,
.nm-logo__img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 160px;
}
.nm-logo__wordmark {
  white-space: nowrap;
}

.nm-nav-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}
.nm-nav-panel__cta { display: none; }

.nm-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px 22px;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nm-nav a {
  color: var(--nm-navy) !important;
  font-family: var(--nm-font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  padding: 8px 2px;
  white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color 0.2s, box-shadow 0.2s;
}
.nm-nav a:hover,
.nm-nav .current-menu-item > a,
.nm-nav .current_page_item > a,
.nm-nav a[aria-current="page"] {
  color: var(--nm-teal) !important;
  box-shadow: inset 0 -2px 0 var(--nm-teal);
}

/* Desktop hover dropdowns (evidence-only children; WP .sub-menu + static) */
.nm-site-header,
.nm-site-header__bar,
.nm-site-header__inner,
.nm-nav-panel {
  overflow: visible !important;
}
.nm-main {
  overflow-x: clip;
  max-width: 100%;
}

.nm-nav > li {
  position: relative;
}
.nm-nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nm-nav .menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nm-nav .menu-item-has-children > a::after {
  content: "";
  width: 0;
  height: 0;
  border-inline-start: 4px solid transparent;
  border-inline-end: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.65;
  margin-top: 1px;
}

@media (min-width: 901px) {
  .nm-nav .sub-menu {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    min-width: 240px;
    padding: 12px 0 10px;
    background: #fff;
    border: 1px solid var(--nm-border, #e4e7ec);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 26, 46, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
    z-index: 1200;
    pointer-events: none;
  }
  html[dir="rtl"] .nm-nav .sub-menu {
    inset-inline-start: auto;
    inset-inline-end: 0;
  }
  .nm-nav .sub-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: none;
    white-space: normal;
    box-shadow: none !important;
    color: var(--nm-navy) !important;
  }
  .nm-nav .sub-menu a:hover,
  .nm-nav .sub-menu a:focus {
    color: var(--nm-teal) !important;
    background: var(--nm-gray-bg, #f4f6f8);
    box-shadow: none !important;
  }
  .nm-nav > .menu-item-has-children:hover > .sub-menu,
  .nm-nav > .menu-item-has-children:focus-within > .sub-menu,
  .nm-nav > .menu-item-has-children.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (max-width: 900px) {
  .nm-nav .menu-item-has-children > a::after {
    margin-inline-start: auto;
  }
  .nm-nav .sub-menu {
    display: none;
    width: 100%;
    padding: 4px 0 8px 12px;
    border-inline-start: 2px solid var(--nm-teal, #0d9488);
    margin-top: 4px;
  }
  html[dir="rtl"] .nm-nav .sub-menu {
    padding: 4px 12px 8px 0;
  }
  .nm-nav .menu-item-has-children.is-open > .sub-menu {
    display: block;
  }
  .nm-nav .sub-menu a {
    display: block;
    padding: 10px 4px;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: none;
    box-shadow: none !important;
  }
  .nm-nav .sub-menu a:hover,
  .nm-nav .sub-menu a:focus {
    box-shadow: none !important;
  }
}

.nm-header-actions,
.nm-header-tools {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap !important;
  gap: 12px;
  flex: 0 0 auto;
}
.nm-header-cta { display: contents; }

.nm-header-actions .nm-btn--teal,
.nm-header-actions__desktop.nm-btn--teal,
.nm-btn--header-cta {
  background: var(--nm-teal) !important;
  border-color: var(--nm-teal) !important;
  color: #fff !important;
  padding: 11px 20px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: 10px;
}

/* Hide dual Start Education / Register */
.nm-header-actions .nm-btn--pill-light,
.nm-header-actions .nm-btn--ghost-on-dark:not(.nm-btn--teal):not(.nm-btn--header-cta) {
  display: none !important;
}

.nm-lang-switch {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
  font-family: var(--nm-font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--nm-navy);
}
.nm-lang-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  padding: 4px 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--nm-muted) !important;
  background: transparent !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none !important;
  line-height: 1;
}
.nm-lang-switch__btn.is-active,
.nm-lang-switch__btn[aria-current="true"] {
  color: var(--nm-navy) !important;
  background: transparent !important;
}
.nm-lang-sep {
  color: var(--nm-border);
  font-weight: 400;
  margin: 0 2px;
}

.nm-menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--nm-border);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--nm-font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nm-navy);
  cursor: pointer;
}

/* Desktop horizontal nav from 901px (laptop+). Drawer only ≤900 (phone/tablet portrait).
   Do NOT use 1180 — that forced hamburger on common laptop widths. */
@media (min-width: 901px) {
  .nm-site-header__bar,
  .nm-site-header__inner,
  .nm-site-header .nm-wrap {
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  .nm-menu-toggle { display: none !important; }
  .nm-nav-panel {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
    flex: 1 1 auto !important;
    flex-direction: row !important;
    padding: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  .nm-nav-panel__cta { display: none !important; }
  .nm-nav { flex-wrap: nowrap !important; flex-direction: row !important; }
  .nm-header-actions, .nm-header-tools {
    display: flex !important;
    flex-direction: row !important;
  }
  .nm-header-actions__desktop { display: inline-flex !important; }
}

/* Compact horizontal bar for laptop / small desktop (901–1199) so links don’t collide */
@media (min-width: 901px) and (max-width: 1199px) {
  .nm-logo img,
  .nm-logo__img { height: 36px; max-width: 118px; }
  .nm-nav { gap: 2px 10px; }
  .nm-nav a {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    padding: 8px 0;
  }
  .nm-header-actions,
  .nm-header-tools { gap: 8px; }
  .nm-header-actions .nm-btn--teal,
  .nm-header-actions__desktop.nm-btn--teal,
  .nm-btn--header-cta {
    padding: 9px 14px;
    font-size: 0.72rem;
  }
}

@media (max-width: 900px) {
  .nm-menu-toggle {
    display: inline-flex !important;
    position: relative;
    z-index: 1002;
  }
  .nm-logo { order: 2; margin-inline: auto; }
  .nm-header-actions, .nm-header-tools { order: 3; position: relative; z-index: 1002; }
  .nm-header-actions__desktop,
  .nm-header-cta--desktop,
  .nm-header-cta { display: none !important; }
  /* Full-viewport opaque drawer — no hero bleed above/through the panel */
  .nm-nav-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    flex: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 20px;
    padding: calc(var(--nm-header-h, 72px) + 12px) var(--nm-gutter, 20px) 40px !important;
    background: #fff !important;
    transform: translateX(-110%) !important;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, visibility 0.25s ease;
    z-index: 1001;
    overflow-y: auto !important;
    box-shadow: none;
    -webkit-overflow-scrolling: touch;
  }
  html[dir="rtl"] .nm-nav-panel {
    transform: translateX(110%) !important;
  }
  .nm-nav-panel.is-open,
  html[dir="rtl"] .nm-nav-panel.is-open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .nm-nav-panel__close {
    display: inline-flex !important;
    align-self: flex-start; /* LTR left; RTL panel direction → physical right */
    align-items: center;
    gap: 6px;
    margin: 0 0 4px;
    padding: 10px 14px;
    border: 1px solid var(--nm-border);
    border-radius: 10px;
    background: #fff;
    color: var(--nm-navy);
    font-family: var(--nm-font-display);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    cursor: pointer;
  }
  .nm-nav-panel__cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    background: var(--nm-teal) !important;
    border-color: var(--nm-teal) !important;
    color: #fff !important;
    padding: 14px 20px;
    font-size: 0.9rem;
    border-radius: 10px;
    text-decoration: none !important;
  }
  .nm-nav {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px;
    width: 100%;
  }
  .nm-nav > li { width: 100%; }
  .nm-nav a {
    display: block;
    font-size: 0.95rem;
    padding: 14px 8px;
    border-bottom: 1px solid var(--nm-border);
    box-shadow: none !important;
  }
  .nm-nav a:hover,
  .nm-nav .current-menu-item > a,
  .nm-nav .current_page_item > a,
  .nm-nav a[aria-current="page"] {
    box-shadow: none !important;
    color: var(--nm-teal) !important;
  }
  body.nm-nav-open { overflow: hidden; }
  body.nm-nav-open .nm-site-header {
    background: #fff !important;
  }
  /* One clear Close: in-panel button only (avoid duplicate إغلاق/Close in chrome) */
  body.nm-nav-open .nm-menu-toggle {
    visibility: hidden;
    pointer-events: none;
  }
  /* LTR: Menu physical LEFT. RTL: Menu physical RIGHT (flex order 1 = start side). */
  html[dir="ltr"] .nm-menu-toggle { order: 1; margin-inline-end: auto; }
  html[dir="ltr"] .nm-logo { order: 2; margin-inline: 0 auto; }
  html[dir="ltr"] .nm-header-actions { order: 3; margin-inline-start: 0; }
  html[dir="rtl"] .nm-menu-toggle { order: 1; margin-inline-end: auto; }
  html[dir="rtl"] .nm-logo { order: 2; margin-inline: auto; }
  html[dir="rtl"] .nm-header-actions { order: 3; margin-inline-start: 0; }
}

@media (min-width: 901px) {
  .nm-nav-panel__close { display: none !important; }
}

/* Breadcrumb */
.nm-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 18px 0 8px;
  font-size: 0.85rem;
  color: var(--nm-muted);
}
.nm-breadcrumb a {
  color: var(--nm-muted);
  text-decoration: none;
}
.nm-breadcrumb a:hover { color: var(--nm-teal); }

/* Eyebrow / section labels */
.nm-eyebrow,
.nm-section-eyebrow,
.nm-paths__eyebrow,
.nm-label-teal {
  display: inline-block;
  color: var(--nm-teal) !important;
  font-family: var(--nm-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.nm-section {
  padding: clamp(48px, 7vw, 88px) 0;
}
.nm-section--muted { background: var(--nm-gray-bg); }
.nm-section--soft { background: var(--nm-gray-soft); }

.nm-section-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 36px;
}
@media (max-width: 800px) {
  .nm-section-head { grid-template-columns: 1fr; }
}

/* =========================================================
   HOME — LEARN THE FUTURE
   ========================================================= */
.nm-home-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 40px);
  background:
    radial-gradient(ellipse 50% 60% at 85% 40%, rgba(0, 169, 157, 0.12), transparent 60%),
    linear-gradient(180deg, #fff 0%, #f7fafb 100%);
  overflow: hidden;
}
.nm-home-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.nm-home-hero__title {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--nm-navy);
}
.nm-home-hero__title .nm-accent {
  color: var(--nm-teal);
}
.nm-home-hero__sub {
  margin: 0 0 28px;
  max-width: 42ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--nm-muted);
}
.nm-home-hero__visual {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
}
.nm-home-hero__glow {
  position: absolute;
  width: min(420px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 169, 157, 0.28), transparent 68%);
  filter: blur(8px);
}
.nm-float-icon {
  position: absolute;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(26, 43, 76, 0.18);
  animation: nm-float 5s ease-in-out infinite;
}
.nm-float-icon--a {
  width: 88px; height: 110px;
  background: linear-gradient(145deg, #ff5a5a, #c62828);
  top: 18%; inset-inline-start: 18%;
  transform: rotate(-12deg);
}
.nm-float-icon--b {
  width: 96px; height: 96px;
  background: linear-gradient(145deg, #7c4dff, #4527a0);
  top: 38%; inset-inline-end: 16%;
  border-radius: 22px;
  animation-delay: -1.5s;
}
.nm-float-icon--c {
  width: 72px; height: 72px;
  background: linear-gradient(145deg, #26c6b0, #00897b);
  bottom: 18%; inset-inline-start: 38%;
  border-radius: 50%;
  animation-delay: -3s;
}
@keyframes nm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (max-width: 800px) {
  .nm-home-hero__grid { grid-template-columns: 1fr; }
  .nm-home-hero__visual { min-height: 220px; order: -1; }
}

/* Trust bar */
.nm-trust-bar {
  background: var(--nm-gray-bg);
  border-block: 1px solid var(--nm-border);
  padding: 22px 0;
}
.nm-trust-bar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}
.nm-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--nm-navy);
  font-family: var(--nm-font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nm-trust-item__num {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--nm-navy);
}
.nm-trust-item__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--nm-teal-soft);
  color: var(--nm-teal);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

/* Vision / features dark block */
.nm-vision {
  padding: clamp(40px, 6vw, 64px) 0;
}
.nm-vision__panel {
  background: var(--nm-navy);
  color: #fff;
  border-radius: var(--nm-radius-lg);
  padding: clamp(28px, 4vw, 48px);
}
.nm-vision__head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  margin-bottom: 28px;
}
.nm-vision__head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.nm-vision__head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  font-size: 0.98rem;
}
.nm-vision__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.nm-vision-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 220px;
  background: #243556 center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  text-decoration: none;
  color: #fff;
}
.nm-vision-card--wide { grid-column: 1 / -1; min-height: 240px; }
.nm-vision-card::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Stronger scrim so white titles stay readable on light stock crops (apple desk). */
  background:
    linear-gradient(180deg, rgba(10, 20, 40, 0.18) 0%, transparent 32%, rgba(10, 20, 40, 0.88) 100%);
}
.nm-vision-card > * { position: relative; z-index: 1; }
.nm-vision-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: auto;
  padding-bottom: 40px;
}
.nm-vision-card__tag {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.nm-vision-card h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.15rem;
}
.nm-vision-card__btn {
  align-self: flex-start;
  background: #fff;
  color: var(--nm-navy);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 800px) {
  .nm-vision__head { grid-template-columns: 1fr; }
  .nm-vision__grid { grid-template-columns: 1fr; }
  .nm-vision-card--wide { grid-column: auto; }
}

/* Choose your path */
.nm-paths {
  padding: clamp(48px, 7vw, 80px) 0;
}
.nm-paths__head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
.nm-paths__title {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.nm-paths__title .nm-accent { color: var(--nm-teal); }
.nm-paths__aside {
  margin: 0;
  color: var(--nm-muted);
  line-height: 1.6;
  font-size: 0.98rem;
}
@media (max-width: 800px) {
  .nm-paths__head { grid-template-columns: 1fr; }
}

.nm-path-row {
  display: grid;
  grid-template-columns: 100px 96px 1fr auto;
  gap: 16px 20px;
  align-items: center;
  padding: 18px 8px;
  border-top: 1px solid var(--nm-border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  opacity: 1 !important;
  visibility: visible !important;
}
.nm-path-row:last-of-type { border-bottom: 1px solid var(--nm-border); }
.nm-path-row:hover { background: var(--nm-gray-soft); }
.nm-path-row__cat {
  font-family: var(--nm-font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nm-teal);
}
.nm-path-row__thumb {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--nm-gray-bg);
}
.nm-path-row__body h3,
.nm-path-row__body h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--nm-navy);
}
.nm-path-row__body p {
  margin: 0;
  color: var(--nm-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.nm-path-row__grade {
  font-family: var(--nm-font-display);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--nm-muted);
  letter-spacing: 0.04em;
}
@media (max-width: 700px) {
  .nm-path-row {
    grid-template-columns: 72px 1fr;
    grid-template-areas:
      "thumb cat"
      "thumb body"
      "grade grade";
  }
  .nm-path-row__thumb { grid-area: thumb; width: 72px; height: 56px; }
  .nm-path-row__cat { grid-area: cat; }
  .nm-path-row__body { grid-area: body; }
  .nm-path-row__grade { grid-area: grade; }
}

.nm-more-foundations {
  margin-top: 18px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border: 0;
  border-radius: 12px;
  background: var(--nm-gray-bg);
  color: var(--nm-navy);
  font-family: var(--nm-font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.nm-more-foundations[hidden] + .nm-more-foundations__panel,
.nm-more-foundations__panel[hidden] { display: none; }
.nm-more-foundations__panel {
  margin-top: 12px;
  padding: 18px 20px;
  background: var(--nm-gray-soft);
  border-radius: 12px;
  color: var(--nm-muted);
  line-height: 1.65;
}

/* Get in touch */
.nm-get-touch {
  padding: 0 0 clamp(48px, 7vw, 80px);
}
.nm-get-touch__frame {
  position: relative;
  border-radius: var(--nm-radius-lg);
  overflow: hidden;
  min-height: 360px;
  background: #1a2b4c center/cover no-repeat;
}
.nm-get-touch__title {
  position: absolute;
  top: 28px;
  inset-inline-start: 28px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.nm-get-touch__card {
  position: absolute;
  bottom: 24px;
  inset-inline-end: 24px;
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  max-width: 280px;
  box-shadow: var(--nm-shadow);
}
.nm-get-touch__card p {
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--nm-navy);
  font-size: 1.05rem;
}
@media (max-width: 600px) {
  .nm-get-touch__card {
    inset-inline: 16px;
    bottom: 16px;
    max-width: none;
  }
}

/* =========================================================
   CURRICULUMS HUB
   ========================================================= */
.nm-hub-hero {
  padding: clamp(28px, 4vw, 48px) 0 12px;
}
.nm-hub-hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}
.nm-hub-hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.nm-hub-hero__aside {
  margin: 0;
  color: var(--nm-muted);
  line-height: 1.65;
}
@media (max-width: 800px) {
  .nm-hub-hero__grid { grid-template-columns: 1fr; }
}

.nm-hub-filters {
  margin: 0 0 32px;
}
.nm-hub-filters__label {
  margin: 0 0 12px;
  font-family: var(--nm-font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nm-navy);
}
.nm-filter-pills,
.nm-hub-filters .nm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nm-filter-pill,
.nm-hub-filters .nm-tab {
  appearance: none;
  border: 1.5px solid var(--nm-border);
  background: #fff;
  color: var(--nm-navy);
  border-radius: 10px;
  padding: 10px 16px;
  font-family: var(--nm-font-display);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

@media (max-width: 480px) {
  .nm-filter-pill,
  .nm-hub-filters .nm-tab,
  .nm-tabs .nm-tab {
    padding: 8px 12px;
    font-size: 0.72rem;
  }
  .nm-filter-pills,
  .nm-tabs,
  .nm-hub-filters .nm-tabs {
    gap: 6px;
  }
}
.nm-filter-pill.is-active,
.nm-filter-pill[aria-pressed="true"],
.nm-hub-filters .nm-tab.is-active {
  background: var(--nm-navy);
  border-color: var(--nm-navy);
  color: #fff;
}

.nm-curr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 16px;
}
@media (max-width: 800px) {
  .nm-curr-grid { grid-template-columns: 1fr; }
}

.nm-curr-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--nm-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 28px rgba(26, 43, 76, 0.05);
  transition: transform 0.15s, box-shadow 0.15s;
}
/* display:flex above must not defeat filter [hidden] (same as a.nm-card) */
.nm-curr-card[hidden],
[data-nm-filterable][hidden],
[data-nm-filterable].is-filtered-out,
[data-nm-filter-empty][hidden] {
  display: none !important;
}
.nm-curr-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--nm-shadow);
}
.nm-curr-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--nm-gray-bg) center/cover no-repeat;
}
.nm-curr-card__grade {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--nm-navy);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.nm-curr-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.nm-curr-card__cat {
  color: var(--nm-teal);
  font-family: var(--nm-font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nm-curr-card h2,
.nm-curr-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--nm-navy);
}
.nm-curr-card p {
  margin: 0;
  color: var(--nm-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
}
.nm-curr-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.nm-curr-card__link {
  color: var(--nm-navy);
  font-weight: 700;
  font-size: 0.88rem;
}
.nm-curr-card__formats {
  display: flex;
  gap: 6px;
}
.nm-curr-card__fmt {
  background: var(--nm-gray-bg);
  color: var(--nm-teal);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* Portfolio approach */
.nm-portfolio-approach {
  padding: clamp(48px, 7vw, 80px) 0;
}
.nm-portfolio-approach__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.nm-portfolio-approach h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  text-transform: uppercase;
  line-height: 1.2;
}
.nm-portfolio-approach p {
  color: var(--nm-muted);
  line-height: 1.65;
}
.nm-check-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.nm-check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--nm-navy);
}
.nm-check-list li::before {
  content: "✓";
  color: var(--nm-teal);
  font-weight: 800;
}
.nm-portfolio-approach__media {
  border-radius: 16px;
  min-height: 320px;
  background: var(--nm-gray-bg) center/cover no-repeat;
  box-shadow: var(--nm-shadow);
}
@media (max-width: 800px) {
  .nm-portfolio-approach__grid { grid-template-columns: 1fr; }
}

/* Navy CTA band */
.nm-figma-cta,
.nm-navy-cta {
  background: transparent;
  padding: 0 0 clamp(40px, 6vw, 64px);
}
.nm-figma-cta__inner,
.nm-navy-cta__inner {
  background: var(--nm-navy);
  color: #fff;
  border-radius: var(--nm-radius-lg);
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px);
  text-align: center;
  display: block;
}
.nm-figma-cta__inner > div:first-child,
.nm-navy-cta__copy {
  max-width: 720px;
  margin-inline: auto;
}
.nm-figma-cta h2,
.nm-navy-cta h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.nm-figma-cta p,
.nm-navy-cta p {
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 54ch;
  line-height: 1.6;
}
.nm-figma-cta__actions,
.nm-navy-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  align-items: center;
}

/* =========================================================
   CURRICULUM DETAIL
   ========================================================= */
.nm-detail-hero {
  padding: clamp(28px, 4vw, 48px) 0 12px;
}
.nm-detail-hero h1 {
  margin: 0 0 36px;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 18ch;
}

.nm-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.nm-feature-card {
  background: #fff;
  border: 1px solid var(--nm-border);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 6px 20px rgba(26, 43, 76, 0.04);
}
.nm-feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--nm-teal-soft);
  color: var(--nm-teal);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.nm-feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.nm-feature-card p {
  margin: 0;
  color: var(--nm-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
@media (max-width: 800px) {
  .nm-feature-grid { grid-template-columns: 1fr; }
}

.nm-walkthrough {
  padding: clamp(40px, 6vw, 64px) 0;
}
.nm-walkthrough__panel {
  background: var(--nm-navy);
  border-radius: var(--nm-radius-lg);
  padding: clamp(28px, 4vw, 44px);
  color: #fff;
}
.nm-walkthrough__panel .nm-label-teal { color: var(--nm-teal) !important; }
.nm-walkthrough__panel h2 {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  text-transform: uppercase;
}
.nm-video-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0a1424 center/cover no-repeat;
  display: grid;
  place-items: center;
}
.nm-video-frame__play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 169, 157, 0.92);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  border: 0;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.nm-anatomy {
  padding: clamp(48px, 7vw, 80px) 0;
}
.nm-anatomy h2 {
  margin: 0 0 28px;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  text-transform: uppercase;
}
.nm-anatomy-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.nm-anatomy-item {
  background: var(--nm-gray-soft);
  border-radius: 12px;
  overflow: hidden;
}
.nm-anatomy-item__img {
  aspect-ratio: 3 / 4;
  background: var(--nm-gray-bg) center/cover no-repeat;
}
.nm-anatomy-item figcaption {
  padding: 10px 12px 14px;
  font-size: 0.78rem;
  color: var(--nm-muted);
  line-height: 1.4;
}
@media (max-width: 900px) {
  .nm-anatomy-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 8px;
  }
  .nm-anatomy-item {
    flex: 0 0 160px;
    scroll-snap-align: start;
  }
}

.nm-levels {
  padding: 0 0 clamp(48px, 7vw, 72px);
}
.nm-levels h2,
.nm-levels .nm-label-teal + h2 {
  margin: 0 0 20px;
}
.nm-accordion details {
  border-bottom: 1px solid var(--nm-border);
}
.nm-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  font-family: var(--nm-font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nm-navy);
}
.nm-accordion summary::-webkit-details-marker { display: none; }
.nm-accordion summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--nm-muted);
}
.nm-accordion details[open] summary::after { content: "−"; }
.nm-accordion__body {
  padding: 0 4px 20px;
  color: var(--nm-muted);
  line-height: 1.65;
  max-width: 70ch;
}

.nm-align {
  padding: clamp(40px, 6vw, 64px) 0;
  background: var(--nm-gray-bg);
}
.nm-align__panel {
  background: transparent;
}
.nm-align h2 {
  margin: 0 0 20px;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}
.nm-align .nm-tabs,
.nm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.nm-tab {
  appearance: none;
  border: 0;
  background: #fff;
  color: var(--nm-navy);
  border-radius: 10px;
  padding: 10px 16px;
  font-family: var(--nm-font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.nm-tab.is-active,
.nm-tab[aria-selected="true"] {
  background: var(--nm-navy);
  color: #fff;
}
.nm-tab-panel {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(26, 43, 76, 0.04);
}
.nm-tab-panel h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}
.nm-tab-panel p {
  margin: 0 0 14px;
  color: var(--nm-muted);
  line-height: 1.6;
}
.nm-link-teal {
  color: var(--nm-teal);
  font-weight: 700;
  text-decoration: none;
}
.nm-link-teal:hover { text-decoration: underline; }

.nm-case {
  padding: clamp(48px, 7vw, 80px) 0;
}
.nm-case__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}
.nm-case__photo {
  border-radius: 16px;
  aspect-ratio: 4 / 5;
  background: var(--nm-gray-bg) center/cover no-repeat;
  box-shadow: var(--nm-shadow);
}
.nm-case blockquote {
  margin: 0 0 16px;
  font-family: var(--nm-font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--nm-navy);
}
.nm-case cite {
  font-style: normal;
  color: var(--nm-muted);
  font-size: 0.92rem;
}
@media (max-width: 800px) {
  .nm-case__grid { grid-template-columns: 1fr; }
  .nm-case__photo { max-width: 280px; }
}

.nm-companion {
  padding: 0 0 clamp(48px, 7vw, 72px);
}
.nm-companion h2 {
  margin: 0 0 28px;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}
.nm-companion__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.nm-companion-card {
  border: 1px solid var(--nm-border);
  border-radius: 14px;
  padding: 22px 20px;
  background: #fff;
}
.nm-companion-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}
.nm-companion-card p {
  margin: 0 0 16px;
  color: var(--nm-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
@media (max-width: 800px) {
  .nm-companion__grid { grid-template-columns: 1fr; }
}

.nm-review-pack {
  padding: 0 0 clamp(48px, 7vw, 72px);
}
.nm-review-pack__panel {
  background: var(--nm-navy);
  border-radius: var(--nm-radius-lg);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 3.5vw, 40px);
  align-items: center;
}
.nm-review-pack__copy h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nm-review-pack__copy p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 38ch;
}
.nm-review-pack__copy ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.92);
}
.nm-review-pack__copy li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.98rem;
  line-height: 1.45;
}
.nm-review-pack__copy li::before {
  content: "✓";
  color: var(--nm-teal);
  font-weight: 800;
  flex: 0 0 auto;
  line-height: 1.35;
}
.nm-review-form {
  background: #fff;
  border-radius: 16px;
  padding: clamp(22px, 2.5vw, 28px);
  box-shadow: 0 12px 32px rgba(8, 16, 32, 0.18);
}
.nm-review-form h3 {
  margin: 0 0 18px;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--nm-navy);
}
.nm-review-form .nm-field {
  margin-bottom: 14px;
}
.nm-review-form .nm-form__row {
  display: block;
  margin-bottom: 0;
}
.nm-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.nm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.nm-field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--nm-navy);
}
.nm-field input,
.nm-field select,
.nm-field textarea {
  border: 1.5px solid #d7dde8;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: var(--nm-ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.nm-field input:focus,
.nm-field select:focus,
.nm-field textarea:focus {
  outline: none;
  border-color: var(--nm-teal);
  box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.18);
}
.nm-field input[aria-invalid="true"],
.nm-field select[aria-invalid="true"],
.nm-field textarea[aria-invalid="true"] {
  border-color: #d64545;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.12);
}
.nm-field__error {
  margin: 0;
  color: #c62828;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}
.nm-review-form .nm-btn {
  width: 100%;
  margin-top: 6px;
  border-radius: 10px;
  font-weight: 700;
}
.nm-review-form__success {
  text-align: left;
  padding: 8px 2px 4px;
}
.nm-review-form__success h3 {
  margin: 0 0 8px;
  color: var(--nm-navy);
}
.nm-review-form__success p {
  margin: 0;
  color: var(--nm-muted, #5a6578);
  line-height: 1.55;
}
.nm-notice--success {
  margin-top: 12px;
  color: var(--nm-teal-deep);
  font-weight: 600;
}
.nm-notice--error {
  margin-top: 12px;
  color: #c62828;
  font-weight: 600;
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
@media (max-width: 800px) {
  .nm-review-pack__panel { grid-template-columns: 1fr; align-items: stretch; }
  .nm-form__row { grid-template-columns: 1fr; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.nm-figma-footer {
  background: var(--nm-navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 48px 0 28px;
}
.nm-figma-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 28px 32px;
  margin-bottom: 28px;
}
.nm-figma-footer h5 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nm-figma-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nm-figma-footer li { margin-bottom: 8px; }
.nm-figma-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}
.nm-figma-footer a:hover { color: #fff; }
.nm-figma-footer__brand img {
  height: 40px;
  width: auto;
  /* Logo PNG ships with an opaque white canvas. brightness/invert made that
     canvas a solid white box on navy (Canva Dev comment). Use transparent
     on-dark mark + no invert so the mark stays visible on every page. */
  filter: none;
  display: block;
  object-fit: contain;
  background: transparent;
}
.nm-figma-footer__brand .nm-logo__wordmark,
.nm-figma-footer__wordmark {
  color: #fff;
  font-family: var(--nm-font-display);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
}
.nm-figma-footer__blurb {
  margin: 14px 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.72);
}
.nm-figma-footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
}
@media (max-width: 900px) {
  .nm-figma-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nm-figma-footer__grid { grid-template-columns: 1fr; }
}

/* Legacy compatibility */
.nm-figma-hero-wrap { display: none; }
.nm-main { min-height: 40vh; }
.nm-lead { color: var(--nm-muted); line-height: 1.65; max-width: 60ch; }
.nm-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.nm-value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.nm-value-card {
  background: #fff;
  border: 1px solid var(--nm-border);
  border-radius: 14px;
  padding: 20px;
}
.nm-value-card__icon {
  color: var(--nm-teal);
  font-family: var(--nm-font-display);
  font-weight: 800;
  margin-bottom: 8px;
}
@media (max-width: 800px) {
  .nm-value-strip { grid-template-columns: 1fr; }
}
.nm-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.nm-stat__num {
  display: block;
  font-family: var(--nm-font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--nm-navy);
}
.nm-stat__lbl {
  color: var(--nm-muted);
  font-size: 0.85rem;
}
@media (max-width: 700px) {
  .nm-trust-grid { grid-template-columns: 1fr 1fr; }
}

/* Page hero (interior) */
.nm-page-hero,
.nm-hero {
  padding: clamp(32px, 5vw, 56px) 0 24px;
}
.nm-hero__title,
.nm-page-hero h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  text-transform: uppercase;
  margin: 0 0 12px;
}
.nm-hero__sub,
.nm-page-hero__lead { color: var(--nm-muted); line-height: 1.6; max-width: 50ch; }
.nm-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.nm-grid { display: grid; gap: 18px; }
.nm-grid--2 { grid-template-columns: repeat(2, 1fr); }
.nm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.nm-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 800px) {
  .nm-grid--2, .nm-grid--3, .nm-grid--4 { grid-template-columns: 1fr; }
}
.nm-card {
  border: 1px solid var(--nm-border);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
a.nm-card,
a.nm-card--link,
.nm-card.nm-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}
a.nm-card:hover,
a.nm-card--link:hover,
.nm-card.nm-card--link:hover,
a.nm-card:focus-visible,
a.nm-card--link:focus-visible {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  border-color: var(--nm-teal, #0d9488);
  transform: translateY(-2px);
  outline: none;
}
a.nm-card:focus-visible,
a.nm-card--link:focus-visible {
  outline: 2px solid var(--nm-teal, #0d9488);
  outline-offset: 3px;
}
a.nm-card .nm-link-cta,
a.nm-card--link .nm-link-cta {
  pointer-events: none;
}

a.nm-card[hidden],
a.nm-card--link[hidden],
.nm-card.nm-card--link[hidden],
.nm-curr-card[hidden],
[data-nm-filterable][hidden] {
  display: none !important;
}

.nm-card__media {
  aspect-ratio: 16/10;
  border-radius: 10px;
  background: var(--nm-gray-bg) center / cover no-repeat;
  /* Fallback when no modifier — never leave an empty gray box in demos. */
  background-image: url("../images/card-books.jpg");
  margin-bottom: 12px;
}
.nm-card__media--classroom { background-image: url("../images/card-classroom.jpg"); }
.nm-card__media--students { background-image: url("../images/card-students.jpg"); }
.nm-card__media--books { background-image: url("../images/card-books.jpg"); }
.nm-card__media--eq { background-image: url("../images/path-eq.jpg"); }
.nm-card__media--deen { background-image: url("../images/path-deen.jpg"); }
.nm-card__media--skills { background-image: url("../images/path-skills.jpg"); }
.nm-card__media--arabic { background-image: url("../images/path-arabic.jpg"); }

.nm-featured {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--nm-border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 28px;
}
.nm-featured__media {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: var(--nm-gray-bg) center / cover no-repeat;
  background-image: url("../images/card-books.jpg");
}
@media (max-width: 720px) {
  .nm-featured { grid-template-columns: 1fr; }
}
.nm-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--nm-teal-soft);
  color: var(--nm-teal-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-inline-end: 6px;
}
.nm-link-cta {
  color: var(--nm-teal);
  font-weight: 700;
  text-decoration: none;
}
.nm-quote {
  margin: 0;
  padding: 24px;
  background: var(--nm-gray-soft);
  border-radius: 14px;
}
.nm-quote blockquote {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--nm-navy);
}
.nm-form { max-width: 720px; }
.nm-form__consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 12px 0 16px;
  font-size: 0.88rem;
  color: var(--nm-muted);
}
.nm-scroll-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.nm-scroll-row__item {
  flex: 0 0 180px;
  aspect-ratio: 3/4;
  border-radius: 12px;
  background: var(--nm-gray-bg);
  display: grid;
  place-items: center;
  color: var(--nm-muted);
  font-size: 0.85rem;
}
.nm-video {
  border-radius: 14px;
  overflow: hidden;
  background: var(--nm-navy);
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
  color: #fff;
}
.nm-video__placeholder {
  text-align: center;
  display: grid;
  gap: 6px;
}
.nm-level-toggle { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.nm-level-pill {
  border: 1.5px solid var(--nm-border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--nm-navy);
}
.nm-level-pill.is-active {
  background: var(--nm-navy);
  border-color: var(--nm-navy);
  color: #fff;
}
.nm-note { color: var(--nm-muted); font-size: 0.9rem; }

/* Partners & networks — solid cards (Why NM Edu) */
.nm-partners {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.nm-partner-card,
.nm-partner-logo {
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
  border: 1px solid var(--nm-border);
  border-top: 3px solid var(--nm-teal);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(26, 43, 76, 0.07);
  padding: 18px 16px 16px;
}
.nm-partner-card__icon,
.nm-partner-logo__icon {
  background: var(--nm-teal-soft);
  color: var(--nm-teal);
}
.nm-partner-card__title,
.nm-partner-logo__title {
  color: var(--nm-navy);
  font-family: var(--nm-font-display);
  font-weight: 700;
}
.nm-partner-card__desc,
.nm-partner-logo__desc {
  color: var(--nm-muted);
}
.nm-partners__note {
  margin-top: 18px;
  color: var(--nm-muted);
  font-size: 0.8rem;
  text-align: center;
  background: transparent;
  border: 0;
}
@media (max-width: 900px) {
  .nm-partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .nm-partners { grid-template-columns: 1fr; }
}

.nm-filter-empty { color: var(--nm-muted); padding: 24px 0; }

/* Force path rows visible on first paint */
.nm-paths .nm-path-row,
.nm-paths__list .nm-path-row {
  opacity: 1 !important;
  visibility: visible !important;
}


/* —— Resource detail (Figma Page 3 / 269:919) —— */
.nm-section--resource-detail {
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: 0;
}
.nm-resource-detail__header {
  max-width: 920px;
  margin-bottom: 28px;
}
.nm-resource-detail__header .nm-breadcrumb {
  margin-bottom: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nm-teal, #0aa3a1);
}
.nm-resource-detail__header .nm-breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.nm-resource-detail__header .nm-breadcrumb a:hover {
  text-decoration: underline;
}
.nm-resource-detail__title {
  margin: 0 0 14px;
  font-family: var(--nm-font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--nm-navy);
}
.nm-resource-detail__meta {
  margin: 0;
  color: var(--nm-muted);
  font-size: 0.92rem;
}
.nm-resource-detail__hero {
  margin: 0 0 clamp(28px, 4vw, 40px);
  border-radius: var(--nm-radius-lg, 16px);
  overflow: hidden;
  background: var(--nm-gray-bg, #eef1f6);
}
.nm-resource-detail__hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.nm-resource-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.nm-resource-detail__lead {
  margin: 0 0 20px;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--nm-ink, #1a2333);
}
.nm-resource-detail__quote {
  margin: 28px auto 32px;
  padding: 22px 8px;
  max-width: 46ch;
  text-align: center;
  border: 0;
  border-block: 1px solid var(--nm-border, #d8dee8);
  background: transparent;
  border-radius: 0;
}
.nm-resource-detail__quote p {
  margin: 0;
  font-family: var(--nm-font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--nm-navy);
  font-style: italic;
}
.nm-resource-detail__pack {
  position: sticky;
  top: 96px;
  padding: 24px 22px;
  border-radius: 14px;
  background: var(--nm-teal-soft, #e6f7f6);
  border: 1px solid rgba(0, 169, 157, 0.22);
  box-shadow: none;
}
/* Figma resource-detail CTA: teal Schedule on navy band */
.nm-resource-detail__cta .nm-btn--teal {
  background: var(--nm-teal);
  border-color: var(--nm-teal);
  color: #fff !important;
}
.nm-resource-detail__cta .nm-btn--teal:hover {
  background: var(--nm-teal-deep);
  border-color: var(--nm-teal-deep);
}
.nm-resource-detail__pack h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--nm-navy);
}
.nm-resource-detail__pack p {
  margin: 0 0 18px;
  color: var(--nm-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.nm-resource-detail__related {
  padding-bottom: clamp(40px, 6vw, 72px);
}
.nm-resource-detail__related h2 {
  margin: 0 0 22px;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  color: var(--nm-navy);
}
.nm-resource-detail__related .nm-text-link {
  color: var(--nm-teal, #0aa3a1);
  font-weight: 600;
  text-decoration: none;
}
.nm-resource-detail__related .nm-text-link:hover {
  text-decoration: underline;
}
.nm-resource-detail__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
}
.nm-resource-detail__cta {
  margin-top: 0;
}
@media (max-width: 900px) {
  .nm-resource-detail__grid {
    grid-template-columns: 1fr;
  }
  .nm-resource-detail__pack {
    position: static;
  }
}

/* =========================================================
   Canva curriculum structure — cover + description (v1.9.4)
   ========================================================= */
.nm-line-cover {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) 1.2fr;
  gap: 28px;
  align-items: center;
  margin: 28px 0 8px;
  padding: 20px;
  border-radius: 20px;
  background: #f4f7fb;
  border: 1px solid rgba(10, 37, 88, 0.08);
}
.nm-line-cover__media {
  min-height: 220px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
}
.nm-line-cover__body h2 {
  margin: 6px 0 10px;
  font-family: var(--nm-font-display);
  color: var(--nm-navy-deep, #0a1628);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}
.nm-line-cover__body p { margin: 0 0 12px; color: var(--nm-muted, #5b6472); line-height: 1.6; max-width: 48ch; }
.nm-feature-grid { gap: 20px; }
.nm-card { gap: 10px; }
.nm-section--muted,
.nm-library-layout {
  background: linear-gradient(180deg, #f3f8f7 0%, #f7f9fc 100%);
}
@media (max-width: 760px) {
  .nm-line-cover { grid-template-columns: 1fr; }
  .nm-line-cover__media { min-height: 160px; }
}


@media (min-width: 901px) {
  .nm-nav > .menu-item-has-children > a {
    position: relative;
    z-index: 1201;
  }
  .nm-nav > .menu-item-has-children::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
    z-index: 1199;
  }
}

/* =========================================================
   v1.9.13 — Header nav alignment + Arabic typography
   ========================================================= */
@media (min-width: 901px) {
  .nm-nav { align-items: stretch; }
  .nm-nav > li {
    display: flex;
    align-items: center;
  }
  /* Same box for every top-level link (plain + dropdown) so baselines line up */
  .nm-nav > li > a {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    line-height: 1;
    padding: 10px 2px !important;
  }
  .nm-nav .menu-item-has-children > a::after { margin-top: 0; }
}

/* Arabic: Latin display font + uppercase + tracking break joined letters */
html[dir="rtl"] * {
  letter-spacing: 0 !important;
}
html[dir="rtl"] .nm-nav a,
html[dir="rtl"] .nm-nav-panel a,
html[dir="rtl"] .nm-btn,
html[dir="rtl"] .nm-figma-footer h5,
html[dir="rtl"] .nm-trust-item,
html[dir="rtl"] .nm-vision-card__btn,
html[dir="rtl"] .nm-path-row__cat {
  font-family: var(--nm-font-arabic) !important;
  text-transform: none !important;
}
@media (min-width: 901px) {
  html[dir="rtl"] .nm-nav { gap: 4px 26px; }
  html[dir="rtl"] .nm-nav a {
    font-size: 0.95rem !important;
    font-weight: 600;
  }
}
@media (min-width: 901px) and (max-width: 1199px) {
  html[dir="rtl"] .nm-nav { gap: 2px 14px; }
  html[dir="rtl"] .nm-nav a { font-size: 0.85rem !important; }
}
html[dir="rtl"] .nm-figma-footer h5 { font-size: 0.95rem; }

/* =========================================================
   v1.9.13 — Contact page
   ========================================================= */
.nm-contact-hero {
  background: linear-gradient(180deg, var(--nm-navy-tint) 0%, #fff 100%);
  padding: clamp(28px, 4vw, 48px) 0 clamp(24px, 3vw, 36px);
}
.nm-contact-hero .nm-breadcrumb { margin-bottom: 14px; padding: 0; }
.nm-contact-hero__eyebrow {
  margin: 0 0 8px;
  color: var(--nm-teal);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nm-contact-hero__title {
  margin: 0 0 12px;
  color: var(--nm-navy);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}
.nm-contact-hero__lead {
  margin: 0;
  max-width: 60ch;
  color: var(--nm-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.nm-contact-body { padding: clamp(24px, 3vw, 40px) 0 clamp(48px, 6vw, 72px); }
.nm-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.nm-contact-card {
  background: #fff;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius-lg);
  box-shadow: var(--nm-shadow);
  padding: clamp(22px, 3vw, 36px);
}
.nm-contact-card__title {
  margin: 0 0 4px;
  color: var(--nm-navy);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}
.nm-contact-card__note {
  margin: 0 0 22px;
  color: var(--nm-muted);
  font-size: 0.92rem;
}
.nm-contact-card .nm-form { max-width: none; }
.nm-contact-card .nm-btn[type="submit"] { width: 100%; justify-content: center; }

.nm-contact-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--nm-header-h, 72px) + 16px);
}
.nm-contact-direct {
  background: var(--nm-navy);
  color: #fff;
  border-radius: var(--nm-radius-lg);
  padding: 22px 24px;
}
.nm-contact-direct h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.1rem;
}
.nm-contact-direct__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.nm-contact-direct__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}
.nm-contact-direct__list a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.nm-contact-direct__list a:hover { color: var(--nm-teal-soft); text-decoration: underline; }
.nm-contact-direct__icon {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 169, 157, 0.2);
  color: var(--nm-teal);
}

.nm-contact-desks {
  background: #fff;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius-lg);
  padding: 20px 24px;
}
.nm-contact-desks h3 {
  margin: 0 0 6px;
  color: var(--nm-navy);
  font-size: 1.05rem;
}
.nm-contact-desk {
  padding: 12px 0;
  border-top: 1px solid var(--nm-border);
}
.nm-contact-desks h3 + .nm-contact-desk { border-top: 0; }
.nm-contact-desk h4 {
  margin: 0 0 4px;
  color: var(--nm-navy);
  font-size: 0.95rem;
}
.nm-contact-desk p {
  margin: 0;
  color: var(--nm-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.nm-contact-desk a { color: var(--nm-teal-deep); overflow-wrap: anywhere; }

.nm-contact-coverage {
  background: var(--nm-teal-soft);
  border-radius: var(--nm-radius-lg);
  padding: 18px 24px;
}
.nm-contact-coverage__title {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--nm-navy);
}
.nm-contact-coverage__sub {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--nm-muted);
}

html[dir="rtl"] .nm-contact-page { text-align: right; }

@media (max-width: 900px) {
  .nm-contact-layout { grid-template-columns: 1fr; }
  .nm-contact-aside { position: static; }
}

/* v1.9.14 — 3-stat trust bar (content doc) */
.nm-trust-bar__row { justify-content: space-around; }

/* =========================================================
   v1.9.19 — Client forms (Contact / Demo / Sample / Distributor)
   ========================================================= */
.nm-home-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.nm4-card { max-width: 860px; margin-inline: auto; }
.nm4-form__heading { margin: 0 0 16px; color: var(--nm-navy); font-size: 1.15rem; }
.nm4-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.nm4-field--wide { grid-column: 1 / -1; }
.nm4-field label,
.nm4-field legend {
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--nm-navy);
}
.nm4-field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.nm4-field input,
.nm4-field select,
.nm4-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid var(--nm-border);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--nm-ink);
}
.nm4-field input:focus,
.nm4-field select:focus,
.nm4-field textarea:focus {
  outline: 2px solid var(--nm-teal);
  outline-offset: 1px;
  border-color: var(--nm-teal);
}
.nm4-req { color: #c0392b; }
.nm4-checks { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.nm4-check {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 8px 12px;
  border: 1px solid var(--nm-border);
  border-radius: 999px;
  font-weight: 500 !important;
  cursor: pointer;
}
.nm4-check input { width: auto; margin: 0; accent-color: var(--nm-teal); }
.nm4-check:has(input:checked) { border-color: var(--nm-teal); background: var(--nm-teal-soft); }
.nm4-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 16px;
  font-size: 0.88rem;
  color: var(--nm-muted);
}
.nm4-consent input { margin-top: 3px; accent-color: var(--nm-teal); }
.nm4-consent a { color: var(--nm-teal-deep); }
.nm4-submit { width: 100%; justify-content: center; }
.nm4-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.nm4-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fdecea;
  color: #8a1f11;
  font-weight: 600;
}
.nm4-success {
  padding: 22px;
  border-radius: 14px;
  background: var(--nm-teal-soft);
  color: var(--nm-navy);
}
.nm4-success h3 { margin: 0 0 6px; }
.nm4-success p { margin: 0; }
/* Review-pack band on curriculum pages now hosts the sample form (white card). */
.nm-review-pack__panel .nm4-form {
  background: #fff;
  border-radius: 16px;
  padding: clamp(20px, 2.5vw, 28px);
}
.nm4-thanks { text-align: center; padding-bottom: clamp(40px, 6vw, 72px); }
.nm4-thanks .nm-contact-hero__lead { margin-inline: auto; margin-bottom: 18px; }
.nm4-thanks__curr { font-weight: 700; color: var(--nm-teal-deep); }
.nm4-thanks__note { margin: 0 0 18px; }
.nm4-booking iframe { width: 100%; min-height: 680px; border: 0; border-radius: 12px; }
html[dir="rtl"] .nm4-form,
html[dir="rtl"] .nm4-field label,
html[dir="rtl"] .nm4-field legend { text-align: right; }
@media (max-width: 640px) {
  .nm4-grid { grid-template-columns: 1fr; }
}

/* v1.9.19 — official NM Learning logo (stacked lockup already includes the name). */
.nm-logo img,
.nm-logo__img { height: 58px !important; max-width: 120px !important; width: auto; }
.nm-logo__wordmark { display: none !important; }
@media (max-width: 900px) {
  .nm-logo img,
  .nm-logo__img { height: 48px !important; }
}

/* =========================================================
   v1.9.20 — Approved Figma home hero: full-width photo
   ========================================================= */
.nm-home-hero--photo {
  position: relative;
  padding: clamp(56px, 8vw, 110px) 0;
  background:
    linear-gradient(90deg, rgba(250, 250, 248, 0.97) 0%, rgba(250, 250, 248, 0.9) 34%, rgba(250, 250, 248, 0.35) 58%, rgba(250, 250, 248, 0) 75%),
    var(--nm-hero-img) center right / cover no-repeat;
}
html[dir="rtl"] .nm-home-hero--photo {
  background:
    linear-gradient(270deg, rgba(250, 250, 248, 0.97) 0%, rgba(250, 250, 248, 0.9) 34%, rgba(250, 250, 248, 0.35) 58%, rgba(250, 250, 248, 0) 75%),
    var(--nm-hero-img) center left / cover no-repeat;
}
.nm-home-hero--photo .nm-home-hero__grid { grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr); }
.nm-home-hero--photo .nm-home-hero__visual { visibility: hidden; }
.nm-home-hero .nm-accent {
  background: linear-gradient(90deg, var(--nm-teal) 0%, #1f5fae 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nm-btn--teal { background: linear-gradient(90deg, var(--nm-teal) 0%, #1f5fae 100%); border-color: transparent; }
@media (max-width: 800px) {
  .nm-home-hero--photo {
    background:
      linear-gradient(180deg, rgba(250, 250, 248, 0.95) 0%, rgba(250, 250, 248, 0.88) 100%),
      var(--nm-hero-img) center / cover no-repeat;
  }
  .nm-home-hero--photo .nm-home-hero__grid { grid-template-columns: 1fr; }
  .nm-home-hero--photo .nm-home-hero__visual { display: none; }
}

/* =========================================================
   v1.9.20 — Footer (client's Macmillan reference)
   ========================================================= */
.nm-site-footer {
  background: #f5f5f5;
  color: #3d4250;
  padding: clamp(40px, 6vw, 72px) 0 28px;
  font-size: 0.95rem;
}
.nm-site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
  gap: 32px 40px;
}
.nm-site-footer__brand img { height: 120px; width: auto; display: block; margin-bottom: 14px; }
.nm-site-footer__blurb { margin: 0; max-width: 32ch; line-height: 1.6; color: #5c6478; }
.nm-site-footer h5 {
  margin: 0 0 18px;
  padding-bottom: 10px;
  position: relative;
  color: #3d4250;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.nm-site-footer h5::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 54px;
  height: 3px;
  background: #d32f2f;
}
.nm-site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nm-site-footer__col li { position: relative; padding-inline-start: 14px; }
.nm-site-footer__col li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.65em;
  width: 4px;
  height: 4px;
  background: #d32f2f;
}
.nm-site-footer a { color: #3d4250; text-decoration: none; }
.nm-site-footer a:hover { color: #d32f2f; }
.nm-site-footer__contact p { margin: 0 0 14px; line-height: 1.5; }
.nm-site-footer__contact strong { color: #3d4250; }
.nm-site-footer__more { font-weight: 700; text-decoration: underline !important; }
.nm-site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e2e2e2;
  font-size: 0.85rem;
  color: #6b7280;
}
.nm-site-footer__legal { display: inline-flex; gap: 18px; }
.nm-site-footer__social { display: inline-flex; align-items: center; gap: 16px; }
.nm-site-footer__social a { color: #3d4250; display: inline-flex; }
@media (max-width: 900px) {
  .nm-site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nm-site-footer__grid { grid-template-columns: 1fr; }
  .nm-site-footer__meta { flex-direction: column; align-items: flex-start; }
}
html[dir="rtl"] .nm-site-footer { text-align: right; }

/* =========================================================
   v1.9.20 — Curriculum pages: one structure for every line
   (client Canva: covers image + description at 2:3, image scroll,
   sample download, form)
   ========================================================= */
.nm-line-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin: 8px 0 clamp(28px, 4vw, 48px);
}
.nm-line-hero__media {
  aspect-ratio: 1 / 1;
  border-radius: var(--nm-radius-lg);
  background: var(--nm-gray-bg) center / cover no-repeat;
  box-shadow: var(--nm-shadow);
}
.nm-line-hero__body h1 { margin: 6px 0 16px !important; }
.nm-line-hero__text { color: var(--nm-muted); line-height: 1.7; }
.nm-line-hero__text p { margin: 0 0 12px; }
.nm-line-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.nm-gallery-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  grid-template-columns: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.nm-gallery-scroll .nm-anatomy-item { scroll-snap-align: start; }
.nm-gallery-scroll .nm-anatomy-item__img { aspect-ratio: 1 / 1; }
@media (max-width: 800px) {
  .nm-line-hero__grid { grid-template-columns: 1fr; }
  .nm-line-hero__media { aspect-ratio: 4 / 3; }
}

/* Client dev comments: consistent card spacing; brand-aligned library background. */
.nm-curr-grid { gap: 24px !important; }
.nm-grid--3, .nm-grid--4 { gap: 24px; }
.nm-library-layout { background: linear-gradient(180deg, #eef2f8 0%, #f7f9fc 100%); }

/* v1.9.20 — approved Figma headline font (condensed Oswald). Arabic keeps Noto Sans Arabic. */
:root { --nm-font-display: "Oswald", "Montserrat", system-ui, sans-serif; }
html[dir="ltr"] h1, html[dir="ltr"] h2,
html[dir="ltr"] .nm-home-hero__title,
html[dir="ltr"] .nm-paths__title { font-family: var(--nm-font-display); font-weight: 700; letter-spacing: 0; }

/* =========================================================
   v1.9.21 — Task list fixes
   ========================================================= */
/* Footer newsletter + language switcher (P2-03) */
.nm-site-footer__newsletter { margin-top: 18px; }
.nm-site-footer__nl-title { margin: 0 0 8px; font-weight: 800; text-transform: uppercase; font-size: 0.85rem; color: #3d4250; }
.nm-newsletter { display: flex; gap: 8px; max-width: 360px; }
.nm-newsletter input[type="email"] {
  flex: 1 1 auto; min-width: 0; padding: 10px 12px;
  border: 1px solid #d5d9e0; border-radius: 10px; background: #fff; font: inherit;
}
.nm-newsletter .nm-btn { white-space: nowrap; }
.nm-newsletter__done { font-weight: 600; color: var(--nm-teal-deep); }
.nm-site-footer__lang .nm-lang-switch { display: inline-flex; gap: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Approved blog cards (P1-05, P2-20) */
.nm-blog-card { overflow: hidden; padding: 0 !important; }
.nm-blog-card__img { aspect-ratio: 16 / 10; background: var(--nm-gray-bg) center / cover no-repeat; }
.nm-blog-card .nm-card__body { padding: 18px 20px 22px; }
.nm-blog-card h3 { font-size: 1.02rem; line-height: 1.35; margin: 0 0 8px; }
.nm-blog-card p { margin: 0; color: var(--nm-muted); line-height: 1.6; }
.nm-aud-section { margin-top: clamp(28px, 4vw, 48px); }
.nm-aud-section > h2 { margin: 0 0 18px; }
.nm-aud-section__cta { margin-top: 20px; }

/* Lines overview (For Distributors, P2-19) */
.nm-lines-overview .nm-path-row { grid-template-columns: 96px minmax(0, 1fr) auto; }
.nm-lines-overview__cta { margin-top: 22px; }

/* Skills & Literacy sub-strands (P2-12) */
.nm-strands { padding: 8px 0 clamp(24px, 4vw, 40px); }
.nm-strand { max-width: 75ch; padding-top: 16px; }
.nm-strand h3 { margin: 0 0 8px; color: var(--nm-navy); }
.nm-strand__opener { font-weight: 700; color: var(--nm-teal-deep); }
.nm-strand p { line-height: 1.75; color: var(--nm-ink); }

/* Curriculums: centre a lone last card in the 2-column grid (P2-11) */
@media (min-width: 801px) {
  .nm-curr-grid > .nm-curr-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 12px);
  }
}
.nm-approach__close { font-weight: 700; color: var(--nm-navy); margin-top: 14px; }
.nm-page-hero__intro { max-width: 70ch; color: var(--nm-muted); line-height: 1.7; margin-top: 14px; }

/* Mobile menu: lock background scroll while open (P2-33) */
html:has(body.nm-nav-open) { overflow: hidden; }
body.nm-nav-open { overflow: hidden; touch-action: none; }

/* v1.9.26 — several sample files on one thank-you page */
.nm4-downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* v1.9.27 - 'Soon' badge in navigation */
.nm-soon { display: inline-block; margin-inline-start: 6px; padding: 2px 7px; border-radius: 999px; background: var(--nm-teal-soft); color: var(--nm-teal-deep) !important; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: middle; line-height: 1.4; }

