/* ============================================================
ISDP – Intensive Software Development Program
Jamia Ashrafia, Lahore, Pakistan
Master Stylesheet | Version 2.0 - Blue Theme (Fixed)
Deployment: Cloudflare Pages / GitHub Pages
============================================================ */
/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

/* ── CSS Custom Properties (Design Tokens) ── */
:root {
  /* Blue Theme Colors (Logo Match) */
  --blue: #00AEEF;
  --blue-dark: #0077B6;
  --blue-mid: #0096C7;
  --blue-light: #48CAE4;
  --blue-glow: rgba(0, 174, 239, 0.25);

  /* Green Accent Colors — used throughout all page-specific styles */
  --green: #0B4F2E;
  --green-dark: #073520;
  --green-mid: #156B3F;
  --green-light: #1E8A52;
  --green-glow: rgba(11, 79, 46, 0.25);

  /* Vibrant Amber / Warm Orange Colors */
  --gold: #FF9F1C;
  --gold-light: #FFB347;
  --gold-dark: #F77F00;
  --gold-glow: rgba(255, 159, 28, 0.25);

  /* Base Colors */
  --off-white: #F9F9F9;
  --white: #FFFFFF;
  --navy: #0D1B2A;
  /* Deep Midnight Navy for modern features */
  --text-dark: #1A1A2E;
  --text-mid: #3D3D5C;
  --text-light: #6B6B8A;

  /* Glass & Shadows */
  --glass-bg: rgba(0, 174, 239, 0.15);
  --glass-border: rgba(255, 159, 28, 0.25);
  --shadow-sm: 0 2px 8px rgba(0, 174, 239, 0.12);
  --shadow-md: 0 8px 32px rgba(0, 174, 239, 0.18);
  --shadow-lg: 0 20px 60px rgba(0, 174, 239, 0.25);
  --shadow-glow: 0 0 30px rgba(0, 174, 239, 0.4);
  --shadow-gold: 0 0 20px rgba(255, 159, 28, 0.3);

  /* Radii & Transitions */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-en: 'Poppins', 'Inter', sans-serif;
  --font-ar: 'Noto Naskh Arabic', serif;
  --nav-h: 72px;
}

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

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

body {
  font-family: var(--font-en);
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.rtl {
  direction: rtl;
  font-family: var(--font-ar);
}

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

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

ul {
  list-style: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--blue-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

::selection {
  background: var(--gold);
  color: var(--blue-dark);
}

@media print {
  body {
    opacity: 0.999;
    text-rendering: geometricPrecision;
  }
}

/* ============================================================
NAVIGATION
============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 5%;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition), border-bottom var(--transition);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(0, 31, 51, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 159, 28, 0.2);
}

#navbar.transparent {
  background: rgba(0, 20, 40, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.isdp-nav-logo {
  height: 48px;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
  display: block;
  mix-blend-mode: screen;
  filter: brightness(1.1);
  transition: transform var(--transition);
}

.isdp-nav-logo:hover {
  transform: scale(1.02);
}

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

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 4px;
  display: flex;
  gap: 2px;
  cursor: pointer;
}

.lang-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.65);
  transition: all var(--transition);
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-en);
}

.lang-btn.active {
  background: var(--gold);
  color: var(--blue-dark);
}

.btn-nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--blue-dark) !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 9px 20px !important;
  border-radius: 20px !important;
  transition: transform var(--transition), box-shadow var(--transition) !important;
  box-shadow: 0 4px 15px rgba(255, 159, 28, 0.35);
}

.btn-nav-cta::after {
  display: none !important;
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 159, 28, 0.5) !important;
  color: var(--blue-dark) !important;
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(0, 119, 182, 0.97);
  backdrop-filter: blur(20px);
  padding: 24px 5%;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-20px);
  opacity: 0;
  transition: all var(--transition);
}

.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(255, 159, 28, 0.12);
  transition: all var(--transition);
}

.mobile-menu a:hover {
  color: var(--gold);
  background: rgba(255, 159, 28, 0.08);
}

.mobile-lang {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  margin-top: 8px;
}

/* ============================================================
BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: var(--font-en);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--blue-dark);
  box-shadow: 0 4px 20px rgba(255, 159, 28, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(255, 159, 28, 0.55);
  color: var(--blue-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

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

.btn-blue {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 119, 182, 0.35);
}

.btn-blue:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(0, 119, 182, 0.5);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.82rem;
}

/* ============================================================
SECTION LAYOUT
============================================================ */
section {
  padding: 100px 5%;
  position: relative;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 159, 28, 0.12);
  border: 1px solid rgba(255, 159, 28, 0.3);
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--blue);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-title span {
  color: var(--gold-dark);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 580px;
  line-height: 1.8;
}

.section-center {
  text-align: center;
}

.section-center .section-desc {
  margin: 0 auto;
}

.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin-bottom: 24px;
}

.divider.center {
  margin: 0 auto 24px;
}

/* ============================================================
HERO
============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  overflow: hidden;
  background: linear-gradient(135deg, #0077B6 0%, #0096C7 45%, #00AEEF 100%);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.7;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding-top: var(--nav-h);
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 159, 28, 0.18);
  border: 1px solid rgba(255, 159, 28, 0.4);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 20px;
  margin-bottom: 28px;
}

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

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.hero-title .line-gold {
  color: var(--gold);
  display: block;
}

.hero-title .line-sm {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
  display: block;
  margin-top: 6px;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat .num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.hero-stat .lbl {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  margin-top: 2px;
}

.hero-stat .sep {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
}

.hero-3d {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 480px;
}

#three-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.hero-card-float {
  position: absolute;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 159, 28, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  animation: float-card 4s ease-in-out infinite;
}

.hero-card-float:nth-child(2) {
  animation-delay: -1.5s;
  top: 10%;
  right: 5%;
}

.hero-card-float:nth-child(3) {
  animation-delay: -3s;
  bottom: 20%;
  left: 0%;
}

.hero-card-float:nth-child(4) {
  animation-delay: -0.7s;
  top: 50%;
  right: -5%;
}

.hero-card-float .card-icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.hero-card-float .card-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
}

@keyframes float-card {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 159, 28, 0.5);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 3px;
  height: 6px;
  background: var(--gold);
  border-radius: 2px;
  animation: scroll-anim 1.8s ease-in-out infinite;
}

@keyframes scroll-anim {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}

/* ============================================================
MARQUEE / TICKER
============================================================ */
.marquee-wrap {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-dark);
  padding: 0 24px;
  letter-spacing: 0.05em;
}

.marquee-track span::before {
  content: '⬡ ';
  opacity: 0.6;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ============================================================
ABOUT PREVIEW / MISSION CARDS
============================================================ */
#mission {
  background: var(--white);
}

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

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

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

.mission-img-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(0, 119, 182, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 159, 28, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  color: var(--white);
}

.mission-img-badge .num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
}

.mission-img-badge .txt {
  font-size: 0.78rem;
  opacity: 0.8;
}

.mission-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.pillar-card {
  background: var(--off-white);
  border: 1px solid rgba(0, 174, 239, 0.1);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  transition: all var(--transition);
  cursor: default;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 159, 28, 0.4);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--gold);
}

.pillar-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
}

.pillar-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================================
STATS BAND
============================================================ */
#stats-band {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 64px 5%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  color: var(--white);
}

.stat-item .stat-num {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .stat-lbl {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

/* ============================================================
PROGRAM PREVIEW
============================================================ */
#curriculum {
  background: var(--off-white);
}

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

.cur-card {
  background: var(--white);
  border: 1px solid rgba(0, 174, 239, 0.09);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.cur-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

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

.cur-card:hover::before {
  transform: scaleX(1);
}

.cur-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.08), rgba(0, 174, 239, 0.15));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: transform var(--transition);
}

.cur-card:hover .cur-icon {
  transform: scale(1.1) rotate(-5deg);
}

.cur-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}

.cur-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.cur-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cur-tag {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(0, 174, 239, 0.07);
  color: var(--blue-mid);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 174, 239, 0.12);
}

/* ============================================================
ALUMNI PREVIEW
============================================================ */
#alumni-preview {
  background: var(--white);
}

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.alumni-card {
  background: var(--off-white);
  border: 1px solid rgba(0, 174, 239, 0.09);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  display: flex;
  gap: 20px;
  transition: all var(--transition);
}

.alumni-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 159, 28, 0.3);
}

.alumni-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  color: var(--gold);
  font-weight: 800;
}

.alumni-info {
  flex: 1;
}

.alumni-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 3px;
}

.alumni-info .role {
  font-size: 0.8rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.alumni-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 174, 239, 0.07);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
  color: var(--blue-mid);
  font-weight: 600;
  margin-top: 10px;
}

/* ============================================================
ADMISSIONS TIMELINE
============================================================ */
#admissions-preview {
  background: linear-gradient(180deg, var(--blue-dark), #005f8a);
}

.timeline {
  display: flex;
  gap: 0;
  margin-top: 56px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
}

.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--blue-dark);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px rgba(255, 159, 28, 0.2);
}

.timeline-step h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.timeline-step p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 160px;
}

/* ============================================================
CTA BANNER
============================================================ */
#cta-banner {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-dark));
  padding: 80px 5%;
  text-align: center;
}

#cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--blue-dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

#cta-banner p {
  font-size: 1.05rem;
  color: rgba(0, 119, 182, 0.75);
  max-width: 520px;
  margin: 0 auto 36px;
}

/* ============================================================
FOOTER
============================================================ */
footer {
  background: var(--blue-dark);
  padding: 70px 5% 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
}

.footer-brand .sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--gold);
  color: var(--blue-dark);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.footer-col h5 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

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

.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.footer-contact-item .icon {
  color: var(--gold);
  font-size: 0.9rem;
  margin-top: 2px;
}

.footer-contact-item p,
.footer-contact-item a {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  transition: color var(--transition);
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: var(--gold);
}

/* ============================================================
PAGE HERO (Inner Pages)
============================================================ */
.page-hero {
  min-height: 380px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 40px) 5% 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FF9F1C' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}

.page-hero .breadcrumb a {
  color: var(--gold);
  transition: opacity var(--transition);
}

.page-hero .breadcrumb a:hover {
  opacity: 0.8;
}

.page-hero .breadcrumb .sep {
  opacity: 0.4;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.page-hero h1 span {
  color: var(--gold);
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
  line-height: 1.75;
}

/* ============================================================
CARDS, FORMS, ACCORDION, BADGES
============================================================ */
.card {
  background: var(--white);
  border: 1px solid rgba(0, 174, 239, 0.09);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

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

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(0, 174, 239, 0.18);
  border-radius: var(--radius-sm);
  font-family: var(--font-en);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}

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

.accordion-item {
  border: 1px solid rgba(0, 174, 239, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--white);
  transition: background var(--transition);
}

.accordion-header:hover {
  background: rgba(0, 174, 239, 0.03);
}

.accordion-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
}

.accordion-arrow {
  color: var(--gold-dark);
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.accordion-item.open .accordion-arrow {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: rgba(0, 174, 239, 0.02);
}

.accordion-item.open .accordion-body {
  max-height: 400px;
}

.accordion-body-inner {
  padding: 0 24px 24px;
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.8;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-gold {
  background: rgba(255, 159, 28, 0.15);
  color: var(--gold-dark);
}

.badge-blue {
  background: rgba(0, 174, 239, 0.1);
  color: var(--blue-mid);
}

.badge-red {
  background: rgba(200, 60, 60, 0.1);
  color: #c03c3c;
}

/* ============================================================
SCROLL REVEAL BASE STATES
(GSAP animates these from hidden → visible. Defaults ensure
 content is always shown if JS/GSAP fails to load.)
============================================================ */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 1;           /* visible by default (no-JS fallback) */
  transform: none;
  will-change: opacity, transform;
}

/* ============================================================
BUTTON VARIANTS
============================================================ */
.btn-green {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(11, 79, 46, 0.35);
}

.btn-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(11, 79, 46, 0.55);
  color: var(--white);
}

/* ============================================================
UTILITIES & RESPONSIVE
============================================================ */
.text-gold {
  color: var(--gold);
}

.text-blue {
  color: var(--blue);
}

.text-white {
  color: var(--white);
}

.text-muted {
  color: var(--text-light);
}

.font-heavy {
  font-weight: 800;
}

.mt-4 {
  margin-top: 16px;
}

.mt-8 {
  margin-top: 32px;
}

.mt-12 {
  margin-top: 48px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-8 {
  margin-bottom: 32px;
}

.gap-2 {
  gap: 8px;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

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

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-3d {
    display: none;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .curriculum-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .timeline {
    flex-direction: column;
    gap: 32px;
  }

  .timeline::before {
    display: none;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  section {
    padding: 72px 5%;
  }

  .nav-links,
  .btn-nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

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

  .hero-stats {
    gap: 20px;
  }

  .alumni-grid,
  .curriculum-grid,
  .mission-pillars,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .alumni-card {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
RTL OVERRIDES
============================================================ */
body.rtl .hero-content {
  text-align: right;
}

body.rtl .hero-actions {
  justify-content: flex-end;
}

body.rtl .divider {
  margin-left: 0;
}

body.rtl .section-desc {
  margin-right: 0;
}

body.rtl .footer-brand {
  text-align: right;
}

body.rtl .social-links {
  justify-content: flex-end;
}

body.rtl .footer-contact-item {
  flex-direction: row-reverse;
}

body.rtl .hero-badge {
  flex-direction: row-reverse;
}

body.rtl .timeline {
  flex-direction: row-reverse;
}

body.rtl .timeline::before {
  left: auto;
  right: calc(12.5% + 28px);
}

body.rtl .cur-card {
  text-align: right;
}

body.rtl .cur-tags {
  justify-content: flex-end;
}

body.rtl .alumni-card {
  flex-direction: row-reverse;
  text-align: right;
}

body.rtl .nav-inner,
body.rtl .nav-links,
body.rtl .nav-actions,
body.rtl .footer-bottom,
body.rtl .breadcrumb,
body.rtl .accordion-header {
  flex-direction: row-reverse;
}

/* ============================================================
INSTITUTIONAL AFFILIATION BANNER
============================================================ */
.institutional-banner {
  background-color: var(--white);
  padding: 40px 5%;
  border-top: 1px solid rgba(0, 174, 239, 0.08);
  text-align: center;
}

.institutional-banner .inst-logo {
  max-width: 160px;
  height: auto;
  margin: 0 auto 16px;
  display: block;
  transition: transform var(--transition);
}

.institutional-banner .inst-logo:hover {
  transform: scale(1.05);
}

.institutional-banner .inst-text {
  font-size: 0.95rem;
  color: var(--text-mid);
  font-weight: 600;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
FEATURE 2: CUSTOM CURSOR & PAGE LOADER
============================================================ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--blue);
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(0, 174, 239, 0.5);
  transition: transform 0.15s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
}

@media (hover: none) and (pointer: coarse) {

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

#page-loader {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  font-family: 'Poppins', sans-serif;
}

.loader-bar-container {
  width: 150px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border-radius: 10px;
  animation: loadProgress 1.2s ease-in-out forwards;
}

@keyframes loadProgress {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

/* ============================================================
FEATURE 3: GRADIENT TEXT & GLOW EFFECTS
============================================================ */
.section-title span,
.page-hero h1 span,
.hero-title .line-gold,
.mission-title span,
.about_purpose_title span,
.about_home_title span {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.cur-card:hover,
.alumni-card:hover,
.pillar-card:hover,
.card:hover,
.accordion-item.open {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 0 25px var(--blue-glow) !important;
  border-color: var(--blue) !important;
}

.btn-primary:hover,
.btn-blue:hover,
.btn-nav-cta:hover,
.btn-outline:hover {
  box-shadow: 0 10px 30px var(--blue-glow), 0 0 15px var(--gold-glow) !important;
  transform: translateY(-3px);
}

/* ============================================================
FEATURE 4: BUTTON RIPPLE & SCROLL REVEAL
============================================================ */
.btn {
  position: relative !important;
  overflow: hidden !important;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ============================================================
FEATURE 6: MODERN FAQ ACCORDION UPGRADE
============================================================ */
.accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: var(--radius-md) !important;
  margin-bottom: 12px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  background: var(--white);
}

.accordion-item.open {
  border-color: var(--blue) !important;
  box-shadow: 0 4px 20px rgba(0, 174, 239, 0.15) !important;
}

.accordion-header {
  padding: 20px 24px !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
  background: transparent !important;
}

.accordion-header:hover {
  background: rgba(0, 174, 239, 0.03) !important;
}

.accordion-item.open .accordion-header h4 {
  color: var(--blue) !important;
}

.accordion-arrow {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: var(--off-white) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.8rem !important;
  color: var(--text-light) !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  flex-shrink: 0;
}

.accordion-item.open .accordion-arrow {
  background: var(--blue) !important;
  color: #fff !important;
  transform: rotate(180deg) !important;
}

.accordion-body {
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background: rgba(0, 174, 239, 0.02) !important;
}

.accordion-body-inner {
  padding: 0 24px 24px 24px !important;
  font-size: 0.92rem !important;
  color: var(--text-mid) !important;
  line-height: 1.8 !important;
}

/* ============================================================
FEATURE 7: SCROLL PROGRESS BAR & BACK TO TOP
============================================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  z-index: 10001;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(0, 174, 239, 0.5);
}

#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 174, 239, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
}

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

#back-to-top:hover {
  background: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255, 159, 28, 0.5);
}

@media (max-width: 480px) {
  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* ============================================================
FEATURE 8: 3D TILT EFFECT & PARALLAX
============================================================ */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0) rotateY(0) scale3d(1, 1, 1);
}

.tilt-card:hover {
  box-shadow: 0 20px 40px rgba(0, 174, 239, 0.25), 0 0 20px var(--blue-glow) !important;
  border-color: var(--blue) !important;
}

.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 768px) {
  .tilt-card {
    transform: none !important;
  }
}

/* ============================================================
FEATURE 9: MAGNETIC BUTTONS & SPOTLIGHT EFFECT
============================================================ */
.btn {
  position: relative !important;
  overflow: hidden !important;
  transform: translate(0, 0) !important;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease !important;
}

.btn-spotlight {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(80px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.3), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.btn:hover .btn-spotlight {
  opacity: 1;
}

.btn>*:not(.btn-spotlight) {
  position: relative;
  z-index: 2;
}

/* ============================================================
FEATURE 9: MOBILE MENU SLIDE-IN & BACKDROP BLUR
============================================================ */
@media (max-width: 768px) {
  .mobile-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 85% !important;
    max-width: 320px !important;
    height: 100vh !important;
    transform: translateX(100%) !important;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: column !important;
    padding-top: 80px !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    background: rgba(13, 27, 42, 0.95) !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3) !important;
  }

  .mobile-menu.open {
    transform: translateX(0) !important;
  }
}

#mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
FEATURE 10: INTERACTIVE SPOTLIGHT BORDER (EDGE GLOW)
============================================================ */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--blue), transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

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

.spotlight-card>* {
  position: relative;
  z-index: 2;
}

/* ============================================================
FEATURE 11: ANIMATED CONIC GRADIENT BORDERS (SPINNING BORDER)
============================================================ */
.gradient-border-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--white);
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gradient-border-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: conic-gradient(from 0deg, transparent 0%, var(--blue) 25%, var(--gold) 50%, transparent 75%);
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: -2;
  animation: spin-border 3s linear infinite paused;
}

.gradient-border-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: inherit;
  border-radius: calc(var(--radius-lg) - 2px);
  z-index: -1;
}

.gradient-border-card:hover::before {
  animation-play-state: running;
}

.gradient-border-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

@keyframes spin-border {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ============================================================
FEATURE 12: PREMIUM CLIP-PATH REVEALS
(Default is fully visible — clip only triggers when .clip-reveal
 is explicitly added by JS and IntersectionObserver fires)
============================================================ */
.clip-reveal {
  /* Start fully visible — JS-driven reveal is an enhancement only */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1) !important;
  will-change: clip-path;
}

.clip-reveal.visible {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.clip-reveal img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
FEATURE 13: TEXT SCRAMBLE / DECODE EFFECT
============================================================ */
.scramble-char {
  color: var(--blue-light);
  opacity: 0.8;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 0.05em;
}

.nav-link,
.footer-link {
  min-width: fit-content;
  display: inline-block;
}

/* ============================================================
FEATURE 14: MOUSE-TRACKING "SPOTLIGHT" GRID BACKGROUND
============================================================ */
.spotlight-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: transparent;
  background-image: linear-gradient(rgba(0, 174, 239, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 174, 239, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(circle 300px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(circle 300px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@media (hover: none) and (pointer: coarse) {
  .spotlight-grid {
    display: none !important;
  }
}

/* ============================================================
   RTL SUPPORT — Urdu (اردو) Layout Overrides
   Triggered when main.js sets:  document.documentElement.dir = 'rtl'
   ============================================================ */

/* ── Typography ── */
[dir="rtl"] body {
  font-family: var(--font-ar), var(--font-en), sans-serif;
  text-align: right;
}

/* ══════════════════════════════════════════════════════
   NAVBAR — explicit order approach for reliable RTL flip
   English:  [Logo]  [Nav Links]  [Lang + Apply]
   Urdu RTL: [Lang + Apply]  [Nav Links]  [Logo]
   ══════════════════════════════════════════════════════ */

/* 1. Reverse the main flex row */
[dir="rtl"] #navbar .nav-inner {
  flex-direction: row-reverse !important;
}

/* 2. Logo → visual RIGHT (order: 3 = last in flex row) */
[dir="rtl"] #navbar .nav-logo {
  order: 3 !important;
}

/* 3. Nav links → visual CENTRE */
[dir="rtl"] #navbar ul.nav-links {
  order: 2 !important;
  flex-direction: row-reverse !important;
}

/* 4. Actions (lang toggle + Apply button) → visual LEFT */
[dir="rtl"] #navbar .nav-actions {
  order: 1 !important;
  flex-direction: row-reverse !important;
}

/* Lang toggle pill */
[dir="rtl"] .lang-btn {
  font-family: var(--font-ar), var(--font-en), sans-serif;
}

/* Mobile menu: align links to the right, stack RTL */
[dir="rtl"] .mobile-menu {
  text-align: right;
  right: auto;
  left: 0;
  transform: translateX(-100%);
}
[dir="rtl"] .mobile-menu.open {
  transform: translateX(0);
}
[dir="rtl"] .mobile-lang {
  flex-direction: row-reverse;
}

/* ── General layout reversals ── */
[dir="rtl"] .grid-2,
[dir="rtl"] .mission-grid {
  direction: rtl;
}

/* Flex rows that have icon + text should flip */
[dir="rtl"] .section-tag {
  flex-direction: row-reverse;
}

[dir="rtl"] .divider {
  margin-left: auto;
  margin-right: 0;
}
[dir="rtl"] .divider.center {
  margin-left: auto;
  margin-right: auto;
}

/* Section text alignment */
[dir="rtl"] .section-desc,
[dir="rtl"] .section-title,
[dir="rtl"] h1, [dir="rtl"] h2,
[dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] p {
  text-align: right;
}

[dir="rtl"] .section-center,
[dir="rtl"] .section-center .section-title,
[dir="rtl"] .section-center .section-desc {
  text-align: center;
}

/* ── Hero section ── */
[dir="rtl"] .hero-inner {
  text-align: right;
}
[dir="rtl"] .hero-btns {
  flex-direction: row-reverse;
  justify-content: flex-start;
}
[dir="rtl"] .hero-stats {
  flex-direction: row-reverse;
}
[dir="rtl"] .stat-divider {
  margin: 0 16px;
}

/* ── Buttons with icons ── */
[dir="rtl"] .btn {
  flex-direction: row-reverse;
}

/* ── Feature strip ── */
[dir="rtl"] .feature-strip {
  direction: rtl;
}
[dir="rtl"] .feature-item {
  flex-direction: column;
  align-items: flex-end;
}

/* ── Cards — icon + text combos ── */
[dir="rtl"] .pillar-card,
[dir="rtl"] .cur-card,
[dir="rtl"] .alumni-card,
[dir="rtl"] .feature-card {
  text-align: right;
}

/* ── Footer ── */
[dir="rtl"] .footer-grid {
  direction: rtl;
}
[dir="rtl"] .footer-brand,
[dir="rtl"] .footer-col {
  text-align: right;
}
[dir="rtl"] .footer-col ul {
  padding-left: 0;
  padding-right: 0;
}
[dir="rtl"] .footer-contact-item {
  flex-direction: row-reverse;
}
[dir="rtl"] .footer-bottom {
  flex-direction: row-reverse;
}

/* ── Social links ── */
[dir="rtl"] .social-links {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

/* ── Breadcrumb ── */
[dir="rtl"] .breadcrumb {
  flex-direction: row-reverse;
}

/* ── Accordion ── */
[dir="rtl"] .accordion-header {
  flex-direction: row-reverse;
}

/* ── Form labels / inputs ── */
[dir="rtl"] .form-group label {
  text-align: right;
  display: block;
}
[dir="rtl"] .form-group input,
[dir="rtl"] .form-group select,
[dir="rtl"] .form-group textarea {
  text-align: right;
  direction: rtl;
}

/* ── Institutional banner ── */
[dir="rtl"] .institutional-banner .container {
  flex-direction: row-reverse;
}

/* ── Stat items ── */
[dir="rtl"] .stat-item {
  text-align: right;
}

/* ── Timeline ── */
[dir="rtl"] .timeline-v {
  padding-left: 0;
  padding-right: 48px;
}
[dir="rtl"] .timeline-v::before {
  left: auto;
  right: 20px;
}
[dir="rtl"] .tl-dot {
  left: auto;
  right: -36px;
}

/* ── Step cards connector arrow ── */
[dir="rtl"] .step-card:not(:last-child)::after {
  content: '←';
  right: auto;
  left: -14px;
}

/* ── Roadmap ── */
[dir="rtl"] .roadmap::before {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

/* ── Page hero ── */
[dir="rtl"] .page-hero {
  text-align: right;
}
[dir="rtl"] .page-hero .container {
  align-items: flex-end;
}

/* Smooth transition when switching direction */
html {
  transition: direction 0s;
}