/* ================================================================
   EduSystem — PRO MAX Website Stylesheet
   Glassmorphism · Motion Design · RTL-ready · Dark mode
   ================================================================ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --ws-primary:        #6366f1;
  --ws-primary-dark:   #4f46e5;
  --ws-primary-light:  #eef2ff;
  --ws-primary-rgb:    99,102,241;
  --ws-secondary:      #10b981;
  --ws-secondary-dark: #059669;
  --ws-secondary-light:#d1fae5;
  --ws-secondary-rgb:  16,185,129;
  --ws-accent:         #f59e0b;
  --ws-accent-light:   #fef3c7;
  --ws-danger:         #ef4444;

  --ws-dark:    #0f172a;
  --ws-dark-2:  #1e293b;
  --ws-text:    #334155;
  --ws-text-2:  #475569;
  /* كان #64748b (slate-500) وهو يَرسب في WCAG على خلفيّات هذا الموقع:
   * 4.41 على #f8fafc و4.34 على #f1f5f9، والمطلوب 4.5 — مقيسًا في المتصفّح
   * على ستّة مواضع (وصف القسم وتسميات التواصل الأربع). الفرق صغير والأثر
   * ليس كذلك: النصّ الخافت هو ما يُقرأ على هاتفٍ في ضوء النهار.
   * #475569 (slate-600) يعطي 7.0 على الأبيض و6.3 على #f1f5f9. */
  --ws-text-light: #475569;
  --ws-muted:   #64748b;

  --ws-bg:         #ffffff;
  --ws-bg-alt:     #f8fafc;
  --ws-bg-section: #f1f5f9;
  --ws-border:     #e2e8f0;
  --ws-border-light: #f1f5f9;

  --ws-radius:     16px;
  --ws-radius-sm:  10px;
  --ws-radius-xs:  6px;
  --ws-radius-pill:50px;
  --ws-radius-full:9999px;

  --ws-shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --ws-shadow:    0 1px 3px rgba(0,0,0,.07), 0 2px 8px rgba(0,0,0,.05);
  --ws-shadow-md: 0 4px 14px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.05);
  --ws-shadow-lg: 0 12px 32px rgba(0,0,0,.1),  0 4px 10px rgba(0,0,0,.06);
  --ws-shadow-xl: 0 24px 48px rgba(0,0,0,.12), 0 8px 18px rgba(0,0,0,.07);
  --ws-shadow-glow: 0 0 30px rgba(var(--ws-primary-rgb),.25);
  --ws-shadow-glow-sm: 0 0 16px rgba(var(--ws-primary-rgb),.18);

  --ws-transition:      .28s cubic-bezier(.4,0,.2,1);
  --ws-transition-slow: .5s  cubic-bezier(.4,0,.2,1);
  --ws-transition-spring: .4s cubic-bezier(.34,1.56,.64,1);

  --ws-font:    'Inter','Segoe UI',-apple-system,sans-serif;
  --ws-font-ar: 'Cairo','Tajawal','Segoe UI',sans-serif;
  --ws-container: 1240px;

  --ws-nav-h: 72px;
  --ws-topbar-h: 38px;
}

/* ── Dark mode overrides ─────────────────────────────────────── */
[data-bs-theme="dark"] {
  --ws-dark:    #f1f5f9;
  --ws-dark-2:  #e2e8f0;
  --ws-text:    #cbd5e1;
  --ws-text-2:  #94a3b8;
  --ws-text-light: #64748b;
  --ws-muted:   #475569;
  --ws-bg:         #0f172a;
  --ws-bg-alt:     #1e293b;
  --ws-bg-section: #1e293b;
  --ws-border:     #334155;
  --ws-border-light:#1e293b;
  --ws-primary-light: rgba(99,102,241,.14);
  --ws-secondary-light: rgba(16,185,129,.14);
  --ws-accent-light: rgba(245,158,11,.14);
  --ws-shadow:    0 1px 3px rgba(0,0,0,.25), 0 2px 8px rgba(0,0,0,.18);
  --ws-shadow-md: 0 4px 14px rgba(0,0,0,.3),  0 2px 6px rgba(0,0,0,.2);
  --ws-shadow-lg: 0 12px 32px rgba(0,0,0,.35), 0 4px 10px rgba(0,0,0,.25);
  --ws-shadow-glow: 0 0 30px rgba(99,102,241,.35);
}

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

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

body {
  font-family: var(--ws-font);
  color: var(--ws-text);
  background: var(--ws-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[lang="ar"] body, [dir="rtl"] body { font-family: var(--ws-font-ar); }

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; transition: var(--ws-transition); }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ── 3. LAYOUT HELPERS ─────────────────────────────────────────── */
.ws-container {
  width: 100%;
  max-width: var(--ws-container);
  margin-inline: auto;
  padding-inline: 24px;
}
.ws-section {
  padding-block: 80px;
  position: relative;
}
.ws-section-alt { background: var(--ws-bg-section); }
.ws-section-dark { background: var(--ws-dark-2); }

/* ── 4. SKIP LINK (accessibility) ─────────────────────────────── */
.ws-skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 999999;
  padding: 10px 20px; background: var(--ws-primary); color: #fff;
  border-radius: var(--ws-radius-sm); font-size: .85rem; font-weight: 600;
  transition: top .2s;
}
.ws-skip-link:focus { top: 12px; color: #fff; }

/* ── 5. SCROLL PROGRESS ───────────────────────────────────────── */
.ws-scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--ws-primary), var(--ws-secondary));
  z-index: 100000; transition: width .1s linear;
  box-shadow: 0 0 10px rgba(var(--ws-primary-rgb),.5);
}

/* ── 6. PRELOADER ─────────────────────────────────────────────── */
.ws-preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--ws-bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .4s ease, visibility .4s ease;
}
.ws-preloader.ws-loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.ws-preloader-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--ws-border);
  border-top-color: var(--ws-primary);
  border-radius: 50%;
  animation: ws-spin .7s linear infinite;
}
@keyframes ws-spin { to { transform: rotate(360deg); } }

/* ── 7. TOPBAR ────────────────────────────────────────────────── */
.ws-topbar {
  background: var(--ws-dark);
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  height: var(--ws-topbar-h);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 200;
}
.ws-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--ws-container);
  margin-inline: auto;
  padding-inline: 24px;
  gap: 16px;
}
.ws-topbar-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ws-topbar-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: .8;
  transition: opacity .2s;
}
.ws-topbar-info span:hover { opacity: 1; }
.ws-topbar-info i { color: var(--ws-primary); font-size: .8rem; }
.ws-topbar-social {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ws-topbar-social a {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  transition: var(--ws-transition);
}
.ws-topbar-social a:hover {
  background: var(--ws-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ── 8. NAVBAR ────────────────────────────────────────────────── */
.ws-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 998;
  backdrop-filter: blur(2px);
}
.ws-nav-overlay.active { display: block; }

.ws-navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  height: var(--ws-nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.ws-navbar.ws-navbar-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  border-bottom-color: var(--ws-border);
}
.ws-navbar.ws-navbar-hidden { transform: translateY(-100%); }
[data-bs-theme="dark"] .ws-navbar {
  background: rgba(15,23,42,.92);
  border-bottom-color: var(--ws-border);
}

.ws-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--ws-container);
  margin-inline: auto;
  padding-inline: 24px;
  height: 100%;
  gap: 24px;
}

/* Brand */
.ws-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.ws-brand-logo {
  height: 44px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}
.ws-brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ws-dark);
  line-height: 1.25;
  max-width: 200px;
  letter-spacing: -.02em;
}
[lang="ar"] .ws-brand-name { letter-spacing: 0; font-size: 1.1rem; }

/* Nav links */
.ws-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.ws-nav li a {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--ws-radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--ws-text);
  white-space: nowrap;
  transition: var(--ws-transition);
  position: relative;
}
.ws-nav li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%; right: 50%;
  height: 2px;
  background: var(--ws-primary);
  border-radius: 2px;
  transition: left .25s ease, right .25s ease;
}
.ws-nav li a:hover,
.ws-nav li.active a {
  color: var(--ws-primary);
  background: var(--ws-primary-light);
}
.ws-nav li a:hover::after,
.ws-nav li.active a::after { left: 14px; right: 14px; }

/* Nav actions */
.ws-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ws-nav-actions-mobile { display: none; }

/* Mobile hamburger */
.ws-menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--ws-radius-sm);
  border: 2px solid var(--ws-border);
  background: transparent;
  color: var(--ws-text);
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
  transition: var(--ws-transition);
  flex-shrink: 0;
}
.ws-menu-toggle .fa-times { display: none; }
.ws-menu-toggle.active .fa-bars  { display: none; }
.ws-menu-toggle.active .fa-times { display: inline; }
.ws-menu-toggle:hover {
  background: var(--ws-primary-light);
  border-color: var(--ws-primary);
  color: var(--ws-primary);
}

/* Theme toggle */
.ws-theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--ws-border);
  background: var(--ws-bg-alt);
  color: var(--ws-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--ws-transition);
}
.ws-theme-toggle:hover { border-color: var(--ws-primary); color: var(--ws-primary); background: var(--ws-primary-light); }
.ws-theme-toggle .fa-sun  { display: none; }
.ws-theme-toggle .fa-moon { display: inline; }
[data-bs-theme="dark"] .ws-theme-toggle .fa-sun  { display: inline; }
[data-bs-theme="dark"] .ws-theme-toggle .fa-moon { display: none; }

/* ── 9. BUTTONS ───────────────────────────────────────────────── */
.ws-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--ws-radius-pill);
  font-size: .875rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--ws-transition-spring);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.ws-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background .2s;
}
.ws-btn:hover::before { background: rgba(255,255,255,.12); }
.ws-btn:active { transform: scale(.97); }

.ws-btn-primary {
  background: linear-gradient(135deg, var(--ws-primary), var(--ws-primary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(var(--ws-primary-rgb),.35);
}
.ws-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(var(--ws-primary-rgb),.45);
  color: #fff;
}
.ws-btn-secondary {
  background: linear-gradient(135deg, var(--ws-secondary), var(--ws-secondary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(var(--ws-secondary-rgb),.35);
}
.ws-btn-secondary:hover { transform: translateY(-2px); color: #fff; }
.ws-btn-outline {
  border-color: var(--ws-primary);
  /* الحدُّ يبقى بلونِ الهويّةِ، والنصُّ بالدرجةِ الأغمق: `--ws-primary` على
   * خلفيّةِ القسمِ الرماديّةِ (241,245,249) كانت 4.08، وهي 4.5 المطلوبة.
   * والحدُّ لا تشترط له WCAG نسبةَ نصّ، فتُحفظ الهويّةُ ويُقرأ النصّ. */
  color: var(--ws-primary-dark);
  background: transparent;
}
.ws-btn-outline:hover { background: var(--ws-primary); color: #fff; transform: translateY(-2px); }
.ws-btn-white {
  background: #fff;
  color: var(--ws-primary);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.ws-btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.ws-btn-ghost { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.3); }
.ws-btn-ghost:hover { background: rgba(255,255,255,.28); color: #fff; }

.ws-btn-sm  { padding: 7px 16px; font-size: .8rem; }
.ws-btn-lg  { padding: 14px 30px; font-size: 1rem; }
.ws-btn-xl  { padding: 16px 38px; font-size: 1.05rem; }
.ws-btn-block { width: 100%; justify-content: center; }

/* ── 10. SECTION HEADERS ──────────────────────────────────────── */
.ws-section-header {
  text-align: center;
  margin-bottom: 56px;
}
.ws-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  /* النصّ بالدرجة الغامقة لا بلون العلامة نفسه.
   * `--ws-primary` على `--ws-primary-light` يعطي 3.63 والمطلوب 4.5 لنصٍّ
   * بهذا الحجم (12.5px) — مقيسًا في المتصفّح. والدرجة الغامقة موجودة أصلًا
   * في نفس اللوحة، فهويّة المدرسة لا تتغيّر: يتغيّر النصّ فوق خلفيّتها. */
  color: var(--ws-primary-dark);
  background: var(--ws-primary-light);
  padding: 5px 14px;
  border-radius: var(--ws-radius-full);
  margin-bottom: 14px;
}
.ws-section-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ws-primary);
  animation: ws-pulse-dot 2s ease-in-out infinite;
}
@keyframes ws-pulse-dot {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.6); opacity: .5; }
}
.ws-section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--ws-dark);
  line-height: 1.2;
  letter-spacing: -.03em;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}
.ws-section-title::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  width: 50px; height: 3px;
  background: linear-gradient(90deg, var(--ws-primary), var(--ws-secondary));
  border-radius: 3px;
  transition: width .4s ease;
}
.ws-section-header:hover .ws-section-title::after { width: 100px; }
.ws-section-desc {
  /* 1rem: نصُّ متنٍ يُقرأ جُملًا، والحدُّ الأدنى على الهاتفِ 16px. */
  font-size: 1rem;
  color: var(--ws-text-light);
  max-width: 580px;
  margin-inline: auto;
  margin-top: 20px;
  line-height: 1.75;
}

/* ── 11. PAGE HEADER (inner pages) ───────────────────────────── */
.ws-page-header {
  background: linear-gradient(135deg, var(--ws-dark) 0%, var(--ws-dark-2) 40%, color-mix(in srgb, var(--ws-primary) 25%, var(--ws-dark)) 100%);
  padding: 64px 0 52px;
  position: relative;
  overflow: hidden;
}
.ws-page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.ws-page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ws-primary), var(--ws-secondary), var(--ws-primary));
}
/* Floating glow orbs */
.ws-page-header > .ws-container::before,
.ws-page-header > .ws-container::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.ws-page-header > .ws-container::before {
  width: 300px; height: 300px;
  top: -100px; right: -80px;
  background: rgba(var(--ws-primary-rgb), .18);
}
.ws-page-header > .ws-container::after {
  width: 200px; height: 200px;
  bottom: -80px; left: 10%;
  background: rgba(var(--ws-secondary-rgb), .14);
}
.ws-page-header-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.2;
  position: relative;
}
.ws-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  flex-wrap: wrap;
  position: relative;
}
.ws-breadcrumb li + li::before {
  content: '/';
  margin-inline-end: 8px;
  opacity: .4;
}
.ws-breadcrumb a { color: rgba(255,255,255,.7); }
.ws-breadcrumb a:hover { color: #fff; }
.ws-breadcrumb li:last-child { color: rgba(255,255,255,.9); }

/* ── 12. HERO ─────────────────────────────────────────────────── */
.ws-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ws-hero-slides { position: absolute; inset: 0; }
.ws-hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
}
.ws-hero-slide.active { opacity: 1; z-index: 1; }
.ws-hero-slide-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease-out;
}
.ws-hero-slide.active .ws-hero-slide-bg { transform: scale(1.06); }
.ws-hero-slide-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,23,42,.85) 0%,
    rgba(15,23,42,.55) 50%,
    rgba(var(--ws-primary-rgb),.25) 100%
  );
}

/* Animated particles overlay */
.ws-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px, 100px 100px;
  background-position: 0 0, 30px 30px;
  animation: ws-particles 20s linear infinite;
  pointer-events: none;
}
@keyframes ws-particles {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-60px); }
}

.ws-hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--ws-container);
  margin-inline: auto;
  padding: 0 24px;
  width: 100%;
}
.ws-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  /* أبيضُ صريحٌ لا 0.9: على بنفسجيِّ البطلِ كانت النسبةُ 4.47 والعتبةُ 4.5 —
   * إخفاقٌ بفارقِ 0.03، والشفافيّةُ وحدَها سببُه. (قيس في المتصفّح.) */
  color: #fff;
  background: rgba(var(--ws-primary-rgb),.3);
  border: 1px solid rgba(var(--ws-primary-rgb),.4);
  padding: 6px 16px;
  border-radius: var(--ws-radius-full);
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.ws-hero-title {
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.04em;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.ws-hero-title .ws-gradient-text {
  background: linear-gradient(135deg, #a5b4fc, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ws-hero-subtitle {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.8);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.ws-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.ws-hero-nav {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 4;
}
.ws-hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  transition: var(--ws-transition-spring);
}
.ws-hero-dot.active {
  width: 32px;
  border-radius: var(--ws-radius-full);
  background: #fff;
}

/* Scroll indicator */
.ws-hero-scroll {
  position: absolute;
  bottom: 36px; right: 36px; z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,.6);
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  animation: ws-float 2.5s ease-in-out infinite;
}
.ws-hero-scroll i { font-size: 1rem; animation: ws-bounce-down 1.5s ease-in-out infinite; }
@keyframes ws-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ws-bounce-down { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Default hero (no sliders) */
.ws-hero-default {
  background: linear-gradient(135deg, var(--ws-dark) 0%, var(--ws-dark-2) 50%, color-mix(in srgb, var(--ws-primary) 20%, var(--ws-dark)) 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ws-hero-default::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(var(--ws-primary-rgb),.15) 0%, transparent 70%);
}

/* Floating shapes */
.ws-floating-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ws-floating-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(var(--ws-primary-rgb),.06);
  animation: ws-float-shape 12s ease-in-out infinite;
}
.ws-floating-shape:nth-child(2) { animation-delay: -4s; background: rgba(var(--ws-secondary-rgb),.05); }
.ws-floating-shape:nth-child(3) { animation-delay: -8s; background: rgba(245,158,11,.05); }
@keyframes ws-float-shape {
  0%,100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-24px) rotate(120deg); }
  66%      { transform: translateY(12px) rotate(240deg); }
}

/* Wave divider */
.ws-wave-divider {
  line-height: 0;
  margin-top: -2px;
}
.ws-wave-divider svg { display: block; }

/* ── 13. STATS ────────────────────────────────────────────────── */
.ws-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.ws-stat-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--ws-bg);
  border-radius: var(--ws-radius);
  border: 1px solid var(--ws-border);
  transition: var(--ws-transition-spring);
  position: relative;
  overflow: hidden;
}
.ws-stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ws-primary), var(--ws-secondary));
  transform: scaleX(0);
  transition: transform .4s ease;
}
.ws-stat-item:hover { transform: translateY(-6px); box-shadow: var(--ws-shadow-lg); }
.ws-stat-item:hover::before { transform: scaleX(1); }
.ws-stat-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ws-primary-light);
  color: var(--ws-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 14px;
  transition: var(--ws-transition-spring);
}
.ws-stat-item:hover .ws-stat-icon {
  background: var(--ws-primary);
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
}
.ws-stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--ws-dark);
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--ws-primary), var(--ws-primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ws-stat-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--ws-text-light);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 6px;
}

/* ── 14. CARDS ────────────────────────────────────────────────── */
.ws-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.ws-card {
  background: var(--ws-bg);
  border-radius: var(--ws-radius);
  border: 1px solid var(--ws-border);
  overflow: hidden;
  transition: var(--ws-transition-spring);
  position: relative;
  display: flex;
  flex-direction: column;
}
.ws-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(var(--ws-primary-rgb),.04), transparent);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.ws-card:hover { transform: translateY(-8px); box-shadow: var(--ws-shadow-xl); }
.ws-card:hover::before { opacity: 1; }
.ws-card-img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform .6s ease;
  overflow: hidden;
  display: block;
}
.ws-card:hover .ws-card-img { transform: scale(1.05); }
.ws-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.ws-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .75rem;
  color: var(--ws-text-light);
  margin-bottom: 12px;
}
.ws-card-meta i { color: var(--ws-primary); }
.ws-card-category {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--ws-primary);
  background: var(--ws-primary-light);
  padding: 2px 10px;
  border-radius: var(--ws-radius-full);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.ws-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ws-dark);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.ws-card:hover .ws-card-title { color: var(--ws-primary); }
.ws-card-text {
  font-size: .875rem;
  color: var(--ws-text-light);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 15. ABOUT SECTION ────────────────────────────────────────── */
.ws-about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.ws-about-image-wrap {
  position: relative;
  border-radius: var(--ws-radius);
  overflow: hidden;
}
.ws-about-image {
  width: 100%; height: 440px; object-fit: cover;
  border-radius: var(--ws-radius);
  display: block;
  transition: transform .6s ease;
}
.ws-about-image-wrap:hover .ws-about-image { transform: scale(1.03); }
.ws-about-image-wrap::before {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  border: 3px solid var(--ws-primary);
  border-radius: var(--ws-radius);
  top: 14px; left: 14px;
  z-index: -1;
  transition: var(--ws-transition-spring);
}
.ws-about-image-wrap:hover::before { top: 8px; left: 8px; }
.ws-about-badge {
  position: absolute;
  bottom: -16px; right: -16px;
  background: linear-gradient(135deg, var(--ws-primary), var(--ws-primary-dark));
  color: #fff;
  width: 110px; height: 110px;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 900;
  box-shadow: var(--ws-shadow-glow);
  text-align: center;
}
.ws-about-badge .num { font-size: 2rem; line-height: 1; }
.ws-about-badge .lbl { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.ws-about-text .ws-section-label { margin-bottom: 12px; }
.ws-about-text h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--ws-dark);
  margin-bottom: 20px;
  letter-spacing: -.03em;
}
.ws-about-text p {
  color: var(--ws-text-light);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 14px;
  font-size: .95rem;
}
.ws-about-features {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ws-about-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .875rem;
  color: var(--ws-text);
  font-weight: 500;
}
.ws-about-feature-item i {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--ws-secondary-light);
  color: var(--ws-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
}

/* ── 16. MVV ──────────────────────────────────────────────────── */
.ws-mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.ws-mvv-item {
  padding: 36px 28px;
  background: var(--ws-bg);
  border-radius: var(--ws-radius);
  border: 1px solid var(--ws-border);
  text-align: center;
  transition: var(--ws-transition-spring);
  position: relative;
  overflow: hidden;
}
.ws-mvv-item::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--ws-primary), var(--ws-secondary));
  transform: scaleX(0); transition: transform .4s ease;
}
.ws-mvv-item:hover { transform: translateY(-8px); box-shadow: var(--ws-shadow-lg); }
.ws-mvv-item:hover::before { transform: scaleX(1); }
.ws-mvv-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: var(--ws-primary-light);
  color: var(--ws-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
  transition: var(--ws-transition-spring);
}
.ws-mvv-item:hover .ws-mvv-icon { background: var(--ws-primary); color: #fff; transform: scale(1.1) rotate(-8deg); }
.ws-mvv-title { font-size: 1.1rem; font-weight: 700; color: var(--ws-dark); margin-bottom: 12px; }
.ws-mvv-text  { font-size: .875rem; color: var(--ws-text-light); line-height: 1.7; }

/* ── 17. FEATURES GRID ────────────────────────────────────────── */
.ws-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ws-feature-card {
  padding: 28px 24px;
  background: var(--ws-bg);
  border-radius: var(--ws-radius);
  border: 1px solid var(--ws-border);
  transition: var(--ws-transition-spring);
  position: relative;
  overflow: hidden;
}
.ws-feature-card::after {
  content: '';
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--ws-primary-rgb),.08), transparent);
  bottom: -60px; right: -60px;
  transition: transform .5s ease;
}
.ws-feature-card:hover { transform: translateY(-6px); box-shadow: var(--ws-shadow-lg); }
.ws-feature-card:hover::after { transform: scale(1.5); }
.ws-feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--ws-primary-light);
  color: var(--ws-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
  transition: var(--ws-transition-spring);
}
.ws-feature-card:hover .ws-feature-icon { background: var(--ws-primary); color: #fff; transform: rotate(-10deg) scale(1.1); }
.ws-feature-title { font-size: 1rem; font-weight: 700; color: var(--ws-dark); margin-bottom: 8px; }
.ws-feature-desc  { font-size: .85rem; color: var(--ws-text-light); line-height: 1.7; }

/* ── 18. TEACHERS GRID ────────────────────────────────────────── */
.ws-teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.ws-teacher-card {
  background: var(--ws-bg);
  border-radius: var(--ws-radius);
  border: 1px solid var(--ws-border);
  padding: 32px 20px 24px;
  text-align: center;
  transition: var(--ws-transition-spring);
  position: relative;
  overflow: hidden;
}
.ws-teacher-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--ws-primary), var(--ws-secondary));
  transform: scaleX(0);
  transition: transform .35s ease;
}
.ws-teacher-card:hover { transform: translateY(-8px); box-shadow: var(--ws-shadow-lg); }
.ws-teacher-card:hover::before { transform: scaleX(1); }
.ws-teacher-photo {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--ws-border);
  transition: var(--ws-transition-spring);
}
.ws-teacher-card:hover .ws-teacher-photo { border-color: var(--ws-primary); transform: scale(1.05); }
.ws-teacher-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  border: 3px solid transparent;
  transition: var(--ws-transition-spring);
}
.ws-teacher-card:hover .ws-teacher-avatar { transform: scale(1.05); box-shadow: var(--ws-shadow-glow-sm); }
.ws-teacher-name { font-size: .95rem; font-weight: 700; color: var(--ws-dark); margin-bottom: 4px; }
/* الدرجةُ الأغمقُ على الشريحةِ الفاتحة: `--ws-primary` على
 * `--ws-primary-light` كانت 3.63 والعتبةُ 4.5 (قيس في صفحةِ المعلّمين). */
.ws-teacher-subject { font-size: .78rem; color: var(--ws-primary-dark); font-weight: 600; background: var(--ws-primary-light); padding: 3px 12px; border-radius: var(--ws-radius-full); display: inline-block; }
.ws-teacher-bio { font-size: .78rem; color: var(--ws-text-light); line-height: 1.6; margin-top: 10px; }

/* ── 19. EVENTS ───────────────────────────────────────────────── */
.ws-event-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: var(--ws-bg);
  border-radius: var(--ws-radius);
  border: 1px solid var(--ws-border);
  transition: var(--ws-transition-spring);
  margin-bottom: 16px;
}
.ws-event-card:hover { transform: translateX(6px); box-shadow: var(--ws-shadow-md); border-color: var(--ws-primary); }
.ws-event-date-box {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  background: linear-gradient(135deg, var(--ws-primary), var(--ws-primary-dark));
  color: #fff;
  border-radius: var(--ws-radius-sm);
  padding: 10px 6px;
  box-shadow: 0 4px 12px rgba(var(--ws-primary-rgb),.3);
}
.ws-event-day   { display: block; font-size: 1.6rem; font-weight: 900; line-height: 1; }
.ws-event-month { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; margin-top: 3px; }
.ws-event-body  { flex: 1; }
.ws-event-title { font-size: 1rem; font-weight: 700; color: var(--ws-dark); margin-bottom: 6px; }
.ws-event-desc  { font-size: .82rem; color: var(--ws-text-light); line-height: 1.6; margin-bottom: 8px; }
.ws-event-meta  { display: flex; gap: 14px; font-size: .75rem; color: var(--ws-text-light); flex-wrap: wrap; }
.ws-event-meta i { color: var(--ws-primary); margin-inline-end: 4px; }

/* ── 20. TESTIMONIALS ─────────────────────────────────────────── */
.ws-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.ws-testimonial-card {
  padding: 32px 28px 28px;
  background: var(--ws-bg);
  border-radius: var(--ws-radius);
  border: 1px solid var(--ws-border);
  position: relative;
  transition: var(--ws-transition-spring);
  display: flex;
  flex-direction: column;
}
.ws-testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px; right: 24px;
  font-size: 6rem;
  color: var(--ws-primary-light);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
  transition: color .3s;
}
.ws-testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--ws-shadow-lg); }
.ws-testimonial-card:hover::before { color: var(--ws-primary); opacity: .2; }
.ws-testimonial-stars { color: var(--ws-accent); font-size: .85rem; margin-bottom: 14px; letter-spacing: 2px; }
.ws-testimonial-text  { font-size: .875rem; color: var(--ws-text-light); line-height: 1.8; font-style: italic; flex: 1; margin-bottom: 20px; }
.ws-testimonial-author { display: flex; align-items: center; gap: 12px; }
.ws-testimonial-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ws-border); }
.ws-testimonial-avatar-placeholder {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ws-primary), var(--ws-primary-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
}
.ws-testimonial-name     { font-size: .875rem; font-weight: 700; color: var(--ws-dark); }
.ws-testimonial-relation { font-size: .75rem; color: var(--ws-text-light); margin-top: 2px; }

/* ── 21. GALLERY ──────────────────────────────────────────────── */
.ws-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ws-gallery-item {
  position: relative;
  border-radius: var(--ws-radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}
.ws-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.ws-gallery-item:hover img { transform: scale(1.1); }
.ws-gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(var(--ws-primary-rgb),.7), rgba(15,23,42,.8));
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
  font-size: 1.5rem;
  color: #fff;
}
.ws-gallery-item:hover .ws-gallery-overlay { opacity: 1; }

/* Album cards */
.ws-album-card {
  display: block;
  border-radius: var(--ws-radius);
  overflow: hidden;
  border: 1px solid var(--ws-border);
  background: var(--ws-bg);
  transition: var(--ws-transition-spring);
  text-decoration: none;
}
.ws-album-card:hover { transform: translateY(-8px); box-shadow: var(--ws-shadow-xl); }
.ws-album-cover {
  width: 100%; height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.ws-album-card:hover .ws-album-cover { transform: scale(1.06); }
.ws-album-info { padding: 16px 18px; }
.ws-album-title { font-size: .95rem; font-weight: 700; color: var(--ws-dark); margin-bottom: 4px; }
.ws-album-count { font-size: .78rem; color: var(--ws-primary); font-weight: 600; }
.ws-album-count i { margin-inline-end: 4px; }

/* ── 22. DOWNLOADS ────────────────────────────────────────────── */
.ws-download-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--ws-bg);
  border-radius: var(--ws-radius-sm);
  border: 1px solid var(--ws-border);
  transition: var(--ws-transition-spring);
}
.ws-download-item:hover { box-shadow: var(--ws-shadow-md); transform: translateX(4px); border-color: var(--ws-primary); }
.ws-download-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--ws-primary-light);
  color: var(--ws-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: var(--ws-transition-spring);
}
.ws-download-item:hover .ws-download-icon { background: var(--ws-primary); color: #fff; transform: scale(1.1); }
.ws-download-info { flex: 1; min-width: 0; }
.ws-download-title { font-size: .9rem; font-weight: 600; color: var(--ws-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-download-meta  { display: flex; gap: 10px; font-size: .73rem; color: var(--ws-text-light); margin-top: 3px; }
.ws-download-meta span { background: var(--ws-bg-section); padding: 2px 8px; border-radius: 4px; }

/* ── 23. FAQ ──────────────────────────────────────────────────── */
.ws-faq-list { display: flex; flex-direction: column; gap: 12px; }
.ws-faq-item {
  background: var(--ws-bg);
  border-radius: var(--ws-radius);
  border: 2px solid var(--ws-border);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.ws-faq-item:hover { box-shadow: var(--ws-shadow-md); }
.ws-faq-item.active { border-color: var(--ws-primary); box-shadow: var(--ws-shadow-glow-sm); }
.ws-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: start;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ws-dark);
  cursor: pointer;
  transition: color .2s;
  font-family: inherit;
}
.ws-faq-item.active .ws-faq-question { color: var(--ws-primary); }
.ws-faq-question i {
  font-size: .8rem;
  color: var(--ws-text-light);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), color .2s;
  flex-shrink: 0;
}
.ws-faq-item.active .ws-faq-question i { transform: rotate(180deg); color: var(--ws-primary); }
.ws-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s cubic-bezier(.4,0,.2,1);
}
.ws-faq-item.active .ws-faq-answer { max-height: 500px; }
.ws-faq-answer-inner {
  padding: 0 24px 22px;
  font-size: .875rem;
  color: var(--ws-text-light);
  line-height: 1.8;
  border-top: 1px solid var(--ws-border);
  padding-top: 16px;
}

/* ── 24. CONTACT ──────────────────────────────────────────────── */
/* رقمُ الهاتفِ والبريدُ هما أكثرُ ما يُلمَس في موقعِ مدرسةٍ من هاتف، وكانا
 * 102×26 و142×26 — تحت 44 المطلوبة (WCAG 2.5.5). المحدِّدُ دلاليٌّ بالرابطِ
 * نفسِه لا بطبقةٍ، فيشمل صفحةَ الاتّصالِ والصفحةَ الرئيسةَ والتذييلَ معًا. */
a[href^="tel:"],
a[href^="mailto:"] {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.ws-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 48px;
  align-items: start;
}
.ws-contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ws-border);
}
.ws-contact-info-item:last-of-type { border-bottom: none; }
.ws-contact-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--ws-primary-light);
  color: var(--ws-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--ws-transition-spring);
}
.ws-contact-info-item:hover .ws-contact-icon { background: var(--ws-primary); color: #fff; transform: scale(1.1); }
.ws-contact-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ws-text-light); margin-bottom: 4px; }
.ws-contact-value { font-size: .9rem; font-weight: 600; color: var(--ws-dark); }

/* ── 25. FORM ─────────────────────────────────────────────────── */
.ws-form-group { margin-bottom: 20px; }
.ws-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ws-form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ws-text);
  margin-bottom: 7px;
  letter-spacing: .02em;
}
.ws-form-control {
  display: block;
  width: 100%;
  padding: 11px 16px;
  border: 2px solid var(--ws-border);
  border-radius: var(--ws-radius-sm);
  /* 16px بالضبط، ولا أقلّ: سفاري على iOS يُكبّر الصفحةَ كلَّها عند التركيز
   * في حقلٍ حجمُ خطِّه أصغر من ذلك — فيقفز التخطيطُ ويخرج عن الشاشة. كان
   * .875rem، وقيس في المتصفّح: ستّةُ حقولٍ في نموذجِ التواصلِ وحده. */
  font-size: 16px;
  color: var(--ws-text);
  background: var(--ws-bg);
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
  line-height: 1.5;
  outline: none;
}
.ws-form-control:focus {
  border-color: var(--ws-primary);
  box-shadow: 0 0 0 4px rgba(var(--ws-primary-rgb), .1);
}
.ws-form-control::placeholder { color: var(--ws-muted); }
textarea.ws-form-control { resize: vertical; min-height: 120px; }
select.ws-form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
[dir="rtl"] select.ws-form-control { background-position: left 14px center; padding-right: 16px; padding-left: 36px; }
/* وكلُّ حقلٍ آخرَ في الموقع، وإن لم يحمل الطبقةَ (حقلُ النشرةِ مثلًا). */
.ws-section input:not([type="checkbox"]):not([type="radio"]),
.ws-section textarea,
.ws-section select,
.ws-newsletter input,
.school-newsletter input {
  font-size: 16px;
}

.ws-form-divider { font-weight: 700; color: var(--ws-dark); margin: 28px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--ws-border); font-size: .9rem; }
.ws-form-divider i { color: var(--ws-primary); margin-inline-end: 8px; }

/* ── 26. PARTNERS ─────────────────────────────────────────────── */
.ws-partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.ws-partner-item {
  padding: 16px 28px;
  background: var(--ws-bg);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  display: flex; align-items: center; justify-content: center;
  min-width: 140px;
  transition: var(--ws-transition-spring);
  filter: grayscale(1) opacity(.6);
}
.ws-partner-item:hover { filter: none; transform: translateY(-4px); box-shadow: var(--ws-shadow-md); border-color: var(--ws-primary); }
.ws-partner-item img { max-height: 44px; max-width: 120px; object-fit: contain; }

/* ── 27. PAGINATION ───────────────────────────────────────────── */
.ws-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.ws-pagination a, .ws-pagination span {
  min-width: 38px; height: 38px;
  border-radius: var(--ws-radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 600;
  border: 2px solid var(--ws-border);
  color: var(--ws-text);
  background: var(--ws-bg);
  transition: var(--ws-transition);
}
.ws-pagination a:hover { border-color: var(--ws-primary); color: var(--ws-primary); transform: translateY(-2px); }
.ws-pagination .current { background: var(--ws-primary); border-color: var(--ws-primary); color: #fff; }

/* ── 28. MAP ──────────────────────────────────────────────────── */
.ws-map {
  border-radius: var(--ws-radius);
  overflow: hidden;
  border: 1px solid var(--ws-border);
}
.ws-map iframe { width: 100%; height: 280px; display: block; border: none; }

/* ── 29. NEWSLETTER / CTA ─────────────────────────────────────── */
.ws-newsletter {
  text-align: center;
  padding: 52px 36px;
  margin-top: 48px;
  background: linear-gradient(135deg, rgba(var(--ws-primary-rgb),.06), rgba(var(--ws-secondary-rgb),.06));
  border-radius: var(--ws-radius);
  border: 1px solid var(--ws-border);
  position: relative;
  overflow: hidden;
}
.ws-newsletter::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%236366f1' fill-opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3C/g%3E%3C/svg%3E");
}
.ws-newsletter h5 { font-size: 1.5rem; font-weight: 800; color: var(--ws-dark); margin-bottom: 8px; position: relative; }
.ws-newsletter p  { color: var(--ws-text-light); font-size: .9rem; margin-bottom: 24px; position: relative; }
.ws-newsletter-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
  background: var(--ws-bg);
  border-radius: var(--ws-radius-pill);
  border: 2px solid var(--ws-border);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.ws-newsletter-form:focus-within { border-color: var(--ws-primary); box-shadow: 0 0 0 4px rgba(var(--ws-primary-rgb),.1); }
.ws-newsletter-form input {
  flex: 1;
  border: none;
  padding: 12px 20px;
  font-size: .875rem;
  background: transparent;
  color: var(--ws-text);
  outline: none;
}
.ws-newsletter-form button {
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--ws-primary), var(--ws-primary-dark));
  color: #fff;
  border: none;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  margin: 4px;
  border-radius: var(--ws-radius-pill);
  transition: var(--ws-transition);
}
.ws-newsletter-form button:hover { opacity: .9; }
.ws-newsletter-msg { margin-top: 12px; font-size: .82rem; font-weight: 600; position: relative; }
.ws-newsletter-msg.success { color: var(--ws-secondary); }
.ws-newsletter-msg.error   { color: var(--ws-danger); }

.ws-cta {
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--ws-primary-dark), var(--ws-primary), color-mix(in srgb, var(--ws-secondary) 30%, var(--ws-primary)));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ws-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3C/g%3E%3C/svg%3E");
}
.ws-cta h2 { font-size: clamp(1.6rem,3.5vw,2.6rem); font-weight: 900; color: #fff; margin-bottom: 14px; position: relative; }
.ws-cta p  { color: rgba(255,255,255,.82); max-width: 540px; margin: 0 auto 30px; position: relative; }

/* ── 30. FOOTER ───────────────────────────────────────────────── */
.ws-footer {
  background: var(--ws-dark);
  color: rgba(255,255,255,.72);
  padding-top: 64px;
}
.ws-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ws-footer-brand { margin-bottom: 16px; }
.ws-footer-brand img { height: 46px; border-radius: 8px; }
.ws-footer-desc { font-size: .82rem; line-height: 1.8; opacity: .65; margin-top: 10px; }
.ws-footer-title {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.9);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.ws-footer-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--ws-primary);
  border-radius: 2px;
}
[dir="rtl"] .ws-footer-title::after { left: auto; right: 0; }
.ws-footer-links { display: flex; flex-direction: column; gap: 10px; }
.ws-footer-links a {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: rgba(255,255,255,.55);
  transition: color .2s, transform .2s;
}
.ws-footer-links a:hover { color: rgba(255,255,255,.95); transform: translateX(4px); }
[dir="rtl"] .ws-footer-links a:hover { transform: translateX(-4px); }
.ws-footer-links i { font-size: .65rem; color: var(--ws-primary); }
.ws-footer-contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 12px; font-size: .82rem; color: rgba(255,255,255,.6);
}
.ws-footer-contact-item i { color: var(--ws-primary); margin-top: 2px; flex-shrink: 0; }
.ws-footer-social {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
}
.ws-footer-social a {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.65);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem;
  transition: var(--ws-transition-spring);
}
.ws-footer-social a:hover { background: var(--ws-primary); color: #fff; transform: translateY(-3px); box-shadow: 0 6px 14px rgba(var(--ws-primary-rgb),.4); }
.ws-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
  gap: 8px;
}

/* ── 31. BACK TO TOP ──────────────────────────────────────────── */
.ws-back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ws-primary), var(--ws-primary-dark));
  color: #fff;
  border: none;
  font-size: .9rem;
  z-index: 998;
  opacity: 0; visibility: hidden;
  transform: translateY(16px);
  transition: var(--ws-transition-spring);
  box-shadow: 0 4px 16px rgba(var(--ws-primary-rgb),.4);
}
[dir="rtl"] .ws-back-to-top { right: auto; left: 28px; }
.ws-back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.ws-back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(var(--ws-primary-rgb),.5); }

/* ── 32. LIGHTBOX ─────────────────────────────────────────────── */
.ws-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s, visibility .3s;
  backdrop-filter: blur(6px);
}
.ws-lightbox.active { opacity: 1; visibility: visible; pointer-events: all; }
.ws-lightbox img {
  max-width: 90vw; max-height: 86vh;
  border-radius: var(--ws-radius);
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  object-fit: contain;
  transition: transform .3s ease;
}
.ws-lightbox-close {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: none; color: #fff;
  font-size: 1.2rem; cursor: pointer; transition: var(--ws-transition);
}
.ws-lightbox-close:hover { background: var(--ws-danger); transform: rotate(90deg); }
.ws-lightbox-prev, .ws-lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: none; color: #fff;
  font-size: 1.1rem; cursor: pointer; transition: var(--ws-transition);
}
.ws-lightbox-prev:hover, .ws-lightbox-next:hover { background: var(--ws-primary); }
.ws-lightbox-prev { left: 18px; }
.ws-lightbox-next { right: 18px; }
.ws-lightbox-caption {
  position: absolute; bottom: 24px; left: 0; right: 0;
  text-align: center; color: rgba(255,255,255,.7);
  font-size: .82rem; padding: 0 16px;
}

/* ── 33. EMPTY STATES ─────────────────────────────────────────── */
.ws-empty {
  text-align: center;
  padding: 72px 24px;
  color: var(--ws-text-light);
}
.ws-empty > i {
  font-size: 3.5rem;
  color: var(--ws-border);
  display: block;
  margin-bottom: 18px;
  animation: ws-float 3s ease-in-out infinite;
}
.ws-empty h5 { font-size: 1.2rem; font-weight: 700; color: var(--ws-dark); margin-bottom: 8px; }
.ws-empty p  { font-size: .875rem; max-width: 380px; margin-inline: auto; }

/* ── 34. ANIMATIONS ───────────────────────────────────────────── */
.ws-animate { opacity: 0; transition: opacity .55s ease, transform .55s cubic-bezier(.4,0,.2,1); }
.ws-animate.ws-visible { opacity: 1; transform: none !important; }

/* Entry directions */
.ws-animate:not([data-ws-anim]) { transform: translateY(30px); }
[data-ws-anim="fadeInUp"]    { transform: translateY(40px); }
[data-ws-anim="fadeInDown"]  { transform: translateY(-30px); }
[data-ws-anim="fadeInLeft"]  { transform: translateX(40px); }
[data-ws-anim="fadeInRight"] { transform: translateX(-40px); }
[data-ws-anim="scaleIn"]     { transform: scale(.85); }
[data-ws-anim="rotateIn"]    { transform: rotate(-8deg) scale(.9); }
[data-ws-anim="flipIn"]      { transform: perspective(600px) rotateX(20deg) translateY(30px); }

/* Stagger delays */
.ws-animate-delay-1 { transition-delay: .08s; }
.ws-animate-delay-2 { transition-delay: .16s; }
.ws-animate-delay-3 { transition-delay: .24s; }
.ws-animate-delay-4 { transition-delay: .32s; }
.ws-animate-delay-5 { transition-delay: .40s; }
.ws-animate-delay-6 { transition-delay: .48s; }

/* Gradient text utility */
.ws-gradient-text {
  background: linear-gradient(135deg, var(--ws-primary), var(--ws-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Article content */
.ws-article-content {
  line-height: 1.95; font-size: .96rem; color: var(--ws-text); word-break: break-word;
}
.ws-article-content h1,.ws-article-content h2,.ws-article-content h3 {
  color: var(--ws-dark); margin: 1.4em 0 .6em; font-weight: 700;
}
.ws-article-content p { margin-bottom: 1.1em; }
.ws-article-content ul,.ws-article-content ol { padding-inline-start: 1.6em; margin-bottom: 1.1em; }
.ws-article-content li { margin-bottom: .45em; }
.ws-article-content img { max-width: 100%; border-radius: var(--ws-radius-sm); }
.ws-article-content blockquote {
  margin: 1.4em 0; padding: 16px 24px;
  border-inline-start: 4px solid var(--ws-primary);
  background: var(--ws-bg-section); border-radius: 0 var(--ws-radius-sm) var(--ws-radius-sm) 0;
  font-style: italic; color: var(--ws-text-light);
}

/* About image wrapper */
.ws-about-image-wrap { position: relative; }

/* ── 35. DARK MODE SPECIFICS ─────────────────────────────────── */
[data-bs-theme="dark"] .ws-navbar {
  background: rgba(15,23,42,.92);
  border-bottom-color: var(--ws-border);
}
[data-bs-theme="dark"] .ws-brand-name { color: #f1f5f9; }
[data-bs-theme="dark"] .ws-nav li a   { color: #cbd5e1; }
[data-bs-theme="dark"] .ws-nav li a:hover { background: rgba(99,102,241,.12); }
[data-bs-theme="dark"] .ws-topbar { background: #020617; }
[data-bs-theme="dark"] .ws-footer { background: #020617; }
[data-bs-theme="dark"] .ws-preloader { background: #0f172a; }
[data-bs-theme="dark"] .ws-nav { background: #0f172a; }

/* ── 36. RTL OVERRIDES ────────────────────────────────────────── */
[dir="rtl"] .ws-footer-links a:hover { transform: translateX(-4px); }
[dir="rtl"] .ws-event-card:hover { transform: translateX(-6px); }
[dir="rtl"] .ws-hero-scroll { right: auto; left: 36px; }
[dir="rtl"] .ws-about-image-wrap::before { left: auto; right: 14px; }
[dir="rtl"] .ws-about-image-wrap:hover::before { right: 8px; }
[dir="rtl"] .ws-about-badge { right: auto; left: -16px; }

/* ── 37. RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1200px) {
  .ws-teachers-grid     { grid-template-columns: repeat(3, 1fr); }
  .ws-features-grid     { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .ws-stats             { grid-template-columns: repeat(2, 1fr); }
  .ws-card-grid         { grid-template-columns: repeat(2, 1fr); }
  .ws-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .ws-footer-grid       { grid-template-columns: repeat(2, 1fr); }
  .ws-gallery-grid      { grid-template-columns: repeat(3, 1fr); }
  .ws-teachers-grid     { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .ws-about-wrap        { grid-template-columns: 1fr; gap: 36px; }
  .ws-mvv-grid          { grid-template-columns: 1fr; gap: 20px; }
  .ws-contact-grid      { grid-template-columns: 1fr; gap: 32px; }
  .ws-features-grid     { grid-template-columns: repeat(2, 1fr); }
  .ws-navbar-inner      { padding-inline: 16px; }
}
@media (max-width: 768px) {
  :root { --ws-nav-h: 64px; }
  .ws-section           { padding-block: 56px; }
  .ws-menu-toggle       { display: inline-flex; }
  .ws-nav-actions > :not(.ws-menu-toggle) { display: none; }
  .ws-nav-actions { gap: 6px; }
  .ws-nav-actions-mobile { display: flex; padding: 16px; }
  .ws-nav {
    position: fixed;
    top: 0; bottom: 0;
    width: 280px; max-width: 85vw;
    inset-inline-end: -100%;
    z-index: 999;
    background: var(--ws-bg);
    border-inline-start: 1px solid var(--ws-border);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 72px 12px 24px;
    overflow-y: auto;
    box-shadow: var(--ws-shadow-xl);
    transition: inset-inline-end .35s cubic-bezier(.4,0,.2,1);
  }
  .ws-nav.open { inset-inline-end: 0; }
  .ws-nav li a { padding: 12px 16px; border-radius: var(--ws-radius-sm); font-size: .95rem; border-bottom: 1px solid var(--ws-border-light); }
  .ws-nav li a::after { display: none; }
  .ws-card-grid         { grid-template-columns: 1fr; }
  .ws-testimonials-grid { grid-template-columns: 1fr; }
  .ws-teachers-grid     { grid-template-columns: repeat(2, 1fr); }
  .ws-features-grid     { grid-template-columns: 1fr; }
  .ws-gallery-grid      { grid-template-columns: repeat(2, 1fr); }
  .ws-stats             { grid-template-columns: repeat(2, 1fr); }
  .ws-form-row          { grid-template-columns: 1fr; gap: 0; }
  .ws-footer-grid       { grid-template-columns: 1fr; gap: 28px; }
  .ws-hero              { min-height: 75vh; }
  .ws-hero-scroll       { display: none; }
  .ws-event-card        { flex-direction: column; gap: 12px; }
  .ws-section-header    { margin-bottom: 36px; }
}
@media (max-width: 480px) {
  .ws-container         { padding-inline: 16px; }
  .ws-stats             { grid-template-columns: 1fr 1fr; gap: 14px; }
  .ws-teachers-grid     { grid-template-columns: 1fr 1fr; }
  .ws-gallery-grid      { grid-template-columns: repeat(2, 1fr); }
  .ws-hero-title        { font-size: 1.8rem; }
  .ws-about-badge       { display: none; }
  .ws-btn-xl            { padding: 13px 26px; font-size: .95rem; }
}

/* ── 38. REDUCE MOTION ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .ws-animate { opacity: 1 !important; transform: none !important; }
  .ws-preloader-spinner { animation: none; border-color: var(--ws-primary); }
}
/* ═══════════════════════════════════════════════════════════════════════════
   حدُّ اللمسِ وحدُّ القراءةِ — قاعدةٌ أخيرةٌ جامعة
   ═══════════════════════════════════════════════════════════════════════════

   قياسٌ في المتصفّحِ على تسعِ صفحاتٍ أظهر أربعةَ نماذجِ نشرةٍ بريديّةٍ بأربعةِ
   أسماءِ طبقاتٍ مختلفة — `.newsletter-form` في التخطيط، `.ws-newsletter-form`
   هنا، `.subscribe-form` في صفحةِ "عن المدرسة"، وحقلٌ بلا طبقةٍ في الرئيسة.
   إصلاحُ كلٍّ منها على حدةٍ يعني أنّ الخامسَ سيُنسى، فالقاعدةُ عنصريّة.

   وهي آمنةٌ هنا بالتحديد: `website.css` لا يُحمَّل إلّا في تخطيطِ مواقعِ
   المدارسِ العامّة، لا في لوحةِ الإدارة.

   سببُ الـ16px ليس جماليًّا: سفاري على iOS يُكبّر الصفحةَ كلَّها عند التركيز
   في حقلٍ خطُّه أصغر، فيقفز التخطيطُ ويخرج عن الشاشة — وهو ما يحدث لكلِّ
   وليِّ أمرٍ يلمس نموذجَ التواصلِ من هاتفه. وُجد في ستّةِ حقول.            */

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
textarea,
select {
  font-size: 16px;
}

/* و44px ارتفاعًا لكلِّ ما يُلمَس. قيس: `.ws-btn` 136×40، زرُّ الاشتراك 81×42. */
.ws-btn,
.ws-newsletter-form input,
.ws-newsletter-form button,
.subscribe-form input,
.subscribe-form button,
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
textarea,
select,
button {
  min-height: 44px;
}

/* ولا يُفرض الارتفاعُ على زرٍّ أيقونيٍّ مربّعٍ قُصد أن يكون كذلك. */
.ws-gallery-nav button,
.ws-slider-nav button {
  min-height: 0;
}
