/* ============================================================
   ISDP – Intensive Software Development Program
   Jamia Ashrafia, Lahore, Pakistan
   Master Stylesheet | Version 2.0
   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 {
  --green: #0B4F2E;
  --green-dark: #073A21;
  --green-mid: #0E6638;
  --green-light: #1A7A45;
  --gold: #C8A165;
  --gold-light: #DDB97A;
  --gold-dark: #A8814A;
  --off-white: #F9F9F9;
  --white: #FFFFFF;
  --text-dark: #1A1A2E;
  --text-mid: #3D3D5C;
  --text-light: #6B6B8A;
  --glass-bg: rgba(11, 79, 46, 0.15);
  --glass-border: rgba(200, 161, 101, 0.25);
  --shadow-sm: 0 2px 8px rgba(11, 79, 46, 0.12);
  --shadow-md: 0 8px 32px rgba(11, 79, 46, 0.18);
  --shadow-lg: 0 20px 60px rgba(11, 79, 46, 0.25);
  --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);
}

/* CSS Upgrade: Intelligent Heading Wrapping */
h1, h2, h3, h4, h5, h6, .hero-title, .section-title {
  text-wrap: balance;
}

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(--green-dark);
}

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

/* ── Selection ── */
::selection {
  background: var(--gold);
  color: var(--green-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);
}

#navbar.scrolled {
  background: rgba(7, 58, 33, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.transparent {
  background: transparent;
}

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

/* Logo Blend Mode Hack */
.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;
  /* Mathematically erases black pixels */
  filter: brightness(1.1);
  /* Slight boost to make the green pop */
  transition: transform var(--transition);
}

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

/* Desktop Nav Links */
.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 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Toggle */
.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(--green-dark);
}

/* CTA Button */
.btn-nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--green-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(200, 161, 101, 0.35);
}

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

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 161, 101, 0.5) !important;
  color: var(--green-dark) !important;
}

/* Hamburger */
.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 */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(7, 58, 33, 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(200, 161, 101, 0.12);
  transition: all var(--transition);
}

.mobile-menu a:hover {
  color: var(--gold);
  background: rgba(200, 161, 101, 0.08);
}

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

/* ── Nav Dropdown ── */
/* Dropdown Menu UI Fixes */
.nav-links li.dropdown {
  position: relative;
}

.nav-links li.dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px; /* Ensures space between text and arrow */
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(7, 58, 33, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  min-width: 240px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(200, 161, 101, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  list-style: none;
  z-index: 1100;
}

.nav-links li.dropdown:hover .dropdown-menu,
.nav-links li.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  padding: 12px 24px !important; /* Fixes the cramped spacing */
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu li a::after {
  display: none !important; /* Hide the underline animation for dropdown links */
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background: rgba(200, 161, 101, 0.1);
  color: var(--gold) !important;
}

/* ── Mobile Sub-links (Admissions dropdown) ── */
.mobile-menu .mobile-dropdown-header {
  color: var(--gold-light);
  font-weight: 600;
}

.mobile-menu .mobile-sub-link {
  padding-left: 32px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(200, 161, 101, 0.07);
}

.mobile-menu .mobile-sub-link:hover {
  color: var(--gold);
  background: rgba(200, 161, 101, 0.08);
}

/* ============================================================
   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(--green-dark);
  box-shadow: 0 4px 20px rgba(200, 161, 101, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(200, 161, 101, 0.55);
  color: var(--green-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-green {
  background: linear-gradient(135deg, var(--green-mid), var(--green));
  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.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(200, 161, 101, 0.12);
  border: 1px solid rgba(200, 161, 101, 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(--green);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-title span {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold-dark); /* Fallback */
}

.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 ── */
.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;
  min-height: 100dvh; /* CSS Upgrade: Dynamic Viewport Height */
  display: flex;
  align-items: center;
  padding: 0 5%;
  overflow: hidden;
  background: linear-gradient(135deg, #073A21 0%, #0B4F2E 45%, #0E6638 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(200, 161, 101, 0.18);
  border: 1px solid rgba(200, 161, 101, 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 {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold); /* Fallback */
  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 {}

.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 Visual */
.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(200, 161, 101, 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 */
.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(200, 161, 101, 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(--green-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(7, 58, 33, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(200, 161, 101, 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(11, 79, 46, 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(200, 161, 101, 0.4);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--green), var(--green-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(--green);
  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(--green-dark), var(--green));
  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(auto-fit, minmax(300px, 1fr)); /* CSS Upgrade: Auto Grid */
  gap: 24px;
  margin-top: 48px;
}

.cur-card {
  background: var(--white);
  border: 1px solid rgba(11, 79, 46, 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(--green), 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(11, 79, 46, 0.08), rgba(11, 79, 46, 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(--green);
  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(11, 79, 46, 0.07);
  color: var(--green-mid);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(11, 79, 46, 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(11, 79, 46, 0.09);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: row;
  gap: 20px;
  transition: all var(--transition);
}

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

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

.alumni-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-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;
  min-width: 0;
}

.alumni-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  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;
}

.alumni-grad-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.alumni-grad-year i {
  font-size: 0.9rem;
}

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

/* Enterprise Video Wrapper Fixes */
.student-video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* Branded background for vertical videos */
  background: var(--green-dark) url('../assets/isdp-logo.png') center/40% no-repeat;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 24px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform var(--transition), box-shadow var(--transition);
}

.student-video-wrapper:hover {
  box-shadow: 0 6px 20px rgba(200,161,101,0.3);
}

.student-card-video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Prevents zooming/cropping of vertical videos */
  display: block;
}

.alumni-profile-card .student-video-wrapper {
  margin-bottom: 20px;
}

/* ============================================================
   ADMISSIONS TIMELINE
   ============================================================ */
#admissions-preview {
  background: linear-gradient(180deg, var(--green-dark), #0A3D24);
}

.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(--green-dark);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px rgba(200, 161, 101, 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(--green-dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

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

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--green-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 {}

.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(--green-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(--green-dark), var(--green));
  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='%23C8A165' 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 (Generic)
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid rgba(11, 79, 46, 0.09);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

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

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(11, 79, 46, 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(--green-mid);
  box-shadow: 0 0 0 3px rgba(11, 79, 46, 0.1);
}

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

/* ============================================================
   ACCORDION
   ============================================================ */
.accordion-item {
  border: 1px solid rgba(11, 79, 46, 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(11, 79, 46, 0.03);
}

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

.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(11, 79, 46, 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 / TAG
   ============================================================ */
.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(200, 161, 101, 0.15);
  color: var(--gold-dark);
}

.badge-green {
  background: rgba(11, 79, 46, 0.1);
  color: var(--green-mid);
}

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

/* ============================================================
   ANIMATION HELPERS (GSAP targets)
   ============================================================ */

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

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

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

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

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

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

.mt-6 { margin-top: 24px !important; }

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

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

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

.mb-6 { margin-bottom: 24px !important; }

.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;
}

.p-4 { padding: 16px !important; }
.p-6 { padding: 24px !important; }
.p-8 { padding: 32px !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@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 {
    grid-template-columns: 1fr;
  }

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

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

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

  .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 {
  flex-direction: row-reverse;
}

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

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

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

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

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(11, 79, 46, 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;
}

/* ============================================================
ALUMNI VIDEO CARDS
============================================================ */
.alumni-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  cursor: pointer;
  background: #000;
}

.video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.alumni-video-wrapper:hover .video-poster {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.alumni-video-wrapper:hover .play-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.play-btn {
  transform: scale(1);
  transition: transform var(--transition);
}

.alumni-video-wrapper:hover .play-btn {
  transform: scale(1.1);
}

/* Video Modal Overlay */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-modal video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), color var(--transition);
}

.video-modal-close:hover {
  transform: rotate(90deg);
  color: var(--gold);
}

/* Responsive */
@media (max-width: 768px) {
  .video-modal-content {
    max-height: 60vh;
  }

  .video-modal-close {
    top: -45px;
  }
}

/* ============================================================
   COMPONENT INJECTION WRAPPERS (BOM Fix)
   Absolute positioning removes the wrapper from document flow,
   collapsing any BOM text-node height to zero without affecting
   the position:fixed navbar injected inside it.
   ============================================================ */
#header-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  font-size: 0;
  z-index: 1000;
}

#footer-placeholder {
  display: contents;
}

/* Fix for active underline on flexbox dropdown toggle */
.nav-links li.dropdown > a::after {
  bottom: -2px; /* Pushes the gold line safely below the flexbox baseline */
}

/* ============================================================
   FAQ ACCORDION STYLES
   ============================================================ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--white);
  border: 1px solid rgba(11, 79, 46, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 300;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary {
  background: rgba(11, 79, 46, 0.03);
  border-bottom: 1px solid rgba(11, 79, 46, 0.05);
}

.faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-content {
  padding: 20px 24px;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
  background: var(--off-white);
}

/* ── Student Card Video ── */
.student-card-video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Prevents zooming/cropping of vertical videos */
  display: block;
  background-color: transparent;
}

/* ============================================================
   UI ENHANCEMENTS (RIPPLE & SCROLL HUD)
   ============================================================ */
/* Ripple Animation */
.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; }
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--green-light), var(--gold));
  z-index: 10001;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(200, 161, 101, 0.5);
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-mid);
  color: var(--white);
  border: 1px solid rgba(200, 161, 101, 0.3);
  box-shadow: 0 4px 15px rgba(11, 79, 46, 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);
  color: var(--green-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(200, 161, 101, 0.4);
}
@media (max-width: 480px) {
  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* ============================================================
   CUSTOM CURSOR & PAGE LOADER (ISDP BRANDED)
   ============================================================ */
/* Page Loader */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--green-dark);
  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(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  font-family: var(--font-en);
}
.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(--green-light), var(--gold));
  border-radius: 10px;
  animation: loadProgress 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes loadProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Custom Cursor */
.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, border-color 0.3s;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--gold);
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 2px solid rgba(200, 161, 101, 0.5);
  transition: transform 0.15s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
}
/* Hide cursor on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}