﻿/* ============================================================
   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;

  /* ===== VIOLET â€” Ù„ÙˆÙ† Accent ØªÙØ§Ø¹Ù„ÙŠ Ø±Ø¦ÙŠØ³ÙŠ (Ø£Ø²Ø±Ø§Ø±ØŒ CTAØŒ ØªÙØ§Ø¹Ù„Ø§Øª) ===== */
  --violet-300: #8B7CFF;
  --violet-400: #7C6CFF;
  --violet-500: #6D5DF6;
  --violet-600: #5847D6;
  --violet-glow: rgba(124,108,255,.45);
  --shadow-violet: 0 10px 34px rgba(109,93,246,.32);

  /* ===== 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;
  position: relative;
}

/* Mesh Gradient Ø®ÙÙŠÙ Ø¬Ø¯Ù‹Ø§ Ø®Ù„Ù ÙƒØ§Ù…Ù„ Ø§Ù„ØµÙØ­Ø© â€” Mint / Lavender / Cyan / Ø£Ø¨ÙŠØ¶ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background:
    radial-gradient(32% 30% at 12% 8%,  rgba(139,124,255,.07) 0%, transparent 70%),
    radial-gradient(30% 28% at 88% 14%, rgba(94,234,212,.07)  0%, transparent 70%),
    radial-gradient(34% 32% at 90% 88%, rgba(20,184,166,.06)  0%, transparent 70%),
    radial-gradient(36% 34% at 8% 92%,  rgba(39,174,122,.05)  0%, transparent 70%);
}
[data-theme="dark"] body::before { opacity: .18; }

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 {
  height: calc(var(--nav-h) - 12px);
  box-shadow: 0 8px 32px rgba(15,25,35,.06);
  border-bottom-color: var(--border-md);
}

.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 16px;
  border-radius: var(--r-full);
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-500);
  transition: color var(--t-fast), background var(--t-fast), box-shadow var(--t-base), transform var(--t-spring);
  position: relative;
  letter-spacing: .005em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2.5px;
  border-radius: var(--r-full);
  background: var(--primary);
  transition: transform var(--t-base);
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(39,174,122,.07);
  transform: translateY(-1px);
}
.nav-link.active {
  color: var(--primary);
  background: rgba(39,174,122,.09);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(39,174,122,.1), 0 0 0 1.5px rgba(39,174,122,.16);
  font-weight: 800;
}
.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 */
/* â”€â”€ 10. HAMBURGER â€” Purple gradient, premium glass â”€â”€ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #8B5CF6, #6D4AFF);
  border: 1.5px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 20px rgba(109,74,255,.32), 0 1px 0 rgba(255,255,255,.18) inset;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-spring), box-shadow var(--t-base), filter var(--t-base);
}
.hamburger::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, transparent 60%);
  pointer-events: none;
}
.hamburger:hover {
  transform: scale(1.07) rotate(3deg);
  box-shadow: 0 10px 28px rgba(109,74,255,.45), 0 1px 0 rgba(255,255,255,.22) inset;
  filter: brightness(1.08);
}
.hamburger:active { transform: scale(.97); }

.hamburger span {
  display: block;
  width: 22px; height: 2.5px;
  background: #fff;
  border-radius: 9999px;
  transition: transform var(--t-base), opacity var(--t-fast), width var(--t-base);
  transform-origin: center;
}
.hamburger span:nth-child(1) { width: 22px; }
.hamburger span:nth-child(2) { width: 16px; }
.hamburger span:nth-child(3) { width: 20px; }
.hamburger:hover span { width: 22px; }

/* X animation when open */
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); width: 22px; }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); width: 22px; }

/* â”€â”€ 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, #F7FDFB 0%, #FFFFFF 55%, #F4FAF7 100%);
}

/* Soft Islamic geometric pattern â€” opacity <5% */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .042;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%230F766E' stroke-width='0.7'%3E%3Cpolygon points='30,3 39,15 52.5,15 43.5,25.5 47.25,39 30,32.25 12.75,39 16.5,25.5 7.5,15 21,15'/%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Soft radial gradients â€” stay under 8% opacity */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 15% 20%, rgba(39,174,122,.07) 0%, transparent 65%),
    radial-gradient(ellipse 45% 45% at 88% 80%, rgba(20,184,166,.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 85% 15%, rgba(139,124,255,.05) 0%, transparent 60%);
  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 {
  opacity: .02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%2327AE7A' stroke-width='0.7'%3E%3Cpolygon points='30,3 39,15 52.5,15 43.5,25.5 47.25,39 30,32.25 12.75,39 16.5,25.5 7.5,15 21,15'/%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3C/g%3E%3C/svg%3E");
}
[data-theme="dark"] .hero::after {
  background:
    radial-gradient(ellipse 55% 50% at 15% 20%, rgba(39,174,122,.1) 0%, transparent 65%),
    radial-gradient(ellipse 45% 45% at 88% 80%, rgba(20,184,166,.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 85% 15%, rgba(139,124,255,.07) 0%, transparent 60%);
}

/* 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;
}

/* â”€â”€ Hero CTA â€” "Ø³Ø¬Ù„ Ù…Ø¬Ø§Ù†Ù‹Ø§ Ø§Ù„Ø¢Ù†" (Glassmorphism / Turquoise) â”€â”€ */
.hero-cta-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-top: -8px;
  padding-bottom: var(--sp-2xl, 48px);
}

.hero-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 0 38px;
  height: 60px;
  width: auto;
  border-radius: 9999px;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.08rem;
  color: #fff;
  background: linear-gradient(135deg, #8B5CF6 0%, #6D4AFF 50%, #5B3DF5 100%);
  border: 1.5px solid rgba(255,255,255,.3);
  box-shadow:
    0 12px 36px rgba(109,74,255,.38),
    0 2px 0 rgba(255,255,255,.22) inset,
    0 -8px 18px rgba(0,0,0,.1) inset;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  animation: ctaBtnFloat 4s ease-in-out infinite;
  transition: transform var(--t-spring, 400ms cubic-bezier(.34,1.56,.64,1)),
              box-shadow var(--t-base, 250ms ease),
              filter var(--t-base, 250ms ease);
}
@keyframes ctaBtnFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-5px); }
}

/* Glossy highlight stripe */
.hero-cta-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(to bottom, rgba(255,255,255,.22) 0%, transparent 100%);
  border-radius: 9999px 9999px 0 0;
  pointer-events: none;
  z-index: 1;
}

/* Animated shine sweep */
.hero-cta-btn::after {
  content: '';
  position: absolute;
  top: -50%; left: -75%;
  width: 50%; height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.28) 50%, transparent 60%);
  transform: skewX(-20deg);
  animation: shineSweep 3.5s ease-in-out infinite 1s;
  pointer-events: none;
  z-index: 2;
}
@keyframes shineSweep {
  0%,10%  { left: -75%; opacity: 0; }
  11%     { opacity: 1; }
  50%     { left: 130%; opacity: 1; }
  51%,100%{ left: 130%; opacity: 0; }
}

/* Outer glow halo element */
.hero-cta-glow {
  position: absolute;
  inset: -18px; z-index: -1;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(109,74,255,.36) 0%, transparent 68%);
  filter: blur(16px);
  opacity: .6;
  transition: opacity var(--t-base), filter var(--t-base);
  pointer-events: none;
}

.hero-cta-btn:hover {
  transform: translateY(-6px) scale(1.028);
  filter: brightness(1.09);
  box-shadow:
    0 22px 52px rgba(109,74,255,.52),
    0 2px 0 rgba(255,255,255,.28) inset,
    0 -8px 18px rgba(0,0,0,.08) inset;
  animation-play-state: paused;
}
.hero-cta-btn:hover .hero-cta-glow { opacity: 1; filter: blur(22px); }
.hero-cta-btn:active {
  transform: translateY(-2px) scale(1.01);
  animation-play-state: paused;
}

.hero-cta-icon {
  display: flex;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.32);
  flex-shrink: 0;
  position: relative; z-index: 4;
  transition: transform var(--t-spring);
}
.hero-cta-btn:hover .hero-cta-icon { transform: translateX(-4px) rotate(-10deg); }
.hero-cta-icon svg { animation: ctaIconPulse 2.6s ease-in-out infinite; }
@keyframes ctaIconPulse {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-2px); }
}
#hero-cta-text { position: relative; z-index: 4; }

[data-theme="dark"] .hero-cta-btn {
  border-color: rgba(255,255,255,.18);
  box-shadow:
    0 12px 36px rgba(109,74,255,.52),
    0 2px 0 rgba(255,255,255,.12) inset;
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta-btn { animation: none !important; }
  .hero-cta-btn::after { animation: none !important; }
  .hero-cta-icon svg { animation: none; }
}

@media (max-width: 640px) {
  .hero-cta-btn { padding: 0 28px; height: 56px; font-size: .98rem; animation: none; }
}

/* â”€â”€ Simple hero variant â€” SPLIT LAYOUT (text right | card left in RTL) â”€â”€ */
.hero-container--simple {
  grid-template-columns: 1fr 520px;
  gap: clamp(24px, 4vw, 80px);
  align-items: center;
  padding-top: var(--sp-2xl);
  padding-bottom: var(--sp-2xl);
  text-align: right;
  direction: rtl;
}

.hero-content--simple {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
}

.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: 500px;
  height: 660px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Prevent banner overflow above header */
  overflow: visible;
  flex-shrink: 0;
}

/* 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;
  /* Clamp so floating animation never escapes container */
  will-change: transform;
}

.teacher-circle {
  width: 456px;
  height: 594px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--white), #f0faf6);
  /* Premium layered shadow for depth */
  box-shadow:
    0 2px 4px rgba(15,25,35,.04),
    0 8px 24px rgba(15,25,35,.08),
    0 28px 56px rgba(15,25,35,.1),
    0 48px 80px rgba(15,25,35,.06);
  /* Glass-style border */
  border: 4px solid rgba(255,255,255,.85);
  position: relative;
  z-index: 2;
  transition: transform var(--t-spring), box-shadow var(--t-spring);
  animation: teacherFloat 6s ease-in-out infinite;
}
@keyframes teacherFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}

/* ØªÙˆÙ‡Ù‘Ø¬/Blur Ù†Ø§Ø¹Ù… Ø®Ù„Ù Ø§Ù„ØµÙˆØ±Ø© ÙŠØ¹Ø·ÙŠ Ø¹Ù…Ù‚Ù‹Ø§ Ø¨Ø¯ÙˆÙ† Ù…Ø¨Ø§Ù„ØºØ© */
.teacher-circle-wrapper::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 500px; height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(39,174,122,.14) 0%, rgba(20,184,166,.1) 45%, transparent 72%);
  filter: blur(48px);
  z-index: 0;
  pointer-events: none;
  animation: glowBreathe 4s ease-in-out infinite;
}
@keyframes glowBreathe {
  0%,100% { opacity: .7; transform: translate(-50%,-50%) scale(1);    }
  50%     { opacity: 1;  transform: translate(-50%,-50%) scale(1.12); }
}

[data-theme="dark"] .teacher-circle {
  background: linear-gradient(145deg, var(--surface-2), var(--bg-page));
  border-color: rgba(255,255,255,.08);
  box-shadow:
    0 8px 24px rgba(0,0,0,.25),
    0 28px 56px rgba(0,0,0,.35);
}

/* Gradient border overlay via pseudo-element */
.teacher-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(
    135deg,
    rgba(39,174,122,.6) 0%,
    rgba(255,255,255,.8) 35%,
    rgba(20,184,166,.4) 65%,
    rgba(39,174,122,.5) 100%
  );
  -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;
  opacity: .8;
  transition: opacity var(--t-base);
}

.teacher-circle-wrapper:hover .teacher-circle {
  transform: scale(1.025) translateY(-6px);
  animation-play-state: paused;
  box-shadow:
    0 4px 8px rgba(15,25,35,.05),
    0 16px 40px rgba(39,174,122,.14),
    0 40px 72px rgba(15,25,35,.12),
    0 0 0 1px rgba(39,174,122,.12);
}
.teacher-circle-wrapper:hover .teacher-circle::before { opacity: 1; }

.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: 540px;
  height: 680px;
  animation: ringPulse 8s ease-in-out infinite alternate;
}

.ring-inner {
  width: 495px;
  height: 630px;
  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 â€” Premium Glassmorphism â•â• */
.subj-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  border-radius: 22px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.86rem;
  /* Premium layered glass */
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  box-shadow:
    0 4px 6px rgba(0,0,0,.04),
    0 10px 32px rgba(0,0,0,.09),
    0 1px 0 rgba(255,255,255,.95) inset;
  z-index: 10;
  cursor: default;
  border: 1.5px solid rgba(255,255,255,.7);
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1),
              box-shadow 0.28s ease,
              background 0.2s ease;
  /* Subtle entrance */
  animation-fill-mode: both;
}

/* Hover lift for all pills */
.subj-pill:hover {
  transform: scale(1.1) translateY(-5px) !important;
  box-shadow:
    0 20px 48px rgba(0,0,0,.14),
    0 6px 14px rgba(0,0,0,.07),
    0 1px 0 rgba(255,255,255,.95) inset !important;
  background: rgba(255,255,255,.96) !important;
}

/* Pill icon container */
.pill-icon {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
}

/* Icon shine sweep on hover */
.pill-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.45s ease;
}
.subj-pill:hover .pill-icon::after { transform: translateX(100%); }
.subj-pill:hover .pill-icon { transform: scale(1.12) rotate(-5deg); }

.pill-icon svg {
  width: 16px;
  height: 16px;
  position: relative;
  z-index: 1;
}

/* â”€â”€ ÙÙ‚Ù‡ â€” Ø£Ø®Ø¶Ø± â”€â”€ */
.pill-fiqh {
  top: 8px; left: -20px;
  border-color: rgba(39,174,122,.35);
  color: #155f3e;
  animation: pillFloatFiqh 6s ease-in-out infinite;
  box-shadow:
    0 4px 6px rgba(0,0,0,.04),
    0 10px 32px rgba(0,0,0,.09),
    0 0 0 1px rgba(39,174,122,.12),
    0 1px 0 rgba(255,255,255,.95) inset;
}
.pill-fiqh:hover {
  box-shadow:
    0 20px 48px rgba(39,174,122,.22),
    0 6px 14px rgba(0,0,0,.07),
    0 0 0 1.5px rgba(39,174,122,.3),
    0 1px 0 rgba(255,255,255,.95) inset !important;
}
[data-theme="dark"] .pill-fiqh {
  background: rgba(16,80,54,.55);
  border-color: rgba(52,200,141,.4);
  color: #34c88d;
  box-shadow: 0 8px 28px rgba(39,174,122,.2), 0 1px 0 rgba(255,255,255,.06) inset;
}
.pill-fiqh .pill-icon {
  background: linear-gradient(135deg, #27ae7a 0%, #1a6b49 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(39,174,122,.45);
}

/* â”€â”€ Ø­Ø¯ÙŠØ« â€” Ø£Ø²Ø±Ù‚/Ø¨Ù†ÙØ³Ø¬ÙŠ â”€â”€ */
.pill-hadith {
  top: 95px; right: -40px;
  border-color: rgba(67,97,238,.32);
  color: #1e38a8;
  animation: pillFloatHadith 7.5s ease-in-out infinite;
  box-shadow:
    0 4px 6px rgba(0,0,0,.04),
    0 10px 32px rgba(0,0,0,.09),
    0 0 0 1px rgba(67,97,238,.12),
    0 1px 0 rgba(255,255,255,.95) inset;
}
.pill-hadith:hover {
  box-shadow:
    0 20px 48px rgba(67,97,238,.22),
    0 6px 14px rgba(0,0,0,.07),
    0 0 0 1.5px rgba(67,97,238,.3),
    0 1px 0 rgba(255,255,255,.95) inset !important;
}
[data-theme="dark"] .pill-hadith {
  background: rgba(28,46,140,.5);
  border-color: rgba(99,125,255,.4);
  color: #a5b4fc;
  box-shadow: 0 8px 28px rgba(67,97,238,.2), 0 1px 0 rgba(255,255,255,.06) inset;
}
.pill-hadith .pill-icon {
  background: linear-gradient(135deg, #4361ee 0%, #2541b2 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(67,97,238,.45);
}

/* â”€â”€ ØªÙˆØ­ÙŠØ¯ â€” Ø°Ù‡Ø¨ÙŠ/Ø¨Ø±ØªÙ‚Ø§Ù„ÙŠ â”€â”€ */
.pill-tawheed {
  bottom: 115px; right: -25px;
  border-color: rgba(232,160,32,.35);
  color: #7a4808;
  animation: pillFloatTawheed 6.8s ease-in-out infinite;
  box-shadow:
    0 4px 6px rgba(0,0,0,.04),
    0 10px 32px rgba(0,0,0,.09),
    0 0 0 1px rgba(232,160,32,.14),
    0 1px 0 rgba(255,255,255,.95) inset;
}
.pill-tawheed:hover {
  box-shadow:
    0 20px 48px rgba(232,160,32,.22),
    0 6px 14px rgba(0,0,0,.07),
    0 0 0 1.5px rgba(232,160,32,.35),
    0 1px 0 rgba(255,255,255,.95) inset !important;
}
[data-theme="dark"] .pill-tawheed {
  background: rgba(110,65,5,.45);
  border-color: rgba(232,160,32,.4);
  color: #fbdf8e;
  box-shadow: 0 8px 28px rgba(232,160,32,.2), 0 1px 0 rgba(255,255,255,.06) inset;
}
.pill-tawheed .pill-icon {
  background: linear-gradient(135deg, #e8a020 0%, #b47b10 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(232,160,32,.45);
}

/* â”€â”€ ØªÙØ³ÙŠØ± â€” Ø£Ø±Ø¬ÙˆØ§Ù†ÙŠ â”€â”€ */
.pill-tafseer {
  bottom: 95px; left: -55px;
  border-color: rgba(155,89,182,.32);
  color: #622d7a;
  animation: pillFloatTafseer 6.4s ease-in-out infinite;
  box-shadow:
    0 4px 6px rgba(0,0,0,.04),
    0 10px 32px rgba(0,0,0,.09),
    0 0 0 1px rgba(155,89,182,.12),
    0 1px 0 rgba(255,255,255,.95) inset;
}
.pill-tafseer:hover {
  box-shadow:
    0 20px 48px rgba(155,89,182,.22),
    0 6px 14px rgba(0,0,0,.07),
    0 0 0 1.5px rgba(155,89,182,.3),
    0 1px 0 rgba(255,255,255,.95) inset !important;
}
[data-theme="dark"] .pill-tafseer {
  background: rgba(90,40,112,.45);
  border-color: rgba(155,89,182,.4);
  color: #d7bde2;
  box-shadow: 0 8px 28px rgba(155,89,182,.2), 0 1px 0 rgba(255,255,255,.06) inset;
}
.pill-tafseer .pill-icon {
  background: linear-gradient(135deg, #9b59b6 0%, #7d3c98 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(155,89,182,.45);
}

/* â”€â”€ Ø­Ø±ÙƒØ§Øª floating Ù†Ø§Ø¹Ù…Ø© ÙˆÙ…ØªØ¨Ø§ÙŠÙ†Ø© â”€â”€ */
@keyframes pillFloatFiqh {
  0%,  100% { transform: translate(0, 0)    rotate(0deg); }
  33%        { transform: translate(-5px, -9px) rotate(-1.5deg); }
  66%        { transform: translate(-3px, -5px) rotate(.8deg); }
}
@keyframes pillFloatHadith {
  0%,  100% { transform: translate(0, 0)   rotate(0deg); }
  40%        { transform: translate(7px, -8px) rotate(1.5deg); }
  70%        { transform: translate(4px, -4px) rotate(-.8deg); }
}
@keyframes pillFloatTawheed {
  0%,  100% { transform: translate(0, 0)   rotate(0deg); }
  35%        { transform: translate(5px, 8px) rotate(1.2deg); }
  65%        { transform: translate(3px, 4px) rotate(-.6deg); }
}
@keyframes pillFloatTafseer {
  0%,  100% { transform: translate(0, 0)    rotate(0deg); }
  38%        { transform: translate(-7px, 7px) rotate(-1.4deg); }
  68%        { transform: translate(-3px, 3px) rotate(.7deg); }
}

.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 {
  position: relative;
  background: linear-gradient(180deg, var(--quartz-50) 0%, var(--white) 100%);
  isolation: isolate;
}

/* Mesh Gradient Ø®ÙÙŠÙ Ø¬Ø¯Ù‹Ø§ â€” Mint / Lavender / Cyan / WhiteØŒ Ù„Ø§ ÙŠØ¤Ø«Ø± Ø¹Ù„Ù‰ Ø§Ù„Ù‚Ø±Ø§Ø¡Ø© */
.subjects-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  background:
    radial-gradient(38% 45% at 8% 12%,  rgba(139,124,255,.10) 0%, transparent 70%),
    radial-gradient(34% 40% at 95% 18%, rgba(20,184,166,.09)  0%, transparent 70%),
    radial-gradient(40% 45% at 85% 92%, rgba(94,234,212,.08)  0%, transparent 70%),
    radial-gradient(45% 50% at 10% 95%, rgba(39,174,122,.06)  0%, transparent 70%);
}
[data-theme="dark"] .subjects-section::before { opacity: .22; }

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
}

/* Subject Card â€” Premium Glass Card */
.subject-card {
  position: relative;
  background: rgba(255,255,255,.66);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-radius: 24px;
  border: 1.5px solid rgba(255,255,255,.6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-spring), box-shadow var(--t-spring), border-color var(--t-spring);
  cursor: default;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/* Ø­Ø¯ Ù…ØªØ¯Ø±Ù‘Ø¬ Ù†Ø§Ø¹Ù… ÙŠØ¸Ù‡Ø± Ø¨ÙˆØ¶ÙˆØ­ Ø¹Ù†Ø¯ Ø§Ù„ØªØ­ÙˆÙŠÙ… */
.subject-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--clr, var(--violet-400)), var(--clr2, var(--violet-500)));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t-base);
}

.subject-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl), 0 0 40px -12px var(--clr, var(--violet-glow));
  border-color: transparent;
}
.subject-card:hover::before { opacity: 1; }

[data-theme="dark"] .subject-card {
  background: rgba(26,33,41,.6);
  border-color: rgba(255,255,255,.08);
}

/* 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: 72px; height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  transition: transform var(--t-spring), box-shadow var(--t-spring), background var(--t-base);
}

.subject-card:hover .card-banner-icon {
  transform: scale(1.14) rotate(-6deg);
  background: rgba(255,255,255,.28);
  box-shadow: 0 0 0 8px rgba(255,255,255,.1), 0 8px 24px rgba(0,0,0,.18);
}

.card-popular-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 6px 13px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

/* 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: .72rem;
  font-weight: 800;
  color: var(--clr, var(--violet-500));
  letter-spacing: .01em;
  padding: 5px 13px;
  background: color-mix(in srgb, var(--clr, var(--violet-400)) 12%, transparent);
  border-radius: var(--r-full);
  border: 1px solid color-mix(in srgb, var(--clr, var(--violet-400)) 28%, transparent);
  margin-bottom: var(--sp-sm);
}

.card-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text-900);
  margin-bottom: var(--sp-sm);
}

.card-desc {
  font-size: .87rem;
  color: var(--text-400);
  line-height: 1.85;
  margin-bottom: var(--sp-lg);
  flex: 1;
}

/* Stats â†’ Chips Ø­Ø¯ÙŠØ«Ø© */
.card-stats-row {
  display: flex;
  align-items: center;
  gap: 8px;
  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: 5px;
  font-size: .74rem;
  font-weight: 700;
  color: var(--text-500);
  padding: 5px 11px;
  border-radius: var(--r-full);
  background: var(--bg-page);
  border: 1px solid var(--border);
  transition: background var(--t-base), border-color var(--t-base), transform var(--t-fast);
}
.card-stat svg { color: var(--secondary-2); flex-shrink: 0; }
.subject-card:hover .card-stat {
  border-color: color-mix(in srgb, var(--clr, var(--violet-400)) 30%, var(--border));
}

/* Progress â€” ÙŠØ¸Ù‡Ø± ÙÙ‚Ø· Ù„Ù„Ù…ÙˆØ§Ø¯ Ø§Ù„Ù…Ø³Ø¬ÙŽÙ‘Ù„ Ø¨Ù‡Ø§ Ø§Ù„Ø·Ø§Ù„Ø¨ */
.card-progress { display: none; align-items: center; gap: 10px; margin-bottom: var(--sp-md); }
.subject-card.is-enrolled .card-progress { display: flex; }
.card-progress-track {
  flex: 1;
  height: 7px;
  border-radius: var(--r-full);
  background: var(--bg-page);
  border: 1px solid var(--border);
  overflow: hidden;
}
.card-progress-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--clr, var(--violet-400)), var(--clr2, var(--violet-500)));
  width: var(--pct, 0%);
  transition: width .8s cubic-bezier(.22,1,.36,1);
}
.card-progress-label {
  font-size: .74rem;
  font-weight: 800;
  color: var(--clr, var(--violet-500));
  flex-shrink: 0;
}

/* CTA â€” "Ø¯Ø®ÙˆÙ„ Ø§Ù„ÙƒÙˆØ±Ø³" (Ø¨Ù†ÙØ³Ø¬ÙŠ â†’ Ø£Ø²Ø±Ù‚) */
.card-cta {
  --cta-a: var(--violet-400);
  --cta-b: var(--indigo-400);
  width: 90%;
  align-self: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, var(--cta-a), var(--cta-b));
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 22px rgba(109,93,246,.22);
  transition: transform var(--t-spring), box-shadow var(--t-spring), filter var(--t-base);
}
.card-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,.5) 0%, transparent 60%);
  opacity: 0;
  transform: scale(.4);
  transition: transform .5s ease, opacity .5s ease;
  pointer-events: none;
}
.card-cta:active::after { opacity: 1; transform: scale(1.5); transition: transform 0s, opacity 0s; }
.card-cta svg { transition: transform var(--t-base); }
.subject-card:hover .card-cta {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 32px rgba(109,93,246,.34);
}
.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 â€” Premium Glassmorphism Drawer â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .navbar.menu-open {
    z-index: calc(var(--z-overlay) + 1);
  }

  .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; }

  /* Slide-from-right glass drawer */
  .nav-links {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    right: auto;
    width: min(340px, 88vw);
    flex-direction: column;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    padding: calc(var(--nav-h) + 20px) 20px 32px;
    gap: 6px;
    justify-content: flex-start;
    align-items: stretch;
    /* Slide from left (RTL: "right" visually = left in DOM) */
    transform: translateX(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--t-slow) cubic-bezier(.4,0,.2,1),
                opacity var(--t-slow),
                visibility var(--t-slow);
    border-left: none;
    border-right: 1px solid rgba(255,255,255,.4);
    box-shadow: 4px 0 40px rgba(0,0,0,.12), 12px 0 60px rgba(0,0,0,.06);
    z-index: calc(var(--z-overlay) + 2);
    border-radius: 0 24px 24px 0;
    overflow-y: auto;
  }
  [data-theme="dark"] .nav-links {
    background: rgba(18,28,22,.9);
    border-right-color: rgba(255,255,255,.1);
    box-shadow: 4px 0 40px rgba(0,0,0,.4);
  }

  .nav-links.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Section label inside drawer */
  .nav-links::before {
    content: 'Ø§Ù„Ù‚Ø§Ø¦Ù…Ø© Ø§Ù„Ø±Ø¦ÙŠØ³ÙŠØ©';
    display: block;
    font-size: .68rem;
    font-weight: 800;
    color: var(--text-300);
    text-transform: uppercase;
    letter-spacing: .09em;
    padding: 0 4px 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
  }

  .nav-link {
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0;
    transform: none !important; /* disable Y-lift inside drawer */
  }
  .nav-link:hover { background: rgba(39,174,122,.08); }
  .nav-link.active { background: rgba(39,174,122,.1); box-shadow: 0 2px 10px rgba(39,174,122,.1); }

  /* Drawer divider */
  .nav-links::after {
    content: '';
    display: block;
    height: 1px;
    background: var(--border);
    margin: 10px 0 16px;
  }

  /* Premium action buttons added via JS */
  .drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
  }

  .drawer-btn {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 22px; border-radius: var(--r-full);
    font-family: var(--font-main); font-size: 1rem; font-weight: 800;
    text-decoration: none; border: none; cursor: pointer;
    transition: transform var(--t-spring), filter var(--t-base), box-shadow var(--t-base);
    position: relative; overflow: hidden;
  }
  .drawer-btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
  .drawer-btn:active { transform: translateY(0); }

  .drawer-btn-login {
    background: linear-gradient(135deg, #14B8A6, #10B981);
    color: #fff;
    box-shadow: 0 6px 18px rgba(20,184,166,.28);
  }
  .drawer-btn-login:hover { box-shadow: 0 10px 26px rgba(20,184,166,.38); }

  .drawer-btn-register {
    background: linear-gradient(135deg, #8B5CF6, #6D4AFF);
    color: #fff;
    box-shadow: 0 8px 22px rgba(109,74,255,.32);
    font-size: 1.06rem;
    padding: 16px 22px;
  }
  .drawer-btn-register:hover { box-shadow: 0 12px 30px rgba(109,74,255,.44); }

  /* Overlay backdrop */
  .nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.32);
    backdrop-filter: blur(3px);
    z-index: var(--z-overlay);
    opacity: 0; pointer-events: none;
    transition: opacity var(--t-base);
  }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
}

@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: 360px;
    height: 460px;
    margin: 0 auto;
  }
  .teacher-circle {
    width: 283px;
    height: 378px;
    border-radius: 26px;
  }
  .ring-outer {
    width: 342px;
    height: 437px;
    border-radius: 34px;
  }
  .ring-inner {
    width: 313px;
    height: 407px;
    border-radius: 30px;
  }
  /* Pills: stay tightly around card on tablet */
  .pill-fiqh    { top: 8px;  left: -10px; }
  .pill-hadith  { top: 78px; right: -24px; }
  .pill-tawheed { bottom: 95px; right: -14px; }
  .pill-tafseer { bottom: 78px; left: -30px; }

  /* keep simple hero as split on tablet */
  .hero-container--simple {
    grid-template-columns: 1fr 400px !important;
    text-align: right !important;
    justify-items: unset !important;
  }
  .hero-content--simple { align-items: flex-start !important; }
  .hero-kicker { align-items: flex-start !important; }

  .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 â€” fully centred */
  .hero-visual {
    display: flex;
    justify-content: center;
    margin-top: 0;
  }

  /* collapse simple hero to stacked on mobile */
  .hero-container--simple {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    justify-items: center !important;
    padding-top: var(--sp-md) !important;
    gap: var(--sp-md) !important;
  }
  .hero-content--simple { align-items: center !important; }
  .hero-kicker { align-items: center !important; }
  .hero-kicker::after { text-align: center !important; }
  .hero-visual { order: -1; }

  .hero-card-float {
    width: 260px;
    height: 355px;
    margin: 0 auto;
  }

  .teacher-circle {
    width: 220px;
    height: 298px;
    border-radius: 22px;
  }

  .ring-outer { width: 265px; height: 350px; border-radius: 28px; }
  .ring-inner { width: 242px; height: 324px; border-radius: 25px; }
  .teacher-circle-wrapper::before { width: 230px; height: 230px; }

  /* Subject Pills on Mobile â€” bring closer to card */
  .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;
  }

  /* Pills: tighter on mobile */
  .pill-fiqh    { top: 7px;   left: -6px; }
  .pill-hadith  { top: 64px;  right: -18px; }
  .pill-tawheed { bottom: 80px; right: -12px; }
  .pill-tafseer { bottom: 64px; left: -22px; }

  /* â”€â”€ 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: 230px; height: 310px; }
  .teacher-circle    { width: 192px; height: 256px; border-radius: 20px; }
  .ring-outer        { width: 232px; height: 298px; }
  .ring-inner        { width: 212px; height: 278px; }
  .teacher-circle-wrapper::before { width: 190px; height: 190px; }
  .pill-fiqh    { top: 6px;   left: -4px; }
  .pill-hadith  { top: 55px;  right: -14px; }
  .pill-tawheed { bottom: 68px; right: -10px; }
  .pill-tafseer { bottom: 56px; left: -16px; }
  .hero-title   { font-size: 1.75rem; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   24. UTILITIES
/* section divider */
.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
/* section divider */
/* â”€â”€ HERO KICKER TEXT â€” split layout (RTL: text on right, card on left) â”€â”€ */
.hero-kicker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 0 0 28px 0;
  letter-spacing: -.01em;
  animation: fadeSlideUp .5s ease both;
}

.hero-kicker-line1 {
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 900;
  color: var(--text-900);
  line-height: 1.15;
}
[data-theme="dark"] .hero-kicker-line1 { color: var(--white); }

.hero-kicker-line2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(120deg, var(--primary) 10%, var(--secondary-2) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sub-description under the title */
.hero-kicker::after {
  content: 'Ø§Ù„Ø£Ø³ØªØ§Ø° Ø£Ù…ÙŠÙ† Ø®Ù„ÙŠÙ„ | Ø§Ù„Ø«Ø§Ù†ÙˆÙŠØ© Ø§Ù„Ø£Ø²Ù‡Ø±ÙŠØ©';
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-400);
  margin-top: 8px;
  font-family: var(--font-main);
}

/* Wrap the visual so the glow + motion have a clean containing box */
.hero-visual {
  will-change: transform;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Give enough padding so floating animation never clips into header */
  padding-top: 20px;
  padding-bottom: 20px;
}

/* â”€â”€ Float animation: constrained to stay inside hero â”€â”€ */
/* Banner card wrapper float: Ù…Ù‚ÙŠÙ‘Ø¯ Ø¹Ø´Ø§Ù† Ù…Ø§ ÙŠØ·Ù„Ø¹Ø´ ÙÙˆÙ‚ Ø§Ù„Ù‡ÙŠØ¯Ø± */
.teacher-circle-wrapper:has(.teacher-banner-card) {
  animation: heroFloat 7s ease-in-out infinite !important;
}

.teacher-circle-wrapper {
  animation: heroFloat 7s ease-in-out infinite;
}

.teacher-circle {
  animation: heroGlow 7s ease-in-out infinite;
}

/* â˜… Ø§Ù„Ø­Ø±ÙƒØ© Ù…Ø­Ø¯ÙˆØ¯Ø© Ø¨Ù€ 8px ÙÙ‚Ø· Ù„Ù„Ø£Ø¹Ù„Ù‰ Ø­ØªÙ‰ Ù„Ø§ ÙŠØ®Ø±Ø¬ Ø§Ù„Ø¨Ø§Ù†Ø± Ù…Ù† Ø­Ø§ÙˆÙŠØ© Ø§Ù„Ù‡ÙŠØ±Ùˆ â˜… */
@keyframes heroFloat {
  0%   { transform: translate(-50%, -50%) translateY(0)   rotate(0deg); }
  25%  { transform: translate(-50%, -50%) translateY(-6px) rotate(.3deg); }
  50%  { transform: translate(-50%, -50%) translateY(-3px) rotate(-.2deg); }
  75%  { transform: translate(-50%, -50%) translateY(-8px) rotate(.2deg); }
  100% { transform: translate(-50%, -50%) translateY(0)   rotate(0deg); }
}

@keyframes heroGlow {
  0%, 100% {
    box-shadow: var(--shadow-xl), 0 20px 40px rgba(194,154,92,.15);
    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; }
}

/* â”€â”€ Responsive: collapse to stacked layout on tablets/mobile â”€â”€ */
@media (max-width: 900px) {
  .hero-container--simple {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding-top: var(--sp-xl);
  }
  .hero-content--simple {
    order: -1 !important;
    align-items: center;
  }
  .hero-kicker { align-items: center; }
  .hero-kicker::after { text-align: center; }
  /* Hero card float: sized to fit screen with breathing room */
  .hero-card-float { width: 372px; height: 504px; }
  .hero-visual { order: 1 !important; padding-top: 16px; padding-bottom: 16px; }
}

@media (max-width: 640px) {
  .hero-container--simple {
    padding-top: var(--sp-md) !important;
    gap: var(--sp-md) !important;
  }
  /* Smaller card on mobile â€” fits within viewport width */
  .hero-card-float { width: 302px; height: 414px; }
  .hero-visual { padding-top: 10px; padding-bottom: 10px; }
  .hero-kicker-line1 { font-size: 1.75rem; }
  .hero-kicker-line2 { font-size: 1.38rem; }
}

@media (max-width: 380px) {
  .hero-card-float { width: 264px; height: 360px; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   26. LOADING SCREEN â€” Premium splash
/* section divider */
/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   LOADING SCREEN â€” Premium Islamic Educational Experience
/* section divider */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: var(--z-top);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Override direction: rtl from body so flex centering works correctly */
  direction: ltr;
  background: #FAFAF8;
  overflow: hidden;
  /* Transition for exit â€” opacity only */
  opacity: 1;
  transition: opacity .9s cubic-bezier(.4,0,.2,1);
  will-change: opacity;
}

.loading-screen.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* â”€â”€ Soft mesh gradient background â”€â”€ */
.loading-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 25% 30%,  rgba(39,174,122,.08)  0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%,  rgba(20,184,166,.07)  0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 75% 15%,  rgba(139,124,255,.06) 0%, transparent 55%),
    radial-gradient(ellipse 65% 55% at 10% 80%,  rgba(39,174,122,.05)  0%, transparent 60%);
  animation: bgBreath 12s ease-in-out infinite alternate;
}
@keyframes bgBreath {
  0%   { transform: scale(1);    opacity: .7; }
  100% { transform: scale(1.06); opacity: 1;  }
}
[data-theme="dark"] .loading-screen {
  background: #0F1A14;
}
[data-theme="dark"] .loading-screen::before {
  background:
    radial-gradient(ellipse 70% 55% at 25% 30%,  rgba(39,174,122,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%,  rgba(20,184,166,.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 75% 15%,  rgba(139,124,255,.1) 0%, transparent 55%),
    radial-gradient(ellipse 65% 55% at 10% 80%,  rgba(39,174,122,.1)  0%, transparent 60%);
}

/* â”€â”€ Islamic geometric pattern (very subtle) â”€â”€ */
.loading-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%230F766E' stroke-width='0.8'%3E%3Cpolygon points='40,4 52,20 70,20 58,34 63,52 40,43 17,52 22,34 10,20 28,20'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* â”€â”€ FLOATING BLOBS â”€â”€ */
.ls-blobs {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.ls-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}
.ls-blob-1 {
  width: 500px; height: 500px;
  top: -10%; left: -8%;
  background: radial-gradient(circle, rgba(39,174,122,.14) 0%, transparent 70%);
  animation: blobA 18s ease-in-out infinite alternate;
}
.ls-blob-2 {
  width: 420px; height: 420px;
  bottom: -8%; right: -6%;
  background: radial-gradient(circle, rgba(20,184,166,.12) 0%, transparent 70%);
  animation: blobB 22s ease-in-out infinite alternate;
}
.ls-blob-3 {
  width: 320px; height: 320px;
  top: 35%; right: 12%;
  background: radial-gradient(circle, rgba(139,124,255,.08) 0%, transparent 70%);
  animation: blobC 16s ease-in-out infinite alternate;
}
.ls-blob-4 {
  width: 280px; height: 280px;
  top: 20%; left: 22%;
  background: radial-gradient(circle, rgba(244,201,93,.07) 0%, transparent 70%);
  animation: blobD 20s ease-in-out infinite alternate;
}
@keyframes blobA { 0% { transform: translate(0,0) scale(1); }   100% { transform: translate(60px,50px) scale(1.12); } }
@keyframes blobB { 0% { transform: translate(0,0) scale(1.1); } 100% { transform: translate(-50px,60px) scale(1); } }
@keyframes blobC { 0% { transform: translate(0,0) scale(1); }   100% { transform: translate(-40px,-45px) scale(1.1); } }
@keyframes blobD { 0% { transform: translate(0,0) scale(1.05); }100% { transform: translate(35px,50px) scale(.9); } }

/* â”€â”€ Glass floating circles â”€â”€ */
.ls-circles {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.ls-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(39,174,122,.08);
  backdrop-filter: blur(2px);
}
.ls-circle-1 { width: 180px; height: 180px; top: 8%;  left: 5%;  animation: floatA 14s ease-in-out infinite; }
.ls-circle-2 { width: 120px; height: 120px; bottom: 10%; right: 6%; animation: floatB 18s ease-in-out infinite 2s; }
.ls-circle-3 { width: 80px;  height: 80px;  top: 60%;  left: 80%; animation: floatA 11s ease-in-out infinite 4s; }
@keyframes floatA { 0%,100% { transform: translateY(0); }       50% { transform: translateY(-18px); } }
@keyframes floatB { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(4deg); } }

/* â”€â”€ Tiny dust particles â”€â”€ */
.ls-particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ls-particle {
  position: absolute;
  border-radius: 50%;
  background: #27AE7A;
  animation: dustFloat 8s ease-in-out infinite;
}
.ls-particle:nth-child(3n)   { background: #0F766E; }
.ls-particle:nth-child(3n+1) { background: rgba(139,124,255,.6); }
@keyframes dustFloat {
  0%,100% { transform: translateY(0) translateX(0);   opacity: .3; }
  33%     { transform: translateY(-25px) translateX(12px);  opacity: .6; }
  66%     { transform: translateY(-12px) translateX(-8px);  opacity: .4; }
}

/* â•â• CORE â€” everything centered â•â• */
.ls-core {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  width: 100%;
  max-width: 360px;
  padding: 0 24px;
  /* Prevent RTL direction inherited from body from misaligning */
  direction: ltr;
  animation: coreReveal 1s cubic-bezier(.22,1,.36,1) both;
}
@keyframes coreReveal {
  from { opacity: 0; transform: translateY(28px) scale(.95); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   filter: blur(0); }
}

/* â”€â”€ LOGO â”€â”€ */
.ls-logo-wrap {
  position: relative;
  width: 110px; height: 110px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
}

.ls-logo-glow {
  position: absolute; inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39,174,122,.22) 0%, transparent 68%);
  filter: blur(18px);
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100% { opacity: .6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.18); } }

.ls-logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid;
  animation: ringExpand 2.4s ease-out infinite;
}
.ls-ring-outer { width: 108px; height: 108px; border-color: rgba(39,174,122,.2);  animation-delay: 0s; }
.ls-ring-inner { width:  92px; height:  92px; border-color: rgba(39,174,122,.14); animation-delay: .5s; }
@keyframes ringExpand {
  0%   { transform: scale(.85); opacity: .9; }
  100% { transform: scale(1.28); opacity: 0; }
}

.ls-logo-icon {
  width: 84px; height: 84px;
  border-radius: 26px;
  background: linear-gradient(145deg, #fff, #F0FAF6);
  border: 1.5px solid rgba(39,174,122,.2);
  box-shadow: 0 8px 32px rgba(39,174,122,.18), 0 2px 8px rgba(0,0,0,.05);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
  animation: logoFloat 4s ease-in-out infinite, logoGlow 3s ease-in-out infinite;
}
@keyframes logoFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-9px); }
}
@keyframes logoGlow {
  0%,100% { box-shadow: 0 8px 32px rgba(39,174,122,.18), 0 2px 8px rgba(0,0,0,.05); }
  50%     { box-shadow: 0 14px 44px rgba(39,174,122,.32), 0 4px 14px rgba(0,0,0,.07); }
}
[data-theme="dark"] .ls-logo-icon {
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(39,174,122,.08));
  border-color: rgba(39,174,122,.3);
}

/* â”€â”€ TITLE â”€â”€ */
.ls-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
}
.ls-title-main {
  font-family: var(--font-main);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.1;
  direction: rtl;
  background: linear-gradient(135deg, #0A5A40 0%, #0F766E 40%, #27AE7A 70%, #0F766E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: titleShimmer 4s ease-in-out infinite alternate, titleFadeIn .9s ease .2s both;
}
@keyframes titleShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@keyframes titleFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ls-title-sub {
  font-family: var(--font-main);
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-400, #7E8F9F);
  letter-spacing: .07em;
  direction: rtl;
  animation: titleFadeIn .9s ease .45s both;
}
[data-theme="dark"] .ls-title-main {
  background: linear-gradient(135deg, #34C88D 0%, #5FD9C9 50%, #27AE7A 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
[data-theme="dark"] .ls-title-sub { color: rgba(255,255,255,.5); }

/* â”€â”€ PREMIUM LOADING INDICATOR â”€â”€ */
.ls-indicator {
  width: 220px;
  margin-bottom: 20px;
  animation: titleFadeIn .9s ease .65s both;
}

/* Outer capsule track */
.ls-track {
  position: relative;
  height: 5px;
  border-radius: 999px;
  background: rgba(39,174,122,.1);
  border: 1px solid rgba(39,174,122,.15);
  overflow: hidden;
  margin-bottom: 18px;
}

/* Moving gradient beam */
.ls-beam {
  position: absolute; top: 0; left: 0;
  height: 100%; width: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, #27AE7A 45%, #0F766E 80%, transparent 100%);
  animation: beamSlide 1.8s ease-in-out infinite;
}
@keyframes beamSlide {
  0%   { transform: translateX(-120%); opacity: .8; }
  100% { transform: translateX(260%);  opacity: .8; }
}

/* Glowing beam shadow */
.ls-beam-glow {
  position: absolute; top: -4px; left: 0;
  height: 13px; width: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(39,174,122,.4) 50%, transparent 100%);
  filter: blur(5px);
  animation: beamSlide 1.8s ease-in-out infinite;
}

/* Orbiting dot above the track */
.ls-orbit {
  position: absolute;
  top: 50%; left: 0;
  width: 220px; height: 0;
  pointer-events: none;
}
.ls-orbit-dot {
  position: absolute;
  top: -10px; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #27AE7A 55%, transparent 100%);
  box-shadow: 0 0 10px 3px rgba(39,174,122,.5);
  animation: orbitMove 1.8s ease-in-out infinite;
}
@keyframes orbitMove {
  0%   { left: -3%;  opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 105%; opacity: 0; }
}

/* â”€â”€ STATUS TEXT â”€â”€ */
.ls-status {
  font-family: var(--font-main);
  font-size: .73rem;
  font-weight: 700;
  color: var(--text-400, #7E8F9F);
  letter-spacing: .07em;
  direction: rtl;
  animation: statusPulse 2s ease-in-out infinite 1s;
}
@keyframes statusPulse {
  0%,100% { opacity: .55; }
  50%     { opacity: .9;  }
}
[data-theme="dark"] .ls-status { color: rgba(255,255,255,.45); }

/* â”€â”€ EXIT ANIMATION â”€â”€ */
.loading-screen.is-exiting .ls-core {
  animation: coreExit .7s cubic-bezier(.4,0,1,1) both;
}
.loading-screen.is-exiting .ls-blobs,
.loading-screen.is-exiting .ls-circles {
  animation: blobsFade .8s ease both;
}
@keyframes coreExit {
  to { opacity: 0; transform: scale(.93) translateY(-12px); filter: blur(5px); }
}
@keyframes blobsFade {
  to { opacity: 0; }
}

/* â”€â”€ RESPONSIVE â”€â”€ */
@media (max-width: 640px) {
  .ls-logo-icon  { width: 72px; height: 72px; border-radius: 22px; }
  .ls-logo-wrap  { width: 90px; height: 90px; }
  .ls-ring-outer { width: 90px; height: 90px; }
  .ls-ring-inner { width: 76px; height: 76px; }
  .ls-title-main { font-size: 1.35rem; }
  .ls-indicator  { width: 180px; }
  .ls-blob-1, .ls-blob-2 { width: 260px; height: 260px; }
}

/* â”€â”€ REDUCED MOTION â”€â”€ */
@media (prefers-reduced-motion: reduce) {
  .ls-blob, .ls-circle, .ls-particle, .ls-beam, .ls-beam-glow,
  .ls-orbit-dot, .ls-logo-icon, .ls-logo-glow, .ls-logo-ring,
  .ls-title-main, .ls-status {
    animation: none !important;
  }
  .ls-title-main {
    background: #0F766E !important;
    -webkit-text-fill-color: #0F766E !important;
  }
}

/* section divider */
.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
/* section divider */
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-line1 { font-size: 1.7rem; }
  .hero-kicker-line2 { font-size: 1.3rem; }
  .loading-logo { width: 64px; height: 64px; }
  .loading-name { font-size: 1.25rem; }
  .loading-sub  { font-size: 0.74rem; }
}




/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PREMIUM UI/UX UPGRADE â€” All sections
/* section divider */

/* â”€â”€ FEATURE CARDS â€” Premium glass cards â”€â”€ */
.feature-item {
  background: rgba(255,255,255,.75) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  border-radius: 22px !important;
  padding: 28px 24px !important;
  border: 1.5px solid rgba(255,255,255,.65) !important;
  box-shadow: 0 2px 8px rgba(15,25,35,.04), 0 8px 24px rgba(15,25,35,.06) !important;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, border-color .22s ease !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.feature-item::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--fc) 18%, transparent) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.feature-item:hover {
  transform: translateY(-8px) scale(1.01) !important;
  box-shadow: 0 4px 12px rgba(15,25,35,.05), 0 20px 44px rgba(15,25,35,.1) !important;
  border-color: rgba(255,255,255,.9) !important;
}
.feature-item:hover::before { opacity: 1 !important; }

/* Gradient top border reveal on hover */
.feature-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--fc, var(--primary)), color-mix(in srgb, var(--fc, var(--primary)) 50%, #fff));
  opacity: 0;
  border-radius: 22px 22px 0 0;
  transition: opacity .25s ease;
}
.feature-item:hover::after { opacity: 1; }

[data-theme="dark"] .feature-item {
  background: rgba(27,34,42,.75) !important;
  border-color: rgba(255,255,255,.07) !important;
}

/* Icon upgrade */
.feat-icon-wrap {
  width: 58px !important;
  height: 58px !important;
  border-radius: 18px !important;
  background: color-mix(in srgb, var(--fc) 12%, white) !important;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--fc) 25%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--fc) 18%, transparent);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease !important;
}
.feature-item:hover .feat-icon-wrap {
  transform: scale(1.14) rotate(-6deg) !important;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--fc) 35%, transparent) !important;
}
[data-theme="dark"] .feat-icon-wrap {
  background: color-mix(in srgb, var(--fc) 15%, rgba(27,34,42,.8)) !important;
}

/* â”€â”€ TESTIMONIALS â€” Premium carousel cards â”€â”€ */
.testimonials-section {
  background: linear-gradient(160deg, #F2FBF6 0%, #F8FDFB 50%, #F0F8FF 100%) !important;
  position: relative;
  overflow: hidden;
}
.testimonials-section::before {
  content: '';
  position: absolute; inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%230F766E' stroke-width='0.6'%3E%3Cpolygon points='30,3 39,15 52.5,15 43.5,25.5 47.25,39 30,32.25 12.75,39 16.5,25.5 7.5,15 21,15'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}
[data-theme="dark"] .testimonials-section {
  background: linear-gradient(160deg, #0e1a14 0%, #111c18 50%, #0e1620 100%) !important;
}

.testimonial-card {
  background: rgba(255,255,255,.82) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  border: 1.5px solid rgba(255,255,255,.7) !important;
  border-radius: 22px !important;
  box-shadow: 0 4px 16px rgba(15,25,35,.06), 0 12px 32px rgba(15,25,35,.07) !important;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease !important;
  position: relative;
  overflow: hidden;
}
.testimonial-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 8px 28px rgba(15,25,35,.1), 0 24px 48px rgba(15,25,35,.09) !important;
}
/* Green top glow strip */
.testimonial-card::after {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(39,174,122,.5), transparent);
  border-radius: 0 0 2px 2px;
}
.testimonial-card::before {
  font-size: 5rem !important;
  color: rgba(39,174,122,.1) !important;
  top: 12px !important;
}
[data-theme="dark"] .testimonial-card {
  background: rgba(27,34,42,.82) !important;
  border-color: rgba(255,255,255,.08) !important;
}

/* Upgraded avatar */
.tst-avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  font-size: 1.1rem !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.18) !important;
  flex-shrink: 0 !important;
  border: 2.5px solid rgba(255,255,255,.6) !important;
}

/* Carousel controls upgrade */
.tst-btn {
  background: rgba(255,255,255,.85) !important;
  backdrop-filter: blur(12px) !important;
  border: 1.5px solid rgba(255,255,255,.7) !important;
  box-shadow: 0 4px 14px rgba(15,25,35,.08) !important;
  color: var(--text-700) !important;
  transition: all .3s cubic-bezier(.34,1.56,.64,1) !important;
  border-radius: 50% !important;
  width: 44px !important; height: 44px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
}
.tst-btn:hover {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
  transform: scale(1.1) !important;
  box-shadow: 0 6px 20px rgba(39,174,122,.28) !important;
}

/* â”€â”€ ENROLL SECTION â€” Premium upgrade â”€â”€ */
.enroll-section {
  background: linear-gradient(135deg, #0A5A40 0%, #0F766E 35%, #1a8a7a 60%, #0F766E 100%) !important;
  position: relative;
  overflow: hidden;
}
/* Aurora glow behind enroll */
.enroll-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(52,200,141,.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 80% 30%, rgba(34,211,238,.1) 0%, transparent 60%);
  pointer-events: none;
}
/* Noise texture */
.enroll-section::after {
  content: '';
  position: absolute; inset: 0;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
}
.enroll-shape.s1 {
  background: rgba(255,255,255,.05) !important;
  border-color: rgba(255,255,255,.08) !important;
}
.enroll-shape.s2 {
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.07) !important;
}
.enroll-icon {
  backdrop-filter: blur(12px) !important;
  background: rgba(255,255,255,.14) !important;
  border-color: rgba(255,255,255,.3) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}
.btn-white {
  background: rgba(255,255,255,.96) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.14), 0 1px 0 rgba(255,255,255,.9) inset !important;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease !important;
}
.btn-white:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 16px 36px rgba(0,0,0,.2), 0 1px 0 rgba(255,255,255,.9) inset !important;
}
.btn-outline-white {
  border: 2px solid rgba(255,255,255,.55) !important;
  backdrop-filter: blur(8px) !important;
  background: rgba(255,255,255,.08) !important;
  transition: all .3s cubic-bezier(.34,1.56,.64,1) !important;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.18) !important;
  border-color: rgba(255,255,255,.8) !important;
  transform: translateY(-2px) !important;
}

/* â”€â”€ STATS â€” Animated counter cells â”€â”€ */
.stat-num {
  font-size: 2.1rem !important;
  font-weight: 900 !important;
  background: linear-gradient(135deg, var(--text-900) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.stat-item:hover .stat-num { transform: scale(1.05); }

/* â”€â”€ ABOUT section â€” glass badge â”€â”€ */
.about-exp-badge {
  backdrop-filter: blur(16px) saturate(160%) !important;
  background: rgba(255,255,255,.88) !important;
  border: 1.5px solid rgba(255,255,255,.7) !important;
  box-shadow: 0 8px 28px rgba(39,174,122,.14), 0 2px 8px rgba(0,0,0,.06) !important;
}
[data-theme="dark"] .about-exp-badge {
  background: rgba(27,34,42,.88) !important;
  border-color: rgba(255,255,255,.1) !important;
}

/* Highlight items */
.highlight-item {
  background: rgba(255,255,255,.6) !important;
  backdrop-filter: blur(10px) !important;
  border: 1.5px solid rgba(255,255,255,.55) !important;
  border-radius: 16px !important;
  padding: 16px 18px !important;
  box-shadow: 0 2px 8px rgba(15,25,35,.04) !important;
  transition: all .3s cubic-bezier(.34,1.56,.64,1) !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  margin-bottom: 12px !important;
}
.highlight-item:hover {
  transform: translateX(-4px) !important;
  border-color: color-mix(in srgb, var(--hc) 30%, transparent) !important;
  box-shadow: 0 4px 16px rgba(15,25,35,.07) !important;
}
[data-theme="dark"] .highlight-item {
  background: rgba(27,34,42,.6) !important;
  border-color: rgba(255,255,255,.07) !important;
}
.hl-icon {
  width: 44px !important; height: 44px !important;
  border-radius: 13px !important;
  background: color-mix(in srgb, var(--hc) 12%, white) !important;
  border: 1px solid color-mix(in srgb, var(--hc) 20%, transparent) !important;
  color: var(--hc) !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--hc) 20%, transparent) !important;
}

/* â”€â”€ FOOTER â€” Premium glass top â”€â”€ */
footer {
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(39,174,122,.3), rgba(139,124,255,.2), transparent);
}
.footer-top {
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
}
.footer-links-col a {
  transition: color .18s ease, transform .22s ease !important;
  display: inline-block;
}
.footer-links-col a:hover {
  color: var(--primary) !important;
  transform: translateX(-3px) !important;
}
.footer-social-link {
  transition: all .3s cubic-bezier(.34,1.56,.64,1) !important;
}
.footer-social-link:hover {
  transform: translateY(-3px) scale(1.12) !important;
}

/* â”€â”€ SECTION TRANSITIONS â€” soft gradient separators â”€â”€ */
.subjects-section,
.about-section,
.features-section,
.contact-section {
  position: relative;
}
.subjects-section::before,
.features-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, var(--bg-soft), transparent);
  pointer-events: none;
  z-index: 0;
}

/* â”€â”€ SCROLL-REVEAL upgrade â”€â”€ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="left"].in-view { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="right"].in-view { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="scale"].in-view { transform: scale(1); }

/* â”€â”€ GRADE TABS â€” upgraded â”€â”€ */
.grade-tab.active,
.grade-tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--primary), var(--green-400)) !important;
  box-shadow: 0 6px 18px rgba(39,174,122,.28) !important;
  border-color: transparent !important;
  color: #fff !important;
}

/* â”€â”€ PS-ITEM â€” upgraded â”€â”€ */
.ps-item {
  border-radius: 14px !important;
  transition: all .3s cubic-bezier(.34,1.56,.64,1) !important;
}
.ps-item:hover {
  transform: translateX(-4px) !important;
  background: rgba(39,174,122,.05) !important;
  border-color: rgba(39,174,122,.2) !important;
}

/* â”€â”€ CONTACT CARDS â€” glass upgrade â”€â”€ */
.contact-card {
  background: rgba(255,255,255,.72) !important;
  backdrop-filter: blur(16px) !important;
  border: 1.5px solid rgba(255,255,255,.65) !important;
  box-shadow: 0 4px 16px rgba(15,25,35,.05), 0 10px 28px rgba(15,25,35,.06) !important;
  border-radius: 20px !important;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease !important;
}
.contact-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 8px 28px rgba(15,25,35,.09), 0 20px 44px rgba(15,25,35,.08) !important;
}
[data-theme="dark"] .contact-card {
  background: rgba(27,34,42,.72) !important;
  border-color: rgba(255,255,255,.07) !important;
}

/* â”€â”€ SCROLL-TO-TOP BUTTON â”€â”€ */
.scroll-top-btn {
  background: linear-gradient(135deg, var(--primary), var(--green-400)) !important;
  box-shadow: 0 6px 20px rgba(39,174,122,.32) !important;
  border: 2px solid rgba(255,255,255,.25) !important;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease, opacity .22s ease !important;
}
.scroll-top-btn:hover {
  transform: translateY(-4px) scale(1.08) !important;
  box-shadow: 0 12px 32px rgba(39,174,122,.44) !important;
}

/* â”€â”€ ANIMATED STAT COUNTERS â€” triggered by IntersectionObserver â”€â”€ */
.stat-num[data-target] {
  display: inline-block;
}

/* â”€â”€ GLOBAL BUTTON MICRO-INTERACTIONS â”€â”€ */
.btn {
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease, filter .18s ease !important;
}
.btn:hover { transform: translateY(-2px) !important; }
.btn:active { transform: translateY(0) scale(.98) !important; }

/* â”€â”€ ABOUT IMAGE DEPTH â”€â”€ */
.about-img-wrapper {
  position: relative;
}
.about-img-wrapper::before {
  content: '';
  position: absolute;
  inset: 16px -16px -16px 16px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(39,174,122,.12), rgba(20,184,166,.08));
  z-index: -1;
  border-radius: 32px;
}
.about-img {
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(15,25,35,.1), 0 24px 56px rgba(15,25,35,.08) !important;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1) !important;
}
.about-img-wrapper:hover .about-img { transform: scale(1.02) translateY(-4px) !important; }

/* â”€â”€ NAVBAR GLASS on scroll â”€â”€ */
.navbar.scrolled {
  background: rgba(255,255,255,.88) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  box-shadow: 0 4px 20px rgba(15,25,35,.07), 0 1px 0 rgba(255,255,255,.6) !important;
}
[data-theme="dark"] .navbar.scrolled {
  background: rgba(15,21,25,.88) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.3) !important;
}

/* â”€â”€ HERO STATS STRIP â”€â”€ */
.hero-stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 32px;
  margin: 0 auto;
  max-width: 680px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1.5px solid rgba(255,255,255,.65);
  border-radius: 99px;
  box-shadow: 0 4px 20px rgba(15,25,35,.06), 0 10px 32px rgba(15,25,35,.05);
  animation: fadeSlideUp .55s ease both;
  animation-delay: .55s;
}
[data-theme="dark"] .hero-stats-strip {
  background: rgba(27,34,42,.72);
  border-color: rgba(255,255,255,.08);
}
.hss-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 28px;
  flex: 1;
}
.hss-num {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  background: linear-gradient(135deg, var(--green-600), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hss-label {
  font-size: .71rem;
  font-weight: 700;
  color: var(--text-400);
  white-space: nowrap;
}
.hss-sep {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--border-md), transparent);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .hero-stats-strip {
    padding: 14px 16px;
    border-radius: 20px;
    gap: 0;
  }
  .hss-item { padding: 0 12px; }
  .hss-num  { font-size: 1.1rem; }
  .hss-label { font-size: .64rem; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SMART FILTER BAR + CATEGORY NAVIGATION
/* section divider */

/* â”€â”€ Smart Filter Bar â”€â”€ */
.smart-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1.5px solid rgba(255,255,255,.65);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(15,25,35,.05);
}
[data-theme="dark"] .smart-filter-bar {
  background: rgba(27,34,42,.75);
  border-color: rgba(255,255,255,.08);
}

.sf-search-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
}
.sf-search-icon {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-300);
  pointer-events: none;
}
.sf-search {
  width: 100%; height: 40px;
  padding: 0 38px 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  background: var(--bg-page);
  font-family: var(--font-main);
  font-size: .85rem;
  color: var(--text-900);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.sf-search:focus {
  border-color: var(--violet-400, #7C6CFF);
  box-shadow: 0 0 0 3px rgba(124,108,255,.12);
}

.sf-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.sf-pill {
  padding: 7px 14px;
  border-radius: 99px;
  font-family: var(--font-main);
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-500);
  background: var(--bg-page);
  border: 1.5px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  transition: all .22s;
}
.sf-pill:hover  { border-color: var(--primary); color: var(--primary); }
.sf-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(39,174,122,.28);
}

.sf-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 99px;
  font-family: var(--font-main); font-size: .78rem; font-weight: 700;
  color: var(--text-500); background: var(--bg-page);
  border: 1.5px solid var(--border); cursor: pointer;
  white-space: nowrap; transition: all .22s;
}
.sf-toggle:hover { border-color: #E8A020; color: #92600A; }
.sf-toggle.active {
  background: rgba(244,201,93,.15); border-color: rgba(244,201,93,.5);
  color: #92600A; box-shadow: 0 4px 12px rgba(244,201,93,.2);
}

.sf-count {
  font-size: .74rem; font-weight: 700; color: var(--text-400);
  margin-right: 4px; white-space: nowrap;
}

/* â”€â”€ Category Navigation Pills â”€â”€ */
.cat-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 4px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 99px;
  font-family: var(--font-main);
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-500);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,.6);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15,25,35,.04);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1),
              background .2s, border-color .2s, box-shadow .2s,
              color .15s;
}
[data-theme="dark"] .cat-pill {
  background: rgba(27,34,42,.72);
  border-color: rgba(255,255,255,.08);
}

.cat-pill:hover {
  transform: translateY(-2px);
  border-color: var(--cat-acc, var(--primary));
  color: var(--cat-acc, var(--primary));
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.cat-pill.active {
  background: var(--cat-acc, var(--primary));
  border-color: var(--cat-acc, var(--primary));
  color: #fff;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--cat-acc, var(--primary)) 35%, transparent);
  transform: translateY(-1px);
}

.cat-pill.active:first-child {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(39,174,122,.28);
}

.cat-pill-icon { font-size: .95rem; line-height: 1; }

/* â”€â”€ Course cards from JS â”€â”€ */
.card-cat-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.card-cat-badge {
  display: inline-flex;
  align-items: center;
  font-size: .68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid;
  white-space: nowrap;
}

.card-grade-chip {
  display: inline-flex;
  align-items: center;
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(67,97,238,.1);
  color: #2541B2;
  border: 1px solid rgba(67,97,238,.2);
  white-space: nowrap;
}
[data-theme="dark"] .card-grade-chip { background: rgba(67,97,238,.18); color: #93A8F4; }

.card-desc {
  font-size: .84rem;
  color: var(--text-400);
  line-height: 1.75;
  margin-bottom: var(--sp-md);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* â”€â”€ Empty state â”€â”€ */
.sf-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 56px 24px;
  color: var(--text-400);
}
.sf-empty svg { opacity: .3; color: var(--text-300); }
.sf-empty h3  { font-size: 1rem; font-weight: 800; color: var(--text-500); }
.sf-empty p   { font-size: .85rem; color: var(--text-400); }

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 700px) {
  .smart-filter-bar { gap: 8px; padding: 12px 14px; }
  .sf-search-wrap   { width: 100%; }
  .sf-pills         { gap: 5px; }
  .cat-nav          { gap: 6px; }
  .cat-pill         { font-size: .76rem; padding: 7px 12px; }
}


/* â”€â”€ Hero Welcome Badge & Typewriter Greeting â”€â”€ */
.hero-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(39, 174, 122, 0.08);
  border: 1.5px solid rgba(39, 174, 122, 0.28);
  color: var(--primary-600, #166946);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(39, 174, 122, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .3s ease;
}
[data-theme="dark"] .hero-welcome-badge {
  background: rgba(39, 174, 122, 0.16);
  border-color: rgba(52, 200, 141, 0.38);
  color: #34c88d;
}
.hwb-star {
  color: #e8a020;
  font-size: 1rem;
  animation: starPulse 2.2s ease-in-out infinite;
}
.hwb-text {
  letter-spacing: .02em;
}
.hwb-cursor {
  color: var(--primary, #27ae7a);
  font-weight: 900;
  margin-right: 2px;
  animation: cursorBlink 0.8s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes starPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.25); opacity: 1; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PREMIUM TEACHER BANNER CARD â€” World-class presentation
/* section divider */

/* Container â€” Ø§Ù„ÙƒØ§Ø±Ø¯ Ø§Ù„Ø±Ø¦ÙŠØ³ÙŠ Ù…Ø¹ Ø¥Ø·Ø§Ø± ØªØ¨ÙˆÙŠØ¨ Ø°Ù‡Ø¨ÙŠ Ø¨Ø§Ø±Ø² ÙÙŠ Ø§Ù„Ù†Ù‡Ø§Ø±ÙŠ ÙˆØ§Ù„Ù„ÙŠÙ„ÙŠ */
.teacher-banner-card {
  position: relative;
  width: 410px;
  height: 555px;
  border-radius: 30px;
  overflow: hidden;
  /* Layered luxury shadow & tab glow */
  box-shadow:
    0 4px 14px rgba(15,25,35,.06),
    0 16px 36px rgba(39,174,122,.2),
    0 35px 75px rgba(15,25,35,.15),
    0 0 0 3.5px rgba(212,175,55,.85),
    0 0 0 7px rgba(39,174,122,.45),
    0 0 50px rgba(212,175,55,.25);
  z-index: 2;
  background: linear-gradient(160deg, #0a2818 0%, #0d3a22 40%, #0f4a2a 70%, #1a3a10 100%);
  cursor: pointer;
  transition: box-shadow .4s ease, transform .4s cubic-bezier(.34,1.56,.64,1);
}

/* Light Mode (Ø§Ù„ÙˆØ¶Ø¹ Ø§Ù„Ù†Ù‡Ø§Ø±ÙŠ) â€” Ø¥Ø·Ø§Ø± ØªØ¨ÙˆÙŠØ¨ ÙØ§Ø®Ø± ÙŠØ¨Ø±Ø² ØµÙˆØ±Ø© Ø§Ù„Ù…Ø¯Ø±Ø³ Ø¨Ù†Ù‚Ø§Ø¡ Ø¹Ø§Ù„ÙŠ */
:root:not([data-theme="dark"]) .teacher-banner-card {
  background: linear-gradient(165deg, #ffffff 0%, #f4fbf7 40%, #eaf6f0 75%, #fdfbf5 100%);
  border: 2px solid rgba(212,175,55,.85);
  box-shadow:
    0 8px 24px rgba(15,25,35,.07),
    0 22px 50px rgba(39,174,122,.22),
    0 42px 85px rgba(15,25,35,.12),
    0 0 0 4px #d4af37,
    0 0 0 8px rgba(39,174,122,.45),
    0 0 55px rgba(212,175,55,.3);
}

:root:not([data-theme="dark"]) .tbc-bg-layer {
  background:
    radial-gradient(ellipse 85% 65% at 50% 0%, rgba(39,174,122,.15) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(232,160,32,.12) 0%, transparent 65%),
    linear-gradient(170deg, #ffffff 0%, #f0fdf7 50%, #e6f7ef 100%);
}

:root:not([data-theme="dark"]) .tbc-islamic-deco {
  opacity: .35;
}

:root:not([data-theme="dark"]) .ring-outer {
  border: 2px dashed rgba(212,175,55,.75) !important;
  box-shadow: 0 0 28px rgba(212,175,55,.3);
}

:root:not([data-theme="dark"]) .ring-inner {
  border: 2px dashed rgba(39,174,122,.75) !important;
  box-shadow: 0 0 24px rgba(39,174,122,.3);
}

/* Top Decorative Header Tab Accent */
.tbc-top-tab {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(8, 26, 17, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35), 0 0 16px rgba(212,175,55,0.25);
  pointer-events: none;
}
.tbc-tab-title {
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 800;
  color: #f7c948;
  letter-spacing: .03em;
}
.tbc-tab-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #27ae7a;
  box-shadow: 0 0 6px #27ae7a;
}

.teacher-banner-card:hover {
  box-shadow:
    0 6px 12px rgba(15,25,35,.08),
    0 22px 45px rgba(39,174,122,.3),
    0 45px 85px rgba(15,25,35,.18),
    0 0 0 4px #d4af37,
    0 0 0 8px rgba(39,174,122,.5),
    0 0 90px rgba(212,175,55,.4);
  transform: scale(1.018) translateY(-4px);
}

/* Animated shimmer gradient border */
.teacher-banner-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 3px;
  background: linear-gradient(
    135deg,
    rgba(212,175,55,1)   0%,
    rgba(39,174,122,1)   25%,
    rgba(245,232,168,.9) 45%,
    rgba(20,184,166,.9)  65%,
    rgba(232,160,32,1)   85%,
    rgba(212,175,55,1)   100%
  );
  -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: 10;
  animation: tbcBorderShine 3.5s linear infinite;
  background-size: 300% 300%;
}

@keyframes tbcBorderShine {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* â˜… Ø­Ø±ÙƒØ© floating Ø§Ù„Ø¨Ø§Ù†Ø± Ø§Ù„ÙƒØ§Ø±Ø¯ Ù…ÙÙ„ØºØ§Ø© Ù‡Ù†Ø§ â€” Ø§Ù„Ù€ wrapper Ù‡Ùˆ Ø§Ù„Ù„ÙŠ Ø¨ÙŠØªØ­Ø±Ùƒ â˜… */
@keyframes tbcFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* Green gradient background layer */
.tbc-bg-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(39,174,122,.45) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(232,160,32,.2) 0%, transparent 60%),
    linear-gradient(170deg, #0d3826 0%, #081f14 60%, #0a2010 100%);
  z-index: 0;
}

/* Islamic geometric SVG overlay */
.tbc-islamic-deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tbc-islamic-deco svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image wrapper */
.tbc-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tbc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .5s ease;
  filter: drop-shadow(0 -8px 20px rgba(0,0,0,.3));
}

.teacher-banner-card:hover .tbc-img-wrap img {
  transform: scale(1.03) translateY(-4px);
}

/* Bottom gradient overlay */
.tbc-bottom-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(
    to top,
    rgba(8,20,13,.95) 0%,
    rgba(8,20,13,.7)  35%,
    transparent       100%
  );
  z-index: 3;
  pointer-events: none;
}

/* â”€â”€ Name Badge (bottom) â”€â”€ */
.tbc-name-badge {
  position: absolute;
  bottom: 18px;
  left: 14px;
  right: 14px;
  z-index: 5;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.3), 0 1px 0 rgba(255,255,255,.06) inset;
  animation: tbcBadgeFadeIn .6s .3s ease both;
}

@keyframes tbcBadgeFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tbc-name-badge-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tbc-name-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #27ae7a, #1a6b49);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(39,174,122,.4);
}

.tbc-name {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: .92rem;
  color: #fff;
  margin: 0 0 2px;
  line-height: 1.2;
}

.tbc-role {
  font-family: var(--font-main);
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  margin: 0;
  line-height: 1;
}

/* â”€â”€ Experience Badge (top-left) â”€â”€ */
.tbc-exp-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  background: linear-gradient(135deg, rgba(232,160,32,.25), rgba(232,160,32,.12));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(232,160,32,.35);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: 0 6px 20px rgba(232,160,32,.2);
  animation: tbcExpFloat 5s ease-in-out infinite;
}

@keyframes tbcExpFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

.tbc-exp-num {
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 900;
  color: #f7c948;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(232,160,32,.5);
}

.tbc-exp-label {
  font-family: var(--font-main);
  font-size: .65rem;
  font-weight: 600;
  color: rgba(247,201,72,.8);
  letter-spacing: .5px;
}

/* â”€â”€ Students Badge (top-left) â”€â”€ */
.tbc-students-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  background: rgba(39,174,122,.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(39,174,122,.35);
  border-radius: 20px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6ddcb0;
  font-family: var(--font-main);
  font-size: .76rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(39,174,122,.2);
  animation: tbcStudentsFloat 6s ease-in-out infinite;
  animation-delay: -.5s;
}

@keyframes tbcStudentsFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

/* â”€â”€ Dark mode adjustments â”€â”€ */
[data-theme="dark"] .teacher-banner-card {
  box-shadow:
    0 8px 24px rgba(0,0,0,.4),
    0 28px 56px rgba(0,0,0,.5),
    0 0 0 1px rgba(39,174,122,.2),
    0 0 60px rgba(39,174,122,.1);
}

/* â”€â”€ Responsive sizes for teacher-banner-card â”€â”€ */

/* Tablet (â‰¤ 900px): Ø¨Ø·Ø§Ù‚Ø© Ù…ØªÙˆØ³Ø·Ø© */
@media (max-width: 900px) {
  .teacher-banner-card {
    width: 346px;
    height: 468px;
    border-radius: 24px;
  }
}

/* Mobile (â‰¤ 640px): Ø¨Ø·Ø§Ù‚Ø© ØµØºÙŠØ±Ø© ØªÙ†Ø§Ø³Ø¨ Ø§Ù„Ø´Ø§Ø´Ø© */
@media (max-width: 640px) {
  .teacher-banner-card {
    width: 284px;
    height: 380px;
    border-radius: 20px;
  }
  .tbc-exp-badge {
    top: 10px;
    right: 10px;
    padding: 7px 9px;
    border-radius: 10px;
  }
  .tbc-exp-num { font-size: 1.1rem; }
  .tbc-exp-label { font-size: .6rem; }
  .tbc-students-badge {
    top: 10px;
    left: 10px;
    padding: 6px 9px;
    font-size: .7rem;
  }
  .tbc-name-badge {
    bottom: 12px;
    left: 10px;
    right: 10px;
    padding: 9px 11px;
    border-radius: 13px;
  }
  .tbc-name { font-size: .8rem; }
  .tbc-role { font-size: .66rem; }
  .tbc-name-icon { width: 26px; height: 26px; border-radius: 8px; }
}

/* Extra-small (â‰¤ 380px) */
@media (max-width: 380px) {
  .teacher-banner-card {
    width: 246px;
    height: 330px;
    border-radius: 16px;
  }
  .tbc-exp-badge   { padding: 5px 7px; }
  .tbc-exp-num     { font-size: .95rem; }
  .tbc-students-badge { padding: 5px 8px; font-size: .65rem; }
  .tbc-name-badge  { padding: 7px 9px; bottom: 10px; }
  .tbc-name        { font-size: .74rem; }
  .tbc-role        { font-size: .6rem; }
}

/* â”€â”€â”€ Override old teacher-circle floating when banner card is present â”€â”€â”€ */
/* â˜… Ø§Ù„Ù€ wrapper ÙŠØªØ­Ø±Ùƒ ÙÙ‚Ø· Ø¨Ù…Ù‚Ø¯Ø§Ø± Ù…Ø­Ø¯ÙˆØ¯ Ø­ØªÙ‰ Ù„Ø§ ÙŠØ®Ø±Ø¬ Ø§Ù„Ø¨Ø§Ù†Ø± Ù…Ù† Ù…Ù†Ø·Ù‚Ø© Ø§Ù„Ù‡ÙŠØ±Ùˆ â˜… */
.teacher-circle-wrapper:has(.teacher-banner-card) {
  animation: tbcWrapperFloat 7s ease-in-out infinite !important;
}

@keyframes tbcWrapperFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0)   rotate(0deg); }
  30%       { transform: translate(-50%, -50%) translateY(-7px) rotate(.3deg); }
  60%       { transform: translate(-50%, -50%) translateY(-4px) rotate(-.2deg); }
}

.teacher-circle-wrapper:has(.teacher-banner-card):hover {
  animation-play-state: paused;
}

/* â”€â”€ DARK MODE â€” extra glow on banner card â”€â”€ */
[data-theme="dark"] .teacher-banner-card {
  box-shadow:
    0 8px 24px rgba(0,0,0,.45),
    0 28px 56px rgba(0,0,0,.55),
    0 0 0 1.5px rgba(39,174,122,.28),
    0 0 80px rgba(39,174,122,.14);
}

/* â”€â”€ Particle shimmer overlay on hover â”€â”€ */
.teacher-banner-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255,255,255,.06) 50%,
    transparent 70%
  );
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  animation: tbcShimmer 3s ease-in-out infinite;
}

@keyframes tbcShimmer {
  0%, 100% { background-position: -100% 0; opacity: 0; }
  40%       { opacity: 1; }
  60%       { background-position: 200% 0; opacity: .7; }
  80%       { opacity: 0; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ENHANCED DARK MODE AESTHETICS (Ø§Ù„ÙˆØ¶Ø¹ Ø§Ù„Ù„ÙŠÙ„ÙŠ Ø§Ù„Ø£Ù†ÙŠÙ‚ ÙˆØ§Ù„Ù…Ù†ÙˆØ±)
/* section divider */

[data-theme="dark"] {
  color-scheme: dark;
}

/* â”€â”€ Dark mode hero glowing ambient light â”€â”€ */
[data-theme="dark"] .hero {
  background: radial-gradient(circle at 50% 20%, rgba(39, 174, 122, 0.15) 0%, rgba(15, 118, 110, 0.08) 40%, #0B1015 80%);
}

[data-theme="dark"] .hero:before {
  background-image: radial-gradient(rgba(52, 200, 141, 0.12) 1.5px, transparent 1.5px);
}

[data-theme="dark"] .shape-1 {
  background: radial-gradient(circle, rgba(52, 200, 141, 0.28) 0%, transparent 70%);
  filter: blur(50px);
}

[data-theme="dark"] .shape-2 {
  background: radial-gradient(circle, rgba(240, 212, 120, 0.22) 0%, transparent 70%);
  filter: blur(50px);
}

/* â”€â”€ Navbar in dark mode â”€â”€ */
[data-theme="dark"] .navbar {
  background: rgba(11, 16, 21, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

[data-theme="dark"] .navbar.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(52, 200, 141, 0.12);
}

/* â”€â”€ Glowing Card & Section Enhancements in Dark Mode â”€â”€ */
[data-theme="dark"] .subjects-section,
[data-theme="dark"] .grades-section,
[data-theme="dark"] .contact-section {
  background: #0B1015;
}

[data-theme="dark"] .about-section {
  background: #0E141C;
}

[data-theme="dark"] .feature-item,
[data-theme="dark"] .highlight-item,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .contact-form {
  background: rgba(22, 30, 42, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .feature-item:hover,
[data-theme="dark"] .highlight-item:hover,
[data-theme="dark"] .contact-card:hover {
  border-color: rgba(52, 200, 141, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(52, 200, 141, 0.2);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ULTRA-PROFESSIONAL COURSE CARD REDESIGN (ÙƒØ§Ø±Øª ÙƒÙˆØ±Ø³ Ø§Ø­ØªØ±Ø§ÙÙŠ)
/* section divider */

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SUBJECT CARDS & COURSES CAROUSEL â€” Ù…Ù†ØµØ© Ø£Ù…ÙŠÙ† Ø®Ù„ÙŠÙ„
   ØªØµÙ…ÙŠÙ… Ù…Ø·ÙˆÙ‘Ø±: ØªØ¨ÙˆÙŠØ¨ ØµÙˆØ±Ø© Ø£ÙƒØ¨Ø±ØŒ Ø²Ø± Ù…Ù„ÙˆÙ‘Ù† Ù…ØªÙˆÙ‡Ù‘Ø¬ØŒ ÙˆØ­Ø±ÙƒØ© Ø§Ù„ØªÙ…Ø±ÙŠØ± Ø§Ù„Ø£ÙÙ‚ÙŠ
/* section divider */

/* â”€â”€ Carousel Slider Wrapper â”€â”€ */
.courses-carousel-wrapper {
  position: relative;
  width: 100%;
  margin-top: 10px;
}

.subjects-carousel {
  display: flex !important;
  gap: 24px;
  overflow-x: auto !important;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 12px 6px 28px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary, #27AE7A) transparent;
}

.subjects-carousel::-webkit-scrollbar {
  height: 6px;
}
.subjects-carousel::-webkit-scrollbar-track {
  background: rgba(0,0,0,.04);
  border-radius: 10px;
}
.subjects-carousel::-webkit-scrollbar-thumb {
  background: var(--primary, #27AE7A);
  border-radius: 10px;
}

.subjects-carousel > .subject-card {
  flex: 0 0 320px;
  min-width: 320px;
  scroll-snap-align: start;
}

@media (max-width: 600px) {
  .subjects-carousel > .subject-card {
    flex: 0 0 280px;
    min-width: 280px;
  }
}

/* Ø£Ø²Ø±Ø§Ø± Ø§Ù„ØªÙ†Ù‚Ù„ ÙŠÙ…ÙŠÙ†Ø§Ù‹ ÙˆÙŠØ³Ø§Ø±Ø§Ù‹ */
.carousel-nav-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface, #ffffff);
  border: 1.5px solid var(--primary, #27AE7A);
  color: var(--primary, #27AE7A);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  transition: all .25s ease;
}
.carousel-nav-btn:hover {
  background: var(--primary, #27AE7A);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 32px rgba(39,174,122,.35);
}
.carousel-nav-btn.prev-btn { right: -20px; }
.carousel-nav-btn.next-btn { left: -20px; }

@media (max-width: 768px) {
  .carousel-nav-btn.prev-btn { right: -5px; }
  .carousel-nav-btn.next-btn { left: -5px; }
}

/* â”€â”€ Ø§Ù„ÙƒØ§Ø±Øª Ø§Ù„Ø±Ø¦ÙŠØ³ÙŠ â”€â”€ */
.subject-card {
  position: relative;
  background: var(--surface, #ffffff);
  border-radius: 24px;
  border: 1.5px solid var(--border, #E8ECEF);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  isolation: isolate;
}

.subject-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--clr, #27AE7A), var(--accent, #E8A020), #0F766E);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 5;
}

.subject-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 20px 48px rgba(39, 174, 122, 0.22), 0 0 30px rgba(39, 174, 122, 0.12);
  border-color: transparent;
}

.subject-card:hover::before {
  opacity: 1;
}

/* â”€â”€ Card Banner â€” ØªØ¨ÙˆÙŠØ¨ Ø§Ù„ØµÙˆØ±Ø© Ø£ÙƒØ¨Ø± (220px) â”€â”€ */
.subject-card .card-banner {
  height: 220px; /* ØªÙ… ØªÙƒØ¨ÙŠØ± Ù…Ø³Ø§Ø­Ø© Ø§Ù„ØµÙˆØ±Ø© Ù„ØªÙƒÙˆÙ† Ø£ÙƒØ¨Ø± Ù…Ù† Ø§Ù„Ù†Øµ */
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr, #166A49), var(--clr2, #51C9A5));
  flex-shrink: 0;
}

/* الصورة الكاملة بدون قص - تظهر بأبعادها الأصلية */
.subject-card .card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 2;
  padding: 8px;
  box-sizing: border-box;
}

.subject-card:hover .card-cover-img {
  transform: scale(1.04);
}

.subject-card .card-banner-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.2'%3E%3Cpolygon points='40,4 52,20 70,20 58,34 63,52 40,43 17,52 22,34 10,20 28,20'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  z-index: 1;
}

.subject-card .card-popular-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #E8A020, #C07F12);
  box-shadow: 0 4px 14px rgba(232, 160, 32, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.subject-card .card-banner-icon {
  position: relative;
  z-index: 3;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
}

.subject-card:hover .card-banner-icon {
  transform: scale(1.12) rotate(-5deg);
}

/* â”€â”€ Card Body â”€â”€ */
.subject-card .card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.subject-card .card-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.subject-card .card-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  background: var(--cat-light, rgba(39, 174, 122, 0.1));
  color: var(--cat-acc, #27AE7A);
  border: 1px solid rgba(39, 174, 122, 0.2);
}

.subject-card .card-grade-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-500, #5A6A7A);
  background: var(--bg-page, #F8FAFC);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border, #E8ECEF);
}

.subject-card .card-title {
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--text-900, #0F1923);
  margin-bottom: 6px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.subject-card:hover .card-title {
  color: var(--clr, #27AE7A);
}

.subject-card .card-desc {
  font-size: 0.84rem;
  color: var(--text-500, #5A6A7A);
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* â”€â”€ Card CTA Button â€” Ø²Ø± Ù…Ù„ÙˆÙ† ÙˆÙ…ØªØ­Ø±Ùƒ ÙˆÙ…Ø´Ø¹ â”€â”€ */
.subject-card .card-cta {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #0D9488 0%, #6366F1 50%, #0E7490 100%);
  background-size: 220% 220%;
  animation: ctaGradFlow 6s ease infinite;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.38), 0 2px 8px rgba(13, 148, 136, 0.25);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1),
              box-shadow 0.3s ease,
              filter 0.2s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

@keyframes ctaGradFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.subject-card .card-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%);
  background-size: 200% 100%;
  background-position: -100% 0;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.subject-card:hover .card-cta {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5), 0 0 24px rgba(13, 148, 136, 0.3);
  filter: brightness(1.1);
}

.subject-card:hover .card-cta::before {
  opacity: 1;
  animation: cardCtaShine 0.8s ease forwards;
}

.subject-card .card-cta:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

@keyframes cardCtaShine {
  0%   { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

.subject-card .card-cta svg {
  transition: transform 0.25s ease;
}

.subject-card:hover .card-cta svg {
  transform: translateX(-6px);
}

/* Dark mode card-cta */
[data-theme="dark"] .subject-card .card-cta {
  background: linear-gradient(135deg, #0F766E 0%, #4F46E5 50%, #0E7490 100%);
  background-size: 220% 220%;
  animation: ctaGradFlow 6s ease infinite;
  box-shadow: 0 6px 22px rgba(79, 70, 229, 0.4), 0 2px 8px rgba(15, 118, 110, 0.3);
}

[data-theme="dark"] .subject-card:hover .card-cta {
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.55), 0 0 28px rgba(15, 118, 110, 0.35);
}

/* â”€â”€ Dark Mode for Subject Cards â”€â”€ */
[data-theme="dark"] .subject-card {
  background: rgba(22, 30, 42, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
}

[data-theme="dark"] .subject-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(52, 200, 141, 0.25);
  border-color: rgba(52, 200, 141, 0.4);
}

[data-theme="dark"] .subject-card .card-title {
  color: #F8FAFC;
}

[data-theme="dark"] .subject-card .card-desc {
  color: #94A3B8;
}

[data-theme="dark"] .subject-card .card-grade-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
}

[data-theme="dark"] .subject-card .card-stats-row {
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .subject-card .card-stat {
  color: #94A3B8;
}

/* â”€â”€ Reduced motion â”€â”€ */
@media (prefers-reduced-motion: reduce) {
  .teacher-banner-card,
  .teacher-banner-card::before,
  .teacher-banner-card::after,
  .subject-card,
  .subject-card .card-cta {
    animation: none !important;
    transition: none !important;
  }
  .teacher-circle-wrapper:has(.teacher-banner-card) {
    animation: none !important;
  }
}

/* Loading spin animation */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; display: inline-block; }

