@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Core palette */
  --bg-color: #0b0f19;
  --bg-gradient: linear-gradient(135deg, #0b0f19 0%, #111827 100%);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  --primary-color: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.5);
  --secondary-color: #3b82f6;
  --accent-color: #10b981;

  /* Hero */
  --hero-text: #ffffff;
  --hero-muted: #e5e7eb;

  /* Section backgrounds */
  --cream: #fbf9f6;
  --navy: #0f172a;
  --navy-deep: #020617;
  --body-text: #4b5563;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(12px);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Offset for the sticky navbar */
}

body {
  font-family: var(--font-sans);
  background: var(--bg-gradient);
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::selection {
  background-color: var(--primary-color);
  color: #fff;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
}

/* Icons rendered from the inline <symbol> sprite.
   The stroke attributes live here because <symbol> only carries path data. */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon-sm { width: 16px; height: 16px; }
.icon-18 { width: 18px; height: 18px; }
.icon-20 { width: 20px; height: 20px; }
.icon-28 { width: 28px; height: 28px; }
.icon-32 { width: 32px; height: 32px; }

.icon-primary { color: var(--primary-color); }

/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  overflow: hidden;
}

.section--cream { background-color: var(--cream); color: #1f2937; }
.section--navy  { background-color: var(--navy);  color: #fff; }
.section--white { background-color: #ffffff;      color: #1f2937; }
.section--mist  { background-color: #f8fafc;      color: #1f2937; }

/* Small uppercase eyebrow label above every section heading */
.section-label {
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Large serif section heading */
.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--navy);
}

.section--navy .section-heading { color: #fff; }

/* The italic coloured phrase inside headings */
.accent {
  color: var(--primary-color);
  font-style: italic;
}

.section-intro {
  color: var(--body-text);
  font-size: 1.05rem;
  line-height: 1.7;
}

.heading-block { margin-bottom: 64px; }
.text-center   { text-align: center; }

/* ==========================================================================
   4. SCROLL REVEAL  (replaces framer-motion)
   Elements start hidden and transition in when they enter the viewport.
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal="up"]    { transform: translateY(30px); }
[data-reveal="left"]  { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="scale"] { transform: scale(0.95); }
[data-reveal="fade"]  { transform: none; }

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays, applied via data-delay in the markup */
[data-delay="50"]  { transition-delay: 50ms; }
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="150"] { transition-delay: 150ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="250"] { transition-delay: 250ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="350"] { transition-delay: 350ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="450"] { transition-delay: 450ms; }
[data-delay="500"] { transition-delay: 500ms; }
[data-delay="550"] { transition-delay: 550ms; }

/* Respect the OS "reduce motion" setting */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   5. NAVBAR
   ========================================================================== */

.navbar {
  background-color: rgba(251, 249, 246, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0 24px;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
  opacity: 0;
  transform: translateY(-20px);
  animation: navbarIn 0.5s ease forwards;
}

@keyframes navbarIn {
  to { opacity: 1; transform: translateY(0); }
}

.navbar-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.navbar-logos img { object-fit: contain; }

.navbar-logos .logo-main {
  height: 100px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.navbar-logos .logo-badge { height: 40px; }

.desktop-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.desktop-links a {
  text-decoration: none;
  color: var(--body-text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.desktop-links a:hover { color: var(--primary-color); }

.nav-cta {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.nav-cta:hover  { transform: scale(1.05); }
.nav-cta:active { transform: scale(0.95); }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy);
  padding: 4px;
}

.mobile-menu-toggle .icon { width: 28px; height: 28px; }

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  visibility: hidden;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 500;
}

.mobile-menu .nav-cta {
  border-radius: 8px;
  padding: 14px;
  font-size: 1rem;
  margin-top: 8px;
}

/* ==========================================================================
   6. HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 40px 0;
}

/* Background photo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Dark-to-transparent overlay so the left-hand text stays readable */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.1) 100%);
  z-index: 1;
}

.hero > .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.hero-content {
  flex: 1 1 500px;
  max-width: 750px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 24px;
  color: #fff;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-badge span {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: #ffffff;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-sub {
  color: var(--hero-muted);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-outline {
  background-color: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 14px 28px;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-outline:hover { background-color: rgba(255, 255, 255, 0.12); }

/* Stats bar */
.hero-stats {
  margin-top: 80px;
  background-color: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}

.hero-stat {
  flex: 1;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat:last-child { border-right: none; }

.hero-stat-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.7rem;
  color: var(--hero-muted);
  letter-spacing: 1px;
  font-weight: 600;
}

/* Enquiry / application form card */
.admission-form-wrapper {
  flex: 1 1 350px;
  max-width: 450px;
  background-color: #fff;
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
}

.admission-form-wrapper h3 {
  color: var(--navy);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: var(--font-serif);
}

.form-subtitle {
  color: var(--primary-color);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.enquiry-form input,
.enquiry-form select {
  width: 100%;
  padding: 14px 16px;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #1f2937;
  outline: none;
  font-size: 0.95rem;
  font-family: inherit;
}

.enquiry-form input:focus,
.enquiry-form select:focus { border-color: var(--primary-color); }

.form-submit {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: transform 0.2s;
}

.form-submit:hover { transform: translateY(-2px); }

.form-status {
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-color);
  min-height: 1.2em;
}

/* ==========================================================================
   7. OVERVIEW
   ========================================================================== */

.overview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
}

.overview-col-left  { flex: 1 1 500px; }
.overview-col-right { flex: 1 1 400px; }

.overview-col-left h2 { margin-bottom: 32px; }

.overview-col-left p {
  color: var(--body-text);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.overview-col-left p:last-of-type { margin-bottom: 48px; }

.overview-cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.info-card {
  flex: 1;
  min-width: 200px;
  background-color: #fff;
  padding: 32px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.info-card .icon { margin-bottom: 20px; }

.info-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--navy);
}

.info-card p {
  color: var(--body-text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.overview-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   8. RCI ADVANTAGE
   ========================================================================== */

.rci-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 64px;
}

.rci-intro-left  { flex: 1 1 500px; }
.rci-intro-right { flex: 1 1 400px; padding-top: 12px; }

.rci-intro-right p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 500px;
}

.rci-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.dark-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px 32px;
  background-color: rgba(255, 255, 255, 0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.3s;
}

.dark-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
  border-color: var(--primary-color);
}

.dark-card .icon { margin-bottom: 24px; }

.dark-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: #fff;
}

.dark-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.rci-quote {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.rci-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.5;
}

/* ==========================================================================
   9. WHY CHOOSE
   ========================================================================== */

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.reason-card {
  background-color: #fff;
  padding: 40px 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reason-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* The seventh reason spans the full row, as in the original layout */
.reason-card--wide { grid-column: 1 / -1; }

.reason-card .icon { margin-bottom: 24px; }

.reason-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--navy);
}

.reason-card p {
  color: var(--body-text);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   10. ADMISSION PATH
   ========================================================================== */

.admission-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.detail-card {
  background-color: var(--cream);
  padding: 32px 24px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.detail-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
}

.detail-card .icon { margin-bottom: 24px; }

.detail-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--navy);
}

.detail-card p {
  color: var(--body-text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.admission-steps {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.step-card {
  flex: 1 1 300px;
  background-color: #ffffff;
  padding: 40px 32px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.step-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--primary-color);
  opacity: 0.5;
  margin-bottom: 16px;
}

.step-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--navy);
}

.step-card p {
  color: var(--body-text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.step-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 8px;
  color: var(--primary-color);
}

/* ==========================================================================
   11. CURRICULUM
   ========================================================================== */

.curriculum-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: center;
}

.curriculum-col-left  { flex: 1 1 400px; }
.curriculum-col-right { flex: 1 1 500px; }

.curriculum-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.curriculum-col-right .section-intro { margin-bottom: 48px; }

.curriculum-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 32px;
}

.curriculum-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.curriculum-item .icon { margin-top: 2px; }

.curriculum-item span {
  color: #1a3629;
  font-weight: 500;
  line-height: 1.5;
}

/* ==========================================================================
   12. CAREER OPPORTUNITIES
   ========================================================================== */

.careers-intro {
  color: #a7b8af;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 24px auto 0;
}

.careers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.career-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.25s ease, background-color 0.3s ease,
              border-color 0.3s ease, box-shadow 0.25s ease;
}

.career-card:hover {
  transform: translateY(-6px);
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.career-icon {
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.career-card span {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ==========================================================================
   13. CAMPUS GALLERY
   ========================================================================== */

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

.campus-tile {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
}

.campus-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  cursor: pointer;
}

.campus-tile:hover img { transform: scale(1.05); }

/* Explicit placement recreating the original mosaic */
.campus-tile--a { grid-area: 1 / 1 / 3 / 3; }
.campus-tile--b { grid-area: 1 / 3 / 2 / 4; }
.campus-tile--c { grid-area: 1 / 4 / 2 / 5; }
.campus-tile--d { grid-area: 2 / 3 / 3 / 4; }
.campus-tile--e { grid-area: 2 / 4 / 3 / 5; }

/* ==========================================================================
   14. FAQ
   ========================================================================== */

.faq-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: flex-start;
}

.faq-sticky-header {
  flex: 1 1 400px;
  position: sticky;
  top: 100px;
  z-index: 10;
}

.faq-sticky-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 4vw, 4rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 24px;
}

.faq-helpline {
  color: var(--body-text);
  font-size: 1.05rem;
  line-height: 1.7;
}

.faq-helpline a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid var(--primary-color);
}

.faq-list {
  flex: 1 1 600px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-item { border-bottom: 1px solid rgba(0, 0, 0, 0.06); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq-question > span {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 600;
}

.faq-toggle {
  background: #f3f4f6;
  color: #374151;
  border-radius: 50%;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-toggle {
  background: var(--primary-color);
  color: #fff;
}

/* The 0fr -> 1fr grid trick animates to the answer's natural height */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.3s ease, opacity 0.3s ease;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer > div { overflow: hidden; }

.faq-answer p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */

.footer {
  background-color: var(--navy-deep);
  color: #a7b8af;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 64px;
  margin-bottom: 64px;
}

.footer-logo {
  height: 120px;
  object-fit: contain;
  margin-bottom: 24px;
}

.footer-about {
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
  font-family: var(--font-sans);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer a {
  color: #a7b8af;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover { color: #fff; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-contact-row--top { align-items: flex-start; }
.footer-contact-row--top .icon { margin-top: 2px; }

.footer-contact-row a {
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social a {
  display: flex;
  color: #a7b8af;
}

.footer-social a:hover { color: #fff; }

/* ==========================================================================
   16. RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .desktop-links { display: none !important; }
  .mobile-menu-toggle { display: block; }

  .section { padding: 60px 0; }
  .container { padding: 0 16px; }

  .section-heading { font-size: 2rem; }
  .faq-sticky-header h2 { font-size: 2.25rem; }

  /* Scale the navbar logos down so all three fit */
  .navbar-logos { gap: 8px; }
  .navbar-logos .logo-main  { height: 56px; }
  .navbar-logos .logo-badge { height: 28px; }

  .admission-form-wrapper {
    width: 100%;
    max-width: none;
    margin-top: 32px;
  }

  /* A sticky FAQ heading fights the accordion on a small screen */
  .faq-sticky-header {
    position: relative;
    top: 0;
    z-index: 1;
  }

  .faq-grid,
  .overview-grid,
  .curriculum-grid { gap: 40px; }

  /* Campus mosaic collapses to a single column */
  .campus-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .campus-tile {
    grid-area: auto !important;
    height: 250px;
  }

  /* Admission steps become a horizontal snap-scroller */
  .admission-steps {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 24px;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    scrollbar-width: none;
  }

  .admission-steps::-webkit-scrollbar { display: none; }

  .step-card {
    flex: 0 0 75vw;
    scroll-snap-align: start;
  }

  .step-arrow { display: none; }

  .hero-stats { margin-top: 48px; }
  .hero-stat { flex: 1 1 50%; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.5rem; }
  .hero-badge span { font-size: 0.7rem; letter-spacing: 0.5px; }
  .admission-form-wrapper { padding: 32px 24px; }
  .overview-cards { flex-direction: column; }
  .rci-quote { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-grid { gap: 40px; }
}
