/* ========================================================================
   S.S.M. GLOBAL SCHOOL — shared stylesheet
   Palette: Saffron + Maroon + Cream (Indian Academic)
   ======================================================================== */

:root {
  /* Core palette */
  --saffron: #E87722;
  --saffron-l: #F2A65A;
  --saffron-d: #C45F12;
  --maroon: #6B1E2C;
  --maroon-d: #4A1320;
  --maroon-l: #8B2635;
  --gold: #B8862B;
  --gold-l: #D4A24C;
  --gold-xl: #EAC078;

  --cream: #FBF6EC;
  --cream-2: #F5EDE0;
  --cream-3: #EFE3CC;
  --paper: #FFFCF6;
  --white: #FFFFFF;

  --ink: #1A0F0A;
  --ink-2: #2A1B12;
  --text: #2A1B12;
  --text-m: #6E5B4A;
  --text-l: #9C8870;

  --line: #E5D9C4;
  --line-d: #D5C5A8;

  /* Type */
  --serif: 'Marcellus', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --deva: 'Tiro Devanagari Hindi', 'Marcellus', serif;
  --gurmukhi: 'Tiro Gurmukhi', 'Marcellus', serif;

  /* Misc */
  --shadow-sm: 0 1px 2px rgba(74, 19, 32, .06), 0 2px 8px rgba(74, 19, 32, .04);
  --shadow: 0 4px 12px rgba(74, 19, 32, .08), 0 12px 40px rgba(74, 19, 32, .06);
  --shadow-lg: 0 12px 30px rgba(74, 19, 32, .10), 0 28px 80px rgba(74, 19, 32, .12);
  --radius: 14px;
  --radius-lg: 22px;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease, background .25s ease; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--saffron); color: var(--cream); }

/* Decorative paper texture overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(232, 119, 34, .04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(107, 30, 44, .03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.wrap-sm { max-width: 920px; margin: 0 auto; padding: 0 40px; }
.wrap-lg { max-width: 1480px; margin: 0 auto; padding: 0 40px; }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.topbar {
  background: var(--maroon-d);
  color: rgba(255, 252, 246, .7);
  font-size: .78rem;
  padding: 8px 0;
  letter-spacing: .3px;
  border-bottom: 1px solid rgba(255, 252, 246, .06);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.tb-left { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.tb-left span { display: flex; align-items: center; gap: 7px; }
.tb-left i { color: var(--saffron-l); }
.topbar a { color: rgba(255, 252, 246, .7); }
.topbar a:hover { color: var(--gold-xl); }
.tb-right { display: flex; gap: 8px; align-items: center; }
.tb-right a {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 252, 246, .12);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem;
  transition: all .3s;
}
.tb-right a:hover { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }

.hdr {
  background: rgba(255, 252, 246, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.hdr.scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 252, 246, .98);
}
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }

.logo { display: flex; align-items: center; gap: 14px; }
.logo-mark {
  width: 54px; height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff 0%, var(--cream) 70%),
    var(--cream);
  padding: 3px;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 14px rgba(184, 134, 43, .25);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.logo-text h1 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--maroon);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .2px;
}
.logo-text span {
  display: block;
  font-size: .58rem;
  color: var(--saffron-d);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 4px;
}

nav { display: flex; align-items: center; gap: 2px; }
nav a {
  padding: 10px 14px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-m);
  border-radius: 6px;
  letter-spacing: .2px;
  position: relative;
}
nav a:hover { color: var(--maroon); }
nav a.on { color: var(--maroon); font-weight: 600; }
nav a.on::after {
  content: ''; position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--saffron), var(--maroon));
  border-radius: 2px;
}
.nav-cta {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-d) 100%) !important;
  color: var(--cream) !important;
  padding: 11px 22px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: .8rem !important;
  letter-spacing: .3px;
  margin-left: 12px;
  box-shadow: 0 6px 18px rgba(232, 119, 34, .3);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(232, 119, 34, .4); }
.nav-cta::after { display: none !important; }

.mob-btn {
  display: none;
  background: none; border: none;
  font-size: 1.4rem; color: var(--maroon);
}

/* ============================================================
   3D HERO  (Three.js sits beneath this content)
   ============================================================ */
.hero3d {
  position: relative;
  height: 100vh; min-height: 700px; max-height: 1000px;
  overflow: hidden;
  background: linear-gradient(180deg, #FBF6EC 0%, #F5EDE0 100%);
}
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, rgba(0,0,0,.4) 52%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, rgba(0,0,0,.4) 52%, #000 70%);
}
@media (max-width: 900px) {
  #hero-canvas {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 38%, rgba(0,0,0,.35) 60%, #000 90%);
    mask-image: linear-gradient(180deg, transparent 0%, transparent 38%, rgba(0,0,0,.35) 60%, #000 90%);
    opacity: .55;
  }
}
.hero3d::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 25%;
  background: linear-gradient(to bottom, transparent 0%, var(--cream) 100%);
  pointer-events: none;
  z-index: 2;
}
.hero3d-content {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  z-index: 3;
  pointer-events: none;
}
.hero3d-content > * { pointer-events: auto; }
.hero3d-content .wrap { width: 100%; }
.hero-sanskrit {
  font-family: var(--deva);
  font-size: 1.05rem;
  color: var(--saffron-d);
  letter-spacing: 1px;
  margin-bottom: 24px;
  font-weight: 400;
}
.hero-sanskrit::before {
  content: '॥'; color: var(--gold); margin-right: 12px; font-size: 1.2em;
}
.hero-sanskrit::after {
  content: '॥'; color: var(--gold); margin-left: 8px; font-size: 1.2em;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232, 119, 34, .12);
  border: 1px solid rgba(232, 119, 34, .25);
  color: var(--saffron-d);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-tag .dot {
  width: 6px; height: 6px; background: var(--saffron); border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.5); }
}
.hero3d-content h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6.5vw, 5.4rem);
  color: var(--maroon);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.5px;
  margin-bottom: 20px;
  max-width: 920px;
}
.hero3d-content h1 em {
  font-style: italic;
  color: var(--saffron-d);
  font-family: var(--serif);
}
.hero3d-content p {
  font-size: 1.1rem;
  color: var(--text-m);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .85rem;
  border: none;
  letter-spacing: .3px;
  transition: all .3s;
  font-family: var(--sans);
}
.btn-primary {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-d) 100%);
  color: var(--cream);
  box-shadow: 0 8px 24px rgba(107, 30, 44, .25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(107, 30, 44, .35); }
.btn-saffron {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-d) 100%);
  color: var(--cream);
  box-shadow: 0 8px 24px rgba(232, 119, 34, .3);
}
.btn-saffron:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(232, 119, 34, .42); }
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--maroon);
  color: var(--maroon);
}
.btn-ghost:hover { background: var(--maroon); color: var(--cream); }
.btn-cream {
  background: var(--cream);
  color: var(--maroon);
}
.btn-cream:hover { background: var(--white); }

.hero-scroll {
  position: absolute;
  bottom: 50px; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: var(--text-m);
  font-size: .7rem;
  text-align: center;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--saffron), transparent);
  margin: 10px auto 0;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: .4; transform: scaleY(.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================================
   COMMON SECTION PATTERNS
   ============================================================ */
.section { padding: 110px 0; position: relative; }
.section.tight { padding: 80px 0; }

.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--saffron-d);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.sec-label::before {
  content: '';
  width: 28px; height: 1.5px;
  background: var(--saffron);
}
.sec-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--maroon);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.3px;
  margin-bottom: 18px;
}
.sec-title em { color: var(--saffron-d); font-style: italic; }
.sec-sub {
  color: var(--text-m);
  font-size: 1.05rem;
  max-width: 540px;
  line-height: 1.8;
}
.sec-head-center { text-align: center; }
.sec-head-center .sec-sub { margin: 0 auto; }
.sec-head-center .sec-label { justify-content: center; }
.sec-head-center .sec-label::before { display: none; }
.sec-head-center .sec-label::after {
  content: ''; width: 28px; height: 1.5px; background: var(--saffron);
  margin-left: 10px;
}
.sec-head-center .sec-label { display: inline-flex; }
.sec-head-center .sec-label::before {
  content: ''; display: inline-block; width: 28px; height: 1.5px; background: var(--saffron); margin-right: 10px;
}

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease; }
[data-reveal].shown { opacity: 1; transform: none; }

/* Decorative dividers / motifs */
.motif-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  margin: 0 auto 32px;
  max-width: 240px;
  color: var(--saffron);
}
.motif-divider::before, .motif-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.motif-divider svg { width: 28px; height: 28px; flex-shrink: 0; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-d) 100%);
  color: var(--cream);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 0% 0%, rgba(232, 119, 34, .15) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(184, 134, 43, .12) 0%, transparent 50%);
  pointer-events: none;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}
.stat {
  text-align: center;
  position: relative;
  padding: 0 16px;
}
.stat:not(:last-child)::after {
  content: '';
  position: absolute; right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255, 252, 246, .12);
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  font-weight: 400;
  color: var(--gold-xl);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num small { font-size: .5em; color: var(--saffron-l); }
.stat-label {
  font-size: .78rem;
  color: rgba(255, 252, 246, .7);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--ink);
  color: rgba(251, 246, 236, .6);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron) 0%, var(--gold) 50%, var(--maroon) 100%);
}
.ft-top {
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
}
.ft-brand h3 {
  font-family: var(--serif);
  color: var(--cream);
  font-size: 1.5rem;
  margin-bottom: 8px;
  font-weight: 400;
}
.ft-brand .tag {
  display: inline-block;
  font-size: .68rem;
  color: var(--saffron-l);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}
.ft-brand p { font-size: .88rem; line-height: 1.85; margin-bottom: 18px; max-width: 380px; }
.ft-socials { display: flex; gap: 8px; }
.ft-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(251, 246, 236, .12);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem;
  transition: all .3s;
}
.ft-socials a:hover { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }

.ft-col h4 {
  color: var(--gold-xl);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.ft-col li { margin-bottom: 9px; }
.ft-col a { font-size: .86rem; transition: all .25s; display: inline-flex; align-items: center; gap: 6px; }
.ft-col a:hover { color: var(--saffron-l); padding-left: 4px; }

.ft-bar {
  border-top: 1px solid rgba(251, 246, 236, .08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .76rem;
  flex-wrap: wrap;
  gap: 12px;
}
.ft-bar a { color: var(--gold-xl); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.btt {
  position: fixed; bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  background: var(--maroon); color: var(--cream);
  border: none; border-radius: 50%;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(74, 19, 32, .3);
  opacity: 0; visibility: hidden;
  transition: all .3s;
  z-index: 99;
  display: grid; place-items: center;
}
.btt.v { opacity: 1; visibility: visible; }
.btt:hover { background: var(--saffron); transform: translateY(-3px); }

/* ============================================================
   PAGE HEADER (used on inner pages)
   ============================================================ */
.page-hd {
  background:
    linear-gradient(135deg, var(--maroon) 0%, var(--maroon-d) 100%);
  color: var(--cream);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.page-hd::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 30%, rgba(232, 119, 34, .25) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(184, 134, 43, .15) 0%, transparent 50%);
  pointer-events: none;
}
.page-hd .wrap { position: relative; z-index: 1; }
.crumbs {
  display: flex; gap: 8px; align-items: center;
  font-size: .8rem;
  color: rgba(251, 246, 236, .5);
  margin-bottom: 22px;
}
.crumbs a { color: rgba(251, 246, 236, .7); }
.crumbs a:hover { color: var(--gold-xl); }
.crumbs i { font-size: .65rem; opacity: .5; }
.page-hd h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 16px;
}
.page-hd h1 em { color: var(--saffron-l); font-style: italic; }
.page-hd .lead {
  font-size: 1.05rem;
  color: rgba(251, 246, 236, .75);
  max-width: 620px;
  line-height: 1.75;
}
.page-hd-deva {
  font-family: var(--deva);
  font-size: 1rem;
  color: var(--saffron-l);
  margin-bottom: 18px;
}

/* ============================================================
   CARDS — common
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .35s ease;
}
.card:hover {
  border-color: var(--saffron-l);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Tilting card variant (3D feel) */
.tilt-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .4s cubic-bezier(.2, .9, .3, 1.2), box-shadow .35s, border-color .35s;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}
.tilt-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.tilt-card:hover {
  transform: translateY(-6px) rotateX(2deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--saffron-l);
}
.tilt-card:hover::before { transform: scaleX(1); }

/* ============================================================
   TABLES (CBSE disclosure)
   ============================================================ */
.dtbl {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
.dtbl th {
  background: var(--cream-2);
  padding: 14px 20px;
  text-align: left;
  font-size: .76rem;
  font-weight: 700;
  color: var(--maroon);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--line);
}
.dtbl td {
  padding: 14px 20px;
  font-size: .88rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-m);
}
.dtbl tr:hover td { background: var(--cream); }
.dtbl .sn { width: 50px; font-weight: 700; color: var(--maroon); text-align: center; }
.dtbl .il { font-weight: 600; color: var(--text); }

.disc-box {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.disc-hd {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-d) 100%);
  color: var(--cream);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.disc-hd i { color: var(--gold-xl); font-size: 1.3rem; }
.disc-hd h3 { font-size: 1rem; font-weight: 600; font-family: var(--sans); }
.disc-hd small { color: rgba(251, 246, 236, .55); font-size: .72rem; display: block; margin-top: 2px; }

.doc-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cream-2);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .78rem;
  color: var(--maroon);
  font-weight: 600;
  border: 1px solid var(--line);
  transition: all .3s;
}
.doc-link:hover { border-color: var(--saffron); background: var(--saffron); color: var(--cream); }
.doc-link.pending { background: rgba(184, 134, 43, .12); color: var(--gold); border-color: var(--gold-l); }
.doc-link.pending:hover { background: var(--gold); color: var(--cream); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ft-top { grid-template-columns: 1.5fr 1fr 1fr; }
  .ft-top .ft-col:nth-child(4) { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
  .stat:nth-child(2)::after { display: none; }
}
@media (max-width: 880px) {
  /* CRITICAL: backdrop-filter on .hdr traps fixed-positioned children inside its box.
     Disable on mobile so the sidebar nav can fill the full viewport height. */
  .hdr {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--cream) !important;
  }
  /* ===== Mobile sidebar (slide-in from right) ===== */
  nav {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0; bottom: 0;
    right: -100%;                 /* hidden, off-screen */
    width: 78%; max-width: 340px;
    background: #FBF6EC;          /* solid cream */
    padding: 90px 24px 40px;
    z-index: 1000;
    transition: right .32s ease;  /* slide via 'right' — no transform, no compositing blur */
    box-shadow: -10px 0 30px rgba(0,0,0,.18);
    overflow-y: auto;
    align-items: flex-start;
    gap: 0 !important;
  }
  nav.open { right: 0; }
  nav a {
    font-size: 1.05rem !important;
    padding: 16px 4px !important;
    width: 100%;
    border-bottom: 1px solid var(--line);
    color: var(--ink) !important;
    font-weight: 500;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    margin: 0 !important;
  }
  nav a.on::after { display: none !important; }
  nav a.on { color: var(--saffron-d) !important; font-weight: 700; }
  nav .nav-cta {
    margin-top: 20px !important;
    padding: 14px 24px !important;
    border-bottom: none !important;
    width: auto;
    border-radius: 50px !important;
    background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-d) 100%) !important;
    color: var(--cream) !important;
    box-shadow: 0 6px 18px rgba(232, 119, 34, .3) !important;
  }
  /* Backdrop — solid dim, placed BELOW .hdr (z:100) so sidebar inside .hdr renders above it */
  body.menu-open::before {
    content: '';
    position: fixed; inset: 0;
    background: rgba(20,12,10,.55);
    z-index: 50;
  }
  body.menu-open { overflow: hidden; }
  /* Hamburger — fixed top-right, bulletproof above everything */
  .mob-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed !important;
    top: 52px; right: 16px;
    width: 48px; height: 48px;
    z-index: 99999 !important;
    background: var(--maroon) !important;
    color: var(--cream) !important;
    border: none !important;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(74,19,32,.35);
    font-size: 1.25rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mob-btn i { pointer-events: none; }
  .ft-top { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; }
  .wrap, .wrap-sm, .wrap-lg { padding: 0 24px; }
  .section { padding: 70px 0; }
  .tb-left span:not(:first-child) { display: none; }
  .ft-bar { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .mob-btn { top: 46px !important; right: 14px !important; }
}
@media (max-width: 600px) {
  .topbar { font-size: .72rem; }
  .tb-right { display: none; }
  .logo-text h1 { font-size: 1.15rem; }
  .logo-text span { font-size: .55rem; letter-spacing: 2px; }
  .hero-btns .btn { padding: 13px 22px; font-size: .8rem; }
}

/* ============================================================
   Learning Portal nav link — distinct but not button-loud
   ============================================================ */
nav#nav .nav-learn {
  color: var(--saffron-d) !important;
  font-weight: 700;
}
nav#nav .nav-learn:hover {
  color: var(--maroon) !important;
}
nav#nav .nav-learn::after {
  background: var(--saffron-d) !important;
}
nav#nav .nav-learn i {
  font-size: .85rem;
  margin-right: 5px;
}
