/* =============================================
   ARABIC ONLINE TRAINING COURSE - CUSTOM STYLES
   RTL Layout | Arabic Design System
   ============================================= */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Cairo:wght@300;400;600;700;900&display=swap');

/* --- CSS Variables --- */
:root {
  --blue:    #1E40AF;
  --blue-light: #2563EB;
  --blue-dark:  #1e3a8a;
  --yellow:  #FACC15;
  --yellow-dark: #eab308;
  --white:   #FFFFFF;
  --cyan:    #0EA5E9;
  --orange:  #F97316;
  --gray-50: #F8FAFC;
  --gray-100:#F1F5F9;
  --gray-200:#E2E8F0;
  --gray-500:#64748B;
  --gray-700:#334155;
  --gray-900:#0F172A;
  --shadow-sm: 0 1px 3px rgba(30,64,175,0.08), 0 1px 2px rgba(30,64,175,0.04);
  --shadow-md: 0 4px 20px rgba(30,64,175,0.12), 0 2px 8px rgba(30,64,175,0.06);
  --shadow-lg: 0 10px 40px rgba(30,64,175,0.18), 0 4px 16px rgba(30,64,175,0.10);
  --shadow-xl: 0 20px 60px rgba(30,64,175,0.22);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  direction: rtl;
  text-align: right;
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- Typography Scale --- */
h1, h2, h3, h4, h5 { font-family: 'Cairo', sans-serif; font-weight: 900; line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p { font-family: 'Tajawal', sans-serif; font-weight: 400; color: var(--gray-700); }

/* --- Utility Classes --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--gray-900);
  margin-bottom: 1rem;
}
.section-title span { color: var(--blue); }
.section-subtitle { color: var(--gray-500); font-size: 1.05rem; max-width: 600px; margin: 0 auto 3rem; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(30,64,175,0.1);
  padding: 0.6rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav-logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem; font-weight: 900;
}
.nav-logo-text { font-family: 'Cairo', sans-serif; font-weight: 900; font-size: 1.2rem; color: var(--gray-900); }
.navbar.scrolled .nav-logo-text { color: var(--gray-900); }
.navbar:not(.scrolled) .nav-logo-text { color: white; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  color: rgba(255,255,255,0.9);
}
.navbar.scrolled .nav-links a { color: var(--gray-700); }
.nav-links a:hover { background: rgba(255,255,255,0.15); color: white; }
.navbar.scrolled .nav-links a:hover { background: var(--gray-100); color: var(--blue); }

.nav-cta {
  background: var(--yellow) !important;
  color: var(--gray-900) !important;
  font-weight: 800 !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 15px rgba(250,204,21,0.4) !important;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(250,204,21,0.5) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: white; border-radius: 2px; transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--gray-700); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: var(--blue-dark);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.mobile-menu.open { opacity: 1; pointer-events: all; display: flex; }
.mobile-menu a {
  font-family: 'Cairo', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}
.mobile-menu a:hover { color: var(--yellow); }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, #1d4ed8 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 7rem 0 4rem;
}

/* Decorative shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}
.shape-1 {
  width: 600px; height: 600px;
  background: var(--yellow);
  top: -200px; left: -100px;
  animation: float1 8s ease-in-out infinite;
}
.shape-2 {
  width: 400px; height: 400px;
  background: var(--cyan);
  bottom: -150px; right: -100px;
  animation: float2 10s ease-in-out infinite;
}
.shape-3 {
  width: 200px; height: 200px;
  background: var(--orange);
  top: 30%; right: 15%;
  opacity: 0.12;
  animation: float3 6s ease-in-out infinite;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes float1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(30px,-20px) scale(1.05)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-20px,30px)} }
@keyframes float3 { 0%,100%{transform:translate(0,0) rotate(0deg)} 50%{transform:translate(15px,-15px) rotate(180deg)} }

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: white;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
.hero-title .highlight {
  color: var(--yellow);
  position: relative;
  display: inline-block;
}
.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  opacity: 0.4;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--yellow);
  color: var(--gray-900);
  font-family: 'Cairo', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(250,204,21,0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(250,204,21,0.5);
  background: var(--yellow-dark);
}
.btn-primary:active { transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  color: white;
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.stat { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 900; color: var(--yellow); display: block; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  animation: cardFloat 5s ease-in-out infinite;
}
@keyframes cardFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

.card-header-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.card-avatar {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.card-title { color: white; font-weight: 700; font-size: 1rem; }
.card-sub { color: rgba(255,255,255,0.6); font-size: 0.85rem; }

.progress-item { margin-bottom: 1rem; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 0.4rem; }
.progress-label span { color: rgba(255,255,255,0.8); font-size: 0.85rem; font-family: 'Tajawal', sans-serif; }
.progress-label strong { color: white; font-size: 0.85rem; }
.progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--yellow));
  width: 0;
  transition: width 1.5s ease;
}

.floating-badge {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gray-900);
  animation: badgeFloat 4s ease-in-out infinite;
}
.badge-top { top: -20px; left: -20px; animation-delay: 1s; }
.badge-bottom { bottom: -20px; right: -20px; }
@keyframes badgeFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.badge-icon { font-size: 1.2rem; }

/* =============================================
   ABOUT SECTION
   ============================================= */
.about { padding: 6rem 0; background: var(--gray-50); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}
.about-img-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue), var(--cyan));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem; color: white;
}
.about-img-placeholder .big-icon { font-size: 5rem; }
.about-img-placeholder p { font-size: 1.2rem; font-weight: 700; }
.about-badge-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: white;
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.about-badge-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.about-badge-text strong { display: block; color: var(--gray-900); font-size: 1.3rem; }
.about-badge-text span { color: var(--gray-500); font-size: 0.85rem; }

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.feature-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  cursor: default;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--cyan);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.feature-icon.blue { background: rgba(30,64,175,0.1); }
.feature-icon.yellow { background: rgba(250,204,21,0.15); }
.feature-icon.cyan { background: rgba(14,165,233,0.1); }
.feature-icon.orange { background: rgba(249,115,22,0.1); }
.feature-card h4 { font-size: 0.95rem; color: var(--gray-900); margin-bottom: 0.3rem; }
.feature-card p { font-size: 0.82rem; color: var(--gray-500); }

/* =============================================
   CURRICULUM SECTION
   ============================================= */
.curriculum { padding: 6rem 0; background: white; }

.modules-list { display: flex; flex-direction: column; gap: 1rem; max-width: 800px; margin: 0 auto; }

.module-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.module-item.active { border-color: var(--blue); box-shadow: var(--shadow-md); }

.module-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}
.module-header:hover { background: rgba(30,64,175,0.04); }
.module-item.active .module-header { background: linear-gradient(135deg, var(--blue), var(--blue-light)); }
.module-item.active .module-header * { color: white !important; }

.module-num {
  width: 36px; height: 36px;
  background: white;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.9rem;
  color: var(--blue);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.module-item.active .module-num { background: rgba(255,255,255,0.2); color: white; box-shadow: none; }

.module-info { flex: 1; }
.module-title { font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 1rem; color: var(--gray-900); }
.module-meta { font-size: 0.82rem; color: var(--gray-500); margin-top: 0.2rem; }

.module-arrow {
  color: var(--gray-500);
  font-size: 1rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.module-item.active .module-arrow { transform: rotate(180deg); color: white; }

.module-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.module-body-inner {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.lesson-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  background: white;
  border: 1px solid var(--gray-200);
  font-size: 0.9rem;
  color: var(--gray-700);
  transition: var(--transition);
}
.lesson-row:hover { border-color: var(--cyan); color: var(--blue); }
.lesson-icon { font-size: 0.9rem; color: var(--cyan); }
.lesson-duration { margin-right: auto; color: var(--gray-500); font-size: 0.8rem; }

/* =============================================
   INSTRUCTOR SECTION
   ============================================= */
.instructor { padding: 6rem 0; background: var(--gray-50); }

.instructor-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  max-width: 900px;
  margin: 0 auto;
}

.instructor-visual {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 3rem 2.5rem;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
}
.instructor-avatar {
  width: 130px; height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  border: 4px solid rgba(255,255,255,0.2);
}
.instructor-name { font-size: 1.3rem; color: white; margin-bottom: 0.4rem; }
.instructor-role {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  padding: 0.25rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.instructor-socials { display: flex; gap: 0.75rem; justify-content: center; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--gray-900); }

.instructor-info { padding: 3rem; }
.instructor-bio { font-size: 1rem; color: var(--gray-700); margin-bottom: 2rem; line-height: 1.8; }
.instructor-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.ins-stat {
  text-align: center;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}
.ins-stat-num { font-size: 1.6rem; font-weight: 900; color: var(--blue); display: block; }
.ins-stat-label { font-size: 0.8rem; color: var(--gray-500); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tag {
  background: rgba(30,64,175,0.08);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  border: 1px solid rgba(30,64,175,0.15);
}

/* =============================================
   TESTIMONIALS SECTION
   ============================================= */
.testimonials { padding: 6rem 0; background: white; overflow: hidden; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0;
}
.testimonial-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}
.testimonial-card.featured {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-color: transparent;
}
.testimonial-card.featured .test-text,
.testimonial-card.featured .test-name,
.testimonial-card.featured .test-course { color: white !important; }
.testimonial-card.featured .stars { color: var(--yellow) !important; }
.quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--blue);
  opacity: 0.15;
  position: absolute;
  top: 1rem; left: 1.5rem;
  font-family: Georgia, serif;
}
.testimonial-card.featured .quote-mark { color: white; opacity: 0.2; }
.stars { color: var(--yellow); font-size: 1rem; margin-bottom: 1rem; }
.test-text { color: var(--gray-700); font-size: 0.95rem; line-height: 1.8; margin-bottom: 1.5rem; }
.test-author { display: flex; align-items: center; gap: 0.75rem; }
.test-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.test-name { font-weight: 700; color: var(--gray-900); font-size: 0.95rem; }
.test-course { font-size: 0.8rem; color: var(--gray-500); }

/* =============================================
   PRICING SECTION
   ============================================= */
.pricing { padding: 6rem 0; background: var(--gray-50); }

.pricing-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 1.5rem; align-items: start; }

.pricing-card {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.popular {
  border-color: var(--blue);
  box-shadow: var(--shadow-xl);
  transform: scale(1.03);
}
.pricing-card.popular:hover { transform: scale(1.03) translateY(-4px); }

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 1.25rem;
  border-radius: 50px;
  white-space: nowrap;
}

.plan-name { font-size: 1rem; color: var(--gray-500); margin-bottom: 0.5rem; font-weight: 600; }
.plan-price { font-size: 2.8rem; font-weight: 900; color: var(--gray-900); line-height: 1; }
.plan-price sup { font-size: 1.2rem; font-weight: 700; vertical-align: super; }
.plan-price span { font-size: 1rem; color: var(--gray-500); font-weight: 400; }
.plan-desc { color: var(--gray-500); font-size: 0.9rem; margin: 0.75rem 0 1.75rem; }
.plan-divider { height: 1px; background: var(--gray-200); margin-bottom: 1.75rem; }

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.plan-features li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--gray-700); }
.plan-features li .check { color: #22c55e; font-size: 0.85rem; }
.plan-features li .cross { color: var(--gray-300); font-size: 0.85rem; }
.plan-features li.disabled { color: var(--gray-300); }

.btn-plan {
  width: 100%;
  padding: 0.85rem;
  border-radius: 50px;
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--blue);
  background: transparent;
  color: var(--blue);
}
.btn-plan:hover { background: var(--blue); color: white; transform: translateY(-2px); }
.btn-plan.filled { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: white; border-color: transparent; box-shadow: 0 8px 25px rgba(30,64,175,0.3); }
.btn-plan.filled:hover { box-shadow: 0 12px 35px rgba(30,64,175,0.4); }

/* =============================================
   FAQ SECTION
   ============================================= */
.faq { padding: 6rem 0; background: white; }

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

.faq-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--blue); box-shadow: var(--shadow-md); background: white; }
.faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  gap: 1rem;
}
.faq-question { font-family: 'Cairo', sans-serif; font-weight: 700; color: var(--gray-900); font-size: 1rem; }
.faq-item.open .faq-question { color: var(--blue); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--gray-600);
  transition: var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-icon { background: var(--blue); color: white; transform: rotate(45deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-body-inner { padding: 0 1.5rem 1.5rem; color: var(--gray-600); font-size: 0.95rem; line-height: 1.8; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }

.footer-brand { }
.footer-logo {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1rem; text-decoration: none;
}
.footer-logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 900; font-size: 1.2rem;
}
.footer-logo-text { color: white; font-weight: 900; font-size: 1.2rem; }
.footer-desc { font-size: 0.9rem; line-height: 1.8; margin-bottom: 1.5rem; }
.footer-socials { display: flex; gap: 0.6rem; }
.footer-social {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social:hover { background: var(--blue); color: white; transform: translateY(-2px); }

.footer-col-title { color: white; font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--yellow); padding-right: 4px; }

.contact-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; margin-bottom: 0.75rem; }
.contact-item .icon { color: var(--cyan); font-size: 0.9rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copyright { font-size: 0.85rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; transition: var(--transition); }
.footer-bottom-links a:hover { color: white; }

/* =============================================
   MODAL / REGISTRATION FORM
   ============================================= */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%; max-width: 480px;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-xl);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute;
  top: 1.25rem; left: 1.25rem;
  background: var(--gray-100);
  border: none; cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--gray-600);
  transition: var(--transition);
}
.modal-close:hover { background: var(--gray-200); }
.modal-title { font-size: 1.5rem; color: var(--gray-900); margin-bottom: 0.5rem; }
.modal-sub { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-family: 'Cairo', sans-serif; font-weight: 600; font-size: 0.9rem; color: var(--gray-700); margin-bottom: 0.5rem; }
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
  direction: rtl;
}
.form-input:focus { border-color: var(--blue); background: white; box-shadow: 0 0 0 3px rgba(30,64,175,0.1); }
.form-input::placeholder { color: var(--gray-400); }
.form-select { appearance: none; -webkit-appearance: none; }
.form-submit {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  font-family: 'Cairo', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(30,64,175,0.3);
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(30,64,175,0.4); }
.form-success { text-align: center; padding: 1rem 0; }
.form-success .success-icon { font-size: 3.5rem; display: block; margin-bottom: 1rem; }
.form-success h3 { color: var(--gray-900); margin-bottom: 0.5rem; }
.form-success p { color: var(--gray-500); font-size: 0.9rem; }

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Section center alignment */
.text-center { text-align: center; }
.section-header { text-align: center; margin-bottom: 4rem; }

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-subtitle { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-card { max-width: 350px; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { order: -1; }

  .instructor-card { grid-template-columns: 1fr; }
  .instructor-visual { padding: 2.5rem; }
  .instructor-info { padding: 2rem; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
  .pricing-card.popular { transform: scale(1); }
  .pricing-card.popular:hover { transform: translateY(-4px); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .features-grid { grid-template-columns: 1fr; }

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

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .instructor-stats { grid-template-columns: 1fr; gap: 0.75rem; }
  .badge-top, .badge-bottom { display: none; }
}
