/* ==========================================================================
   CSS Variables (Design System)
   ========================================================================== */
:root {
  /* Core */
  --navy-950:   #0A1730;
  --navy-900:   #0F1F40;
  --navy-800:   #16294F;
  --navy-700:   #1F3563;

  /* Gold */
  --gold-600:   #B8923A;
  --gold-500:   #C9A227;
  --gold-100:   #F3E6C2;

  /* Maroon */
  --maroon-700: #7B2330;
  --maroon-100: #F4E2E2;

  /* Neutrals */
  --ivory-50:   #FAF8F3;
  --paper-100:  #F2EFE6;
  --ink-900:    #15171C;
  --ink-600:    #4A4E58;
  --white:      #FFFFFF;

  /* Borders / Dividers */
  --hairline:   rgba(184, 146, 58, 0.25);

  /* Spacing */
  --section-py: 5rem;
}

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

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink-900);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--navy-950);
  line-height: 1.2;
}

h1, h2 {
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
.eyebrow {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gold-600);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.body-text {
  color: var(--ink-600);
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* ==========================================================================
   Layout & Components
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: var(--section-py) 0;
}

.light-section {
  background-color: var(--ivory-50);
}

.dark-section, .dark-band {
  background-color: var(--navy-900);
  color: var(--white);
}

.dark-section h2, .dark-band h2, .dark-section h3, .dark-band h3 {
  color: var(--white);
}

.dark-section .body-text, .dark-band .body-text {
  color: rgba(255, 255, 255, 0.7);
}

.align-center {
  text-align: center;
  margin-bottom: 3rem;
}

.align-left {
  text-align: left;
  margin-bottom: 2rem;
}

.header-decoration {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.75rem;
  display: inline-flex;
}

.icon-small {
  width: 20px;
  height: 20px;
  color: var(--gold-600);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

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

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

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

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

.dark-section .btn-outline, .dark-band .btn-outline {
  border-color: var(--gold-600);
  color: var(--gold-600);
}

/* Duotone Image Overlay */
.duotone-overlay {
  position: relative;
}

.duotone-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--navy-900);
  mix-blend-mode: color;
  opacity: 0.4;
  pointer-events: none;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
  padding: 1.5rem 0;
  background-color: var(--navy-950);
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
}

.nav-logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
}

.nav-wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--gold-600);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.mobile-toggle .bar {
  width: 24px;
  height: 2px;
  background-color: var(--white);
  transition: all 0.3s ease;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  margin-top: 84px;
  background-color: var(--navy-900);
  background-size: cover;
  background-position: center 30%;
  color: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 23, 48, 0.4) 0%, rgba(10, 23, 48, 0.15) 50%, transparent 100%);
  z-index: 1;
}

.hero-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: block;
  z-index: 2;
  position: relative;
}

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

.hero-title {
  font-size: 4rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.1;
  /* Will be animated by GSAP */
  opacity: 0;
  transform: translateY(20px);
}

.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold-600);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-subhead {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 90%;
  opacity: 0;
  transform: translateY(20px);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
}

/* Hero Background Floating Icons */
.hero-bg-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1; /* Sits behind content (z-index 2) but in front of background image/overlay */
  overflow: hidden;
}

.bg-icon {
  position: absolute;
  color: var(--gold-600);
  opacity: 0.04; /* Extremely subtle watermark look */
  transition: opacity 0.3s ease;
}

/* Positioned on the left/center of the screen to never cover the teacher's portrait on the right */
.icon-briefcase {
  top: 12%;
  left: 8%;
  width: 130px;
  height: 130px;
  animation: bg-float-1 22s ease-in-out infinite alternate;
}

.icon-chart {
  bottom: 18%;
  left: 4%;
  width: 150px;
  height: 150px;
  animation: bg-float-2 28s ease-in-out infinite alternate;
}

.icon-globe {
  top: 42%;
  left: 32%;
  width: 100px;
  height: 100px;
  animation: bg-float-3 20s ease-in-out infinite alternate;
}

.icon-book {
  top: 8%;
  left: 42%;
  width: 120px;
  height: 120px;
  animation: bg-float-2 24s ease-in-out infinite alternate;
}

.icon-pie {
  bottom: 12%;
  left: 24%;
  width: 110px;
  height: 110px;
  animation: bg-float-1 26s ease-in-out infinite alternate;
}

/* Background floating animations */
@keyframes bg-float-1 {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  100% {
    transform: translateY(-20px) rotate(10deg) scale(1.03);
  }
}

@keyframes bg-float-2 {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  100% {
    transform: translateY(20px) rotate(-10deg) scale(0.97);
  }
}

@keyframes bg-float-3 {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  100% {
    transform: translateX(12px) translateY(-12px) rotate(6deg);
  }
}

/* Subtle Features List */
.hero-features {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  opacity: 0; /* GSAP */
  transform: translateY(20px);
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(184, 146, 58, 0.1);
  border: 1px solid rgba(184, 146, 58, 0.2);
  color: var(--gold-600);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.hero-feature:hover .feature-icon-wrapper {
  background: rgba(184, 146, 58, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184, 146, 58, 0.15);
}

.feature-icon {
  width: 20px;
  height: 20px;
}

.feature-info {
  display: flex;
  flex-direction: column;
}

.feature-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

.feature-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.1rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--gold-600);
  z-index: 2;
  opacity: 0; /* GSAP */
}

.scroll-indicator .line {
  width: 1px;
  height: 40px;
  background-color: var(--gold-600);
  margin-bottom: 0.5rem;
  animation: pulseHeight 2s infinite ease-in-out;
}

@keyframes pulseHeight {
  0% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(0.5); transform-origin: top; opacity: 0.5; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* ==========================================================================
   Stats Strip
   ========================================================================== */
.stats-strip {
  position: relative;
  margin-top: -50px; /* Overlap hero */
  z-index: 10;
  padding: 0 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background-color: transparent;
}

.stat-card {
  background-color: var(--ivory-50);
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-top: 3px solid var(--gold-600);
  box-shadow: 0 10px 30px rgba(10, 23, 48, 0.08);
}

.stat-num, .stat-text {
  font-size: 3.5rem;
  color: var(--gold-600);
  margin-bottom: 0.25rem;
  display: inline-block;
  line-height: 1;
}

.stat-plus {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--gold-600);
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 20px 40px rgba(10, 23, 48, 0.1);
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: 30%;
  height: 30%;
  border-top: 1px solid var(--gold-600);
  border-left: 1px solid var(--gold-600);
  z-index: -1;
}

.pull-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--navy-800);
  padding-left: 1.5rem;
  border-left: 2px solid var(--gold-600);
  margin-top: 2rem;
}

/* ==========================================================================
   Credentials Section
   ========================================================================== */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.credential-card {
  background-color: var(--navy-800);
  padding: 2rem;
  border-top: 1px solid var(--hairline);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.credential-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cred-icon {
  width: 32px;
  height: 32px;
  color: var(--gold-600);
  margin-bottom: 1.5rem;
}

.cred-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.cred-issuer {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Experience Timeline Section
   ========================================================================== */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
}

.timeline-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0; /* GSAP will animate this */
  background-color: var(--gold-600);
}

.timeline-node {
  position: relative;
  width: 50%;
  padding: 2rem;
  opacity: 0; /* Initial state for GSAP */
}

.timeline-node:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: 3rem;
}

.timeline-node:nth-child(even) {
  left: 50%;
  text-align: left;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  top: 2.5rem;
  width: 12px;
  height: 12px;
  background-color: var(--navy-900);
  border: 2px solid var(--gold-600);
  border-radius: 50%;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.timeline-node.active .timeline-dot {
  background-color: var(--gold-600);
}

.timeline-node:nth-child(odd) .timeline-dot {
  right: -6px;
}

.timeline-node:nth-child(even) .timeline-dot {
  left: -6px;
}

.node-title {
  font-size: 1.5rem;
  color: var(--gold-600);
  margin-bottom: 0.25rem;
}

.node-institution {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.node-duration {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Subjects Section
   ========================================================================== */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.subject-card {
  background-color: var(--white);
  padding: 2.5rem 2rem;
  border: 1px solid var(--hairline);
  box-shadow: 0 4px 12px rgba(10, 23, 48, 0.02);
}

.subject-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--navy-900);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1rem;
}

.syllabus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  background-color: var(--paper-100);
  color: var(--navy-800);
  border-radius: 2px;
}

/* ==========================================================================
   Philosophy Section
   ========================================================================== */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.method-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background-color: var(--paper-100);
  border-left: 2px solid transparent;
  transition: all 0.3s ease;
}

.method-card:hover {
  background-color: var(--white);
  border-left-color: var(--gold-600);
  box-shadow: 0 10px 20px rgba(10, 23, 48, 0.05);
}

.method-icon-wrapper {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-800);
  transition: color 0.3s ease;
}

.method-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.method-card:hover .method-icon-wrapper {
  color: var(--gold-600);
}

.method-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.method-desc {
  font-size: 0.95rem;
  color: var(--ink-600);
  margin: 0;
}



/* ==========================================================================
   Results Section
   ========================================================================== */

.results-swiper {
  padding-bottom: 3.5rem;
  padding-left: 10px;
  padding-right: 10px;
  position: relative;
}

.results-swiper .swiper-button-next,
.results-swiper .swiper-button-prev {
  background-color: var(--white);
  color: var(--maroon-700);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(10, 23, 48, 0.15);
  transition: all 0.3s ease;
  margin-top: -22px;
}

.results-swiper .swiper-button-next:after,
.results-swiper .swiper-button-prev:after {
  font-size: 1.25rem;
  font-weight: 800;
}

.results-swiper .swiper-button-next:hover,
.results-swiper .swiper-button-prev:hover {
  background-color: var(--maroon-700);
  color: var(--white);
  transform: scale(1.1);
}

.results-swiper .swiper-pagination-bullet-active {
  background: var(--maroon-700);
}


.results-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.result-image-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 23, 48, 0.08);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  background-color: var(--white);
  border: 1px solid rgba(10, 23, 48, 0.05);
}

.result-image-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(10, 23, 48, 0.15);
}

.result-image-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-bottom: 4px solid var(--maroon-700);
}

/* ==========================================================================
   Operations Section
   ========================================================================== */
.operations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.ops-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.ops-list li {
  display: flex;
  gap: 1rem;
}

.list-icon {
  width: 24px;
  height: 24px;
  color: var(--gold-600);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.ops-list h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.ops-list p {
  color: var(--ink-600);
  font-size: 0.95rem;
}

.timetable-notice {
  font-size: 0.9rem;
  color: var(--ink-600);
  padding: 1rem;
  background-color: var(--ivory-50);
  border-left: 2px solid var(--navy-800);
}

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

.institute-card {
  padding: 1.5rem;
  background-color: var(--paper-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.institute-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
}

.ops-image-wrapper {
  margin-top: 2rem;
}

.ops-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 2px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--gold-600);
  flex-shrink: 0;
}

.contact-link {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy-900);
  margin-bottom: 0.25rem;
}

.contact-link:hover {
  color: var(--gold-600);
}

.wa-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-card {
  background-color: var(--white);
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(10, 23, 48, 0.05);
  border-top: 4px solid var(--navy-900);
}

.contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--ink-600);
  margin-bottom: 2rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--navy-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo {
  height: 150px;
  width: 150px;
  object-fit: contain;
}

.footer-wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
}

.footer-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold-600);
}

.footer h4 {
  font-family: 'Inter', sans-serif;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--white);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icon:not(.disabled):hover {
  background-color: var(--gold-600);
  border-color: var(--gold-600);
  color: var(--navy-950);
}

.social-icon.disabled {
  opacity: 0.5;
  cursor: default;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
  .credentials-grid { grid-template-columns: repeat(2, 1fr); }
  .philosophy-grid { grid-template-columns: 1fr; }
  .contact-grid { gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--navy-900);
    flex-direction: column;
    justify-content: center;
    transition: right 0.4s ease;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .nav-link {
    font-size: 1.5rem;
  }
  
  .nav-cta {
    margin-top: 2rem;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .mobile-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-toggle.active .bar:nth-child(2) { opacity: 0; }
  .mobile-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero {
    display: block;
    min-height: auto;
    background-size: 150% auto;
    background-repeat: no-repeat;
    background-position: 135% top;
    padding-top: 50vh;
    padding-bottom: 4rem;
    background-color: #000000;
  }

  .hero-container {
    display: block;
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
    width: 100%;
  }

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

  .hero-features {
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2.5rem auto;
    max-width: 280px;
  }

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

  .hero-tagline {
    font-size: 1.25rem;
    margin-bottom: 30vh;
  }

  .hero-subhead {
    font-size: 1rem;
    margin: 0 auto 2rem auto;
  }
  
  .hero-actions {
    justify-content: center;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
  
  .hero-overlay {
    background: linear-gradient(180deg, transparent 0%, transparent 35%, rgba(0, 0, 0, 0.8) 50%, #000000 70%);
  }
  
  .stats-strip { margin-top: 0; padding: 2rem 1.5rem; background-color: var(--ivory-50); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { border-top: none; border-bottom: 1px solid var(--hairline); box-shadow: none; background: transparent; padding: 1.5rem 0;}
  .stat-card:nth-child(n+3) { border-bottom: none; }
  
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrapper { order: -1; }
  
  .timeline-line { left: 24px; transform: none; }
  .timeline-node { width: 100%; left: 0 !important; padding-left: 4.5rem !important; text-align: left !important; padding-right: 0 !important; }
  .timeline-dot { left: 18px !important; right: auto !important; transform: none; }
  
  .subjects-grid { grid-template-columns: 1fr; }
  
  .results-image-grid { column-count: 2; }
  
  .operations-grid { grid-template-columns: 1fr; }
  .institute-card { flex-direction: column; align-items: flex-start; gap: 1rem; }
  
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { border-bottom: 1px solid var(--hairline); }
  .stat-card:last-child { border-bottom: none; }
  .credentials-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Gallery Slider
   ========================================================================== */
.gallery-slider {
  overflow: hidden;
  padding-bottom: 5rem;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.slider-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  /* fade edges */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.slider-track {
  display: inline-flex;
  gap: 2rem;
  padding: 2rem 0;
  animation: marquee 50s linear infinite;
}

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

.slider-track img {
  height: 350px;
  width: auto;
  border-radius: 12px;
  border: 1px solid rgba(184, 146, 58, 0.3);
  object-fit: cover;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.slider-track img:hover {
  transform: scale(1.05);
  border-color: var(--gold-600);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 1rem)); }
}

@media (max-width: 768px) {
  .slider-track img {
    height: 250px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.result-card-content {
  padding: 1.75rem;
  background-color: var(--white);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.result-card-content .student-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--navy-900);
  line-height: 1.2;
}

.result-card-content .exam-info {
  font-size: 0.9rem;
  color: var(--ink-500);
  line-height: 1.6;
  margin: 0;
}
