/* ==========================================================================
   Modern Animated Landing Page Stylesheet
   School: Ù…Ø¯Ø±Ø³Ø© Ø§Ù„Ø±Ø¶ÙˆØ§Ù† Ù„Ø¹Ù„ÙˆÙ… Ø§Ù„Ù‚Ø±Ø¢Ù† (El-Ridwan Quranic School)
   ========================================================================== */

:root {
  /* Colors */
  --bg-dark: #090d16;
  --bg-surface: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(45, 62, 88, 0.85);
  
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --primary-glow: rgba(99, 102, 241, 0.35);
  
  --emerald: #10b981;
  --emerald-light: #34d399;
  --emerald-glow: rgba(16, 185, 129, 0.3);
  
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --gold-glow: rgba(245, 158, 11, 0.3);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --font-ar: 'Cairo', 'Tajawal', sans-serif;
  --font-en: 'Inter', system-ui, sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-ar);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body[dir="ltr"] {
  font-family: var(--font-en);
}

/* Background Animated Gradient Mesh */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.38;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

.glow-orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #4f46e5 0%, rgba(79, 70, 229, 0) 70%);
  top: -150px;
  left: 10%;
  animation-duration: 22s;
}

.glow-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #059669 0%, rgba(5, 150, 105, 0) 70%);
  bottom: 10%;
  right: -100px;
  animation-duration: 26s;
  animation-delay: -5s;
}

.glow-orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #d97706 0%, rgba(217, 119, 6, 0) 70%);
  top: 50%;
  left: -150px;
  animation-duration: 18s;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 60px) scale(0.95); }
}

/* Base Container & Grid */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.site-header.scrolled {
  padding: 12px 0;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-brand-img-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
  overflow: hidden;
  flex-shrink: 0;
}

.logo-brand-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.logo-brand:hover .logo-brand-img-wrap img {
  transform: scale(1.1);
}

.logo-brand-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.logo-brand-text span {
  font-size: 0.78rem;
  color: var(--emerald-light);
  display: block;
  font-weight: 500;
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 6px 4px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--primary));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language Toggle Button */
.btn-lang {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-lang:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Primary Portal Login Button */
.btn-portal-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-portal-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
  color: #ffffff;
}

.btn-portal-login i {
  transition: transform 0.2s ease;
}

.btn-portal-login:hover i {
  transform: translateX(-3px);
}
body[dir="ltr"] .btn-portal-login:hover i {
  transform: translateX(3px);
}

/* Mobile Toggle (hamburger) — hidden on desktop */
.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   Mobile Drawer
   ========================================================================== */

/* Full-screen overlay */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  display: block;
  opacity: 1;
}

/* Slide-in Drawer panel */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100dvh;
  background: #0f172a;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

body[dir="ltr"] .mobile-drawer {
  right: auto;
  left: -320px;
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
  right: 0;
}

body[dir="ltr"] .mobile-drawer.open {
  left: 0;
  right: auto;
}

/* Drawer Header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.drawer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.drawer-logo img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.drawer-logo strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.drawer-logo small {
  display: block;
  font-size: 0.72rem;
  color: var(--emerald-light);
}

.drawer-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}

.drawer-close:hover {
  background: rgba(255, 80, 80, 0.2);
  border-color: rgba(255, 80, 80, 0.3);
  color: #ff5050;
}

/* Drawer Nav */
.drawer-nav {
  flex: 1;
  padding: 12px 0;
}

.drawer-nav ul {
  list-style: none;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-right: 3px solid transparent;
  transition: var(--transition);
}

body[dir="ltr"] .drawer-link {
  border-right: none;
  border-left: 3px solid transparent;
}

.drawer-link i {
  width: 20px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.drawer-link:hover,
.drawer-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-right-color: var(--primary-light);
}

body[dir="ltr"] .drawer-link:hover,
body[dir="ltr"] .drawer-link.active {
  border-left-color: var(--primary-light);
  border-right-color: transparent;
}

.drawer-link:hover i,
.drawer-link.active i {
  color: var(--primary-light);
}

.drawer-link-highlight {
  color: var(--gold-light) !important;
}

.drawer-link-highlight i {
  color: var(--gold) !important;
}

.drawer-link-highlight:hover {
  background: rgba(245, 158, 11, 0.1) !important;
  border-right-color: var(--gold) !important;
}

/* Drawer Footer */
.drawer-footer {
  padding: 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-portal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 14px rgba(16, 185, 129, 0.3);
  transition: var(--transition);
}

.drawer-portal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5);
  color: #ffffff;
}

.drawer-lang-btn {
  width: 100%;
  justify-content: center;
  padding: 11px 18px;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.hero-badge-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-light);
  box-shadow: 0 0 10px var(--emerald-light);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #34d399 0%, #60a5fa 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--emerald) 0%, #047857 100%);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.55);
  color: #fff;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: #fff;
}

/* Hero Visual / Graphic */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), 0 0 30px rgba(79, 70, 229, 0.2);
  text-align: center;
  animation: heroCardFloat 8s ease-in-out infinite alternate;
}

@keyframes heroCardFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

.hero-school-logo-large {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(255, 255, 255, 0.04) 70%);
  border: 2px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.35);
  overflow: hidden;
  padding: 8px;
}

.hero-school-logo-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-visual-school-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.hero-visual-school-loc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 24px;
}

/* Floating Badges */
.floating-chip {
  position: absolute;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  z-index: 10;
  animation: floatChip 6s ease-in-out infinite alternate;
}

.floating-chip-1 {
  top: 20px;
  right: -25px;
  animation-delay: -1s;
}

.floating-chip-2 {
  bottom: 25px;
  left: -35px;
  animation-delay: -3s;
}

@keyframes floatChip {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(1deg); }
}

.chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.chip-icon-green {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-light);
}

.chip-icon-blue {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-light);
}

/* ==========================================================================
   Statistics Section (Counters)
   ========================================================================== */
.stats-section {
  position: relative;
  padding: 60px 0;
  margin-top: -30px;
  z-index: 5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.15);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1);
}

.stat-icon-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-light);
}

.stat-icon-primary {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
}

.stat-icon-gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-light);
}

.stat-icon-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  font-feature-settings: "tnum";
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary-light);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Formations Section
   ========================================================================== */
.formations-section {
  padding: 90px 0;
  position: relative;
}

#inquiry-formation-select option {
  color :rgba(0, 0, 0, 0.788)!important;
}

/* Filter Controls */
.filter-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--emerald) 0%, #059669 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

/* Formations Grid */
.formations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.formation-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.formation-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 25px rgba(99, 102, 241, 0.2);
}

.formation-thumb-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #1e293b;
}

.formation-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.formation-card:hover .formation-thumb {
  transform: scale(1.08);
}

.formation-badge-niveau {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(9, 13, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: var(--emerald-light);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
body[dir="ltr"] .formation-badge-niveau {
  right: auto;
  left: 14px;
}

.formation-badge-price {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
body[dir="ltr"] .formation-badge-price {
  left: auto;
  right: 14px;
}

.formation-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.formation-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.4;
}

.formation-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.formation-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  margin-bottom: 18px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.meta-item i {
  color: var(--emerald-light);
}

.btn-formation-inquire {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-formation-inquire:hover {
  background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

/* ==========================================================================
   Features / Pillars Section
   ========================================================================== */
.features-section {
  padding: 90px 0;
  background: rgba(15, 23, 42, 0.4);
  position: relative;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-box {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-5px);
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.feature-box-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.feature-box h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Contact & Social Media Section
   ========================================================================== */
.contact-section {
  padding: 100px 0;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: flex-start;
}

.contact-info-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.contact-info-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.contact-info-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.contact-channel-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text-primary);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.contact-channel-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}
body[dir="ltr"] .contact-channel-item:hover {
  transform: translateX(4px);
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.channel-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.channel-val {
  font-size: 0.96rem;
  font-weight: 600;
  color: #fff;
}

/* Social Media Row */
.social-media-block h5 {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-weight: 600;
}

.social-links-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  transition: var(--transition);
}

.social-link-btn:hover {
  transform: translateY(-3px) scale(1.08);
}

.social-link-fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; box-shadow: 0 6px 15px rgba(24, 119, 242, 0.4); }
.social-link-wa:hover { background: #25d366; border-color: #25d366; color: #fff; box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4); }
.social-link-tg:hover { background: #229ed9; border-color: #229ed9; color: #fff; box-shadow: 0 6px 15px rgba(34, 158, 217, 0.4); }
.social-link-yt:hover { background: #ff0000; border-color: #ff0000; color: #fff; box-shadow: 0 6px 15px rgba(255, 0, 0, 0.4); }

/* Contact Form */
.contact-form-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.contact-form-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  color: #fff;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.btn-form-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--emerald) 0%, #059669 100%);
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.5);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #060910;
  border-top: 1px solid var(--border-light);
  padding: 50px 0 25px;
  position: relative;
  z-index: 5;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   Modal Dialog
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  max-width: 550px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}
body[dir="ltr"] .modal-close-btn {
  left: auto;
  right: 18px;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Toast Notifications */
.landing-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body[dir="rtl"] .landing-toast {
  right: auto;
  left: 30px;
}

.landing-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* â”€â”€ XL & 2XL: Large Desktops (â‰¥ 1400px) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (min-width: 1400px) {
  .container {
    max-width: 1360px;
    padding: 0 40px;
  }
  .hero-title {
    font-size: 3.8rem;
  }
  .section-title {
    font-size: 2.6rem;
  }
  .hero-section {
    padding: 160px 0 100px;
  }
  .hero-grid {
    gap: 80px;
  }
  .hero-visual-card {
    max-width: 480px;
  }
  .stat-number {
    font-size: 3.2rem;
  }
  .formations-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .order-system-grid {
    gap: 48px;
  }
  .sys-overview-card,
  .sys-order-card {
    padding: 44px;
  }
  .contact-form-card,
  .contact-info-card {
    padding: 48px 44px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1480px;
  }
  .hero-title {
    font-size: 4.2rem;
  }
  .hero-grid {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

/* â”€â”€ LG: Standard Desktops (1025px â€“ 1279px) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1279px) and (min-width: 1025px) {
  .nav-link {
    font-size: 0.86rem;
    gap: 12px;
  }
  .nav-menu {
    gap: 12px;
  }
  .hero-title {
    font-size: 2.75rem;
  }
  .hero-description {
    font-size: 1.05rem;
  }
  .logo-brand-text h1 {
    font-size: 1rem;
  }
  .container {
    padding: 0 28px;
  }
}

/* â”€â”€ MD: Tablet / Laptop (769px â€“ 1024px) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-description {
    font-size: 1rem;
  }
  .logo-brand-text h1 {
    font-size: 0.95rem;
  }
  .logo-brand-text span {
    font-size: 0.72rem;
  }
  .logo-brand-img-wrap {
    width: 42px;
    height: 42px;
  }
  .nav-menu {
    gap: 10px;
  }
  .nav-link {
    font-size: 0.84rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .formations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .order-system-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .floating-chip-1 {
    right: -10px;
  }
  .floating-chip-2 {
    left: -10px;
  }
  .footer-links {
    gap: 16px;
  }
  .footer-links a {
    font-size: 0.84rem;
  }
}

/* â”€â”€ SM: Large Phones / Small Tablets (641px â€“ 768px) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
  /* Header — show only logo + hamburger */
  .site-header {
    padding: 10px 0;
  }
  .header-inner {
    gap: 0;
  }
  .logo-brand-text {
    display: none;
  }
  .logo-brand-img-wrap {
    width: 40px;
    height: 40px;
  }
  /* Hide desktop nav & actions */
  .desktop-nav,
  .desktop-actions {
    display: none !important;
  }
  /* Show hamburger */
  .mobile-toggle {
    display: flex;
  }

  /* Hero */
  .hero-section {
    padding: 110px 0 70px;
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-description {
    font-size: 0.97rem;
    margin: 0 auto 28px;
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
    gap: 12px;
  }
  .hero-badge-pill {
    font-size: 0.8rem;
    padding: 5px 14px;
  }
  .hero-visual {
    order: -1;
  }
  .hero-visual-card {
    max-width: 340px;
    margin: 0 auto;
    padding: 28px 22px;
  }
  .hero-school-logo-large {
    width: 100px;
    height: 100px;
  }
  .hero-visual-school-name {
    font-size: 1.15rem;
  }
  .floating-chip {
    display: none;
  }

  /* Stats */
  .stats-section {
    padding: 50px 0;
    margin-top: -20px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .stat-card {
    padding: 22px 16px;
  }
  .stat-number {
    font-size: 2.2rem;
  }
  .stat-label {
    font-size: 0.85rem;
  }
  .stat-icon {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  /* Sections */
  .formations-section,
  .features-section,
  .contact-section,
  .order-system-section {
    padding: 70px 0;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .section-subtitle {
    font-size: 0.95rem;
  }
  .section-header {
    margin-bottom: 36px;
  }

  /* Filter Tabs */
  .filter-tabs {
    gap: 8px;
    margin-bottom: 32px;
  }
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.84rem;
  }

  /* Formations Grid */
  .formations-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .feature-box {
    padding: 24px 20px;
  }

  /* Order System */
  .order-system-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sys-overview-card,
  .sys-order-card {
    padding: 26px 22px;
  }
  .sys-logo-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .sys-quick-contact {
    flex-direction: column;
    gap: 12px;
  }
  .btn-sys-wa,
  .btn-sys-tel {
    min-width: unset;
    width: 100%;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-info-card,
  .contact-form-card {
    padding: 28px 22px;
  }

  /* Forms */
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 28px;
  }
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 16px;
  }
  .footer-links a {
    font-size: 0.84rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
  }

  /* Modal */
  .modal-box {
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }
}

/* â”€â”€ XS: Small Phones (< 480px) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  /* Header */
  .logo-brand {
    gap: 8px;
  }
  .logo-brand-img-wrap {
    width: 34px;
    height: 34px;
  }
  .logo-brand-text h1 {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  /* Hero */
  .hero-section {
    padding: 95px 0 60px;
  }
  .hero-title {
    font-size: 1.7rem;
    line-height: 1.25;
  }
  .hero-description {
    font-size: 0.9rem;
    line-height: 1.65;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 11px 20px;
    font-size: 0.88rem;
    width: 100%;
    justify-content: center;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-visual-card {
    max-width: 300px;
    padding: 22px 16px;
  }
  .hero-school-logo-large {
    width: 85px;
    height: 85px;
  }
  .hero-visual-school-name {
    font-size: 1rem;
  }
  .hero-badge-pill {
    font-size: 0.75rem;
    padding: 4px 12px;
    text-align: center;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat-card {
    padding: 18px 12px;
  }
  .stat-number {
    font-size: 1.9rem;
  }
  .stat-label {
    font-size: 0.78rem;
  }
  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
    margin-bottom: 10px;
  }

  /* Section headers */
  .section-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  .section-subtitle {
    font-size: 0.88rem;
  }
  .section-pill {
    font-size: 0.78rem;
    padding: 5px 14px;
  }

  /* Filter tabs */
  .filter-tabs {
    gap: 6px;
  }
  .filter-btn {
    padding: 7px 12px;
    font-size: 0.8rem;
    gap: 5px;
  }
  .filter-btn i {
    font-size: 12px;
  }

  /* Formation cards */
  .formation-thumb-wrap {
    height: 170px;
  }
  .formation-content {
    padding: 18px 16px;
  }
  .formation-title {
    font-size: 1.1rem;
  }

  /* Feature boxes */
  .feature-box {
    padding: 20px 16px;
  }
  .feature-box h4 {
    font-size: 1.05rem;
  }
  .feature-box p {
    font-size: 0.86rem;
  }

  /* Order system */
  .sys-overview-card,
  .sys-order-card {
    padding: 20px 16px;
  }
  .sys-logo-wrap {
    width: 60px;
    height: 60px;
  }
  .sys-brand-name {
    font-size: 1.1rem;
  }
  .sys-card-header {
    gap: 12px;
    align-items: flex-start;
  }
  .sys-card-header h4 {
    font-size: 1rem;
  }
  .sys-card-header p {
    font-size: 0.8rem;
  }
  .sys-feature-item {
    padding: 10px 12px;
  }
  .sys-feature-text strong {
    font-size: 0.88rem;
  }
  .sys-feature-text span {
    font-size: 0.78rem;
  }
  .btn-sys-wa,
  .btn-sys-tel {
    padding: 11px 16px;
    font-size: 0.86rem;
  }

  /* Contact */
  .contact-info-card,
  .contact-form-card {
    padding: 22px 16px;
  }
  .contact-info-card h3,
  .contact-form-card h3 {
    font-size: 1.2rem;
  }
  .contact-channel-item {
    padding: 10px 12px;
    gap: 12px;
  }
  .channel-icon {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
  .channel-val {
    font-size: 0.86rem;
    word-break: break-all;
  }
  .social-link-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  /* Forms */
  .form-control {
    font-size: 0.88rem;
    padding: 10px 14px;
  }
  .input-wrap .form-control {
    font-size: 0.88rem;
    padding: 10px 14px;
    padding-right: 38px;
  }
  body[dir="ltr"] .input-wrap .form-control {
    padding-left: 38px;
    padding-right: 14px;
  }
  .btn-form-submit,
  .btn-sys-submit {
    padding: 12px;
    font-size: 0.92rem;
  }

  /* Footer */
  .site-footer {
    padding: 36px 0 20px;
  }
  .footer-links {
    gap: 10px 14px;
  }
  .footer-links a {
    font-size: 0.8rem;
  }

  /* Modal */
  .modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }
  .modal-box {
    padding: 22px 18px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    max-width: 100%;
    margin-bottom: 0;
  }

  /* Toast */
  .landing-toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    font-size: 0.88rem;
    padding: 12px 18px;
  }
  body[dir="rtl"] .landing-toast {
    right: 16px;
    left: 16px;
  }
}

/* â”€â”€ Extra-small phones (< 360px) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.5rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .filter-tabs {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-btn {
    justify-content: center;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    font-size: 0.84rem;
    padding: 10px 16px;
  }
  .logo-brand-text {
    display: none;
  }
}

/* ==========================================================================
   Order School Manager System Section
   ========================================================================== */
.nav-link.nav-highlight-badge {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(16, 185, 129, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 6px 14px !important;
  border-radius: 20px;
  color: #c7d2fe !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.nav-link.nav-highlight-badge:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(16, 185, 129, 0.3));
  color: #ffffff !important;
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

.nav-link.nav-highlight-badge::after {
  display: none !important;
}

.section-pill-system {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
}

.order-system-section {
  padding: 100px 0;
  position: relative;
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.1), transparent 50%),
              radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.08), transparent 45%);
}

.order-system-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: stretch;
}

/* Collapse to single column on tablet & mobile */
@media (max-width: 1024px) {
  .order-system-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Left Card: System Presentation */
.sys-overview-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}

.sys-logo-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.sys-logo-wrap {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.sys-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sys-brand-meta {
  flex: 1;
}

.sys-edition-tag {
  display: inline-block;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.sys-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 2px 0 4px;
}

.sys-brand-lead {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.sys-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
  flex-grow: 1;
}

.sys-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 16px;
  transition: var(--transition);
}

.sys-feature-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateX(-4px);
}

body[dir="ltr"] .sys-feature-item:hover {
  transform: translateX(4px);
}

.sys-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.sys-feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sys-feature-text strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.sys-feature-text span {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.sys-quick-contact {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: auto;
}

.btn-sys-wa {
  flex: 1;
  min-width: 170px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.92rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
}

.btn-sys-wa:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  color: #fff;
}

.btn-sys-tel {
  flex: 1;
  min-width: 160px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition);
}

.btn-sys-tel:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  transform: translateY(-2px);
  color: #fff;
}

/* Right Card: Order Form */
.sys-order-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}

.sys-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.sys-card-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.sys-card-header h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.sys-card-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.sys-order-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

/* Form inputs with icon wrapper */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-wrap i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-light);
  font-size: 15px;
  pointer-events: none;
  z-index: 2;
}

body[dir="ltr"] .input-wrap i {
  right: auto;
  left: 14px;
}

.input-wrap .form-control {
  width: 100%;
  padding: 12px 16px;
  padding-right: 42px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  box-sizing: border-box;
}

body[dir="ltr"] .input-wrap .form-control {
  padding-right: 16px;
  padding-left: 42px;
}

.input-wrap .form-control::placeholder {
  color: #64748b;
  font-size: 0.88rem;
}

.input-wrap .form-control:focus {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.input-wrap select.form-control {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 36px;
}

body[dir="ltr"] .input-wrap select.form-control {
  background-position: right 14px center;
  padding-left: 42px;
  padding-right: 36px;
}

.input-wrap select.form-control option {
  background: #0f172a;
  color: #fff;
  padding: 10px;
}

.input-wrap textarea.form-control {
  padding-top: 12px;
  padding-right: 42px;
  min-height: 90px;
  resize: vertical;
}

body[dir="ltr"] .input-wrap textarea.form-control {
  padding-right: 16px;
  padding-left: 42px;
}

.input-wrap i.fa-commenting-o {
  top: 22px;
  transform: none;
}

.btn-sys-submit {
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: #fff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  width: 100%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
  transition: var(--transition);
  margin-top: 6px;
}

.btn-sys-submit:hover {
  background: linear-gradient(135deg, #4338ca, #4f46e5);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.5);
}

.btn-sys-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.sys-order-status {
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 16px;
  animation: fadeInSlide 0.4s ease;
}

@keyframes fadeInSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sys-order-status.success {
  background: rgba(16, 185, 129, 0.18);
  border: 1.5px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.sys-order-status.error {
  background: rgba(239, 68, 68, 0.18);
  border: 1.5px solid rgba(239, 68, 68, 0.5);
  color: #f87171;
}
