/* ==============================================
   MADA INTERNATIONAL - Premium Education Website
   ============================================== */

:root {
  --primary: #214CCF;
  --secondary: #2E86F8;
  --light: #64C6FF;
  --very-light: #EAF7FF;
  --white: #FFFFFF;
  --dark: #152238;
  --gray: #6B7280;
  --success: #22C55E;
  --bg: #F7FBFF;
  --dark-bg: #071E42;
  --dark-card: #102C5D;
  --font-en: 'Poppins', sans-serif;
  --font-ar: 'Cairo', sans-serif;
  --shadow-sm: 0 2px 8px rgba(33,76,207,0.08);
  --shadow-md: 0 8px 30px rgba(33,76,207,0.12);
  --shadow-lg: 0 20px 60px rgba(33,76,207,0.15);
  --shadow-xl: 0 30px 80px rgba(33,76,207,0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-bg: rgba(255,255,255,0.7);
  --glass-border: rgba(255,255,255,0.3);
  --glass-shadow: 0 8px 32px rgba(33,76,207,0.1);
}

[data-theme="dark"] {
  --bg: #071E42;
  --white: #0A2540;
  --dark: #FFFFFF;
  --gray: #94A3B8;
  --very-light: #0D2B4F;
  --glass-bg: rgba(16,44,93,0.8);
  --glass-border: rgba(100,198,255,0.15);
  --glass-shadow: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.3);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
}

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

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

body {
  font-family: var(--font-en);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

::selection { background: var(--primary); color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* === Loading Screen === */
.loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-content { text-align: center; }
.loading-logo { margin-bottom: 24px; display: flex; justify-content: center; }
.loading-bar {
  width: 200px; height: 3px; background: var(--very-light);
  border-radius: 10px; overflow: hidden; margin: 0 auto 16px;
}
.loading-bar-inner {
  width: 0; height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--light));
  border-radius: 10px; animation: loading 1.5s ease-in-out infinite;
}
@keyframes loading {
  0% { width: 0; transform: translateX(-100%); }
  50% { width: 70%; transform: translateX(30%); }
  100% { width: 0; transform: translateX(200%); }
}
.loading-text { color: var(--gray); font-size: 14px; font-weight: 500; }

/* === Scroll Progress === */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--light));
  z-index: 9998; width: 0; transition: width 0.1s;
}

/* === Navbar === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 8px 0;
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { flex-shrink: 0; display: flex; align-items: center; }
.logo-svg { display: block; }
.nav-list { display: flex; gap: 6px; }
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--dark);
  transition: all var(--transition); position: relative;
}
.nav-link:hover,
.nav-link.active { background: rgba(33,76,207,0.08); color: var(--primary); }
.navbar-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 50px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  font-size: 12px; font-weight: 600; color: var(--dark);
  transition: all var(--transition);
}
.lang-toggle:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.lang-toggle .lang-ar { display: none; }
[dir="rtl"] .lang-toggle .lang-en { display: none; }
[dir="rtl"] .lang-toggle .lang-ar { display: inline; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--dark); transition: all var(--transition);
}
.theme-toggle:hover { background: var(--primary); color: #fff; }
.theme-toggle .moon-icon { display: none; }
[data-theme="dark"] .theme-toggle .sun-icon { display: none; }
[data-theme="dark"] .theme-toggle .moon-icon { display: block; }

.btn-whatsapp-nav {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--success); color: #fff;
  transition: all var(--transition);
}
.btn-whatsapp-nav:hover { transform: scale(1.1); box-shadow: 0 4px 15px rgba(34,197,94,0.4); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span {
  width: 24px; height: 2px; background: var(--dark);
  border-radius: 2px; transition: all var(--transition);
}

/* === Hero === */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, #1a3da0 50%, var(--secondary) 100%);
  overflow: hidden; padding: 120px 0 80px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(33,76,207,0.4) 0%, rgba(46,134,248,0.2) 100%);
  z-index: 1;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-shape { position: absolute; bottom: 0; left: 0; width: 100%; height: 200px; z-index: 2; }
.hero-geometric { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.geo-shape {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}
.geo-1 { width: 600px; height: 600px; top: -200px; right: -100px; }
.geo-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; }
.geo-3 { width: 200px; height: 200px; top: 30%; left: 10%; }
.geo-4 { width: 300px; height: 300px; bottom: 20%; right: 15%; }
.hero-floating { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.float-item { position: absolute; opacity: 0.6; }
.float-1 { top: 20%; left: 10%; animation: float1 6s ease-in-out infinite; }
.float-2 { top: 40%; right: 12%; animation: float2 8s ease-in-out infinite; }
.float-3 { bottom: 30%; left: 15%; animation: float3 7s ease-in-out infinite; }
.float-4 { bottom: 20%; right: 20%; animation: float4 9s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(5deg); } }
@keyframes float2 { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(15px) rotate(-5deg); } }
@keyframes float3 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-25px); } }
@keyframes float4 { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(10px) rotate(-8deg); } }

.hero-particles { position: absolute; inset: 0; z-index: 1; }
.hero-content { position: relative; z-index: 3; color: #fff; }
.hero-badge {
  display: inline-block; padding: 8px 20px; border-radius: 50px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  font-size: 13px; font-weight: 500; letter-spacing: 0.5px;
  margin-bottom: 24px; backdrop-filter: blur(10px);
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 20px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--light), #fff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 640px; line-height: 1.8;
  opacity: 0.85; margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 50px;
  font-weight: 600; font-size: 15px;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--white); color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.25); }
.btn-glow { position: relative; overflow: hidden; }
.btn-glow::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform 0.6s;
}
.btn-glow:hover::after { transform: translateX(100%); }
.btn-outline {
  background: transparent; border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-whatsapp {
  background: var(--success); color: #fff;
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(34,197,94,0.4); }
.btn-sm { padding: 10px 24px; font-size: 13px; }
.hero-stat-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 24px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}
.hero-stat-num { font-size: 28px; font-weight: 800; }
.hero-stat-label { font-size: 14px; opacity: 0.7; }

/* === Stats === */
.stats {
  padding: 80px 0;
  background: var(--bg); position: relative;
}
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.stat-item {
  text-align: center; padding: 32px 16px;
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.stat-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-icon { color: var(--primary); margin-bottom: 12px; }
.stat-number { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.stat-label { font-size: 14px; color: var(--gray); font-weight: 500; }

/* === Section Common === */
.section { padding: 100px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-tag {
  display: inline-block; padding: 6px 18px; border-radius: 50px;
  background: rgba(33,76,207,0.08); color: var(--primary);
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; line-height: 1.25; margin-bottom: 16px;
}
.section-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-desc { font-size: 16px; color: var(--gray); line-height: 1.8; }

/* === About === */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image-frame { position: relative; }
.about-image-placeholder { border-radius: var(--radius-lg); overflow: hidden; }
.about-exp-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--primary); color: #fff;
  padding: 20px 28px; border-radius: var(--radius-md);
  text-align: center; box-shadow: var(--shadow-lg);
}
.about-exp-num { font-size: 32px; font-weight: 800; display: block; }
.about-exp-text { font-size: 12px; opacity: 0.8; }
.about-features { display: flex; flex-direction: column; gap: 24px; }
.about-feature { display: flex; gap: 16px; align-items: flex-start; }
.af-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: rgba(33,76,207,0.08); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.about-feature h4 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.about-feature p { font-size: 14px; color: var(--gray); }

/* === Why Algeria === */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card {
  padding: 32px 24px; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  text-align: center;
}
.why-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: rgba(33,76,207,0.2);
}
.why-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(33,76,207,0.08), rgba(46,134,248,0.08));
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; transition: all var(--transition);
}
.why-card:hover .why-icon { background: var(--primary); color: #fff; }
.why-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* === Universities Slider === */
.universities { background: var(--very-light); }
.uni-slider-container { position: relative; padding: 0 40px; }
.uni-slider {
  display: flex; gap: 24px; overflow-x: auto;
  scroll-behavior: smooth; scrollbar-width: none; padding: 8px 0;
}
.uni-slider::-webkit-scrollbar { display: none; }
.uni-card {
  min-width: 320px; border-radius: var(--radius-lg);
  background: var(--white); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  flex-shrink: 0;
}
.uni-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.uni-card-img { height: 200px; position: relative; }
.uni-card-body { padding: 24px; }
.uni-card-location {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--primary); font-weight: 500; margin-bottom: 8px;
}
.uni-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.uni-card p { font-size: 14px; color: var(--gray); line-height: 1.7; margin-bottom: 16px; }
.uni-card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.uni-card-tags span {
  padding: 4px 12px; border-radius: 50px;
  background: rgba(33,76,207,0.06); color: var(--primary);
  font-size: 12px; font-weight: 500;
}
.slider-controls {
  position: absolute; top: 50%; left: 0; right: 0;
  transform: translateY(-50%); pointer-events: none;
  display: flex; justify-content: space-between;
}
.slider-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); color: var(--dark);
  box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center;
  pointer-events: auto; transition: all var(--transition);
}
.slider-btn:hover { background: var(--primary); color: #fff; transform: scale(1.1); }

/* === Programs === */
.programs-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.program-card {
  padding: 28px 16px; text-align: center; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-icon { color: var(--primary); margin-bottom: 12px; }
.program-card h3 { font-size: 15px; font-weight: 600; }

/* === PhD Timeline === */
.phd { background: var(--white); }
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding: 20px 0; }
.timeline-line {
  position: absolute; left: 28px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--primary), var(--light));
}
.timeline-item { position: relative; padding-left: 72px; margin-bottom: 48px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: 18px; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); border: 4px solid var(--very-light);
  z-index: 1;
}
.timeline-content {
  padding: 28px; border-radius: var(--radius-md);
  background: var(--bg); border: 1px solid var(--glass-border);
  transition: all var(--transition);
}
.timeline-content:hover { box-shadow: var(--shadow-md); }
.timeline-icon { color: var(--primary); margin-bottom: 12px; }
.timeline-content h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.timeline-content p { font-size: 14px; color: var(--gray); line-height: 1.8; }

/* === Services === */
.services { background: var(--bg); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  padding: 36px 28px; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  position: relative; overflow: hidden;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-num {
  position: absolute; top: 16px; right: 20px;
  font-size: 48px; font-weight: 900; color: rgba(33,76,207,0.04);
  line-height: 1; pointer-events: none;
}
.service-icon { color: var(--primary); margin-bottom: 16px; }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* === Why MADA === */
.why-mada { background: var(--very-light); }
.whymada-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.whymada-card { perspective: 1000px; }
.whymada-card-inner {
  padding: 36px 28px; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  text-align: center;
}
.whymada-card-inner:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.whymada-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(33,76,207,0.08), rgba(46,134,248,0.08));
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.whymada-card-inner:hover .whymada-icon { background: var(--primary); color: #fff; }
.whymada-card-inner h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.whymada-card-inner p { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* === Testimonials === */
.testimonials { background: var(--white); }
.testimonial-slider { position: relative; max-width: 700px; margin: 0 auto; overflow: hidden; }
.testimonial-track {
  display: flex; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.testimonial-card {
  min-width: 100%; padding: 40px 32px;
  text-align: center; box-sizing: border-box;
}
.testi-stars { color: #f59e0b; font-size: 20px; margin-bottom: 16px; }
.testi-text {
  font-size: 16px; color: var(--gray); line-height: 1.8;
  font-style: italic; margin-bottom: 24px;
}
.testi-author { display: flex; align-items: center; gap: 16px; justify-content: center; }
.testi-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 18px;
}
.testi-author h4 { font-size: 16px; font-weight: 600; }
.testi-author span { font-size: 13px; color: var(--gray); }
.testimonial-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 20px;
}
.testi-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(33,76,207,0.2); cursor: pointer; transition: all var(--transition);
}
.testi-dot.active { background: var(--primary); width: 30px; border-radius: 10px; }

/* === FAQ === */
.faq { background: var(--bg); }
.faq-list { max-width: 750px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--glass-border);
  overflow: hidden; transition: all var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; font-size: 16px; font-weight: 600;
  color: var(--dark); background: none; text-align: left;
}
.faq-question svg { flex-shrink: 0; transition: transform var(--transition); }
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.4s;
}
.faq-item.active .faq-answer {
  max-height: 300px; padding: 0 24px 20px;
}
.faq-answer p { font-size: 15px; color: var(--gray); line-height: 1.8; }

/* === Contact === */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; gap: 16px; }
.contact-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: rgba(33,76,207,0.08); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item h4 { font-size: 14px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.contact-item p { font-size: 15px; line-height: 1.6; }
.contact-item a { color: var(--primary); }
.contact-item a:hover { text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 600; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid rgba(33,76,207,0.15);
  background: var(--bg); color: var(--dark);
  transition: all var(--transition); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(33,76,207,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* === Footer === */
.footer {
  background: var(--dark-bg); color: rgba(255,255,255,0.8);
  padding: 80px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; }
.footer-brand p { font-size: 14px; line-height: 1.8; margin: 16px 0 24px; opacity: 0.7; }
.footer-social { display: flex; gap: 12px; flex-wrap: wrap; }
.social-link {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.social-link:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-links h4 {
  font-size: 16px; font-weight: 700; color: #fff;
  margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; opacity: 0.7; transition: all var(--transition); }
.footer-links a:hover { opacity: 1; color: var(--light); padding-left: 4px; }
.footer-newsletter p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; opacity: 0.7; }
.newsletter-form {
  display: flex; border-radius: 50px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.newsletter-form input {
  flex: 1; padding: 12px 16px; border: none; background: rgba(255,255,255,0.06);
  color: #fff; outline: none; font-size: 14px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-form button {
  padding: 12px 20px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.newsletter-form button:hover { background: var(--secondary); }
.footer-bottom {
  margin-top: 60px; padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; opacity: 0.5; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; opacity: 0.5; transition: all var(--transition); }
.footer-legal a:hover { opacity: 1; color: var(--light); }

/* === Floating Buttons === */
.floating-whatsapp {
  position: fixed; bottom: 24px; left: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--success); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(34,197,94,0.4);
  transition: all var(--transition); animation: pulseWhatsApp 2s infinite;
}
.floating-whatsapp:hover { transform: scale(1.1); }
@keyframes pulseWhatsApp {
  0% { box-shadow: 0 4px 20px rgba(34,197,94,0.4); }
  50% { box-shadow: 0 4px 35px rgba(34,197,94,0.6); }
  100% { box-shadow: 0 4px 20px rgba(34,197,94,0.4); }
}
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* === Reveal Animation === */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === 404 Page === */
.page-404 {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px;
}
.page-404 h1 { font-size: 120px; font-weight: 900; color: var(--primary); line-height: 1; }
.page-404 h2 { font-size: 28px; font-weight: 700; margin: 16px 0; }
.page-404 p { color: var(--gray); margin-bottom: 32px; }

/* === RTL Support === */
[dir="rtl"] {
  font-family: var(--font-ar);
}
[dir="rtl"] .hero-title,
[dir="rtl"] .section-title,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] .nav-link,
[dir="rtl"] .btn,
[dir="rtl"] .stat-number,
[dir="rtl"] .hero-stat-num,
[dir="rtl"] .hero-badge,
[dir="rtl"] .section-tag,
[dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea,
[dir="rtl"] .faq-question,
[dir="rtl"] .footer-links a {
  font-family: var(--font-ar);
}
[dir="rtl"] .timeline-item { padding-left: 0; padding-right: 72px; }
[dir="rtl"] .timeline-line { left: auto; right: 28px; }
[dir="rtl"] .timeline-dot { left: auto; right: 18px; }
[dir="rtl"] .faq-question { text-align: right; }
[dir="rtl"] .service-num { right: auto; left: 20px; }
[dir="rtl"] .contact-item { flex-direction: row-reverse; }
[dir="rtl"] .about-feature { flex-direction: row-reverse; }
[dir="rtl"] .hero-buttons { flex-direction: row-reverse; }
[dir="rtl"] .newsletter-form button { border-radius: 50px 0 0 50px; }
[dir="rtl"] .floating-whatsapp { left: auto; right: 24px; }
[dir="rtl"] .back-to-top { right: auto; left: 24px; }
[dir="rtl"] .slider-btn { transform: rotate(180deg); }
[dir="rtl"] .navbar-actions { flex-direction: row-reverse; }
[dir="rtl"] .testi-author { flex-direction: row-reverse; }

/* === Responsive === */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: repeat(4, 1fr); }
  .whymada-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-list {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--white); flex-direction: column;
    padding: 80px 24px 24px; gap: 4px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
    z-index: 99; overflow-y: auto;
  }
  .nav-menu.open .nav-list { right: 0; }
  .nav-link { font-size: 16px; padding: 12px 16px; }
  .menu-toggle { display: flex; }
  .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
  .hero { padding: 100px 0 60px; min-height: 90vh; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stat-item { padding: 24px 12px; }
  .stat-number { font-size: 22px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .programs-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .services-grid { grid-template-columns: 1fr; }
  .whymada-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .uni-slider-container { padding: 0; }
  .uni-card { min-width: 280px; }
  .section { padding: 60px 0; }
  .about-exp-badge { position: static; margin-top: -20px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-title { font-size: 1.8rem; }
  .container { padding: 0 16px; }
  .navbar-inner { gap: 12px; }
  .lang-toggle span { font-size: 10px; }
}
@media (min-width: 1440px) {
  .container { max-width: 1320px; }
  .hero-title { font-size: 4.5rem; }
}

/* === Dark Mode Overrides === */
[data-theme="dark"] .navbar.scrolled { background: var(--glass-bg); }
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active { background: rgba(100,198,255,0.1); color: var(--light); }
[data-theme="dark"] .why-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .whymada-card-inner,
[data-theme="dark"] .uni-card,
[data-theme="dark"] .program-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .stat-item,
[data-theme="dark"] .timeline-content {
  background: var(--dark-card);
}
[data-theme="dark"] .uni-card-tags span { background: rgba(100,198,255,0.1); color: var(--light); }
[data-theme="dark"] .contact-icon,
[data-theme="dark"] .af-icon,
[data-theme="dark"] .section-tag { background: rgba(100,198,255,0.1); color: var(--light); }
[data-theme="dark"] .menu-toggle span { background: var(--dark); }
[data-theme="dark"] .nav-list { background: var(--dark-card); }
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea { background: var(--dark-card); color: #fff; border-color: rgba(100,198,255,0.1); }
[data-theme="dark"] .footer { background: #05132e; }
[data-theme="dark"] .slider-btn { background: var(--dark-card); color: #fff; }
[data-theme="dark"] .about,
[data-theme="dark"] .phd,
[data-theme="dark"] .testimonials,
[data-theme="dark"] .contact { background: var(--bg); }
[data-theme="dark"] .universities,
[data-theme="dark"] .why-mada { background: var(--dark-card); }
[data-theme="dark"] .loading-screen { background: var(--dark-bg); }