/* =====================================================
   ISHTAR — Dark Luxury Redesign
   styles.css
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Cairo:wght@300;400;600;700&display=swap');

/* ── CSS Variables ───────────────────────────────── */
:root {
  --bg:           #0a0a0f;
  --bg2:          #0f0f18;
  --bg3:          #13131e;
  --bg4:          #1a1a28;

  --gold:         #d4af37;
  --gold-light:   #e8cc60;
  --gold-dim:     rgba(212,175,55,0.15);
  --gold-glow:    rgba(212,175,55,0.35);
  --gold-border:  rgba(212,175,55,0.25);

  --white:        #f0ece0;
  --text:         rgba(240,236,224,0.90);
  --text-muted:   rgba(240,236,224,0.50);
  --text-dim:     rgba(240,236,224,0.30);

  --glass-bg:     rgba(255,255,255,0.04);
  --glass-bg2:    rgba(255,255,255,0.07);
  --glass-border: rgba(255,255,255,0.08);
  --glass-hover:  rgba(255,255,255,0.09);

  --radius:       14px;
  --radius-lg:    22px;
  --radius-xl:    32px;

  --transition:   0.35s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.6s cubic-bezier(0.4,0,0.2,1);

  --shadow-gold:  0 0 40px rgba(212,175,55,0.18);
  --shadow-card:  0 8px 40px rgba(0,0,0,0.5);
  --shadow-deep:  0 24px 80px rgba(0,0,0,0.7);
}

/* ── Reset ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.78;
  overflow-x: hidden;
  cursor: none;           /* hide default — custom cursor takes over */
}

body[dir="rtl"] { font-family: 'Cairo', sans-serif; }

/* Show default cursor on touch devices */
@media (hover: none) { body { cursor: auto; } }

/* ── Custom Cursor ───────────────────────────────── */
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%,-50%);
  transition: width .15s, height .15s, opacity .15s;
}

#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1.5px solid var(--gold-border);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%,-50%);
  transition: transform 0.12s ease, width .3s, height .3s, border-color .3s, background .3s;
}

#cursor-ring.hover {
  width: 60px; height: 60px;
  border-color: var(--gold);
  background: rgba(212,175,55,0.07);
}

#cursor-ring.click {
  width: 20px; height: 20px;
  background: var(--gold-dim);
}

/* ── Page Transition Overlay ─────────────────────── */
#page-veil {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9990;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}
#page-veil.out { opacity: 1; pointer-events: all; }

/* ── Typography ──────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.2;
  color: var(--white);
  font-weight: 600;
}
body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3,
body[dir="rtl"] h4 { font-family: 'Cairo', sans-serif; font-weight: 700; }

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.12rem; }

p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.85; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Layout ──────────────────────────────────────── */
.container { width: 90%; max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.section    { padding: 110px 0; }
.section-sm { padding: 70px 0; }

/* ── Gold Accent Spans ───────────────────────────── */
.text-gold  { color: var(--gold); }
.text-muted { color: var(--text-muted); }

/* ── Badge ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 50px;
  border: 1px solid var(--gold-border);
  background: var(--gold-dim);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
body[dir="rtl"] .badge { letter-spacing: 0; }
.badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%,100%{ opacity:1; transform:scale(1); }
  50%    { opacity:.4; transform:scale(1.6); }
}

/* ── Divider ─────────────────────────────────────── */
.divider {
  width: 50px; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
  margin: 1rem 0 2rem;
}
.divider.center { margin: 1rem auto 2rem; background: linear-gradient(90deg, transparent, var(--gold), transparent); width: 80px; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 34px;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.03em;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #0a0a0f;
  box-shadow: 0 4px 24px var(--gold-glow);
}
.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 10px 40px var(--gold-glow); }
.btn-gold:hover::before { opacity: 1; }
.btn-gold span, .btn-gold svg { position: relative; z-index: 1; }

.btn-ghost {
  background: transparent;
  border-color: var(--glass-border);
  color: var(--text);
  backdrop-filter: blur(10px);
  background: var(--glass-bg);
}
.btn-ghost:hover {
  border-color: var(--gold-border);
  color: var(--gold-light);
  background: var(--gold-dim);
  transform: translateY(-3px);
}

.btn-outline-gold {
  background: transparent;
  border-color: var(--gold-border);
  color: var(--gold-light);
}
.btn-outline-gold:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 0 24px var(--gold-glow);
}

/* ── Navigation ──────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all 0.5s ease;
  padding: 0;
}

.navbar.scrolled {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.navbar-logo { display: flex; align-items: center; gap: 13px; }

.logo-mark {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #0a0a0f;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent);
  pointer-events: none;
}

/* Theme-switching logo images */
.logo-img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: none;
}
/* Dark theme (default): show light logo */
.logo-img-light { display: block; }
.logo-img-dark  { display: none;  }
/* Light theme: show dark logo */
body.light .logo-img-light { display: none;  }
body.light .logo-img-dark  { display: block; }

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.12em;
}
body[dir="rtl"] .logo-name { font-family: 'Cairo', sans-serif; letter-spacing: 0; }
.logo-sub {
  font-size: 0.62rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}
body[dir="rtl"] .logo-sub { letter-spacing: 0; font-family: 'Cairo', sans-serif; }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right var(--transition);
}
body[dir="rtl"] .nav-links a::after { left: 100%; right: 0; transition: left var(--transition); }
body[dir="rtl"] .nav-links a:hover::after,
body[dir="rtl"] .nav-links a.active::after { left: 0; }

.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }

/* Lang Toggle */
.lang-toggle {
  display: flex;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 3px;
  backdrop-filter: blur(10px);
}
.lang-btn {
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: all var(--transition);
  font-family: inherit;
}
.lang-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0a0f;
  box-shadow: 0 2px 12px var(--gold-glow);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.menu-toggle span {
  width: 22px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
  display: block;
}

.nav-actions { display: flex; align-items: center; gap: 1rem; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: rgba(10,10,15,0.97);
    backdrop-filter: blur(30px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 2rem;
    display: none;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 16px; font-size: 1rem; }
  .menu-toggle { display: flex; }
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

/* Gradient mesh background */
.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(212,175,55,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(120,80,200,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 0%,  rgba(212,175,55,0.05) 0%, transparent 50%),
    var(--bg);
  animation: meshFloat 12s ease-in-out infinite alternate;
}

@keyframes meshFloat {
  0%   { background-position: 0% 0%, 100% 100%, 50% 0%; }
  100% { background-position: 5% 10%, 95% 90%, 55% 5%; }
}

/* Particle Canvas */
#hero-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  pointer-events: none;
}

/* Decorative gold line */
.hero-line {
  position: absolute;
  top: 0; bottom: 0;
  right: 38%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-border), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 740px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2rem;
}

.hero-eyebrow-line {
  width: 40px; height: 1px;
  background: var(--gold);
}

.hero-eyebrow-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
body[dir="rtl"] .hero-eyebrow-text { letter-spacing: 0; }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1.75rem;
  color: var(--white);
}

.hero h1 .gold-word {
  color: var(--gold);
  display: inline-block;
  position: relative;
}

/* Underline decoration on gold word */
.hero h1 .gold-word::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 520px;
  margin-bottom: 2.8rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Scroll cue */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-bar {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity:1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity:1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity:0; }
}

/* ── Hero Stats Strip ─────────────────────────────── */
.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  margin-top: 5rem;
}

.hero-stat {
  padding: 2rem 2.5rem;
  border-right: 1px solid var(--glass-border);
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  transition: background var(--transition);
}
.hero-stat:last-child { border-right: none; }
.hero-stat:hover { background: var(--glass-bg2); }

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.1rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
}
body[dir="rtl"] .stat-num { font-family: 'Cairo', sans-serif; }

.stat-lbl {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
  display: block;
}
body[dir="rtl"] .stat-lbl { letter-spacing: 0; }

/* Stats wrapper — absolute on desktop, flows naturally on mobile */
.hero-stats-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

@media (max-width: 768px) {
  /* Hero becomes a proper column on mobile */
  .hero {
    min-height: 100svh;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    padding-bottom: 0;
  }
  .hero > .container {
    flex: 1;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 2.5rem;
  }
  /* Stats wrapper flows naturally instead of absolute */
  .hero-stats-wrap {
    position: static;
    margin-top: 0;
  }
  /* Hide scroll indicator — no room and it overlapped stats */
  .hero-scroll { display: none; }
  /* 2×2 grid */
  .hero-stats {
    grid-template-columns: repeat(2,1fr);
    margin-top: 0;
    border-top: 1px solid var(--glass-border);
  }
  .hero-stat:nth-child(2),
  .hero-stat:nth-child(4) { border-right: none; }
  .hero-stat:nth-child(3),
  .hero-stat:nth-child(4) { border-top: 1px solid var(--glass-border); }
  .hero-stat { padding: 1.4rem 1rem; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat { padding: 1.2rem 0.75rem; }
  .stat-num   { font-size: 2.4rem; }
  .stat-lbl   { font-size: 0.68rem; }
}

/* ── Section Header ──────────────────────────────── */
.section-header { margin-bottom: 4rem; }
.section-header.centered { text-align: center; }
.section-header p {
  max-width: 620px;
  font-size: 1rem;
}
.section-header.centered p { margin: 0 auto; }

/* ── Glassmorphism Card ──────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,175,55,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  border-radius: inherit;
}

.glass-card:hover {
  border-color: var(--gold-border);
  background: var(--glass-bg2);
  box-shadow: 0 0 0 1px var(--gold-border), var(--shadow-card);
  transform: translateY(-6px);
}

.glass-card:hover::before { opacity: 1; }

/* Gold top line on hover */
.glass-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform var(--transition-slow);
}
.glass-card:hover::after { transform: scaleX(1); }

/* ── Features Grid ───────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2.8rem 2.4rem;
}

.feature-icon {
  width: 66px; height: 66px;
  border-radius: 16px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition);
}
.glass-card:hover .feature-icon {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 24px var(--gold-glow);
  filter: grayscale(0);
}

.feature-card h3 {
  font-size: 1.28rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}
.feature-card p { font-size: 0.95rem; margin: 0; }

/* ── Stats Section ───────────────────────────────── */
.stats-section {
  position: relative;
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, var(--gold-dim) 0%, transparent 70%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 1px;
  position: relative;
}

.stat-card-lg {
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
}

.stat-card-lg::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--glass-border), transparent);
}
.stat-card-lg:first-child::before { display: none; }

.stat-card-lg .stat-num {
  font-size: 3.9rem;
}

/* ── Course Cards ────────────────────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.course-card {
  display: flex;
  flex-direction: column;
}

.course-card-top {
  padding: 2rem 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.course-card-top::before {
  content: attr(data-icon);
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  opacity: 0.06;
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
.glass-card:hover .course-card-top::before { opacity: 0.12; transform: translateY(-50%) scale(1.15); }

.course-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: block;
}
body[dir="rtl"] .course-tag { letter-spacing: 0; }

.course-card-top h3 {
  font-size: 1.38rem;
  color: var(--white);
}

.course-card-body {
  padding: 0 2rem 1.5rem;
  flex: 1;
}
.course-card-body p { font-size: 0.93rem; margin: 0; }

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--glass-border);
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 4px 12px;
  border-radius: 50px;
}

.course-card-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--glass-border);
}
.course-card-footer .btn { width: 100%; justify-content: center; }

/* ── Filter Tabs ─────────────────────────────────── */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3.5rem;
  justify-content: center;
}

.filter-tab {
  padding: 9px 24px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-muted);
  transition: all var(--transition);
  font-family: inherit;
  backdrop-filter: blur(10px);
  letter-spacing: 0.02em;
}
.filter-tab:hover { border-color: var(--gold-border); color: var(--gold-light); }
.filter-tab.active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 0 16px var(--gold-glow);
}

/* ── About Grid ──────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 3rem; } }

.about-visual {
  position: relative;
}

.about-img-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg3);
  border: 1px solid var(--glass-border);
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-img-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 30% 40%, rgba(212,175,55,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 70% 60%, rgba(120,80,200,0.06) 0%, transparent 55%);
}

.about-inner-art {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}

.about-big-icon {
  font-size: 7rem;
  line-height: 1;
  filter: drop-shadow(0 0 30px rgba(212,175,55,0.3));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.about-years-badge {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: var(--gold);
  color: #0a0a0f;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 8px 32px var(--gold-glow);
}
body[dir="rtl"] .about-years-badge { right: auto; left: 2rem; }
.about-years-badge strong { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1; font-family: 'Cormorant Garamond', serif; }
.about-years-badge span { font-size: 0.8rem; font-weight: 700; }

/* ── Values Grid ─────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 2.5rem;
}
@media (max-width: 480px) { .values-grid { grid-template-columns: 1fr; } }

.value-card {
  padding: 1.9rem 2.1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.value-icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all var(--transition);
}
.glass-card:hover .value-icon { background: var(--gold); border-color: var(--gold); }

.value-card h4 { font-size: 1.02rem; margin-bottom: 0.4rem; color: var(--white); font-weight: 600; }
.value-card p { font-size: 0.88rem; margin: 0; line-height: 1.7; }

/* ── Team Cards ──────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px,1fr));
  gap: 1.5rem;
}

.team-card {
  padding: 2.5rem 1.75rem;
  text-align: center;
}

.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  background: var(--gold-dim);
  border: 2px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  transition: all var(--transition);
}
.glass-card:hover .team-avatar {
  border-color: var(--gold);
  background: var(--gold);
  color: #0a0a0f;
  box-shadow: 0 0 24px var(--gold-glow);
}

.team-card h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.team-role {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 500;
  display: block;
  margin-bottom: 0.75rem;
}
.team-card p { font-size: 0.82rem; margin: 0; }

/* ── Contact ─────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all var(--transition);
}

.c-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all var(--transition);
}
.glass-card:hover .c-icon { background: var(--gold); }

.c-label { font-size: 0.8rem; color: var(--text-dim); font-weight: 500; margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.08em; display: block; }
.c-value { color: var(--white); font-weight: 500; font-size: 1.02rem; margin: 0; }

/* ── Form ────────────────────────────────────────── */
.contact-form-wrap {
  padding: 3rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
body[dir="rtl"] .form-group label { letter-spacing: 0; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--white);
  transition: all var(--transition);
  outline: none;
  backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold-border);
  background: var(--glass-bg2);
  box-shadow: 0 0 0 4px var(--gold-dim);
}

.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg3); color: var(--white); }

.form-group textarea { height: 130px; resize: vertical; }

.form-submit { width: 100%; justify-content: center; padding: 16px; font-size: 1rem; margin-top: 0.5rem; }

.form-success {
  display: none;
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(212,175,55,0.1);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-weight: 500;
  text-align: center;
  font-size: 0.9rem;
}
.form-success.show { display: block; }

/* ── Page Hero ───────────────────────────────────── */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.page-hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 10% 50%, rgba(212,175,55,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 30%, rgba(120,80,200,0.05) 0%, transparent 55%);
  pointer-events: none;
}

.page-hero-content { position: relative; z-index: 1; text-align: center; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.breadcrumb a { color: var(--gold-light); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold); }

/* ── CTA Banner ──────────────────────────────────── */
.cta-banner {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  text-align: center;
  background: var(--bg2);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(212,175,55,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.cta-banner h2 { margin-bottom: 1rem; position: relative; }
.cta-banner p { position: relative; max-width: 500px; margin: 0 auto 2.5rem; font-size: 1.05rem; }

.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── Testimonials ────────────────────────────────── */
.testi-card { padding: 2.5rem; position: relative; }

.quote-icon {
  font-family: 'Cormorant Garamond', serif;
  font-size: 6rem;
  line-height: 1;
  color: var(--gold-dim);
  position: absolute;
  top: 0.5rem;
  left: 2rem;
  pointer-events: none;
}
body[dir="rtl"] .quote-icon { left: auto; right: 2rem; }

.testi-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 1.75rem;
  padding-top: 2.5rem;
}

.testi-author { display: flex; align-items: center; gap: 1rem; }

.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1.5px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.testi-name { display: block; font-weight: 600; color: var(--white); font-size: 0.9rem; }
.testi-role { display: block; font-size: 0.78rem; color: var(--text-dim); }

/* Stars */
.stars { color: var(--gold); font-size: 0.75rem; margin-bottom: 1rem; }

/* ── FAQ Accordion ───────────────────────────────── */
.faq-item {
  margin-bottom: 0.75rem;
}

.faq-q {
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.75rem;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  transition: all var(--transition);
  font-family: inherit;
  gap: 1rem;
}
body[dir="rtl"] .faq-q { text-align: right; }

.faq-q:hover { border-color: var(--gold-border); background: var(--glass-bg2); }
.faq-q.open { border-color: var(--gold-border); background: var(--gold-dim); color: var(--gold-light); border-radius: var(--radius) var(--radius) 0 0; }

.faq-icon { font-size: 1.2rem; color: var(--gold); transition: transform var(--transition); flex-shrink: 0; }
.faq-q.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, padding 0.35s ease;
  background: var(--glass-bg);
  border: 1px solid var(--gold-border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.faq-a.open { max-height: 300px; padding: 1.5rem 1.75rem; }
.faq-a p { margin: 0; font-size: 0.9rem; }

/* ── Scroll Reveal ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.up-left  { transform: translate(-30px, 20px); }
.reveal.up-right { transform: translate(30px, 20px); }
.reveal.scale    { transform: scale(0.92); }
.reveal.visible  { opacity: 1; transform: none !important; }

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }
.reveal-d6 { transition-delay: 0.6s; }

/* ── Footer ──────────────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--glass-border);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--text-dim);
  margin-top: 1rem;
}

.footer-col h5 {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-family: 'Inter', 'Cairo', sans-serif;
}
body[dir="rtl"] .footer-col h5 { letter-spacing: 0; font-family: 'Cairo', sans-serif; }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links a {
  font-size: 0.87rem;
  color: var(--text-dim);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a::before { content: '—'; color: var(--gold-border); font-size: 0.7rem; }
.footer-links a:hover { color: var(--gold-light); }

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.footer-contact-row span:first-child { font-size: 0.9rem; flex-shrink: 0; margin-top: 2px; }

.social-links { display: flex; gap: 0.7rem; margin-top: 1.5rem; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 0 14px var(--gold-glow);
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom a { color: var(--gold-border); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ── Theme Toggle Button ─────────────────────────── */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  border-color: var(--gold-border);
  background: var(--gold-dim);
  box-shadow: 0 0 16px var(--gold-glow);
  transform: rotate(20deg) scale(1.08);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all var(--transition);
  position: absolute;
}

.theme-toggle:hover svg { stroke: var(--gold-light); }

/* Show moon in dark mode, sun in light mode */
.icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
.icon-sun  { opacity: 0; transform: rotate(90deg) scale(0.5); }

body.light .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
body.light .icon-sun  { opacity: 1; transform: rotate(0deg) scale(1); }
body.light .theme-toggle:hover { transform: rotate(-20deg) scale(1.08); }

/* ── Light Theme ─────────────────────────────────── */
body.light {
  /* Backgrounds — warm parchment */
  --bg:           #f5f1e8;
  --bg2:          #ede8db;
  --bg3:          #e4dece;
  --bg4:          #dad3c0;

  /* Gold — slightly deeper for contrast on light */
  --gold:         #9a7219;
  --gold-light:   #b58820;
  --gold-dim:     rgba(154,114,25,0.12);
  --gold-glow:    rgba(154,114,25,0.28);
  --gold-border:  rgba(154,114,25,0.25);

  /* Text — deep ink */
  --white:        #12101e;
  --text:         rgba(18,16,30,0.88);
  --text-muted:   rgba(18,16,30,0.58);
  --text-dim:     rgba(18,16,30,0.35);

  /* Glass — very subtle dark tint */
  --glass-bg:     rgba(0,0,0,0.04);
  --glass-bg2:    rgba(0,0,0,0.07);
  --glass-border: rgba(0,0,0,0.09);
  --glass-hover:  rgba(0,0,0,0.08);

  /* Shadows */
  --shadow-card:  0 8px 40px rgba(0,0,0,0.10);
  --shadow-deep:  0 24px 80px rgba(0,0,0,0.16);
  --shadow-gold:  0 0 40px rgba(154,114,25,0.15);
}

/* ── Light Theme — Specific Overrides ─────────────── */

/* Scrolled navbar */
body.light .navbar.scrolled {
  background: rgba(245,241,232,0.9);
  border-bottom-color: rgba(0,0,0,0.08);
}

/* Nav links colour */
body.light .nav-links a { color: rgba(18,16,30,0.55); }
body.light .nav-links a:hover,
body.light .nav-links a.active { color: var(--white); }

/* Logo text */
body.light .logo-name { color: var(--white); }

/* Lang toggle */
body.light .lang-toggle {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
}
body.light .lang-btn { color: rgba(18,16,30,0.5); }

/* Menu bars */
body.light .menu-toggle span { background: var(--text); }

/* Hero mesh — lighter warmth */
body.light .hero-mesh {
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(154,114,25,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(100,60,160,0.04) 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 0%,  rgba(154,114,25,0.05) 0%, transparent 50%),
    var(--bg);
}

/* Hero decorative line */
body.light .hero-line {
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.08), transparent);
}

/* Hero stats strip */
body.light .hero-stats {
  border-top-color:    rgba(0,0,0,0.08);
  border-bottom-color: rgba(0,0,0,0.08);
}
body.light .hero-stat { border-right-color: rgba(0,0,0,0.08); }

/* Stats section (big numbers row) */
body.light .stats-section {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border-top-color:    rgba(0,0,0,0.08);
  border-bottom-color: rgba(0,0,0,0.08);
}
body.light .stats-section::before {
  background: radial-gradient(ellipse, rgba(154,114,25,0.10) 0%, transparent 70%);
}
body.light .stat-card-lg::before {
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.08), transparent);
}

/* CTA banner */
body.light .cta-banner {
  background: var(--bg2);
  border-top-color:    rgba(0,0,0,0.08);
  border-bottom-color: rgba(0,0,0,0.08);
}
body.light .cta-banner::before {
  background: radial-gradient(ellipse, rgba(154,114,25,0.08) 0%, transparent 65%);
}

/* Page hero mesh */
body.light .page-hero-mesh {
  background:
    radial-gradient(ellipse 60% 70% at 10% 50%, rgba(154,114,25,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 30%, rgba(100,60,160,0.03) 0%, transparent 55%);
}

/* Glass card hover gold line */
body.light .glass-card::before {
  background: linear-gradient(135deg, rgba(154,114,25,0.07) 0%, transparent 60%);
}

/* Section with bg var overrides */
body.light section[style*="background:var(--bg2)"],
body.light section[style*="background: var(--bg2)"] {
  background: var(--bg2) !important;
}

/* About visual frame */
body.light .about-img-frame {
  background: var(--bg3);
  border-color: rgba(0,0,0,0.09);
}
body.light .about-img-frame::before {
  background:
    radial-gradient(ellipse 70% 50% at 30% 40%, rgba(154,114,25,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 70% 60%, rgba(100,60,160,0.04) 0%, transparent 55%);
}

/* Form inputs */
body.light .form-group input,
body.light .form-group select,
body.light .form-group textarea {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.12);
  color: var(--white);
}
body.light .form-group input:focus,
body.light .form-group select:focus,
body.light .form-group textarea:focus {
  background: rgba(255,255,255,0.95);
}
body.light .form-group select option { background: #fff; color: #12101e; }
body.light .form-group input::placeholder,
body.light .form-group textarea::placeholder { color: rgba(18,16,30,0.3); }

/* Footer */
body.light .footer {
  background: var(--bg2);
  border-top-color: rgba(0,0,0,0.08);
}
body.light .footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* Scroll bar indicator */
body.light .scroll-bar {
  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* Mobile nav overlay */
@media (max-width: 900px) {
  body.light .nav-links {
    background: rgba(245,241,232,0.97);
    border-bottom-color: rgba(0,0,0,0.08);
  }
}

/* Breadcrumb */
body.light .breadcrumb { color: rgba(18,16,30,0.4); }

/* ── Language Visibility ─────────────────────────── */
.lang-ar { display: none; }
.lang-en { display: block; }
body.arabic .lang-ar { display: block; }
body.arabic .lang-en { display: none; }
span.lang-ar, a.lang-ar { display: none; }
span.lang-en, a.lang-en { display: inline; }
body.arabic span.lang-ar, body.arabic a.lang-ar { display: inline; }
body.arabic span.lang-en, body.arabic a.lang-en { display: none; }

/* ── Misc Utilities ──────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .contact-form-wrap { padding: 2rem 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .btn { padding: 12px 26px; }
  .navbar-inner { padding: 0 1.25rem; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
}

/* RTL misc */
body[dir="rtl"] .hero h1 .gold-word::after { background: linear-gradient(270deg, var(--gold), transparent); }
body[dir="rtl"] .divider { background: linear-gradient(270deg, var(--gold), transparent); }
body[dir="rtl"] .hero-eyebrow { flex-direction: row-reverse; }
body[dir="rtl"] .hero-line { left: 38%; right: auto; }
body[dir="rtl"] .about-img-frame { direction: rtl; }

/* ── SVG icon sizing inside icon containers ──────────────────────── */
.feature-icon  { color: var(--gold-light); }
.value-icon    { color: var(--gold-light); }
.c-icon        { color: var(--gold-light); }
.service-icon  { color: var(--gold-light); }
.svc-icon svg  { color: var(--gold-light); }
.feature-icon svg, .value-icon svg, .c-icon svg, .service-icon svg { display:block; }
.glass-card:hover .feature-icon { color: #0a0a0f; }
.glass-card:hover .value-icon   { color: #0a0a0f; }
.glass-card:hover .c-icon       { color: #0a0a0f; }
.glass-card:hover .service-icon { color: #0a0a0f; }
/* footer contact row SVG sizing */
.footer-contact-row .svg-ico { width:14px;height:14px;flex-shrink:0;margin-top:3px;opacity:.7; }
.footer-contact-row .svg-ico svg { display:block; }
/* about big icon SVG */
.about-big-icon svg { width:9rem;height:9rem;color:var(--gold);opacity:.85; }
/* iso process step numbers */
.iso-step-num { display:flex;align-items:center;justify-content:center;
  width:2.4rem;height:2.4rem;border-radius:50%;border:1.5px solid var(--gold-border);
  color:var(--gold-light);font-size:1rem;font-weight:700;margin-bottom:.75rem;
  font-family:'Cormorant Garamond',serif; }


/* ── ISO Services showcase (index.html) ───────────────────────────── */
.iso-showcase {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4.5rem;
  align-items: start;
}
.iso-left { position: sticky; top: 6rem; }
.iso-left .divider { margin: 1.4rem 0 1.6rem; }

.iso-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .6rem;
  margin-bottom: 2rem;
}
.iso-pill {
  padding: .3rem .85rem;
  border-radius: 50px;
  border: 1px solid var(--gold-border);
  background: var(--gold-dim);
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.iso-left-btns {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: flex-start;
}
body[dir="rtl"] .iso-left-btns { align-items: flex-end; }

/* ── service rows ── */
.iso-svc-row {
  display: grid;
  grid-template-columns: 2.8rem 52px 1fr;
  gap: 1.2rem 1.4rem;
  align-items: center;
  padding: 1.4rem 1.8rem;
  margin-bottom: .7rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.iso-svc-row:last-child { margin-bottom: 0; }
.iso-svc-row:hover {
  transform: translateX(6px);
  border-color: rgba(212,175,55,.35);
  box-shadow: 0 4px 24px rgba(212,175,55,.08);
}
body[dir="rtl"] .iso-svc-row:hover { transform: translateX(-6px); }

.iso-svc-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-border);
  line-height: 1;
  transition: color var(--transition);
}
.iso-svc-row:hover .iso-svc-num { color: var(--gold); }

.iso-svc-icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.iso-svc-row:hover .iso-svc-icon {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0a0f;
}

.iso-svc-body h4 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .3rem;
}
.iso-svc-body p {
  font-size: .9rem;
  color: var(--text2);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .iso-showcase { grid-template-columns: 1fr; gap: 2.5rem; }
  .iso-left { position: static; }
  .iso-left-btns { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .iso-svc-row { grid-template-columns: 2rem 44px 1fr; gap: .8rem 1rem; padding: 1.1rem 1.2rem; }
  .iso-svc-num { font-size: 1.3rem; }
  .iso-svc-icon { width: 44px; height: 44px; border-radius: 10px; }
}

/* ── Hero two-column layout ───────────────────────────────────────── */
.hero-content-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
/* constrain text column so it doesn't stretch too wide */
.hero-content-wrap .hero-content { max-width: 100%; }

/* ── Hero image visual ────────────────────────────────────────────── */
.hero-visual { position: relative; }

.hero-img-frame {
  position: relative;
  border-radius: 24px;
  overflow: visible;               /* let badges bleed outside */
}

.hero-img-frame::before {          /* gold border ring */
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--gold-border) 0%, transparent 50%, var(--gold-border) 100%);
  z-index: 0;
}

.hero-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 22px;
  filter: saturate(0.82) contrast(1.06);
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 22px;
  background: linear-gradient(
    160deg,
    rgba(212,175,55,.14) 0%,
    transparent 35%,
    rgba(10,10,15,.35) 100%
  );
  pointer-events: none;
}

/* light theme: slightly different overlay */
body.light .hero-img { filter: saturate(0.9) contrast(1.02); }
body.light .hero-img-overlay {
  background: linear-gradient(160deg, rgba(212,175,55,.1) 0%, transparent 40%, rgba(0,0,0,.15) 100%);
}

/* ── Floating badges ──────────────────────────────────────────────── */
.hero-img-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem 1.1rem;
  border-radius: 14px;
  background: var(--glass-bg2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--gold-border);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  animation: badgeFloat 4s ease-in-out infinite alternate;
}
.hib-bl { bottom: 1.8rem; left: -1.8rem; animation-delay: 0s;   }
.hib-tr { top:    2rem;   right: -1.8rem; animation-delay: 1.3s; }
.hib-br { bottom: -1.2rem; right: 2.5rem; animation-delay: 2.1s; }

@keyframes badgeFloat {
  0%   { transform: translateY(0);    }
  100% { transform: translateY(-7px); }
}

.hib-num {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}
.hib-lbl {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  color: var(--text2);
  white-space: nowrap;
  line-height: 1.3;
}

/* RTL adjustments */
body[dir="rtl"] .hib-bl { left: auto; right: -1.8rem; }
body[dir="rtl"] .hib-tr { right: auto; left: -1.8rem; }
body[dir="rtl"] .hib-br { right: auto; left: 2.5rem;  }

/* light theme badge */
body.light .hero-img-badge { box-shadow: 0 8px 32px rgba(0,0,0,.12); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content-wrap { gap: 2.5rem; }
  .hero-img { height: 440px; }
  .hib-bl { left: -1rem; }
  .hib-tr { right: -1rem; }
}
@media (max-width: 860px) {
  .hero-content-wrap {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    display: none;   /* hide on small screens — hero stays clean */
  }
}

/* ── Hero two-column layout ───────────────────────────────────────── */
.hero-content-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
.hero-content-wrap .hero-content { max-width: 100%; }

/* ── Hero image visual ────────────────────────────────────────────── */
.hero-visual { position: relative; }

.hero-img-frame {
  position: relative;
  border-radius: 24px;
  overflow: visible;
}
.hero-img-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(212,175,55,.5) 0%, transparent 50%, rgba(212,175,55,.3) 100%);
  z-index: 0;
}
.hero-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 22px;
  filter: saturate(0.82) contrast(1.06);
}
.hero-img-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(212,175,55,.14) 0%, transparent 35%, rgba(10,10,15,.35) 100%);
  pointer-events: none;
}
body.light .hero-img { filter: saturate(0.9) contrast(1.02); }
body.light .hero-img-overlay {
  background: linear-gradient(160deg, rgba(212,175,55,.1) 0%, transparent 40%, rgba(0,0,0,.12) 100%);
}

/* ── Floating info badges ─────────────────────────────────────────── */
.hero-img-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.1rem;
  border-radius: 14px;
  background: rgba(15,14,20,.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212,175,55,.35);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
body.light .hero-img-badge {
  background: rgba(255,253,248,.88);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.hib-bl { bottom: 1.8rem; left: -1.8rem; animation: badgeFloat 4s ease-in-out infinite alternate; }
.hib-tr { top: 2rem; right: -1.8rem; animation: badgeFloat 4s ease-in-out infinite alternate; animation-delay: 1.4s; }
.hib-br { bottom: -1.2rem; right: 2.5rem; animation: badgeFloat 4s ease-in-out infinite alternate; animation-delay: 2.2s; }

@keyframes badgeFloat { 0% { transform: translateY(0); } 100% { transform: translateY(-7px); } }

.hib-num {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}
.hib-lbl {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  color: var(--text2);
  white-space: nowrap;
  line-height: 1.4;
}
body.light .hib-lbl { color: var(--text-dim); }

body[dir="rtl"] .hib-bl { left: auto; right: -1.8rem; }
body[dir="rtl"] .hib-tr { right: auto; left: -1.8rem; }
body[dir="rtl"] .hib-br { right: auto; left: 2.5rem; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content-wrap { gap: 2.5rem; }
  .hero-img { height: 440px; }
  .hib-bl { left: -.8rem; bottom: 1.2rem; }
  .hib-tr { right: -.8rem; top: 1.2rem; }
  .hib-br { display: none; }
}
@media (max-width: 860px) {
  .hero-content-wrap { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE & TABLET IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════ */

/* Tablet (768px–1024px) — hero content comfortable */
@media (max-width: 1024px) {
  .hero h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
}

/* Tablet (600px–768px) */
@media (max-width: 768px) {
  /* Mission/vision blocks */
  .mission-block { padding: 1.8rem; }

  /* CTA banner */
  .cta-banner { padding: 72px 0; }
}

/* Mobile (< 600px) */
@media (max-width: 600px) {
  .container { width: 93%; padding: 0 1rem; }

  /* Section spacing */
  .section    { padding: 60px 0; }
  .section-sm { padding: 44px 0; }

  /* CTA banner tighter on phones */
  .cta-banner { padding: 60px 0; }
  .cta-banner p { font-size: .97rem; }

  /* Testimonial cards */
  .testi-card { padding: 1.8rem 1.5rem; }
}

/* Small phones (< 480px) */
@media (max-width: 480px) {
  /* Slightly smaller base font so 17px doesn't crowd narrow screens */
  html { font-size: 15.5px; }

  .section    { padding: 52px 0; }
  .section-sm { padding: 36px 0; }

  /* Hero */
  .hero h1  { font-size: 2.1rem; line-height: 1.12; }
  .hero-sub { font-size: .95rem; }

  /* Stats row */
  .hero-stats { gap: 0; }

  /* Navbar logo text compact */
  .logo-name  { font-size: .82rem; }
  .logo-sub   { font-size: .6rem; }
  .nav-actions { gap: .6rem; }
  .lang-btn   { padding: 5px 11px; font-size: .7rem; }

  /* About big icon — huge on a phone */
  .about-big-icon svg { width: 5.5rem; height: 5.5rem; }

  /* Feature cards padding */
  .glass-card { padding: 1.6rem 1.4rem; }

  /* Footer */
  .footer-brand-text { font-size: .82rem; }

  /* Course card */
  .course-card-body  { padding: 1.4rem 1.3rem; }
  .course-card-footer{ padding: .9rem 1.3rem; }
}

/* Very small phones (< 380px) */
@media (max-width: 380px) {
  html { font-size: 14.5px; }
  .container { width: 96%; padding: 0 .75rem; }
  .hero h1 { font-size: 1.95rem; }
  .btn { padding: 11px 22px; font-size: .82rem; }
}
