:root {
  /* Official Durham School Dubai Brand Colours */
  --durham-blue: #001489;        /* Pantone Reflex Blue */
  --durham-gold: #F1C400;        /* Pantone 7406 */
  --durham-dark: #1C1F2A;        /* Pantone 532 / Text Dark */
  --durham-green: #215732;       /* Old Dunelmian Green / Pantone 357 */
  --durham-white: #ffffff;
  
  /* Supporter Colours */
  --durham-bow-blue: #4A90E2;
  --durham-orange: #FF6B00;
  --durham-purple: #6C3483;
  --durham-pink: #E91E63;
  --durham-sports-green: #00B140;

  /* Theme Tokens */
  --color-primary: #001489;
  --color-gold: #F1C400;
  --color-dark: #1C1F2A;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-border: #e0e0e0;
  --color-border-light: #f0f0f0;
  --color-bg-light: #f8f9fa;
  
  /* Overlays & Shadows */
  --overlay-dark: rgba(0, 20, 137, 0.95);
  --overlay-medium: rgba(0, 20, 137, 0.75);
  --overlay-light: rgba(0, 20, 137, 0.5);
  --overlay-subtle: rgba(0, 0, 0, 0.3);
  --overlay-hover: rgba(0, 0, 0, 0.4);
  --white-overlay: rgba(255, 255, 255, 0.1);
  --white-overlay-medium: rgba(255, 255, 255, 0.15);
  --white-overlay-light: rgba(255, 255, 255, 0.4);
  --white-overlay-border: rgba(255, 255, 255, 0.6);
  --white-overlay-strong: rgba(255, 255, 255, 0.8);
  --white-overlay-hover: rgba(255, 255, 255, 0.9);
  --white-transparent: rgba(255, 255, 255, 0.95);
  
  /* Spacing */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 15px;
  --spacing-lg: 20px;
  --spacing-xl: 25px;
  --spacing-2xl: 30px;
  --spacing-3xl: 50px;
  --spacing-4xl: 80px;
  --spacing-5xl: 100px;
  
  /* Border Radius */
  --radius-sm: 2px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 50%;
  
  /* Transitions */
  --transition-fast: 0.3s;
  --transition-medium: 0.4s;
  --transition-slow: 1.2s;
  --transition-ease: ease-in-out;
  
  /* Typography - DM Sans primary brand font */
  --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Poppins', sans-serif;
  
  /* Dimensions */
  --header-height: 90px;
  --header-height-scrolled: 70px;
  --side-nav-width: 400px;
  --side-nav-width-mobile: 100%;
  
  /* Gallery */
  --gallery-item-width: 220px;
  --gallery-item-height: 145px;
  --gallery-item-width-md: 180px;
  --gallery-item-height-md: 120px;
  --gallery-gap: 16px;
  --gallery-gap-md: 12px;
  
  /* Official Brand Typography Guidelines */
  --font-family-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-heading: 'LL Circular Medium', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-logo: 'Baker Signet', Georgia, serif;
  --font-family: var(--font-family-body);
  
  /* Typography Scale */
  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-size-lg: 1.1rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 1.8rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3.5rem;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Shadows */
  --shadow-sm: 0 2px 15px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-2xl: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-button: 0 8px 20px rgba(0, 0, 0, 0.3);
  --shadow-nav: -5px 0 25px rgba(0, 0, 0, 0.2);
  --text-shadow-sm: 2px 2px 10px rgba(0, 0, 0, 0.5);
  --text-shadow-md: 2px 2px 15px rgba(0, 0, 0, 0.5);
  --text-shadow-lg: 2px 4px 25px rgba(0, 0, 0, 0.6);
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-header: 2000;
  --z-overlay: 2500;
  --z-side-nav: 3000;
  --z-gallery: 10;
  --z-hero-content: 15;
  --z-slider-nav: 20;
  
  /* Container */
  --container-max-width: 1200px;
  --container-max-width-lg: 1320px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-body);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, rgba(2, 8, 28, 0.5) 0%, rgba(2, 8, 28, 0.15) 60%, transparent 100%);
  padding: 14px 0;
  z-index: var(--z-header);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
  background: rgba(0, 14, 60, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(241, 196, 0, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  padding: 8px 0;
}

.header.scrolled .logo img {
  height: var(--header-height-scrolled);
}

.header.scrolled .menu-toggle {
  color: var(--color-white);
}

.header.scrolled .menu-toggle:hover {
  color: var(--durham-gold);
}

.header-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.logo {
  flex-shrink: 0;
  margin-right: 0;
  display: flex;
  align-items: center;
}

.logo img {
  height: var(--header-height);
  transition: height var(--transition-fast);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.header.scrolled .logo img {
  height: var(--header-height-scrolled);
}

/* Desktop Navigation - Clean, Airy, Lightweight */
.navmenu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 1;
}

.navmenu li {
  position: relative;
}

.navmenu a {
  position: relative;
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.navmenu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--durham-gold);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform: translateX(-50%);
}

.navmenu a:hover {
  color: var(--durham-gold);
}

.navmenu a:hover::after {
  width: 70%;
}

.navmenu a.active {
  color: var(--durham-gold);
}

.navmenu a.active::after {
  width: 70%;
}

.navmenu .dropdown {
  position: relative;
}

/* Enhanced Dropdown Icon */
.navmenu .dropdown > a i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.9);
  margin-left: 3px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navmenu .dropdown:hover > a i {
  transform: rotate(180deg) scale(1.1);
  background: rgba(241, 196, 0, 0.3);
  border-color: var(--durham-gold);
  color: var(--durham-gold);
  box-shadow: 0 0 12px rgba(241, 196, 0, 0.7);
}

/* Luxury Dropdown Menu Card */
.navmenu .dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: linear-gradient(180deg, rgba(8, 22, 54, 0.98) 0%, rgba(5, 14, 36, 0.98) 100%);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  min-width: 290px;
  max-width: 380px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 10px 8px;
  border-radius: 14px;
  border: 1px solid rgba(241, 196, 0, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 25px rgba(241, 196, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.97);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: var(--z-dropdown);
  list-style: none;
}

/* Glowing gold header line on dropdown */
.navmenu .dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15px;
  right: 15px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--durham-gold) 50%, transparent 100%);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(241, 196, 0, 0.8);
}

.navmenu .dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.navmenu .dropdown-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.navmenu .dropdown-menu a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  margin: 3px 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 3px solid transparent;
}

.navmenu .dropdown-menu a::after {
  display: none;
}

.navmenu .dropdown-menu a:hover {
  background: linear-gradient(90deg, rgba(241, 196, 0, 0.18) 0%, rgba(241, 196, 0, 0.04) 100%);
  color: var(--durham-gold);
  font-weight: 600;
  padding-left: 24px;
  border-left-color: var(--durham-gold);
  box-shadow: inset 0 0 12px rgba(241, 196, 0, 0.08);
}

/* Scrollbar styling for standard dropdown */
.navmenu .dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.navmenu .dropdown-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
}

.navmenu .dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(241, 196, 0, 0.3);
  border-radius: var(--radius-sm);
}

.navmenu .dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: var(--durham-gold);
}

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

.btn-header {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: all var(--transition-fast) cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  z-index: 1;
}

/* Passing Light Shine Beam Effect */
.btn-header::before,
.btn-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: passingLightSweep 3.2s infinite ease-in-out;
  pointer-events: none;
  z-index: 2;
}

@keyframes passingLightSweep {
  0% {
    left: -150%;
  }
  30% {
    left: 170%;
  }
  100% {
    left: 170%;
  }
}

/* Book a Tour - Gold Button */
.btn-tour {
  background: var(--durham-gold);
  color: #001489;
  border: 1px solid var(--durham-gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-tour:hover {
  background: #ffffff;
  color: #001489;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Enquire Now - Clean Outlined Button */
.btn-enquire {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-enquire:hover {
  background: #ffffff;
  color: #001489;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.header.scrolled .btn-enquire {
  border-color: var(--durham-gold);
  color: var(--durham-gold);
  background: transparent;
}

.header.scrolled .btn-enquire:hover {
  background: var(--durham-gold);
  color: #001489;
  border-color: var(--durham-gold);
}

/* Side Navigation Action Buttons */
.side-nav-actions {
  padding: 20px 30px 30px !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--color-border-light);
  margin-top: 15px;
}

.side-nav-actions .btn-side {
  position: relative;
  display: block;
  text-align: center;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  border-radius: 50px;
  transition: all var(--transition-fast) ease;
  overflow: hidden;
}

.side-nav-actions .btn-tour {
  background: linear-gradient(135deg, var(--durham-gold) 0%, #d4ac0d 100%);
  color: #001489;
  border: 1.5px solid var(--durham-gold);
  box-shadow: 0 0 14px rgba(241, 196, 0, 0.5);
}

.side-nav-actions .btn-tour:hover {
  background: #d4ac0d;
  border-color: #d4ac0d;
  box-shadow: 0 0 20px rgba(241, 196, 0, 0.8);
}

.side-nav-actions .btn-enquire {
  background-color: #001489;
  color: #ffffff;
  border: 1.5px solid #001489;
  box-shadow: 0 0 14px rgba(0, 20, 137, 0.4);
}

.side-nav-actions .btn-enquire:hover {
  background-color: #000f66;
  border-color: #000f66;
}

/* Hamburger Menu Button - Hidden on desktop */
.menu-toggle {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--color-white);
  padding: var(--spacing-xs);
  transition: color var(--transition-fast);
  display: none;
  margin-left: 15px;
}

.menu-toggle:hover {
  color: var(--color-primary);
}

/* Side Navigation Menu */
.side-nav {
  position: fixed;
  top: 0;
  right: calc(-1 * var(--side-nav-width));
  width: var(--side-nav-width);
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-nav);
  z-index: var(--z-side-nav);
  transition: right var(--transition-medium) var(--transition-ease);
  overflow-y: auto;
}

.side-nav.active {
  right: 0;
}

.side-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-xl) var(--spacing-2xl);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 10;
}

.side-nav-close {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--color-dark);
  transition: color var(--transition-fast);
}

.side-nav-close:hover {
  color: var(--color-primary);
}

.side-nav ul {
  list-style: none;
  padding: var(--spacing-lg) 0;
}

.side-nav ul li {
  border-bottom: 1px solid var(--color-border-light);
}

.side-nav ul li a {
  display: block;
  padding: 18px var(--spacing-2xl);
  text-decoration: none;
  color: var(--color-dark);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  transition: all var(--transition-fast);
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
}

.side-nav ul li a:hover,
.side-nav ul li a.active {
  background: var(--color-bg-light);
  color: var(--color-primary);
  padding-left: 40px;
}

.side-nav .dropdown > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-sm);
}

.side-nav .dropdown > a i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  font-size: 11px;
  color: #1c3772;
  transition: all 0.3s ease;
}

.side-nav .dropdown > a:hover i {
  background: rgba(255, 201, 49, 0.25);
  color: #1c3772;
}

.side-nav .dropdown-menu {
  display: none;
  background: rgba(248, 249, 250, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-left: var(--spacing-lg);
  max-height: none;
}

.side-nav .dropdown-menu.show {
  display: block;
}

.side-nav .dropdown-menu li a {
  font-size: var(--font-size-sm);
  padding: 12px var(--spacing-2xl);
}

/* Scrollbar styling for side nav */
.side-nav::-webkit-scrollbar {
  width: 8px;
}

.side-nav::-webkit-scrollbar-track {
  background: var(--color-border-light);
}

.side-nav::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-sm);
}

.side-nav::-webkit-scrollbar-thumb:hover {
  background: var(--color-dark);
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--overlay-light);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero Section with Slider */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

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

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-slide.exit {
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

/* Smooth Content Reveal on Slide Change */
.hero-slide .hero-content h1,
.hero-slide .hero-content h2,
.hero-slide .hero-content p,
.hero-slide .hero-content .hero-badge,
.hero-slide .hero-content .hero-tag,
.hero-slide .hero-content .hero-cta-group {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.active .hero-content .hero-badge {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

.hero-slide.active .hero-content h1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.hero-slide.active .hero-content h2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

.hero-slide.active .hero-content p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.hero-slide.active .hero-content .hero-tag {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.hero-slide.active .hero-content .hero-cta-group {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

/* Main Background Image */
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image Gallery - Bottom Right Row */
.image-gallery {
  position: absolute;
  right: var(--spacing-4xl);
  bottom: 40px;
  top: auto;
  transform: none;
  display: flex;
  flex-direction: row;
  gap: var(--gallery-gap);
  z-index: var(--z-gallery);
  align-items: center;
  max-width: 600px;
  overflow-x: auto;
  padding: 10px 4px;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.image-gallery::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.gallery-item {
  width: var(--gallery-item-width);
  height: var(--gallery-item-height);
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.5));
  z-index: 1;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover::before {
  opacity: 0.2;
}

.gallery-item:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: var(--shadow-xl);
  border-color: var(--white-overlay-strong);
}

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

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

.gallery-item.active-gallery {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 255, 255, 0.4);
  border: 2px solid var(--durham-gold);
}

.gallery-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  z-index: 2;
  letter-spacing: 0.3px;
  pointer-events: none;
  transition: color 0.3s ease;
}

.gallery-item.active-gallery .gallery-label {
  color: var(--durham-gold);
}

/* Gallery Progress Line Timer */
.gallery-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 5;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item.active-gallery .gallery-progress {
  opacity: 1;
}

.gallery-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--durham-gold), #ffffff);
  box-shadow: 0 0 8px rgba(241, 196, 0, 0.8);
}

.gallery-item.active-gallery .gallery-progress-bar {
  animation: galleryTimer 4s linear forwards;
}

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

/* Hero Content - Crisp, Airy, Perfectly Centered */
.hero-content {
  position: absolute;
  top: 56%;
  left: var(--spacing-4xl);
  transform: translateY(-50%);
  z-index: var(--z-hero-content);
  max-width: 680px;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  line-height: 1.18;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.5px;
}

.hero-content h2 {
  font-size: 1.35rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.2px;
}

.hero-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 12px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  font-weight: 400;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 14, 60, 0.7);
  border: 1px solid rgba(241, 196, 0, 0.45);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--durham-gold);
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-badge .badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--durham-gold);
  font-size: 13px;
}

/* Hero Hashtag */
.hero-tag {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--durham-gold);
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Hero CTA Group */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  background: var(--durham-gold);
  color: #001489;
  border: 1.5px solid var(--durham-gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  letter-spacing: 0.3px;
  z-index: 1;
}

.btn-hero-primary::before,
.btn-hero-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: passingLightSweep 3.5s infinite ease-in-out;
  pointer-events: none;
  z-index: 2;
}

.btn-hero-primary:hover {
  background: #ffffff;
  color: #001489;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.btn-hero-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  letter-spacing: 0.3px;
  z-index: 1;
}

.btn-hero-secondary:hover {
  background: #ffffff;
  color: #001489;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Slider Navigation */
.slider-nav {
  position: absolute;
  bottom: var(--spacing-3xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: var(--z-slider-nav);
  align-items: center;
}

.slider-dot {
  width: 50px;
  height: 4px;
  border-radius: var(--radius-sm);
  background: var(--white-overlay-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-dot.active {
  background: var(--color-white);
  width: 70px;
}

/* Slider Arrow Buttons */
.slider-arrow {
  background: transparent;
  border: 2px solid var(--white-overlay-border);
  color: var(--color-white);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: all var(--transition-fast) ease;
  margin: 0 var(--spacing-md);
}

.slider-arrow:hover {
  background: var(--white-overlay);
  border-color: var(--white-overlay-hover);
  transform: scale(1.1);
}

.slider-arrow:active {
  transform: scale(0.95);
}

/* Gradient Overlay - Crystal Clear & Cinematic */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, rgba(2, 8, 30, 0.72) 0%, rgba(2, 8, 30, 0.35) 50%, transparent 100%);
  z-index: 5;
}

/* Responsive */
@media (max-width: 1440px) {
  .header-container {
    padding: 0 20px;
    gap: 10px;
  }

  .navmenu {
    gap: 3px;
  }

  .navmenu a {
    font-size: 13.5px;
    padding: 7px 10px;
  }

  .btn-header {
    padding: 8px 15px;
    font-size: 12.5px;
  }

  .header-actions {
    gap: 8px;
    margin-left: 8px;
  }
}

@media (max-width: 1200px) {
  .image-gallery {
    display: none;
  }

  .hero-overlay {
    width: 100%;
    background: var(--overlay-light);
  }

  .hero-content {
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 90%;
  }

  .navmenu {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .header-actions {
    display: none;
  }

  .side-nav {
    width: var(--side-nav-width-mobile);
    right: -100%;
  }

  .navmenu {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content h1 {
    font-size: var(--font-size-3xl);
  }

  .hero-content h2 {
    font-size: var(--font-size-xl);
  }

  .hero-content p {
    font-size: 1rem;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
    margin: 0 var(--spacing-sm);
  }
  
  /* Single column for mobile */
  .mega-menu-container {
    grid-template-columns: 1fr;
  }
  
  .navmenu .dropdown.mega-menu > .dropdown-menu {
    padding: var(--spacing-xl) var(--spacing-lg);
  }
}
/* navbar & hero section ends here */

/* ==========================================================================
   Ultra-Luxury Page Preloader with Logo & Auto-Typing Effect
   ========================================================================== */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000c47;
  background: radial-gradient(circle at 50% 40%, #001a94 0%, #001275 45%, #000833 100%);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.06);
  pointer-events: none;
}

/* Atmospheric Backdrop Lights */
.loader-backdrop-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 35%, rgba(241, 196, 0, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(0, 20, 137, 0.4) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(33, 87, 50, 0.25) 0%, transparent 50%);
  pointer-events: none;
}

/* Glass Luxury Card */
.loader-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 620px;
  width: 90%;
  padding: 40px 35px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(241, 196, 0, 0.22);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 20, 137, 0.4), inset 0 0 20px rgba(241, 196, 0, 0.05);
  z-index: 2;
}

/* Crest with Orbit Rings */
.loader-crest-container {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.loader-orbit-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.loader-orbit-ring.ring-outer {
  width: 130px;
  height: 130px;
  border: 1.5px dashed rgba(241, 196, 0, 0.5);
  animation: spinOrbit 14s linear infinite;
}

.loader-orbit-ring.ring-inner {
  width: 110px;
  height: 110px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--durham-gold);
  animation: spinOrbitReverse 8s linear infinite;
}

.loader-glow-orb {
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(241, 196, 0, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseOrb 2.2s infinite alternate ease-in-out;
  pointer-events: none;
}

.loader-logo-wrapper {
  position: relative;
  z-index: 2;
  animation: floatCrest 3s ease-in-out infinite alternate;
}

.loader-crest-img {
  height: 80px;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5));
}

@keyframes spinOrbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinOrbitReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes pulseOrb {
  0% { transform: scale(0.85); opacity: 0.4; }
  100% { transform: scale(1.25); opacity: 0.9; }
}

@keyframes floatCrest {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

/* Heritage Badge */
.loader-heritage-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 20, 137, 0.6);
  border: 1px solid rgba(241, 196, 0, 0.4);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--durham-gold);
  text-transform: uppercase;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.loader-heritage-badge i {
  font-size: 12px;
  color: var(--durham-gold);
}

/* Auto-Typing Text Wrapper */
.loader-text-wrapper {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.typed-school-name {
  font-family: var(--font-family-heading);
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin: 0;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 28px;
  background: var(--durham-gold);
  margin-left: 4px;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(241, 196, 0, 0.9);
  animation: blinkCursorBar 0.75s infinite;
}

@keyframes blinkCursorBar {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Brand Motto */
.loader-tagline {
  font-family: var(--font-family-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.loader-tagline.show {
  opacity: 1;
  transform: translateY(0);
}

.tagline-highlight {
  color: var(--durham-gold);
  text-shadow: 0 2px 8px rgba(241, 196, 0, 0.4);
}

/* Core Values Pills */
.loader-values-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}

.loader-values-group.show {
  opacity: 1;
  transform: translateY(0);
}

.val-pill {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.4px;
}

/* Progress Section with Percentage Counter */
.loader-progress-section {
  width: 100%;
  max-width: 320px;
}

.loader-counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 8px;
  font-weight: 600;
}

.loader-status-text {
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
}

.loader-percent {
  color: var(--durham-gold);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.loader-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d4ac0d 0%, var(--durham-gold) 50%, #ffffff 100%);
  box-shadow: 0 0 12px rgba(241, 196, 0, 0.9);
  border-radius: 4px;
  position: relative;
  transition: width 0.12s linear;
}

@media (max-width: 576px) {
  .loader-card {
    padding: 30px 20px;
  }
  
  .loader-crest-container {
    width: 110px;
    height: 110px;
  }

  .loader-orbit-ring.ring-outer {
    width: 110px;
    height: 110px;
  }

  .loader-orbit-ring.ring-inner {
    width: 90px;
    height: 90px;
  }

  .loader-crest-img {
    height: 65px;
  }

  .typed-school-name {
    font-size: 24px;
  }

  .typing-cursor {
    height: 22px;
  }
}

/* Footer section */
