/* ==========================================================================
   AL BUSHRA ACADEMY - PUBLIC LANDING PAGE STYLESHEET (css/landing.css)
   Brand Palette: Navy (#030344), Cream (#F6DEC4), Crimson Accent (#F82C84)
   ========================================================================== */

:root {
  /* Brand Specific Colors */
  --brand-navy: #030344;
  --brand-navy-light: #0d0d66;
  --brand-cream: #F6DEC4;
  --brand-cream-dark: #ecd0b1;
  --brand-cream-soft: #fcf7f1;
  --brand-rose: #f82c84;
  --brand-rose-dark: #d81b6f;

  /* Theme Tokens - Light Mode */
  --bg-page: #fbf8f4;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --border-glass: rgba(246, 222, 196, 0.6);
  --border-color: #ebdcd0;
  --border-subtle: #f6eee5;

  --text-main: #030344;
  --text-muted: #535971;
  --text-subtle: #858b9f;
  --text-inverse: #ffffff;

  --primary: #030344;
  --primary-hover: #0e0e69;
  --primary-light: #f5eff9;
  --primary-border: #d4c8e3;
  --primary-gradient: linear-gradient(135deg, #030344 0%, #1a1a70 100%);
  
  --accent-rose: #f82c84;
  --accent-rose-light: #fff0f6;
  --accent-rose-gradient: linear-gradient(135deg, #f82c84 0%, #c41862 100%);
  --cream-gradient: linear-gradient(135deg, #F6DEC4 0%, #ebd0b3 100%);
  --emerald-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --amber-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);

  --emerald-600: #059669;
  --emerald-50: #ecfdf5;
  --emerald-200: #a7f3d0;

  --amber-600: #d97706;
  --amber-50: #fffbeb;

  --shadow-sm: 0 1px 3px rgba(3, 3, 68, 0.05);
  --shadow-md: 0 4px 8px -1px rgba(3, 3, 68, 0.08), 0 2px 4px -2px rgba(3, 3, 68, 0.04);
  --shadow-lg: 0 12px 20px -3px rgba(3, 3, 68, 0.1), 0 4px 6px -4px rgba(3, 3, 68, 0.04);
  --shadow-xl: 0 20px 30px -5px rgba(3, 3, 68, 0.12), 0 8px 12px -6px rgba(3, 3, 68, 0.06);
  --shadow-glow: 0 0 30px rgba(3, 3, 68, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-latin: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-page: #020226;
  --bg-surface: #060636;
  --bg-surface-elevated: #0c0c4a;
  --bg-card: #090940;
  --bg-glass: rgba(6, 6, 54, 0.92);
  --border-glass: rgba(246, 222, 196, 0.18);
  --border-color: #17175c;
  --border-subtle: #121250;

  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-subtle: #8994ad;
  --text-inverse: #030344;

  --primary: #F6DEC4;
  --primary-hover: #ffffff;
  --primary-light: rgba(246, 222, 196, 0.12);
  --primary-border: rgba(246, 222, 196, 0.25);
  --primary-gradient: linear-gradient(135deg, #F6DEC4 0%, #dfc3a7 100%);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 20px -3px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 20px 30px -5px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 35px rgba(248, 44, 132, 0.25);
}

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

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

body {
  font-family: var(--font-arabic);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Navigation Bar (Sticky Glassmorphic)
   ========================================================================== */
.landing-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}

.landing-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.5rem;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.landing-brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-cream);
  box-shadow: 0 4px 12px rgba(3, 3, 68, 0.25);
  background: var(--brand-navy);
}

.landing-brand-info h2 {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
}

.landing-brand-info p {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 700;
}

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

.landing-nav-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  padding: 0.5rem 0;
}

.landing-nav-link:hover,
.landing-nav-link.active {
  color: var(--brand-rose);
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background: var(--primary-light);
  color: var(--brand-rose);
  border-color: var(--brand-rose);
}

/* Portals CTA Button */
.btn-nav-portal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 0 4px 14px rgba(3, 3, 68, 0.35);
  transition: all 0.25s ease;
}

[data-theme="dark"] .btn-nav-portal {
  color: #030344;
  box-shadow: 0 4px 14px rgba(246, 222, 196, 0.3);
}

.btn-nav-portal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(248, 44, 132, 0.45);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.landing-hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% 5%, rgba(246, 222, 196, 0.35) 0%, transparent 65%);
}

[data-theme="dark"] .landing-hero {
  background: radial-gradient(circle at 50% 5%, rgba(248, 44, 132, 0.12) 0%, transparent 65%);
}

.hero-glow-orb {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 222, 196, 0.45) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .hero-glow-orb {
  background: radial-gradient(circle, rgba(248, 44, 132, 0.15) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--brand-cream-soft);
  border: 1.5px solid var(--brand-cream);
  color: var(--brand-navy);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  animation: pulseBadge 3s infinite;
}

[data-theme="dark"] .hero-badge {
  background: rgba(246, 222, 196, 0.1);
  border-color: rgba(246, 222, 196, 0.3);
  color: var(--brand-cream);
}

@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248, 44, 132, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(248, 44, 132, 0); }
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 1.35rem;
  letter-spacing: -0.02em;
}

.hero-title-gradient {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero-title-gradient {
  background: linear-gradient(135deg, var(--brand-cream) 0%, var(--brand-rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  margin-bottom: 3.75rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius-full);
  background: var(--accent-rose-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 10px 20px rgba(248, 44, 132, 0.35);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(248, 44, 132, 0.5);
  color: #ffffff;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
  background: var(--brand-cream-soft);
  border-color: var(--brand-cream);
  color: var(--brand-navy);
  transform: translateY(-2px);
}

/* Stats Counter Row */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.hero-stat-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-rose);
}

.hero-stat-number {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--brand-rose);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: var(--brand-cream-soft);
  border: 1px solid var(--brand-cream);
  color: var(--brand-navy);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

[data-theme="dark"] .section-tag {
  background: rgba(246, 222, 196, 0.1);
  border-color: rgba(246, 222, 196, 0.25);
  color: var(--brand-cream);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

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

/* ==========================================================================
   Classes & Programs Section (#classes - MOVED UP)
   ========================================================================== */
.landing-classes-section {
  padding: 6rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.classes-filters-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.filter-pill {
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background: var(--bg-page);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--brand-rose);
  color: var(--brand-rose);
}

.filter-pill.active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(3, 3, 68, 0.3);
}

[data-theme="dark"] .filter-pill.active {
  color: #030344;
}

.landing-classes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.landing-class-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
}

.landing-class-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-rose);
}

.class-card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.class-level-tag {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--brand-cream-soft);
  border: 1px solid var(--brand-cream);
  color: var(--brand-navy);
  font-weight: 800;
  font-size: 0.8rem;
}

[data-theme="dark"] .class-level-tag {
  background: rgba(246, 222, 196, 0.15);
  color: var(--brand-cream);
}

.class-room-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 4px;
}

.class-card-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 1rem;
  line-height: 1.35;
}

.class-card-teacher {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-page);
  border: 1px solid var(--border-color);
}

.teacher-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
}

[data-theme="dark"] .teacher-avatar-circle {
  color: #030344;
}

.teacher-details h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
}

.teacher-details p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.class-card-schedule {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.class-card-schedule-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Capacity Progress Bar */
.class-capacity-box {
  margin-bottom: 1.25rem;
}

.capacity-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.capacity-bar-bg {
  width: 100%;
  height: 7px;
  background: var(--bg-page);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.capacity-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--accent-rose-gradient);
  transition: width 0.4s ease;
}

.capacity-bar-fill.warning {
  background: var(--amber-gradient);
}

.capacity-bar-fill.full {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

/* Card Bottom & CTA */
.class-card-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.class-price-box {
  display: flex;
  flex-direction: column;
}

.class-price-label {
  font-size: 0.72rem;
  color: var(--text-subtle);
  font-weight: 700;
}

.class-price-amount {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--emerald-600);
}

.btn-apply-class {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--accent-rose-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(248, 44, 132, 0.3);
  transition: all 0.2s ease;
}

.btn-apply-class:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(248, 44, 132, 0.45);
}

/* ==========================================================================
   About Us Section (#about - PLACED AFTER CLASSES)
   ========================================================================== */
.landing-about-section {
  padding: 6rem 0;
  background: var(--bg-page);
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.about-pillar-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-rose);
}

.pillar-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.pillar-icon-box.navy { background: rgba(3, 3, 68, 0.08); color: var(--brand-navy); }
.pillar-icon-box.rose { background: rgba(248, 44, 132, 0.12); color: var(--brand-rose); }
.pillar-icon-box.cream { background: rgba(246, 222, 196, 0.4); color: #8c5b23; }
.pillar-icon-box.emerald { background: rgba(16, 185, 129, 0.12); color: #10b981; }

[data-theme="dark"] .pillar-icon-box.navy { background: rgba(246, 222, 196, 0.15); color: var(--brand-cream); }

.about-pillar-card h3 {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.about-pillar-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Contact Us Section (#contact)
   ========================================================================== */
.landing-contact-section {
  padding: 6rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-card {
  background: var(--bg-page);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--brand-cream-soft);
  border: 1px solid var(--brand-cream);
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .contact-icon-box {
  background: rgba(246, 222, 196, 0.15);
  color: var(--brand-cream);
}

.contact-info-text h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.contact-info-text p,
.contact-info-text a {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 700;
}

.contact-quick-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.btn-whatsapp-direct {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
}

.btn-whatsapp-direct:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  color: #fff;
}

.btn-call-direct {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.btn-call-direct:hover {
  background: var(--brand-cream-soft);
  border-color: var(--brand-cream);
  color: var(--brand-navy);
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.contact-form-card h3 {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.form-group-landing {
  margin-bottom: 1.25rem;
}

.form-group-landing label {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-control-landing {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-page);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.form-control-landing:focus {
  outline: none;
  border-color: var(--brand-rose);
  box-shadow: 0 0 0 3px rgba(248, 44, 132, 0.15);
  background: var(--bg-surface);
}

.btn-submit-inquiry {
  width: 100%;
  padding: 0.95rem;
  border-radius: var(--radius-lg);
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 900;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
}

[data-theme="dark"] .btn-submit-inquiry {
  color: #030344;
}

.btn-submit-inquiry:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* ==========================================================================
   Student Registration Modal
   ========================================================================== */
.landing-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(3, 3, 68, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.landing-modal-backdrop.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.landing-modal-dialog {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.landing-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
}

.landing-modal-header h3 {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-main);
}

.landing-modal-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.landing-modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.landing-modal-close-btn:hover {
  background: var(--bg-page);
  color: var(--text-main);
}

.landing-modal-body {
  padding: 2rem;
  overflow-y: auto;
  max-height: calc(90vh - 160px);
}

.landing-modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.selected-class-banner {
  background: var(--brand-cream-soft);
  border: 1.5px solid var(--brand-cream);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="dark"] .selected-class-banner {
  background: rgba(246, 222, 196, 0.12);
}

.selected-class-banner h4 {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text-main);
}

.form-grid-landing-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Success Confirmation Screen in Modal */
.reg-success-view {
  text-align: center;
  padding: 2rem 1rem;
}

.success-icon-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--emerald-50);
  border: 2px solid var(--emerald-200);
  color: var(--emerald-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.generated-ref-box {
  background: var(--bg-page);
  border: 2px dashed var(--brand-rose);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.generated-ref-val {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--brand-rose);
  font-family: monospace;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.landing-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem;
}

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

.footer-brand-col p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

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

.footer-links-list a {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: var(--brand-rose);
}

.footer-admin-card {
  background: var(--bg-page);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}

.footer-admin-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.btn-footer-admin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.btn-footer-admin:hover {
  background: var(--brand-cream-soft);
  border-color: var(--brand-cream);
  color: var(--brand-navy);
}

.footer-bottom-bar {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Fixed Floating WhatsApp Button (Corner Floating Action)
   ========================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-whatsapp-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.floating-whatsapp-ripple {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  z-index: 1;
  animation: waRipple 2.2s infinite cubic-bezier(0.65, 0, 0.34, 1);
}

@keyframes waRipple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.floating-whatsapp-tooltip {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: all 0.25s ease;
}

html[dir="ltr"] .floating-whatsapp-tooltip {
  transform: translateX(-10px);
}

.floating-whatsapp-btn:hover .floating-whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.floating-whatsapp-btn:hover .floating-whatsapp-icon-box {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
  .floating-whatsapp-btn {
    bottom: 20px;
    inset-inline-end: 20px;
  }
  .floating-whatsapp-icon-box {
    width: 52px;
    height: 52px;
  }
  .floating-whatsapp-ripple {
    width: 52px;
    height: 52px;
  }
  .floating-whatsapp-tooltip {
    display: none;
  }
}

/* ==========================================================================
   Mobile Menu Drawer Component & Responsiveness
   ========================================================================== */
.mobile-menu-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-toggle-btn:hover {
  background: var(--brand-cream-soft);
  color: var(--brand-rose);
  border-color: var(--brand-rose);
}

.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-drawer.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 68, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mobile-nav-panel {
  position: relative;
  width: 85%;
  max-width: 340px;
  height: 100%;
  background: var(--bg-surface);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  z-index: 2;
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

html[dir="rtl"] .mobile-nav-drawer.hidden .mobile-nav-panel {
  transform: translateX(100%);
}

html[dir="ltr"] .mobile-nav-drawer.hidden .mobile-nav-panel {
  transform: translateX(-100%);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.mobile-nav-close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-close-btn:hover {
  background: var(--bg-page);
  color: var(--text-main);
}

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

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-weight: 800;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.mobile-nav-link i {
  width: 20px;
  height: 20px;
  color: var(--brand-rose);
}

.mobile-nav-link:hover {
  background: var(--brand-cream-soft);
  color: var(--brand-rose);
}

.mobile-nav-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Responsive Breakpoints (Desktop, iPad / Tablets, Mobile Phones)
   ========================================================================== */

/* Large Tablets & iPads (Landscape: 1024px to 1200px) */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 2.6rem;
  }

  .landing-classes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

/* Tablets & iPads (Portrait: 768px to 1024px) */
@media (max-width: 1024px) {
  .landing-nav-links {
    gap: 1.2rem;
  }

  .landing-nav-link {
    font-size: 0.88rem;
  }

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

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

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

/* Mobile Devices & Small Tablets (< 768px) */
@media (max-width: 768px) {
  .desktop-nav-menu,
  .desktop-only {
    display: none !important;
  }

  .mobile-menu-toggle-btn {
    display: flex;
  }

  .landing-nav-inner {
    height: 68px;
  }

  .landing-brand-logo-img {
    width: 40px;
    height: 40px;
  }

  .landing-brand-info h2 {
    font-size: 1rem;
  }

  .landing-brand-info p {
    font-size: 0.7rem;
  }

  .landing-hero {
    padding: 3.5rem 0 3rem;
  }

  .hero-title {
    font-size: 1.95rem;
    line-height: 1.3;
  }

  .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

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

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .hero-stat-card {
    padding: 1.15rem 0.75rem;
  }

  .hero-stat-number {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.65rem;
  }

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

  .landing-classes-section,
  .landing-about-section,
  .landing-contact-section {
    padding: 4rem 0;
  }

  .landing-classes-grid,
  .about-pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .form-grid-landing-2 {
    grid-template-columns: 1fr;
  }

  .landing-modal-header {
    padding: 1.25rem;
  }

  .landing-modal-body {
    padding: 1.25rem;
  }

  .contact-form-card {
    padding: 1.5rem;
  }

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

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* Universal Phone Number LTR Enforcement (BiDi Arabic Inversion Fix) */
a[href^="tel:"],
#contact-phone-link,
.contact-phone-text,
.phone-number,
.phone-val,
.phone-text,
.ltr-phone,
.phone,
[data-phone] {
  direction: ltr !important;
  unicode-bidi: embed !important;
  display: inline-block;
  text-align: left;
}

[dir="rtl"] a[href^="tel:"],
[dir="rtl"] #contact-phone-link,
[dir="rtl"] .contact-phone-text,
[dir="rtl"] .phone-number,
[dir="rtl"] .phone-val,
[dir="rtl"] .phone-text,
[dir="rtl"] .ltr-phone,
[dir="rtl"] .phone,
[dir="rtl"] [data-phone] {
  direction: ltr !important;
  unicode-bidi: embed !important;
  display: inline-block;
  text-align: left;
}

