/* ============================================================
   MASEEL ACADEMICS — Luxury UI v2 (styles.css)
   Refined emerald & gold design system. All JS hooks preserved.
   ============================================================ */

/* ================= DESIGN TOKENS ================= */
:root {
  --night:#04100C; --em-deep:#071B15; --em-dark:#0A241C; --em-700:#0F352A; --em:#143529; --em-600:#1B4A3A;
  --ivory:#F7F3E8; --cream:#F3EDDE; --sand:#E9E0C8; --white:#FFFFFF;
  --gold-deep:#8A6D2F; --gold:#B8944D; --gold-soft:#D8BC7E; --gold-pale:#EFE2BF; --champagne:#F6EAC6;
  --terracotta:#C96F4A; --terracotta-soft:#E2A185;
  --text:#232A24; --muted:#6A6F62; --line:#DCD4BF;
  --ink-soft:#C8D4C5; --ink-faint:#A6B4A8;
  --display:'Fraunces',Georgia,serif; --ui:'Inter',system-ui,sans-serif; --ar:'Amiri','Noto Naskh Arabic',serif;
  --ease:cubic-bezier(.16,1,.3,1);
  --r-xl:28px; --r-lg:22px; --r-md:16px; --r-sm:12px;
  --sh-1:0 10px 28px rgba(0,0,0,.28);
  --sh-2:0 24px 60px rgba(0,0,0,.42);
  --sh-gold:0 0 34px rgba(205,166,75,.28);
  --hairline:1px solid rgba(216,188,126,.32);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
html, body { font-family:var(--ui); font-size:15.5px; line-height:1.7; color:var(--text); background:var(--em-deep); -webkit-font-smoothing:antialiased; width:100%; min-height:100%; }
/* overflow-x must stay off `html`: on the root element it makes the document
   itself the scroll container, which silently kills position:sticky. Keeping
   it on body still clips sideways overflow without breaking sticky children. */
body { overflow-x:hidden; }
body.scroll-locked { overflow:hidden; touch-action:none; }
a { color:inherit; text-decoration:none; }
h1,h2,h3,h4 { font-family:var(--display); font-weight:500; line-height:1.14; letter-spacing:-0.01em; }
.wrap { width:min(1180px,92%); margin-inline:auto; }
::selection { background:var(--gold); color:#20241C; }
:focus-visible { outline:2px solid var(--gold-soft); outline-offset:3px; border-radius:6px; }

/* ================= TOP LOADING PROGRESS LINE ================= */
.progress-line { position:fixed; top:0; left:0; height:3px; width:0; z-index:300; background:linear-gradient(90deg,var(--terracotta),var(--gold-soft),var(--champagne)); box-shadow:0 0 14px rgba(216,188,126,.8); }

/* ================= SCROLL REVEAL (enhanced: rise + blur + settle) ================= */
[data-reveal] { opacity:0; transform:translateY(28px); filter:blur(6px); transition:opacity .7s ease, transform .9s var(--ease), filter .7s ease; will-change:opacity,transform,filter; }
[data-reveal].revealed { opacity:1; transform:none; filter:blur(0); }
@media (prefers-reduced-motion:reduce) {
  [data-reveal] { opacity:1; transform:none; filter:none; transition:none; }
  .end-page-content .eyebrow, .end-page-content h2, .end-page-content p, .end-page-content .btn { opacity:1; transform:none; filter:none; }
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}
/* Timeline cascade: steps appear one by one */
.timeline-item[data-reveal] { transition-delay:0s; }
.timeline-item[data-reveal]:nth-child(2) { transition-delay:.1s; }
.timeline-item[data-reveal]:nth-child(3) { transition-delay:.2s; }
.timeline-item[data-reveal]:nth-child(4) { transition-delay:.3s; }
.timeline-item[data-reveal]:nth-child(5) { transition-delay:.4s; }

/* Themed scrollbar */
::-webkit-scrollbar { width:9px; height:9px; }
::-webkit-scrollbar-track { background:var(--em-deep); }
::-webkit-scrollbar-thumb { background:linear-gradient(180deg,var(--gold-soft),var(--gold-deep)); border-radius:6px; border:2px solid var(--em-deep); }
::-webkit-scrollbar-thumb:hover { background:var(--gold-soft); }
* { scrollbar-width:thin; scrollbar-color:var(--gold) var(--em-deep); }

/* ================= HEADER & BRANDING ================= */
.site-header { position:fixed; top:0; left:0; right:0; z-index:100; background:linear-gradient(180deg,rgba(4,14,11,.94),rgba(7,27,21,.8)); backdrop-filter:blur(16px) saturate(1.25); -webkit-backdrop-filter:blur(16px) saturate(1.25); transition:opacity .4s ease, transform .4s ease, box-shadow .4s ease, background .4s ease; border-bottom:1px solid rgba(216,188,126,.26); box-shadow:0 10px 34px rgba(0,0,0,.3); }
.site-header::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px; background:linear-gradient(90deg,transparent,rgba(216,188,126,.6),rgba(216,188,126,.15),transparent); pointer-events:none; }
.site-header.hidden-nav { opacity:0; transform:translateY(-100%); pointer-events:none; }
.site-header.scrolled { background:linear-gradient(180deg,rgba(4,14,11,.97),rgba(6,22,17,.92)); box-shadow:0 14px 40px rgba(0,0,0,.45); }
.site-header .h-in { display:flex; align-items:center; justify-content:space-between; height:78px; width:100%; transition:height .3s var(--ease); }
.site-header.scrolled .h-in { height:66px; }

.brand-wrapper { display:flex; align-items:center; gap:12px; color:var(--ivory); }
.brand-logo-container { display:flex; align-items:center; gap:11px; }
.arabic-logo-mark { font-family:var(--ar); font-size:27px; font-weight:700; color:var(--gold-soft); line-height:1; text-shadow:0 0 16px rgba(216,188,126,.5); border-right:1px solid rgba(216,188,126,.3); padding-right:12px; }
.brand-text b { display:block; font-family:var(--display); font-weight:600; font-size:16.5px; letter-spacing:.5px; color:var(--ivory); }
.brand-text small { display:block; font-size:9px; letter-spacing:.28em; text-transform:uppercase; color:var(--gold-soft); }

.main-nav { display:flex; gap:4px; margin-left:auto; margin-right:22px; background:rgba(255,255,255,.045); border:1px solid rgba(216,188,126,.2); padding:5px; border-radius:999px; backdrop-filter:blur(6px); }
.main-nav a { color:rgba(247,243,232,.82); font-size:14px; font-weight:500; padding:8px 19px; border-radius:999px; transition:.2s var(--ease); }
.main-nav a:hover { color:var(--ivory); background:rgba(255,255,255,.1); }
.main-nav a.active { color:#20241C; background:linear-gradient(180deg,var(--champagne),var(--gold)); font-weight:600; box-shadow:0 4px 14px rgba(184,148,77,.35); }
.nav-actions { display:flex; align-items:center; gap:12px; }
.hamburger-btn { display:none; width:42px; height:42px; border-radius:12px; background:rgba(255,255,255,.06); border:1px solid rgba(216,188,126,.22); cursor:pointer; flex-direction:column; align-items:center; justify-content:center; gap:5px; padding:10px; transition:.2s; }
.hamburger-btn span { display:block; width:20px; height:2px; background:var(--gold-soft); border-radius:2px; transition:.25s; }
.hamburger-btn:hover { background:rgba(255,255,255,.12); }
.mobile-sidebar { position:fixed; inset:0; z-index:150; pointer-events:none; }
.mobile-sidebar.open { pointer-events:auto; }
.sidebar-overlay { position:absolute; inset:0; background:rgba(0,0,0,.68); opacity:0; transition:opacity .35s; backdrop-filter:blur(3px); }
.mobile-sidebar.open .sidebar-overlay { opacity:1; }
.sidebar-panel { position:absolute; top:0; right:0; width:min(330px,86vw); height:100%; background:linear-gradient(180deg,#0C2A21,var(--em-dark)); border-left:1px solid rgba(216,188,126,.22); transform:translateX(102%); transition:transform .45s var(--ease); display:flex; flex-direction:column; padding:24px 22px 28px; box-shadow:-16px 0 50px rgba(0,0,0,.55); }
.mobile-sidebar.open .sidebar-panel { transform:none; }
.sidebar-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:28px; }
.sidebar-close { width:38px; height:38px; border-radius:10px; background:rgba(255,255,255,.06); border:1px solid rgba(216,188,126,.2); color:var(--ivory); font-size:22px; cursor:pointer; display:grid; place-items:center; transition:.2s; }
.sidebar-close:hover { background:rgba(255,255,255,.13); transform:rotate(90deg); }
.sidebar-nav { display:flex; flex-direction:column; gap:6px; margin-bottom:24px; flex:1; }
.sidebar-nav a { padding:14px 16px; border-radius:12px; color:var(--ivory); font-size:15px; font-weight:500; transition:.18s; border:1px solid transparent; }
.sidebar-nav a:hover { background:rgba(216,188,126,.1); border-color:rgba(216,188,126,.2); }
.sidebar-cta { width:100%; border-radius:14px !important; }

/* Buttons */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; border-radius:999px; padding:14px 30px; font-size:14px; font-weight:600; letter-spacing:.02em; border:1px solid transparent; transition:transform .25s var(--ease), box-shadow .25s ease, filter .25s ease; cursor:pointer; }
.btn-gold { position:relative; overflow:hidden; background:linear-gradient(180deg,var(--champagne) 0%,var(--gold-soft) 38%,var(--gold) 100%); color:#20241C; box-shadow:inset 0 1px 0 rgba(255,255,255,.55), 0 6px 18px rgba(184,148,77,.35); }
.btn-gold::after { content:""; position:absolute; top:0; bottom:0; left:-70%; width:45%; background:linear-gradient(105deg,transparent,rgba(255,255,255,.5),transparent); transform:skewX(-20deg); transition:left .6s var(--ease); }
.btn-gold:hover { transform:translateY(-2px); filter:brightness(1.06); box-shadow:inset 0 1px 0 rgba(255,255,255,.55), 0 10px 26px rgba(184,148,77,.45), var(--sh-gold); }
.btn-gold:hover::after { left:130%; }
.btn-sm { padding:10px 22px; font-size:13px; }

/* Eyebrow label; the decorative marker is removed in the cleanup rules below. */
.eyebrow { display:inline-flex; align-items:center; gap:12px; font-size:11px; font-weight:700; letter-spacing:.3em; text-transform:uppercase; color:var(--gold-soft); }
.eyebrow::before { content:""; width:7px; height:7px; flex:none; transform:rotate(45deg); border:1.5px solid var(--gold); box-shadow:0 0 8px rgba(216,188,126,.5); }

/* ================= HERO COPY + WORD BURST ================= */
/* The hero copy now lives inside the pinned 3D stage and fades out as the
   front cover shrinks into the book, so the only rules left here are the
   word-burst animation that the stage reuses. The .eyebrow rules above
   already cover the overlay. */

/* Word typing animation */
.word { display:inline-block; opacity:0; transform:translateY(14px); }
.word.typed { opacity:1; transform:translateY(0); transition:opacity .45s ease, transform .5s var(--ease); }
.type-caret { display:inline-block; width:2px; height:.85em; margin-left:4px; background:var(--gold-soft); vertical-align:-.08em; box-shadow:0 0 8px rgba(216,188,126,.7); animation:caretBlink .9s steps(2,start) infinite; }
@keyframes caretBlink { 50% { opacity:0; } }
@keyframes animFadeUp { from { opacity:0; transform:translateY(25px); } to { opacity:1; transform:translateY(0); } }
@keyframes animFadeDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }

/* ================= COURSE STAGE: ILLUMINATED SANCTUARY & 3D MIHRAB FOLIOS ================= */
.learning-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 760px;
  overflow: hidden;
  isolation: isolate;
  z-index: 30;
  background: #04140f;
  opacity: 1;
  pointer-events: auto;
  border-top: 1px solid rgba(216, 188, 126, 0.28);
  box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.55);
}
.learning-section.visible { opacity: 1; pointer-events: auto; }

.background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 85% 55% at 50% 14%, rgba(22, 88, 66, 0.52) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 62%, rgba(216, 188, 126, 0.11) 0%, transparent 68%),
    linear-gradient(180deg, #061c15 0%, #08271d 48%, #04130e 100%);
  overflow: hidden;
  pointer-events: none;
}
.background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 25%, rgba(216, 188, 126, 0.14), transparent 34%),
    radial-gradient(circle at 80% 75%, rgba(45, 138, 102, 0.16), transparent 36%),
    linear-gradient(90deg, rgba(216, 188, 126, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(216, 188, 126, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
  pointer-events: none;
  opacity: 0.85;
}
.background::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(920px, 92vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 188, 126, 0.65), transparent);
  box-shadow: 0 0 28px rgba(216, 188, 126, 0.45);
}

.stage-mandala {
  position: absolute;
  left: 50%;
  top: 56%;
  width: clamp(460px, 56vw, 760px);
  height: clamp(460px, 56vw, 760px);
  transform: translate(-50%, -50%) rotate(var(--mandala-rot, 0deg));
  color: var(--gold);
  opacity: 0.48;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 0 24px rgba(216, 188, 126, 0.18));
}
.stage-mandala svg {
  width: 100%;
  height: 100%;
  display: block;
}

.stage-floor-glow {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  width: clamp(360px, 52vw, 720px);
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--stage-accent, rgba(216, 188, 126, 0.26)) 0%, rgba(18, 75, 56, 0.18) 45%, transparent 74%);
  filter: blur(22px);
  pointer-events: none;
  transition: background 0.5s ease;
}

.scene {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 5;
}

.intro {
  position: absolute;
  left: 50%;
  top: clamp(24px, 4.5vh, 48px);
  transform: translateX(-50%);
  width: min(820px, calc(100% - 32px));
  text-align: center;
  z-index: 35;
  pointer-events: none;
}
.intro-title-wrapper { display: block; margin-top: 2px; }
.intro-title {
  font-family: var(--display);
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.04;
  font-weight: 500;
  margin: 0;
  color: #FFFDF5;
  letter-spacing: -0.015em;
}
.intro-title .light-part { color: #FFFDF5; display: inline; }
.intro-title .dark-part {
  display: inline;
  font-style: italic;
  background: linear-gradient(135deg, #FFF3D1 0%, #D8BC7E 52%, #B58E3E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.intro-subtitle {
  max-width: 500px;
  margin: 10px auto 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(247, 243, 232, 0.78);
}

/* 3D Sanctuary Stage */
.card-stage {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(104px, 13.5vh, 140px);
  padding-bottom: 58px;
  perspective: 1650px;
  transform-style: preserve-3d;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.card-stage:active { cursor: grabbing; }
.card-stage, .course-card, .course-card * { user-select: none; -webkit-user-select: none; }

/* Full-Bleed Image Background Program Card (Clean Text Sanctuary Below) */
.course-card {
  position: absolute;
  width: clamp(315px, 26.5vw, 376px);
  height: clamp(460px, 60vh, 535px);
  padding: 0;
  border-radius: 26px;
  background: #051812;
  border: 1px solid rgba(216, 188, 126, 0.38);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
  pointer-events: auto;
  transition: border-color 0.4s ease, box-shadow 0.45s ease;
}

.course-card::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 20px;
  border: 1px solid rgba(216, 188, 126, 0.16);
  pointer-events: none;
  z-index: 4;
  transition: border-color 0.4s ease;
}

/* Full-Bleed Course Image Covering Most of the Card */
.card-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 76%;
  overflow: hidden;
  z-index: 1;
}
.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: translate3d(var(--photo-x, 0px), var(--photo-y, 0px), 0) scale(var(--photo-scale, 1.08));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
  will-change: transform;
  pointer-events: none;
}
.course-card:not(.active) .card-photo {
  filter: saturate(0.84) brightness(0.76);
}
.course-card.active .card-photo {
  filter: saturate(1.05) brightness(0.98);
}
.card-bg-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 18, 13, 0.08) 0%,
    rgba(4, 18, 13, 0.18) 48%,
    rgba(5, 24, 18, 0.88) 84%,
    #051812 100%
  );
  pointer-events: none;
}

/* Interactive Gold Foil Specular Glare */
.card-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 28%),
    rgba(248, 233, 194, 0.18) 0%,
    rgba(216, 188, 126, 0.05) 42%,
    transparent 72%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 3;
}
.course-card.active:hover .card-glare,
.course-card.is-tilting .card-glare {
  opacity: 1;
}

.course-card.active {
  border-color: rgba(216, 188, 126, 0.85);
  box-shadow:
    0 42px 95px rgba(0, 0, 0, 0.68),
    0 0 48px rgba(216, 188, 126, 0.24),
    inset 0 0 0 1px rgba(255, 248, 226, 0.12);
}
.course-card.active::after {
  border-color: rgba(216, 188, 126, 0.34);
}

/* Clean Bottom Text Area */
.card-content-panel {
  position: relative;
  z-index: 5;
  padding: 18px 24px 22px;
  background: linear-gradient(180deg, rgba(5, 24, 18, 0.2) 0%, rgba(5, 24, 18, 0.96) 24%, #051812 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.card-title {
  font-family: var(--display);
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.14;
  font-weight: 500;
  color: #FFFDF5;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  text-wrap: balance;
}
.card-number {
  margin: 0;
  font-family: var(--display);
  font-size: 32px;
  line-height: 1;
  font-weight: 600;
  color: rgba(216, 188, 126, 0.52);
  flex-shrink: 0;
}
.course-card.active .card-number {
  color: var(--gold-soft);
}
.card-description {
  max-width: 100%;
  font-size: 13px;
  line-height: 1.58;
  color: rgba(247, 243, 232, 0.85);
  margin: 0;
}

.card-footer {
  margin-top: 6px;
}
.card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--champagne), var(--gold-soft) 45%, var(--gold));
  color: #192018 !important;
  border: 1px solid rgba(216, 188, 126, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 20px rgba(0, 0, 0, 0.32);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, filter 0.25s ease;
  text-shadow: none;
}
.card-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 26px rgba(0, 0, 0, 0.4), var(--sh-gold);
}
.card-link-arrow {
  transition: transform 0.25s var(--ease);
}
.card-link:hover .card-link-arrow {
  transform: translateX(3px);
}

/* Floating Stage Indicators & Controls */
.current-course {
  position: absolute;
  right: clamp(24px, 4vw, 60px);
  bottom: 22px;
  z-index: 50;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(6, 28, 21, 0.85);
  backdrop-filter: blur(8px);
  color: #F8E7BF;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.35s var(--ease);
  border: 1px solid rgba(216, 188, 126, 0.45);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}
.current-course.visible { opacity: 1; transform: translateY(0); }

.scroll-hint {
  position: absolute;
  left: clamp(24px, 4vw, 60px);
  bottom: 26px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 253, 245, 0.62);
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.scroll-hint::before { content: ""; width: 28px; height: 1px; background: rgba(216, 188, 126, 0.5); }
.scroll-hint.hidden { opacity: 0; }

.mobile-card-nav {
  display: flex;
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  gap: 14px;
  align-items: center;
  background: rgba(5, 23, 17, 0.84);
  border: 1px solid rgba(216, 188, 126, 0.38);
  border-radius: 999px;
  padding: 7px 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}
.mobile-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(12, 48, 36, 0.9);
  color: var(--gold-soft);
  border: 1px solid rgba(216, 188, 126, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: 0.22s var(--ease);
}
.mobile-nav-btn:hover { background: var(--gold); color: #192018; transform: scale(1.06); }
.mobile-card-pagination { display: flex; gap: 8px; align-items: center; }
.mobile-page-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(216, 188, 126, 0.45);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  padding: 0;
}
.mobile-page-dot.active {
  width: 24px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  border-color: #FFF3D1;
  box-shadow: 0 0 12px rgba(216, 188, 126, 0.65);
}

@media (max-width: 900px) {
  .scroll-hint, .current-course { display: none; }
}

@media (max-width: 650px) {
  .learning-section { z-index: 30; height: 100svh; min-height: 670px; }
  .background { z-index: 0; pointer-events: none; }
  .card-stage { z-index: 20; touch-action: pan-y; padding: 108px 0 72px; }
  .course-card { z-index: 25; width: min(86vw, 336px); height: clamp(415px, 56svh, 475px); padding: 0; }
  .card-content-panel { padding: 16px 18px 18px; }
  .intro { top: 18px; width: calc(100% - 24px); }
  .intro-title { font-size: 28px; }
  .intro-subtitle { font-size: 12.5px; margin-top: 6px; }
  .mobile-card-nav { bottom: 14px; }
  .scroll-hint { display: none; }
}

/* ================= PLATFORMS BANNER: CLASSROOM IMAGE BACKGROUND + FULL-HEIGHT LEFT SHADOW ================= */
.platform-banner {
  position: relative;
  z-index: 30;
  background:
    url("maseel-classroom.jpg") center center / cover no-repeat;
  color: #FAF6EC;
  padding: 118px 0;
  border-top: 1px solid rgba(216, 188, 126, 0.35);
  border-bottom: 1px solid rgba(216, 188, 126, 0.35);
  overflow: hidden;
}
/* Full-height light shadow coming from the left side of the image */
.platform-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(4, 18, 13, 0.84) 0%,
    rgba(4, 18, 13, 0.72) 34%,
    rgba(4, 18, 13, 0.38) 56%,
    rgba(4, 18, 13, 0.08) 76%,
    rgba(4, 18, 13, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.platform-ambient-orb {
  display: none;
}

.platform-flex {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(340px, 560px) 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

/* No white background around the text — sits directly on the full-height left shadow */
.platform-info {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.platform-info .eyebrow {
  margin-bottom: 12px;
  color: #E5C77D;
}
.platform-info h3 {
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 42px);
  color: #FFFDF7;
  margin-bottom: 16px;
  line-height: 1.14;
  font-weight: 600;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.platform-info > p {
  color: rgba(250, 246, 236, 0.90);
  font-size: 16px;
  line-height: 1.72;
  max-width: 500px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* Clean Static Perks List (No Scroll-Driven Timeline) */
.platform-perks {
  position: relative;
  list-style: none;
  margin-top: 26px;
  padding-left: 0;
  display: grid;
  gap: 14px;
}
.platform-perks li {
  position: relative;
  padding-left: 36px;
  color: #FAF6EC;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}
.platform-perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(216, 188, 126, 0.22);
  border: 1px solid rgba(229, 199, 125, 0.75);
  color: #F3D993;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* Clean Platform Badges */
.platform-badges {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 28px;
}
.platform-badge {
  background: rgba(8, 30, 22, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(216, 188, 126, 0.42);
  padding: 12px 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #FFFDF7;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s var(--ease), border-color 0.25s ease;
}
.platform-badge:hover {
  border-color: #E5C77D;
  transform: translateY(-2px);
}
.platform-badge b { display: block; font-size: 14px; color: #FFFDF7; }
.platform-badge small { display: block; color: rgba(250, 246, 236, 0.76); font-weight: 500; font-size: 12px; margin-top: 2px; }
.platform-icon { width: 36px; height: 36px; object-fit: contain; border-radius: 10px; }

/* Right side lets the classroom background image shine through */
.platform-media-wrap {
  display: none;
}

@media (max-width: 960px) {
  .platform-flex {
    grid-template-columns: 1fr;
  }
  .platform-info {
    padding: 32px 24px;
  }
}
@media (max-width: 650px) {
  .platform-banner { padding: 72px 0; }
}

/* ================= RECITATION STUDIO SECTION (HOMEPAGE & RECITATION PAGE) ================= */
.recitation-home-section {
  position: relative;
  z-index: 30;
  padding: 88px 0 96px;
  background:
    radial-gradient(900px 440px at 15% 15%, rgba(212, 185, 120, 0.16), transparent 65%),
    radial-gradient(850px 460px at 88% 85%, rgba(15, 58, 43, 0.10), transparent 65%),
    linear-gradient(180deg, #DDE7E0 0%, #E5EDE7 50%, #DAE5DD 100%);
  color: #1A2E26;
  border-top: 1px solid rgba(15, 58, 43, 0.12);
  border-bottom: 1px solid rgba(15, 58, 43, 0.12);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.recitation-home-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112' viewBox='0 0 112 112'%3E%3Cg fill='none' stroke='%230F3A2B' stroke-opacity='0.045'%3E%3Cpath d='M56 14l7 21 21 7-21 7-7 21-7-21-21-7 21-7z'/%3E%3Ccircle cx='56' cy='56' r='36'/%3E%3C/g%3E%3C/svg%3E");
}
.recitation-home-section > .wrap {
  position: relative;
  z-index: 1;
}
.rec-sec-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}
.rec-sec-header .eyebrow {
  justify-content: center;
  color: #967326;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.rec-sec-header h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 38px);
  color: #0F3A2B;
  margin: 0 0 8px;
  line-height: 1.15;
  font-weight: 600;
}
.rec-sec-header p {
  color: #465B51;
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 auto;
}

/* Top search bar matching screenshot */
.rec-studio-shell {
  max-width: 1100px;
  margin: 0 auto;
}
.rec-studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.rec-search-box {
  position: relative;
  flex: 1 1 320px;
  max-width: 480px;
}
.rec-search-box svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #7D9086;
  pointer-events: none;
}
.rec-search-box input {
  width: 100%;
  height: 44px;
  padding: 0 18px 0 42px;
  border-radius: 12px;
  border: 1px solid #CFDDD3;
  background: #FAFDFB;
  color: #1A2E26;
  font-size: 13.5px;
  outline: none;
  box-shadow: 0 4px 12px rgba(15, 58, 43, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rec-search-box input::placeholder {
  color: #83958B;
}
.rec-search-box input:focus {
  border-color: #0F3A2B;
  box-shadow: 0 0 0 3px rgba(15, 58, 43, 0.08);
}

/* Custom Styled Dropdowns (NO native browser gray/blue select!) */
.rec-dd {
  position: relative;
  display: inline-block;
  user-select: none;
}
.rec-dd-trigger {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #D5C498;
  background: linear-gradient(180deg, #FFFDF7 0%, #F7F1E1 100%);
  color: #0F3A2B;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15, 58, 43, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}
.rec-dd-trigger:hover {
  border-color: #B8944D;
  box-shadow: 0 4px 12px rgba(15, 58, 43, 0.1);
}
.rec-dd.is-open .rec-dd-trigger {
  border-color: #0F3A2B;
  background: #FFFFFF;
}
.rec-dd-trigger svg {
  transition: transform 0.2s ease;
  color: #8C6D2E;
  flex-shrink: 0;
}
.rec-dd.is-open .rec-dd-trigger svg {
  transform: rotate(180deg);
}
.rec-dd-surah .rec-dd-trigger {
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  padding: 0 10px;
  font-size: 15.5px;
  font-weight: 700;
  color: #0F3A2B;
}
.rec-dd-surah .rec-dd-trigger:hover {
  background: #F2F6F3;
  border-color: #DCE6DF;
}
.rec-dd-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 175px;
  background: #FFFDF8;
  border: 1px solid #D5C498;
  border-radius: 14px;
  padding: 6px;
  margin: 0;
  list-style: none;
  box-shadow: 0 16px 38px rgba(12, 42, 31, 0.16);
  z-index: 60;
  display: none;
}
.rec-dd.is-open .rec-dd-menu {
  display: block;
  animation: recDdFade 0.16s ease-out;
}
@keyframes recDdFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.rec-dd-opt {
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #1A2E26;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease;
}
.rec-dd-opt:hover {
  background: #EFE7D1;
  color: #0F3A2B;
}
.rec-dd-opt.is-selected {
  background: #0F3A2B;
  color: #FFFDF5;
}
.rec-dd-opt.is-selected::after {
  content: "✓";
  font-size: 11px;
  color: #E2C684;
  font-weight: 800;
}

/* 2-Column Studio Layout matching screenshot */
.rec-studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 18px;
  align-items: start;
}
.rec-studio-main {
  min-width: 0;
}

/* Main Reader Card */
.rec-reader-card {
  background: #FCFDFB;
  border: 1px solid #CFDCD3;
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(15, 52, 38, 0.08);
  overflow: visible;
  padding-bottom: 22px;
}

/* Safety CSS on Card Header: NEVER wraps onto a second line when numbers grow */
.rec-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 16px 24px 12px;
  background: #FCFDFB;
  border-radius: 22px 22px 0 0;
  min-width: 0;
}
.rec-card-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}
.rec-back-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #1A2E26;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.rec-back-circle:hover {
  background: #EBF2ED;
}
.rec-card-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #55695F;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.rec-mini-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #DCE6DF;
  background: #FFFFFF;
  color: #3E5248;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: 0.15s ease;
}
.rec-mini-nav-btn:hover:not(:disabled) {
  color: #0F3A2B;
  border-color: #0F3A2B;
  background: #F2F6F3;
}
.rec-mini-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Verses Dropdown Bar Positioned Directly ABOVE the Verses — Right End Side */
.rec-above-verses-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 6px 24px 10px;
  position: relative;
  z-index: 30;
}
.rec-above-verses-bar .rec-dd-menu {
  right: 0;
  left: auto;
}
.rec-above-verses-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64776E;
}

/* Sculpted Cusped Multi-Lobed Islamic Mihrab Arch inside Reader Card */
.rec-arch-body {
  padding: 4px 24px 0;
}
.rec-arch-frame {
  position: relative;
  padding: 48px 30px 26px;
  background: linear-gradient(180deg, #FBF6E8 0%, #FDFBF4 58%, #FCFDFB 100%);
  border-radius: 20px;
  overflow: visible;
  min-height: 300px;
}
@keyframes recSmoothVerseEnter {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.rec-ayah-item.rec-slow-enter {
  animation: recSmoothVerseEnter 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.rec-mihrab-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.rec-ayah-item {
  padding: 16px 0 26px;
  border-bottom: 1px solid rgba(212, 190, 135, 0.45);
  position: relative;
  z-index: 2;
  scroll-margin-top: 170px;
}
.rec-ayah-item:first-of-type {
  padding-top: 4px;
}
.rec-ayah-item:last-of-type {
  border-bottom: 0;
  padding-bottom: 6px;
}

/* Green Play Button Ayah Number Badge on Top of Each Ayah */
.rec-ayah-rosette {
  margin: 0 auto 18px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #165D41 0%, #0D3C29 100%);
  border: 1.5px solid #D4B46A;
  color: #FFFDF5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(13, 60, 41, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.rec-ayah-item {
  text-align: center;
}
.rec-ayah-rosette:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.08);
  box-shadow: 0 8px 20px rgba(13, 60, 41, 0.32);
}
.rec-ayah-rosette .rec-rosette-play-ico {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(247, 217, 126, 0.22);
  border: 1px solid rgba(247, 217, 126, 0.65);
  color: #F7D97E;
  font-size: 10px;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}
.rec-ayah-rosette.is-playing-ayah {
  background: linear-gradient(135deg, #1E7A56 0%, #125038 100%);
  border-color: #F7D97E;
  box-shadow: 0 0 0 3px rgba(247, 217, 126, 0.35), 0 8px 22px rgba(13, 60, 41, 0.34);
}

.rec-words-flow {
  direction: rtl;
  display: block;
  text-align: center;
  font-family: "Amiri", "Noto Naskh Arabic", serif;
  font-size: clamp(27px, 2.7vw, 34px);
  line-height: 2.2;
  color: #122F23;
  word-spacing: 5px;
  padding: 4px 12px 10px;
}
.rec-word-btn {
  direction: rtl;
  display: inline-block;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  border-radius: 10px;
  padding: 2px 7px;
  margin: 2px 2px;
  font: inherit;
  line-height: 1.65;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.rec-word-btn:hover {
  background: rgba(212, 175, 85, 0.24);
  color: #09251B;
}
/* Stronger, high-contrast gold highlight for selected or currently read word */
.rec-word-btn.active {
  background: linear-gradient(180deg, #F7D97E 0%, #E5B642 100%) !important;
  color: #072217 !important;
  box-shadow: 0 4px 14px rgba(184, 138, 36, 0.38), 0 0 0 2px #C29328 !important;
  transform: translateY(-1px);
}
.rec-word-mark {
  direction: rtl;
  display: inline;
  color: #B8A07A;
  padding: 0 2px;
}

/* Clicked Word English Spelling Popup — Anchored Centered Directly Above the Clicked Word */
.rec-word-inspector {
  position: absolute;
  left: var(--wi-x, 50%);
  top: var(--wi-y, 40px);
  transform: translate(-50%, calc(-100% - 12px));
  width: max-content;
  max-width: min(340px, calc(100% - 24px));
  background: linear-gradient(135deg, #0F3A2B 0%, #164B38 100%);
  color: #FFFDF5;
  border: 1.5px solid #D5B872;
  border-radius: 14px;
  padding: 10px 12px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  box-shadow: 0 14px 32px rgba(8, 30, 22, 0.32);
  z-index: 55;
  animation: recWiPop 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
.rec-word-inspector::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: var(--wi-arrow-x, 50%);
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #144533;
  border-right: 1.5px solid #D5B872;
  border-bottom: 1.5px solid #D5B872;
}
@keyframes recWiPop {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-100% - 4px)) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 12px)) scale(1);
  }
}
.rec-word-inspector[hidden] {
  display: none !important;
}
.rec-wi-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
}
.rec-wi-arabic {
  font-family: "Amiri", "Noto Naskh Arabic", serif;
  font-size: 23px;
  color: #F7DF9C;
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}
.rec-wi-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  min-width: 0;
}
.rec-wi-translit {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.01em;
}
.rec-wi-translit em {
  font-style: normal;
  color: #F7DF9C;
}
.rec-wi-meaning {
  font-size: 11.5px;
  color: #C7D8CF;
}
.rec-wi-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFDF5;
  font-size: 15px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.rec-wi-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.06);
}

.rec-gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px auto 16px;
}
.rec-gold-divider svg {
  width: 150px;
  height: 16px;
  display: block;
}

.rec-en-translation {
  text-align: center;
  color: #25362E;
  font-family: Georgia, "Fraunces", serif;
  font-size: 16.5px;
  line-height: 1.72;
  max-width: 510px;
  margin: 0 auto 16px;
  font-weight: 400;
}
.rec-tr-seg {
  display: inline;
  padding: 2px 5px;
  margin: 0 -2px;
  border-radius: 6px;
  transition: background-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}
.rec-tr-seg.active {
  background: linear-gradient(135deg, #D5F2E2 0%, #F7E6B5 100%);
  color: #08291D;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(13, 59, 44, 0.15), inset 0 0 0 1px rgba(197, 160, 82, 0.55);
}
.rec-ayah-caption {
  text-align: center;
  color: #7D8E85;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Continuous Quran Recitation Bar on TOP (just above Verses Dropdown) + Floating Fixed across whole page when playing */
.rec-player-slot {
  min-height: 72px;
  margin: 0 24px 8px;
}
.rec-player-bar {
  background: #F3F7F4;
  border: 1px solid #DCE6DF;
  border-radius: 16px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.rec-player-bar.is-playing {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, calc(100vw - 28px));
  margin: 0;
  z-index: 950;
  background: rgba(252, 253, 251, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid #C7B079;
  box-shadow: 0 18px 42px rgba(6, 26, 19, 0.26);
}
/* Volume Adjuster Control (Lowers / Raises Volume — Does NOT Mute) */
.rec-vol-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rec-vol-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #FFFDF8;
  border: 1px solid #D5C498;
  border-radius: 14px;
  padding: 8px 12px;
  display: none;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 28px rgba(12, 42, 31, 0.18);
  z-index: 80;
  white-space: nowrap;
}
.rec-vol-wrap.is-open .rec-vol-panel {
  display: inline-flex;
}
.rec-vol-step {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #D5C498;
  background: #F7F2E4;
  color: #0F3A2B;
  font-size: 15px;
  font-weight: 800;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.rec-vol-step:hover {
  background: #0F3A2B;
  color: #FFFDF5;
}
.rec-vol-slider {
  width: 92px;
  height: 4px;
  accent-color: #143D2E;
  cursor: pointer;
}
.rec-vol-pct {
  font-size: 11.5px;
  font-weight: 700;
  color: #0F3A2B;
  min-width: 34px;
  text-align: right;
}
.rec-play-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #143D2E;
  color: #FFFFFF;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  box-shadow: 0 4px 12px rgba(20, 61, 46, 0.22);
  transition: transform 0.15s ease, background 0.15s ease;
}
.rec-play-circle:hover {
  background: #0D2D21;
  transform: scale(1.03);
}
/* Red Background Stop Button */
.rec-stop-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #E24444 0%, #C42828 100%);
  color: #FFFFFF;
  border: 1px solid #A81E1E;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(196, 40, 40, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.rec-stop-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.rec-seek-col {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 180px;
  padding-top: 6px;
}
.rec-seek-input {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #D5E0D8;
  border-radius: 999px;
  cursor: pointer;
  margin: 0;
  outline: none;
}
.rec-seek-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #143D2E;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.rec-seek-input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #143D2E;
  border: 0;
  cursor: pointer;
}
.rec-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: #5E7067;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
#recTimeLabel {
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
}
.rec-time-row span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.rec-player-SideBtns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.rec-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #DCE6DF;
  background: #FFFFFF;
  color: #364940;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.15s ease;
}
.rec-icon-circle:hover,
.rec-icon-circle.is-on {
  color: #143D2E;
  border-color: #143D2E;
  background: #EBF2ED;
}
.rec-speed-badge {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #DCE6DF;
  background: #FFFFFF;
  color: #1A2E26;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

/* Bottom 3-Pill Ayah Navigation INSIDE the Main Reader Card */
.rec-bottom-nav {
  margin: 18px 24px 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rec-nav-pill {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #DCE6DF;
  background: #FFFFFF;
  color: #25362E;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.15s ease;
}
.rec-nav-pill:hover:not(:disabled) {
  background: #F2F6F3;
  border-color: #B9CBBF;
}
.rec-nav-pill:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.rec-nav-center-pill {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #DCE6DF;
  background: #F4F8F5;
  color: #1A2E26;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* Right Sidebar Column (Surah Info Card) */
.rec-studio-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rec-side-card {
  background: #FCFDFB;
  border: 1px solid #CFDCD3;
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0 10px 28px rgba(15, 52, 38, 0.06);
}
.rec-surah-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid #E8EFEA;
}
.rec-surah-emblem {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
}
.rec-surah-titles h4 {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1A2E26;
}
.rec-surah-titles span {
  display: block;
  font-family: "Amiri", "Noto Naskh Arabic", serif;
  font-size: 15px;
  color: #64776E;
  margin-top: 2px;
}
.rec-meta-list {
  display: grid;
  gap: 11px;
  font-size: 13px;
}
.rec-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #55695F;
}
.rec-meta-row-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rec-meta-row-label svg {
  color: #364940;
  flex: none;
}
.rec-meta-row b {
  color: #1A2E26;
  font-weight: 600;
}

@media (max-width: 960px) {
  .rec-studio-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .recitation-home-section { padding: 68px 0 76px; }
  .rec-card-head { padding: 14px 14px 10px; }
  .rec-arch-body { padding: 4px 12px 0; }
  .rec-arch-frame { padding: 42px 14px 18px; }
  .rec-player-slot { margin: 0 12px 8px; min-height: 0; }
  .rec-player-bar {
    margin: 0;
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 10px 10px;
  }
  .rec-player-bar.is-playing {
    margin: 0;
    top: 72px;
    width: calc(100vw - 20px);
  }
  .rec-player-bar .rec-play-circle { order: 1; width: 40px; height: 40px; }
  .rec-player-bar .rec-stop-btn { order: 2; height: 36px; padding: 0 13px; }
  .rec-player-bar .rec-player-SideBtns { order: 3; margin-left: auto; }
  .rec-player-bar .rec-seek-col {
    order: 4;
    flex: 1 1 100%;
    width: 100%;
    min-width: 100%;
    padding-top: 2px;
  }
  .rec-bottom-nav { margin: 14px 12px 0; flex-wrap: wrap; justify-content: center; }
}

/* ================= PRICING (homepage below timeline) ================= */
.pricing-section {
  position: relative;
  z-index: 30;
  padding: 112px 0 104px;
  overflow: hidden;
  background:
    radial-gradient(960px 480px at 50% 44%, rgba(216, 188, 126, 0.14), transparent 65%),
    radial-gradient(840px 420px at 50% -6%, rgba(27, 74, 58, 0.55), transparent 62%),
    linear-gradient(180deg, #050F0B 0%, #082018 50%, #061711 100%);
  border-top: 1px solid rgba(216, 188, 126, 0.14);
}
.pricing-ambient-orb {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 540px;
  height: 540px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 188, 126, 0.16) 0%, rgba(20, 68, 50, 0.12) 45%, transparent 72%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
  animation: pricingOrbPulse 7s ease-in-out infinite alternate;
}
@keyframes pricingOrbPulse {
  0% { transform: translate(-50%, -50%) scale(0.94); opacity: 0.75; }
  100% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}
.pricing-section .wrap {
  position: relative;
  z-index: 2;
}
.pricing-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.pricing-header h2 {
  font-family: var(--display);
  font-size: clamp(32px, 3.8vw, 46px);
  color: var(--ivory);
  margin: 10px 0 14px;
  line-height: 1.12;
}
.pricing-header h2 em {
  color: var(--gold-soft);
  font-style: italic;
}
.pricing-header p {
  color: #B4C4BA;
  font-size: 15.5px;
  line-height: 1.68;
  margin: 0 auto;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1060px;
  margin: 0 auto;
  align-items: stretch;
}
.pricing-card {
  --px: 50%;
  --py: 0%;
  position: relative;
  background:
    radial-gradient(380px circle at var(--px) var(--py), rgba(216, 188, 126, 0.13), transparent 65%),
    linear-gradient(165deg, rgba(16, 52, 39, 0.78) 0%, rgba(7, 25, 19, 0.9) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(216, 188, 126, 0.24);
  border-radius: 24px;
  padding: 34px 28px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 0.38s var(--ease), border-color 0.32s ease, box-shadow 0.38s ease, opacity 0.32s ease, filter 0.32s ease;
}
.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 234, 198, 0.65), transparent);
}
/* Psychological Focus Effect: hovering a card subtly softens the unhovered cards so attention locks onto the hovered plan */
@media (hover: hover) and (min-width: 821px) {
  .pricing-grid:hover .pricing-card:not(:hover) {
    opacity: 0.78;
    filter: saturate(0.85);
  }
}
.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(216, 188, 126, 0.72);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.48), 0 0 38px rgba(216, 188, 126, 0.22);
}
.pricing-card.popular {
  background:
    radial-gradient(420px circle at var(--px) var(--py), rgba(246, 224, 168, 0.2), transparent 68%),
    linear-gradient(165deg, rgba(216, 188, 126, 0.2) 0%, rgba(13, 46, 34, 0.92) 52%, rgba(7, 25, 19, 0.96) 100%);
  border: 1.5px solid var(--gold-soft);
  box-shadow: 0 30px 68px rgba(0, 0, 0, 0.54), 0 0 60px rgba(216, 188, 126, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-14px) scale(1.035);
  z-index: 3;
}
.pricing-card.popular:hover {
  transform: translateY(-20px) scale(1.04);
  box-shadow: 0 34px 74px rgba(0, 0, 0, 0.58), 0 0 76px rgba(216, 188, 126, 0.38);
}
.pricing-flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #F6E3B4 0%, #D4AF5A 55%, #B88E39 100%);
  color: #13221A;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(184, 148, 77, 0.42);
}
.pricing-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(216, 188, 126, 0.16);
}
.pricing-tier-tag {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 4px;
  opacity: 0.88;
}
.pricing-plan {
  font-family: var(--display);
  font-size: 24px;
  color: var(--ivory);
  line-height: 1.2;
  margin: 0;
}
.pricing-price-block {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.pricing-amt {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: -0.02em;
  line-height: 1;
}
.pricing-currency {
  font-size: 22px;
  vertical-align: top;
  margin-right: 1px;
  color: var(--gold-soft);
}
.pricing-amt small {
  font-family: var(--sans);
  font-size: 12.5px;
  color: #9FB2A7;
  font-weight: 500;
  margin-left: 2px;
}
.pricing-card.popular .pricing-amt {
  color: #FFF6DC;
}
.pricing-per-class {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #97ACA0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(216, 188, 126, 0.18);
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-per-class.pricing-best-rate {
  color: #F6E2B3;
  background: rgba(216, 188, 126, 0.18);
  border-color: rgba(216, 188, 126, 0.45);
}
.pricing-desc {
  color: #B4C4BA;
  font-size: 13.8px;
  margin-bottom: 22px;
  line-height: 1.62;
}
.pricing-features {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  padding: 0;
}
.pricing-features li {
  position: relative;
  padding-left: 28px;
  color: var(--ivory);
  font-size: 13.8px;
  line-height: 1.45;
}
.pricing-features li b {
  color: #FFF8E6;
  font-weight: 700;
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(216, 188, 126, 0.16);
  border: 1px solid rgba(216, 188, 126, 0.5);
  color: var(--gold-soft);
  font-size: 10.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.pricing-cta {
  margin-top: auto;
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid rgba(216, 188, 126, 0.48);
  background: rgba(216, 188, 126, 0.08);
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.26s var(--ease);
}
.pricing-cta:hover {
  background: linear-gradient(135deg, var(--champagne), var(--gold));
  color: #15221A;
  border-color: var(--gold);
  box-shadow: 0 12px 26px rgba(184, 148, 77, 0.36);
  transform: translateY(-2px);
}
.pricing-card.popular .pricing-cta {
  background: linear-gradient(135deg, #F7E5B9 0%, #D8B467 52%, #B89143 100%);
  color: #132018;
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 26px rgba(184, 148, 77, 0.4);
}
.pricing-card.popular .pricing-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 14px 32px rgba(216, 188, 126, 0.52);
}
.pricing-more-cta {
  text-align: center;
  margin-top: 38px;
}
.pricing-more-cta p {
  color: #B4C4BA;
  font-size: 14.5px;
  margin: 0 auto 16px;
}
@media (max-width:900px) {
  .pricing-section { padding: 76px 0; }
  .pricing-section .pricing-grid {
    display: flex;
    width: auto;
    max-width: none;
    margin: 0 -4vw;
    padding: 36px 10vw 24px;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
  }
  .pricing-section .pricing-grid.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
  }
  .pricing-section .pricing-grid::-webkit-scrollbar {
    display: none;
  }
  .pricing-section .pricing-card {
    flex: 0 0 min(80vw, 350px);
    min-width: 0;
    scroll-snap-align: center;
  }
  .pricing-section .pricing-card.popular {
    transform: scale(1.02);
  }
  .pricing-row-nav {
    display: flex;
  }
  .platform-flex { grid-template-columns:1fr; gap:34px; }
  .platform-media { border-radius:150px 150px var(--r-lg) var(--r-lg); }
  .platform-media img { height:340px; }
  .platform-info { order:2; }
  .platform-badges { grid-column:auto; }
}

/* ================= TIMELINE ROADMAP (modern dark luxe + GSAP-ready) ================= */
.timeline-section { position:relative; z-index:30; padding:110px 0; color:var(--ivory); overflow:hidden; background:radial-gradient(900px 420px at 50% -6%, rgba(216,188,126,.13), transparent 60%), radial-gradient(760px 520px at 6% 32%, rgba(27,74,58,.55), transparent 62%), radial-gradient(760px 520px at 94% 74%, rgba(27,74,58,.5), transparent 62%), linear-gradient(180deg,#050F0B 0%, #0A241C 48%, #050F0B 100%); }
.timeline-section::before { content:""; position:absolute; inset:0; pointer-events:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112' viewBox='0 0 112 112'%3E%3Cg fill='none' stroke='%23D8BC7E' stroke-opacity='0.08'%3E%3Cpath d='M56 14l7 21 21 7-21 7-7 21-7-21-21-7 21-7z'/%3E%3Ccircle cx='56' cy='42' r='34'/%3E%3Ccircle cx='0' cy='112' r='34'/%3E%3Ccircle cx='112' cy='112' r='34'/%3E%3C/g%3E%3C/svg%3E"); }
.timeline-section .wrap { position:relative; z-index:1; }
.timeline-header { text-align:center; max-width:680px; margin:0 auto 60px; }
.timeline-header .eyebrow { justify-content:center; }
.timeline-header h2 { color:var(--ivory); }
.timeline-header p { color:#A6B4A8; }

.timeline-vertical { position:relative; max-width:900px; margin:0 auto; padding:20px 0 10px; }
/* faint track */
.timeline-vertical::before { content:""; position:absolute; top:0; bottom:0; left:50%; width:2px; transform:translateX(-50%); background:rgba(216,188,126,.16); border-radius:2px; }
/* animated gold progress line (drawn on scroll by GSAP scrub) */
.timeline-progress { position:absolute; top:0; bottom:0; left:50%; width:3px; transform:translateX(-50%); transform-origin:top center; border-radius:3px; background:linear-gradient(180deg,var(--champagne),var(--gold-soft) 40%,var(--gold) 75%,var(--terracotta)); box-shadow:0 0 16px rgba(216,188,126,.55), 0 0 44px rgba(216,188,126,.22); z-index:1; }
.timeline-pulse { position:absolute; left:50%; top:0; width:13px; height:13px; transform:translate(-50%,-50%); border-radius:50%; background:radial-gradient(circle, #FFF6DF 0%, var(--gold-soft) 42%, rgba(216,188,126,0) 70%); box-shadow:0 0 18px 6px rgba(216,188,126,.5); animation:travelPulse 3.4s linear infinite; }
@keyframes travelPulse { 0% { top:-1%; opacity:0; } 10% { opacity:1; } 90% { opacity:1; } 100% { top:101%; opacity:0; } }

.timeline-item { position:relative; display:flex; justify-content:flex-end; padding-right:50%; margin-bottom:40px; width:100%; z-index:2; }
.timeline-item:nth-child(even) { justify-content:flex-start; padding-right:0; padding-left:50%; }

.timeline-node { position:absolute; left:50%; top:26px; transform:translate(-50%,-50%); width:44px; height:44px; border-radius:50%; background:radial-gradient(circle at 35% 28%, #1E5C4B, #071B15 78%); border:2px solid var(--gold-soft); color:var(--gold-pale); display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; z-index:10; box-shadow:0 0 0 5px rgba(7,27,21,.65), 0 0 20px rgba(216,188,126,.45); transition:transform .3s var(--ease), box-shadow .3s ease, background .3s ease, color .3s ease; }
.timeline-node::after { content:""; position:absolute; inset:-8px; border-radius:50%; border:1px solid rgba(216,188,126,.45); animation:nodePulse 2.8s ease-in-out infinite; }
@keyframes nodePulse { 0%,100% { transform:scale(1); opacity:.7; } 50% { transform:scale(1.12); opacity:.25; } }
.timeline-item:hover .timeline-node { transform:translate(-50%,-50%) scale(1.16); background:radial-gradient(circle at 35% 30%, var(--gold-soft), var(--gold)); color:#20241C; box-shadow:0 0 0 5px rgba(7,27,21,.65), 0 0 28px rgba(216,188,126,.9); }

/* Timeline Card UI matching Choose Your Path Cards (Full-Bleed Image Background + Bottom Content Panel + Gold Pill Button) */
.timeline-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  width: 88%;
  min-height: 430px;
  background: #051812;
  border: 1px solid rgba(216, 188, 126, 0.55);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 248, 226, 0.08);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.3s ease;
  cursor: pointer;
}
.timeline-card::after {
  content: "";
  position: absolute;
  inset: 0 0 26% 0;
  background: linear-gradient(
    180deg,
    rgba(4, 18, 13, 0.06) 0%,
    rgba(4, 18, 13, 0.22) 52%,
    rgba(5, 24, 18, 0.92) 86%,
    #051812 100%
  );
  pointer-events: none;
  z-index: 1;
}
.timeline-item:nth-child(odd) .timeline-card { margin-right:34px; }
.timeline-item:nth-child(even) .timeline-card { margin-left:34px; }
.timeline-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(216, 188, 126, 0.88);
  box-shadow: 0 42px 90px rgba(0, 0, 0, 0.68), 0 0 42px rgba(216, 188, 126, 0.24);
}

.timeline-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 74%;
  object-fit: cover;
  display: block;
  border-bottom: 0;
  z-index: 0;
  filter: saturate(1.08) contrast(1.04);
  transition: transform 0.8s var(--ease);
}
.timeline-card:hover .timeline-card-img { transform:scale(1.05); }
.timeline-card-body {
  position: relative;
  z-index: 2;
  padding: 20px 24px 22px;
  background: linear-gradient(180deg, rgba(5, 24, 18, 0.18) 0%, rgba(5, 24, 18, 0.96) 24%, #051812 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline-card-top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:2px; flex-wrap:wrap; }
.timeline-price { font-family:var(--display); font-size:17px; font-weight:600; color:var(--gold-soft); }
.timeline-price span { font-size:11px; color:#8BA190; font-weight:500; }
.timeline-card-foot { display:flex; align-items:center; justify-content:center; gap:12px; margin-top:8px; width:100%; }
.timeline-rated { color:var(--gold); font-size:12px; letter-spacing:.06em; }
.timeline-rated small { color:#8BA190; font-size:11.5px; margin-left:4px; letter-spacing:0; }
.timeline-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--champagne), var(--gold-soft) 45%, var(--gold));
  color: #192018 !important;
  border: 1px solid rgba(216, 188, 126, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 20px rgba(0, 0, 0, 0.32);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: transform 0.25s var(--ease), filter 0.25s ease, box-shadow 0.25s ease;
}
.timeline-more span { color: #192018; font-size:15px; transition:transform .25s var(--ease); }
.timeline-card:hover .timeline-more,
.timeline-more:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  color: #192018 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 26px rgba(0, 0, 0, 0.4), var(--sh-gold);
}
.timeline-card:hover .timeline-more span,
.timeline-more:hover span { transform:translateX(3px); }

.timeline-pricing-cta { text-align:center; margin-top:50px; }
.timeline-pricing-cta p { color:#C8D4C5; font-size:15px; margin-bottom:18px; }
.timeline-card h4 { font-size:20px; color:var(--ivory); margin-bottom:7px; }
.timeline-card p { color:#B9C7B6; font-size:13.5px; line-height:1.65; }
.timeline-reviews { max-height:220px; overflow-y:auto; margin-top:14px; border-top:1px solid rgba(216,188,126,.2); padding-top:10px; scrollbar-width:thin; scrollbar-color:var(--gold-soft) transparent; }
.timeline-reviews::-webkit-scrollbar { width:4px; }
.timeline-reviews::-webkit-scrollbar-thumb { background:var(--gold-soft); border-radius:9px; }
.tl-review { padding:8px 0; border-bottom:1px solid rgba(255,255,255,.07); }
.tl-review:last-child { border-bottom:none; }
.tl-review-stars { color:var(--gold); font-size:11px; letter-spacing:1px; }
.tl-review-text { color:#D9E0D4; font-size:12.5px; line-height:1.5; margin:2px 0; font-style:italic; }
.tl-review-author { color:#8BA190; font-size:11px; }
.timeline-review-form { display:flex; gap:6px; margin-top:10px; }
.tl-review-input { flex:1; padding:8px 10px; border-radius:8px; border:1px solid rgba(216,188,126,.25); background:rgba(255,255,255,.05); color:var(--ivory); font-size:12px; outline:none; }
.tl-review-input:focus { border-color:var(--gold-soft); }
.tl-review-btn { padding:8px 14px; border-radius:8px; border:none; background:var(--gold); color:#20241C; font-size:12px; font-weight:700; cursor:pointer; transition:.2s; white-space:nowrap; }
.tl-review-btn:hover { background:var(--champagne); }

/* When GSAP drives the timeline, silence the CSS reveal engine on its items */
body.gsap-on .timeline-item[data-reveal] { opacity:1; transform:none; filter:none; transition:none; }
body.gsap-on .timeline-card { transition:none; }
body.gsap-on .timeline-card.motion-done { transition:transform .35s var(--ease), box-shadow .35s ease, border-color .3s ease, outline-color .3s ease; }
body.gsap-on .timeline-node { transition:none; }
body.gsap-on .timeline-node.motion-done { transition:transform .3s var(--ease), box-shadow .3s ease, background .3s ease, color .3s ease; }

/* ================= TESTIMONIALS SECTION (PROFESSIONAL EDITORIAL + SOCIAL PROOF UI) ================= */
.testimonials-section {
  position: relative;
  z-index: 30;
  padding: 112px 0 104px;
  background:
    radial-gradient(960px 440px at 50% 0%, rgba(216, 188, 126, 0.16), transparent 65%),
    linear-gradient(180deg, rgba(4, 18, 13, 0.88) 0%, rgba(7, 29, 21, 0.82) 50%, rgba(4, 18, 13, 0.92) 100%),
    url("maseel-reviewbg.jpg") center / cover no-repeat;
  color: var(--ivory);
  border-top: 1px solid rgba(216, 188, 126, 0.24);
  border-bottom: 1px solid rgba(216, 188, 126, 0.24);
  overflow: hidden;
}
.testimonials-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112' viewBox='0 0 112 112'%3E%3Cg fill='none' stroke='%23D8BC7E' stroke-opacity='0.06'%3E%3Cpath d='M56 14l7 21 21 7-21 7-7 21-7-21-21-7 21-7z'/%3E%3Ccircle cx='56' cy='56' r='34'/%3E%3C/g%3E%3C/svg%3E");
}
.testimonials-section > .wrap {
  position: relative;
  z-index: 2;
}

.testi-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.testi-heading {
  max-width: 640px;
}
.testi-heading h2 {
  font-family: var(--display);
  font-size: clamp(32px, 3.6vw, 44px);
  color: #FFFDF7;
  margin: 0 0 10px;
  line-height: 1.12;
}
.testi-heading p {
  color: #B8C9BE;
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
}
.testi-nav-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(216, 188, 126, 0.45);
  background: rgba(10, 36, 28, 0.78);
  backdrop-filter: blur(8px);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.25s var(--ease);
  user-select: none;
}
.slider-btn:hover:not(:disabled) {
  background: var(--gold);
  color: #20241C;
  border-color: var(--gold);
  box-shadow: var(--sh-gold);
  transform: translateY(-2px);
}
.slider-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--muted);
  transform: none;
  box-shadow: none;
}

/* Carousel Track & Luxury 3-Up Cards */
.testi-slider-container {
  width: 100%;
  cursor: grab;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 10px 4px 24px;
  scrollbar-width: none;
  touch-action: pan-x;
}
.testi-slider-container::-webkit-scrollbar {
  display: none;
}
.testi-slider-container:active {
  cursor: grabbing;
}
.testi-slider-container.dragging {
  scroll-snap-type: none;
}
.testi-track {
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.testi-card {
  flex: 0 0 auto;
  width: calc(33.333% - 16px);
  min-width: 330px;
  scroll-snap-align: start;
  background:
    radial-gradient(380px 200px at 100% 0%, rgba(216, 188, 126, 0.12), transparent 70%),
    linear-gradient(165deg, rgba(16, 54, 40, 0.88) 0%, rgba(7, 27, 20, 0.94) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(216, 188, 126, 0.36);
  border-radius: 24px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.32s var(--ease), box-shadow 0.32s ease, border-color 0.3s ease;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.testi-card[hidden] {
  display: none !important;
}
.testi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  opacity: 0.85;
}
.testi-card::after {
  content: "❝";
  position: absolute;
  top: 16px;
  right: 22px;
  font-size: 64px;
  color: rgba(216, 188, 126, 0.10);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}
.testi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.48), 0 0 34px rgba(216, 188, 126, 0.18);
  border-color: rgba(216, 188, 126, 0.72);
}

.testi-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.testi-stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #F4CE74;
  font-size: 14px;
  letter-spacing: 3px;
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}
.testi-stars-score {
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  color: #FFFDF7;
  background: rgba(216, 188, 126, 0.18);
  border: 1px solid rgba(216, 188, 126, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
}
.testi-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(46, 184, 114, 0.14);
  border: 1px solid rgba(110, 231, 168, 0.32);
  color: #9BF2C4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.testi-card p {
  font-style: normal;
  color: #F2F5F0;
  font-size: 14.5px;
  line-height: 1.72;
  margin: 0 0 20px;
  position: relative;
  z-index: 1;
  flex: 1;
}
.testi-program {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin: 0 0 18px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  color: #F5E2B3;
  background: rgba(216, 188, 126, 0.14);
  border: 1px solid rgba(216, 188, 126, 0.38);
  position: relative;
  z-index: 1;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(216, 188, 126, 0.18);
  padding-top: 16px;
  position: relative;
  z-index: 1;
}
.testi-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}
.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #19221A;
  background: linear-gradient(150deg, var(--champagne), var(--gold));
  box-shadow: 0 4px 14px rgba(184, 148, 77, 0.35), 0 0 0 2px rgba(216, 188, 126, 0.32);
}
.testi-flag-badge {
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #08231A;
  border: 1.5px solid rgba(216, 188, 126, 0.55);
  display: grid;
  place-items: center;
  font-size: 11px;
  line-height: 1;
}
.testi-who b {
  display: block;
  color: #FFFDF7;
  font-size: 14.5px;
  font-weight: 700;
}
.testi-who small {
  color: #A4B8AC;
  font-size: 12px;
  display: block;
  margin-top: 2px;
}

/* Bottom Progress Track */
.testi-footer-bar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.testi-progress-track {
  flex: 1 1 240px;
  max-width: 360px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.testi-progress-fill {
  width: 18%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--champagne), var(--gold));
  transition: width 0.25s ease;
}
.testi-count-label {
  font-size: 12.5px;
  color: #A2B5A9;
  font-weight: 500;
}

@media (max-width: 1100px) {
  .testi-card { width: calc(50% - 12px); min-width: 300px; }
}
@media (max-width: 768px) {
  .testi-trust-bar { padding: 14px 20px; gap: 18px; }
  .testi-trust-sep { display: none; }
  .testi-controls-bar { justify-content: center; }
  .testi-nav-group { margin: 0 auto; }
  .testi-card { width: 86%; min-width: 275px; padding: 24px 22px; }
}

/* ================= END PAGE / FAREWELL ================= */
.end-page-section { position:relative; height:100vh; width:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; z-index:30; text-align:center; color:var(--ivory); padding:0 20px; overflow:hidden; }
.end-page-section .bg-image-container { position:absolute; inset:0; z-index:1; overflow:hidden; }
.end-page-section .bg-image-container img { width:100%; height:100%; object-fit:cover; filter:brightness(.42) saturate(1.1); animation:heroDrift 30s ease-in-out infinite alternate; }
.end-page-section::after { content:""; position:absolute; inset:0; z-index:2; background:radial-gradient(90% 70% at 50% 45%, transparent 40%, rgba(3,12,9,.55) 100%); pointer-events:none; }
.end-page-content { position:relative; z-index:10; max-width:680px; }
.end-page-content h2 { font-size:clamp(36px,5vw,58px); color:var(--ivory); margin-bottom:16px; }
.end-page-content h2 em { color:var(--gold-soft); font-style:italic; }
.end-page-content p { max-width:600px; margin:0 auto 30px; font-size:18px; color:#D3DDD0; }
.end-page-content .eyebrow, .end-page-content h2, .end-page-content p, .end-page-content .btn { opacity:0; transform:translateY(34px); filter:blur(6px); transition:opacity .8s ease, transform .9s var(--ease), filter .8s ease; }
.end-page-content.animate .eyebrow { opacity:1; transform:translateY(0); filter:blur(0); transition-delay:.1s; }
.end-page-content.animate h2 { opacity:1; transform:translateY(0); filter:blur(0); transition-delay:.42s; }
.end-page-content.animate p { opacity:1; transform:translateY(0); filter:blur(0); transition-delay:.75s; }
.end-page-content.animate .btn { opacity:1; transform:translateY(0); filter:blur(0); transition-delay:1.05s; }
.end-page-content h2.typewriter-line, .end-page-content p.typewriter-line { min-height:1.4em; margin-bottom:0; }
.end-page-content h2.typewriter-line { font-size:clamp(36px,5vw,58px); color:var(--ivory); margin-bottom:16px; }
.end-page-content p.typewriter-line { font-size:18px; color:#D3DDD0; margin-bottom:30px; }
.typewriter-caret { display:inline-block; width:2px; height:.9em; background:var(--gold-soft); margin-left:4px; vertical-align:-.08em; box-shadow:0 0 10px rgba(216,188,126,.8); animation:caretBlink .85s steps(2,start) infinite; }
.typewriter-highlight { color:var(--gold-soft); text-shadow:0 0 24px rgba(216,188,126,.55); }
body.end-state-active .site-header { display:none !important; }

/* ================= FOOTER ================= */
footer { position:relative; z-index:30; color:var(--ivory); padding:80px 0 28px; background:var(--em-dark); border-top:1px solid rgba(216,188,126,.25); overflow:hidden; isolation:isolate; box-shadow:0 -20px 60px rgba(0,0,0,.5); }
.footer-top, .f-bottom { position:relative; }
.footer-top { display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:44px; padding-bottom:52px; }
.footer-brand-col p { color:#C9D4C4; font-size:14px; margin-top:18px; max-width:310px; line-height:1.75; text-shadow:0 1px 8px rgba(0,0,0,.5); }
.footer-col h4 { color:var(--gold-soft); font-size:12.5px; font-weight:700; letter-spacing:.18em; text-transform:uppercase; margin-bottom:22px; text-shadow:0 1px 6px rgba(0,0,0,.4); }
.footer-col ul { list-style:none; }
.footer-col ul li { margin-bottom:12px; }
.footer-col ul li a { color:#C5D0C2; font-size:14px; transition:color .2s, padding-left .25s var(--ease); text-shadow:0 1px 6px rgba(0,0,0,.45); }
.footer-col ul li a:hover { color:var(--gold-soft); padding-left:5px; }
.f-bottom { border-top:1px solid rgba(255,255,255,.13); padding-top:26px; display:flex; justify-content:space-between; align-items:center; color:#A9B8A8; font-size:13px; flex-wrap:wrap; gap:15px; text-shadow:0 1px 6px rgba(0,0,0,.5); }
.f-bottom a { color:#C5D0C2; }
.f-bottom a:hover { color:var(--gold-soft); }

/* ================= MODALS ================= */
.modal-overlay { position:fixed; inset:0; z-index:200; background:radial-gradient(1200px 700px at 50% 20%, rgba(216,188,126,.13), transparent 60%), rgba(3,14,11,.93); backdrop-filter:blur(18px) saturate(1.2); display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition:opacity .35s var(--ease); padding:20px; }
.modal-overlay.open { opacity:1; pointer-events:auto; }
.modal-card { background:radial-gradient(600px 300px at 85% -10%, rgba(216,188,126,.15), transparent 55%), radial-gradient(500px 320px at 0% 110%, rgba(66,150,109,.2), transparent 55%), linear-gradient(160deg,#102E23 0%,#071D15 46%,#051A13 100%); border:1px solid rgba(216,188,126,.45); box-shadow:0 44px 110px rgba(0,0,0,.68), 0 0 75px rgba(184,148,77,.2), inset 0 1px 0 rgba(255,255,255,.09); border-radius:26px; width:min(600px,100%); max-height:90vh; overflow-y:auto; padding:44px 46px 42px; color:var(--ivory); position:relative; transform:translateY(32px) scale(.96); transition:transform .4s var(--ease); }
.modal-card::before { content:""; position:absolute; top:0; left:26px; right:26px; height:1px; background:linear-gradient(90deg,transparent,rgba(244,227,185,.9),transparent); pointer-events:none; }
.modal-card::after { content:"ࢪ"; position:absolute; right:26px; top:28px; font-family:var(--ar); font-size:96px; line-height:1; color:rgba(216,188,126,.08); pointer-events:none; user-select:none; }
.modal-overlay.open .modal-card { transform:translateY(0) scale(1); }
.modal-close { position:absolute; top:20px; right:20px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.13); color:var(--gold-soft); width:38px; height:38px; border-radius:50%; font-size:22px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:.25s var(--ease); z-index:5; }
.modal-close:hover { background:rgba(216,188,126,.22); color:var(--white); transform:rotate(90deg); }
.modal-header { text-align:center; margin-bottom:30px; position:relative; }
.modal-ornament { display:flex; align-items:center; justify-content:center; gap:14px; margin-bottom:18px; }
.modal-ornament::before, .modal-ornament::after { content:""; height:1px; width:74px; background:linear-gradient(90deg,transparent,var(--gold-soft)); }
.modal-ornament::after { background:linear-gradient(90deg,var(--gold-soft),transparent); }
.modal-ornament span { font-family:var(--ar); font-size:23px; color:var(--gold-soft); line-height:1; }
.modal-header h2 { font-size:clamp(26px,4vw,34px); color:var(--ivory); margin-bottom:10px; letter-spacing:-.5px; }
.modal-header h2 em { color:var(--gold-soft); font-style:italic; }
.modal-header p { color:#AEC0B0; font-size:14.5px; max-width:420px; margin:0 auto; }
.modal-assurance { display:flex; align-items:center; justify-content:center; gap:18px; margin:20px 0 4px; flex-wrap:wrap; }
.modal-assurance span { display:inline-flex; align-items:center; gap:6px; font-size:12px; color:#8FB49C; letter-spacing:.2px; }
.modal-assurance svg { width:14px; height:14px; color:var(--gold-soft); }
.form-group { margin-bottom:17px; }
.form-group label { display:flex; align-items:center; gap:5px; font-size:11.5px; font-weight:700; letter-spacing:1.1px; text-transform:uppercase; color:var(--gold-soft); margin-bottom:8px; }
.form-group input, .form-group select, .form-group textarea { width:100%; padding:14px 16px; border-radius:12px; border:1px solid rgba(216,188,126,.32); background:rgba(5,18,14,.6); color:var(--ivory); font-family:var(--ui); font-size:14.5px; outline:none; transition:border-color .25s ease, background .25s ease, box-shadow .25s ease; }
.form-group input::placeholder, .form-group textarea::placeholder { color:rgba(174,192,176,.45); }
.form-group input:hover, .form-group select:hover, .form-group textarea:hover { border-color:rgba(216,188,126,.55); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color:var(--gold-soft); background:rgba(5,18,14,.94); box-shadow:0 0 0 4px rgba(216,188,126,.17), 0 6px 24px rgba(0,0,0,.35); }
.form-group select { appearance:none; -webkit-appearance:none; padding-right:46px; cursor:pointer; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%23D8BC7E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 16px center; }
.form-group select option { background:var(--em-dark); color:var(--ivory); }
.form-group textarea { resize:vertical; min-height:84px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.phone-field-group { display:flex; gap:10px; }
.phone-field-group select { width:42%; flex:none; }
.phone-field-group input { width:58%; }
.phone-hint { font-size:11.5px; color:#8BA190; margin-top:6px; display:flex; align-items:center; gap:6px; }
.phone-hint::before { content:"ℹ"; font-size:12px; color:var(--gold-soft); }

.apply-success { text-align:center; padding:34px 20px 10px; animation:fadeUp .5s var(--ease) both; }
.apply-success-mark { width:76px; height:76px; margin:0 auto 22px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:34px; color:#0B241B; background:linear-gradient(160deg,var(--champagne),var(--gold)); box-shadow:0 0 0 8px rgba(216,188,126,.15), 0 18px 40px rgba(0,0,0,.4); animation:popIn .55s cubic-bezier(.34,1.56,.64,1) both; }
.apply-success h3 { font-size:24px; color:var(--ivory); margin-bottom:10px; }
.apply-success p { color:#AEC0B0; font-size:15px; line-height:1.7; max-width:360px; margin:0 auto; }
@keyframes fadeUp { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@keyframes popIn { from { opacity:0; transform:scale(.4); } to { opacity:1; transform:scale(1); } }

.privacy-body { color:#C8D4C5; font-size:14px; line-height:1.75; }
.privacy-body h3 { color:var(--gold-soft); font-size:18px; margin:20px 0 8px; }
.privacy-body p { margin-bottom:12px; }

/* ================= COUNTRY DROPDOWN ================= */
.country-dropdown { position:relative; }
.country-dropdown-trigger { width:100%; display:flex; align-items:center; gap:10px; padding:12px 14px; border-radius:14px; border:1px solid rgba(216,188,126,.24); background:rgba(255,255,255,.035); color:var(--ivory); font-size:14.5px; cursor:pointer; transition:.2s; text-align:left; }
.country-dropdown-trigger:hover { border-color:rgba(216,188,126,.5); background:rgba(255,255,255,.065); }
.country-dropdown-caret { margin-left:auto; opacity:.55; flex-shrink:0; transition:transform .25s var(--ease); }
.country-dropdown.open .country-dropdown-caret { transform:rotate(180deg); }
.country-flag-emoji { font-size:18px; line-height:1; flex-shrink:0; }
.country-dropdown-value { flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.country-dropdown-list { position:absolute; top:calc(100% + 6px); left:0; right:0; z-index:20; background:#0C2A21; border:1px solid rgba(216,188,126,.22); border-radius:14px; padding:6px; max-height:260px; overflow-y:auto; opacity:0; pointer-events:none; transform:translateY(-6px); transition:.25s var(--ease); box-shadow:0 18px 44px rgba(0,0,0,.55); }
.country-dropdown.open .country-dropdown-list { opacity:1; pointer-events:auto; transform:none; }
.country-dropdown-list::-webkit-scrollbar { width:5px; }
.country-dropdown-list::-webkit-scrollbar-track { background:transparent; }
.country-dropdown-list::-webkit-scrollbar-thumb { background:rgba(216,188,126,.3); border-radius:4px; }
.country-dropdown-option { display:flex; align-items:center; gap:10px; padding:11px 14px; border-radius:10px; font-size:13.5px; color:rgba(247,243,232,.82); cursor:pointer; transition:.15s; list-style:none; }
.country-dropdown-option:hover { background:rgba(216,188,126,.12); color:var(--ivory); }
.country-dropdown-option.selected { background:rgba(184,148,77,.18); color:var(--ivory); }
.country-option-label { flex:1; }
.country-option-dial { opacity:.5; font-size:12px; }

/* ================= RESPONSIVE ================= */
@media (max-width:900px) {
  .main-nav { display:none; }
  .hamburger-btn { display:flex; }
  .footer-top { grid-template-columns:1fr 1fr; gap:32px 24px; }
  @media (max-width:900px) and (min-width:651px) {
    .modal-overlay { padding:0; align-items:stretch; }
    .modal-card { width:100%; height:100%; max-height:none; border-radius:0; padding:52px 28px 28px; overflow-y:auto; }
    .modal-close { top:20px; right:20px; }
  }
  #reviewDetailModal { align-items:center; padding:22px; }
  #reviewDetailModal .modal-card { height:auto; width:min(520px,100%); max-height:88vh; }
}
@media (max-width:650px) {
  .site-header .h-in { height:66px; }
  .learning-section { height:100svh; min-height:670px; }
  .intro { width:calc(100% - 24px); top:18px; }
  .eyebrow { font-size:9px; letter-spacing:2px; margin-bottom:5px; }
  .intro-title { font-size:28px; }
  .intro-subtitle { margin-top:6px; font-size:12.5px; line-height:1.45; }
  .course-card { width:min(86vw,336px); height:clamp(415px,56svh,475px); min-height:400px; padding:0; border-radius:22px; }
  .card-title { font-size:21px; }
  .card-description { font-size:12.5px; }
  .card-number { font-size:26px; }
  .current-course { display:none; }
  .mobile-card-nav { display:flex; }
  .testi-header-flex { align-items:center; justify-content:center; text-align:center; }
  .testi-heading { padding:0 12px; order:-1; flex:1 1 100%; }
  .testi-heading h2 { font-size:24px !important; }
  .timeline-vertical::before { left:20px; }
  .timeline-progress { left:20px; }
  .timeline-item, .timeline-item:nth-child(even) { justify-content:flex-start; padding-left:56px; padding-right:0; }
  .timeline-node { left:20px; }
  .timeline-node::after { display:none; }
  .timeline-item:nth-child(odd) .timeline-card, .timeline-item:nth-child(even) .timeline-card { margin-left:0; margin-right:0; width:100%; }
  footer { padding:44px 0 24px; }
  .footer-top { grid-template-columns:1fr 1fr; gap:28px 22px; padding-bottom:30px; }
  .footer-brand-col { grid-column:1 / -1; text-align:center; }
  .footer-brand-col .brand-wrapper { justify-content:center; }
  .footer-brand-col p { font-size:12px; max-width:280px; margin:10px auto 0; }
  .footer-col h4 { font-size:12px; margin-bottom:14px; }
  .footer-col ul li { margin-bottom:8px; }
  .footer-col ul li a { font-size:12.5px; }
  .f-bottom { flex-direction:column; text-align:center; gap:8px; padding-top:18px; font-size:11.5px; }
  .modal-overlay { padding:0; align-items:stretch; }
  .modal-card { width:100%; height:100%; max-height:none; border-radius:0; border-left:none; border-right:none; border-bottom:none; padding:48px 22px 28px; overflow-y:auto; }
  .modal-close { top:18px; right:18px; }
  .form-row { grid-template-columns:1fr; gap:0; }
  .phone-field-group { flex-direction:column; }
  .phone-field-group select, .phone-field-group input { width:100%; }
}

/* ================= SHOPIFY THEME ADDITIONS ================= */
.brand-logo-img { height:44px; width:44px; object-fit:cover; border-radius:12px; box-shadow:0 0 0 1px rgba(216,188,126,.45), 0 0 16px rgba(216,188,126,.35); }
.footer-logo-img { height:46px; width:46px; object-fit:cover; border-radius:12px; box-shadow:0 0 0 1px rgba(216,188,126,.4), 0 0 14px rgba(216,188,126,.3); }
@media (max-width:650px) {
  .brand-logo-img { height:38px; width:38px; border-radius:10px; }
}

/* ================= v2.7: FLOATING GLASS HEADER (all pages) ================= */
.site-header { top:12px; left:16px; right:16px; border-radius:26px; border:1px solid rgba(216,188,126,.22); background:linear-gradient(180deg, rgba(14,64,47,.26), rgba(8,34,25,.16)); -webkit-backdrop-filter:blur(20px) saturate(1.4); backdrop-filter:blur(20px) saturate(1.4); box-shadow:0 18px 50px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.09); }
.site-header.scrolled { background:linear-gradient(180deg, rgba(12,54,40,.34), rgba(7,28,21,.22)); }
.site-header .h-in { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; height:58px; padding:0 18px; }
.site-header.scrolled .h-in { height:50px; }
.site-header .brand-wrapper { grid-column:2; grid-row:1; justify-self:center; }
.site-header .main-nav { grid-column:1; grid-row:1; justify-self:start; margin:0; background:transparent !important; border-color:transparent !important; box-shadow:none !important; backdrop-filter:none !important; -webkit-backdrop-filter:none !important; }
.site-header .main-nav { gap:1px; white-space:nowrap; }
.site-header .main-nav a { padding:8px 11px; font-size:13px; }
.site-header .main-nav a { background:transparent !important; }
.site-header .main-nav a:hover { background:transparent !important; color:var(--ivory); }
.site-header .main-nav a.active { background:linear-gradient(180deg,var(--champagne),var(--gold)) !important; color:#20241C; font-weight:600; box-shadow:0 4px 14px rgba(184,148,77,.35); }
.site-header .nav-actions { grid-column:3; grid-row:1; justify-self:end; }
@media (max-width:650px) {
  .site-header { top:8px; left:8px; right:8px; border-radius:20px; }
  .site-header .h-in { padding:0 12px; }
}

/* ================= v2.4: HOMEPAGE FOOTER BACKDROP ================= */
body.template-index footer { background:linear-gradient(180deg, rgba(5,19,14,.87) 0%, rgba(5,19,14,.8) 45%, rgba(4,15,11,.93) 100%), url(maseel-containerbg.jpg) center top/cover no-repeat; }

/* ================= v2.4: TIMELINE GLOW-UP ================= */
.timeline-node { background:radial-gradient(circle at 35% 30%, #EEDDAE, var(--gold) 55%, #7A5F2B 100%); box-shadow:0 0 0 5px rgba(216,188,126,.14), 0 0 26px rgba(216,188,126,.45); animation:tl-node-pulse 2.8s ease-in-out infinite; }
@keyframes tl-node-pulse { 0%,100% { box-shadow:0 0 0 5px rgba(216,188,126,.14), 0 0 22px rgba(216,188,126,.35); } 50% { box-shadow:0 0 0 9px rgba(216,188,126,.07), 0 0 40px rgba(216,188,126,.6); } }
.timeline-vertical::before { background:linear-gradient(180deg, transparent, rgba(216,188,126,.55) 12%, rgba(216,188,126,.55) 88%, transparent); }
.timeline-progress { background:linear-gradient(180deg, var(--gold-soft), var(--gold) 50%, var(--gold-soft)); background-size:100% 220%; animation:tl-flow 3.2s linear infinite; }
@keyframes tl-flow { from { background-position:50% 0; } to { background-position:50% 220%; } }
.timeline-card { position:relative; overflow:hidden; }
.timeline-card::before { content:""; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg, transparent, var(--gold-soft), transparent); opacity:.9; z-index:2; pointer-events:none; }
.timeline-card:hover { box-shadow:0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(216,188,126,.5), 0 0 44px rgba(216,188,126,.18); }

/* ================= v2.4: SUBMIT BUTTON + SUCCESS ANIMATIONS ================= */
#appModal [type="submit"].is-busy { position:relative; pointer-events:none; opacity:.88; }
#appModal [type="submit"].is-busy::after { content:""; display:inline-block; width:17px; height:17px; margin-left:10px; vertical-align:-3px; border-radius:50%; border:2.5px solid rgba(255,255,255,.35); border-top-color:#fff; animation:btn-spin .7s linear infinite; }
@keyframes btn-spin { to { transform:rotate(360deg); } }
.apply-success-mark { animation:mark-pop .55s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes mark-pop { from { transform:scale(.3); opacity:0; } }

/* v2.13: review swap animation retired */

/* ================= v2.7: FAREWELL EYEBROW (no diamond dot) ================= */
.end-page-section .eyebrow::before { content:none; }

/* ================= v2.7: PROGRAM PAGES (no white middle, tighter bottom) ================= */
.page-section { background:radial-gradient(900px 420px at 50% -10%, rgba(216,188,126,.13), transparent 60%), linear-gradient(180deg, #0C2A21, #071B15 78%); color:var(--ivory); }
.page-section.alt { background:radial-gradient(900px 420px at 50% -10%, rgba(216,188,126,.1), transparent 60%), linear-gradient(180deg, #0A241D, #06170F 78%); }
.page-section h3.section-title { color:var(--ivory); }
.page-section h3.section-title em { color:var(--gold-soft); }
.page-section .section-sub { color:#AEC0B0; }
.page-list li { color:#D9E0D4; }
.page-step-list b { color:var(--ivory); }
.page-step-list p { color:#AEC0B0; }
.page-step-list li::before { background:#0B2720; }
.page-quote { color:#E9EFE6; background:linear-gradient(90deg, rgba(216,188,126,.17), rgba(216,188,126,.05)); }
.page-pricing { padding-bottom:60px; }

/* ================= v2.10: ORPHAN DOTS + EMPTY HINTS ================= */
.eyebrow:empty { display:none; }
.scroll-hint:empty { display:none; }

/* ================= v2.10: HERO TEXT GLOW ================= */

/* ================= v2.10: REVIEW PROGRAM REDIRECT ================= */
.testi-card { position:relative; }
.testi-go { position:absolute; top:12px; right:12px; width:30px; height:30px; border-radius:50%; display:grid; place-items:center; color:var(--gold-soft); background:rgba(216,188,126,.1); border:1px solid rgba(216,188,126,.35); transition:.25s var(--ease); z-index:2; }
.testi-go:hover { background:linear-gradient(180deg,var(--champagne),var(--gold)); color:#20241C; border-color:var(--gold); transform:translateY(-2px); box-shadow:0 8px 20px rgba(184,148,77,.4); }

/* ================= v2.10: START FREE CTA ================= */
.pricing-free-cta { text-align:center; margin-top:28px; }

/* ================= v2.10: FOOTER (3 columns, hidden on inner pages) ================= */
.footer-top { grid-template-columns:1.6fr 1fr 1fr; }
body[class*="template-page"] footer { display:none; }

/* The seam Apply button is gone with the old hero, so the header's own
   button is hidden here on narrow screens as it always was. */
@media (max-width:900px) {
  .site-header .nav-actions .btn { display:none; }
}

/* ================= v2.11: APPLY MODAL BEAUTY ================= */
#appModal .modal-card { border:1px solid rgba(216,188,126,.5); box-shadow:0 40px 100px rgba(0,0,0,.62), 0 0 70px rgba(184,148,77,.2), inset 0 1px 0 rgba(255,255,255,.08); animation:modal-pop .45s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes modal-pop { from { transform:scale(.92) translateY(18px); opacity:0; } }
#appModal.open { backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }
#appModal input:focus, #appModal select:focus, #appModal textarea:focus { border-color:var(--gold-soft); box-shadow:0 0 0 3px rgba(216,188,126,.18); outline:none; }
#appModal .modal-header h2 em, #appModal h2 em { color:var(--gold-soft); text-shadow:0 0 18px rgba(216,188,126,.35); }

/* ================= v2.13: DIAL CODE INSIDE INPUT + MODAL HEIGHT ================= */
#appModal .phone-field-group { position:relative; display:block; }
#appModal .dial-prefix { position:absolute; left:16px; top:50%; transform:translateY(-50%); background:none; border:none; border-right:1px solid rgba(216,188,126,.35); margin:0; padding:0 10px 0 0; color:var(--gold-soft); font-weight:700; font-size:14.5px; z-index:1; }
#appModal #phone { width:100%; padding-left:78px !important; }
#appModal .modal-card { max-height:96svh; overflow-y:auto; }

/* ================= v2.12: GLASSY MOBILE CARD NAV ================= */
.mobile-nav-btn { background:rgba(14,64,47,.5); backdrop-filter:blur(14px) saturate(1.3); -webkit-backdrop-filter:blur(14px) saturate(1.3); border-color:rgba(216,188,126,.5); box-shadow:inset 0 1px 0 rgba(255,255,255,.1); }

/* ================= v2.12: MOBILE PRICING SNAP ROW ================= */
@media (max-width:768px) {
  .pricing-section .pricing-grid { display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; padding:46px 6vw 22px; margin:0 -6vw; scrollbar-width:none; }
  .pricing-section .pricing-grid::-webkit-scrollbar { display:none; }
  .pricing-section .pricing-card { flex:0 0 78%; max-width:340px; scroll-snap-align:center; }
  .pricing-section .pricing-card.popular { transform:none; }
  .pricing-row-nav { display:flex; }
}

/* ================= v2.12: START FREE LINK ================= */
.pricing-free-link { color:var(--gold-soft); font-weight:700; font-size:15px; cursor:pointer; display:inline-flex; align-items:center; gap:8px; text-decoration:underline; text-underline-offset:5px; text-decoration-color:rgba(216,188,126,.5); transition:.25s var(--ease); }
.pricing-free-link:hover { gap:12px; color:var(--champagne); }

/* ================= v2.12: MOBILE FOOTER GRID ================= */
@media (max-width:650px) {
  .footer-top { grid-template-columns:1fr; }
  .footer-col ul { display:grid; grid-template-columns:1fr 1fr; gap:8px 20px; }
}

/* ================= v2.14: PRICING ROW NAV + CENTERED CONTACT ================= */
/* v2.21: whole-block hero fade (no half-shown words) */
@keyframes panelFade { from { opacity:0; transform:translateY(14px); } }
/* v2.21: render only what is near the viewport */
.platform-banner, .testimonials-section, .end-page-section { content-visibility:auto; contain-intrinsic-size:auto 800px; }
.footer-top .footer-col:last-child { text-align:center; }
.footer-top .footer-col:last-child .btn { margin-left:auto; margin-right:auto; }
.pricing-row-nav { display:none; align-items:center; justify-content:center; gap:18px; margin:18px 0 4px; }
.pricing-row-btn { width:40px; height:40px; border-radius:50%; background:rgba(14,64,47,.5); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); color:var(--gold-soft); border:1px solid rgba(216,188,126,.5); font-size:18px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:.2s var(--ease); }
.pricing-row-btn:hover { background:var(--gold); color:#20241C; }
.pricing-row-dots { display:flex; gap:8px; }
.pricing-dot { width:9px; height:9px; border-radius:50%; background:rgba(255,255,255,.22); border:1px solid rgba(216,188,126,.4); padding:0; cursor:pointer; transition:.25s var(--ease); }
.pricing-dot.active { background:var(--gold-soft); border-color:var(--gold); transform:scale(1.3); box-shadow:0 0 10px rgba(216,188,126,.6); }

/* ================= v2.15: FOOTER CENTERS ================= */
.footer-col h4 { text-align:center; }
.footer-top .footer-col:last-child ul { display:block; }
/* v2.21: explore links centered as a unit */
.footer-top .footer-col:nth-child(2) { text-align:center; }
.footer-top .footer-col:nth-child(2) ul { display:inline-block; text-align:left; margin:0 auto; }
@media (max-width:650px) {
  .footer-top .footer-col:nth-child(2) ul { display:grid; justify-items:center; text-align:center; }
}
@media (max-width:768px) {
  .pricing-row-nav { display:flex; }
}

/* ================= v2.15: COURSES RISE OVER VIDEO ================= */
.learning-section { margin-top:-14vh; border-radius:30px 30px 0 0; }
@media (max-width:650px) {
  .learning-section { margin-top:-7vh; border-radius:22px 22px 0 0; }
}

/* ================= v2.15: CINEMATIC SUBMIT ================= */
#applyForm .form-group { transition:transform .5s var(--ease), opacity .45s ease; }
#applyForm.apply-exiting .form-group:nth-of-type(odd) { transform:translateX(-46px); opacity:0; }
#applyForm.apply-exiting .form-group:nth-of-type(even) { transform:translateX(46px); opacity:0; }
#applyForm.apply-exiting button[type="submit"] { opacity:0; transform:scale(.94); transition:.4s ease; }
.apply-loading { text-align:center; padding:60px 20px; animation:fadeUp .4s var(--ease) both; }
.apply-load-ring { width:64px; height:64px; margin:0 auto 20px; border-radius:50%; border:4px solid rgba(216,188,126,.2); border-top-color:var(--gold-soft); animation:btn-spin .8s linear infinite; box-shadow:0 0 30px rgba(216,188,126,.25); }
.apply-loading p { color:#AEC0B0; }
.apply-success { position:relative; }
.apply-success .apply-success-mark { background:linear-gradient(160deg,#2fbf71,#0f7a44); box-shadow:0 0 34px rgba(47,191,113,.45); }
.apply-success-close { position:absolute; top:6px; right:10px; width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.06); border:1px solid rgba(216,188,126,.35); color:var(--gold-soft); font-size:19px; line-height:1; cursor:pointer; transition:.2s; }
.apply-success-close:hover { background:rgba(216,188,126,.2); color:var(--ivory); }

/* ================= v2.15: COUNTRY SEARCH + ERROR ================= */
.country-search, #countrySearch { flex:1; min-width:0; background:transparent !important; border:none !important; border-radius:0 !important; box-shadow:none !important; color:var(--ivory); font-size:14.5px; outline:none !important; padding:2px 0; appearance:none; -webkit-appearance:none; }
.country-search::placeholder, #countrySearch::placeholder { color:rgba(247,243,232,.45); }
.country-search:focus, #countrySearch:focus { outline:none; border:none; box-shadow:none; }
.country-dropdown-trigger.need-country { border-color:#ff9d9d !important; animation:trig-shake .4s; }
@keyframes trig-shake { 25% { transform:translateX(-5px); } 50% { transform:translateX(5px); } 75% { transform:translateX(-3px); } }

/* v2.21: autofill stays on-theme (no white boxes) */
#appModal input:-webkit-autofill, #appModal textarea:-webkit-autofill, #appModal select:-webkit-autofill { -webkit-box-shadow:0 0 0 60px #0C2A21 inset; -webkit-text-fill-color:var(--ivory); caret-color:var(--ivory); transition:background-color 99999s ease-in-out 0s; }
#appModal input:autofill, #appModal textarea:autofill { box-shadow:0 0 0 60px #0C2A21 inset; -webkit-text-fill-color:var(--ivory); caret-color:var(--ivory); }

/* ================= v2.17: VIDEO LEFT BEHIND, ALL SECTIONS RISE OVER ================= */
body.template-index .learning-section { margin-top:0; border-radius:30px 30px 0 0; }
body.template-index .testimonials-section { background:linear-gradient(rgba(5,20,14,.96), rgba(5,20,14,.93)), url(maseel-reviewbg.jpg) center / cover no-repeat; }
@media (max-width:650px) {
  body.template-index .learning-section { margin-top:0; border-radius:22px 22px 0 0; }
}

/* ================= v2.16: PHONE HINT (errors only) ================= */
#phoneHint { display:none; }
#phoneHint.error { display:block; }

/* ================= v2.16: SINGLE RESULT CLOSE ================= */
#appModal .modal-card.has-result > .modal-close { display:none; }

/* ================= v2.22: SMALL-SCREEN CAROUSELS ================= */
@media (max-width:900px) {
  /* Keep the review heading and controls together instead of allowing the
     arrows to wrap into a stray vertical column beside the title. */
  .testi-header-flex {
    display:grid;
    grid-template-columns:1fr 46px 16px 46px 1fr;
    grid-template-rows:auto auto;
    align-items:center;
    justify-content:stretch;
    column-gap:0;
    row-gap:18px;
    margin-bottom:30px;
    text-align:center;
  }
  .testi-heading {
    grid-column:1 / -1;
    grid-row:1;
    width:100%;
    max-width:100%;
    min-width:0;
    padding:0 12px;
    text-align:center;
    order:0;
    flex:none;
  }
  .testi-heading h2 {
    font-size:clamp(25px, 4.7vw, 32px) !important;
    line-height:1.12;
  }
  .testi-heading p {
    width:min(100%, 48ch);
    max-width:100%;
    margin:10px auto 0 !important;
    font-size:clamp(13px, 2vw, 15px);
    line-height:1.55;
    text-wrap:balance;
  }
  .testi-header-flex #prevTestiBtn {
    grid-column:2;
    grid-row:2;
    justify-self:end;
  }
  .testi-header-flex #nextTestiBtn {
    grid-column:4;
    grid-row:2;
    justify-self:start;
  }

  /* Give the reviews a true viewport-width scroll rail; the old 50% card
     sizing then fits two complete cards instead of clipping the far edge. */
  .testi-slider-container {
    width:auto;
    margin-inline:-4vw;
    padding:12px 16px 26px;
    scroll-padding-inline:16px;
  }
  .testi-track { gap:16px; }
  .testi-card {
    width:calc(50% - 8px);
    min-width:0;
    padding:24px 20px;
  }
}

@media (max-width:560px) {
  .testi-card { width:min(85%, 380px); }
}

@media (max-width:768px) {
  /* The 820px single-column rule leaves max-width:430px behind. Clear that
     cap when the pricing section becomes a swipe row, so it spans the screen. */
  .pricing-section .pricing-grid {
    width:auto;
    max-width:none;
    margin:0 -4vw;
    padding:46px 4vw 22px;
    gap:16px;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
  }
  .pricing-section .pricing-card {
    flex:0 0 min(78%, 340px);
    min-width:0;
  }
}



/* ================= MOBILE POLISH: HEADER, PRICING, BACKGROUNDS & COURSE REVEAL ================= */
@media (max-width: 650px) {
  /* Keep all four primary links in the header, framing an emblem-only logo. */
  .site-header .h-in {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100% !important;
    max-width: none;
    height: 58px;
    margin: 0;
    padding: 0 8px;
    gap: 0;
  }
  .site-header.scrolled .h-in { height: 52px; }
  .site-header .brand-wrapper {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
    min-width: 0;
    width: max-content;
  }
  .site-header .brand-logo-container { gap: 0; }
  .site-header .brand-text { display: none !important; }
  .site-header .brand-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .site-header .main-nav {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .site-header .main-nav a {
    grid-row: 1;
    min-width: 0;
    width: 100%;
    justify-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1px !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: rgba(247, 243, 232, .88);
    font-size: clamp(8.5px, 2.75vw, 10px);
    line-height: 1.05;
    letter-spacing: -.025em;
    white-space: nowrap;
    text-align: center;
  }
  .site-header .main-nav a:nth-child(1) { grid-column: 1; }
  .site-header .main-nav a:nth-child(2) { grid-column: 2; }
  .site-header .main-nav a:nth-child(3) { grid-column: 4; }
  .site-header .main-nav a:nth-child(4) { grid-column: 5; }
  .site-header .main-nav a.active {
    background: transparent !important;
    color: var(--gold-soft) !important;
    font-weight: 700;
    box-shadow: none !important;
    text-decoration: underline;
    text-decoration-color: rgba(216, 188, 126, .72);
    text-underline-offset: 5px;
  }
  .site-header .nav-actions { display: contents !important; }
  .site-header .nav-actions > * { display: none !important; }
  .site-header .hamburger-btn { display: none !important; }
  .mobile-sidebar { display: none !important; }
}

@media (max-width: 768px) {
  /* Center the active plan while leaving a slim preview of its neighbors. */
  .pricing-section .pricing-grid {
    --mobile-plan-width: min(390px, calc(100vw - 36px));
    display: flex;
    width: auto;
    max-width: none;
    margin: 0 -4vw;
    padding: 48px max(18px, calc((100vw - 390px) / 2)) 26px;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(18px, calc((100vw - 390px) / 2));
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pricing-section .pricing-grid::-webkit-scrollbar { display: none; }
  .pricing-section .pricing-card {
    box-sizing: border-box;
    flex: 0 0 var(--mobile-plan-width);
    width: var(--mobile-plan-width);
    max-width: none;
    min-width: 0;
    padding: 32px 22px 24px;
    scroll-snap-align: center;
  }
  .pricing-section .pricing-card.popular,
  .pricing-section .pricing-card.popular:hover { transform: none !important; }
  .pricing-section .pricing-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }
  .pricing-section .pricing-tier-tag { font-size: 9.5px; line-height: 1.35; }
  .pricing-section .pricing-plan { font-size: 24px; }
  .pricing-section .pricing-price-block { align-items: flex-start; text-align: left; }
  .pricing-section .pricing-amt { font-size: 35px; }
  .pricing-section .pricing-per-class {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.35;
  }
  .pricing-section .pricing-flag {
    max-width: calc(100% - 22px);
    box-sizing: border-box;
    padding: 6px 12px;
    font-size: 8.5px;
    letter-spacing: .1em;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pricing-row-nav { display: flex; }
}

@media (max-width: 380px) {
  .pricing-section .pricing-card { padding-inline: 18px; }
  .pricing-section .pricing-flag { font-size: 8px; padding-inline: 9px; }
}

@media (max-width: 650px) {
  /* Keep the course pin strictly after the book pin. The rounded edge and
     shadow provide a lifted handoff without overlapping the two triggers. */
  body.template-index #learningSection {
    position: relative;
    z-index: 30;
    margin-top: 0 !important;
    border-radius: 22px 22px 0 0;
  }
  .platform-banner {
    min-height: 0;
    padding: 68px 0 76px;
    background-image: url("maseel-classroom-mobile.jpg");
    background-position: center 52%;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }
  .platform-banner::before {
    background: linear-gradient(180deg,
      rgba(4, 18, 13, .52) 0%,
      rgba(4, 18, 13, .67) 38%,
      rgba(4, 18, 13, .88) 100%);
  }
  .platform-flex { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .platform-info { order: 0; padding: 0 !important; }
  .platform-info h3 { font-size: clamp(30px, 8vw, 36px); }
  .platform-info > p { font-size: 15px; }
  .platform-perks { margin-top: 20px; gap: 12px; }
  .platform-perks li { font-size: 14px; }
  .platform-badges { gap: 10px; }
  .platform-badge { padding: 9px 11px; }

  /* Keep the mosque-arch review art in frame; treat the panoramic footer
     artwork as a shallow repeating top band instead of zooming it vertically. */
  body.template-index .testimonials-section {
    background-position: center, center 42%;
    background-size: auto auto, auto 100%;
    background-repeat: no-repeat, no-repeat;
  }
  body.template-index footer {
    background:
      linear-gradient(180deg, rgba(5,19,14,.88) 0%, rgba(5,19,14,.82) 45%, rgba(4,15,11,.95) 100%) 0 0 / 100% 100% no-repeat,
      url("maseel-containerbg.jpg") center top / auto 170px repeat-x;
  }
}

@media (min-width: 651px) {
  body.template-index #learningSection { margin-top: 0 !important; }
}

/* ================= 2026 COPY / UI CLEANUP ================= */
/* Keep section labels typographic; remove the diamond marker. */
.eyebrow { gap: 0; }
.eyebrow::before { content: none; }

/* The course overview is a simple responsive card grid, not a numbered roadmap. */
.timeline-section {
  background: linear-gradient(180deg, #071811 0%, #0A241C 55%, #071811 100%);
}
.timeline-section::before { content: none; }
.timeline-vertical {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
}
.timeline-vertical::before,
.timeline-progress,
.timeline-node { display: none !important; }
.timeline-item,
.timeline-item:nth-child(even) {
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
}
.timeline-card,
.timeline-item:nth-child(odd) .timeline-card,
.timeline-item:nth-child(even) .timeline-card {
  display: flex;
  width: 100%;
  min-height: 0;
  margin: 0;
  justify-content: flex-start;
  background: #0B261E;
  border: 1px solid rgba(216,188,126,.2);
  border-radius: 16px;
  box-shadow: none;
  transform: none;
}
.timeline-card::before,
.timeline-card::after { content: none; }
.timeline-card-img {
  position: relative;
  width: 100%;
  height: 170px;
  flex: 0 0 170px;
  filter: none;
  transition: none;
}
.timeline-card:hover .timeline-card-img { transform: none; }
.timeline-card-body {
  padding: 18px;
  gap: 8px;
  background: transparent;
}
.timeline-card-top { display: none; }
.timeline-card h4 { margin: 0; font-size: 18px; }
.timeline-card p { margin: 0; color: #C2CEC4; font-size: 14px; line-height: 1.55; }
.timeline-card-foot { justify-content: flex-start; margin-top: 4px; }
.timeline-more {
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--gold-soft) !important;
  font-size: 13px;
  font-weight: 600;
}
.timeline-more span { color: inherit; }
.timeline-card:hover,
.timeline-card:hover .timeline-more,
.timeline-more:hover {
  transform: translateY(-2px);
  filter: none;
  box-shadow: 0 12px 24px rgba(0,0,0,.2);
}
.timeline-card:hover .timeline-more { color: var(--gold-soft) !important; }
.timeline-card:hover .timeline-more span,
.timeline-more:hover span { transform: translateX(2px); }

/* Even plan styling; remove cursor-following spotlights and social-proof emphasis. */
.pricing-section { background: linear-gradient(180deg, #071811 0%, #0A241C 55%, #071811 100%); }
.pricing-ambient-orb { display: none; }
.pricing-card {
  background: #0B261E;
  border-color: rgba(216,188,126,.2);
  border-radius: 16px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.pricing-card::before { content: none; }
.pricing-card.popular {
  background: #0B261E;
  border: 1px solid rgba(216,188,126,.2);
  box-shadow: none;
  transform: none;
}
.pricing-card:hover,
.pricing-card.popular:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.24); }
.pricing-grid:hover .pricing-card:not(:hover) { opacity: 1; filter: none; }

/* Reviews stay readable and functional without rating or flag decoration. */
.testi-card {
  background: #0B261E;
  border-color: rgba(216,188,126,.2);
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
  transform: none;
}
.testi-card::before,
.testi-card::after { content: none; }
.testi-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,.24); }
.testi-flag-badge,
.testi-verified-pill { display: none !important; }

/* Stable end-page copy remains visible without the retired typewriter effect. */
.end-page-section .end-page-content .eyebrow,
.end-page-section .end-page-content h2,
.end-page-section .end-page-content p,
.end-page-section .end-page-content .btn {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

@media (max-width: 900px) {
  .timeline-vertical { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .timeline-vertical { grid-template-columns: 1fr; gap: 14px; }
  .timeline-card-img { height: 155px; flex-basis: 155px; }
}


/* Keep the pinned book above the next section until the book scroll sequence ends. */
body.book3d-pinned .book3d { z-index: 80; isolation: isolate; }

/* Center a lone fifth program card on the two-column tablet layout. */
@media (min-width: 651px) and (max-width: 900px) {
  .timeline-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 18px) / 2);
    justify-self: center;
  }
}

/* ================= MOBILE PRICING: CENTERED GROWTH WITH PEEKING PLANS ================= */
.pricing-section .pricing-card.popular {
  border: 1px solid rgba(244, 213, 141, .92);
  background: linear-gradient(150deg, rgba(216, 188, 126, .20) 0%, rgba(14, 48, 36, .96) 48%, rgba(7, 25, 19, .98) 100%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .42),
    0 0 28px rgba(216, 188, 126, .22),
    inset 0 1px 0 rgba(255, 255, 255, .13);
}
.pricing-section .pricing-card.popular .pricing-plan { color: #FFF1C9; }
.pricing-section .pricing-card.popular .pricing-desc { color: #E0D9C5; }
.pricing-section .pricing-card.popular .pricing-amt { color: #FFF6DC; }
.pricing-peek-label { display: none; }

@media (min-width: 769px) {
  .pricing-section .pricing-card.popular,
  .pricing-section .pricing-card.popular:hover { transform: translateY(-5px); }
}

@media (max-width: 768px) {
  .pricing-section .pricing-grid {
    --mobile-plan-width: min(370px, 80vw);
    padding: 48px max(16px, calc(50vw - min(185px, 40vw))) 26px;
    gap: 12px;
    scroll-padding-inline: max(16px, calc(50vw - min(185px, 40vw)));
  }
  .pricing-section .pricing-card {
    flex: 0 0 var(--mobile-plan-width);
    width: var(--mobile-plan-width);
  }
  .pricing-section .pricing-card.is-left-peek .pricing-peek-label,
  .pricing-section .pricing-card.is-right-peek .pricing-peek-label {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    width: 18px;
    min-height: 96px;
    align-items: center;
    justify-content: center;
    padding: 8px 3px;
    border: 1px solid rgba(216, 188, 126, .48);
    border-radius: 8px;
    background: rgba(5, 23, 17, .9);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
    color: #F3D58D;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: .08em;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: translateY(-50%);
    pointer-events: none;
  }
  .pricing-section .pricing-card.is-left-peek .pricing-peek-label { right: 5px; }
  .pricing-section .pricing-card.is-right-peek .pricing-peek-label { left: 5px; }
  .pricing-section .pricing-card.popular,
  .pricing-section .pricing-card.popular:hover { transform: none !important; }
}

/* ================= LEARNER FEEDBACK: RELIABLE DRAG + SWIPE MOTION ================= */
.testi-slider-container {
  cursor: grab;
  scroll-behavior: auto;
}
.testi-slider-container.dragging {
  cursor: grabbing;
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
}
.testi-slider-container.dragging .testi-card,
.testi-slider-container.is-swiping .testi-card {
  transition: none !important;
}
.testi-card {
  --review-tilt: 0deg;
  --review-lift: 0px;
  --review-scale: 1;
  --review-opacity: 1;
  transform: translate3d(0, var(--review-lift), 0) rotate(var(--review-tilt)) scale(var(--review-scale));
  opacity: var(--review-opacity);
  background:
    radial-gradient(240px 190px at 100% 0%, rgba(216,188,126,.13), transparent 72%),
    linear-gradient(145deg, #102F25 0%, #0B261E 62%, #091F19 100%);
  border-color: rgba(216,188,126,.3);
  transition: transform .28s cubic-bezier(.2,.8,.25,1), opacity .24s ease, box-shadow .3s ease, border-color .3s ease;
  will-change: transform, opacity;
}
.testi-card:hover {
  transform: translate3d(0, calc(var(--review-lift) - 2px), 0) rotate(var(--review-tilt)) scale(var(--review-scale));
  border-color: rgba(216,188,126,.5);
  box-shadow: 0 18px 34px rgba(0,0,0,.3), 0 0 22px rgba(216,188,126,.1);
}
.testi-card:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 4px;
}
.testi-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,207,151,.78), transparent);
  opacity: .78;
}
.testi-card::after {
  content: "“";
  position: absolute;
  z-index: 0;
  top: 4px;
  right: 18px;
  color: rgba(216,188,126,.09);
  font: 700 76px/1 Georgia, serif;
  pointer-events: none;
}

@keyframes review-swipe-next {
  0% { translate: 24px 0; filter: brightness(.92); }
  72% { translate: -3px 0; filter: brightness(1.045); }
  100% { translate: 0 0; filter: brightness(1); }
}
@keyframes review-swipe-prev {
  0% { translate: -24px 0; filter: brightness(.92); }
  72% { translate: 3px 0; filter: brightness(1.045); }
  100% { translate: 0 0; filter: brightness(1); }
}
.testi-slider-container.swipe-next .testi-card {
  animation: review-swipe-next .46s cubic-bezier(.2,.82,.22,1) both;
}
.testi-slider-container.swipe-prev .testi-card {
  animation: review-swipe-prev .46s cubic-bezier(.2,.82,.22,1) both;
}
.testi-slider-container.swipe-next .testi-card:nth-child(2),
.testi-slider-container.swipe-prev .testi-card:nth-child(2) { animation-delay: .025s; }
.testi-slider-container.swipe-next .testi-card:nth-child(3),
.testi-slider-container.swipe-prev .testi-card:nth-child(3) { animation-delay: .05s; }
.testi-slider-container.swipe-next .testi-card:nth-child(4),
.testi-slider-container.swipe-prev .testi-card:nth-child(4) { animation-delay: .075s; }
.testi-slider-container.swipe-next .testi-card:nth-child(5),
.testi-slider-container.swipe-prev .testi-card:nth-child(5) { animation-delay: .1s; }
.testi-slider-container.swipe-next .testi-card:nth-child(6),
.testi-slider-container.swipe-prev .testi-card:nth-child(6) { animation-delay: .125s; }

@media (max-width: 900px) {
  .testi-header-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-items: center;
    gap: 18px;
    text-align: center;
  }
  .testi-header-bar .testi-heading {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    text-align: center;
  }
  .testi-header-bar .testi-nav-group {
    grid-column: 1;
    grid-row: 2;
    margin: 0 auto;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testi-card { transition: none !important; }
  .testi-slider-container.swipe-next .testi-card,
  .testi-slider-container.swipe-prev .testi-card { animation: none !important; }
}
