/* ============================================================
   مدرسہ مصباح العلوم — Main Design System CSS
   RTL | Urdu-first | Premium Islamic Design
   ============================================================ */

/* Jameel Noori Nastaleeq - woff2 format (from Taleemi) */
@font-face {
  font-family: 'Jameel Noori Nastaleeq';
  src: url('../fonts/jameel-noori-nastaleeq4.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'JameelNooriNastaleeq';
  src: url('../fonts/jameel-noori-nastaleeq4.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;500;600;700&family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  /* Brand Colors */
  --c-green:        #176B45;
  --c-green-dark:   #176B45;
  --c-green-light:  #176B45;
  --c-maroon:       #8F1731;
  --c-maroon-dark:  #6e1127;
  --c-gold:         #C79A3B;
  --c-gold-light:   #e0b85c;
  --c-cream:        #FAF7F0;
  --c-cream-dark:   #f0ead8;
  --c-white:        #ffffff;
  --c-text:         #252525;
  --c-text-light:   #555555;
  --c-text-muted:   #888888;
  --c-border:       #e8e0d0;
  --c-shadow:       rgba(23,107,69,0.12);

  /* Typography */
  --font-urdu-heading: 'Jameel Noori Nastaleeq', 'JameelNooriNastaleeq', 'Noto Nastaliq Urdu', serif;
  --font-urdu-body:    'Jameel Noori Nastaleeq', 'JameelNooriNastaleeq', 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', serif;
  --font-urdu:         'Jameel Noori Nastaleeq', 'JameelNooriNastaleeq', 'Noto Nastaliq Urdu', serif;
  --font-latin:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-py: 80px;
  --section-py-sm: 50px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-btn: 8px; /* Reusable button border radius across entire site */

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --shadow-green: 0 4px 20px var(--c-shadow);
}

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

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

html.wf-loading body { opacity: 0; }

body {
  font-family: var(--font-urdu-body);
  background: var(--c-cream);
  color: var(--c-text);
  line-height: 1.8;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  transition: opacity 0.12s ease-in;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-urdu-heading);
  line-height: 1.5;
  color: var(--c-text);
  font-weight: 700;
}

.heading-xl { font-size: clamp(2rem, 5vw, 3.5rem); }
.heading-lg { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
.heading-md { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
.heading-sm { font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* ── LAYOUT ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-py { padding: var(--section-py) 0; }
.section-py-sm { padding: var(--section-py-sm) 0; }

/* ── SECTION TITLE ──────────────────────────────────────────── */
.section-title-wrap {
  text-align: center;
  margin-bottom: 56px;
}

.section-title-wrap .label {
  display: inline-block;
  font-family: var(--font-urdu-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--c-gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title-wrap h2 {
  font-family: var(--font-urdu-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--c-text);
  margin-bottom: 16px;
  line-height: 1.4;
}

.section-title-wrap p {
  font-size: 1.05rem;
  color: var(--c-text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.9;
}

.title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 24px;
}

.title-divider::before,
.title-divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--c-gold);
  opacity: 0.5;
}

.title-divider .diamond {
  width: 10px;
  height: 10px;
  background: var(--c-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── HEADER ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
  transition: var(--transition);
}

.header-logo:hover {
  opacity: 0.95;
}

.header-logo-img {
  height: 64px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.header-logo:hover .header-logo-img {
  transform: translateZ(0) scale(1.025);
  opacity: 0.96;
}

.mobile-drawer-brand {
  margin-bottom: 20px;
  text-align: center;
}

.mobile-drawer-logo {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
}

.logo-emblem {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  max-width: 52px;
  max-height: 52px;
  aspect-ratio: 1 / 1;
  background: var(--c-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-urdu-heading);
  font-size: 1.4rem;
  color: var(--c-green-dark);
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(199,154,59,0.35);
  transition: var(--transition);
}

.logo-text .name {
  display: block;
  font-family: var(--font-urdu-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-green-dark);
  line-height: 1.3;
}

.logo-text .sub {
  display: block;
  font-family: var(--font-urdu-body);
  font-size: 0.8rem;
  color: var(--c-text-light);
  line-height: 1.3;
}

/* Nav */
.header-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-urdu-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
  background: rgba(23,107,69,0.08);
  color: var(--c-green);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-whatsapp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #176B45;
  color: #ffffff;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(23, 107, 69, 0.25);
  cursor: pointer;
}

.btn-whatsapp-header:hover {
  background: #125737;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(23, 107, 69, 0.4);
}

/* Outline Language Toggle Button */
.btn-lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: transparent;
  color: var(--c-green);
  border: 1.5px solid var(--c-green);
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
}

.btn-lang-toggle:hover {
  background: var(--c-green);
  color: #ffffff;
  border-color: var(--c-green);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 107, 69, 0.25);
}

.btn-lang-toggle i {
  font-size: 1.05rem;
  transition: transform 0.2s ease;
}

.btn-lang-toggle:hover i {
  transform: rotate(-10deg);
}

.btn-lang-toggle span {
  letter-spacing: 0.3px;
  font-family: inherit;
}

/* Mobile Drawer Language Button */
.mobile-nav-lang {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(199, 154, 59, 0.4) !important;
  color: var(--c-gold) !important;
  font-weight: 700;
  border-radius: var(--radius-btn) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mobile-nav-lang:hover {
  background: var(--c-gold) !important;
  color: var(--c-green-dark) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--c-green-dark);
  border-radius: 4px;
  transition: var(--transition);
}

/* Mobile Nav Backdrop Overlay */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 21, 32, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Mobile Nav (Half Screen, Midnight Navy Blue) */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  width: 65%;
  min-width: 270px;
  max-width: 350px;
  background: radial-gradient(circle at 85% 15%, rgba(199, 154, 59, 0.14) 0%, transparent 50%),
              linear-gradient(155deg, #151D2A 0%, #0E1520 100%);
  border-right: 1px solid rgba(199, 154, 59, 0.28);
  box-shadow: none;
  z-index: 2000;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  padding: 55px 18px 30px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.38s ease, box-shadow 0.38s ease;
}

.mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
  box-shadow: 12px 0 45px rgba(0, 0, 0, 0.75);
}

.mobile-nav a {
  font-family: var(--font-urdu-heading);
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.92);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-align: right;
  width: 100%;
  display: block;
  border-right: 3px solid transparent;
}

html[dir="ltr"] .mobile-nav a {
  text-align: left;
  border-right: none;
  border-left: 3px solid transparent;
  font-family: var(--font-latin);
  font-size: 1.05rem;
}

.mobile-nav a:hover,
.mobile-nav a.mobile-nav-link-active {
  background: rgba(199, 154, 59, 0.14);
  color: var(--c-gold-light);
  border-color: var(--c-gold);
}

.mobile-nav-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: var(--transition);
}

.mobile-nav-close:hover {
  background: rgba(199, 154, 59, 0.35);
  border-color: var(--c-gold);
  color: var(--c-gold-light);
}

/* ── HERO SLIDER ─────────────────────────────────────────────── */
.hero-section {
  position: relative;
  width: 100%;
  height: clamp(360px, 46vw, 580px);
  overflow: hidden;
  background: #111;
}

.hero-slides {
  position: relative;
  height: 100%;
  width: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  overflow: hidden;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide picture,
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay,
.hero-content {
  display: none !important;
}

/* Hero Navigation & Dots */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.42);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-arrow:hover {
  background: var(--c-green);
  border-color: var(--c-green);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.hero-arrow-prev {
  right: 24px;
}

.hero-arrow-next {
  left: 24px;
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 16px;
  border-radius: 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  padding: 0;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

.hero-dot.active {
  width: 26px;
  border-radius: 6px;
  background: var(--c-gold);
  box-shadow: 0 0 10px rgba(199, 154, 59, 0.5);
}

/* On Mobile: Hide Navigation Arrows completely, keep only Dots */
@media (max-width: 768px) {
  .hero-arrow {
    display: none !important;
  }
  .hero-dots {
    bottom: 14px;
  }
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font-urdu-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--c-gold);
  color: var(--c-green-dark);
  border-color: var(--c-gold);
}

.btn-primary:hover {
  background: var(--c-gold-light);
  border-color: var(--c-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(199,154,59,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--c-white);
}

.btn-green {
  background: var(--c-green);
  color: var(--c-white);
  border-color: var(--c-green);
}

.btn-green:hover {
  background: var(--c-green-dark);
  border-color: var(--c-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.btn-maroon {
  background: var(--c-maroon);
  color: var(--c-white);
  border-color: var(--c-maroon);
}

.btn-maroon:hover {
  background: var(--c-maroon-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(143,23,49,0.4);
}

/* ── STATISTICS & INSTITUTION OVERVIEW SECTION ──────────────── */
.stats-section {
  background: radial-gradient(circle at 18% 22%, rgba(199, 154, 59, 0.1) 0%, transparent 45%),
              radial-gradient(circle at 82% 78%, rgba(23, 107, 69, 0.12) 0%, transparent 45%),
              linear-gradient(145deg, #151D2A 0%, #0E1520 100%);
  padding: 85px 0 95px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(199, 154, 59, 0.2);
  border-bottom: 1px solid rgba(199, 154, 59, 0.2);
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.stats-section .section-title-wrap {
  position: relative;
  z-index: 2;
  margin-bottom: 52px;
}

.stats-section .section-title-wrap .label {
  color: var(--c-gold);
  letter-spacing: 1px;
}

.stats-section .section-title-wrap h2 {
  color: #FFFFFF;
}

.stats-section .title-divider::before,
.stats-section .title-divider::after {
  background: rgba(199, 154, 59, 0.35);
}

.stats-section .title-divider .diamond {
  background: var(--c-gold);
}

.stats-section .section-title-wrap p {
  color: rgba(255, 255, 255, 0.78);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.stat-card {
  text-align: right;
  padding: 32px 26px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-gold), rgba(199, 154, 59, 0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(199, 154, 59, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.stat-card:hover::after {
  opacity: 1;
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(199, 154, 59, 0.12);
  border: 1px solid rgba(199, 154, 59, 0.28);
  color: var(--c-gold);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.08);
  background: var(--c-gold);
  color: #151D2A;
  border-color: var(--c-gold);
  box-shadow: 0 0 0 5px rgba(199, 154, 59, 0.25);
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  direction: ltr;
}

.stat-number {
  font-family: var(--font-latin);
  font-size: clamp(2.3rem, 3.2vw, 2.9rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
  letter-spacing: -0.5px;
}

.stat-number.urdu-year {
  font-family: var(--font-urdu-heading);
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  color: #FFFFFF;
  direction: rtl;
}

.stat-title {
  font-family: var(--font-urdu-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.stat-card:hover .stat-title {
  color: var(--c-gold);
}

.stat-desc {
  font-family: var(--font-urdu-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  margin: 0;
}

/* ── INTRODUCTION SECTION ────────────────────────────────────── */
.intro-section {
  background: var(--c-cream);
  padding: var(--section-py) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro-image-wrap {
  position: relative;
}

.intro-image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.intro-image-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--c-gold);
  color: var(--c-green-dark);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.intro-image-badge .num {
  display: block;
  font-family: var(--font-latin);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.intro-image-badge .txt {
  display: block;
  font-family: var(--font-urdu-heading);
  font-size: 0.85rem;
  margin-top: 4px;
}

.intro-content .section-title-wrap {
  text-align: right;
  margin-bottom: 28px;
}

.intro-content .title-divider {
  justify-content: flex-start;
}

.intro-content .title-divider::before {
  display: none;
}

.intro-content p {
  color: var(--c-text-light);
  line-height: 2;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

/* ── MISSION SECTION ─────────────────────────────────────────── */
.mission-section {
  background: var(--c-white);
  padding: var(--section-py) 0;
}

.mission-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.mission-card {
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--c-border);
  background: var(--c-cream);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.mission-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--c-green), var(--c-green-dark));
  opacity: 0;
  transition: var(--transition);
}

.mission-card:hover::before {
  opacity: 1;
}

.mission-card:hover .mission-icon,
.mission-card:hover h3,
.mission-card:hover p {
  position: relative;
  z-index: 1;
  color: white;
}

.mission-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--c-green), var(--c-green-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: white;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.mission-card:hover .mission-icon {
  background: rgba(255,255,255,0.2);
  color: var(--c-gold);
  transform: scale(1.05);
}

.mission-card h3 {
  font-family: var(--font-urdu-heading);
  font-size: 1.15rem;
  margin-bottom: 10px;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.mission-card p {
  font-size: 0.9rem;
  color: var(--c-text-light);
  line-height: 1.8;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

/* ── EDUCATION SECTION ───────────────────────────────────────── */
.education-section {
  background: var(--c-cream);
  padding: var(--section-py) 0;
}

.education-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.education-levels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.edu-level {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--c-white);
  border-radius: var(--radius-md);
  border-right: 4px solid var(--c-green);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.edu-level:hover {
  transform: translateX(-4px);
  box-shadow: var(--shadow-md);
  border-right-color: var(--c-gold);
}

.edu-level-num {
  width: 44px;
  height: 44px;
  background: var(--c-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.edu-level-text h4 {
  font-family: var(--font-urdu-heading);
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.edu-level-text p {
  font-size: 0.88rem;
  color: var(--c-text-light);
}

/* ── DEPARTMENTS SECTION ─────────────────────────────────────── */
.departments-section {
  background: var(--c-white);
  padding: var(--section-py) 0;
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dept-card {
  background: var(--c-cream);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--c-border);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.dept-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-gold), var(--c-green));
  transform: scaleX(0);
  transition: var(--transition);
}

.dept-card:hover::after {
  transform: scaleX(1);
}

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

.dept-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(23,107,69,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
  color: var(--c-green);
  transition: var(--transition);
}

.dept-card:hover .dept-icon {
  background: var(--c-green);
  color: white;
  transform: scale(1.08);
}

.dept-card h3 {
  font-family: var(--font-urdu-heading);
  font-size: 1.2rem;
  color: var(--c-green-dark);
  margin-bottom: 10px;
}

.dept-card p {
  font-size: 0.9rem;
  color: var(--c-text-light);
  line-height: 1.8;
}

/* ── TEACHERS SECTION ────────────────────────────────────────── */
.teachers-section {
  background: var(--c-cream);
  padding: var(--section-py) 0;
}

.teachers-carousel-wrap {
  position: relative;
  overflow: hidden;
}

.teachers-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 12px 4px 40px;
  cursor: grab;
}

.teachers-carousel::-webkit-scrollbar { display: none; }
.teachers-carousel.grabbing { cursor: grabbing; }

.teacher-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  transition: var(--transition);
  cursor: pointer;
}

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

.teacher-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  background: var(--c-cream-dark);
}

.teacher-photo-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--c-green) 0%, var(--c-green-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-urdu-heading);
  font-size: 2.5rem;
  color: rgba(255,255,255,0.5);
}

.teacher-info {
  padding: 18px 16px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.teacher-name {
  font-family: var(--font-urdu-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-green-dark);
  margin-bottom: 4px;
  line-height: 1.5;
  text-align: center;
  width: 100%;
}

.teacher-designation {
  font-size: 0.85rem;
  color: var(--c-maroon);
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
  width: 100%;
}

.teacher-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  text-align: center;
  width: 100%;
}

.carousel-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.carousel-nav button {
  width: 44px;
  height: 44px;
  background: var(--c-white);
  border: 2px solid var(--c-green);
  border-radius: 50%;
  color: var(--c-green);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.carousel-nav button:hover {
  background: var(--c-green);
  color: white;
}

/* Teacher Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.teacher-modal {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(14, 21, 32, 0.45);
  transform: translateY(20px) scale(0.96);
  transition: var(--transition);
  border: 1px solid rgba(199, 154, 59, 0.28);
}

.modal-backdrop.open .teacher-modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  background: radial-gradient(circle at 15% 20%, rgba(199, 154, 59, 0.14) 0%, transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(23, 107, 69, 0.15) 0%, transparent 45%),
              linear-gradient(145deg, #151D2A 0%, #0E1520 100%);
  border-bottom: 2px solid var(--c-gold);
  padding: 28px 32px;
  display: flex;
  gap: 20px;
  align-items: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 5;
}

.modal-close:hover {
  background: rgba(199, 154, 59, 0.35);
  border-color: var(--c-gold);
  color: var(--c-gold-light);
  transform: scale(1.08);
}

html[dir="ltr"] .modal-close {
  left: auto;
  right: 16px;
}

.modal-photo-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid var(--c-gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
  background: var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.modal-photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #0E1520;
}

.modal-name {
  font-family: var(--font-urdu-heading);
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  line-height: 1.4;
}

.modal-desig {
  font-size: 0.92rem;
  color: var(--c-gold-light);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.modal-body {
  padding: 24px 32px;
  background: #ffffff;
}

.modal-info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f0ede6;
}

.modal-info-row:last-child {
  border-bottom: none;
}

.modal-info-label {
  font-weight: 700;
  color: #151D2A;
  min-width: 85px;
  font-size: 0.92rem;
}

.modal-info-value {
  font-size: 0.95rem;
  color: var(--c-text);
  line-height: 1.6;
}

/* ── HISTORY SECTION ─────────────────────────────────────────── */
.history-section {
  background: radial-gradient(circle at 15% 20%, rgba(199, 154, 59, 0.09) 0%, transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(23, 107, 69, 0.12) 0%, transparent 45%),
              linear-gradient(145deg, #151D2A 0%, #0E1520 100%);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(199, 154, 59, 0.2);
  border-bottom: 1px solid rgba(199, 154, 59, 0.2);
}

.history-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.history-section .section-title-wrap {
  position: relative;
  z-index: 2;
}

.history-section .section-title-wrap .label {
  color: var(--c-gold);
  letter-spacing: 1px;
}

.history-section .section-title-wrap h2 {
  color: var(--c-white);
}

.history-section .section-title-wrap p {
  color: rgba(255, 255, 255, 0.78);
}

.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.history-timeline::before {
  content: '';
  position: absolute;
  right: 23px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--c-gold), rgba(199, 154, 59, 0.2));
}

.timeline-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
}

.timeline-dot {
  width: 48px;
  height: 48px;
  background: var(--c-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 0.88rem;
  color: #151D2A;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 5px rgba(199, 154, 59, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.1);
  box-shadow: 0 0 0 8px rgba(199, 154, 59, 0.35);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  flex: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.timeline-item:hover .timeline-content {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(199, 154, 59, 0.4);
  transform: translateX(-4px);
}

.timeline-year {
  font-family: var(--font-latin);
  font-size: 0.88rem;
  color: var(--c-gold);
  font-weight: 700;
  margin-bottom: 6px;
  display: inline-block;
  letter-spacing: 0.5px;
}

.timeline-content h3 {
  font-family: var(--font-urdu-heading);
  font-size: 1.25rem;
  color: var(--c-white);
  margin-bottom: 8px;
  line-height: 1.4;
}

.timeline-content p {
  font-family: var(--font-urdu-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin: 0;
}

/* ── PRESIDENTS & SECRETARIES ────────────────────────────────── */
.presidents-section {
  background: var(--c-white);
  padding: var(--section-py) 0;
}

.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--c-cream);
  padding: 6px;
  border-radius: var(--radius-btn);
  margin-bottom: 48px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  flex: 1;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font-urdu-heading);
  font-size: 1rem;
  cursor: pointer;
  background: transparent;
  color: var(--c-text-light);
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--c-green);
  color: white;
  box-shadow: 0 4px 14px rgba(23,107,69,0.35);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.persons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.person-card {
  background: var(--c-cream);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--c-border);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}

.person-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-green);
}

.person-num {
  width: 38px;
  height: 38px;
  background: var(--c-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.person-details h4 {
  font-family: var(--font-urdu-heading);
  font-size: 0.98rem;
  color: var(--c-green-dark);
  margin-bottom: 4px;
  line-height: 1.5;
}

.person-details span {
  font-size: 0.83rem;
  color: var(--c-text-muted);
}

/* ── GALLERY SECTION ─────────────────────────────────────────── */
.gallery-section {
  background: var(--c-cream);
  padding: var(--section-py) 0;
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--c-cream-dark);
}

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

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

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

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

.gallery-overlay span {
  color: white;
  font-family: var(--font-urdu-body);
  font-size: 0.88rem;
}

.gallery-cta {
  text-align: center;
  margin-top: 40px;
}

/* ── PUBLIC GALLERY PAGE & HERO ─────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--c-green) 0%, #125737 100%);
  color: white;
  padding: 50px 16px 40px;
  text-align: center;
  position: relative;
}

.page-hero h1 {
  font-family: var(--font-urdu-heading);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-urdu-body);
  font-size: 1rem;
  opacity: 0.9;
}

.page-hero .breadcrumb a {
  color: white;
  text-decoration: none;
}

.page-hero .breadcrumb a:hover {
  text-decoration: underline;
}

.page-hero .breadcrumb i {
  font-size: 0.75rem;
}

.gallery-main {
  padding-top: 6px;
}

/* Swipeable Filter Ribbon on Mobile */
.gallery-filter-wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 14px 16px;
  margin: 14px 0 20px;
  justify-content: flex-start;
}

.gallery-filter-wrap::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  flex-shrink: 0;
  white-space: nowrap;
  background: white;
  color: var(--c-green);
  border: 1.5px solid var(--c-green);
  padding: 6px 18px;
  border-radius: var(--radius-btn);
  font-family: var(--font-urdu-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--c-green);
  color: white;
  box-shadow: 0 3px 10px rgba(23,107,69,0.25);
}

/* Responsive Public Gallery Grid */
.public-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 50px;
  padding: 0;
}

@media (min-width: 520px) {
  .public-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 768px) {
  .gallery-filter-wrap {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 0;
    margin: 28px 0 24px;
  }
  .filter-btn {
    padding: 8px 22px;
    font-size: 1.05rem;
  }
  .page-hero {
    padding: 60px 20px 50px;
  }
  .page-hero h1 {
    font-size: 2.8rem;
  }
  .public-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1100px) {
  .public-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }
}

/* Public Gallery Image Card */
.pg-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e9ecef;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pg-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}

.pg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.pg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,64,40,0.9) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  transition: opacity 0.2s ease;
}

@media (hover: hover) {
  .pg-overlay { opacity: 0; }
  .pg-item:hover .pg-overlay { opacity: 1; }
  .pg-item:hover img { transform: scale(1.05); }
}

@media (hover: none) {
  .pg-overlay { opacity: 1; }
}

.pg-title {
  color: white;
  font-family: var(--font-urdu-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.pg-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--c-gold);
  color: #151D2A;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 4px;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-dialog {
  text-align: center;
  max-width: 94vw;
  max-height: 88vh;
}

.lightbox-img {
  max-width: 94vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  color: white;
  font-family: var(--font-urdu-body);
  font-size: 1.15rem;
  margin-top: 10px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.18);
  border: none;
  color: white;
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3010;
  line-height: 1;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.35);
}

/* Gallery & Nav Utilities */
.mobile-nav-link-active {
  color: var(--c-gold) !important;
  font-weight: 700 !important;
}

.mobile-nav-whatsapp {
  color: #ffffff !important;
  background: #125737 !important;
  border-radius: var(--radius-btn) !important;
  margin-top: 10px !important;
}

.footer-bank-btn {
  font-size: 0.85rem !important;
  padding: 8px 18px !important;
}

/* ── DONATION SECTION ────────────────────────────────────────── */
.donation-section {
  background: linear-gradient(135deg, var(--c-maroon-dark) 0%, var(--c-maroon) 100%);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}

.donation-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.donation-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.donation-text h2 {
  font-family: var(--font-urdu-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--c-white);
  margin-bottom: 16px;
}

.donation-text p {
  color: rgba(255,255,255,0.8);
  line-height: 2;
  font-size: 1.02rem;
}

.bank-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(10px);
}

.bank-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.bank-icon {
  width: 50px;
  height: 50px;
  background: var(--c-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--c-green-dark);
}

.bank-name {
  font-family: var(--font-urdu-heading);
  font-size: 1.2rem;
  color: white;
  font-weight: 700;
}

.bank-row {
  margin-bottom: 16px;
}

.bank-row label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
  font-family: var(--font-urdu-body);
}

.bank-value-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.bank-value {
  flex: 1;
  color: white;
  font-family: var(--font-latin);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.copy-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
  white-space: nowrap;
}

.copy-btn:hover { background: var(--c-gold); color: var(--c-green-dark); }
.copy-btn.copied { background: #176B45; }

/* ── DAKHLA FORM SECTION ─────────────────────────────────────── */
.dakhla-section {
  background: var(--c-cream);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}

.dakhla-border-top,
.dakhla-border-bottom {
  position: absolute;
  right: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--c-green-dark), var(--c-gold), var(--c-maroon), var(--c-gold), var(--c-green-dark));
}

.dakhla-border-top { top: 0; }
.dakhla-border-bottom { bottom: 0; }

.dakhla-header {
  text-align: center;
  margin-bottom: 48px;
}

.dakhla-arabic-ornament {
  font-size: 2.5rem;
  margin-bottom: 8px;
  color: var(--c-gold);
  display: block;
}

.dakhla-header h2 {
  font-family: var(--font-urdu-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--c-green-dark);
  margin-bottom: 8px;
}

.dakhla-header p {
  font-family: var(--font-urdu-body);
  font-size: 1rem;
  color: var(--c-text-light);
  max-width: 500px;
  margin: 0 auto 20px;
}

.dakhla-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-green);
  color: white;
  padding: 10px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font-urdu-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.dakhla-print-btn:hover {
  background: var(--c-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.dakhla-forms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.dakhla-form-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border);
  transition: var(--transition);
}

.dakhla-form-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.dakhla-form-header {
  background: linear-gradient(135deg, var(--c-green-dark), var(--c-green));
  padding: 14px 20px;
  font-family: var(--font-urdu-heading);
  font-size: 1rem;
  color: white;
  text-align: center;
}

.dakhla-form-img {
  width: 100%;
  display: block;
  cursor: zoom-in;
  transition: transform 0.4s ease;
}

.dakhla-form-card:hover .dakhla-form-img {
  transform: scale(1.02);
}

/* ── CONTACT SECTION ─────────────────────────────────────────── */
.contact-section {
  background: var(--c-white);
  padding: var(--section-py) 0;
}

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

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--c-cream);
  border-radius: var(--radius-md);
  border-right: 3px solid var(--c-green);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateX(-4px);
  box-shadow: var(--shadow-sm);
}

.contact-item-icon {
  width: 46px;
  height: 46px;
  background: var(--c-green);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-text label {
  display: block;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin-bottom: 2px;
}

.contact-item-text a,
.contact-item-text span {
  font-size: 1rem;
  color: var(--c-text);
  font-weight: 500;
  line-height: 1.5;
}

.contact-item-text a:hover { color: var(--c-green); }

.whatsapp-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #176B45;
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 8px;
  justify-content: center;
  transition: var(--transition);
}

.whatsapp-cta:hover {
  background: #125737;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(23,107,69,0.4);
}

.contact-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 22px;
  border: 2px solid var(--c-green);
  color: var(--c-green);
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: .9rem;
  transition: var(--transition);
}

.contact-map-link:hover {
  background: var(--c-green);
  color: var(--c-white);
}

/* Contact Form */
.contact-form-card {
  background: var(--c-cream);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--c-border);
}

.contact-form-card h3 {
  font-family: var(--font-urdu-heading);
  font-size: 1.4rem;
  color: var(--c-green-dark);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-family: var(--font-urdu-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  font-family: var(--font-urdu-body);
  font-size: 0.95rem;
  color: var(--c-text);
  transition: var(--transition);
  direction: rtl;
}

.form-control:focus {
  outline: none;
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px rgba(23,107,69,0.1);
}

textarea.form-control { resize: vertical; min-height: 120px; }

.form-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 16px;
  font-family: var(--font-urdu-body);
}

.form-alert.success {
  background: rgba(23,107,69,0.1);
  border: 1px solid var(--c-green);
  color: var(--c-green-dark);
}

.form-alert.error {
  background: rgba(143,23,49,0.1);
  border: 1px solid var(--c-maroon);
  color: var(--c-maroon-dark);
}

/* Map */
.map-section {
  background: var(--c-white);
  padding: 0 0 75px;
}

.map-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--c-border);
  background: var(--c-cream);
  position: relative;
}

.map-iframe {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: radial-gradient(circle at 15% 20%, rgba(199, 154, 59, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(23, 107, 69, 0.12) 0%, transparent 45%),
              linear-gradient(145deg, #151D2A 0%, #0E1520 100%);
  color: rgba(255, 255, 255, 0.88);
  padding: 75px 0 0;
  position: relative;
  border-top: 1px solid rgba(199, 154, 59, 0.2);
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.15fr 1fr;
  gap: 48px;
  margin-bottom: 54px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-logo-link {
  display: inline-block;
  text-decoration: none;
  transition: var(--transition);
}

.footer-logo-img {
  height: 56px;
  width: auto;
  max-width: 235px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s ease;
}

.footer-logo-link:hover .footer-logo-img {
  transform: scale(1.03);
}

.footer-logo-emblem {
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  background: var(--c-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-urdu-heading);
  font-size: 1.5rem;
  color: #151D2A;
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(199, 154, 59, 0.22);
}

.footer-logo-text {
  font-family: var(--font-urdu-heading);
  font-size: 1.35rem;
  color: #FFFFFF;
  font-weight: 700;
  line-height: 1.3;
}

.footer-logo-sub {
  font-family: var(--font-urdu-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 3px;
}

.footer-desc,
.footer-brand p {
  font-family: var(--font-urdu-body);
  font-size: 1.05rem;
  line-height: 2.1;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 20px;
}

.footer-heading {
  font-family: var(--font-urdu-heading);
  font-size: 1.35rem;
  color: var(--c-gold);
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.footer-nav li {
  margin-bottom: 12px;
}

.footer-nav a {
  font-family: var(--font-urdu-body);
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-nav a i {
  font-size: 0.82rem;
  color: var(--c-gold);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-urdu-body);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.88);
  transition: var(--transition);
  font-size: 1.05rem;
}

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

.footer-contact-item .icon {
  color: var(--c-gold);
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 1.2rem;
}

.footer-bank-item {
  margin-bottom: 14px;
}

.footer-bank-item .bl {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  font-family: var(--font-urdu-body);
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.footer-bank-item .bv {
  color: #FFFFFF;
  font-family: var(--font-latin);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-donate-btn {
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  text-align: center;
  font-family: var(--font-urdu-body);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
}

/* ── BACK TO TOP ─────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  background: var(--c-green);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 500;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--c-green-dark);
  transform: translateY(-3px);
}

/* ── SCROLL ANIMATIONS ───────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── UTILITY ─────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-gold { color: var(--c-gold); }
.text-green { color: var(--c-green); }
.text-maroon { color: var(--c-maroon); }
.text-white { color: white; }
.bg-cream { background: var(--c-cream); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --section-py: 60px; }
  .header-nav { display: none; }
  .mobile-nav { display: flex; }

  /* Mobile Header Balanced 3-Point Layout */
  .header-inner {
    position: relative;
    height: 72px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Hamburger Menu Button (Left) */
  .hamburger {
    display: flex;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    padding: 6px;
  }

  /* Language Switcher Button (Right, Small & Compact) */
  .header-actions {
    display: flex;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    gap: 0;
  }

  .btn-lang-toggle {
    padding: 5px 9px;
    font-size: 0.78rem;
    gap: 4px;
    border-width: 1.5px;
    border-radius: 6px;
    white-space: nowrap;
  }

  .btn-lang-toggle i {
    font-size: 0.85rem;
  }

  /* Logo Truly Dead-Center on Mobile */
  .header-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-logo-img {
    height: 54px;
    width: auto;
    max-width: 195px;
    object-fit: contain;
    display: block;
    filter: none !important;
    -webkit-filter: none !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .intro-grid,
  .education-content,
  .donation-inner,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-content {
    order: 1;
    text-align: center;
  }
  .intro-content .section-title-wrap {
    text-align: center;
    margin-bottom: 24px;
  }
  .intro-content .title-divider {
    justify-content: center;
    margin: 14px auto 22px auto;
  }
  .intro-content .title-divider::before {
    display: block;
  }
  .intro-content p {
    text-align: center;
  }
  .intro-content .btn {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
  .intro-image-wrap {
    order: 2;
  }
  .intro-image-wrap img { height: 320px; }
  .mission-cards { grid-template-columns: repeat(2, 1fr); }
  .departments-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .dakhla-forms-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --section-py: 48px; }
  .header-inner {
    position: relative;
    height: 68px;
    padding: 6px 12px;
  }
  .hamburger {
    left: 10px;
    padding: 4px;
  }
  .header-actions {
    right: 10px;
  }
  .btn-lang-toggle {
    padding: 4px 8px;
    font-size: 0.74rem;
    gap: 4px;
    border-radius: 5px;
  }
  .btn-lang-toggle i {
    font-size: 0.8rem;
  }
  .header-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .header-logo-img {
    height: 52px;
    max-width: 180px;
    filter: none !important;
    -webkit-filter: none !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
  }
  .btn-whatsapp-header { padding: 6px 10px; font-size: 0.8rem; }
  .btn-whatsapp-header span { display: none; }
  .hamburger { padding: 6px 4px; }
  .stats-grid { grid-template-columns: 1fr; gap: 16px; }
  .stat-card { padding: 24px 20px; }
  .mission-cards { grid-template-columns: 1fr; }
  .departments-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-text { padding: 0 20px; }
  .teacher-card { flex: 0 0 220px; }
  .contact-form-card { padding: 24px; }
  .intro-image-badge { left: 10px; bottom: 10px; }
  .back-to-top { bottom: 20px; left: 20px; width: 42px; height: 42px; font-size: 1.1rem; }
  .history-timeline::before { right: 19px; }
  .timeline-item { gap: 14px; padding: 16px 0; }
  .timeline-dot { width: 40px; height: 40px; font-size: 0.8rem; }
  .timeline-content { padding: 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { transition: none; opacity: 1; transform: none; }
  .hero-slide img { transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── PRINT STYLES ────────────────────────────────────────────── */
@media print {
  .site-header, .hero-section, .stats-section, .back-to-top,
  .contact-section, .site-footer, .donation-section,
  .mission-section, .departments-section, .teachers-section,
  .history-section, .presidents-section, .gallery-section,
  .education-section, .intro-section { display: none !important; }

  .dakhla-section { display: block !important; padding: 0; }
  .dakhla-border-top, .dakhla-border-bottom { display: none; }
  .dakhla-print-btn { display: none; }
  .dakhla-forms-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .dakhla-header { margin-bottom: 24px; }
}

/* ── LTR & PHONE NUMBERS (Prevent number flipping in RTL) ─────── */
.phone-number,
[dir="ltr"],
a[href^="tel:"],
a[href^="mailto:"] {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
}

/* ── 404 / ERROR PAGE ────────────────────────────────────────── */
.error-page-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--c-cream);
  margin: 0;
  padding: 24px;
}

.error-card {
  text-align: center;
  padding: 48px 32px;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
  max-width: 480px;
  width: 100%;
}

.error-icon {
  font-size: 4rem;
  color: var(--c-gold);
  margin-bottom: 16px;
}

.error-title {
  font-family: var(--font-urdu-heading);
  font-size: 2.2rem;
  color: var(--c-green-dark);
  margin-bottom: 12px;
}

.error-desc {
  font-family: var(--font-urdu-body);
  color: var(--c-text-light);
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ============================================================
   BILINGUAL ENGLISH / LTR ADAPTATIONS
   ============================================================ */
html[dir="ltr"] body,
body.lang-en {
  direction: ltr;
  text-align: left;
  font-family: var(--font-latin);
  line-height: 1.65;
}

/* Typography Overrides in English */
html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] h4,
html[dir="ltr"] h5,
html[dir="ltr"] h6,
body.lang-en h1,
body.lang-en h2,
body.lang-en h3,
body.lang-en h4,
body.lang-en h5,
body.lang-en h6 {
  font-family: var(--font-latin);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

html[dir="ltr"] .logo-text .name,
html[dir="ltr"] .logo-text .sub,
html[dir="ltr"] .header-nav a,
html[dir="ltr"] .mobile-nav a,
html[dir="ltr"] .footer-logo-text,
html[dir="ltr"] .footer-logo-sub,
html[dir="ltr"] .footer-heading,
html[dir="ltr"] .footer-desc,
html[dir="ltr"] .footer-nav a,
html[dir="ltr"] .section-title-wrap .label,
html[dir="ltr"] .intro-content p,
html[dir="ltr"] .form-group label,
html[dir="ltr"] .form-control,
html[dir="ltr"] .btn-hero,
html[dir="ltr"] .teacher-name,
html[dir="ltr"] .dept-card h3,
html[dir="ltr"] .timeline-content h3,
html[dir="ltr"] .timeline-content p,
html[dir="ltr"] .error-title,
html[dir="ltr"] .error-desc,
html[dir="ltr"] .dakhla-header h2,
html[dir="ltr"] .dakhla-header p {
  font-family: var(--font-latin);
}

/* Form inputs align left in English */
html[dir="ltr"] .form-control {
  direction: ltr;
  text-align: left;
}

/* Section title alignments in English */
html[dir="ltr"] .intro-content .section-title-wrap {
  text-align: left;
}

html[dir="ltr"] .intro-content .title-divider {
  justify-content: flex-start;
}

/* Hero Section Slider Arrows in LTR */
html[dir="ltr"] .hero-arrow-prev {
  left: 24px;
  right: auto;
}
html[dir="ltr"] .hero-arrow-prev i {
  transform: rotate(180deg);
}

html[dir="ltr"] .hero-arrow-next {
  right: 24px;
  left: auto;
}
html[dir="ltr"] .hero-arrow-next i {
  transform: rotate(180deg);
}

/* History Timeline LTR */
html[dir="ltr"] .history-timeline::before {
  left: 23px;
  right: auto;
}

html[dir="ltr"] .timeline-item:hover .timeline-content {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  html[dir="ltr"] .history-timeline::before {
    left: 19px;
    right: auto;
  }
}

/* Back to Top button in LTR */
html[dir="ltr"] .back-to-top {
  right: 30px;
  left: auto;
}

@media (max-width: 640px) {
  html[dir="ltr"] .back-to-top {
    right: 20px;
    left: auto;
  }
}

