/* ============================================================
   STYLE.CSS — منصة أمين خليل للعلوم الشرعية
   Premium Light Islamic Education Platform
   ============================================================ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* ===== SECONDARY COLOR — Indigo Blue ===== */
  --indigo-50:  #EEF2FF;
  --indigo-100: #E0E7FF;
  --indigo-200: #C7D2FE;
  --indigo-300: #A5B4FC;
  --indigo-400: #4361EE;
  --indigo-500: #3451D1;
  --indigo-600: #2541B2;
  --indigo-700: #1A318E;

  --secondary:   var(--quartz-400);
  --secondary-d: var(--quartz-500);
  --shadow-indigo: 0 8px 32px rgba(194,154,92,.25);
  /* Brand Colors */
  --green-50:  #E8F8F2;
  --green-100: #C5EEE0;
  --green-200: #8FDDC4;
  --green-300: #51C9A5;
  --green-400: #27AE7A;
  --green-500: #1E8A60;
  --green-600: #166A49;
  --green-700: #0F4C34;

  --gold-50:  #FEF9EC;
  --gold-100: #FDF0CA;
  --gold-200: #FBDF8E;
  --gold-300: #F7C948;
  --gold-400: #E8A020;
  --gold-500: #C07F12;
  --gold-600: #9A5E0A;

  --purple-400: #9B59B6;
  --red-400:    #E74C3C;
  --blue-400:   #1A9FE0;

  /* ===== TURQUOISE — Interaction / Focus Accent ===== */
  --turquoise-50:  #EFFCFA;
  --turquoise-100: #D4F5F0;
  --turquoise-200: #A9EBE1;
  --turquoise-300: #5FD9C9;
  --turquoise-400: #14B8A6;
  --turquoise-500: #0F9488;
  --turquoise-600: #0C7B70;
  --turquoise: var(--turquoise-400);
  --shadow-turquoise: 0 8px 28px rgba(20,184,166,.28);
  --focus-ring: var(--turquoise-400);

  /* Neutrals */
  --white:     #FFFFFF;
  --off-white: #FAFAF8;
  --bg-page:   #F7F8FA;
  --bg-card:   #FFFFFF;
  --border:    #E8ECEF;
  --border-md: #D4DAE0;

  /* ===== Warm/Cool section backgrounds — تنويع الأقسام ===== */
  --bg-soft:      #FCFCFA;   /* بديل الأبيض الصريح */
  --bg-sky:       #DFF8FF;   /* خلفية أقسام مائلة للزُرقة الفاتحة */
  --bg-mint-card: #EEF8F6;   /* خلفية بعض الكروت */
  --green-900:    #0F5B45;   /* أخضر غامق للعناوين المهمة */

  --text-900: #0F1923;
  --text-700: #2D3A47;
  --text-500: #5A6A7A;
  --text-400: #7E8F9F;
  --text-300: #A8B8C8;

  /* Semantic */
  --primary:   var(--green-400);
  --primary-d: var(--green-500);
  --accent:    var(--gold-400);

  /* Typography */
  --font-main: 'Cairo', 'Segoe UI', Arial, sans-serif;
  --font-serif:'Amiri', 'Times New Roman', serif;

  /* Spacing */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  40px;
  --sp-2xl: 64px;
  --sp-3xl: 96px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,0,0,.06);
  --shadow-sm: 0 4px 12px rgba(0,0,0,.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.12);
  --shadow-xl: 0 32px 80px rgba(0,0,0,.15);
  --shadow-green: 0 8px 32px rgba(39,174,122,.25);
  --shadow-gold:  0 8px 24px rgba(232,160,32,.25);

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms ease;
  --t-spring: 500ms cubic-bezier(.34,1.56,.64,1);

  /* Z-layers */
  --z-base:    0;
  --z-above:   10;
  --z-float:   100;
  --z-nav:     1000;
  --z-overlay: 2000;
  --z-top:     9999;

  /* ===== QUARTZ BEIGE — Luxury Secondary Brand Color ===== */
  --quartz-50:  #FBF6EE;
  --quartz-100: #F3E7D3;
  --quartz-200: #E6D0AC;
  --quartz-300: #D6B87E;
  --quartz-400: #C29A5C;
  --quartz-500: #A87E45;
  --quartz-600: #8A6535;
  --quartz-700: #6B4E29;
  --secondary-2: var(--quartz-400);
  --secondary-2-d: var(--quartz-500);
  --shadow-quartz: 0 8px 28px rgba(194,154,92,.28);

  /* Surfaces (تتبدّل تلقائيًا مع الوضع الليلي) */
  --surface:    #FFFFFF;
  --surface-2:  #FCFCFA;
  --glass-bg:      rgba(255,255,255,.78);
  --glass-bg-2:    rgba(255,255,255,.92);
  --glass-border:  rgba(255,255,255,.6);

  /* Nav — 64px موبايل / 72px تابلت / 80px ديسكتوب (يُعدَّل بالـ media queries) */
  --nav-h: 64px;
}

@media (min-width: 641px) { :root { --nav-h: 72px; } }
@media (min-width: 1025px) { :root { --nav-h: 80px; } }

/* ── 1b. DARK MODE — Dark Navy / Charcoal ─────────────────── */
:root[data-theme="dark"] {
  --surface:      #1A2129;
  --surface-2:    #202932;
  --bg-page:      #12171D;
  --bg-soft:      #161D24;
  --bg-sky:       #17232A;
  --bg-mint-card: #17211F;

  --border:    #2B343D;
  --border-md: #384049;

  --text-900: #F5F7F9;
  --text-700: #D7DEE4;
  --text-500: #9DA9B4;
  --text-400: #78838D;
  --text-300: #565F68;

  --green-50:      rgba(39,174,122,.14);
  --green-100:     rgba(39,174,122,.22);
  --gold-50:       rgba(232,160,32,.14);
  --gold-100:      rgba(232,160,32,.22);
  --indigo-50:     rgba(194,154,92,.16);
  --indigo-100:    rgba(194,154,92,.26);
  --turquoise-50:  rgba(20,184,166,.16);
  --turquoise-100: rgba(20,184,166,.24);
  --quartz-50:     rgba(194,154,92,.16);
  --quartz-100:    rgba(194,154,92,.26);

  --green-400: #34C88D;
  --primary:   var(--green-400);
  --primary-d: #2AA876;

  --glass-bg:     rgba(20,26,32,.72);
  --glass-bg-2:   rgba(20,26,32,.9);
  --glass-border: rgba(255,255,255,.08);

  --shadow-xs: 0 1px 3px rgba(0,0,0,.3);
  --shadow-sm: 0 4px 14px rgba(0,0,0,.35);
  --shadow-md: 0 8px 26px rgba(0,0,0,.4);
  --shadow-lg: 0 16px 50px rgba(0,0,0,.45);
  --shadow-xl: 0 32px 80px rgba(0,0,0,.5);

  color-scheme: dark;
}

:root[data-theme="dark"] body { background-color: var(--bg-page); }

/* ── 2. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-weight: 500;
  background-color: var(--bg-page);
  color: var(--text-700);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color var(--t-slow), color var(--t-slow);
  direction: rtl;
}

a { color: inherit; text-decoration: none; transition: color var(--t-base); }
a:hover { color: var(--turquoise-500); }
a:active { color: var(--turquoise-600); }

ul { list-style: none; }

img {
  max-width: 100%;
  display: block;
  border-radius: inherit;
}

button { cursor: pointer; font-family: var(--font-main); border: none; background: none; }

input, textarea, select {
  font-family: var(--font-main);
  font-size: 1rem;
  direction: rtl;
}

strong { font-weight: 700; }

/* ── 3. SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--border); }
::-webkit-scrollbar-thumb { background: var(--green-300); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--green-400); }

/* ── 4. SELECTION ─────────────────────────────────────────── */
::selection { background: var(--green-100); color: var(--green-600); }

/* ── 5. FOCUS ─────────────────────────────────────────────── */
:focus-visible {
  outline: 2.5px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--r-sm);
  transition: outline-offset var(--t-fast);
}

/* ── 5b. SKELETON LOADING ─────────────────────────────────── */
.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--border) 0%, #F3F5F7 50%, var(--border) 100%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}
@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
img.img-loading { background: var(--border); }
img.img-loaded  { animation: fadeIn .4s ease both; }

/* ── 5c. RIPPLE EFFECT ────────────────────────────────────── */
.btn, .auth-submit-btn, .social-btn, .grade-tab, .nav-link, .tst-btn {
  position: relative;
  overflow: hidden;
}
.ripple-el {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255,255,255,.5);
  pointer-events: none;
  animation: rippleAnim .6s ease-out;
}
@keyframes rippleAnim {
  to { transform: scale(2.6); opacity: 0; }
}

/* ── 5d. UI STATES — Empty / Loading / Error / Success ────── */
.ui-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-sm);
  padding: var(--sp-2xl) var(--sp-lg);
  border-radius: var(--r-lg);
  font-size: .9rem;
}
.ui-state-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-full); margin-bottom: var(--sp-sm); }
.ui-state-empty   { background: var(--bg-soft); color: var(--text-400); }
.ui-state-empty   .ui-state-icon { background: var(--border); color: var(--text-400); }
.ui-state-loading { background: var(--bg-soft); color: var(--text-400); }
.ui-state-loading .ui-state-icon { background: var(--turquoise-50); color: var(--turquoise-500); animation: spin 1s linear infinite; }
.ui-state-error   { background: #FDEDEC; color: var(--red-400); }
.ui-state-error   .ui-state-icon { background: #FBDAD7; color: var(--red-400); }
.ui-state-success { background: var(--green-50); color: var(--green-600); }
.ui-state-success .ui-state-icon { background: var(--green-100); color: var(--green-600); }

/* ── 6. PARTICLES BG ──────────────────────────────────────── */
#particles-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#particles-bg::before,
#particles-bg::after {
  content: '';
  position: absolute;
  border-radius: var(--r-full);
  opacity: .06;
  animation: floatBlob 18s ease-in-out infinite alternate;
}

#particles-bg::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--green-400), transparent 70%);
  top: -200px; left: -100px;
  animation-delay: 0s;
}

#particles-bg::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--gold-400), transparent 70%);
  bottom: -150px; right: -100px;
  animation-delay: -9s;
}

@keyframes floatBlob {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-20px, 20px) scale(.95); }
}

/* ── 7. LAYOUT CONTAINER ──────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-xl);
  position: relative;
  z-index: 1;
}

.section {
  padding: var(--sp-3xl) 0;
  position: relative;
}

/* ── 8. TYPOGRAPHY UTILITIES ──────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  background: var(--green-50);
  color: var(--green-500);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 6px 16px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--green-100);
  text-transform: uppercase;
  margin-bottom: var(--sp-md);
}

.section-label.tq {
  background: var(--turquoise-50);
  color: var(--turquoise-600);
  border-color: var(--turquoise-200);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text-900);
  line-height: 1.25;
  margin-bottom: var(--sp-md);
}

.text-accent { color: var(--primary); }

.section-desc {
  font-size: 1.05rem;
  color: var(--text-500);
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── 9. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  min-height: 48px;
  padding: 14px 28px;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: .95rem;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all var(--t-spring);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  letter-spacing: .02em;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}

.btn:hover::after { background: rgba(255,255,255,.12); }

.btn:active { transform: scale(.97); }

/* Primary */
.btn-primary {
  background: linear-gradient(135deg, var(--green-400), var(--green-500));
  color: var(--white);
  box-shadow: var(--shadow-green);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(39,174,122,.35);
  color: var(--white);
}

/* Secondary */
.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-d));
  color: var(--white);
  box-shadow: var(--shadow-indigo);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(194,154,92,.38);
  color: var(--white);
}

/* Ghost secondary */
.btn-ghost-secondary {
  background: var(--quartz-50);
  color: var(--secondary);
  border-color: var(--quartz-200);
  border: 2px solid var(--quartz-200);
}
.btn-ghost-secondary:hover {
  background: var(--quartz-100);
  transform: translateY(-2px);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--green-500);
  border-color: var(--green-300);
}
.btn-outline:hover {
  background: var(--green-50);
  border-color: var(--green-400);
  transform: translateY(-2px);
}

/* White */
.btn-white {
  background: var(--surface);
  color: var(--green-500);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--green-600);
}

/* Outline white */
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}

/* Small */
.btn-sm { padding: 10px 20px; font-size: .875rem; min-height: 44px; }

/* Full width */
.btn-full { width: 100%; justify-content: center; }

/* ── 10. NAVBAR ───────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  height: var(--nav-h);
  z-index: var(--z-nav);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-base), height var(--t-base);
}

.navbar.scrolled {
  box-shadow: 0 8px 32px rgba(15,25,35,.06);
}

.navbar-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  transition: background var(--t-base);
}

.navbar.scrolled .navbar-bg {
  background: var(--glass-bg-2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-xl);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--green-50);
  transition: transform var(--t-spring);
}

.nav-logo:hover .logo-icon { transform: rotate(-5deg) scale(1.05); }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: 1.32rem;
  font-weight: 900;
  color: var(--text-900);
  font-family: var(--font-main);
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 0.74rem;
  color: var(--green-500);
  font-weight: 700;
  margin-top: -3px;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--r-full);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-500);
  transition: all var(--t-base);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  border-radius: var(--r-full);
  background: var(--primary);
  transition: transform var(--t-base);
}

.nav-link:hover { color: var(--primary); background: var(--green-50); }
.nav-link.active { color: var(--primary); background: var(--green-50); }
.nav-link.active::after { transform: translateX(-50%) scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-shrink: 0;
}

/* Theme Toggle — أزرق فاخر ذو وضوح وفخامة */
.theme-toggle {
  width: 54px;
  height: 30px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, #bae6fd, #e0f2fe);
  border: 1.5px solid #38bdf8;
  position: relative;
  cursor: pointer;
  padding: 3px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: background var(--t-base), border-color var(--t-base);
}
.theme-toggle:hover { border-color: #0284c7; }

.theme-toggle-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #025a90);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(0);
  transition: transform var(--t-spring), background var(--t-base);
  box-shadow: 0 2px 8px rgba(2, 90, 144, 0.25);
  pointer-events: none;
}

.theme-toggle .icon-moon { display: none; }

[data-theme="dark"] .theme-toggle {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-color: #475569;
}
[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(-24px);
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
}
[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  transition: background var(--t-base);
}
.hamburger:hover { background: var(--green-50); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-700);
  border-radius: var(--r-full);
  transition: all var(--t-base);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── 11. HERO ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #F8FDFB 0%, #FFFFFF 60%, #F5FAF6 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(39, 174, 122, 0.02) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .hero {
  background: linear-gradient(145deg, #0f1519 0%, #12181d 60%, #151c22 100%);
}
[data-theme="dark"] .hero::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.01) 1.5px, transparent 1.5px);
}

/* Decorative shapes */
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.shape {
  position: absolute;
  border-radius: var(--r-full);
  opacity: .25;
  filter: blur(10px);
}

.shape-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(39, 174, 122, 0.1) 0%, transparent 70%);
  top: -180px; right: -180px;
  animation: shapeFloat 14s ease-in-out infinite alternate;
}
.shape-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(194, 154, 92, 0.06) 0%, transparent 70%);
  bottom: 30px; left: -120px;
  animation: shapeFloat 18s ease-in-out infinite alternate-reverse;
}
.shape-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(39, 174, 122, 0.05) 0%, transparent 70%);
  top: 35%; left: 40%;
  animation: shapeFloat 10s ease-in-out infinite alternate;
  opacity: .15;
}
.shape-4 {
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(194, 154, 92, 0.04) 0%, transparent 70%);
  bottom: 20%; right: 20%;
  animation: shapeFloat 12s ease-in-out infinite alternate;
  opacity: .2;
}

@keyframes shapeFloat {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(30px,-20px) scale(1.06); }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-2xl) var(--sp-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ── Simple hero variant (title + visual only) ── */
.hero-container--simple {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  gap: var(--sp-lg);
  padding-top: var(--sp-3xl);
}

.hero-content--simple {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title--simple {
  font-size: clamp(2.4rem, 5vw, 4rem);
  animation: fadeSlideUp .5s ease both;
  animation-delay: .1s;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  background: linear-gradient(135deg, var(--green-50), var(--quartz-50));
  border: 1.5px solid var(--quartz-200);
  border-radius: var(--r-full);
  padding: 8px 18px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--green-600);
  margin-bottom: var(--sp-lg);
  animation: fadeSlideUp .4s ease both;
  animation-delay: .05s;
}

.badge-dot {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: var(--r-full);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(39,174,122,.4); }
  50%       { box-shadow: 0 0 0 8px rgba(39,174,122,0); }
}

/* Hero title */
.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-900);
  margin-bottom: var(--sp-lg);
}

.title-line {
  display: block;
  animation: fadeSlideUp .45s ease both;
}
.title-line:nth-child(1) { animation-delay: .1s; }
.title-line:nth-child(2) { animation-delay: .16s; }
.title-line:nth-child(3) { animation-delay: .22s; }

.title-highlight {
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.title-highlight::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 4px;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--green-400), var(--gold-400));
  opacity: .3;
}

.hero-desc {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-500);
  margin-bottom: var(--sp-xl);
  max-width: 480px;
  animation: fadeSlideUp .45s ease both;
  animation-delay: .28s;
  line-height: 1.9;
}

.hero-desc strong { color: var(--green-500); }

/* Hero CTA */
.hero-cta {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
  margin-bottom: var(--sp-2xl);
  animation: fadeSlideUp .5s ease both;
  animation-delay: .35s;
}

.hero-cta .btn {
  min-height: 56px;
  border-radius: 18px;
  padding: 0 30px;
  box-shadow: 0 10px 30px rgba(39,174,122,.2);
}
.hero-cta .btn-primary:hover { box-shadow: 0 14px 38px rgba(39,174,122,.3); }
.hero-cta .btn-outline:hover { box-shadow: 0 10px 26px rgba(39,174,122,.12); }

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  animation: fadeSlideUp .45s ease both;
  animation-delay: .42s;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--text-900);
  line-height: 1;
  font-feature-settings: 'tnum';
}

.stat-label {
  font-size: .8rem;
  color: var(--text-400);
  font-weight: 500;
}

.stat-divider {
  width: 1.5px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--border-md), transparent);
}

/* ── HERO VISUAL ── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeSlideLeft .5s ease both;
  animation-delay: .2s;
}

.hero-card-float {
  position: relative;
  width: 380px;
  height: 440px;
}

/* Teacher Card container */
.teacher-circle-wrapper {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.teacher-circle {
  width: 280px;
  height: 365px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--white), #f3faf7);
  box-shadow: 0 20px 48px rgba(15, 25, 35, 0.08);
  border: 4px solid var(--white);
  position: relative;
  z-index: 2;
  transition: transform var(--t-spring), box-shadow var(--t-spring);
}

[data-theme="dark"] .teacher-circle {
  background: linear-gradient(145deg, var(--surface-2), var(--bg-page));
  border-color: var(--surface-2);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.teacher-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2.5px;
  background: linear-gradient(135deg, var(--primary), var(--secondary-2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}

.teacher-circle-wrapper:hover .teacher-circle {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 25px 60px rgba(39, 174, 122, 0.15);
}

.teacher-circle img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--t-slow);
}

.teacher-circle-wrapper:hover .teacher-circle img {
  transform: scale(1.04);
}

.teacher-circle-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 36px;
  border: 1.5px dashed rgba(39, 174, 122, 0.15);
  pointer-events: none;
  z-index: 1;
  transition: transform var(--t-spring), border-color var(--t-spring);
}

.ring-outer {
  width: 340px;
  height: 425px;
  animation: ringPulse 8s ease-in-out infinite alternate;
}

.ring-inner {
  width: 310px;
  height: 395px;
  border-color: rgba(194, 154, 92, 0.2);
  animation: ringPulse 8s ease-in-out infinite alternate-reverse;
  animation-delay: -4s;
}

.teacher-circle-wrapper:hover .ring-outer {
  transform: translate(-50%, -50%) scale(1.04);
  border-color: rgba(39, 174, 122, 0.35);
}

.teacher-circle-wrapper:hover .ring-inner {
  transform: translate(-50%, -50%) scale(1.03);
  border-color: rgba(194, 154, 92, 0.4);
}

@keyframes ringPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .4; }
  50%       { transform: translate(-50%, -50%) scale(1.025); opacity: .7; }
}

/* Subject Pills (Glassmorphism & Islamic branding) */
.subj-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 16px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1.5px solid;
}

.subj-pill:hover {
  transform: scale(1.06) translateY(-3px) !important;
  box-shadow: 0 15px 35px rgba(39, 174, 122, 0.12);
}

.pill-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pill-icon svg {
  width: 15px;
  height: 15px;
}

/* Subj Pills animations */
.pill-fiqh {
  top: 30px; left: -45px;
  background: rgba(232, 248, 242, 0.85);
  border-color: rgba(39, 174, 122, 0.25);
  color: #1e6a49;
  animation: pillFloat1 5s ease-in-out infinite alternate;
}
[data-theme="dark"] .pill-fiqh {
  background: rgba(22, 106, 73, 0.25);
  border-color: rgba(52, 200, 141, 0.25);
  color: #34c88d;
}
.pill-fiqh .pill-icon {
  background: #27ae7a;
  color: #fff;
}

.pill-hadith {
  top: 50px; right: -45px;
  background: rgba(238, 242, 255, 0.85);
  border-color: rgba(67, 97, 238, 0.25);
  color: #2541b2;
  animation: pillFloat2 6s ease-in-out infinite alternate;
}
[data-theme="dark"] .pill-hadith {
  background: rgba(37, 65, 178, 0.25);
  border-color: rgba(67, 97, 238, 0.25);
  color: #a5b4fc;
}
.pill-hadith .pill-icon {
  background: #4361ee;
  color: #fff;
}

.pill-tawheed {
  bottom: 65px; right: -35px;
  background: rgba(254, 249, 236, 0.85);
  border-color: rgba(232, 160, 32, 0.25);
  color: #9a5e0a;
  animation: pillFloat1 5.5s ease-in-out infinite alternate-reverse;
}
[data-theme="dark"] .pill-tawheed {
  background: rgba(154, 94, 10, 0.25);
  border-color: rgba(232, 160, 32, 0.25);
  color: #fbdf8e;
}
.pill-tawheed .pill-icon {
  background: #e8a020;
  color: #fff;
}

.pill-tafseer {
  bottom: 45px; left: -45px;
  background: rgba(250, 240, 255, 0.85);
  border-color: rgba(155, 89, 182, 0.25);
  color: #7d3c98;
  animation: pillFloat2 6.5s ease-in-out infinite alternate-reverse;
}
[data-theme="dark"] .pill-tafseer {
  background: rgba(125, 60, 152, 0.25);
  border-color: rgba(155, 89, 182, 0.25);
  color: #d7bde2;
}
.pill-tafseer .pill-icon {
  background: #9b59b6;
  color: #fff;
}

@keyframes pillFloat1 {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes pillFloat2 {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-6px) rotate(-1deg); }
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--sp-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
  color: var(--text-300);
  font-size: .78rem;
  animation: fadeIn 1s ease both;
  animation-delay: 1.5s;
}

.scroll-line {
  width: 1.5px;
  height: 40px;
  background: linear-gradient(to bottom, var(--green-300), transparent);
  border-radius: var(--r-full);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(.5); opacity: .4; }
}

/* ── 12. ABOUT SECTION ───────────────────────────────────── */
.about-section { background: var(--bg-soft); }

.about-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: var(--sp-2xl);
  align-items: center;
}

.about-image-side { position: relative; }

.about-img-wrapper {
  position: relative;
  display: inline-block;
}

.about-img {
  width: 380px;
  height: 480px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  transition: transform var(--t-slow);
}

.about-img-wrapper:hover .about-img { transform: scale(1.02); }

.about-exp-badge {
  position: absolute;
  bottom: 24px;
  left: -24px;
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  color: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-md) var(--sp-lg);
  box-shadow: var(--shadow-green);
  text-align: center;
  display: flex;
  flex-direction: column;
  animation: fadeSlideUp 1s ease both;
}

.exp-num {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.exp-text {
  font-size: .78rem;
  opacity: .85;
  font-weight: 500;
}

.about-dots {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(var(--green-200) 2px, transparent 2px);
  background-size: 12px 12px;
  border-radius: var(--r-lg);
  opacity: .6;
}

/* About content */
.about-lead {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-700);
  margin-bottom: var(--sp-md);
  line-height: 1.7;
}

.about-body {
  font-size: .97rem;
  color: var(--text-500);
  margin-bottom: var(--sp-xl);
  line-height: 1.9;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.highlight-item {
  display: flex;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  background: var(--bg-page);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  transition: all var(--t-base);
  cursor: default;
}

.highlight-item:hover {
  border-color: var(--green-200);
  background: var(--green-50);
  transform: translateX(-4px);
  box-shadow: var(--shadow-sm);
}

.hl-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
}

.highlight-item strong {
  display: block;
  font-size: .92rem;
  color: var(--text-800, var(--text-700));
  margin-bottom: 2px;
}

.highlight-item p {
  font-size: .82rem;
  color: var(--text-400);
  margin: 0;
}

/* ── 13. SUBJECTS SECTION ────────────────────────────────── */
.subjects-section {
  background: linear-gradient(180deg, var(--quartz-50) 0%, var(--white) 100%);
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
}

/* Subject Card — Premium Course Card */
.subject-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--border);
  transition: all var(--t-spring);
  cursor: default;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.subject-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

/* Banner */
.card-banner {
  position: relative;
  height: 128px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--clr), var(--clr2));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-banner-pattern {
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(255,255,255,.5) 10px 11px),
    repeating-linear-gradient(-45deg, transparent 0 10px, rgba(255,255,255,.5) 10px 11px);
}

.card-banner-icon {
  position: relative;
  z-index: 1;
  width: 68px; height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(255,255,255,.16);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: var(--r-lg);
  backdrop-filter: blur(6px);
  transition: transform var(--t-spring);
}

.subject-card:hover .card-banner-icon { transform: scale(1.1) rotate(-4deg); }

.card-popular-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: linear-gradient(135deg, var(--turquoise-400), var(--turquoise-500));
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 5px 12px;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-turquoise);
}

/* Body */
.card-body {
  padding: var(--sp-lg) var(--sp-lg) var(--sp-xl);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-badge {
  align-self: flex-start;
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-400);
  letter-spacing: .05em;
  padding: 4px 10px;
  background: var(--bg-page);
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  margin-bottom: var(--sp-sm);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-900);
  margin-bottom: var(--sp-sm);
}

.card-desc {
  font-size: .85rem;
  color: var(--text-400);
  line-height: 1.7;
  margin-bottom: var(--sp-lg);
  flex: 1;
}

.card-stats-row {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding-top: var(--sp-md);
  border-top: 1.5px solid var(--border);
  margin-bottom: var(--sp-lg);
  flex-wrap: wrap;
}

.card-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-500);
}
.card-stat svg { color: var(--secondary-2); flex-shrink: 0; }

.card-cta {
  width: 100%;
  justify-content: center;
  gap: 8px;
  transition: all var(--t-spring);
}
.card-cta svg { transition: transform var(--t-base); }
.subject-card:hover .card-cta {
  box-shadow: 0 12px 30px rgba(39,174,122,.3);
}
.card-cta:hover svg { transform: translateX(-4px); }

/* ── 14. GRADES SECTION ──────────────────────────────────── */
.grades-section { background: linear-gradient(180deg, var(--quartz-50) 0%, var(--white) 100%); }

/* Tabs */
.grades-tabs {
  display: flex;
  gap: var(--sp-sm);
  background: var(--bg-page);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 6px;
  margin-bottom: var(--sp-xl);
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}

.grade-tab {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 12px 24px;
  border-radius: var(--r-lg);
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-400);
  background: transparent;
  transition: all var(--t-base);
  cursor: pointer;
  border: 1.5px solid transparent;
}

.grade-tab:hover { color: var(--primary); background: var(--surface); }

.grade-tab.active {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--green-100);
  box-shadow: var(--shadow-sm);
}

.tab-num {
  width: 28px; height: 28px;
  border-radius: var(--r-full);
  background: var(--green-50);
  color: var(--green-500);
  font-size: .85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-base);
}

.grade-tab.active .tab-num {
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  color: var(--white);
}

/* Panels */
.grade-panel {
  display: none;
  background: var(--bg-page);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  animation: panelIn .3s ease both;
}

.grade-panel.active { display: block; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-intro {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1.5px solid var(--border);
}

.panel-icon {
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--green-500);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.panel-intro h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-900);
  margin-bottom: 4px;
}

.panel-intro p {
  font-size: .9rem;
  color: var(--text-400);
}

.panel-subjects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}

.ps-item {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  background: var(--surface);
  padding: var(--sp-md) var(--sp-lg);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  transition: all var(--t-base);
}

.ps-item:hover {
  border-color: var(--green-200);
  transform: translateX(-4px);
  box-shadow: var(--shadow-sm);
}

.ps-color {
  width: 4px;
  height: 40px;
  border-radius: var(--r-full);
  flex-shrink: 0;
}

.ps-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.ps-info strong {
  font-size: .9rem;
  color: var(--text-900);
}

.ps-info span {
  font-size: .78rem;
  color: var(--text-400);
}

.ps-lessons {
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--green-50);
  padding: 4px 10px;
  border-radius: var(--r-full);
  white-space: nowrap;
}

/* ── 15. FEATURES SECTION ────────────────────────────────── */
.features-section {
  background: linear-gradient(180deg, var(--bg-page) 0%, #EBF8F3 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}

.feature-item {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  border: 1.5px solid var(--border);
  transition: all var(--t-spring);
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  border-radius: 0 var(--r-xl) 0 var(--r-full);
  opacity: 0;
  transition: opacity var(--t-slow);
}

.feature-item:hover::before { opacity: .06; }
.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feat-icon-wrap {
  width: 60px; height: 60px;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--fc) 10%, white);
  color: var(--fc);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-lg);
  transition: transform var(--t-spring);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--fc) 20%, transparent);
}

.feature-item:hover .feat-icon-wrap { transform: scale(1.12) rotate(-5deg); }

.feature-item h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-900);
  margin-bottom: var(--sp-sm);
}

.feature-item p {
  font-size: .87rem;
  color: var(--text-400);
  line-height: 1.7;
}

/* ── 16. TESTIMONIALS ─────────────────────────────────────── */
.testimonials-section { background: var(--green-50); }

.testimonials-track-wrap {
  overflow: hidden;
  position: relative;
}

.testimonials-track {
  display: flex;
  gap: var(--sp-lg);
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.testimonial-card {
  background: var(--bg-page);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  min-width: calc(33.333% - var(--sp-lg) * 2 / 3);
  flex-shrink: 0;
  transition: all var(--t-base);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--sp-lg);
  left: var(--sp-xl);
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--green-100);
  line-height: 1;
  pointer-events: none;
}

.tst-stars {
  color: var(--gold-400);
  display: flex;
  gap: 3px;
  margin-bottom: var(--sp-md);
}

.tst-text {
  font-size: .92rem;
  color: var(--text-500);
  line-height: 1.8;
  margin-bottom: var(--sp-lg);
  font-style: italic;
}

.tst-author {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.tst-avatar {
  width: 42px; height: 42px;
  border-radius: var(--r-full);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tst-author strong {
  display: block;
  font-size: .9rem;
  color: var(--text-700);
}

.tst-author span {
  font-size: .78rem;
  color: var(--text-400);
}

/* Testimonial controls */
.tst-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
}

.tst-btn {
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text-500);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  transition: all var(--t-base);
  flex-shrink: 0;
}

.tst-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: scale(1.08);
}

.tst-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tst-dot {
  width: 8px; height: 8px;
  border-radius: var(--r-full);
  background: var(--border-md);
  cursor: pointer;
  transition: all var(--t-base);
}

.tst-dot.active {
  background: var(--primary);
  width: 24px;
}

/* ── 17. ENROLL / CTA ─────────────────────────────────────── */
.enroll-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-500) 0%, var(--green-600) 50%, var(--green-700) 100%);
  padding: var(--sp-3xl) 0;
}

.enroll-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.enroll-shape {
  position: absolute;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}

.enroll-shape.s1 {
  width: 500px; height: 500px;
  top: -200px; left: -200px;
  animation: enrollFloat 12s ease-in-out infinite alternate;
}

.enroll-shape.s2 {
  width: 300px; height: 300px;
  bottom: -100px; right: 10%;
  animation: enrollFloat 15s ease-in-out infinite alternate-reverse;
}

@keyframes enrollFloat {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(30px,-20px) scale(1.1); }
}

.enroll-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}

.enroll-icon {
  width: 72px; height: 72px;
  margin: 0 auto var(--sp-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: var(--r-lg);
  color: var(--white);
  backdrop-filter: blur(6px);
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.enroll-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: var(--sp-md);
  text-shadow: 0 2px 16px rgba(0,0,0,.2);
}

.enroll-desc {
  font-size: 1.05rem;
  opacity: .85;
  max-width: 560px;
  margin: 0 auto var(--sp-xl);
  line-height: 1.8;
}

.enroll-actions {
  display: flex;
  gap: var(--sp-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 18. CONTACT SECTION ────────────────────────────────── */
.contact-section { background: linear-gradient(180deg, var(--quartz-50) 0%, var(--white) 100%); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-2xl);
  align-items: start;
}

/* Form */
.contact-form {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-page);
  color: var(--text-700);
  font-size: .95rem;
  transition: all var(--t-base);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-300);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(39,174,122,.1);
}

.form-group.error input,
.form-group.error select {
  border-color: var(--red-400);
  box-shadow: 0 0 0 4px rgba(231,76,60,.1);
}

.form-error {
  font-size: .78rem;
  color: var(--red-400);
  min-height: 18px;
  display: block;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  font-family: var(--font-main);
}

.form-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-md);
  background: var(--green-50);
  border: 1.5px solid var(--green-200);
  border-radius: var(--r-md);
  color: var(--green-600);
  font-size: .9rem;
  font-weight: 600;
  display: none;
}

/* Contact info */
.contact-info-side {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.contact-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  transition: all var(--t-base);
}

.contact-card:hover {
  border-color: color-mix(in srgb, var(--ci, #27AE7A) 30%, transparent);
  transform: translateX(-4px);
  box-shadow: var(--shadow-sm);
}

.cc-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--ci) 10%, white);
  color: var(--ci);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cc-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cc-content strong {
  font-size: .85rem;
  color: var(--text-700);
}

.cc-content a {
  font-size: .9rem;
  color: var(--primary);
  font-weight: 600;
}

.cc-content a:hover { text-decoration: underline; }

.contact-hours {
  background: linear-gradient(135deg, var(--green-50), var(--quartz-50));
  border: 1.5px solid var(--quartz-200);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
}

.contact-hours h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-700);
  margin-bottom: var(--sp-sm);
}

.contact-hours p {
  font-size: .85rem;
  color: var(--text-500);
  margin-bottom: 4px;
}

/* ── 19. FOOTER ───────────────────────────────────────────── */
.footer { background: linear-gradient(160deg, var(--text-900) 0%, #0A2A22 65%, #0F1923 100%); color: var(--white); }

.footer-top { border-bottom: 1px solid rgba(255,255,255,.08); }

.footer-top-inner {
  display: grid;
  grid-template-columns: 1fr 160px 200px;
  gap: var(--sp-2xl);
  padding-top: var(--sp-2xl);
  padding-bottom: var(--sp-2xl);
}

.footer-brand { max-width: 340px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
}

.footer-logo span {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
}

.footer-brand p {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  line-height: 1.8;
}

.footer-links-col h4 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-sm);
  border-bottom: 1.5px solid rgba(255,255,255,.1);
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.footer-links-col a {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  transition: color var(--t-base);
}

.footer-links-col a:hover { color: var(--green-300); }

.footer-bottom {
  padding: var(--sp-lg) 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

.footer-quran {
  font-family: var(--font-serif);
  font-size: 1rem !important;
  color: var(--gold-300) !important;
  opacity: 1 !important;
}

/* ── 20. SCROLL TO TOP ────────────────────────────────────── */
.scroll-top-btn {
  position: fixed;
  bottom: var(--sp-xl);
  left: var(--sp-xl);
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  color: var(--white);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-green);
  cursor: pointer;
  z-index: var(--z-float);
  opacity: 0;
  transform: translateY(20px) scale(.8);
  transition: all var(--t-spring);
  pointer-events: none;
  border: none;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.scroll-top-btn:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 16px 48px rgba(39,174,122,.4);
}

/* ── 21. ANIMATIONS ───────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Intersection Observer Animations */
.anim-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .5s ease, transform .5s ease;
}
.anim-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.anim-left {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity .5s ease, transform .5s ease;
}
.anim-left.in-view {
  opacity: 1;
  transform: translateX(0);
}

.anim-scale {
  opacity: 0;
  transform: scale(.92);
  transition: opacity .4s ease, transform .45s cubic-bezier(.34,1.56,.64,1);
}
.anim-scale.in-view {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }
.delay-6 { transition-delay: .6s; }

/* ── 22. MOBILE MENU ─────────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-container {
    padding: 0 var(--sp-md);
    gap: var(--sp-sm);
    justify-content: space-between;
  }

  .logo-icon { width: 38px; height: 38px; }

  .logo-name { font-size: .95rem; }

  .logo-sub { font-size: .68rem; }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    flex-direction: column;
    background: var(--surface);
    padding: var(--sp-xl);
    gap: var(--sp-sm);
    justify-content: flex-start;
    align-items: stretch;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--t-slow), opacity var(--t-slow), visibility var(--t-slow);
    border-top: 1px solid var(--border);
    z-index: var(--z-overlay);
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    padding: var(--sp-md);
    border-radius: var(--r-md);
    font-size: 1.05rem;
  }
}

@media (max-width: 380px) {
  .nav-container { gap: 6px; }
  .logo-sub { display: none; }
  .theme-toggle { width: 46px; height: 26px; }
  .theme-toggle-thumb { width: 20px; height: 20px; }
  [data-theme="dark"] .theme-toggle-thumb { transform: translateX(-20px); }
}

/* ── 23. RESPONSIVE ───────────────────────────────────────── */

/* Large / Wide screens */
@media (min-width: 1440px) {
  .container, .nav-container, .hero-container { max-width: 1320px; }
}
@media (min-width: 1920px) {
  .container, .nav-container, .hero-container { max-width: 1440px; }
}

/* Large tablets */
@media (max-width: 1100px) {
  .subjects-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablets */
@media (max-width: 900px) {
  :root { --sp-3xl: 60px; }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content { align-items: center; }

  .hero-desc { margin-left: auto; margin-right: auto; }

  .hero-cta { justify-content: center; }

  .hero-stats { justify-content: center; }

  .hero-visual {
    display: flex;
    justify-content: center;
    margin-top: var(--sp-lg);
  }
  .hero-card-float {
    width: 320px;
    height: 400px;
    margin: 0 auto;
  }
  .teacher-circle {
    width: 240px;
    height: 320px;
    border-radius: 24px;
  }
  .ring-outer {
    width: 290px;
    height: 370px;
    border-radius: 32px;
  }
  .ring-inner {
    width: 265px;
    height: 345px;
    border-radius: 28px;
  }
  .pill-fiqh { top: 25px; left: -25px; }
  .pill-hadith { top: 40px; right: -25px; }
  .pill-tawheed { bottom: 55px; right: -20px; }
  .pill-tafseer { bottom: 35px; left: -25px; }

  .about-grid { grid-template-columns: 1fr; }

  .about-image-side { text-align: center; }

  .about-img { width: 280px; height: 350px; }

  .about-exp-badge { left: 50%; transform: translateX(-50%); bottom: -20px; }

  .grades-tabs { flex-direction: column; width: 100%; }

  .panel-subjects { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --sp-2xl: 40px;
    --sp-3xl: 48px;
  }

  /* ── Hero ── */
  .hero { min-height: auto; padding-bottom: var(--sp-2xl); }

  .hero-container {
    padding-top: var(--sp-xl);
    padding-bottom: var(--sp-lg);
    gap: var(--sp-lg);
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content { align-items: center; }
  .hero-desc  { margin-left: auto; margin-right: auto; }
  .hero-cta   { justify-content: center; }
  .hero-stats { justify-content: center; gap: var(--sp-lg); }
  .hero-title { font-size: 2rem; }
  .hero-scroll-hint { display: none; }

  /* Hero visual — kept visible but fully centred & smaller */
  .hero-visual {
    display: flex;
    justify-content: center;
    margin-top: 0;
  }

  .hero-card-float {
    width: 300px;
    height: 380px;
    margin: 0 auto;
  }

  .teacher-circle {
    width: 210px;
    height: 280px;
    border-radius: 22px;
  }

  .ring-outer { width: 255px; height: 330px; border-radius: 28px; }
  .ring-inner { width: 232px; height: 307px; border-radius: 25px; }

  /* Subject Pills on Mobile */
  .subj-pill {
    padding: 6px 10px;
    font-size: 0.78rem;
    border-radius: 12px;
    gap: 5px;
  }

  .pill-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
  }

  .pill-icon svg {
    width: 12px;
    height: 12px;
  }

  .pill-fiqh { top: 25px; left: -10px; }
  .pill-hadith { top: 40px; right: -10px; }
  .pill-tawheed { bottom: 50px; right: -10px; }
  .pill-tafseer { bottom: 35px; left: -10px; }

  /* ── Layout ── */
  .container { padding: 0 var(--sp-md); }

  .section-title { font-size: 1.6rem; }

  .stat-num { font-size: 1.5rem; }

  /* ── Grids ── */
  .subjects-grid  { grid-template-columns: 1fr; }
  .features-grid  { grid-template-columns: 1fr; }

  /* ── Testimonials ── */
  .testimonial-card { min-width: 100%; }

  /* ── Footer ── */
  .footer-top-inner { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }

  /* ── Enroll ── */
  .enroll-actions { flex-direction: column; align-items: center; }

  /* ── Scroll-top ── */
  .scroll-top-btn { left: var(--sp-md); bottom: var(--sp-md); }
}

/* ── Extra small screens (≤ 380px) ─────────────────────────── */
@media (max-width: 380px) {
  .hero-card-float   { width: 260px; height: 330px; }
  .teacher-circle    { width: 180px; height: 240px; border-radius: 20px; }
  .ring-outer        { width: 220px; height: 280px; }
  .ring-inner        { width: 200px; height: 260px; }
  .pill-fiqh         { top: 20px; left: -10px; }
  .pill-hadith       { top: 35px; right: -10px; }
  .pill-tawheed      { bottom: 45px; right: -10px; }
  .pill-tafseer      { bottom: 30px; left: -10px; }
  .hero-title        { font-size: 1.75rem; }
}

/* ═══════════════════════════════════════════════════════════
   24. UTILITIES
   ═══════════════════════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ═══════════════════════════════════════════════════════════
   25. HERO — KICKER + PREMIUM IMAGE MOTION
   ═══════════════════════════════════════════════════════════ */
/* Tight spacing between the kicker label and the teacher photo below it */
.hero-container--simple { gap: 10px; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px 0;
  padding: 8px 20px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-900);
  background: linear-gradient(135deg, rgba(39, 174, 122, 0.08), rgba(194, 154, 92, 0.08));
  border: 1.5px solid rgba(194, 154, 92, 0.35);
  border-radius: var(--r-full);
  letter-spacing: .01em;
  animation: fadeSlideUp .5s ease both;
  box-shadow: 0 4px 15px rgba(39, 174, 122, 0.04);
}
[data-theme="dark"] .hero-kicker {
  color: var(--white);
  background: linear-gradient(135deg, rgba(52, 200, 141, 0.12), rgba(194, 154, 92, 0.12));
  border-color: rgba(194, 154, 92, 0.45);
}

.hero-kicker-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease infinite;
  flex-shrink: 0;
}

/* Wrap the visual so the glow + motion have a clean containing box */
.hero-visual {
  will-change: transform;
}

.teacher-circle-wrapper {
  animation: heroFloat 7s ease-in-out infinite;
}

.teacher-circle {
  animation: heroGlow 7s ease-in-out infinite;
}

@keyframes heroFloat {
  0%   { transform: translate(-50%, -50%) translateY(0)    translateX(0)   rotate(0deg); }
  25%  { transform: translate(-50%, -50%) translateY(-10px) translateX(4px) rotate(.6deg); }
  50%  { transform: translate(-50%, -50%) translateY(-4px) translateX(-4px) rotate(-.4deg); }
  75%  { transform: translate(-50%, -50%) translateY(-12px) translateX(2px) rotate(.3deg); }
  100% { transform: translate(-50%, -50%) translateY(0)    translateX(0)   rotate(0deg); }
}

@keyframes heroGlow {
  0%, 100% {
    box-shadow: var(--shadow-xl), 0 20px 40px rgba(194,154,92,.15), 0 0 0 rgba(39,174,122,0);
    transform: scale(1);
  }
  50% {
    box-shadow: var(--shadow-xl), 0 28px 55px rgba(194,154,92,.22), 0 0 46px rgba(39,174,122,.28);
    transform: scale(1.015);
  }
}

.teacher-circle-wrapper:hover { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .teacher-circle-wrapper, .teacher-circle { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   26. LOADING SCREEN — Premium splash
   ═══════════════════════════════════════════════════════════ */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: var(--z-top);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #F0FDF8 0%, #FFFFFF 55%, #F5FAF6 100%);
  transition: opacity .6s ease, visibility .6s ease;
}

.loading-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(39,174,122,.12), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(194,154,92,.10), transparent 50%);
  animation: loadDrift 6s ease-in-out infinite alternate;
}

@keyframes loadDrift {
  0%   { opacity: .7; transform: scale(1); }
  100% { opacity: 1;  transform: scale(1.08); }
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-lg);
}

.loading-logo {
  width: 80px; height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.85);
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(39,174,122,.18), 0 2px 8px rgba(0,0,0,.06);
  animation: loadPulse 1.8s ease-in-out infinite;
}

@keyframes loadPulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 8px 32px rgba(39,174,122,.18); }
  50%      { transform: scale(1.07); box-shadow: 0 8px 42px rgba(39,174,122,.35); }
}

/* Brand text block */
.loading-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.loading-name {
  font-family: var(--font-main);
  font-size: 1.55rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -.02em;
  line-height: 1;
}

.loading-sub {
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-500, #27AE7A);
  letter-spacing: .04em;
}

.loading-bar-track {
  width: 160px;
  height: 3px;
  border-radius: var(--r-full);
  background: rgba(39,174,122,.15);
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  width: 40%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--green-400), var(--gold-400));
  animation: loadBar 1.1s ease-in-out infinite;
}

@keyframes loadBar {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

@media (prefers-reduced-motion: reduce) {
  .loading-screen::before, .loading-logo, .loading-bar-fill { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   27. ABOUT SECTION — refreshed accents
   ═══════════════════════════════════════════════════════════ */
.about-section {
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-50) 0%, transparent 70%);
  pointer-events: none;
}

.about-section::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--quartz-50) 0%, transparent 70%);
  pointer-events: none;
}

.about-lead strong,
.about-body strong { color: var(--green-600); font-weight: 700; }
[data-theme="dark"] .about-lead strong,
[data-theme="dark"] .about-body strong { color: var(--green-400); }

.highlight-item {
  position: relative;
  overflow: hidden;
  border-inline-start: 3px solid transparent;
}

.highlight-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--hc, var(--green-400)), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}

.highlight-item:hover {
  border-inline-start-color: var(--hc, var(--green-400));
  transform: translateX(-6px);
  box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--hc, var(--green-400)) 45%, transparent);
}

.highlight-item:hover::before { opacity: .06; }

.hl-icon {
  color: var(--hc, var(--primary));
  background: color-mix(in srgb, var(--hc, var(--green-400)) 12%, var(--surface));
  transition: transform var(--t-spring), background var(--t-base);
}

.highlight-item:hover .hl-icon {
  transform: scale(1.1) rotate(-4deg);
}

.about-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
}

.about-mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--mc, var(--green-400)) 12%, var(--surface));
  color: var(--mc, var(--green-600));
  border: 1px solid color-mix(in srgb, var(--mc, var(--green-400)) 30%, transparent);
}
[data-theme="dark"] .about-mini-badge { color: var(--mc, var(--green-400)); }

/* ═══════════════════════════════════════════════════════════
   28. RESPONSIVE / IMAGE ROBUSTNESS FIXES
   ═══════════════════════════════════════════════════════════ */
img { max-width: 100%; height: auto; display: block; }

.teacher-circle picture,
.about-img-wrapper picture,
.auth-side-illustration-wrap picture { display: block; width: 100%; height: 100%; }

.teacher-circle img,
.about-img { width: 100%; height: 100%; }

html, body { overflow-x: hidden; }


@media (max-width: 640px) {
  .hero-kicker { font-size: .78rem; padding: 6px 14px; }
  .loading-logo { width: 64px; height: 64px; }
  .loading-name { font-size: 1.25rem; }
  .loading-sub  { font-size: 0.74rem; }
}

/* Dark mode loading screen */
[data-theme="dark"] .loading-screen {
  background: linear-gradient(155deg, #0A2419 0%, #111827 55%, #0D1F12 100%);
}

[data-theme="dark"] .loading-screen::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(39,174,122,.25), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(194,154,92,.22), transparent 50%);
}

[data-theme="dark"] .loading-logo {
  background: rgba(255,255,255,.08);
  box-shadow: 0 8px 32px rgba(39,174,122,.30);
}

[data-theme="dark"] .loading-name { color: #F1F5F9; }
[data-theme="dark"] .loading-sub  { color: var(--green-400, #34C88D); }

[data-theme="dark"] .loading-bar-track { background: rgba(255,255,255,.10); }
