/* =============================================
   BUTTERFLIES HOUSE INTERNATIONAL SCHOOL
   Main Stylesheet - Bilingual EN/AR
   ============================================= */

/* ---- Bilingual Visibility Management ---- */
html[lang="en"] .lang-ar { display: none !important; }
html[lang="ar"] .lang-en { display: none !important; }

/* ---- WhatsApp SVG icon via CSS ---- */
.wa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.wa-icon svg { width: 100%; height: 100%; }

/* ---- Image fallback ---- */
img[src]:not([src='']) {
  background: linear-gradient(135deg, #EDE9FE, #FDF2F8);
}


@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&family=Dancing+Script:wght@600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #7C3AED;
  --primary-light: #A78BFA;
  --primary-dark: #5B21B6;
  --secondary: #F59E0B;
  --secondary-light: #FCD34D;
  --accent: #EC4899;
  --accent-light: #F9A8D4;
  --teal: #14B8A6;
  --teal-light: #99F6E4;
  --rose: #F43F5E;
  --sky: #0EA5E9;
  --green: #22C55E;
  --orange: #FB923C;
  --white: #FFFFFF;
  --off-white: #FFF9F0;
  --light-bg: #F8F4FF;
  --dark: #1E1B4B;
  --dark-2: #312E81;
  --text: #374151;
  --text-light: #6B7280;
  --border: #E5E7EB;
  --shadow-sm: 0 2px 8px rgba(124, 58, 237, 0.08);
  --shadow-md: 0 8px 24px rgba(124, 58, 237, 0.15);
  --shadow-lg: 0 20px 60px rgba(124, 58, 237, 0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-en: 'Poppins', sans-serif;
  --font-ar: 'Tajawal', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-en);
  color: var(--text);
  background: var(--off-white);
  overflow-x: hidden;
  line-height: 1.6;
}
body.rtl {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
}
body.rtl * { letter-spacing: 0; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; }
input, textarea, select { outline: none; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: var(--radius-full); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  color: var(--primary-dark);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::before { opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5); }
.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--orange));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }

/* ============================================
   SITE-HEADER WRAPPER (top-bar + navbar, sticky as ONE unit)
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.site-header.scrolled .top-bar {
  margin-top: -40px; /* Hide top bar on scroll */
  opacity: 0;
  pointer-events: none;
}

.top-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  padding: 0.4rem 0;
  transition: margin-top 0.4s ease, opacity 0.3s ease;
  overflow: hidden;
  height: 40px; /* Fixed height for animation */
}
.top-bar .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 1.2rem; }
.top-bar a { color: rgba(255,255,255,0.9); transition: var(--transition); display: flex; align-items: center; gap: 5px; }
.top-bar a:hover { color: var(--secondary-light); }
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.lang-toggle:hover { background: rgba(255,255,255,0.25); }

header {
  background: var(--white);
  /* sticky is now handled by .site-header wrapper */
}
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; gap: 1rem; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.logo-text .school-name-en {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
}
.logo-text .school-name-ar {
  font-family: var(--font-ar);
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 700;
}
.logo-text .school-tagline {
  font-size: 0.65rem;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.nav-links { display: flex; align-items: center; gap: 0.2rem; }
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); background: var(--light-bg); }
.nav-links a:hover::after, .nav-links a.active::after { left: 10%; right: 10%; }
.nav-links a.active { color: var(--primary); }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: var(--transition); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #EEE8FF 0%, #FFF0F8 50%, #E8F4FF 100%);
}
.hero-bg-shapes {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
}
.shape-1 { width: 500px; height: 500px; background: var(--primary-light); top: -150px; left: -100px; animation-delay: 0s; }
.shape-2 { width: 350px; height: 350px; background: var(--accent-light); bottom: -100px; right: 200px; animation-delay: 2s; }
.shape-3 { width: 250px; height: 250px; background: var(--secondary-light); top: 30%; right: -50px; animation-delay: 4s; }
.shape-4 { width: 180px; height: 180px; background: var(--teal-light); bottom: 20%; left: 15%; animation-delay: 1s; }

/* Floating butterflies */
.butterfly {
  position: absolute;
  font-size: 2rem;
  animation: flutter 4s ease-in-out infinite;
  opacity: 0.7;
}
.butterfly-1 { top: 15%; left: 10%; animation-delay: 0s; font-size: 2.5rem; }
.butterfly-2 { top: 25%; right: 15%; animation-delay: 1.5s; font-size: 1.8rem; }
.butterfly-3 { bottom: 30%; left: 5%; animation-delay: 3s; font-size: 2rem; }
.butterfly-4 { bottom: 20%; right: 8%; animation-delay: 2s; font-size: 1.5rem; }
.butterfly-5 { top: 60%; left: 45%; animation-delay: 1s; font-size: 1.2rem; }

.hero .container { position: relative; z-index: 2; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 3rem 0; }
.hero-text .badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--secondary-light), var(--accent-light));
  color: var(--dark);
  padding: 8px 20px; border-radius: var(--radius-full);
  font-size: 0.82rem; font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  animation: slideInLeft 0.8s ease-out;
}
.hero-text h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  animation: slideInLeft 0.8s ease-out 0.1s both;
}
.hero-text h1 span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text .arabic-name {
  font-family: var(--font-ar);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.5rem;
  animation: slideInLeft 0.8s ease-out 0.2s both;
}
.hero-text p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 2rem;
  animation: slideInLeft 0.8s ease-out 0.3s both;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  animation: slideInLeft 0.8s ease-out 0.4s both;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.75rem; color: var(--text-light); font-weight: 500; }
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: slideInLeft 0.8s ease-out 0.5s both;
}

.hero-image-wrap {
  position: relative;
  animation: slideInRight 0.8s ease-out 0.2s both;
}
.hero-image-main {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.hero-image-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: bounce 3s ease-in-out infinite;
}
.hero-image-card.card-1 { bottom: -20px; left: -30px; }
.hero-image-card.card-2 { top: 30px; right: -30px; }
.card-icon { font-size: 1.8rem; }
.card-text .val { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.card-text .lbl { font-size: 0.72rem; color: var(--text-light); }

/* ============================================
   RATINGS SECTION (Home)
   ============================================ */
.ratings-strip {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 2.5rem 0;
}
.ratings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.rating-item .rating-stars { font-size: 1.5rem; letter-spacing: 2px; margin-bottom: 4px; }
.rating-item .rating-num { font-size: 2rem; font-weight: 800; }
.rating-item .rating-label { font-size: 0.78rem; opacity: 0.8; margin-top: 2px; }
.rating-item .rating-source { font-size: 0.7rem; opacity: 0.6; margin-top: 2px; }
.ratings-divider { width: 1px; background: rgba(255,255,255,0.2); }

/* ============================================
   SERVICES SECTION
   ============================================ */
.services { background: var(--white); }
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card-img {
  height: 200px;
  overflow: hidden;
}
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-card-img img { transform: scale(1.08); }
.service-card-body { padding: 1.5rem; }
.service-card-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--dark); }
.service-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; }
.service-tag {
  position: absolute; top: 1rem; right: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700;
}
.rtl .service-tag { right: auto; left: 1rem; }

/* ============================================
   PROGRAMS / CURRICULUM SECTION
   ============================================ */
.programs { background: var(--light-bg); }
.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.program-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient);
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-age-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.program-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.program-card p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 1.2rem; line-height: 1.7; }
.program-features { display: flex; flex-direction: column; gap: 0.5rem; }
.program-feature {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text);
}
.program-feature .check { color: var(--green); font-size: 0.9rem; font-weight: 700; }

/* ============================================
   FEES SECTION
   ============================================ */
.fees { background: var(--white); }
.fees-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.fee-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.fee-card.featured {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  color: var(--white);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}
.fee-card:hover:not(.featured) { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.fee-popular-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--secondary);
  color: var(--dark);
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase;
}
.rtl .fee-popular-badge { right: auto; left: 16px; }
.fee-icon { font-size: 3rem; margin-bottom: 1rem; }
.fee-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.fee-price { font-size: 2.8rem; font-weight: 900; line-height: 1; margin-bottom: 0.3rem; }
.fee-price span { font-size: 1.1rem; font-weight: 600; vertical-align: super; }
.fee-period { font-size: 0.82rem; opacity: 0.7; margin-bottom: 1.5rem; }
.fee-features { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; text-align: left; }
.rtl .fee-features { text-align: right; }
.fee-feature-item { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; }
.fee-feature-item .check-icon { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }
.fee-card:not(.featured) .fee-feature-item .check-icon { background: linear-gradient(135deg, var(--green), var(--teal)); color: white; }
.fee-card.featured .fee-feature-item .check-icon { background: rgba(255,255,255,0.25); }

/* ============================================
   REVIEWS / TESTIMONIALS
   ============================================ */
.reviews { background: linear-gradient(135deg, #F8F4FF, #FFF0F8); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-quote { font-size: 3rem; color: var(--primary-light); line-height: 0.5; margin-bottom: 1rem; }
.review-text { font-size: 0.9rem; color: var(--text); line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.review-stars { color: var(--secondary); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  flex-shrink: 0;
}
.reviewer-info .name { font-size: 0.92rem; font-weight: 700; color: var(--dark); }
.reviewer-info .role { font-size: 0.75rem; color: var(--text-light); }
.review-platform-badge {
  position: absolute; top: 1rem; right: 1rem;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}
.rtl .review-platform-badge { right: auto; left: 1rem; }
.badge-google { background: #E8F0FE; color: #4285F4; }
.badge-facebook { background: #E7F3FF; color: #1877F2; }

/* ============================================
   ADMISSION SECTION
   ============================================ */
.admission-section { background: var(--light-bg); }
.admission-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 4rem; }
.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}
.step-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.83rem; color: var(--text-light); }

/* ============================================
   FORM STYLES
   ============================================ */
.form-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.form-title { font-size: 1.5rem; font-weight: 800; color: var(--dark); margin-bottom: 0.5rem; }
.form-subtitle { font-size: 0.9rem; color: var(--text-light); margin-bottom: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}
.form-group label .req { color: var(--rose); margin-left: 2px; }
.rtl .form-group label .req { margin-left: 0; margin-right: 2px; }
.form-control {
  padding: 0.85rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  width: 100%;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.form-control.is-invalid { border-color: var(--rose); }
.form-control.is-valid { border-color: var(--green); }
.invalid-feedback { font-size: 0.78rem; color: var(--rose); display: none; }
.is-invalid ~ .invalid-feedback { display: block; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.rtl select.form-control { background-position: left 1rem center; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* Captcha widget */
.captcha-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: var(--light-bg);
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}
.captcha-box:hover { border-color: var(--primary-light); }
.captcha-checkbox {
  width: 24px; height: 24px;
  border: 2px solid var(--text-light);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.captcha-box.checked .captcha-checkbox { background: var(--green); border-color: var(--green); }
.captcha-box.checked .captcha-checkbox::after { content: '✓'; color: white; font-size: 0.9rem; font-weight: 700; }
.captcha-label { font-size: 0.9rem; color: var(--text); font-weight: 500; }
.captcha-brand { margin-left: auto; display: flex; flex-direction: column; align-items: center; }
.rtl .captcha-brand { margin-left: 0; margin-right: auto; }
.captcha-brand span { font-size: 0.62rem; color: var(--text-light); }
.captcha-brand strong { font-size: 0.7rem; color: var(--primary); }

/* Math captcha */
.math-captcha {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: var(--light-bg);
}
.math-question { font-size: 1rem; font-weight: 700; color: var(--dark); }
.math-input {
  width: 80px; padding: 0.5rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 700;
  text-align: center;
}
.math-input:focus { border-color: var(--primary); }
.captcha-refresh { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 1.1rem; transition: var(--transition); }
.captcha-refresh:hover { transform: rotate(180deg); }

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: rgba(255,255,255,0.85);
  padding: 5rem 0 0;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(124,58,237,0.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(236,72,153,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo-text .school-name-en { color: var(--white); }
.footer-brand p { font-size: 0.88rem; line-height: 1.8; margin: 1.5rem 0; opacity: 0.75; }
.footer-social { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.social-link {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
}
.social-link:hover { background: var(--primary); transform: translateY(-3px); border-color: var(--primary); }
.footer-col h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 1.2rem; position: relative; }
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 30px; height: 2px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  border-radius: var(--radius-full);
}
.rtl .footer-col h4::after { left: auto; right: 0; }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { font-size: 0.88rem; opacity: 0.75; transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { opacity: 1; color: var(--primary-light); transform: translateX(4px); }
.rtl .footer-links a:hover { transform: translateX(-4px); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 1rem; font-size: 0.88rem; opacity: 0.75; }
.footer-contact-icon { width: 20px; flex-shrink: 0; text-align: center; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  opacity: 0.6;
}
.footer-bottom a { opacity: 1; color: var(--primary-light); }
.footer-bottom a:hover { opacity: 0.8; }

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  z-index: 10000;
  border-top: 3px solid var(--primary);
  transform: translateY(100%);
  animation: slideUp 0.6s ease-out 1.5s forwards;
}
.cookie-banner.hidden { display: none; }
.cookie-icon { font-size: 2rem; flex-shrink: 0; }
.cookie-text { flex: 1; min-width: 200px; }
.cookie-text p { font-size: 0.88rem; color: var(--text); }
.cookie-text a { color: var(--primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ============================================
   FLOATING BUTTONS
   ============================================ */
.floating-buttons {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 999;
}
.rtl .floating-buttons { right: auto; left: 2rem; }
.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.float-btn:hover { transform: scale(1.15); }
.float-whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); color: white; }
.float-whatsapp .wa-icon { width: 26px; height: 26px; }
.float-phone { background: linear-gradient(135deg, var(--sky), #0369A1); color: white; }
.float-top { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; opacity: 0; pointer-events: none; transition: var(--transition); }
.float-top.visible { opacity: 1; pointer-events: all; }

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  text-align: center;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: white; margin-bottom: 1rem; }
.page-hero p { font-size: 1.05rem; opacity: 0.9; max-width: 600px; margin: 0 auto 1.5rem; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; justify-content: center; font-size: 0.85rem; opacity: 0.75; }
.breadcrumb a { color: var(--secondary-light); }
.breadcrumb span { opacity: 0.5; }

/* ============================================
   MAP SECTION
   ============================================ */
.map-section { background: var(--white); padding: 0; }
.map-wrapper {
  height: 400px;
  background: linear-gradient(135deg, var(--light-bg), #EDE9FE);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  overflow: hidden;
  position: relative;
}
.map-placeholder {
  text-align: center;
  padding: 2rem;
}
.map-placeholder .map-icon { font-size: 4rem; margin-bottom: 1rem; }
.map-placeholder h3 { font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.map-placeholder p { color: var(--text-light); font-size: 0.9rem; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
@keyframes flutter {
  0%, 100% { transform: translateY(0) rotate(-10deg) scale(1); }
  25% { transform: translateY(-15px) rotate(10deg) scale(1.1); }
  50% { transform: translateY(-5px) rotate(-5deg) scale(0.95); }
  75% { transform: translateY(-20px) rotate(15deg) scale(1.05); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(124,58,237,0); }
}
.animate-fadeInUp { animation: fadeInUp 0.7s ease-out both; }

/* ============================================
   UTILITY
   ============================================ */
.bg-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.bg-accent { background: linear-gradient(135deg, var(--accent), var(--rose)); }
.bg-secondary { background: linear-gradient(135deg, var(--secondary), var(--orange)); }
.bg-teal { background: linear-gradient(135deg, var(--teal), #0F766E); }
.bg-sky { background: linear-gradient(135deg, var(--sky), #0369A1); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-white { color: var(--white); }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }
.visible { display: block !important; }
.alert-success {
  padding: 1rem 1.5rem;
  background: #DCFCE7; color: #166534;
  border-radius: var(--radius-md);
  border: 1px solid #86EFAC;
  font-size: 0.9rem; font-weight: 600;
  display: none;
}
.alert-error {
  padding: 1rem 1.5rem;
  background: #FEE2E2; color: #991B1B;
  border-radius: var(--radius-md);
  border: 1px solid #FCA5A5;
  font-size: 0.9rem; font-weight: 600;
  display: none;
}

/* ============================================
   INFO CARDS
   ============================================ */
.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.info-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.info-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.7; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admission-steps { grid-template-columns: repeat(2, 1fr); }
  .fees-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .fee-card.featured { transform: scale(1); }
  .ratings-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-image-wrap { order: -1; }
  .hero-image-main { height: 300px; }
  .hero-image-card { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta .btn:not(:last-child) { display: none; }
  .hamburger { display: flex; }
  .mobile-menu {
    position: fixed; inset: 0;
    background: var(--white);
    z-index: 9999;
    display: flex; flex-direction: column;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu .nav-links { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
  .mobile-menu .nav-links a { font-size: 1.1rem; }
  .mobile-close {
    align-self: flex-end;
    background: var(--light-bg);
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
  }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .top-bar { display: none; }
  .floating-buttons { bottom: 1rem; right: 1rem; }
  .rtl .floating-buttons { right: auto; left: 1rem; }
}

@media (max-width: 480px) {
  section { padding: 3rem 0; }
  .hero { min-height: unset; padding: 3rem 0; }
  .admission-steps { grid-template-columns: 1fr; }
  .ratings-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================
   PAGE HERO (contact, services, privacy pages)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
  color: var(--white);
  padding: 4rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.15;
}
.page-hero p {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 620px;
  margin: 0 auto 0.5rem;
  line-height: 1.7;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: underline; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.5); }

/* ============================================
   ALERT BANNERS
   ============================================ */
.alert-success {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
  background: linear-gradient(135deg, #DCFCE7, #F0FDF4);
  color: #166534;
  border: 1px solid #86EFAC;
}
.alert-error {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
  background: linear-gradient(135deg, #FEE2E2, #FFF1F2);
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

/* ============================================
   INFO CARDS
   ============================================ */
.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-card-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.info-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.info-card p, .info-card a {
  font-size: 0.88rem; color: var(--text-light);
  line-height: 1.7; text-decoration: none; display: block;
}
.info-card a:hover { color: var(--primary); }

/* ============================================
   MAP WRAPPER
   ============================================ */
.map-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 420px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.map-wrapper iframe { width: 100%; height: 100%; border: 0; }

/* ============================================
   MOBILE NAV LINKS
   ============================================ */
.mobile-nav-links { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-nav-links a {
  font-size: 1.05rem; font-weight: 600; color: var(--dark);
  padding: 0.6rem 0.5rem; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mobile-nav-links a:hover,
.mobile-nav-links a.active { color: var(--primary); background: var(--light-bg); }

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}
@keyframes flutter {
  0%, 100% { transform: translateY(0) rotate(-5deg) scale(1); }
  50% { transform: translateY(-15px) rotate(5deg) scale(1.05); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fadeInUp { animation: fadeInUp 0.6s ease-out forwards; }

/* ============================================
   RESPONSIVE — NEW PAGES
   ============================================ */
@media (max-width: 900px) {
  .contact-info-bar { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 768px) {
  .page-hero { padding: 3rem 0 2.5rem; }
  .map-wrapper { height: 280px; }
  .contact-info-bar { grid-template-columns: 1fr !important; }
  .grid-2 { grid-template-columns: 1fr !important; }
  .grid-3 { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr 1fr !important; }
  .fee-card.featured { transform: scale(1) !important; }
}
