/* ==========================================================================
   مدارس التربية الصالحة الأهلية بالخبر (قسم البنين)
   Refined Master CSS - 100% Uniform Navbar Dropdowns & Arrows
   ========================================================================== */

/* Google Fonts loaded via non-blocking HTML <link> tags in head for performance */


:root {
  /* Brand Palette - Deep Forest Green & Pure White */
  --primary-deep: #062C1E;
  --primary: #0A4A2F;
  --primary-mid: #0E6B44;
  --primary-light: #16A363;
  --accent-gold: #FFFFFF;
  --accent-gold-bright: #FFFFFF;
  --gold-glow: rgba(22, 163, 99, 0.25);
  --gold-gradient: linear-gradient(135deg, #0A4A2F 0%, #062C1E 100%);

  /* Neutrals */
  --bg-dark: #04140D;
  --bg-card: #083323;
  --light-bg: #F4F7F5;
  --light-card: #FFFFFF;
  --text-dark: #121F18;
  --text-muted: #4A5E53;
  --text-light: #FFFFFF;
  
  /* Radius & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 25px rgba(10, 74, 47, 0.12);
  --shadow-gold: 0 4px 20px rgba(6, 44, 30, 0.25);

  /* Fonts */
  --font-heading: 'Readex Pro', sans-serif;
  --font-body: 'Readex Pro', sans-serif;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  direction: rtl;
  font-size: 14.2px;
  overflow-x: hidden;
  overflow-y: auto !important;
  touch-action: manipulation;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: var(--font-body);
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
  overflow-y: auto !important;
  position: relative;
  width: 100%;
  touch-action: pan-y !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.3;
  color: var(--primary-deep);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Glassmorphism utility */
.glass-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(10, 74, 47, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   ULTRA SMOOTH RE-TRIGGERING SCROLL ENTRANCE ANIMATIONS
   ========================================================================== */
.reveal-left {
  opacity: 0;
  transform: translateX(-55px);
  transition: opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1), transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-right {
  opacity: 0;
  transform: translateX(55px);
  transition: opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1), transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1), transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1), transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-active {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* Stagger Delays for Grid Elements */
.delay-1 { transition-delay: 0.15s !important; }
.delay-2 { transition-delay: 0.3s !important; }
.delay-3 { transition-delay: 0.45s !important; }
.delay-4 { transition-delay: 0.6s !important; }

/* CLICKABLE CONTACT CARDS & MINIMAL CIRCULAR SVG BADGES */
.clickable-contact-card {
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none !important;
  border: 1.5px solid rgba(10, 74, 47, 0.12) !important;
}

.clickable-contact-card:hover,
.clickable-contact-card:focus,
.clickable-contact-card:active {
  transform: translateY(-4px) !important;
  border-color: #0A4A2F !important;
  box-shadow: 0 12px 25px rgba(10, 74, 47, 0.15) !important;
  background: #FFFFFF !important;
}

.click-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 74, 47, 0.08);
  color: #0A4A2F;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
  border: 1.5px solid rgba(10, 74, 47, 0.18);
}

.click-badge-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor !important;
  transition: transform 0.25s ease;
}

.clickable-contact-card:hover .click-badge-icon,
.clickable-contact-card:focus .click-badge-icon,
.clickable-contact-card:active .click-badge-icon,
.clickable-contact-card:visited .click-badge-icon {
  background: #0A4A2F !important;
  color: #FFFFFF !important;
  border-color: #0A4A2F !important;
  transform: scale(1.08);
}

.clickable-contact-card:hover .click-badge-icon svg,
.clickable-contact-card:focus .click-badge-icon svg,
.clickable-contact-card:active .click-badge-icon svg,
.clickable-contact-card:visited .click-badge-icon svg {
  fill: #FFFFFF !important;
  color: #FFFFFF !important;
}

/* FOOTER CONTACT ITEMS & ICON BADGES */
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 0.65rem;
  transition: var(--transition);
  text-decoration: none !important;
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-contact-item:hover {
  color: var(--accent-gold) !important;
  transform: translateX(-4px);
}

.footer-contact-item a {
  color: var(--accent-gold) !important;
  font-weight: 800;
  transition: var(--transition);
}

.footer-contact-item a:hover {
  color: #FFFFFF !important;
  text-decoration: underline;
}

.footer-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(10, 74, 47, 0.9);
  border: 1px solid var(--accent-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.footer-icon-badge svg {
  fill: var(--accent-gold) !important;
}

/* TOP BAR (Desktop) */
.top-bar {
  background: var(--primary-deep);
  color: #FFFFFF;
  font-size: 0.88rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.top-bar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.top-info {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  color: #FFFFFF;
}

.top-info a {
  transition: var(--transition);
}

.top-info a:hover {
  color: var(--accent-gold) !important;
}

.top-info span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.top-info svg {
  fill: var(--accent-gold);
  flex-shrink: 0;
}

.portal-links {
  display: flex;
  gap: 0.6rem;
}

.portal-badge {
  background: #FFFFFF !important;
  color: #062C1E !important;
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #10B981;
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.25);
  transition: var(--transition);
}

.portal-badge:hover {
  background: #00FF9D !important;
  color: #062C1E !important;
  border-color: #00FF9D !important;
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.55);
}

/* NAVBAR (Desktop) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(10, 74, 47, 0.08);
  box-shadow: 0 10px 35px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
}

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

.logo-emblem-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary-deep);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.82rem;
  color: var(--primary-light);
  font-weight: 800;
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.4rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-deep);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: var(--transition);
}

.dropdown-arrow {
  display: inline-block !important;
  fill: currentColor;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.nav-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-link svg:not(.dropdown-arrow) {
  display: none !important;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(10, 74, 47, 0.1);
  color: var(--primary-mid);
}

/* Desktop Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 210px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(10, 74, 47, 0.1);
  padding: 0.5rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-item a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.dropdown-item a:hover {
  background: rgba(10, 74, 47, 0.06);
  color: var(--primary-mid);
}

/* Buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: #fff !important;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-gold {
  background: linear-gradient(135deg, #0A4A2F 0%, #062C1E 100%) !important;
  color: #FFFFFF !important;
  font-weight: 800;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.25);
  border: 1.5px solid #10B981;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #0E6B44 0%, #0A4A2F 100%) !important;
  color: #FFFFFF !important;
  border-color: #00FF9D !important;
  box-shadow: 0 0 25px rgba(0, 255, 157, 0.45) !important;
  transform: translateY(-2px);
}

.portal-links {
  display: flex;
  gap: 0.6rem;
}

.portal-badge {
  background: #FFFFFF !important;
  color: #062C1E !important;
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #10B981;
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.25);
  transition: var(--transition);
}

.portal-badge:hover {
  background: #00FF9D !important;
  color: #062C1E !important;
  border-color: #00FF9D !important;
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.55);
}

/* NAVBAR (Desktop) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(10, 74, 47, 0.08);
  box-shadow: 0 10px 35px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
}

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

.logo-emblem-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary-deep);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.82rem;
  color: var(--primary-light);
  font-weight: 800;
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.4rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-deep);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: var(--transition);
}

.dropdown-arrow {
  display: inline-block !important;
  fill: currentColor;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.nav-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-link svg:not(.dropdown-arrow) {
  display: none !important;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(10, 74, 47, 0.1);
  color: var(--primary-mid);
}

/* Desktop Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 210px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(10, 74, 47, 0.1);
  padding: 0.5rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-item a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.dropdown-item a:hover {
  background: rgba(10, 74, 47, 0.06);
  color: var(--primary-mid);
}

/* Buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: #fff !important;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-outline {
  border: 1.5px solid var(--primary-mid);
  color: var(--primary-mid);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: transparent;
  white-space: nowrap;
  transition: var(--transition);
}

.mobile-toggle {
  display: none;
}

/* Hide X button on desktop */
.drawer-close-btn {
  display: none;
}

/* HERO SECTION (Desktop - Balanced & Elegant Container) */
.hero-section {
  position: relative;
  min-height: clamp(390px, 45vw, 520px);
  overflow: hidden;
  color: #FFFFFF;
  padding: 3.8rem 0;
  direction: rtl;
  display: flex;
  align-items: center;
}

.hero-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 5s ease-out;
  transform: scale(1.05);
  will-change: opacity, transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-slide.slide-1 {
  background-image: url('../assets/images/hero_slide_1.webp?v=101');
}

.hero-slide.slide-2 {
  background-image: url('../assets/images/hero_slide_2.webp?v=101');
}

.hero-slide.slide-3 {
  background-image: url('../assets/images/hero_slide_3.webp?v=110');
  background-position: center top !important;
  transform: none !important;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide.slide-3.active {
  opacity: 1;
  transform: none !important;
}

.hero-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(270deg, rgba(3, 44, 30, 0.97) 0%, rgba(3, 44, 30, 0.84) 40%, rgba(3, 44, 30, 0.4) 70%, rgba(3, 44, 30, 0.08) 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.hero-content {
  max-width: 580px;
  text-align: right !important;
  margin-right: 0 !important;
  margin-left: auto !important;
  direction: rtl;
}

.hero-tag {
  display: inline-block;
  background: var(--accent-gold);
  color: var(--primary-deep);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  font-family: 'Readex Pro', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-title {
  font-size: clamp(2.4rem, 3.8vw, 3.6rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 0.9rem;
  color: #FFFFFF !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0,0,0,0.95);
  font-family: 'Readex Pro', sans-serif;
  text-align: right !important;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUpHero 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.3s forwards;
}

@keyframes fadeInUpHero {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stripe-highlight {
  display: inline-block;
  background: linear-gradient(120deg, #FFFFFF 15%, #10B981 50%, #FFFFFF 85%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none !important;
  animation: textColorSweep 3s ease-in-out infinite;
}

@keyframes textColorSweep {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

.hero-desc {
  max-width: 540px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.98) !important;
  line-height: 1.85;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  font-family: 'Readex Pro', sans-serif;
  text-align: right !important;
}

@media (max-width: 992px) {
  .hero-section {
    min-height: 400px;
    padding: 3rem 0;
  }

  .hero-content {
    max-width: 100%;
    margin-right: 0;
    margin-left: auto;
    text-align: right;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-desc {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto !important;
    height: auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.32) 0%, transparent 45%),
                radial-gradient(circle at 90% 45%, rgba(52, 211, 153, 0.22) 0%, transparent 45%),
                radial-gradient(circle at 40% 90%, rgba(16, 185, 129, 0.25) 0%, transparent 50%),
                linear-gradient(180deg, #0f4c35 0%, #0a3826 50%, #06281b 100%) !important;
    overflow: hidden !important;
  }

  .hero-bg-slider {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    min-height: 220px !important;
    max-height: 310px !important;
    overflow: hidden !important;
  }

  .hero-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    transform: none !important;
  }

  .hero-slide.slide-1,
  .hero-slide.slide-2,
  .hero-slide.slide-3 {
    background-size: cover !important;
    background-position: center center !important;
  }

  .hero-overlay-gradient {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.0) 0%, rgba(15, 76, 53, 0.2) 50%, rgba(15, 76, 53, 0.75) 85%, #0f4c35 100%) !important;
    pointer-events: none !important;
  }

  .hero-grid {
    position: relative !important;
    z-index: 5 !important;
    width: 100% !important;
    padding: 1.1rem 1.25rem 2.2rem 1.25rem !important;
    justify-content: flex-start !important;
    margin-top: 0 !important;
  }

  .hero-content {
    text-align: right !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .hero-title {
    font-size: 1.65rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.5rem !important;
  }

  .hero-desc {
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
    margin-bottom: 1.2rem !important;
    color: rgba(255, 255, 255, 0.92) !important;
  }

  .hero-cta {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.7rem !important;
    width: 100% !important;
  }

  .hero-cta a {
    flex: 1 !important;
    text-align: center !important;
    padding: 0.75rem 0.8rem !important;
    font-size: 0.92rem !important;
    justify-content: center !important;
  }
}

/* STATS SECTION (Desktop - Ultra Sleek & Thin Compact Bar) */
.stats-section {
  position: relative;
  z-index: 20;
  margin-top: -1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  background: #FFFFFF;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(10, 74, 47, 0.08);
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  position: relative;
  padding: 0 0.5rem;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(10, 74, 47, 0.12);
}

.stat-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%);
  color: var(--accent-gold) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.4rem;
  border: 1.5px solid var(--accent-gold);
  box-shadow: 0 3px 10px rgba(10, 74, 47, 0.2);
}

.stat-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--accent-gold);
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--primary-deep);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 0.2rem;
}

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

/* SECTION PADDING & HEADERS */
.section-padding {
  padding: 3.8rem 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-subtitle {
  display: inline-block;
  color: var(--primary-light);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  background: rgba(22, 163, 99, 0.08);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
}

.section-title {
  font-size: 1.95rem;
  color: var(--primary-deep);
  margin-bottom: 0.6rem;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* PROGRAM CARDS & DESKTOP SUBPAGE GRIDS */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  max-width: 860px;
  margin-inline: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.program-card {
  background: #FFFFFF !important;
  border-radius: 16px;
  padding: 1.3rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1.5px solid rgba(16, 185, 129, 0.12);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.program-card:hover {
  transform: translateY(-6px);
  border-color: #10B981;
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.18);
}

.program-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #FFFFFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  border: 1.5px solid #10B981 !important;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.1);
}

.program-icon-box svg {
  fill: #10B981 !important;
}

.program-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #062C1E;
  margin-bottom: 0.35rem;
}

.program-grades {
  display: inline-block;
  background: rgba(10, 74, 47, 0.06);
  color: var(--primary-mid);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.program-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
}

/* ABOUT SECTION */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-img-group {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-img-main {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.about-img-sub {
  display: none !important;
}

.feature-list {
  list-style: none;
  margin: 1rem 0 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  font-weight: 700;
  font-size: 0.92rem;
}

/* PORTALS BANNER */
.portals-banner {
  background: linear-gradient(135deg, #052418 0%, #0A4A2F 100%);
  border-radius: var(--radius-lg);
  padding: 2.8rem 2rem;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.portals-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.portal-card-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.2rem;
  text-align: center;
  transition: var(--transition);
  color: #FFFFFF !important;
}

.portal-card-box h3 {
  color: #FFFFFF !important;
  font-size: 1.18rem;
  margin-bottom: 0.4rem;
}

.portal-card-box p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.portal-icon svg {
  fill: var(--accent-gold);
}

/* ADMISSION CARDS GRID */
.admission-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 850px;
  margin: 0 auto 1.5rem;
}

/* FORM STYLES */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--primary-deep);
  font-size: 0.88rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid #C4D4CC;
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: var(--transition);
  background: #FAFCFA;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-mid);
  box-shadow: 0 0 0 3px rgba(22, 163, 99, 0.12);
  background: #fff;
}

/* FOOTER & CLICKABLE LINKS */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 50;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.2rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  width: 68px !important;
  height: 68px !important;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand h3 {
  font-size: 1.3rem !important;
  font-weight: 800;
}

.footer-brand p {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-title {
  color: #fff;
  font-size: 1.08rem;
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent-gold) !important;
  transform: translateX(-4px);
}

.footer-contact-info p {
  font-size: 0.88rem;
  margin-bottom: 0.7rem;
  line-height: 1.5;
}

.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.82rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}


/* ==========================================================================
   PRINT STYLES (@media print) - CLEAN FULL-PAGE CONTRACT PRINTING
   ========================================================================== */
@media print {
  .official-contract-card button,
  .official-contract-card .btn-gold,
  .official-contract-card .btn-outline {
    display: none !important;
  }

  .top-bar, .navbar, .mobile-toggle, #particle-canvas {
    display: none !important;
  }
}


/* ==========================================================================
   MOBILE MEDIA QUERIES (<= 768px)
   ========================================================================== */

@media (max-width: 992px) {
  .navbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .mobile-toggle {
    display: flex;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #EBF3EF;
    color: var(--primary-deep);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(10,74,47,0.15);
  }

  /* Drawer Close Button (X) — صغير بجانب الرئيسية */
  .drawer-close-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.35rem;
    left: 0.9rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(212,175,55,0.35);
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    flex-shrink: 0;
    z-index: 10;
    transition: var(--transition);
  }

  .drawer-close-btn:hover {
    background: var(--gold-gradient);
    color: var(--primary-deep);
  }

  /* تفسيح مساحة لزر الإغلاق X بجانب زر الرئيسية */
  .nav-links .nav-item:first-of-type {
    margin-left: 36px !important;
  }

  /* Mobile Drawer Navigation Menu */
  .nav-links {
    display: flex !important;
    position: fixed !important;
    top: 62px;
    bottom: 0;
    height: calc(100dvh - 62px);
    right: -100%;
    width: 82%;
    max-width: 300px;
    background: rgba(4, 20, 13, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.2rem 0.9rem;
    transition: right 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    align-items: stretch;
    text-align: right;
    overflow-y: auto;
    box-shadow: -8px 0 25px rgba(0, 0, 0, 0.4);
    border-left: 1px solid rgba(212, 175, 55, 0.25);
    z-index: 1200 !important;
    pointer-events: none;
    visibility: hidden;
  }

  .nav-links.active {
    right: 0 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    display: flex !important;
  }

  .nav-link {
    color: #FFFFFF;
    font-size: 0.92rem;
    padding: 0.55rem 0.8rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    margin-bottom: 0.3rem;
    justify-content: flex-start;
    gap: 0.6rem;
  }

  .nav-link svg:not(.dropdown-arrow) {
    display: inline-block !important;
    fill: var(--accent-gold);
  }

  .nav-link.active, .nav-link:hover {
    background: var(--gold-gradient);
    color: var(--primary-deep) !important;
  }

  .nav-link.active svg, .nav-link:hover svg {
    fill: var(--primary-deep);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    border: none;
    margin: 0.2rem 0 0.5rem;
    padding: 0.2rem;
  }

  .dropdown-item a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 13px;
  }

  .top-bar {
    display: none !important;
  }

  .navbar {
    padding: 0.2rem 0;
  }

  .nav-container {
    padding: 0.4rem 0.8rem;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .brand-sub {
    font-size: 0.76rem;
  }

  .logo-emblem-img {
    width: 56px;
    height: 56px;
  }

  .footer-brand img {
    width: 58px !important;
    height: 58px !important;
  }

  /* Legacy mobile rules removed to preserve full 16:9 hero photo and responsive mobile layout */

  .tilt-card img {
    height: 220px;
  }

  /* STATS CARDS ON MOBILE - ULTRA COMPACT */
  .stats-section {
    margin-top: 0.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem !important;
    padding: 0.6rem 0.4rem !important;
    border-radius: 12px !important;
  }

  .stats-grid .stat-item:last-child {
    grid-column: 1 / -1;
  }

  .stat-item {
    padding: 0.2rem !important;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stat-icon {
    width: 28px !important;
    height: 28px !important;
    margin: 0 auto 0.25rem !important;
    border-width: 1px !important;
    box-shadow: none !important;
  }

  .stat-icon svg {
    width: 13px !important;
    height: 13px !important;
  }

  .stat-number {
    font-size: 1.15rem !important;
    margin-bottom: 0.1rem !important;
  }

  .stat-label {
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
  }

  /* Forms on Mobile */
  #registration-form > div,
  form > div {
    grid-template-columns: 1fr !important;
    gap: 0.8rem !important;
  }

  .glass-panel {
    padding: 1.2rem 0.9rem !important;
    border-radius: 12px;
  }

  .form-control {
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
  }

  /* Section Padding & Headers Mobile */
  .section-padding {
    padding: 2.2rem 0;
  }

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

  .section-desc {
    font-size: 0.85rem;
  }

  /* Program cards: two equal columns on mobile without horizontal overflow */
  .programs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.75rem;
  }

  .program-card {
    min-width: 0;
    height: auto;
    padding: 0.65rem 0.6rem;
  }

  .program-card ul {
    display: flex !important;
    gap: 0.2rem !important;
    margin: 0.35rem 0 !important;
  }

  .program-card .program-icon-box {
    width: 44px;
    height: 44px;
    margin-bottom: 0.3rem;
  }

  .program-card .program-title {
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }

  .program-card .program-grades {
    margin-bottom: 0.25rem;
  }

  .program-card .program-desc {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .program-card .btn-gold {
    min-height: 32px;
    padding-inline: 0.5rem;
    padding-block: 0.3rem;
    font-size: 0.78rem;
  }

  /* ALL SUBPAGE CARDS & GRIDS STACK ON MOBILE INTO SINGLE COLUMN (1-COLUMN) */
  .form-grid,
  .admission-cards-grid,
  .contact-grid,
  .gallery-grid,
  .facilities-grid,
  .news-grid,
  .staff-grid,
  .about-split,
  .portals-banner-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .portals-banner {
    padding: 1.6rem 1rem;
  }

  .about-img-main {
    height: 240px;
  }

  /* Hide header CTA button on mobile to keep navbar clean */
  .nav-actions .btn-gold {
    display: none !important;
  }

  /* Prevent form submit button text overflow on mobile screens */
  form button[type="submit"],
  form .btn-gold,
  form .btn-primary,
  form .btn-outline {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    text-align: center !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    padding: 0.65rem 0.85rem !important;
    font-size: 0.9rem !important;
  }
}

/* Global form button safety for mobile responsiveness */
form button[type="submit"],
form .btn-gold,
form .btn-primary,
form .btn-outline {
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

/* Math & Science Responsive Highlight Banner */
.highlight-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 2.5px solid var(--accent-gold);
  background: linear-gradient(135deg, rgba(10, 74, 47, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.highlight-banner-text {
  flex: 2;
}

.highlight-banner-action {
  flex: 1;
  text-align: left;
}

@media (max-width: 768px) {
  .highlight-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1.2rem !important;
    padding: 1.5rem !important;
  }
  .highlight-banner-text {
    flex: none !important;
  }
  .highlight-banner-action {
    flex: none !important;
    text-align: center !important;
  }
  .highlight-banner-action .btn-gold {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Print Styles for Official Contract Document */
@media print {
  /* When printing-active class is on body, hide everything except the wrapper */
  body.printing-active > *:not(#print-container-wrapper) {
    display: none !important;
  }
  
  body.printing-active #print-container-wrapper {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    direction: rtl !important;
  }
  
  body.printing-active .official-contract-card {
    border: 1.5px solid #0A4A2F !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 2rem !important;
    margin: 0 !important;
    background: #fff !important;
    color: #000 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* General Fallback print styling if Ctrl+P is pressed directly */
  header, footer, nav, .navbar, .site-footer, .no-print, .page-header, .btn-gold, form, .section-header, .stats-section, .programs-section, .facilities-section, .hero-section {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    direction: rtl !important;
  }

  .official-contract-card {
    border: 1.5px solid #0A4A2F !important;
    box-shadow: none !important;
margin: 0 auto 0.25rem !important;
    border-width: 1px !important;
    box-shadow: none !important;
  }

  .stat-icon svg {
    width: 13px !important;
    height: 13px !important;
  }

  .stat-number {
    font-size: 1.15rem !important;
    margin-bottom: 0.1rem !important;
  }

  .stat-label {
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
  }

  /* Forms on Mobile */
  #registration-form > div,
  form > div {
    grid-template-columns: 1fr !important;
    gap: 0.8rem !important;
  }

  .glass-panel {
    padding: 1.2rem 0.9rem !important;
    border-radius: 12px;
  }

  .form-control {
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
  }

  /* Section Padding & Headers Mobile */
  .section-padding {
    padding: 2.2rem 0;
  }

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

  .section-desc {
    font-size: 0.85rem;
  }

  /* ALL SUBPAGE CARDS & GRIDS STACK ON MOBILE INTO SINGLE COLUMN (1-COLUMN) */
  .form-grid,
  .admission-cards-grid,
  .contact-grid,
  .gallery-grid,
  .facilities-grid,
  .news-grid,
  .staff-grid,
  .about-split,
  .portals-banner-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .portals-banner {
    padding: 1.6rem 1rem;
  }

  .about-img-main {
    height: 240px;
  }

  /* Hide header CTA button on mobile to keep navbar clean */
  .nav-actions .btn-gold {
    display: none !important;
  }

  /* Prevent form submit button text overflow on mobile screens */
  form button[type="submit"],
  form .btn-gold,
  form .btn-primary,
  form .btn-outline {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    text-align: center !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    padding: 0.65rem 0.85rem !important;
    font-size: 0.9rem !important;
  }
}

/* Global form button safety for mobile responsiveness */
form button[type="submit"],
form .btn-gold,
form .btn-primary,
form .btn-outline {
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

/* Math & Science Responsive Highlight Banner */
.highlight-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 2.5px solid var(--accent-gold);
  background: linear-gradient(135deg, rgba(10, 74, 47, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.highlight-banner-text {
  flex: 2;
}

.highlight-banner-action {
  flex: 1;
  text-align: left;
}

@media (max-width: 768px) {
  .highlight-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1.2rem !important;
    padding: 1.5rem !important;
  }
  .highlight-banner-text {
    flex: none !important;
  }
  .highlight-banner-action {
    flex: none !important;
    text-align: center !important;
  }
  .highlight-banner-action .btn-gold {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Print Styles for Official Contract Document */
@media print {
  /* When printing-active class is on body, hide everything except the wrapper */
  body.printing-active > *:not(#print-container-wrapper) {
    display: none !important;
  }
  
  body.printing-active #print-container-wrapper {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    direction: rtl !important;
  }
  
  body.printing-active .official-contract-card {
    border: 1.5px solid #0A4A2F !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 2rem !important;
    margin: 0 !important;
    background: #fff !important;
    color: #000 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* General Fallback print styling if Ctrl+P is pressed directly */
  header, footer, nav, .navbar, .site-footer, .no-print, .page-header, .btn-gold, form, .section-header, .stats-section, .programs-section, .facilities-section, .hero-section {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    direction: rtl !important;
  }

  .official-contract-card {
    border: 1.5px solid #0A4A2F !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 1.5cm !important;
    margin: 0 !important;
    background: #fff !important;
    color: #000 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ABOUT OVERVIEW SECTION (Right after Hero) */
.about-overview-section {
  padding: 2.5rem 0 2rem 0;
  background: #FAFCFB;
  border-bottom: 1px solid rgba(6, 44, 30, 0.06);
  position: relative;
  z-index: 10;
}

.about-overview-grid {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr !important;
  gap: 3.5rem !important;
  align-items: center !important;
}

.sub-subtitle {
  display: inline-block;
  color: var(--accent-gold, #C89B3C);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.about-main-title {
  color: var(--primary-deep, #062C1E);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.about-main-desc {
  color: #4A5568;
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 2rem;
}

.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.about-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(6, 44, 30, 0.08);
  border-color: rgba(200, 155, 60, 0.4);
}

.about-card-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(200, 155, 60, 0.12);
  color: var(--accent-gold, #C89B3C);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.about-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-deep, #062C1E);
}

.about-card-status {
  font-size: 0.85rem;
  color: #718096;
  font-weight: 500;
}

.about-overview-image {
  position: relative;
  width: 100%;
}

.about-img-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(6, 44, 30, 0.12);
  border: 4px solid #FFFFFF;
  width: 100%;
}

.about-img-frame img {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}

.about-img-frame:hover img {
  transform: scale(1.03);
}

@media (max-width: 992px) {
  .about-overview-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
}

@media (max-width: 576px) {
  .about-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* PRE-FOOTER CONTACT & MAP CARD SECTION */
.prefooter-contact-section {
  padding: 4.5rem 0 5rem 0;
  background: var(--light-bg);
}

.prefooter-card {
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(6, 44, 30, 0.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.prefooter-info-col {
  padding: 2.2rem 2.5rem;
  text-align: right;
  direction: rtl;
}

.prefooter-title {
  color: var(--primary-deep, #062C1E);
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  font-family: 'Readex Pro', sans-serif;
}

.prefooter-subtitle {
  color: #718096;
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-family: 'Readex Pro', sans-serif;
}

.prefooter-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: #4A5568;
  font-size: 0.95rem;
  font-family: 'Readex Pro', sans-serif;
}

.prefooter-detail-item {
  line-height: 1.65;
}

.prefooter-detail-item strong {
  color: var(--primary-deep, #062C1E);
  font-weight: 800;
  margin-left: 0.3rem;
}

.prefooter-detail-item a {
  color: var(--primary-mid, #0E6B44);
  font-weight: 700;
  transition: color 0.2s ease;
}

.prefooter-detail-item a:hover {
  color: var(--accent-gold, #C89B3C);
}

.prefooter-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.prefooter-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: right;
}

.prefooter-form-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-deep, #062C1E);
  font-family: 'Readex Pro', sans-serif;
}

.prefooter-form-group input,
.prefooter-form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  background: #FAFCFB;
  font-family: 'Readex Pro', sans-serif;
  font-size: 0.95rem;
  color: #2D3748;
  transition: all 0.25s ease;
  outline: none;
  text-align: right;
}

.prefooter-form-group input:focus,
.prefooter-form-group textarea:focus {
  border-color: var(--primary-mid, #0E6B44);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(14, 107, 68, 0.12);
}

.btn-prefooter-submit {
  width: 100%;
  background: var(--primary-deep, #062C1E);
  color: #FFFFFF;
  border: none;
  padding: 0.95rem;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  font-family: 'Readex Pro', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  box-shadow: 0 4px 14px rgba(6, 44, 30, 0.2);
}

.btn-prefooter-submit:hover {
  background: var(--primary-mid, #0E6B44);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6, 44, 30, 0.3);
}

.prefooter-map-col {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 440px;
}

.prefooter-map-col iframe {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  display: block;
}

@media (min-width: 993px) {
  .prefooter-card {
    overflow: visible;
    align-items: start;
    background: transparent;
    box-shadow: none;
    border: 0;
  }

  .prefooter-info-col {
    min-height: 100%;
    background: #FFFFFF;
    border: 1px solid rgba(6, 44, 30, 0.06);
    border-radius: 0 24px 24px 0;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  }

  .prefooter-map-col {
    position: sticky;
    top: 82px;
    align-self: start;
    height: calc(100vh - 104px);
    min-height: 440px;
    max-height: 680px;
    overflow: hidden;
    border-radius: 24px 0 0 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  }
}

@media (max-width: 992px) {
  .prefooter-card {
    grid-template-columns: 1fr;
  }
  .prefooter-map-col {
    min-height: 360px;
    order: 2;
  }
  .prefooter-info-col {
    padding: 2.5rem 1.75rem;
    order: 1;
  }
}

/* VISION & MISSION SECTION (Matching Screenshot 1) */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.vm-card-vision,
.vm-card-mission {
  background: #FFFFFF !important;
  color: #121F18 !important;
  padding: 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 16px;
  border: 1.5px solid rgba(16, 185, 129, 0.15) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
}

.vm-card-vision:hover,
.vm-card-mission:hover,
.vm-card-vision:active,
.vm-card-mission:active {
  transform: translateY(-5px);
  border-color: #10B981 !important;
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.18);
}

.vm-card-vision .vm-title,
.vm-card-mission .vm-title {
  color: #062C1E !important;
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  font-family: 'Readex Pro', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vm-card-vision .vm-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
}

.vm-card-mission .vm-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C89B3C;
}

.vm-card-vision .vm-desc,
.vm-card-mission .vm-desc {
  color: #4A5568 !important;
  font-size: 0.88rem;
  line-height: 1.65;
  font-family: 'Readex Pro', sans-serif;
}

@media (max-width: 768px) {
  .vm-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

/* ADMISSION PORTAL DESIGN (Matching Screenshot 2) */
.admission-portal-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.admission-header-center {
  text-align: center;
  margin-bottom: 2.5rem;
}

.admission-main-title {
  font-size: 2.4rem;
  font-weight: 900;
  color: #062C1E;
  margin-bottom: 0.6rem;
  font-family: 'Readex Pro', sans-serif;
}

.admission-subtitle {
  font-size: 1rem;
  color: #718096;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.65;
  font-family: 'Readex Pro', sans-serif;
}

.admission-conditions-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  overflow: hidden;
  margin-bottom: 3.5rem;
  padding: 1.5rem;
  align-items: center;
}

.admission-conditions-img {
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  max-height: 260px;
}

.admission-conditions-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admission-conditions-info h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #062C1E;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Readex Pro', sans-serif;
}

.admission-conditions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.admission-conditions-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #4A5568;
  line-height: 1.6;
  font-family: 'Readex Pro', sans-serif;
}

.admission-conditions-item svg {
  color: #16A363;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Registration Journey 5-Steps Grid */
.journey-section {
  margin-bottom: 3.5rem;
}

.journey-header {
  text-align: center;
  margin-bottom: 2rem;
}

.journey-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #062C1E;
  margin-bottom: 0.3rem;
  font-family: 'Readex Pro', sans-serif;
}

.journey-desc {
  font-size: 0.92rem;
  color: #718096;
  font-family: 'Readex Pro', sans-serif;
}

.journey-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.journey-step-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  padding: 1.25rem 0.85rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
  border-top: 3px solid #062C1E;
}

.journey-step-card:hover {
  transform: translateY(-4px);
  border-top-color: #16A363;
}

.journey-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #062C1E;
  color: #FFFFFF;
  font-weight: 900;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
  font-family: 'Readex Pro', sans-serif;
}

.journey-step-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #062C1E;
  margin-bottom: 0.35rem;
  font-family: 'Readex Pro', sans-serif;
}

.journey-step-sub {
  font-size: 0.82rem;
  color: #718096;
  line-height: 1.4;
  font-family: 'Readex Pro', sans-serif;
}

/* Registration Form Card with Dark Green Header */
.reg-form-card {
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 16px 48px rgba(6, 44, 30, 0.08);
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
}

.reg-form-header {
  background: #062C1E;
  color: #FFFFFF;
  padding: 1.8rem 2rem;
  text-align: center;
}

.reg-form-header h3 {
  font-size: 1.6rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 0.3rem;
  font-family: 'Readex Pro', sans-serif;
}

.reg-form-header p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Readex Pro', sans-serif;
}

.reg-form-body {
  padding: 2.2rem;
}

@media (max-width: 992px) {
  .journey-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admission-conditions-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .journey-steps-grid {
    grid-template-columns: 1fr;
  }
  .reg-form-body {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   STAFF PAGE ENHANCEMENTS (الكادر التعليمي والإداري)
   ========================================================================== */
.staff-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.staff-stat-card {
  background: #FFFFFF;
  border: 1px solid rgba(10, 74, 47, 0.1);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staff-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(10, 74, 47, 0.1);
}

.staff-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #FFFFFF !important;
  color: #10B981 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid #10B981 !important;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15);
}

.staff-stat-number {
  font-size: 1.6rem;
  font-weight: 900;
  color: #062C1E;
  line-height: 1.2;
  font-family: 'Readex Pro', sans-serif;
}

.staff-stat-label {
  font-size: 0.85rem;
  color: #718096;
  font-weight: 700;
}

/* Controls (Filter & Search) */
.staff-controls-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}

.staff-search-box {
  position: relative;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.staff-search-input {
  width: 100%;
  padding: 0.8rem 2.8rem 0.8rem 1.2rem;
  border: 2px solid rgba(10, 74, 47, 0.15);
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.staff-search-input:focus {
  outline: none;
  border-color: #0A4A2F;
  box-shadow: 0 0 0 4px rgba(22, 163, 99, 0.12);
}

.staff-search-icon {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #0A4A2F;
  pointer-events: none;
}

.staff-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.staff-tab-btn {
  background: #FFFFFF;
  color: #062C1E;
  border: 1px solid rgba(10, 74, 47, 0.16);
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  font-family: 'Readex Pro', sans-serif;
}

.staff-tab-btn:hover {
  background: rgba(10, 74, 47, 0.06);
  border-color: #10B981;
  transform: translateY(-2px);
}

.staff-tab-btn.active {
  background: linear-gradient(135deg, #062C1E 0%, #0A4A2F 100%);
  color: #FFFFFF;
  border-color: #10B981;
  box-shadow: 0 4px 14px rgba(6, 44, 30, 0.22);
}

/* Teacher Card Styling */
.teacher-card {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(10, 74, 47, 0.09);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.teacher-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(6, 44, 30, 0.14);
  border-color: #10B981;
}

.teacher-img-wrapper {
  position: relative;
  width: 100%;
  height: 175px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.teacher-img-blur {
  position: absolute;
  inset: -10px;
  background-size: cover;
  background-position: center;
  filter: blur(14px) brightness(0.65);
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
}

.teacher-img {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  z-index: 2;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.teacher-card:hover .teacher-img {
  transform: scale(1.05);
}

.teacher-img-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
  z-index: 2;
}

.teacher-exp-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #FFFFFF !important;
  color: #062C1E !important;
  border: 1.5px solid #10B981 !important;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.74rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  z-index: 3;
}

.teacher-exp-badge svg {
  color: #10B981 !important;
}

.teacher-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.teacher-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #062C1E;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  font-family: 'Readex Pro', sans-serif;
}

.teacher-role {
  font-size: 0.78rem;
  font-weight: 700;
  color: #16A363;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.teacher-details-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #4A5E53;
}

.teacher-details-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.teacher-details-list li svg {
  color: #10B981;
  flex-shrink: 0;
}

.teacher-degree-tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.12);
  color: #7A5B00;
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.teacher-card-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(10, 74, 47, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Modal Details */
.teacher-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.teacher-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.teacher-modal-card {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  border: 2px solid #10B981;
}

.teacher-modal-backdrop.active .teacher-modal-card {
  transform: translateY(0);
}

.teacher-modal-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.teacher-modal-close:hover {
  background: #10B981;
  color: #062C1E;
}

/* Staff Showcase Pagination */
.staff-pagination-wrapper {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.staff-pagination-info {
  font-size: 0.9rem;
  font-weight: 700;
  color: #475569;
  background: #FFFFFF;
  padding: 0.45rem 1.4rem;
  border-radius: 50px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  box-shadow: 0 2px 12px rgba(10, 74, 47, 0.04);
}

.staff-pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.staff-page-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 0.95rem;
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  color: #1E293B;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.staff-page-btn:hover:not(:disabled) {
  border-color: #10B981;
  color: #062C1E;
  background: #F0FDF4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.staff-page-btn.active {
  background: linear-gradient(135deg, #0A4A2F 0%, #10B981 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.staff-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  background: #F8FAFC;
}


@media (max-width: 992px) {
  .staff-stats-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .staff-stats-bar {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

/* Merged contact section pills hover and elevation styling */
.contact-link-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  border: 1.5px solid rgba(10, 74, 47, 0.12);
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  text-decoration: none;
  color: #062C1E;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.contact-link-pill:hover,
.contact-link-pill:focus,
.contact-link-pill:active {
  transform: translateY(-3px);
  border-color: #0A4A2F;
  box-shadow: 0 8px 20px rgba(10, 74, 47, 0.16);
  background: #FFFFFF;
}

.contact-link-pill .pill-icon-box {
  background: rgba(10, 74, 47, 0.08);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #0A4A2F;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.contact-link-pill .pill-icon-box svg {
  fill: currentColor !important;
}

.contact-link-pill:hover .pill-icon-box,
.contact-link-pill:focus .pill-icon-box,
.contact-link-pill:active .pill-icon-box,
.contact-link-pill:visited .pill-icon-box {
  background: #0A4A2F !important;
  color: #FFFFFF !important;
}

.contact-link-pill:hover .pill-icon-box svg,
.contact-link-pill:focus .pill-icon-box svg,
.contact-link-pill:active .pill-icon-box svg,
.contact-link-pill:visited .pill-icon-box svg {
  fill: #FFFFFF !important;
  color: #FFFFFF !important;
}

/* Final mobile layout: consistent two-column cards across all pages */
@media (max-width: 768px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 0.8rem;
  }

  main,
  section,
  .container,
  .glass-panel,
  .teacher-card,
  .program-card {
    min-width: 0;
  }

  p,
  h1,
  h2,
  h3,
  h4,
  a,
  span {
    overflow-wrap: anywhere;
  }

  .programs-grid,
  .gallery-grid,
  .facilities-grid,
  .media-cards-grid,
  .news-grid,
  .staff-grid,
  .journey-steps-grid,
  .contact-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
    width: 100%;
  }

  .programs-grid {
    align-items: stretch !important;
    grid-auto-rows: 1fr;
  }

  .program-card {
    align-self: stretch !important;
    height: 100% !important;
    min-height: 0 !important;
    justify-content: space-between !important;
  }

  .program-card > div {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .program-card .btn-gold {
    flex: none !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
  }

  .gallery-grid > *,
  .facilities-grid > *,
  .media-cards-grid > *,
  .news-grid > *,
  .staff-grid > *,
  .journey-steps-grid > *,
  .contact-grid > * {
    min-width: 0;
    width: 100%;
    margin: 0;
  }

  .gallery-grid,
  .facilities-grid,
  .media-cards-grid,
  .news-grid,
  .staff-grid,
  .journey-steps-grid,
  .contact-grid {
    align-items: stretch !important;
    grid-auto-rows: 1fr;
  }

  .gallery-grid > *,
  .facilities-grid > *,
  .media-cards-grid > *,
  .news-grid > *,
  .staff-grid > *,
  .journey-steps-grid > *,
  .contact-grid > * {
    align-self: stretch !important;
    height: 100% !important;
  }

  .gallery-grid .teacher-card,
  .media-cards-grid .teacher-card,
  .staff-grid .teacher-card,
  .facilities-grid .glass-panel,
  .news-grid .glass-panel,
  .journey-steps-grid .journey-step-card,
  .contact-grid .glass-panel {
    display: flex;
    flex-direction: column;
  }

  .gallery-grid .teacher-content,
  .media-cards-grid .teacher-content,
  .staff-grid .teacher-content {
    flex: 1 1 auto;
  }

  .form-grid,
  .about-split,
  .portals-banner-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .form-group,
  input,
  select,
  textarea,
  button {
    min-width: 0;
    max-width: 100%;
  }

  .reveal-left,
  .reveal-right {
    transform: translateY(24px);
  }

  .gallery-grid .teacher-img-wrapper,
  .media-cards-grid .teacher-img-wrapper {
    height: auto !important;
    aspect-ratio: 4 / 3;
  }

  .gallery-grid .teacher-content,
  .media-cards-grid .teacher-content {
    padding: 0.7rem !important;
  }

  .gallery-grid .teacher-name,
  .media-cards-grid .teacher-name {
    font-size: 0.92rem !important;
  }

  .gallery-grid p,
  .media-cards-grid p {
    font-size: 0.76rem !important;
    line-height: 1.45 !important;
  }

  .facilities-grid .glass-panel,
  .news-grid .glass-panel {
    padding: 0.75rem !important;
  }

  .facilities-grid .glass-panel > img {
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-bottom: 0.55rem !important;
  }

  .facilities-grid h3,
  .news-grid h3 {
    font-size: 0.95rem !important;
    margin-bottom: 0.25rem !important;
  }

  .facilities-grid p,
  .news-grid p {
    font-size: 0.76rem !important;
    line-height: 1.45 !important;
  }

  .contact-grid .glass-panel {
    flex-direction: column;
    align-items: center !important;
    justify-content: flex-start;
    gap: 0.45rem !important;
    padding: 0.75rem 0.55rem !important;
    text-align: center;
  }

  .contact-grid .glass-panel > div:last-child {
    min-width: 0;
    width: 100%;
  }

  .contact-grid h3 {
    font-size: 0.88rem !important;
    line-height: 1.4;
  }

  .contact-grid p,
  .contact-grid a {
    font-size: 0.74rem !important;
    line-height: 1.45;
  }

  .prefooter-contact-section {
    padding: 2rem 0;
  }

  .prefooter-card,
  .prefooter-info-col {
    min-width: 0;
    width: 100%;
  }

  .prefooter-card {
    border-radius: 18px;
  }

  .prefooter-info-col {
    padding: 1.25rem 0.8rem;
  }

  .prefooter-title {
    font-size: 2rem;
    text-align: center;
  }

  .prefooter-subtitle {
    margin-bottom: 0.8rem;
    text-align: center;
  }

  .prefooter-details-list {
    gap: 0.35rem;
    margin-bottom: 0.8rem;
  }

  .prefooter-info-col > h3 {
    color: var(--primary-deep) !important;
    margin: 0.7rem 0 0.45rem !important;
  }

  .prefooter-detail-item,
  .prefooter-detail-item a {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .prefooter-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.55rem !important;
    width: 100%;
    margin-bottom: 0.7rem !important;
  }

  .prefooter-contact-grid .contact-link-pill {
    min-width: 0;
    width: 100%;
    padding: 0.55rem 0.45rem;
  }

  .prefooter-contact-grid .contact-link-pill > div {
    min-width: 0;
  }

  .prefooter-contact-grid .contact-link-pill span,
  .prefooter-contact-grid .contact-link-pill strong {
    overflow-wrap: anywhere;
  }

  .prefooter-map-col {
    min-height: 260px;
  }

  .prefooter-info-col > .btn-outline {
    margin-top: 0.35rem !important;
    min-height: 44px;
    padding: 0.55rem 0.45rem !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.45;
    text-align: center;
  }

  .staff-grid .teacher-content {
    min-width: 0;
    padding: 0.65rem !important;
  }

  .staff-grid .teacher-details-list,
  .staff-grid .teacher-details-list li,
  .staff-grid .teacher-details-list span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .staff-grid .teacher-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
    margin-top: 0.35rem;
    padding-top: 0.55rem;
  }

  .staff-grid .teacher-degree-tag,
  .staff-grid .view-teacher-btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.4rem 0.3rem !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.35;
    text-align: center;
  }

  .gallery-grid .teacher-exp-badge,
  .media-cards-grid .teacher-exp-badge {
    top: 0.4rem;
    left: 0.4rem;
    max-width: calc(100% - 0.8rem);
    padding: 0.18rem 0.4rem;
    border-width: 1px !important;
    border-radius: 9px;
    gap: 0.2rem;
    font-size: 0.58rem;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }

  .gallery-grid .teacher-exp-badge svg,
  .media-cards-grid .teacher-exp-badge svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
  }

  .staff-stats-bar {
    gap: 0.5rem;
    margin-bottom: 1.2rem;
  }

  .staff-stat-card {
    min-height: 0;
    padding: 0.65rem 0.75rem;
    border-radius: 11px;
    gap: 0.65rem;
  }

  .staff-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }

  .staff-stat-icon svg {
    width: 18px;
    height: 18px;
  }

  .staff-stat-number {
    font-size: 1.1rem;
    line-height: 1.2;
  }

  .staff-stat-label {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .about-school-image {
    width: 92% !important;
    height: 170px !important;
    object-fit: cover !important;
    object-position: center top !important;
    margin-inline: auto;
  }
}

@media (max-width: 360px) {
  .container {
    padding-inline: 0.6rem;
  }

  .programs-grid,
  .gallery-grid,
  .facilities-grid,
  .media-cards-grid,
  .news-grid,
  .staff-grid,
  .journey-steps-grid,
  .contact-grid {
    gap: 0.45rem !important;
  }
}

/* White footer with soft green ambient glows */
.site-footer {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(16, 185, 129, 0.22), transparent 30%),
    radial-gradient(circle at 92% 76%, rgba(10, 74, 47, 0.18), transparent 32%),
    radial-gradient(circle at 48% 110%, rgba(22, 163, 99, 0.13), transparent 38%),
    #FFFFFF;
  color: #355648;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 -12px 40px rgba(16, 185, 129, 0.08);
}

.site-footer::before,
.site-footer::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  filter: blur(28px);
  pointer-events: none;
}

.site-footer::before {
  top: -70px;
  right: -55px;
}

.site-footer::after {
  bottom: -80px;
  left: -45px;
  background: rgba(6, 44, 30, 0.12);
}

.site-footer .footer-title,
.site-footer .footer-brand h3 {
  color: var(--primary-deep) !important;
}

.site-footer .footer-brand p,
.site-footer .footer-contact-info p,
.site-footer .footer-bottom,
.site-footer p {
  color: #49675A !important;
}

.site-footer .footer-links a {
  color: #355648;
}

.site-footer .footer-links a:hover {
  color: #10B981 !important;
}

.site-footer .footer-bottom {
  border-top-color: rgba(10, 74, 47, 0.12);
}

.site-footer,
.site-footer .footer-title,
.site-footer .footer-brand h3,
.site-footer .footer-brand p,
.site-footer .footer-brand > span,
.site-footer .footer-links a,
.site-footer .footer-contact-item,
.site-footer .footer-contact-item span,
.site-footer .footer-contact-item strong,
.site-footer .footer-contact-item a,
.site-footer .footer-bottom,
.site-footer .footer-bottom p,
.site-footer .footer-bottom a {
  color: #111111 !important;
}

.site-footer .footer-contact-item:hover,
.site-footer .footer-contact-item a:hover,
.site-footer .footer-links a:hover,
.site-footer .footer-bottom a:hover {
  color: #0A4A2F !important;
}

@media (max-width: 992px) {
  .nav-links {
    background:
      radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.14), transparent 34%),
      radial-gradient(circle at 0% 100%, rgba(10, 74, 47, 0.09), transparent 36%),
      rgba(255, 255, 255, 0.98);
    border-left-color: rgba(10, 74, 47, 0.14);
    box-shadow: -10px 0 32px rgba(6, 44, 30, 0.16);
  }

  .drawer-close-btn {
    background: #EAF8F1;
    border-color: rgba(10, 74, 47, 0.18);
    color: var(--primary-deep);
  }

  .drawer-close-btn:hover {
    background: var(--primary-deep);
    color: #FFFFFF;
  }

  .nav-link {
    color: var(--primary-deep);
    background: rgba(10, 74, 47, 0.055);
    border: 1px solid rgba(10, 74, 47, 0.07);
  }

  .nav-link svg:not(.dropdown-arrow),
  .nav-link .dropdown-arrow {
    fill: var(--primary-mid);
    color: var(--primary-mid);
  }

  .nav-link.active,
  .nav-link:hover {
    background: linear-gradient(135deg, #0A4A2F, #10B981);
    color: #FFFFFF !important;
    border-color: transparent;
  }

  .nav-link.active svg,
  .nav-link:hover svg {
    fill: #FFFFFF !important;
    color: #FFFFFF !important;
  }

  .dropdown-menu {
    background: rgba(16, 185, 129, 0.07);
    border: 1px solid rgba(10, 74, 47, 0.08);
  }

  .dropdown-item a {
    color: #355648;
  }

  .dropdown-item a:hover {
    color: var(--primary-deep);
    background: rgba(16, 185, 129, 0.12);
  }
}

/* ==========================================================================
   FACILITIES - CLEAN REFINED CARDS & CINEMA LIGHTBOX
   ========================================================================== */
.facility-card {
  position: relative;
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(10, 74, 47, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(10, 74, 47, 0.12) !important;
}

.facility-card-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #F1F5F9;
}

.facility-card-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  transition: transform 0.5s ease;
}

@media (max-width: 768px) {
  .facility-card-img-wrap {
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
  }
}

.facility-card:hover .facility-card-img-wrap img {
  transform: scale(1.06);
}

.facility-card-body {
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.facility-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-deep);
  margin: 0 0 0.45rem;
  font-family: 'Readex Pro', sans-serif;
}

.facility-card-desc {
  font-size: 0.92rem;
  color: #4A5568;
  line-height: 1.65;
  margin: 0;
}

/* Classroom Interactive Card Badge */
.facility-classroom-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(3, 44, 30, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 2;
  transition: all 0.25s ease;
}

.facility-card.interactive-classroom-card,
.facility-card.interactive-facility-card {
  cursor: pointer;
}

.facility-card.interactive-classroom-card:hover .facility-classroom-badge,
.facility-card.interactive-facility-card:hover .facility-classroom-badge {
  background: #10B981;
  color: #FFFFFF;
  border-color: #10B981;
  transform: scale(1.04);
}

.classroom-browse-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #10B981;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.8rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.facility-card.interactive-classroom-card:hover .classroom-browse-hint,
.facility-card.interactive-facility-card:hover .classroom-browse-hint {
  gap: 0.65rem;
  color: var(--primary);
}

.teacher-card.interactive-activity-card {
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.teacher-card.interactive-activity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(10, 74, 47, 0.14) !important;
}

.activity-browse-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #10B981;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 0.7rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.teacher-card.interactive-activity-card:hover .activity-browse-hint {
  gap: 0.65rem;
  color: var(--primary);
}

/* CINEMA LIGHTBOX / FROSTED GLASS VIEWER (أبيض شفاف راقي) */
.cinema-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  padding: 0.8rem 1.2rem 1rem 1.2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  box-sizing: border-box;
}

.cinema-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

/* Lightbox Top Header */
.cinema-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  color: #062C1E;
  padding-bottom: 0.4rem;
  flex-shrink: 0;
}

.cinema-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.cinema-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #062C1E;
  margin: 0;
  font-family: 'Readex Pro', sans-serif;
}

.cinema-counter {
  background: rgba(22, 163, 99, 0.12);
  border: 1px solid rgba(22, 163, 99, 0.3);
  color: #16A363;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
}

.cinema-close-btn {
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1E293B;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cinema-close-btn:hover {
  background: #EF4444;
  border-color: #EF4444;
  color: #FFFFFF;
  transform: rotate(90deg);
}

/* Category Filter Bar Inside Lightbox */
.cinema-filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.2rem 0.5rem 0.6rem 0.5rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  scrollbar-width: none;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cinema-filter-bar::-webkit-scrollbar {
  display: none;
}

.cinema-filter-chip {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #334155;
  padding: 0.38rem 1rem;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: 'Readex Pro', sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.cinema-filter-chip:hover {
  background: #F0FDF4;
  border-color: #16A363;
  color: #16A363;
}

.cinema-filter-chip.active {
  background: #FFFFFF !important;
  color: #0A4A2F !important;
  border: 1.8px solid #10B981 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25), 0 0 10px rgba(16, 185, 129, 0.15) !important;
  transform: translateY(-1px);
}

/* Lightbox Center Stage */
.cinema-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  min-height: 0;
  padding: 0.4rem 0;
}

.cinema-img-box {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 235px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cinema-main-img {
  max-width: 100%;
  max-height: calc(100vh - 235px);
  border-radius: 14px;
  box-shadow: 0 20px 45px -10px rgba(6, 44, 30, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.06);
  object-fit: contain;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Navigation Floating Buttons */
.cinema-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, #FFFFFF 60%, #F0FDF4 100%) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(16, 185, 129, 0.5) !important;
  color: #0A4A2F !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.25), 0 0 15px rgba(16, 185, 129, 0.2) !important;
  z-index: 10;
}

.cinema-nav-btn:hover {
  background: #FFFFFF !important;
  border-color: #10B981 !important;
  color: #10B981 !important;
  transform: translateY(-50%) scale(1.15) !important;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.38), 0 0 25px rgba(16, 185, 129, 0.55) !important;
}

.cinema-nav-btn:active {
  transform: translateY(-50%) scale(1.08) !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45), 0 0 18px rgba(16, 185, 129, 0.45) !important;
}

.cinema-nav-btn.prev-btn {
  right: 10px;
}

.cinema-nav-btn.next-btn {
  left: 10px;
}

/* Lightbox Bottom Footer */
.cinema-footer {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding-top: 0.3rem;
}

.cinema-caption {
  color: #062C1E;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  font-family: 'Readex Pro', sans-serif;
  letter-spacing: 0.1px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(22, 163, 99, 0.2);
  padding: 0.35rem 1.4rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.cinema-thumbs-row {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.2rem 0;
  max-width: 100%;
  scrollbar-width: thin;
}

.cinema-thumb {
  width: 62px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: all 0.2s ease;
  flex-shrink: 0;
  background: #E2E8F0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.cinema-thumb:hover {
  opacity: 0.85;
}

.cinema-thumb.active {
  opacity: 1;
  border-color: #16A363;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(22, 163, 99, 0.4);
}

.cinema-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .cinema-lightbox {
    padding: 1rem 0.8rem;
  }
  .cinema-title {
    font-size: 0.98rem;
  }
  .cinema-nav-btn {
    width: 40px;
    height: 40px;
  }
  .cinema-nav-btn.prev-btn {
    right: 5px;
  }
  .cinema-nav-btn.next-btn {
    left: 5px;
  }
  .cinema-main-img {
    max-height: calc(100vh - 240px);
  }
  .cinema-caption {
    font-size: 0.88rem;
    padding: 0.35rem 1rem;
  }
  .cinema-thumb {
    width: 52px;
    height: 38px;
  }
}

/* ==========================================================================
   LUXURY ACTIVITIES SHOWCASE (SINGLE COVER CARD + MODAL GALLERY)
   ========================================================================== */
.activities-showcase-section {
  padding: 3rem 0 5rem 0;
  background: #F8FAF9;
}

.activities-showcase-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.activities-master-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #062C1E;
  box-shadow: 0 25px 60px -15px rgba(6, 44, 30, 0.25), 0 0 0 1px rgba(16, 185, 129, 0.15);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.activities-master-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 80px -15px rgba(6, 44, 30, 0.35), 0 0 0 2px rgba(22, 163, 99, 0.4);
}

.activities-master-img-box {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
}

.activities-master-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.1) brightness(1.08) saturate(1.2);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.activities-master-card:hover .activities-master-img {
  transform: scale(1.04);
}

.activities-master-overlay {
  position: absolute;
  inset: 0;
  /* Crystal-clear overlay: Keeps the photo 100% bright and vivid, subtle shade only at bottom for text */
  background: linear-gradient(180deg, rgba(6, 44, 30, 0.0) 0%, rgba(6, 44, 30, 0.15) 50%, rgba(6, 44, 30, 0.85) 100%);
  pointer-events: none;
}

.activities-master-badge {
  position: absolute;
  top: 1.8rem;
  right: 1.8rem;
  background: #FFFFFF;
  color: #16A363;
  border: 1.5px solid rgba(22, 163, 99, 0.25);
  padding: 0.55rem 1.3rem;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.activities-master-badge svg {
  fill: #16A363;
}

.activities-master-badge span {
  color: #16A363;
}

.activities-count-pill {
  position: absolute;
  top: 1.8rem;
  left: 1.8rem;
  background: #FFFFFF;
  color: #16A363;
  border: 1.5px solid rgba(22, 163, 99, 0.2);
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.activities-count-pill svg {
  stroke: #16A363;
}

.activities-count-pill span {
  color: #16A363;
}

.activities-master-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem;
  color: #FFFFFF;
  z-index: 2;
}

.activities-master-tagline {
  color: #FBBF24;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  display: block;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

.activities-master-title {
  color: #FFFFFF;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 0.8rem 0;
  font-family: 'Readex Pro', sans-serif;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.activities-master-desc {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 780px;
  margin: 0 0 1.6rem 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.activities-master-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #FFFFFF;
  color: #16A363;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.9rem 2.4rem;
  border-radius: 50px;
  border: 2px solid #FFFFFF;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  font-family: 'Readex Pro', sans-serif;
}

.activities-master-btn svg {
  fill: #16A363;
  transition: transform 0.25s ease;
}

.activities-master-card:hover .activities-master-btn {
  background: #F0FDF4;
  color: #0E7444;
  border-color: #10B981;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

.activities-master-card:hover .activities-master-btn svg {
  fill: #0E7444;
  transform: translateX(-4px);
}

/* Lightbox Filter Chips */
.cinema-filter-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.4rem 0.2rem;
  max-width: 100%;
  scrollbar-width: none;
}
.cinema-filter-bar::-webkit-scrollbar {
  display: none;
}

.cinema-filter-chip {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #062C1E;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: 'Readex Pro', sans-serif;
}

.cinema-filter-chip:hover {
  background: #FFFFFF;
  border-color: #16A363;
  color: #16A363;
}

.cinema-filter-chip.active {
  background: #062C1E;
  color: #00FF9D;
  border-color: #062C1E;
  box-shadow: 0 4px 12px rgba(6, 44, 30, 0.25);
}

@media (max-width: 768px) {
  .activities-showcase-section {
    padding: 1.5rem 0 3rem 0;
  }
  .activities-master-img-box {
    height: 440px;
  }
  .activities-master-content {
    padding: 1.5rem;
  }
  .activities-master-title {
    font-size: 1.35rem;
  }
  .activities-master-desc {
    font-size: 0.92rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
  }
  .activities-master-btn {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }
  .activities-master-badge, .activities-count-pill {
    top: 1rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.78rem;
  }
  .activities-master-badge { right: 1rem; }
  .activities-count-pill { left: 1rem; }
}

/* ==========================================================================
   LATEST NEWS COMPACT SECTION & AMBIENT GREEN GLOW SPOTS
   ========================================================================== */
.latest-news-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #F8FAF9 0%, #FFFFFF 50%, #F3F8F5 100%);
  border-top: 1px solid rgba(10, 74, 47, 0.08);
  border-bottom: 1px solid rgba(10, 74, 47, 0.06);
  padding: 2rem 0 2.4rem 0;
}

.ambient-spot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
  will-change: transform, opacity;
  animation: ambientGlowFloat 8s ease-in-out infinite alternate;
}

.ambient-spot-1 {
  width: 280px;
  height: 280px;
  top: -60px;
  right: -40px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, rgba(10, 74, 47, 0.1) 45%, transparent 70%);
  animation-duration: 9s;
}

.ambient-spot-2 {
  width: 320px;
  height: 320px;
  bottom: -80px;
  left: -40px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.24) 0%, rgba(5, 150, 105, 0.08) 50%, transparent 70%);
  animation-duration: 11s;
  animation-direction: alternate-reverse;
}

.ambient-spot-3 {
  width: 180px;
  height: 180px;
  top: 35%;
  left: 48%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.2) 0%, transparent 65%);
  animation-duration: 7s;
}

@keyframes ambientGlowFloat {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(12px, -14px) scale(1.1);
    opacity: 0.95;
  }
  100% {
    transform: translate(-10px, 10px) scale(0.95);
    opacity: 0.75;
  }
}

.compact-news-card {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(10, 74, 47, 0.12);
  border-radius: 14px;
  padding: 0.75rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(6, 44, 30, 0.05);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease !important;
}

.compact-news-card:hover,
.compact-news-card.reveal-active:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  box-shadow: 0 10px 24px rgba(10, 74, 47, 0.12) !important;
  background: #FFFFFF !important;
}

.compact-news-card .card-thumb {
  width: 82px;
  height: 82px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #062C1E;
  position: relative;
}

.compact-news-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.compact-news-card:hover .card-thumb img {
  transform: scale(1.06);
}

/* ==========================================================================
   SMART FORM VALIDATION & INTELLIGENT INPUT FEEDBACK
   ========================================================================== */
.form-control.is-invalid {
  border-color: #EF4444 !important;
  background-color: #FFFBFB !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
  animation: fieldShake 0.4s ease-in-out;
}

.form-control.is-valid {
  border-color: #10B981 !important;
  background-color: #F8FDF9 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12) !important;
}

@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(5px); }
  40%, 80% { transform: translateX(-5px); }
}

.field-smart-tooltip {
  position: absolute;
  top: -10px;
  left: 0;
  background: #062C1E;
  color: #FEE2E2;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(6, 44, 30, 0.25);
  pointer-events: none;
  z-index: 50;
  animation: fadeInTooltip 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  white-space: nowrap;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

@keyframes fadeInTooltip {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.field-error-msg {
  display: block;
  color: #DC2626;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.35rem;
  animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.official-success-card {
  background: #FFFFFF;
  border: 2px solid #10B981;
  border-radius: 14px;
  padding: 1.8rem;
  box-shadow: 0 15px 35px rgba(6, 44, 30, 0.08);
  font-family: var(--font-heading), 'Cairo', sans-serif;
  animation: fadeInDown 0.4s ease;
}


