/* ══════════════════════════════════════════════════════════
   MAESTRO — Home CSS (Premium Modern Look & Glassmorphism)
   نسخة مدمجة بالكامل — معالجة الترتيب الشبكي (3 فوق و 3 تحت)
══════════════════════════════════════════════════════════ */
:root {
  /* Premium Dark Cosmic Gradient — أسود × ذهبي × فضائي */
  --bg:
    radial-gradient(ellipse 55% 40% at 15% -5%,  rgba(212,175,55,.16) 0%, transparent 60%),
    radial-gradient(ellipse 45% 38% at 92% 8%,   rgba(139,92,246,.12) 0%, transparent 62%),
    radial-gradient(ellipse 60% 45% at 50% 108%, rgba(212,175,55,.09) 0%, transparent 70%),
    radial-gradient(ellipse 35% 30% at 70% 55%,  rgba(56,189,248,.05) 0%, transparent 65%),
    linear-gradient(160deg, #000000 0%, #0d0a04 22%, #171209 42%, #0a0806 65%, #000000 100%);
  --bg2: rgba(15, 12, 8, 0.4); 
  --bg3: rgba(24, 19, 12, 0.5);
  --card: rgba(15, 12, 8, 0.6); 
  --card2: rgba(20, 16, 10, 0.7);
  --bd: rgba(212, 175, 55, 0.10); 
  --bd2: rgba(212, 175, 55, 0.20);
  --tx: #e7e2d5; --tx2: #ffffff;
  --mt: #6b6555; --mt2: #b3a98b;
  --nav-bg: rgba(6, 5, 3, 0.68); 
  --footer-bg: rgba(6, 5, 3, 0.92);
  --r: 20px; --shadow: 0 10px 40px rgba(0,0,0,0.5);
}

html.light-mode {
  --bg: linear-gradient(135deg, #f4f7fe 0%, #e6effd 100%);
  --bg2: rgba(232, 237, 248, 0.5); 
  --bg3: rgba(221, 227, 242, 0.6);
  --card: rgba(255, 255, 255, 0.85); 
  --card2: rgba(248, 250, 255, 0.9);
  --bd: rgba(0, 0, 0, 0.06); 
  --bd2: rgba(0, 0, 0, 0.12);
  --tx: #1e2540; --tx2: #0a0e1a;
  --mt: #8892aa; --mt2: #5a6480;
  --nav-bg: rgba(244, 247, 254, 0.75); 
  --footer-bg: rgba(232, 237, 248, 0.9);
  --shadow: 0 10px 40px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background: var(--bg); color: var(--tx);
  background-attachment: fixed;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}

body.inner-page { padding-top: var(--nav-h); }
body.inner-page #nav { background: var(--nav-bg); border-bottom: 1px solid var(--bd); }

::selection { background: var(--g); color: #000; }
#stars-c, #noise-c { position: fixed; inset: 0; z-index: 0; pointer-events: none; transition: opacity .4s; }
#noise-c { opacity: .25; }
html.light-mode #stars-c { opacity: .1; }
html.light-mode #noise-c { opacity: .05; }

/* غبار ذهبي عائم في الفضاء الداكن */
body::before {
  content: '';
  position: fixed; inset: -5% -5% -5% -5%; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.8px 1.8px at 12% 22%, rgba(212,175,55,.55), transparent),
    radial-gradient(1.4px 1.4px at 28% 68%, rgba(212,175,55,.4), transparent),
    radial-gradient(2px 2px at 46% 12%, rgba(212,175,55,.45), transparent),
    radial-gradient(1.5px 1.5px at 63% 55%, rgba(212,175,55,.35), transparent),
    radial-gradient(2px 2px at 78% 30%, rgba(212,175,55,.5), transparent),
    radial-gradient(1.3px 1.3px at 88% 75%, rgba(212,175,55,.35), transparent),
    radial-gradient(1.6px 1.6px at 35% 88%, rgba(212,175,55,.3), transparent),
    radial-gradient(1.4px 1.4px at 95% 12%, rgba(212,175,55,.4), transparent);
  background-repeat: no-repeat;
  opacity: .65;
  animation: goldDustDrift 22s ease-in-out infinite alternate;
}
html.light-mode body::before { opacity: 0; }
@keyframes goldDustDrift {
  0%   { transform: translateY(0) translateX(0) scale(1); }
  50%  { transform: translateY(-18px) translateX(6px) scale(1.015); }
  100% { transform: translateY(-32px) translateX(-4px) scale(1.03); }
}

/* خط توهج ذهبي رفيع أسفل الهيدر عند التمرير */
#nav.solid::after {
  content: '';
  position: absolute; left: 8%; right: 8%; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--g) 50%, transparent);
  opacity: .55;
  animation: navShimmer 3.4s ease-in-out infinite;
}
@keyframes navShimmer { 0%,100% { opacity: .25; } 50% { opacity: .75; } }
html.light-mode #nav.solid::after { opacity: .3; }

/* ── NAVBAR MODERN ── */
#nav {
    position: fixed; top: 0; width: 100%; z-index: 500; 
    padding: 0.8rem 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
}
#nav.solid {
    background: var(--nav-bg);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid var(--bd);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 0.5rem 2rem;
}
.nav-w { max-width: 1360px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--nav-h); }

/* ── LOGO مع هالة ذهبية نابضة ── */
.nav-brand { position: relative; display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand-glow {
    position: absolute; inset: -16px; z-index: 0; pointer-events: none;
    background: radial-gradient(circle, rgba(var(--gr),.55) 0%, rgba(139,92,246,.22) 45%, transparent 75%);
    filter: blur(11px); opacity: .5; border-radius: 50%;
    animation: brandPulse 3.2s ease-in-out infinite;
}
@keyframes brandPulse { 0%,100%{opacity:.35;transform:scale(1);} 50%{opacity:.7;transform:scale(1.18);} }
.brand-img { position: relative; z-index: 1; height: 48px; width: auto; filter: drop-shadow(0 0 15px rgba(var(--gr),.4)); transition: transform 0.3s; }
.nav-brand:hover .brand-img { transform: scale(1.06); }
.nav-brand:hover .brand-glow { opacity: .8; }

.brand-ic {
    position: relative; z-index: 1;
    width: 48px; height: 48px; border-radius: 14px;
    background: linear-gradient(135deg, var(--g), #a68412);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff; box-shadow: 0 4px 20px var(--gg);
}

/* ── روابط القائمة مع أيقونات ملوّنة ── */
.nav-lnks { display: flex; align-items: center; gap: 0.4rem; }
.nav-lnks a {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.95rem; font-weight: 700; color: var(--mt2);
    transition: all 0.3s ease; padding: 0.5rem 1.1rem 0.5rem 0.5rem; border-radius: 99px;
    text-decoration: none;
}
.nav-lnks a:hover, .nav-lnks a.on { color: var(--tx2); background: rgba(255,255,255,0.06); }
html.light-mode .nav-lnks a:hover, html.light-mode .nav-lnks a.on { background: rgba(0,0,0,0.05); }

.nav-ic {
    width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: .92rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 3px 12px var(--gg);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s;
}
.ic-home     { background: linear-gradient(135deg,#ffe9b3,#d4af37); color:#2b2205; }
.ic-grades   { background: linear-gradient(135deg,#d4af37,#9c7a12); color:#1a1400; }
.ic-features { background: linear-gradient(135deg,#e6c78a,#8a6d2f); color:#231a05; }
.ic-default  { background: linear-gradient(135deg,#f0d58c,#b8860b); color:#241c02; }
.nav-lnks a:hover .nav-ic, .nav-lnks a.on .nav-ic {
    transform: scale(1.14) rotate(-6deg);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 5px 18px var(--gg);
}

.nav-acts { display: flex; align-items: center; gap: 0.8rem; }
.btn-gold-n, .btn-ghost-n { 
    display: flex; align-items: center; gap: 8px; font-size: .83rem; 
    border-radius: 99px; text-decoration: none; font-weight: 900; 
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s; 
}
.btn-gold-n { padding: .5rem 1.4rem; background: linear-gradient(135deg, var(--g), rgba(var(--gr),.7)); color: #000; box-shadow: 0 4px 20px var(--gg); }
.btn-ghost-n { padding: .48rem 1.1rem; border: 1.5px solid var(--bd2); color: var(--tx); backdrop-filter: blur(10px); }
.btn-gold-n:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--gg); }
.btn-ghost-n:hover { background: rgba(255,255,255,0.05); border-color: var(--tx); }
html.light-mode .btn-ghost-n:hover { background: rgba(0,0,0,0.05); }

/* زر الثيم العصري */
.theme-toggle-modern { 
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; 
    color: var(--tx); font-size: 1.2rem; background: rgba(255,255,255,0.03); 
    border: 1px solid var(--bd2); width: 44px; height: 44px; 
    border-radius: 50%; cursor: pointer; transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.theme-toggle-glow {
    position: absolute; inset: -6px; z-index: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, var(--g), #a78bfa, #38bdf8, var(--g));
    opacity: .25; filter: blur(6px);
    animation: spinGlow 5s linear infinite;
}
@keyframes spinGlow { to { transform: rotate(360deg); } }
.theme-toggle-icon { position: relative; z-index: 1; display: flex; transition: transform .3s ease, opacity .3s ease; }
.theme-toggle-icon i {
    background: linear-gradient(135deg, var(--g), #fff7d6);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 6px var(--gg));
}
html.light-mode .theme-toggle-icon i {
    background: linear-gradient(135deg, #f59e0b, #fde68a);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.theme-toggle-modern:hover { background: rgba(255,255,255,0.1); transform: rotate(15deg) scale(1.08); color: var(--tx2); }
html.light-mode .theme-toggle-modern { background: rgba(0,0,0,0.03); }
html.light-mode .theme-toggle-modern:hover { background: rgba(0,0,0,0.08); }

.mob-tog { font-size: 1.6rem; display: none; background: transparent; border: none; color: var(--tx); cursor: pointer; transition: color 0.3s; }
.mob-tog:hover { color: var(--g); }

/* ── Mobile Drawer ── */
.mob-overlay { 
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); 
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    z-index: 599; opacity: 0; visibility: hidden; transition: all 0.4s ease; 
}
.mob-overlay.show { opacity: 1; visibility: visible; }
#mob-m {
    position: fixed; top: 0; right: -100%; bottom: 0; width: 320px; max-width: 85%;
    background: var(--nav-bg); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    z-index: 600; display: flex; flex-direction: column; padding: 2.5rem 2rem;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border-left: 1px solid var(--bd); box-shadow: -10px 0 50px rgba(0,0,0,0.4);
}
#mob-m.open { right: 0; }
.mob-hdr { display: flex; justify-content: flex-end; margin-bottom: 2.5rem; }
.mob-cls { background: rgba(255,255,255,0.05); border: 1px solid var(--bd); color: var(--tx); width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.mob-cls:hover { background: var(--g); color: #000; transform: rotate(90deg); }
.mob-links { display: flex; flex-direction: column; gap: 0.5rem; }
.mob-links a { 
    display: flex; align-items: center; gap: 14px; font-size: 1.15rem; font-weight: 700; 
    color: var(--tx); text-decoration: none; padding: .8rem 1.2rem; 
    border-radius: 14px; transition: all 0.3s; border: 1px solid transparent;
}
.mob-links a .nav-ic { width: 40px; height: 40px; border-radius: 12px; font-size: 1.1rem; }
.mob-links a:hover { background: rgba(255,255,255,0.03); border-color: var(--bd); transform: translateX(-5px); }
.mob-links a:hover .nav-ic { transform: scale(1.1) rotate(-6deg); }
html.light-mode .mob-links a:hover { background: rgba(0,0,0,0.03); }
.mob-sep { height: 1px; background: var(--bd); margin: 2rem 0; }
.mob-acts { display: flex; flex-direction: column; gap: 1rem; }
.mob-btn-gold, .mob-btn-ghost { padding: 1.1rem; border-radius: 14px; text-align: center; font-weight: 800; text-decoration: none; font-size: 1.05rem; transition: transform 0.3s; }
.mob-btn-gold { background: linear-gradient(135deg, var(--g), rgba(var(--gr),.7)); color: #000; box-shadow: 0 4px 20px var(--gg); }
.mob-btn-ghost { border: 1.5px solid var(--bd2); color: var(--tx); }
.mob-btn-gold:active, .mob-btn-ghost:active { transform: scale(0.96); }

/* ── HERO SECTION ── */
#hero { position: relative; min-height: 100vh; overflow: hidden; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 55% at 50% -15%, rgba(var(--gr),.16) 0%, transparent 60%); }
.h-track { position: relative; z-index: 10; width: 100%; max-width: 1360px; margin: 0 auto; padding: 8rem 2rem 6rem; }
.slide { display: none; }
.slide.active { display: block; animation: slideIn .85s cubic-bezier(.22,1,.36,1) both; }
@keyframes slideIn { from{opacity:0;transform:translateY(40px) scale(.98);} to{opacity:1;transform:translateY(0) scale(1);} }
.sg { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.sl-num { font-size: .7rem; font-weight: 900; color: var(--mt); letter-spacing: 3px; display: flex; align-items: center; gap: 10px; margin-bottom: 1.2rem; }
.sl-num-bar { height: 1px; width: 40px; background: linear-gradient(90deg, var(--g), transparent); }
.sl-num-cur { color: var(--g); }
.sl-ttl { font-size: clamp(2rem, 5vw, 4.2rem); font-weight: 900; line-height: 1.1; color: var(--tx2); margin-bottom: 1.2rem; }
.sl-ttl .gw { background: linear-gradient(135deg, var(--g) 0%, #fff 50%, var(--g) 100%); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.sl-sub { font-size: 1rem; color: var(--mt2); line-height: 1.9; margin-bottom: 2rem; max-width: 500px; }
.sl-btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.bp { background: linear-gradient(135deg, var(--g), rgba(var(--gr),.75)); color: #000; font-weight: 900; padding: .9rem 2rem; border-radius: 12px; font-size: .95rem; text-decoration: none; box-shadow: 0 6px 24px var(--gg); display: inline-flex; align-items: center; gap: 8px; }
.bs { background: rgba(255,255,255,.05); border: 1.5px solid var(--bd2); color: var(--tx); font-weight: 700; padding: .9rem 1.8rem; border-radius: 12px; text-decoration: none; backdrop-filter: blur(8px); }

/* ── إطار الجوهرة (المُعيّن) الفخم والمتحرك للسلايدر ── */
.sl-vis { position: relative; width: 100%; display: flex; justify-content: center; }
.gem-wrapper {
    position: relative; width: 100%; max-width: 420px; margin: 0 auto; padding-top: 50px;
    display: flex; justify-content: center; align-items: center; z-index: 5;
}
/* التاج الذهبي العائم */
.gem-crown {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    font-size: 2.8rem; color: var(--g); z-index: 10;
    filter: drop-shadow(0 5px 20px var(--gg));
    animation: floatCrown 4s ease-in-out infinite;
}
@keyframes floatCrown { 
    0%, 100% { transform: translate(-50%, 0) scale(1); } 
    50% { transform: translate(-50%, -15px) scale(1.1); text-shadow: 0 0 20px #fff; } 
}
/* المعين الأساسي */
.gem-frame {
    position: relative; width: 280px; height: 280px;
    transform: rotate(45deg);
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(212,175,55,0.1), transparent);
    box-shadow: 0 0 50px rgba(212,175,55,0.15), inset 0 0 0 2px rgba(212,175,55,0.4);
    transition: all 0.5s;
}
/* زوايا الإطار المتحفية */
.gem-frame::before, .gem-frame::after {
    content: ''; position: absolute; width: 40px; height: 40px;
    border: 3px solid var(--g); pointer-events: none; opacity: 0.7;
}
.gem-frame::before { top: -10px; left: -10px; border-right: none; border-bottom: none; border-top-left-radius: 15px; }
.gem-frame::after { bottom: -10px; right: -10px; border-left: none; border-top: none; border-bottom-right-radius: 15px; }

/* الأقواس الدوارة */
.gem-arc {
    position: absolute; inset: -20px; border-radius: 50%;
    border: 2px solid transparent; border-top-color: rgba(212,175,55,0.6); border-bottom-color: rgba(212,175,55,0.2);
    animation: spinArc 15s linear infinite; pointer-events: none;
}
.gem-arc-2 { inset: -35px; border-top-color: transparent; border-bottom-color: transparent; border-left-color: rgba(212,175,55,0.4); animation: spinArc 10s linear infinite reverse; }
@keyframes spinArc { to { transform: rotate(360deg); } }

/* حاوية الصورة وعكس الدوران للصور الطبيعية */
.gem-img-cont {
    position: absolute; inset: 4px; overflow: hidden; border-radius: 35px;
    transform: rotate(-45deg) scale(1.35);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.gem-img-cont img {
    width: 100%; height: 100%; object-fit: cover; object-position: top center;
    transition: transform 0.6s;
}
.gem-wrapper:hover .gem-img-cont img { transform: scale(1.1); }

/* الشرارات صاعدة */
.gem-sparks { position: absolute; inset: 0; pointer-events: none; z-index: 10; overflow: visible; }
.gem-spark {
    position: absolute; bottom: 0; width: 4px; height: 4px; background: #fff;
    border-radius: 50%; box-shadow: 0 0 10px 2px var(--g);
    animation: riseSpark 3s ease-in infinite; opacity: 0;
}
.gem-spark:nth-child(1) { left: 20%; animation-delay: 0s; animation-duration: 2.5s; }
.gem-spark:nth-child(2) { left: 50%; animation-delay: 1s; animation-duration: 3s; }
.gem-spark:nth-child(3) { left: 80%; animation-delay: 0.5s; animation-duration: 2.8s; }
@keyframes riseSpark { 0% { bottom: -20px; opacity: 0; transform: scale(0.5); } 20% { opacity: 1; } 100% { bottom: 120%; opacity: 0; transform: scale(1.5); } }

.s-ctrl { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: .75rem; background: rgba(6,8,15,.5); padding: .5rem .9rem; border-radius: 99px; border: 1px solid var(--bd2); backdrop-filter: blur(10px); }

/* ── COMMON SECTIONS ── */
.section { padding: 5rem 2rem; position: relative; z-index: 10; }
.secw { max-width: 1360px; margin: 0 auto; }
.shdr { margin-bottom: 3rem; text-align: center; }
.stag { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: .7rem; font-weight: 900; color: var(--g); letter-spacing: 2px; }
.stag::before { content:''; width: 6px; height: 6px; border-radius: 50%; background: var(--g); box-shadow: 0 0 10px var(--gg); }

/* خط متحرك وراقي أسفل عناوين الأقسام عند الهوفر على السكشن */
.sttl { font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 900; color: var(--tx2); margin-top: .5rem; position: relative; display: inline-block; padding-bottom: 12px; }
.sttl::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 60px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--g), transparent);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.secw:hover .sttl::after { width: 140px; }
.ssub { font-size: .95rem; color: var(--mt2); max-width: 500px; margin: 1rem auto 0; }

/* ── STATS ── */
.stats-bar { background: var(--bg2); border-top: 1px solid var(--bd); border-bottom: 1px solid var(--bd); backdrop-filter: blur(15px); }
.stats-in { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-c { padding: 2rem 1rem; text-align: center; border-left: 1px solid var(--bd); }
.sn { font-size: 2.2rem; font-weight: 900; color: var(--g); display: block; }
.sl2 { font-size: .8rem; color: var(--mt2); font-weight: 600; }

/* ── كروت المراحل بتخطيط شبكي ثلاثي مرتب (3 فوق و 3 تحت بالتحديد) ── */
.gg2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* تضمن تقسيم الشاشة لـ 3 أعمدة بشكل متوازي */
    gap: 2rem;
    align-items: start; /* تمنع تمطيط الصور رأسياً وتحافظ على أبعادها وارتفاعاتها الطبيعية */
}

.gc {
    display: block; width: 100%;
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important; /* إلغاء ظل الحاوية المربعة لمنع الفراغات البيضاء */
    border-radius: 0 !important;
    overflow: visible !important; /* للسماح للظلال المفرغة بالانتشار بحرية */
    position: relative;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}
.gc:hover { transform: translateY(-10px) scale(1.02); }

/* عرض الصورة الطبيعية مع ظل مخصص يتبع حدود الـ PNG */
.gc-img-el {
    width: 100%; height: auto !important;
    display: block; aspect-ratio: auto;
    transition: transform .7s cubic-bezier(.22,1,.36,1), filter .5s;
    /* ظل مفرغ يتبع الصورة وليس مربعاً */
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5)) saturate(1.05) contrast(1.02);
}
.gc:hover .gc-img-el { 
    transform: scale(1.05); 
    filter: drop-shadow(0 25px 40px rgba(0,0,0,0.7)) saturate(1.15) contrast(1.05) brightness(1.03); 
}

/* إلغاء تأثير اللمعان القديم لتعارضه مع الحواف الشفافة */
.gc-shine { display: none !important; }

/* زر التوجيه يظهر عائماً أسفل الكارت */
.gc-hover-cta {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: 1rem 1.5rem; color: #fff; font-weight: 900; font-size: 1.1rem;
  background: radial-gradient(ellipse at bottom, rgba(0,0,0,0.85) 0%, transparent 100%);
  border-radius: 0 0 20px 20px;
  opacity: 0; transform: translateY(10px); transition: all 0.4s;
}
.gc:hover .gc-hover-cta { opacity: 1; transform: translateY(0); }
.gc-hover-cta i { color: var(--g); transition: transform .4s; }
.gc:hover .gc-hover-cta i { transform: translateX(-6px); }

/* الكروت البديلة في حال عدم توفر صورة */
.gc.gc-plain { background: var(--card) !important; border: 1px solid var(--bd) !important; box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important; border-radius: var(--r) !important; overflow: hidden !important; }
.gc.gc-plain .gc-bg { position: absolute; inset: 0; }
.gc.gc-plain .gc-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,8,15,.96) 0%, transparent 100%); }
.gc.gc-plain .gc-body { position: relative; z-index: 3; padding: 2rem; }
.gc-ttl { font-size: 1.3rem; font-weight: 900; color: #fff; }

/* ── المميزات مع تأثير الشريط الذهبي المتحرك ── */
.fg2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.fc { 
    padding: 2.2rem; background: var(--card); border: 1px solid var(--bd); border-radius: var(--r);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: all .4s; position: relative; overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.fc:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); }

.fc::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--g), #fff, var(--g), transparent);
    transition: left 0.7s ease-in-out; opacity: 0.8;
}
.fc:hover::before { left: 100%; }

.fc-ic {
  width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; font-size: 1.4rem; color: #241c02;
  background: linear-gradient(135deg, #ffe9b3, var(--g));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 6px 18px var(--gg);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.fc:hover .fc-ic { transform: scale(1.1) rotate(-6deg); }
.fc-t { font-size: 1.1rem; font-weight: 900; color: var(--tx2); margin-bottom: .5rem; }
.fc-d { font-size: .88rem; color: var(--mt2); line-height: 1.8; }

/* ── توهج وهالة خلف الـ CTA ── */
.cta { position: relative; padding: 5rem 2rem; text-align: center; overflow: hidden; border: none !important; z-index: 10; }
.cta::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80%; height: 200%;
    background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 60%);
    z-index: -1; pointer-events: none; animation: pulseGlow 6s alternate infinite;
}
@keyframes pulseGlow { from { opacity: 0.6; transform: translate(-50%, -50%) scale(0.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } }
.cta-t { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; color: var(--tx2); margin-bottom: 1rem; }

/* ── FOOTER ── */
footer { background: var(--footer-bg); border-top: 1px solid var(--bd); padding-top: 0; position: relative; z-index: 10; backdrop-filter: blur(20px); overflow: hidden; }
.ft-glow-line { position: relative; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--gr),.7) 50%, transparent); }
.ft-glow-line::after {
  content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 220px; height: 3px; background: var(--g); filter: blur(10px); opacity: .65;
}
.ft { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2rem; padding: 4rem 2rem 3rem; }
.ft-brand-link { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-bottom: 1rem; }
.ft-logo-t { font-size: 1.2rem; font-weight: 900; color: var(--tx2); }
.ft-desc { font-size: .9rem; color: var(--mt2); line-height: 1.8; margin: 1rem 0; max-width: 320px; }
.ft-social { display: flex; gap: .7rem; margin-top: 1.3rem; }
.ft-soc-ic {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(var(--gr),.14), rgba(var(--gr),.04));
    border: 1px solid var(--bd2); color: var(--g); font-size: 1.05rem; text-decoration: none;
    transition: all .35s cubic-bezier(.34,1.56,.64,1);
}
.ft-soc-ic:hover {
    background: linear-gradient(135deg, #ffe9b3, var(--g));
    color: #241c02; transform: translateY(-4px) rotate(-6deg);
    box-shadow: 0 10px 24px var(--gg);
}
.ft-ct { display: flex; align-items: center; gap: 9px; font-size: 1rem; font-weight: 900; color: var(--tx2); margin-bottom: 1.2rem; }
.ft-ct-bar { width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--g), transparent); }
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: .9rem; }
.ft-col a { display: inline-flex; align-items: center; gap: 8px; color: var(--mt2); text-decoration: none; font-size: .9rem; transition: color 0.3s, transform .3s; }
.ft-col a:hover { color: var(--g); transform: translateX(-4px); }
.ft-col a i { font-size: .72rem; color: var(--g); opacity: .8; }
.ft-contact-line { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--mt2); margin-top: .9rem; }
.ft-contact-line i { color: var(--g); width: 16px; text-align: center; }

/* شارات الثقة */
.ft-badges { max-width: 1360px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; padding: 0 2rem 3rem; }
.ft-badge {
    display: flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 700; color: var(--mt2);
    background: rgba(var(--gr),.06); border: 1px solid var(--bd); padding: .6rem 1.2rem; border-radius: 99px;
    transition: all .3s;
}
.ft-badge:hover { border-color: var(--bd2); background: rgba(var(--gr),.1); color: var(--tx2); }
.ft-badge i { color: var(--g); }
.ft-bot { max-width: 1360px; margin: 0 auto; border-top: 1px solid var(--bd); padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center; }

/* زر العودة لأعلى */
.btt-btn {
    position: fixed; bottom: 24px; left: 24px; z-index: 400;
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15);
    background: linear-gradient(135deg, #ffe9b3, var(--g), #9c7a12); color: #241c02;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer;
    box-shadow: 0 10px 28px var(--gg);
    opacity: 0; visibility: hidden; transform: translateY(20px) scale(.9);
    transition: all .4s cubic-bezier(.34,1.56,.64,1);
}
.btt-btn.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.btt-btn:hover { transform: translateY(-5px) scale(1.06); box-shadow: 0 14px 34px var(--gg); }

/* ── RESPONSIVENESS ── */
@media (max-width: 1024px) {
  .gg2 { grid-template-columns: repeat(2, 1fr); } /* صفين على التابلت */
  .fg2 { grid-template-columns: repeat(2, 1fr); }
  .ft { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-w { padding: 0 0.5rem; }
  .nav-lnks, .btn-ghost-n, .btn-gold-n { display: none; }
  .mob-tog { display: flex; }
  
  #hero { min-height: auto; padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 3rem; }
  .h-track { padding: 2rem 1rem; }
  .sg { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .sl-sub { margin-left: auto; margin-right: auto; }
  .sl-btns { justify-content: center; }
  
  .gem-wrapper { max-width: 280px; }
  .gem-frame { width: 200px; height: 200px; }
  .gem-img-cont { border-radius: 25px; }
  .gem-crown { font-size: 2rem; top: -5px; }
  
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stat-c { border-bottom: 1px solid var(--bd); padding: 1.5rem; }
  .stat-c:nth-child(even) { border-left: none; }
  
  .section, .cta { padding: 4rem 1.2rem; }
  
  .gg2 { grid-template-columns: 1fr; } /* عمود واحد مريح على الشاشات الصغيرة جداً للموبايل */
  .fg2 { grid-template-columns: 1fr; }
  
  .ft { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 1.2rem 2.5rem; text-align: center; }
  .ft-brand-link { justify-content: center; }
  .ft-desc { margin: 1rem auto; }
  .ft-social { justify-content: center; }
  .ft-ct { justify-content: center; }
  .ft-col a { justify-content: center; }
  .ft-contact-line { justify-content: center; }
  .ft-badges { padding: 0 1.2rem 2.5rem; }
  .ft-bot { flex-direction: column; text-align: center; gap: 1rem; padding: 1.5rem 1.2rem; }
  .btt-btn { left: 14px; bottom: 14px; width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  .sl-ttl { font-size: 2.2rem; }
  .bp, .bs { width: 100%; justify-content: center; }
  .stats-in { grid-template-columns: 1fr; }
  .stat-c { border-left: none; border-bottom: 1px solid var(--bd); }
}

.rv { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.rv.v { opacity: 1; transform: translateY(0); }

















/* ══════════════════════════════════════════════════════════
   قسم الهيرو الذهبي — نسخة فاخرة v3
   استبدل بيه ملف hero-gold-final.css بالكامل
══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Noto+Sans+Egyptian+Hieroglyphs&display=swap');

:root {
    --gold-1: #FFE9B8;
    --gold-2: #FFC74F;
    --gold-3: #D89B2E;
    --gold-4: #8a5f14;
    --ink: #14110b;
    --ink-soft: #55503f;
    --glass-bg: rgba(20, 14, 4, 0.55);
    --glass-border: rgba(255, 199, 79, 0.35);
}

/* ---------- توهج خلفي خلف القسم كله يدي إحساس فخامة ---------- */
#hero {
    position: relative;
    isolation: isolate;
}

#hero::before {
    content: '';
    position: absolute;
    inset: -10% -5%;
    z-index: -1;
    background:
        radial-gradient(45% 55% at 22% 45%, rgba(255, 199, 79, 0.32), transparent 70%),
        radial-gradient(30% 40% at 85% 20%, rgba(255, 199, 79, 0.14), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

.hero { padding: 60px 20px; gap: 30px; }

.sl-content {
    flex: 1 1 50%;
    padding: 10px 20px;
    position: relative;
    z-index: 2;
    font-family: 'Cairo', sans-serif;
}

.sl-content::before {
    content: '𓋹';
    position: absolute;
    top: -30px;
    left: -10px;
    font-family: 'Noto Sans Egyptian Hieroglyphs', sans-serif;
    font-size: 8rem;
    color: rgba(216, 155, 46, 0.07);
    z-index: -1;
    pointer-events: none;
}

.sl-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 130px;
    margin: 0 0 26px;
}

.sl-divider::before, .sl-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, var(--gold-3));
}

.sl-divider span {
    width: 6px;
    height: 6px;
    background: var(--gold-2);
    transform: rotate(45deg);
    box-shadow: 0 0 8px rgba(255,199,79,.6);
}

/* ---------- الشارة الفاخرة ---------- */
.stag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #241a08, #14100a);
    border: 1px solid var(--glass-border);
    color: var(--gold-1);
    padding: 9px 22px 9px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.06);
}

.stag::before {
    content: '𓂀';
    font-family: 'Noto Sans Egyptian Hieroglyphs', sans-serif;
    font-size: 1.05rem;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
    color: #1b1204;
    flex-shrink: 0;
}

/* ---------- العنوان ---------- */
.sl-ttl {
    font-family: 'Cairo', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 20px;
    color: var(--ink);
}

.sl-ttl .gw {
    background: linear-gradient(120deg, var(--gold-3) 0%, var(--gold-2) 45%, var(--gold-1) 65%, var(--gold-2) 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    animation: shineText 5s linear infinite;
}

@keyframes shineText {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ---------- الفقرة ---------- */
.sl-sub {
    font-size: 1.12rem;
    line-height: 1.85;
    color: var(--ink-soft);
    margin-bottom: 30px;
    max-width: 500px;
}

/* ---------- الأزرار ---------- */
.sl-btns { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.bp, .bs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 40px;
    font-weight: 800;
    font-size: 1.03rem;
    letter-spacing: 0.3px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.bp {
    background: linear-gradient(160deg, var(--gold-1), var(--gold-2) 45%, var(--gold-3) 100%);
    color: #241a06;
    box-shadow: 0 10px 26px rgba(216, 155, 46, 0.45), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 4px rgba(120, 80, 10, .35);
}

.bp::after {
    content: '';
    width: 8px;
    height: 8px;
    border-left: 2px solid #241a06;
    border-bottom: 2px solid #241a06;
    transform: rotate(45deg);
    transition: transform .25s ease;
}

.bp:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(216, 155, 46, 0.6), inset 0 1px 0 rgba(255,255,255,.6); }
.bp:hover::after { transform: rotate(45deg) translate(-3px, -3px); }

.bs {
    background: rgba(0,0,0,.03);
    color: var(--ink);
    border: 1.5px solid rgba(0,0,0,.13);
}

.bs:hover { border-color: var(--gold-3); color: var(--gold-4); }

.sl-vis { flex: 1 1 50%; text-align: center; }

/* ══════════════════════════════════════════════════════════
   الدايرة الذهبية المعدنية + صورة المدرس
══════════════════════════════════════════════════════════ */
.teacher-image-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    z-index: 1;
}

/* طبقة ذهبية ثابتة تحت كل حاجة — تضمن إن أي فراغ بين الأشكال المتحركة
   يبان دهب برضه، مش خلفية الموقع */
.teacher-image-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 132%;
    height: 132%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--gold-1), var(--gold-2) 55%, var(--gold-4) 100%);
    z-index: 0;
    box-shadow: 0 0 50px rgba(255, 199, 79, .3);
}

.teacher-img {
    position: relative;
    z-index: 10;
    width: 88%;
    max-width: 370px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top center;
    border-radius: 42% 58% 60% 40% / 45% 40% 60% 55%;
    overflow: hidden;
    animation: fluidShape 7s ease-in-out infinite alternate;
    box-shadow: 0 20px 45px rgba(0,0,0,.2);
}

.organic-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: fluidShape 7s ease-in-out infinite alternate;
}

.blob-bg-1 {
    width: 122%;
    height: 122%;
    z-index: 1;
    background:
        linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55) 48%, transparent 62%),
        linear-gradient(150deg, var(--gold-1) 0%, var(--gold-2) 40%, var(--gold-3) 75%, var(--gold-4) 100%);
    background-size: 260% 260%, 100% 100%;
    animation: fluidShape 7s ease-in-out infinite alternate, shineSweep 4.5s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(255, 199, 79, .35);
}

@keyframes shineSweep {
    0% { background-position: 0% 0%, 0 0; }
    50% { background-position: 100% 100%, 0 0; }
    100% { background-position: 0% 0%, 0 0; }
}

.blob-bg-2 {
    width: 98%;
    height: 98%;
    background-color: #fffaf0;
    z-index: 2;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-delay: -2s;
    box-shadow: inset 0 0 30px rgba(216,155,46,.12), 0 15px 35px rgba(0,0,0,.14);
}

.blob-bg-3 {
    width: 26%;
    height: 26%;
    background: radial-gradient(circle at 35% 35%, var(--gold-1), var(--gold-3) 75%);
    z-index: 4;
    top: 28%;
    left: 80%;
    border-radius: 50% 50% 30% 70% / 50% 50% 70% 30%;
    animation-delay: -4s;
    box-shadow: 0 0 20px rgba(255,199,79,.5);
}

@keyframes fluidShape {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    100% { border-radius: 30% 70% 50% 50% / 30% 30% 70% 70%; }
}

/* ══════════════════════════════════════════════════════════
   الرموز الفرعونية الطايرة
══════════════════════════════════════════════════════════ */
.floating-chem, .floating-icon {
    position: absolute;
    z-index: 15;
    background: linear-gradient(165deg, #241a08, #0e0a04);
    border: 1px solid var(--glass-border);
    color: var(--gold-1);
    border-radius: 14px;
    padding: 9px 15px;
    font-family: 'Noto Sans Egyptian Hieroglyphs', sans-serif;
    font-size: 1.45rem;
    line-height: 1;
    box-shadow: 0 0 18px rgba(255, 199, 79, 0.25), 0 8px 16px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatHistory 4s ease-in-out infinite alternate;
    transition: transform 0.3s, box-shadow 0.3s;
}

.floating-chem:hover, .floating-icon:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 0 26px rgba(255, 199, 79, 0.45), 0 10px 22px rgba(0,0,0,.4);
}

.floating-icon { border-radius: 50%; width: 52px; height: 52px; padding: 0; font-size: 1.5rem; }

.chem-1 { top: 4%; left: 6%; animation-delay: 0s; }
.chem-2 { top: 54%; right: -2%; animation-delay: 1.1s; }
.chem-3 { bottom: 4%; left: 13%; animation-delay: 2s; }
.chem-4 { top: 18%; right: -10%; animation-delay: 0.6s; }
.icon-1 { bottom: 20%; right: 3%; animation-delay: 0.4s; }
.icon-2 { bottom: -2%; left: -2%; animation-delay: 1.6s; }

@keyframes floatHistory {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-12px) scale(1.04); }
}

.history-mark {
    position: absolute;
    z-index: 3;
    font-family: 'Noto Sans Egyptian Hieroglyphs', sans-serif;
    color: rgba(180, 130, 30, 0.22);
    animation: fadeGlyph 5s ease-in-out infinite alternate;
    pointer-events: none;
}

.mark-1 { top: 0%; right: 22%; animation-delay: 0s; font-size: 2.4rem; }
.mark-2 { bottom: 10%; right: -4%; animation-delay: 1.5s; font-size: 1.9rem; }
.mark-3 { top: 38%; left: -4%; animation-delay: 3s; font-size: 2.6rem; color: rgba(180, 130, 30, 0.14); }

@keyframes fadeGlyph {
    0% { opacity: 0.5; transform: scale(1) rotate(0deg); }
    100% { opacity: 1; transform: scale(1.08) rotate(3deg); }
}

.particles { position: absolute; inset: 0; z-index: 5; pointer-events: none; }

.particle {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--gold-1);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 199, 79, 0.8);
    animation: floatUp 4.5s linear infinite;
    opacity: 0;
}

.p-1 { left: 15%; bottom: 10%; animation-duration: 6s; width: 3px; height: 3px; }
.p-2 { left: 45%; bottom: 5%; animation-duration: 4.5s; animation-delay: .8s; }
.p-3 { left: 80%; bottom: 15%; animation-duration: 5.2s; animation-delay: 1.6s; }
.p-4 { left: 25%; bottom: 20%; animation-duration: 6.5s; animation-delay: .4s; width: 3px; height: 3px; }
.p-5 { left: 70%; bottom: 0; animation-duration: 4.8s; animation-delay: 1.2s; }
.p-6 { left: 55%; bottom: 25%; animation-duration: 5.5s; animation-delay: 2.4s; width: 3px; height: 3px; }
.p-7 { left: 35%; bottom: 0; animation-duration: 6.2s; animation-delay: 3.2s; width: 5px; height: 5px; }

@keyframes floatUp {
    0% { transform: translateY(0); opacity: 0; }
    15% { opacity: .8; }
    70% { opacity: .5; }
    100% { transform: translateY(-120px); opacity: 0; }
}

/* ══════════════════════════════════════════════════════════
   أسهم ونقاط التنقل — تصميم زجاجي عائم موديل 2026
══════════════════════════════════════════════════════════ */
.s-ctrl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 44px auto 0;
    width: fit-content;
    padding: 10px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.sarr {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,199,79,.4);
    background: transparent;
    color: var(--gold-1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s ease;
    font-size: .95rem;
}

.sarr:hover {
    background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
    color: #1b1204;
    box-shadow: 0 0 16px rgba(255,199,79,.5);
    transform: scale(1.06);
}

.sdts { display: flex; gap: 7px; align-items: center; }

.sdot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,199,79,.35);
    border: none;
    cursor: pointer;
    transition: all .3s ease;
    padding: 0;
}

.sdot.on {
    width: 24px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--gold-1), var(--gold-3));
    box-shadow: 0 0 10px rgba(255,199,79,.5);
}

/* ---------- استجابة الموبايل ---------- */
@media (max-width: 768px) {
    .hero { flex-direction: column-reverse; text-align: center; padding: 30px 15px; }
    .sl-content { text-align: center; }
    .sl-ttl { font-size: 2rem; }
    .sl-sub { font-size: 1rem; margin-left: auto; margin-right: auto; }
    .sl-btns { justify-content: center; }
    .teacher-image-wrap { max-width: 270px; }
    .floating-chem, .floating-icon { transform: scale(.82); }
}
