/* ═══════════════════════════════════════════════════════════
   INSHAL ENGLISH MEDIUM SCHOOL — Premium Islamic Design System
   Palette: Deep Green #1B4332 | Gold #C9A84C | Cream #FDF8F0
   Fonts: Cormorant Garamond (display) + Plus Jakarta Sans (body)
═══════════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --green-deep:    #1B4332;
  --green-mid:     #2D6A4F;
  --green-light:   #40916C;
  --green-pale:    #D8F3DC;
  --green-ultra:   #F0FAF4;
  --gold:          #C9A84C;
  --gold-light:    #E8C97A;
  --gold-pale:     #FDF3DC;
  --cream:         #FDF8F0;
  --cream-dark:    #F5EDD8;
  --white:         #FFFFFF;
  --text-dark:     #1A1A1A;
  --text-mid:      #3D3D3D;
  --text-light:    #6B7280;
  --border:        rgba(201,168,76,0.25);
  --shadow-sm:     0 2px 12px rgba(27,67,50,0.08);
  --shadow-md:     0 8px 32px rgba(27,67,50,0.14);
  --shadow-lg:     0 20px 60px rgba(27,67,50,0.18);
  --shadow-gold:   0 8px 32px rgba(201,168,76,0.25);
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     40px;
  --transition:    all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.2s ease;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --font-arabic:  'Amiri', serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.7;
}

body.loading { overflow: hidden; }

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

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

.section-pad { padding: 100px 0; }

/* ── Arabic Typography ── */
.arabic-text, .arabic-display {
  font-family: var(--font-arabic);
  direction: rtl;
  unicode-bidi: bidi-override;
}

/* ══════════════════════════════════════════════════════════
   LOADER
══════════════════════════════════════════════════════════ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(201,168,76,0.04) 0, rgba(201,168,76,0.04) 1px, transparent 0, transparent 50%),
    repeating-linear-gradient(-45deg, rgba(201,168,76,0.04) 0, rgba(201,168,76,0.04) 1px, transparent 0, transparent 50%);
  background-size: 40px 40px;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  z-index: 2;
}

/* 3D Cube */
.logo-3d-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-3d-scene {
  width: 160px;
  height: 160px;
  perspective: 600px;
  position: relative;
  z-index: 2;
}

.logo-3d-cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: cubeRotate 6s linear infinite;
}

@keyframes cubeRotate {
  0%   { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  25%  { transform: rotateX(15deg) rotateY(90deg) rotateZ(5deg); }
  50%  { transform: rotateX(0deg) rotateY(180deg) rotateZ(0deg); }
  75%  { transform: rotateX(-15deg) rotateY(270deg) rotateZ(-5deg); }
  100% { transform: rotateX(0deg) rotateY(360deg) rotateZ(0deg); }
}

.cube-face {
  position: absolute;
  width: 160px;
  height: 160px;
  border: 2px solid rgba(201,168,76,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}

.cube-front  { transform: translateZ(80px); background: rgba(27,67,50,0.95); }
.cube-back   { transform: rotateY(180deg) translateZ(80px); background: rgba(27,67,50,0.95); }
.cube-left   { transform: rotateY(-90deg) translateZ(80px); background: rgba(45,106,79,0.9); }
.cube-right  { transform: rotateY(90deg) translateZ(80px); background: rgba(45,106,79,0.9); }
.cube-top    { transform: rotateX(90deg) translateZ(80px); background: rgba(64,145,108,0.9); }
.cube-bottom { transform: rotateX(-90deg) translateZ(80px); background: rgba(64,145,108,0.9); }

.loader-logo-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(201,168,76,0.6));
}

.cube-side-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.cube-side-content .arabic-text {
  font-size: 28px;
  color: var(--gold-light);
  text-align: center;
}

/* Glow rings */
.loader-glow-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.3);
  animation: ringPulse 3s ease-in-out infinite;
}

.loader-glow-ring:nth-child(1) { width: 180px; height: 180px; animation-delay: 0s; }
.ring-2 { width: 210px; height: 210px; animation-delay: 0.5s; }
.ring-3 { width: 240px; height: 240px; animation-delay: 1s; }

@keyframes ringPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* Loader text */
.loader-text-block {
  text-align: center;
  color: var(--white);
}

.loader-school-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.loader-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  font-style: italic;
  margin-bottom: 24px;
}

.loader-progress {
  width: 280px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 99px;
  overflow: hidden;
  margin: 0 auto 16px;
}

.loader-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 99px;
  animation: progressFill 2.5s ease-in-out forwards;
}

@keyframes progressFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

.loader-arabic {
  font-family: var(--font-arabic);
  font-size: 18px;
  color: rgba(201,168,76,0.8);
  direction: rtl;
}

/* Particles */
.loader-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* ══════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(27,67,50,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(201,168,76,0.5);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

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

.nav-brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
}

.nav-brand-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 99px;
  transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 60%;
}

.nav-cta {
  background: var(--gold);
  color: var(--green-deep) !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
}

.nav-cta::after { display: none; }

.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 99px;
  transition: var(--transition-fast);
}

.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0D2B1E 0%, #1B4332 40%, #2D6A4F 70%, #1B4332 100%);
}

.hero-geometric-overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(64,145,108,0.15) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(201,168,76,0.06) 0%, transparent 40%);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      60deg,
      transparent,
      transparent 80px,
      rgba(201,168,76,0.02) 80px,
      rgba(201,168,76,0.02) 81px
    );
}

.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-star {
  position: absolute;
  color: var(--gold);
  opacity: 0;
  animation: starTwinkle ease-in-out infinite;
  font-size: 12px;
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.6; transform: scale(1); }
}

.hero-islamic-border {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}

.hero-islamic-border.top { top: 0; }
.hero-islamic-border.bottom { bottom: 0; }

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 99px;
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-arabic-title {
  margin-bottom: 20px;
}

.arabic-display {
  font-size: clamp(20px, 3vw, 28px);
  color: rgba(201,168,76,0.85);
  letter-spacing: 2px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-title-line {
  display: block;
}

.hero-title-line.accent {
  color: var(--gold-light);
  font-style: italic;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 26px);
  color: rgba(255,255,255,0.9);
  font-style: italic;
  margin-bottom: 16px;
  font-weight: 400;
}

.hero-tagline em {
  color: var(--gold-light);
  font-style: normal;
  font-weight: 600;
}

.hero-sub {
  font-size: clamp(14px, 1.8vw, 17px);
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-md);
  padding: 20px 32px;
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(201,168,76,0.3);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--green-deep);
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.5);
}

.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,0.5);
}

.btn-outline:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn:hover .btn-shine { left: 150%; }

/* Hero ornaments */
.hero-ornament {
  position: absolute;
  color: rgba(201,168,76,0.15);
  font-size: 80px;
  pointer-events: none;
  animation: ornamentFloat ease-in-out infinite;
}

.ornament-1 { top: 15%; left: 5%; animation-duration: 8s; }
.ornament-2 { top: 25%; right: 6%; animation-duration: 10s; animation-delay: 2s; }
.ornament-3 { bottom: 20%; left: 8%; animation-duration: 9s; animation-delay: 1s; }
.ornament-4 { bottom: 30%; right: 5%; animation-duration: 11s; animation-delay: 3s; }

@keyframes ornamentFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 99px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ══════════════════════════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-light);
  background: var(--green-pale);
  padding: 6px 18px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-ornament {
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 8px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Islamic section divider */
.islamic-section-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--green-light), var(--gold), transparent);
  margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════ */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

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

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(201,168,76,0.05) 0, rgba(201,168,76,0.05) 1px, transparent 0, transparent 50%),
    repeating-linear-gradient(-45deg, rgba(201,168,76,0.05) 0, rgba(201,168,76,0.05) 1px, transparent 0, transparent 50%);
  background-size: 30px 30px;
}

.about-img-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.about-img-inner i {
  font-size: 64px;
  color: var(--gold-light);
  opacity: 0.8;
}

.about-img-inner span {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--gold-light);
}

.about-img-sub {
  font-size: 14px !important;
  color: rgba(255,255,255,0.6) !important;
  font-family: var(--font-body) !important;
}

.about-img-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: var(--green-deep);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
  z-index: 2;
}

.badge-year { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.badge-num { font-family: var(--font-display); font-size: 22px; line-height: 1; }

.about-img-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--gold);
  border-style: solid;
  z-index: 3;
}

.about-img-corner.tl { top: -8px; left: -8px; border-width: 3px 0 0 3px; border-radius: 4px 0 0 0; }
.about-img-corner.tr { top: -8px; right: -8px; border-width: 3px 3px 0 0; border-radius: 0 4px 0 0; }
.about-img-corner.bl { bottom: -8px; left: -8px; border-width: 0 0 3px 3px; border-radius: 0 0 0 4px; }
.about-img-corner.br { bottom: -8px; right: -8px; border-width: 0 3px 3px 0; border-radius: 0 0 4px 0; }

.about-arabic-quote {
  background: linear-gradient(135deg, var(--green-pale), var(--gold-pale));
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.about-arabic-quote .arabic-text {
  display: block;
  font-size: 22px;
  color: var(--green-deep);
  margin-bottom: 6px;
  text-align: right;
}

.arabic-translation {
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
}

.about-intro {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-body {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 32px;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.pillar-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.pillar-card:hover {
  background: var(--green-pale);
  border-color: var(--green-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pillar-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 16px;
  flex-shrink: 0;
}

.pillar-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 4px;
}

.pillar-text p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}

.about-info-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-mid);
}

.info-item i {
  color: var(--green-light);
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
}

/* ══════════════════════════════════════════════════════════
   VISION & MISSION
══════════════════════════════════════════════════════════ */
.vision-mission {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.vm-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(27,67,50,0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(201,168,76,0.06) 0%, transparent 40%);
  pointer-events: none;
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.vm-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.vm-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.vm-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.vm-icon-wrap {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(27,67,50,0.3);
}

.mission-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--green-deep) !important;
}

.vm-arabic {
  font-family: var(--font-arabic);
  font-size: 16px;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
  direction: rtl;
}

.vm-card-label h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--green-deep);
}

.vm-card-body {
  position: relative;
}

.vm-quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--green-pale);
  line-height: 0.5;
  margin-bottom: 8px;
  display: block;
}

.vm-quote-mark.close {
  text-align: right;
  margin-top: 8px;
  margin-bottom: 0;
}

.vm-text {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.9;
  font-style: italic;
}

.vm-card-footer {
  margin-top: 24px;
}

.vm-star-row {
  display: flex;
  gap: 8px;
  color: var(--gold);
  font-size: 14px;
}

.mission-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mission-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
}

.mission-bullet {
  color: var(--gold);
  font-size: 12px;
  margin-top: 4px;
  flex-shrink: 0;
}

.vm-card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(27,67,50,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.mission-glow {
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
}

/* ══════════════════════════════════════════════════════════
   GENERAL SECRETARY
══════════════════════════════════════════════════════════ */
.secretary {
  background: linear-gradient(135deg, var(--green-deep) 0%, #0D2B1E 100%);
  position: relative;
  overflow: hidden;
}

.secretary .section-title { color: var(--gold-light); }
.secretary .section-label { background: rgba(201,168,76,0.15); color: var(--gold-light); }
.secretary .section-ornament { color: var(--gold); }

.secretary-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.secretary-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.secretary-card-bg {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(201,168,76,0.02) 0, rgba(201,168,76,0.02) 1px, transparent 0, transparent 50%),
    repeating-linear-gradient(-45deg, rgba(201,168,76,0.02) 0, rgba(201,168,76,0.02) 1px, transparent 0, transparent 50%);
  background-size: 30px 30px;
}

.secretary-geometric-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}

.secretary-geometric-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}

.secretary-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.secretary-photo-frame {
  position: relative;
  width: 220px;
  height: 220px;
}

.secretary-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--gold);
  box-shadow: 0 0 40px rgba(201,168,76,0.3);
  position: relative;
  z-index: 2;
}

.photo-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.3);
  animation: ringRotate linear infinite;
}

.ring-outer { width: 260px; height: 260px; animation-duration: 20s; }
.ring-inner { width: 240px; height: 240px; animation-duration: 15s; animation-direction: reverse; }

@keyframes ringRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.photo-ornament {
  position: absolute;
  color: var(--gold);
  font-size: 14px;
  z-index: 3;
}

.photo-ornament.top-left { top: 10px; left: 10px; }
.photo-ornament.top-right { top: 10px; right: 10px; }
.photo-ornament.bottom-left { bottom: 10px; left: 10px; }
.photo-ornament.bottom-right { bottom: 10px; right: 10px; }

.secretary-badge-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--green-deep);
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.secretary-info-col {
  position: relative;
  z-index: 1;
}

.secretary-arabic-header {
  margin-bottom: 12px;
}

.secretary-arabic-header .arabic-text {
  font-size: 20px;
  color: rgba(201,168,76,0.7);
  direction: rtl;
}

.secretary-name {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 4px;
}

.secretary-name-sub {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: 16px;
}

.secretary-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold-light);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.secretary-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--gold);
  font-size: 12px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.secretary-message {
  position: relative;
  padding: 0;
  margin-bottom: 24px;
}

.quote-icon {
  font-family: var(--font-display);
  font-size: 60px;
  color: rgba(201,168,76,0.3);
  line-height: 0.5;
  display: block;
  margin-bottom: 8px;
}

.quote-icon.close {
  text-align: right;
  margin-top: 8px;
  margin-bottom: 0;
}

.secretary-message p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  line-height: 1.9;
  font-style: italic;
}

.secretary-qualities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quality-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.quality-tag:hover {
  background: rgba(201,168,76,0.2);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════
   FACILITIES
══════════════════════════════════════════════════════════ */
.facilities {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.facilities-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(27,67,50,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.facility-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

.facility-card:hover {
  background: var(--white);
  border-color: var(--green-light);
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.facility-card:hover .facility-card-glow {
  opacity: 1;
}

.facility-icon-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}

.facility-icon-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-pale), var(--gold-pale));
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.facility-card:hover .facility-icon-bg {
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
}

.facility-icon-wrap i {
  position: relative;
  z-index: 1;
  font-size: 26px;
  color: var(--green-deep);
  line-height: 64px;
  transition: var(--transition);
}

.facility-card:hover .facility-icon-wrap i {
  color: var(--gold-light);
}

.facility-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 8px;
  line-height: 1.3;
}

.facility-card p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
}

.facility-card-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-light), var(--gold));
  opacity: 0;
  transition: var(--transition);
}

/* ══════════════════════════════════════════════════════════
   ADMISSION
══════════════════════════════════════════════════════════ */
.admission {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.admission-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 0% 100%, rgba(27,67,50,0.06) 0%, transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(201,168,76,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.admission-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.admission-info-card {
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.admission-info-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 14px;
}

.admission-info-header i {
  font-size: 28px;
  color: var(--gold-light);
}

.admission-info-header h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

.admission-info-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.adm-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.adm-info-item i {
  color: var(--gold-light);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.adm-info-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.adm-info-item span {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.admission-info-arabic {
  padding: 20px 28px 28px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.admission-info-arabic .arabic-text {
  display: block;
  font-size: 20px;
  color: var(--gold-light);
  margin-bottom: 6px;
  direction: rtl;
}

.arabic-trans {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-style: italic;
}

/* Form */
.admission-form-col {
  position: relative;
}

.admission-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.form-header-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 22px;
  margin: 0 auto 16px;
}

.form-header h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 4px;
}

.form-header p {
  font-size: 13px;
  color: var(--text-light);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-deep);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group label i {
  color: var(--green-light);
  font-size: 12px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid rgba(27,67,50,0.15);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--cream);
  transition: var(--transition-fast);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-light);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(64,145,108,0.1);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 16px;
}

/* Success */
.form-success {
  display: none;
  text-align: center;
  padding: 60px 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-success.visible { display: block; }

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
  color: var(--gold-light);
  box-shadow: 0 8px 30px rgba(27,67,50,0.3);
}

.success-arabic {
  margin-bottom: 16px;
}

.success-arabic .arabic-text {
  font-size: 24px;
  color: var(--gold);
  direction: rtl;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--green-deep);
  margin-bottom: 12px;
}

.form-success p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 24px;
}

.success-contact .btn-secondary {
  background: var(--green-deep);
  color: var(--white);
  border-color: var(--green-deep);
}

/* ══════════════════════════════════════════════════════════
   GALLERY
══════════════════════════════════════════════════════════ */
.gallery { background: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.gallery-large {
  grid-column: span 2;
}

.gallery-img-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.gallery-large .gallery-img-wrap {
  height: 340px;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-img-wrap img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,67,50,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
}

.gallery-overlay-content i {
  color: var(--gold-light);
  font-size: 18px;
}

/* ══════════════════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════════════════ */
.testimonials {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.testimonials-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(27,67,50,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(201,168,76,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.testimonials-track-wrapper {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card {
  min-width: calc(33.333% - 16px);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  flex-shrink: 0;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}

.testimonial-quote-icon {
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--green-pale);
  line-height: 0.6;
  margin-bottom: 16px;
  display: block;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-info {
  flex: 1;
}

.testimonial-info strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--green-deep);
}

.testimonial-info span {
  font-size: 12px;
  color: var(--text-light);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 12px;
  display: flex;
  gap: 2px;
}

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.testi-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--green-deep);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  cursor: pointer;
}

.testi-btn:hover {
  background: var(--green-deep);
  color: var(--gold-light);
  border-color: var(--green-deep);
}

.testi-dots {
  display: flex;
  gap: 8px;
}

.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition-fast);
}

.testi-dot.active {
  background: var(--green-deep);
  width: 24px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════
   MAP
══════════════════════════════════════════════════════════ */
.map-section { background: var(--white); }

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.map-info-strip {
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  padding: 24px 32px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.map-info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex: 1;
  min-width: 200px;
}

.map-info-item i {
  color: var(--gold-light);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.map-info-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.map-info-item span {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.map-embed-frame {
  width: 100%;
  overflow: hidden;
}

.map-embed-frame iframe {
  display: block;
}

.map-directions-btn {
  background: var(--cream);
  padding: 20px 32px;
  display: flex;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer {
  background: var(--green-deep);
  color: var(--white);
  position: relative;
}

.footer-top-pattern {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}

.footer-main {
  padding: 72px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.footer-logo-wrap {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.footer-school-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
  line-height: 1.3;
}

.footer-tagline-text {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.6;
}

.footer-arabic {
  margin-bottom: 20px;
}

.footer-arabic .arabic-text {
  font-size: 16px;
  color: rgba(201,168,76,0.7);
  direction: rtl;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--gold);
  color: var(--green-deep);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.whatsapp-social:hover {
  background: #25D366;
  border-color: #25D366;
  color: var(--white);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: var(--transition-fast);
}

.footer-links a i {
  font-size: 10px;
  color: var(--gold);
}

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

.footer-admission-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold-light);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  margin-top: 20px;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: badgePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.footer-contact-item i {
  color: var(--gold-light);
  font-size: 15px;
  margin-top: 1px;
  flex-shrink: 0;
  width: 16px;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition-fast);
}

.footer-contact-item a:hover {
  color: var(--gold-light);
}

.footer-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.footer-whatsapp-btn:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.footer-bottom-arabic {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.arabic-text.small {
  font-size: 14px;
  color: rgba(201,168,76,0.6);
  direction: rtl;
}

.arabic-trans-small {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════
   FLOATING WHATSAPP
══════════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0;
}

.whatsapp-float-inner {
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition-fast);
  position: relative;
  z-index: 2;
}

.whatsapp-float:hover .whatsapp-float-inner {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background: var(--green-deep);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition-fast);
  pointer-events: none;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: var(--green-deep);
}

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

.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,0.4);
  animation: whatsappPulse 2.5s ease-out infinite;
}

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

/* ══════════════════════════════════════════════════════════
   BACK TO TOP
══════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 998;
  width: 44px;
  height: 44px;
  background: var(--green-deep);
  color: var(--gold-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(201,168,76,0.3);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--green-deep);
  transform: translateY(-3px);
}

/* ══════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
══════════════════════════════════════════════════════════ */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

[data-delay="0"] { transition-delay: 0s; }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }
[data-delay="6"] { transition-delay: 0.48s; }
[data-delay="7"] { transition-delay: 0.56s; }
[data-delay="8"] { transition-delay: 0.64s; }
[data-delay="9"] { transition-delay: 0.72s; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .facilities-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .secretary-card { grid-template-columns: 240px 1fr; gap: 40px; padding: 40px; }
  .secretary-photo { width: 180px; height: 180px; }
  .secretary-photo-frame { width: 180px; height: 180px; }
  .ring-outer { width: 220px; height: 220px; }
  .ring-inner { width: 200px; height: 200px; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .vm-grid { grid-template-columns: 1fr; }
  .admission-wrapper { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-large { grid-column: span 2; }
  .testimonial-card { min-width: calc(50% - 12px); }
  .facilities-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-stats { gap: 0; }
  .hero-stat { padding: 0 16px; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .section-pad { padding: 72px 0; }

  /* Nav */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--green-deep);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 40px;
    gap: 4px;
    transition: right 0.4s ease;
    box-shadow: -4px 0 30px rgba(0,0,0,0.3);
    z-index: 999;
  }

  .nav-links.open { right: 0; }
  .nav-link { width: 100%; padding: 12px 16px; font-size: 16px; }
  .nav-hamburger { display: flex; z-index: 1000; }

  /* Hero */
  .hero-stats { flex-wrap: wrap; gap: 16px; padding: 16px; }
  .hero-stat { padding: 0 12px; }
  .hero-stat-divider { display: none; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-ornament { display: none; }

  /* Secretary */
  .secretary-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
    text-align: center;
  }
  .secretary-photo-col { align-items: center; }
  .secretary-info-col { text-align: left; }
  .secretary-arabic-header { text-align: center; }

  /* Facilities */
  .facilities-grid { grid-template-columns: repeat(2, 1fr); }

  /* Admission */
  .form-grid { grid-template-columns: 1fr; }
  .admission-form { padding: 28px 20px; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-large { grid-column: span 1; }

  /* Testimonials */
  .testimonial-card { min-width: 100%; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-bottom-arabic { align-items: center; }

  /* Map */
  .map-info-strip { flex-direction: column; gap: 16px; }

  /* About pillars */
  .about-pillars { grid-template-columns: 1fr; }

  /* Loader */
  .logo-3d-scene { width: 120px; height: 120px; }
  .cube-face { width: 120px; height: 120px; }
  .cube-front, .cube-back { transform: translateZ(60px); }
  .cube-left { transform: rotateY(-90deg) translateZ(60px); }
  .cube-right { transform: rotateY(90deg) translateZ(60px); }
  .cube-top { transform: rotateX(90deg) translateZ(60px); }
  .cube-bottom { transform: rotateX(-90deg) translateZ(60px); }
  .loader-logo-img { width: 90px; height: 90px; }
  .loader-glow-ring:nth-child(1) { width: 140px; height: 140px; }
  .ring-2 { width: 165px; height: 165px; }
  .ring-3 { width: 190px; height: 190px; }
  .logo-3d-wrapper { width: 160px; height: 160px; }
}

@media (max-width: 480px) {
  .facilities-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 36px; }
  .section-title { font-size: 28px; }
  .secretary-name { font-size: 28px; }
  .vm-card { padding: 28px 20px; }
  .loader-school-name { font-size: 18px; }
  .loader-progress { width: 220px; }
}