/* ===================================================================
   North Castle Academy - 100% Online Interactive Luxury Design System
   Brand: Royal Burgundy, Obsidian Velvet & Brushed Gold
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Cinzel:wght@600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Luxury Palette */
  --bg-darkest: #070304;
  --bg-dark: #0f0507;
  --bg-burgundy-deep: #250406;
  --bg-burgundy: #4a0404;
  --bg-burgundy-card: #380406;
  --surface-1: #160709;
  --surface-2: #210a0e;
  --surface-3: #2d0e14;
  --surface-glass: rgba(28, 8, 12, 0.72);
  --surface-glass-border: rgba(212, 175, 55, 0.22);
  --surface-glass-hover: rgba(50, 14, 20, 0.85);

  /* Gold & Metallic Accents */
  --gold-primary: #d4af37;
  --gold-light: #f5d77f;
  --gold-glow: #e5c158;
  --gold-dark: #a88420;
  --gold-gradient: linear-gradient(135deg, #fcedb6 0%, #d4af37 50%, #9a781b 100%);
  --gold-gradient-soft: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0.05) 100%);
  --gold-border-glow: 0 0 25px rgba(212, 175, 55, 0.35);

  /* Accent Roles */
  --accent-tech: #00d2ff;
  --accent-tech-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  --accent-english: #d4af37;
  --accent-english-gradient: linear-gradient(135deg, #f5d77f 0%, #d4af37 100%);
  --accent-success: #2ecc71;
  --accent-whatsapp: #25d366;

  /* Typography & Colors */
  --text-white: #ffffff;
  --text-primary: #f5f5f7;
  --text-secondary: #c9c0c3;
  --text-muted: #8e8387;
  --text-gold: #e8c668;

  /* Fonts */
  --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Outfit', sans-serif;

  /* Transitions & Shadows */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 12px 35px -5px rgba(212, 175, 55, 0.28);
  --shadow-burgundy: 0 15px 40px -10px rgba(74, 4, 4, 0.45);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  font-family: var(--font-arabic);
  line-height: 1.65;
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body[dir="ltr"] {
  font-family: var(--font-sans);
}

body[dir="ltr"] .logo-text .title {
  font-family: var(--font-serif);
  letter-spacing: 1.5px;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* Ambient Radial Background Glows */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
  will-change: transform;
}

.glow-orb-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(122, 10, 18, 0.8) 0%, rgba(74, 4, 4, 0.2) 70%, transparent 100%);
  top: -150px;
  right: -100px;
}

.glow-orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.32) 0%, rgba(168, 132, 32, 0.1) 60%, transparent 100%);
  top: 35%;
  left: -150px;
}

.glow-orb-3 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(74, 4, 4, 0.55) 0%, rgba(33, 10, 14, 0.3) 70%, transparent 100%);
  bottom: -150px;
  right: 10%;
}

/* Canvas for golden dust */
#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.65;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Section Header Styles */
.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.1rem;
  background: var(--gold-gradient-soft);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.section-tag svg {
  width: 14px;
  height: 14px;
  fill: var(--gold-primary);
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===================================================================
   HEADER & NAVBAR
   =================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  padding: 0.65rem 0;
  background: rgba(12, 3, 5, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  z-index: 102;
}

.brand-crest {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 15px rgba(74, 4, 4, 0.6);
  overflow: hidden;
  background: var(--bg-burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-smooth);
}

.brand-crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-logo:hover .brand-crest {
  transform: scale(1.05) rotate(-2deg);
  border-color: var(--gold-light);
  box-shadow: var(--gold-border-glow);
}

.brand-names {
  display: flex;
  flex-direction: column;
}

.brand-name-en {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 1.8px;
  line-height: 1.1;
}

.brand-name-ar {
  font-size: 0.78rem;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-item a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-gradient);
  transition: width var(--transition-smooth);
  border-radius: 2px;
}

.nav-item a:hover {
  color: var(--text-white);
}

.nav-item a:hover::after {
  width: 100%;
}

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

.btn-lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-lang:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

/* Luxury Buttons */
.btn-luxury {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.68rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  text-align: center;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #1a080c;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.55);
  color: #000;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
}

.btn-gold:hover::before {
  left: 140%;
}

.btn-burgundy-outline {
  background: rgba(74, 4, 4, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--text-white);
  backdrop-filter: blur(10px);
}

.btn-burgundy-outline:hover {
  background: rgba(120, 10, 15, 0.6);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 4, 4, 0.5);
}

.btn-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 18px rgba(46, 204, 113, 0.4);
  animation: pulseGlow 2.5s infinite;
}

.btn-free-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.6);
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 4px 18px rgba(46, 204, 113, 0.4); }
  50% { box-shadow: 0 4px 28px rgba(46, 204, 113, 0.8), 0 0 15px rgba(255, 255, 255, 0.4); }
}

.mobile-toggle {
  display: none;
  background: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 102;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--gold-primary);
  transition: all var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding: 8.5rem 0 5rem 0;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 50% 20%, rgba(74, 4, 4, 0.38) 0%, rgba(7, 3, 4, 0.98) 75%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.royal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-pill);
  background: rgba(33, 10, 14, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.8rem;
  backdrop-filter: blur(8px);
}

.crown-icon {
  width: 18px;
  height: 18px;
  fill: var(--gold-primary);
}

.royal-badge span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.hero-headline {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.22;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.2rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Live Animated Statistics Strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  padding: 1.5rem;
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-burgundy);
}

.stat-item {
  display: flex;
  flex-direction: column;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  inset-inline-end: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(212, 175, 55, 0.18);
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 0.25rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-light);
  font-family: var(--font-sans);
  line-height: 1.1;
}

.stat-symbol {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-primary);
}

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

/* Hero Visual Showcase */
.hero-visual {
  position: relative;
  z-index: 3;
}

.visual-frame {
  position: relative;
  border-radius: 24px;
  padding: 8px;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.45), rgba(74, 4, 4, 0.8), rgba(212, 175, 55, 0.1));
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), var(--gold-border-glow);
}

.visual-image {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
}

.visual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.visual-frame:hover .visual-image img {
  transform: scale(1.04);
}

.visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(12, 3, 5, 0.85) 100%);
  pointer-events: none;
}

/* Floating Glass Badges */
.floating-card {
  position: absolute;
  padding: 0.85rem 1.25rem;
  background: rgba(28, 8, 12, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: floatSlow 6s ease-in-out infinite alternate;
  z-index: 4;
}

.floating-card-1 {
  top: -20px;
  inset-inline-start: -25px;
}

.floating-card-2 {
  bottom: -25px;
  inset-inline-end: -20px;
  animation-delay: -3s;
}

.floating-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--gold-gradient-soft);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.25rem;
}

.floating-text .floating-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
}

.floating-text .floating-sub {
  font-size: 0.75rem;
  color: var(--gold-light);
  font-weight: 600;
}

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

/* ===================================================================
   FREE PLACEMENT TEST HIGHLIGHT BANNER
   =================================================================== */
.placement-banner-section {
  padding: 2.5rem 0 3.5rem 0;
  position: relative;
  z-index: 2;
}

.placement-banner-box {
  background: linear-gradient(135deg, rgba(74, 4, 4, 0.85) 0%, rgba(20, 5, 8, 0.95) 100%);
  border: 1px solid var(--gold-primary);
  border-radius: 24px;
  padding: 2.2rem 2.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), var(--gold-border-glow);
  position: relative;
  overflow: hidden;
}

.placement-banner-box::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 6px;
  height: 100%;
  background: var(--gold-gradient);
}

.placement-content h3 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.4rem;
}

.placement-content p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.free-tag {
  display: inline-block;
  background: #27ae60;
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-inline-start: 0.5rem;
  letter-spacing: 0.5px;
}

/* ===================================================================
   AGE GROUP INTERACTIVE FILTER & SELECTOR
   =================================================================== */
.age-selector-section {
  padding: 4rem 0 2rem 0;
  position: relative;
  z-index: 2;
}

.age-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.age-pills-wrap {
  display: inline-flex;
  padding: 0.5rem;
  background: var(--surface-1);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-pill);
  gap: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.age-pill-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.age-pill-btn .pill-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.age-pill-btn.active {
  background: var(--gold-gradient);
  color: #1a080c;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.age-pill-btn.active .pill-badge {
  background: rgba(26, 8, 12, 0.2);
  color: #1a080c;
  font-weight: 800;
}

.age-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.age-card {
  background: var(--surface-1);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.age-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.age-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 20px 45px -10px rgba(74, 4, 4, 0.6), 0 0 20px rgba(212, 175, 55, 0.15);
}

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

.age-card.featured {
  background: linear-gradient(180deg, rgba(74, 4, 4, 0.4) 0%, rgba(22, 7, 9, 0.95) 100%);
  border-color: rgba(212, 175, 55, 0.35);
}

.age-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.age-bracket {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold-light);
}

.age-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold-primary);
}

.age-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.age-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.age-tracks-summary {
  list-style: none;
  margin-bottom: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.2rem;
}

.age-tracks-summary li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.track-check {
  color: var(--gold-primary);
  font-weight: 800;
}

/* ===================================================================
   COURSES EXPLORER SECTION (ONLINE ONLY)
   =================================================================== */
.courses-section {
  padding: 6.5rem 0;
  position: relative;
  z-index: 2;
}

.course-track-tabs {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.track-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 2.2rem;
  background: var(--surface-1);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.track-tab-btn .tab-icon {
  font-size: 1.35rem;
}

.track-tab-btn:hover {
  border-color: var(--gold-primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.track-tab-btn.active {
  background: var(--gold-gradient);
  color: #1a080c;
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

.track-tab-btn.active .tab-icon {
  transform: scale(1.15);
}

.courses-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.course-card {
  background: var(--surface-1);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

.course-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8), var(--gold-border-glow);
}

.course-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.course-card:hover .course-media img {
  transform: scale(1.08);
}

.course-badge-track {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  z-index: 2;
}

.badge-programming {
  background: rgba(0, 210, 255, 0.2);
  border: 1px solid rgba(0, 210, 255, 0.5);
  color: #92ecff;
}

.badge-english {
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold-light);
}

.course-age-badge {
  position: absolute;
  bottom: 14px;
  inset-inline-end: 14px;
  padding: 0.25rem 0.75rem;
  background: rgba(12, 3, 5, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-white);
  backdrop-filter: blur(8px);
}

.course-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.course-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

.course-highlights {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.course-highlights li {
  font-size: 0.88rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.course-highlights li svg {
  width: 14px;
  height: 14px;
  fill: var(--gold-primary);
  flex-shrink: 0;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.4rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.meta-item svg {
  width: 15px;
  height: 15px;
  fill: var(--gold-light);
}

.course-footer {
  margin-top: auto;
}

/* ===================================================================
   ONLINE LEARNING EXPERIENCE & ADVANTAGES
   =================================================================== */
.online-system-section {
  padding: 6.5rem 0;
  background: linear-gradient(180deg, var(--bg-darkest) 0%, rgba(37, 4, 6, 0.45) 50%, var(--bg-darkest) 100%);
  position: relative;
  z-index: 2;
}

.online-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

.online-feature-card {
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.6rem;
  text-align: center;
  backdrop-filter: blur(14px);
  transition: all var(--transition-smooth);
}

.online-feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-primary);
  box-shadow: 0 15px 35px rgba(74, 4, 4, 0.5), 0 0 20px rgba(212, 175, 55, 0.2);
}

.online-icon-wrap {
  width: 65px;
  height: 65px;
  border-radius: 18px;
  background: var(--gold-gradient-soft);
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  font-size: 1.8rem;
  color: var(--gold-light);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.online-card-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.online-card-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===================================================================
   INTERACTIVE COURSE FINDER & PLACEMENT TEST QUIZ
   =================================================================== */
.quiz-section {
  padding: 6rem 0;
  position: relative;
  z-index: 2;
}

.quiz-card {
  background: linear-gradient(135deg, rgba(37, 4, 6, 0.9) 0%, rgba(15, 5, 7, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 28px;
  padding: 3.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.15);
  position: relative;
  overflow: hidden;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.quiz-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  width: 25%;
  background: var(--gold-gradient);
  transition: width 0.4s ease;
}

.quiz-question-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.5rem;
  text-align: center;
}

.quiz-question-sub {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.quiz-option-btn {
  padding: 1.8rem 1.4rem;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-white);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.quiz-option-btn .opt-icon {
  font-size: 2.2rem;
}

.quiz-option-btn .opt-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.quiz-option-btn .opt-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quiz-option-btn:hover {
  border-color: var(--gold-primary);
  background: rgba(74, 4, 4, 0.5);
  transform: translateY(-4px);
}

.quiz-option-btn.selected {
  border-color: var(--gold-primary);
  background: rgba(74, 4, 4, 0.8);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.quiz-option-btn.selected .opt-title {
  color: var(--gold-light);
}

.quiz-result-box {
  background: var(--surface-1);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-gold);
}

.quiz-result-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: var(--gold-gradient-soft);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-pill);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.quiz-result-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 0.8rem;
}

.quiz-result-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 650px;
  margin: 0 auto 2rem auto;
}

.quiz-nav-btns {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

/* ===================================================================
   TESTIMONIALS / SUCCESS STORIES
   =================================================================== */
.testimonials-section {
  padding: 6.5rem 0;
  background: linear-gradient(180deg, var(--bg-darkest) 0%, rgba(33, 10, 14, 0.5) 50%, var(--bg-darkest) 100%);
  position: relative;
  z-index: 2;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-burgundy);
}

.rating-stars {
  display: flex;
  gap: 0.25rem;
  color: var(--gold-light);
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.testimonial-text {
  font-size: 0.98rem;
  color: var(--text-primary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

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

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  overflow: hidden;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--gold-light);
  font-size: 1.2rem;
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
}

.author-info span {
  font-size: 0.8rem;
  color: var(--gold-light);
}

/* ===================================================================
   FAQ ACCORDION
   =================================================================== */
.faq-section {
  padding: 6.5rem 0;
  position: relative;
  z-index: 2;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-item {
  background: var(--surface-1);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(212, 175, 55, 0.4);
}

.faq-question {
  width: 100%;
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: var(--text-white);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  text-align: inherit;
}

.faq-toggle-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.1rem;
  transition: transform var(--transition-smooth);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
  background: var(--gold-primary);
  color: #1a080c;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.8rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.8rem 1.6rem 1.8rem;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.98rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

/* ===================================================================
   VIP ADMISSIONS BANNER (CTA)
   =================================================================== */
.cta-section {
  padding: 5rem 0 7rem 0;
  position: relative;
  z-index: 2;
}

.cta-banner {
  background: radial-gradient(circle at 70% 30%, rgba(120, 10, 18, 0.9) 0%, rgba(45, 4, 6, 0.98) 70%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 28px;
  padding: 4.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--gold-border-glow);
}

.cta-banner h2 {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  background: #050203;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 4.5rem 0 2rem 0;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-top: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1.4rem;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -6px;
  inset-inline-start: 0;
  width: 32px;
  height: 2px;
  background: var(--gold-gradient);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.footer-links li a:hover {
  color: var(--gold-light);
  transform: translateX(-4px);
}

body[dir="ltr"] .footer-links li a:hover {
  transform: translateX(4px);
}

.footer-contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-contact-info li svg {
  width: 16px;
  height: 16px;
  fill: var(--gold-primary);
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-gold-credit {
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 600;
}

/* ===================================================================
   FLOATING CONCIERGE (WHATSAPP & SCROLL TO TOP)
   =================================================================== */
.floating-concierge {
  position: fixed;
  bottom: 2rem;
  inset-inline-end: 2rem;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.btn-whatsapp-float {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5), 0 0 15px rgba(255, 255, 255, 0.3);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
}

.btn-whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: 0.7;
  animation: pulsePulse 2s infinite;
}

.btn-whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.btn-whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.7);
}

@keyframes pulsePulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

.btn-scroll-top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-1);
  border: 1px solid var(--surface-glass-border);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.btn-scroll-top:hover {
  background: var(--gold-primary);
  color: #1a080c;
}

/* ===================================================================
   MODAL DIALOGS (REGISTRATION & EMBEDDED PLACEMENT TEST)
   =================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 3, 0.88);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: linear-gradient(145deg, #1f070a 0%, #100305 100%);
  border: 1px solid var(--gold-primary);
  border-radius: 24px;
  max-width: 580px;
  width: 100%;
  padding: 2.8rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), var(--gold-border-glow);
  transform: translateY(30px) scale(0.96);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

/* Large Modal for Placement Test */
.modal-content-large {
  max-width: 960px;
  width: 95%;
  height: 88vh;
  padding: 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
}

.placement-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.placement-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.placement-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.iframe-container {
  width: 100%;
  flex-grow: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #0f0507;
  border: 1px solid rgba(212, 175, 55, 0.3);
  position: relative;
  min-height: 450px;
}

.iframe-container::before {
  content: 'جاري تحميل اختبار تحديد المستوى الذكي... 🎯';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold-light);
  font-size: 0.95rem;
  font-weight: 600;
  pointer-events: none;
  z-index: 0;
  text-align: center;
}

.iframe-container iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  inset-inline-end: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-content-large .modal-close-btn {
  position: static;
}

.modal-close-btn:hover {
  background: var(--gold-primary);
  color: #1a080c;
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  color: var(--text-white);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d4af37'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  background-size: 20px;
}

body[dir="ltr"] select.form-control {
  background-position: right 1rem center;
}

/* ===================================================================
   MOBILE DRAWER & GLOBAL RESPONSIVE ASSETS
   =================================================================== */
svg {
  max-width: 100%;
  flex-shrink: 0;
}

.mobile-drawer-header {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-light);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-drawer-close:hover {
  background: var(--gold-primary);
  color: #1a080c;
}

.mobile-drawer-cta {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.w-100 {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 3, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ===================================================================
   RESPONSIVE DESIGN (TABLETS & DESKTOPS <= 1024px)
   =================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-description {
    margin: 0 auto 2rem auto;
  }

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

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .age-cards-grid,
  .courses-showcase,
  .online-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .quiz-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .placement-banner-box {
    flex-direction: column;
    text-align: center;
  }
}

/* ===================================================================
   RESPONSIVE DESIGN (TABLETS & SMARTPHONES <= 900px)
   =================================================================== */
@media (max-width: 900px) {
  .desktop-only-btn {
    display: none !important;
  }
}

/* ===================================================================
   RESPONSIVE DESIGN (MOBILE PHONES <= 768px)
   =================================================================== */
@media (max-width: 768px) {
  /* Navigation Drawer */
  .nav-links {
    position: fixed;
    top: 0;
    inset-inline-end: -100%;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, #180508 0%, #0c0305 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 1.5rem 1.4rem;
    gap: 0.8rem;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.9);
    transition: inset-inline-end var(--transition-smooth);
    z-index: 102;
    border-inline-start: 1px solid rgba(212, 175, 55, 0.25);
    overflow-y: auto;
  }

  .nav-links.open {
    inset-inline-end: 0;
  }

  .mobile-drawer-header {
    display: flex;
  }

  .mobile-drawer-cta {
    display: flex;
  }

  .nav-item a {
    display: block;
    padding: 0.75rem 0.6rem;
    font-size: 1.05rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
  }

  .nav-item a:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-light);
  }

  .mobile-toggle {
    display: flex;
  }

  /* Typography & Sections */
  .hero-section {
    padding-top: calc(75px + 1.8rem);
    padding-bottom: 3.5rem;
  }

  .hero-headline {
    font-size: clamp(1.85rem, 6vw, 2.35rem);
    line-height: 1.3;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.65;
  }

  .section-title {
    font-size: clamp(1.65rem, 5.5vw, 2rem);
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    padding: 1.2rem 0.8rem;
  }

  .stat-number {
    font-size: 1.85rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  /* Single Column Card Showcases */
  .age-cards-grid,
  .courses-showcase,
  .online-grid,
  .testimonials-grid,
  .quiz-options-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  /* Horizontal Scrolling Age Pills for Effortless Touch Swiping */
  .age-pills-wrap {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.6rem;
    padding: 0.5rem;
    width: 100%;
    border-radius: var(--radius-lg);
  }

  .age-pills-wrap::-webkit-scrollbar {
    display: none;
  }

  .age-pill-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  /* Horizontal Scrolling Track Tabs */
  .course-track-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.6rem;
    padding: 0.4rem 0.2rem;
    width: 100%;
    justify-content: flex-start;
  }

  .course-track-tabs::-webkit-scrollbar {
    display: none;
  }

  .track-tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }

  .floating-card {
    display: none;
  }

  .quiz-card {
    padding: 1.8rem 1.2rem;
    border-radius: var(--radius-lg);
  }

  .quiz-nav-btns {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
  }

  .quiz-nav-btns .btn-luxury {
    width: 100%;
    justify-content: center;
  }

  /* Modals Optimization for Mobile */
  .modal-overlay {
    padding: 0.8rem;
  }

  .modal-content {
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem 1.2rem;
    border-radius: 20px;
  }

  .modal-content-large {
    width: 100%;
    height: 94vh;
    max-height: 94vh;
    padding: 1rem 0.8rem;
    border-radius: 18px;
  }

  .placement-modal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .placement-modal-title {
    font-size: 1.05rem;
  }

  .placement-modal-actions {
    width: 100%;
    justify-content: space-between;
  }

  /* Form Controls (prevent iOS zoom on input focus) */
  .form-control {
    font-size: 16px;
    padding: 0.85rem 1rem;
  }
}

/* ===================================================================
   RESPONSIVE DESIGN (SMALL SMARTPHONES <= 480px)
   =================================================================== */
@media (max-width: 480px) {
  .container {
    padding: 0 1.1rem;
  }

  .brand-crest {
    width: 38px;
    height: 38px;
  }

  .brand-name-en {
    font-size: 1.02rem;
    letter-spacing: 1.2px;
  }

  .brand-name-ar {
    font-size: 0.7rem;
  }

  .btn-lang {
    padding: 0.4rem 0.7rem;
    font-size: 0.82rem;
  }

  .hero-headline {
    font-size: 1.78rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn-luxury {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.2rem;
    min-height: 48px;
  }

  .hero-stats {
    gap: 0.6rem;
    padding: 1rem 0.5rem;
  }

  .stat-number {
    font-size: 1.65rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .placement-banner-box {
    padding: 1.8rem 1.2rem;
  }

  .placement-banner-box .btn-luxury {
    width: 100%;
    justify-content: center;
  }

  .course-card-body {
    padding: 1.5rem 1.2rem;
  }

  .floating-concierge {
    bottom: 1rem;
    inset-inline-end: 1rem;
    gap: 0.6rem;
  }

  .btn-whatsapp-float {
    width: 50px;
    height: 50px;
  }

  .btn-whatsapp-float svg {
    width: 26px;
    height: 26px;
  }

  .btn-scroll-top {
    width: 40px;
    height: 40px;
  }
}

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