/* ============================================
   HIGHWAY SENIOR SCHOOL - Premium Stylesheet
   "With Pride and Dignity, Endeavour to Excel"
   ============================================ */

/* ── CSS Custom Properties ── */
:root {
  --primary: #1a237e;
  --primary-dark: #0d1457;
  --primary-light: #283593;
  --secondary: #ffd700;
  --secondary-dark: #c7a600;
  --accent: #e53935;
  --accent-dark: #b71c1c;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --mid-gray: #e0e0e0;
  --dark-gray: #333333;
  --text-dark: #1a1a2e;
  --text-light: #555555;
  --overlay-dark: rgba(26, 35, 126, 0.85);
  --overlay-medium: rgba(26, 35, 126, 0.6);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.18);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.22);
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-xslow: 0.8s ease;
  --border-radius: 12px;
  --border-radius-sm: 6px;
  --border-radius-lg: 20px;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;
  --max-width: 1300px;
  --header-height: 90px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--primary);
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

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

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

.preloader-logo {
  width: 120px;
  height: 120px;
  animation: preloaderPulse 1.5s ease-in-out infinite;
  margin-bottom: 2rem;
}

.preloader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255,215,0,0.3));
}

.preloader-text {
  color: var(--secondary);
  font-family: var(--font-accent);
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  margin-top: 1.5rem;
  overflow: hidden;
}

.preloader-bar::after {
  content: '';
  display: block;
  width: 60%;
  height: 100%;
  background: var(--secondary);
  border-radius: 3px;
  animation: preloaderSlide 1.2s ease-in-out infinite;
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.8; }
}

@keyframes preloaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(280%); }
}

/* ── Header & Navigation ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: 0;
  transition: all var(--transition-base);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 2rem;
  transition: all var(--transition-base);
}

.site-header.transparent {
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 100%);
}

.site-header.scrolled {
  background: var(--primary);
  box-shadow: 0 2px 30px rgba(0,0,0,0.25);
}

.site-header.scrolled .header-inner {
  padding: 0.4rem 2rem;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-left {
  justify-content: flex-end;
}

.nav-right {
  justify-content: flex-start;
}

.nav-link {
  position: relative;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 1rem 1.4rem;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.4rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 2px;
  background: var(--secondary);
  transition: transform var(--transition-base);
  transform-origin: center;
}

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

.nav-link:hover {
  color: var(--secondary);
}

.header-logo {
  margin: 0 1.5rem;
  flex-shrink: 0;
}

.header-logo img {
  height: 70px;
  width: auto;
  transition: height var(--transition-base);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.site-header.scrolled .header-logo img {
  height: 55px;
}

/* Mobile Navigation */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10001;
}

.mobile-toggle span {
  width: 28px;
  height: 2.5px;
  background: var(--white);
  border-radius: 3px;
  transition: all var(--transition-base);
  transform-origin: center;
}

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

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
  z-index: 10000;
  transition: right var(--transition-slow);
  padding: 100px 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

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

.mobile-nav-link {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--secondary);
  padding-left: 0.8rem;
}

.mobile-nav-motto {
  margin-top: auto;
  padding-top: 2rem;
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255,215,0,0.2);
}

/* ── Hero Carousel ── */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}

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

.hero-slide-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 35, 126, 0.45) 0%,
    rgba(26, 35, 126, 0.25) 40%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.hero-slide-content {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  padding: 0 6%;
  z-index: 3;
  text-align: left;
}

.hero-slide-content .hero-badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.45rem 1.2rem;
  border-radius: 30px;
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.3s;
}

.hero-slide.active .hero-badge {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide-content h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 700px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.5s;
}

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

.hero-slide-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  max-width: 550px;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.7s;
}

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

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--secondary);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.95rem 2.4rem;
  border-radius: 50px;
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(30px);
}

.hero-slide.active .hero-btn {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease 0.9s;
}

.hero-btn:hover {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 6px 30px rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.hero-btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.hero-btn:hover svg {
  transform: translateX(4px);
}

.hero-dots {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-base);
}

.hero-dot.active {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: scale(1.2);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  right: 3rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-scroll-indicator .scroll-line {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

.hero-scroll-indicator .scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* ── Quick Stats Bar ── */
.stats-bar {
  background: var(--primary);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent), var(--secondary));
}

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

.stat-item {
  position: relative;
  padding: 0 1rem;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.15);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── Section Common Styles ── */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-dark {
  background: var(--primary);
  color: var(--white);
}

.section-light {
  background: var(--light-gray);
}

.section-bg-image {
  position: relative;
  background-color: var(--primary-dark);
}

.section-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 35, 126, 0.4);
  z-index: 1;
}

.section-bg-image > .container {
  position: relative;
  z-index: 2;
}

.section-bg-image .section-tag {
  color: var(--secondary);
}

.section-bg-image .section-header h2,
.section-bg-image .section-header p {
  color: var(--white);
}

.section-bg-image .section-divider {
  background: var(--secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.8rem;
}

.section-dark .section-tag {
  color: var(--secondary);
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary);
}

.section-dark .section-header h2 {
  color: var(--white);
}

.section-header p {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-light);
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.7);
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--secondary);
  margin: 1rem auto 0;
  border-radius: 3px;
}

/* ── Pathways Section ── */
.pathways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pathway-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
  position: relative;
  border: 1px solid transparent;
}

.pathway-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--secondary);
}

.pathway-card-header {
  padding: 2.5rem 2rem 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pathway-card-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 30px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.pathway-icon {
  width: 70px;
  height: 70px;
  background: rgba(255,215,0,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 2px solid rgba(255,215,0,0.3);
}

.pathway-icon svg {
  width: 34px;
  height: 34px;
  fill: var(--secondary);
}

.pathway-card-header h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.pathway-card-header .pathway-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-style: italic;
  font-family: var(--font-accent);
}

.pathway-card-body {
  padding: 1.5rem 2rem 2rem;
}

.pathway-list {
  margin-bottom: 1.5rem;
}

.pathway-list li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  border-bottom: 1px solid var(--mid-gray);
}

.pathway-list li:last-child {
  border-bottom: none;
}

.pathway-list li::before {
  content: '▸';
  color: var(--secondary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pathway-highlight {
  background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(26,35,126,0.05));
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  border-left: 3px solid var(--secondary);
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.pathway-achievements {
  margin-top: 1rem;
}

.pathway-achievements li {
  font-size: 0.82rem;
  padding: 0.35rem 0;
  border-bottom: none !important;
}

.pathway-achievements li::before {
  content: '🏆';
}

/* ── Why Highway Section ── */

/* ── Pathway Background Card Styles ── */
.pathway-bg-card {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: none;
}

.pathway-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,20,87,0.6) 0%, rgba(13,20,87,0.85) 45%, rgba(13,20,87,0.95) 100%);
  z-index: 1;
  border-radius: var(--border-radius);
  transition: background var(--transition-base);
}

.pathway-bg-card:hover .pathway-bg-overlay {
  background: linear-gradient(180deg, rgba(13,20,87,0.5) 0%, rgba(13,20,87,0.78) 45%, rgba(13,20,87,0.92) 100%);
}

.pathway-bg-content {
  position: relative;
  z-index: 2;
}

.pathway-bg-card .pathway-card-header {
  background: transparent;
}

.pathway-bg-card .pathway-card-header::after {
  display: none;
}

.pathway-bg-card .pathway-card-header h3 {
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.pathway-bg-card .pathway-card-header .pathway-subtitle {
  color: rgba(255,255,255,0.8);
}

.pathway-bg-card .pathway-card-body {
  background: transparent;
}

.pathway-bg-card .pathway-list li {
  color: rgba(255,255,255,0.9);
  border-bottom-color: rgba(255,255,255,0.15);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.pathway-bg-card .pathway-list li::before {
  color: var(--secondary);
  text-shadow: none;
}

.pathway-bg-card .pathway-highlight {
  background: rgba(255,215,0,0.12);
  color: var(--secondary);
  border-left-color: var(--secondary);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.pathway-bg-card .pathway-achievements li {
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.why-card {
  text-align: center;
  padding: 2.5rem 1.8rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

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

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

.why-icon {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.why-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--secondary);
}

.why-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

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

/* ── Facility Background Card Styles ── */
.facility-bg-card {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  padding: 0;
}

.facility-bg-card .sport-card-overlay {
  border-radius: var(--border-radius);
}

.facility-bg-card .sport-card-content {
  padding: 2rem 1.8rem;
}

.facility-bg-card .trophy {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.facility-bg-card h3 {
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.facility-bg-card p {
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.facility-bg-card::before {
  display: none;
}

.facility-bg-card .why-icon {
  display: none;
}

/* ── News & Events Section ── */
.news-carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.news-carousel {
  display: flex;
  gap: 2rem;
  transition: transform var(--transition-slow);
}

.news-card {
  min-width: calc(33.333% - 1.34rem);
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

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

.news-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

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

.news-card-date {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--secondary);
  color: var(--primary-dark);
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.news-card-body {
  padding: 1.5rem;
}

.news-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.news-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.news-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 5;
  box-shadow: var(--shadow-md);
}

.news-nav-btn:hover {
  background: var(--secondary);
  color: var(--primary);
}

.news-nav-btn.prev {
  left: -22px;
}

.news-nav-btn.next {
  right: -22px;
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,215,0,0.06);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(229,57,53,0.05);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-badge {
  display: inline-block;
  background: rgba(255,215,0,0.15);
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  border: 1px solid rgba(255,215,0,0.3);
  margin-bottom: 1.5rem;
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 600;
}

.cta-contact-item svg {
  width: 24px;
  height: 24px;
  fill: var(--secondary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--secondary);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 1rem 2.8rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px rgba(255,215,0,0.3);
}

.btn-primary:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,215,0,0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

/* ── Footer ── */
.site-footer {
  background: var(--primary-dark);
  color: var(--white);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  height: 140px;
  width: auto;
  max-width: 160px;
  margin-bottom: 1rem;
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}

.footer-brand .motto {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.footer-social a:hover svg {
  fill: var(--primary);
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--secondary);
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-newsletter {
  margin-top: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
}

.newsletter-form input {
  flex: 1;
  padding: 0.7rem 1.2rem;
  background: rgba(255,255,255,0.05);
  border: none;
  color: var(--white);
  font-size: 0.85rem;
  outline: none;
}

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

.newsletter-form button {
  background: var(--secondary);
  border: none;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
}

.newsletter-form button:hover {
  background: var(--secondary-dark);
}

.newsletter-form button svg {
  width: 18px;
  height: 18px;
  fill: var(--primary);
}

.footer-map {
  margin-top: 1rem;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  height: 140px;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.5);
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
}

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

/* ── Back To Top ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

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

.back-to-top:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ── Page Banner ── */
.page-banner {
  position: relative;
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.page-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26,35,126,0.9) 0%, rgba(13,20,87,0.8) 100%);
}

.page-banner-content {
  position: relative;
  z-index: 2;
  padding-top: 2rem;
}

.page-banner-content h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 4px 20px rgba(0,0,0,0.4);
}

.page-banner-content .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.page-banner-content .breadcrumb a {
  color: var(--secondary);
}

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

/* ── History Section Logo Background ── */
.history-section {
  position: relative;
  overflow: hidden;
}

.history-logo-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1050px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.history-logo-bg img {
  width: 100%;
  height: auto;
  display: block;
}

.history-section > .container {
  position: relative;
  z-index: 1;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: var(--mid-gray);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 2rem);
  text-align: right;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 2rem);
  text-align: left;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary);
  z-index: 2;
}

.timeline-content {
  background: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

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

/* ── Principal / Leader Message ── */
.message-section {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 3rem;
  align-items: start;
}

.message-photo {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.message-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.message-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(transparent, rgba(26,35,126,0.95));
  color: var(--white);
}

.message-photo-overlay h4 {
  color: var(--white);
  font-size: 1rem;
}

.message-photo-overlay span {
  font-size: 0.8rem;
  color: var(--secondary);
}

.message-text blockquote {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--primary);
  border-left: 4px solid var(--secondary);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.message-text p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.message-signature {
  margin-top: 1.5rem;
}

.message-signature .name {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
}

.message-signature .title {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ── Vision & Mission ── */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.vm-card {
  padding: 3rem;
  border-radius: var(--border-radius);
  text-align: center;
}

.vm-card.vision {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
}

.vm-card.mission {
  background: var(--white);
  border: 2px solid var(--primary);
}

.vm-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.vm-card.vision h3 {
  color: var(--secondary);
}

.vm-card p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.vm-card.vision p {
  color: rgba(255,255,255,0.85);
}

.core-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--light-gray);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.value-item:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateX(5px);
}

.value-item:hover p {
  color: var(--white);
}

.value-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-item:hover .value-icon {
  background: var(--secondary);
}

.value-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--secondary);
}

.value-item:hover .value-icon svg {
  fill: var(--primary);
}

.value-item p {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin: 0;
}

/* ── Teachers / Profiles Grid ── */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

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

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

.teacher-card-img {
  height: 280px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.teacher-card-img svg {
  width: 80px;
  height: 80px;
  fill: rgba(255,215,0,0.3);
}

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

.teacher-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(transparent, rgba(26,35,126,0.95));
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  transition: height var(--transition-base);
  overflow: hidden;
}

.teacher-card:hover .teacher-overlay {
  height: 100%;
}

.teacher-overlay p {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-base) 0.1s;
}

.teacher-card:hover .teacher-overlay p {
  opacity: 1;
  transform: translateY(0);
}

.teacher-card-body {
  padding: 1.2rem;
  text-align: center;
}

.teacher-card-body h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.teacher-card-body span {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ── Departments Tabs ── */
.dept-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.dept-tab {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dept-tab.active,
.dept-tab:hover {
  background: var(--primary);
  color: var(--white);
}

.dept-panel {
  display: none;
  animation: fadeIn 0.5s ease;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Performance Charts ── */
.chart-container {
  max-width: 800px;
  margin: 0 auto;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  height: 300px;
  padding: 2rem 0;
  border-bottom: 2px solid var(--mid-gray);
}

.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.bar {
  width: 60px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--secondary), var(--primary));
  transition: height 1.5s ease;
  position: relative;
}

.bar-value {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
}

.bar-label {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 600;
}

/* ── Sports & Arts Achievement Cards ── */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.achievement-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--secondary);
  transition: all var(--transition-base);
}

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

.achievement-card .trophy {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.achievement-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.achievement-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.achievement-card .year {
  display: inline-block;
  background: rgba(255,215,0,0.15);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-top: 0.8rem;
}

/* ── Sport Card with Background Image ── */
.sport-card {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-left: 4px solid var(--secondary);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sport-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,20,87,0.45) 0%, rgba(13,20,87,0.85) 60%, rgba(13,20,87,0.95) 100%);
  z-index: 1;
  transition: background var(--transition-base);
}

.sport-card:hover .sport-card-overlay {
  background: linear-gradient(180deg, rgba(13,20,87,0.35) 0%, rgba(13,20,87,0.8) 55%, rgba(13,20,87,0.92) 100%);
}

.sport-card-content {
  position: relative;
  z-index: 2;
}

.sport-card .trophy {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.sport-card h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.sport-card p {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  line-height: 1.5;
}

.sport-card .year {
  background: rgba(255,215,0,0.25);
  color: var(--secondary);
  font-weight: 700;
  text-shadow: none;
  border: 1px solid rgba(255,215,0,0.3);
}

/* ── Board of Governors Watermark Logo ── */
.bog-section {
  position: relative;
  overflow: hidden;
}

.bog-section .section-tag {
  color: var(--secondary);
}

.bog-section .section-header h2 {
  color: #ffffff;
}

.bog-section .section-divider {
  background: var(--secondary);
}

.bog-section .message-text blockquote {
  color: var(--secondary);
  border-left-color: var(--secondary);
}

.bog-section .message-text p {
  color: rgba(255,255,255,0.9);
}

.bog-section .message-signature .name {
  color: #ffffff;
}

.bog-section .message-signature .title {
  color: rgba(255,255,255,0.7);
}

.bog-logo-watermark {
  position: absolute;
  left: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 550px;
  height: 550px;
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}

.bog-logo-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(26, 35, 126, 0.3));
}

.bog-section .container {
  position: relative;
  z-index: 1;
}

/* ── Gallery Masonry ── */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.gallery-filter-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.gallery-grid {
  columns: 4;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform var(--transition-base);
}

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

.gallery-item img {
  width: 100%;
  display: block;
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-medium);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-base);
}

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

.gallery-item-overlay svg {
  width: 40px;
  height: 40px;
  fill: var(--white);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--white);
  color: var(--primary);
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-xl);
}

/* ── Boarding Day Timeline ── */
.day-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.day-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.day-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.day-time {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.day-activity {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ── Clubs Grid ── */
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.club-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.club-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
  border-left: 3px solid var(--secondary);
}

.club-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.club-card h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.club-card p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}

/* ── Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.85rem 1.2rem;
  border: 2px solid var(--mid-gray);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color var(--transition-fast);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
}

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

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.5rem;
  background: var(--light-gray);
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
}

.contact-info-card:hover {
  background: var(--primary);
  color: var(--white);
}

.contact-info-card:hover h4,
.contact-info-card:hover p {
  color: var(--white);
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-card:hover .contact-info-icon {
  background: var(--secondary);
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--secondary);
}

.contact-info-card:hover .contact-info-icon svg {
  fill: var(--primary);
}

.contact-info-card h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  font-family: var(--font-body);
}

.contact-info-card p {
  font-size: 0.9rem;
  margin: 0;
}

.contact-map {
  margin-top: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 300px;
  box-shadow: var(--shadow-md);
}

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

/* ── Student Leader Cards ── */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.leader-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.leader-card-img {
  height: 260px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.leader-card-img svg {
  width: 80px;
  height: 80px;
  fill: rgba(255,215,0,0.3);
}

.leader-card-body {
  padding: 1.5rem;
}

.leader-card-body h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.leader-card-body .role {
  display: inline-block;
  background: rgba(255,215,0,0.15);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}

.leader-card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* ── Motto Banner ── */
.motto-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.motto-banner::before,
.motto-banner::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,215,0,0.05);
}

.motto-banner::before { top: -80px; left: -80px; }
.motto-banner::after { bottom: -80px; right: -80px; }

.motto-text {
  font-family: var(--font-accent);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
  color: var(--secondary);
  position: relative;
  z-index: 2;
}

.motto-text .vis {
  display: block;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-style: normal;
  font-family: var(--font-body);
}

/* ── Responsive Design ── */
@media (max-width: 1024px) {
  .nav-left, .nav-right {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .site-header .header-inner {
    justify-content: space-between;
  }

  .pathways-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

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

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

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

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

  .message-section {
    grid-template-columns: 1fr;
  }

  .message-photo img {
    height: 300px;
  }

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

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .timeline::before {
    left: 2rem;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: row;
    padding-right: 0;
    padding-left: 4.5rem;
    text-align: left;
  }

  .timeline-marker {
    left: 2rem;
  }

  .gallery-grid {
    columns: 3;
  }

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

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

@media (max-width: 768px) {
  .hero-slide-content {
    text-align: center;
    padding: 0 1.5rem;
  }

  .hero-slide-content h1 {
    max-width: 100%;
  }

  .hero-slide-content p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-dots {
    bottom: 2rem;
  }

  .hero-scroll-indicator {
    display: none;
  }

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

  .why-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .achievement-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

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

  .news-card {
    min-width: calc(100% - 0rem);
  }

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

  .gallery-grid {
    columns: 2;
  }

  .section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.2rem;
  }

  .day-timeline {
    grid-template-columns: 1fr 1fr;
  }

  .bar-chart {
    height: 200px;
  }

  .bar {
    width: 40px;
  }

  .cta-contacts {
    flex-direction: column;
    gap: 1rem;
  }

  .page-banner {
    height: 40vh;
    min-height: 280px;
  }

  .page-banner-bg {
    background-attachment: scroll;
  }
}

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

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

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .hero-slide-content h1 {
    font-size: 1.8rem;
  }

  .day-timeline {
    grid-template-columns: 1fr;
  }

  .dept-tabs {
    gap: 0.5rem;
  }

  .dept-tab {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }
}

/* ── Utilities ── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ── Print Styles ── */
@media print {
  .site-header,
  .back-to-top,
  .preloader,
  .hero-carousel {
    display: none !important;
  }

  .section {
    padding: 2rem 0;
  }

  body {
    color: #000;
    background: #fff;
  }
}
