/* ========================================
   THE TAFT SCHOOL - Premium Educational Website
   Complete Stylesheet
   ======================================== */

/* ----- CSS Variables ----- */
:root {
  --navy: #0a1628;
  --navy-light: #132040;
  --navy-mid: #1a2d4a;
  --gold: #c9a84c;
  --gold-light: #e0c66a;
  --gold-dark: #a8882e;
  --white: #ffffff;
  --off-white: #f8f7f4;
  --gray-100: #f1f0ed;
  --gray-200: #e2e0dc;
  --gray-300: #c4c1bc;
  --gray-400: #9a9690;
  --gray-500: #6b6762;
  --gray-600: #4a4743;
  --gray-700: #2d2b28;
  --serif: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 8px 30px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.12);
  --shadow-xl: 0 40px 80px rgba(10, 22, 40, 0.16);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max-width: 1280px;
  --header-height: 110px;
  --topbar-height: 40px;
  --navbar-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  color: var(--white);
  background: var(--navy);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: default;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 60px 0;
}

.section-padding:first-of-type {
  padding-top: 120px;
}

html {
  scroll-padding-top: 130px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  position: relative;
}

.section-tag::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 12px auto 0;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 700;
  color: #0a1628;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

.about1 .dynamic-page-content p { text-align: justify; }
.courses .value-card p { text-align: justify; }

/* ----- Custom Cursor ----- */
.custom-cursor {
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.custom-cursor.hovered {
  width: 40px;
  height: 40px;
  background: rgba(201, 168, 76, 0.3);
  backdrop-filter: blur(4px);
}

/* ----- Preloader ----- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--white);
  letter-spacing: 6px;
  margin-bottom: 24px;
  font-weight: 700;
}

.preloader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.preloader-bar-inner {
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.3s ease;
}

.preloader-text {
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-top: 16px;
}

/* ----- Top Bar ----- */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--topbar-height);
  background: linear-gradient(135deg, #0a1628 0%, #1a1a4e 50%, #0d3b66 100%);
  z-index: 10001;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.top-bar.hidden {
  transform: translateY(-100%);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.3s ease;
  border-radius: 50%;
  text-decoration: none;
}

.social-link svg {
  width: 13px;
  height: 13px;
}

.social-link:hover {
  color: var(--gold);
  transform: translateY(-2px);
  filter: drop-shadow(0 0 6px rgba(201, 168, 76, 0.4));
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-btn {
  display: inline-flex;
  align-items: center;
  padding: 3px 14px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 20px;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  transition: all 0.3s ease;
}

.top-bar-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.35);
}

.top-bar-btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.top-bar-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

/* ----- Navigation ----- */
.navbar {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  width: 100%;
  z-index: 10000;
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  border-bottom-color: transparent;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10001;
  text-decoration: none;
}

.navbar-logo-icon {
  width: 38px;
  height: 38px;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold);
  transition: all 0.4s ease;
}

.navbar-logo:hover .navbar-logo-icon {
  background: var(--gold);
  color: var(--navy);
  transform: rotate(-10deg);
}

.navbar-logo-text {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 2px;
  font-weight: 700;
}

/* Nav Links */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-links > li {
  position: relative;
}

.navbar-links > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.navbar-links > li > a:hover::after,
.navbar-links > li.current > a::after,
.navbar-links > li > a.active-link::after {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar-links > li > a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.navbar-links > li.current > a,
.navbar-links > li > a.active-link {
  color: var(--gold);
}

.dropdown-arrow {
  font-size: 0.55rem;
  margin-left: 2px;
  transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-arrow,
.has-dropdown.mobile-open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 8px;
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--gray-600);
  text-decoration: none;
  transition: all 0.25s ease;
}

.dropdown-item:hover {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  padding-left: 20px;
}

.dropdown-item-icon {
  font-size: 0.65rem;
  color: var(--gold);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.dropdown-item:hover .dropdown-item-icon {
  opacity: 1;
}

.dropdown-item-text {
  font-weight: 500;
}

.dropdown-group {
  position: relative;
}

.submenu-arrow {
  margin-left: auto;
  font-size: 0.55rem;
  color: var(--gold);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.dropdown-group:hover .submenu-arrow {
  opacity: 1;
}

.dropdown-nested {
  position: absolute;
  top: -8px;
  left: calc(100% + 6px);
  min-width: 220px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 8px;
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1001;
}

/* Hover bridge: extends the parent item's hover zone across the gap so the
   submenu never disappears while the cursor moves toward it. Desktop only. */
@media (min-width: 769px) {
  .dropdown-group::after {
    content: '';
    position: absolute;
    top: -8px;
    right: -14px;
    width: 20px;
    height: calc(100% + 16px);
  }
}

.dropdown-nested.flip-left {
  left: auto;
  right: calc(100% + 6px);
}

.dropdown-nested.flip-left::before {
  left: auto;
  right: -12px;
}

/* Nested submenus are controlled ONLY by their own parent item's hover.
   These overrides neutralize the generic ".has-dropdown:hover .dropdown"
   reveal, which otherwise shows every nested submenu (and drags it left via
   translateX(-50%)) as soon as the main dropdown opens. Desktop only. */
@media (min-width: 769px) {
  .has-dropdown:hover .dropdown.dropdown-nested {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
  }

  .dropdown-group:hover .dropdown.dropdown-nested {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: none;
  }
}

.dropdown-group:hover .dropdown-nested {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 10001;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.85) 0%, rgba(10, 22, 40, 0.4) 50%, rgba(10, 22, 40, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  padding-top: var(--header-height);
}

.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.4);
  padding: 8px 24px;
  border-radius: 50px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(60px);
}

.hero-title .line:nth-child(1) { animation: fadeUp 0.8s ease 0.5s forwards; }
.hero-title .line:nth-child(2) { animation: fadeUp 0.8s ease 0.7s forwards; }

.hero-title .highlight {
  color: var(--gold);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 580px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease 0.9s forwards;
  font-weight: 300;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease 1.1s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(201, 168, 76, 0.35);
}

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

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-gold-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-gold-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ---- Hero Indicators (dots) ---- */
.hero-indicators {
  position: absolute;
  bottom: 100px;
  right: 40px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--gold);
  transform: scale(1.4);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ========================================
   INTRO / STATS SECTION
   ======================================== */
.intro-section {
  background: var(--white);
  position: relative;
}

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

.intro-grid.img-align-top .intro-image { align-self: start; }
.intro-grid.img-align-bottom .intro-image { align-self: end; }
.mission-grid.img-align-top .mission-image { align-self: start; }
.mission-grid.img-align-bottom .mission-image { align-self: end; }

.section-padding[style*="off-white"] .section-tag,
.section-padding[style*="off-white"] .section-title {
  color: var(--navy);
}

.section-padding[style*="navy"] .section-tag,
.section-padding[style*="navy"] .section-title,
.section-padding[style*="navy"] .section-subtitle {
  color: var(--white);
}

.intro-text .section-title {
  text-align: left;
}

.intro-text p {
  color: var(--gray-500);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 20px;
}

.intro-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 500px;
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.intro-image:hover img {
  transform: scale(1.05);
}

.intro-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, var(--navy), transparent);
}

.intro-image-badge {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 2;
  color: var(--white);
}

.intro-image-badge h3 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
}

.intro-image-badge p {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ---- Stats ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: -60px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-lg);
}

.stat-item {
  background: var(--white);
  padding: 48px 24px;
  text-align: center;
  transition: var(--transition);
}

.stat-item:hover {
  background: var(--navy);
}

.stat-item:hover .stat-number,
.stat-item:hover .stat-label {
  color: var(--white);
}

.stat-number {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  transition: var(--transition);
}

.stat-number .suffix {
  color: var(--gold);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
}

/* ========================================
   PROGRAMS SECTION
   ======================================== */
.programs {
  background: var(--off-white);
}

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

.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

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

.program-card-image {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.program-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.program-card:hover .program-card-image img {
  transform: scale(1.08);
}

.program-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.6), transparent);
}

.program-card-category {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(201, 168, 76, 0.9);
  padding: 6px 14px;
  border-radius: 50px;
}

.program-card-body {
  padding: 28px;
}

.program-card-body h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 8px;
  transition: var(--transition);
}

.program-card:hover .program-card-body h3 {
  color: var(--gold);
}

.program-card-body p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 16px;
}

.program-card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.program-card-link svg {
  transition: transform 0.3s ease;
}

.program-card:hover .program-card-link svg {
  transform: translateX(6px);
}

/* ========================================
   CAMPUS LIFE / GALLERY
   ======================================== */
.campus-gallery {
  background: var(--navy);
  color: var(--white);
}

.campus-gallery .section-title {
  color: var(--white);
}

.campus-gallery .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

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

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

.gallery-item:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.gallery-item:nth-child(2) {
  grid-column: 3 / 4;
}

.gallery-item:nth-child(3) {
  grid-column: 4 / 5;
}

.gallery-item:nth-child(4) {
  grid-column: 3 / 5;
}

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

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.8), transparent);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-overlay h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--white);
}

.gallery-overlay span {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 1px;
}

/* ========================================
   GALLERY SLIDER — Focus Carousel
   ======================================== */
.gallery-slider-section {
  background: var(--off-white);
  overflow: hidden;
}

.gallery-slider-wrapper {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
}

.gallery-slider-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 70px 0;
}

.gallery-slider-track {
  display: flex;
  align-items: center;
  column-gap: 12px;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-slide {
  flex: 0 0 calc((100% - 60px) / 6);
  cursor: pointer;
  position: relative;
  transform: scale(1.5);
  filter: blur(5px) brightness(0.5);
  opacity: 0.5;
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.gallery-slide.active {
  transform: scale(2);
  filter: blur(0) brightness(1);
  opacity: 1;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(10, 22, 40, 0.25);
}

.gallery-slide:first-child {
  margin-left: calc((100% - ((100% - 60px) / 6)) / 2);
}

.gallery-slide:last-child {
  margin-right: calc((100% - ((100% - 60px) / 6)) / 2);
}

.gallery-slide-inner {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.gallery-slide-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  display: block;
}

.gallery-slide.active .gallery-slide-inner img:hover {
  transform: scale(1.06);
}

.gallery-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--navy);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slider-btn:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.gallery-slider-btn.prev {
  left: 8px;
}

.gallery-slider-btn.next {
  right: 8px;
}

.gallery-slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.gallery-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-slider-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

@media (max-width: 1024px) {
  .gallery-slider-track {
    column-gap: 10px;
  }
  .gallery-slide {
    flex: 0 0 calc((100% - 30px) / 4);
    transform: scale(1.4);
    filter: blur(4px) brightness(0.55);
    opacity: 0.5;
  }
  .gallery-slide.active {
    transform: scale(1.8);
    filter: blur(0) brightness(1);
    opacity: 1;
  }
  .gallery-slide:first-child {
    margin-left: calc((100% - ((100% - 30px) / 4)) / 2);
  }
  .gallery-slide:last-child {
    margin-right: calc((100% - ((100% - 30px) / 4)) / 2);
  }
  .gallery-slider-wrapper {
    padding: 0 48px;
  }
}

@media (max-width: 640px) {
  .gallery-slider-track {
    column-gap: 8px;
  }
  .gallery-slide {
    flex: 0 0 calc((100% - 8px) / 2);
    transform: scale(1.3);
    filter: blur(3px) brightness(0.6);
    opacity: 0.5;
  }
  .gallery-slide.active {
    transform: scale(1.6);
    filter: blur(0) brightness(1);
    opacity: 1;
  }
  .gallery-slide:first-child {
    margin-left: calc((100% - ((100% - 8px) / 2)) / 2);
  }
  .gallery-slide:last-child {
    margin-right: calc((100% - ((100% - 8px) / 2)) / 2);
  }
  .gallery-slider-wrapper {
    padding: 0 40px;
  }
  .gallery-slider-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* ========================================
   EVENTS TIMELINE
   ======================================== */
.events-timeline {
  background: var(--white);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.timeline-content h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ========================================
   NEWS SECTION
   ======================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

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

.news-card-image {
  height: 200px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.08);
}

.news-card-body {
  padding: 24px;
}

.news-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.news-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-card-body h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
  transition: var(--transition);
}

.news-card:hover .news-card-body h3 {
  color: var(--gold);
}

.news-card-body p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
  background: var(--off-white);
}

.testimonials-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.testimonials-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: testimonial-scroll 40s linear infinite;
}

.testimonials-wrapper:hover .testimonials-track {
  animation-play-state: paused;
}

@keyframes testimonial-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}

.testimonial-card {
  width: 380px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
}

.testimonial-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author-info h4 {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 600;
}

.testimonial-author-info span {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.testimonial-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.2rem;
  color: var(--gray-500);
}

.testimonial-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--white);
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08), transparent);
}

.cta-banner-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 0;
  position: relative;
}

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

.footer-brand h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.footer-brand h3 span {
  color: var(--gold);
}

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

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

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

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

.footer-col h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 24px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

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

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

.footer-newsletter p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.footer-newsletter-form {
  display: flex;
  gap: 0;
}

.footer-newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-right: none;
  border-radius: 50px 0 0 50px;
  background: transparent;
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.footer-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.footer-newsletter-form input:focus {
  border-color: var(--gold);
}

.footer-newsletter-form button {
  padding: 14px 24px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 0 50px 50px 0;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.footer-newsletter-form button:hover {
  background: var(--gold-light);
}

/* ---- Footer Calendar ---- */
.footer-calendar-col {
  min-width: 160px;
}

.footer-calendar {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-calendar .cal-header {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.footer-calendar .cal-month {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-calendar .cal-year {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  align-self: flex-end;
  line-height: 1.6;
}

.footer-calendar .cal-day {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.footer-calendar .cal-weekday {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.footer-calendar .cal-time {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.35);
}

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

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.back-to-top:hover {
  background: var(--gold-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(201, 168, 76, 0.4);
}

/* ========================================
   SCROLL REVEAL
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-mission {
  background: var(--white);
}

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

.mission-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 480px;
}

.mission-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.mission-image:hover img {
  transform: scale(1.05);
}

.mission-text h2 {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 20px;
}

.mission-text p {
  color: var(--gray-500);
  line-height: 1.9;
  margin-bottom: 16px;
}

.mission-text .signature {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
  font-style: italic;
  margin-top: 24px;
}

/* ---- Values ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.value-card {
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,255,255,0.15);
}

.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--gold);
  transition: var(--transition);
}

.value-card:hover .value-icon {
  background: var(--gold);
  color: var(--white);
}

.value-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

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

.faculty-card {
  text-align: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faculty-card:hover {
  transform: translateY(-6px);
}

.faculty-card-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 4px solid transparent;
  transition: var(--transition);
}

.faculty-card:hover .faculty-card-image {
  border-color: var(--gold);
}

.faculty-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faculty-card h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--navy);
}

.faculty-card span {
  font-size: 0.85rem;
  color: var(--gold);
}

/* ========================================
   ACADEMICS PAGE
   ======================================== */
.academic-programs {
  background: var(--off-white);
}

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

.academic-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  gap: 20px;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}

.academic-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.academic-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: var(--radius-sm);
  background: rgba(201, 168, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.academic-info h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.academic-info p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ---- Curriculum ---- */
.curriculum-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.curriculum-tab {
  padding: 12px 28px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-500);
}

.curriculum-tab:hover,
.curriculum-tab.active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.curriculum-panel {
  display: none;
}

.curriculum-panel.active {
  display: block;
}

.curriculum-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.curriculum-panel-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
}

.curriculum-panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.curriculum-panel-text h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.curriculum-panel-text p {
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 16px;
}

.curriculum-panel-text ul li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 10px;
}

.curriculum-panel-text ul li::before {
  content: '→';
  color: var(--gold);
  font-weight: 600;
}

/* ========================================
   ARTS PAGE
   ======================================== */
.arts-showcase {
  background: var(--off-white);
}

.arts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.arts-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
  cursor: pointer;
}

.arts-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.arts-card:hover img {
  transform: scale(1.06);
}

.arts-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

.arts-card-overlay h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 8px;
}

.arts-card-overlay p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.arts-card-overlay .btn {
  align-self: flex-start;
  margin-top: 16px;
  padding: 10px 24px;
  font-size: 0.75rem;
}

/* ========================================
   ATHLETICS PAGE
   ======================================== */
.athletics-intro {
  background: var(--white);
}

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

.sport-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 280px;
  cursor: pointer;
}

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

.sport-item:hover img {
  transform: scale(1.06);
}

.sport-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.85), transparent);
}

.sport-item-overlay h4 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--white);
}

.sport-item-overlay span {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 1px;
}

/* ========================================
   ADMISSIONS PAGE
   ======================================== */
.admissions-steps {
  background: var(--white);
}

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

.step-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: var(--off-white);
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.step-number {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.2);
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: block;
}

.step-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ---- Tuition ---- */
.tuition-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tuition-table th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1rem;
  padding: 20px 24px;
  text-align: left;
}

.tuition-table td {
  padding: 18px 24px;
  font-size: 0.9rem;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tuition-table tr:hover td {
  background: var(--off-white);
}

/* ========================================
   STUDENT LIFE PAGE
   ======================================== */
.life-highlights {
  background: var(--off-white);
}

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

.life-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.life-card-image {
  height: 220px;
  overflow: hidden;
}

.life-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.life-card:hover .life-card-image img {
  transform: scale(1.06);
}

.life-card-body {
  padding: 24px;
}

.life-card-body h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.life-card-body p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 600;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--gold);
}

.faq-question .icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.3rem;
  color: var(--gold);
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-top: 16px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.8;
}

/* ========================================
   NEWS & EVENTS PAGE
   ======================================== */
.news-events-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-500);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

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

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-list {
  display: grid;
  gap: 32px;
}

.contact-info-item {
  display: flex;
  gap: 20px;
}

.contact-info-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-sm);
  background: rgba(201, 168, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-info-item h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
}

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

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--gray-700);
  transition: var(--transition);
  outline: none;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

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

/* ---- Map ---- */
.map-section {
  height: 400px;
  position: relative;
  overflow: hidden;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 22, 40, 0.95);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 40px;
}

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

.modal-content {
  max-width: 900px;
  width: 100%;
  max-height: 80vh;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.4s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-content img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

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

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

.modal-caption {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
}

/* ========================================
   VIDEO SECTION
   ======================================== */
.video-section {
  position: relative;
  height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.video-section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 22, 40, 0.6);
}

.video-play-btn {
  position: relative;
  z-index: 2;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--navy);
  transition: var(--transition);
}

.video-play-btn:hover {
  transform: scale(1.1);
  background: var(--gold);
  box-shadow: 0 0 60px rgba(201, 168, 76, 0.4);
}

.video-play-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(201, 168, 76, 0.3);
  animation: pulse-ring 2s ease infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .programs-grid,
  .news-grid,
  .values-grid,
  .life-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid {
    gap: 40px;
  }

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

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

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

  .testimonial-card {
    width: 300px;
    padding: 32px;
  }
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: unset;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
    height: 250px;
  }

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

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

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

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

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

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

@media (max-width: 768px) {
  :root {
    --header-height: 102px;
    --topbar-height: 36px;
    --navbar-height: 66px;
  }

  .section-padding {
    padding: 60px 0;
  }

  .top-bar {
    height: var(--topbar-height);
  }

  .top-bar-social {
    gap: 6px;
  }

  .social-link {
    width: 22px;
    height: 22px;
  }

  .social-link svg {
    width: 11px;
    height: 11px;
  }

  .top-bar-btn {
    font-size: 0.6rem;
    padding: 2px 10px;
  }

  .navbar {
    top: var(--topbar-height);
    height: var(--navbar-height);
  }

  .navbar-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 100px 24px 40px;
    z-index: 9999;
  }

  .navbar-links.open {
    opacity: 1;
    visibility: visible;
  }

  .navbar-links > li > a {
    font-size: 1.1rem;
    text-align: center;
    justify-content: center;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.9);
  }

  .navbar-links > li > a::after {
    display: none;
  }

  .navbar-links > li.current > a,
  .navbar-links > li > a.active-link {
    color: var(--gold);
  }

  .dropdown {
    position: static;
    transform: none;
    min-width: auto;
    padding: 4px 16px;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    display: none;
    background: transparent;
    box-shadow: none;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .has-dropdown:hover .dropdown {
    transform: none;
  }

  .dropdown.open {
    display: block;
  }

  .dropdown-group {
    position: static;
  }

  .dropdown-nested {
    position: static;
    transform: none;
    min-width: auto;
    padding: 4px 16px;
    margin-left: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    display: none;
    background: transparent;
    box-shadow: none;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .dropdown-group:hover .dropdown-nested {
    display: none;
  }

  .dropdown-nested.open {
    display: block;
  }

  .submenu-arrow {
    display: inline-block;
    transform: rotate(90deg);
  }

  .dropdown-item {
    color: rgba(255, 255, 255, 0.7);
    justify-content: center;
  }

  .dropdown-item:hover {
    background: rgba(201, 168, 76, 0.1);
    color: var(--gold);
  }

  .menu-toggle {
    display: flex;
  }

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

  .stat-item {
    padding: 32px 16px;
  }

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

  .intro-image {
    height: 350px;
  }

  .programs-grid,
  .news-grid,
  .values-grid,
  .life-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    width: 260px;
    padding: 24px;
  }

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

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

  .hero-indicators {
    display: none;
  }

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

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

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

  .news-events-grid {
    grid-template-columns: 1fr;
  }

  .academic-list {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }

  .video-section {
    height: 400px;
  }

  .video-play-btn {
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
  }

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

  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    bottom: 20px;
    right: 20px;
  }

  .custom-cursor {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

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

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

/* News Ticker */
.news-ticker {
  background: var(--navy);
  padding: 10px 0;
  overflow: hidden;
  border-bottom: 2px solid var(--accent);
}

.news-ticker-inner {
  position: relative;
  width: 100%;
}

.news-ticker-label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  animation: blink-colors 1.2s infinite;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  background: var(--navy);
  padding: 0 16px 0 24px;
  display: flex;
  align-items: center;
}

@keyframes blink-colors {
  0%, 100% { color: #fff; }
  33% { color: #ff0000; }
  66% { color: #ffd700; }
}

.news-ticker-track {
  overflow: hidden;
  width: 100%;
}

.news-ticker-scroll {
  display: flex;
  gap: 60px;
  animation: ticker-scroll 10s linear infinite;
  width: max-content;
  padding-left: 200px;
}

.news-ticker-item {
  color: #fff;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.news-ticker-item + .news-ticker-item::before {
  content: "|";
  margin-right: 60px;
  color: var(--accent);
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* News Sidebar */
.page-with-sidebar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 274px 0 24px;
  min-height: 60vh;
}

.news-sidebar {
  position: fixed;
  right: 0;
  top: 130px;
  width: 250px;
  background: var(--navy);
  padding: 16px 20px;
  border-radius: 0 0 0 var(--radius-md);
  z-index: 999;
}

.news-sidebar-title {
  color: #ddd;
  font-size: 1.2rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--accent);
  font-family: var(--serif);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.news-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-sidebar-item {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.news-sidebar-item:last-child {
  border-bottom: none;
}

.news-sidebar-date {
  display: block;
  font-size: 0.65rem;
  color: var(--accent);
  margin-top: 2px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-sidebar-link {
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.4;
  text-decoration: none;
  transition: var(--transition);
}

.news-sidebar-link:hover {
  color: var(--accent);
}

.news-sidebar-empty {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .page-with-sidebar {
    padding: 20px 16px;
  }

  .news-sidebar {
    display: none;
  }
}

/* ============================================
   SITE PRELOADER
   ============================================ */
.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary, #0f1a2e);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.site-preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  padding: 20px;
}

.site-preloader-logo {
  position: relative;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-preloader-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold, #c9a84c);
  line-height: 1;
}

.site-preloader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(201, 168, 76, 0.18);
  border-top-color: var(--gold, #c9a84c);
  animation: preloader-spin 1.1s cubic-bezier(0.6, 0.15, 0.4, 0.85) infinite;
}

.site-preloader-name {
  font-family: 'Playfair Display', Georgia, serif;
  color: #ffffff;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  max-width: 90vw;
}

.site-preloader-bar {
  width: 180px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.site-preloader-bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 3px;
  background: var(--gold, #c9a84c);
  animation: preloader-slide 1.4s ease-in-out infinite;
}

@keyframes preloader-spin {
  to { transform: rotate(360deg); }
}

@keyframes preloader-slide {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@media (prefers-reduced-motion: reduce) {
  .site-preloader-ring,
  .site-preloader-bar span { animation-duration: 3s; }
}

/* ============================================
   FLYER POPUP (home page, once per session)
   ============================================ */
body.flyer-lock-scroll { overflow: hidden; }

.flyer-overlay {
  position: fixed;
  inset: 0;
  z-index: 95000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 15, 23, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.flyer-overlay.flyer--visible {
  opacity: 1;
  visibility: visible;
}

.flyer-modal {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  max-width: min(560px, 92vw);
  transform: scale(0.85) translateY(24px);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.flyer-overlay.flyer--visible .flyer-modal {
  transform: scale(1) translateY(0);
}

.flyer-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 26, 46, 0.75);
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.flyer-close:hover,
.flyer-close:focus-visible {
  background: var(--gold, #c9a84c);
  transform: rotate(90deg);
  outline: none;
}

.flyer-caption {
  padding: 14px 52px 12px 18px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f1a2e;
  border-bottom: 1px solid rgba(15, 26, 46, 0.08);
}

.flyer-media img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #f6f6f8;
}

@media (max-width: 768px) {
  .flyer-overlay { padding: 14px; }
  .flyer-modal { max-width: 94vw; }
  .flyer-media img { max-height: 70vh; }
}

/* ============================================
   EVENT / PHOTO ALBUM CARDS
   ============================================ */
.event-albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 24px;
}

.event-album-card {
  background: #ffffff;
  border: 1px solid rgba(15, 26, 46, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 26, 46, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.event-album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(15, 26, 46, 0.12);
}

.event-album-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #eef1f6;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.event-album-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.event-album-card:hover .event-album-media img {
  transform: scale(1.05);
}

.event-album-date {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 3px 12px rgba(15, 26, 46, 0.18);
  line-height: 1;
  text-align: center;
}

.event-album-date strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: #101828;
}

.event-album-date small {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d6ce0;
  margin-top: 2px;
}

.event-album-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 11px;
  border-radius: 50px;
  background: rgba(16, 24, 40, 0.82);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

.event-album-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
  flex: 1;
}

.event-album-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #101828;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.event-album-desc {
  font-size: 0.85rem;
  color: #55627a;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-album-cta {
  margin-top: auto;
  padding-top: 6px;
  color: #1d6ce0;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: gap 0.25s ease;
  width: fit-content;
}

.event-album-cta:hover,
.event-album-cta:focus-visible {
  text-decoration: underline;
  outline: none;
}

/* Album detail page */
.event-album-hero { padding-bottom: 0; }
.event-album-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 20px;
}
.event-album-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(29, 108, 224, 0.1);
  color: #1d6ce0;
  font-weight: 600;
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .event-albums-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 560px) {
  .event-albums-grid { grid-template-columns: 1fr; }
  .event-album-media { aspect-ratio: 16 / 10; }
}
