/* ===== CSS VARIABLES ===== */
:root {
  --navy: #0a2351;
  --blue: #1a4f9e;
  --blue-mid: #1e5bb8;
  --blue-light: #e8f0fd;
  --gold: #c9a227;
  --gold-light: #f0d980;
  --gold-pale: #fdf8e7;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --gray-100: #f0f4f8;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #4a5568;
  --gray-800: #1a202c;
  --shadow-sm: 0 2px 8px rgba(10,35,81,0.08);
  --shadow-md: 0 4px 20px rgba(10,35,81,0.12);
  --shadow-lg: 0 8px 40px rgba(10,35,81,0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Lora', Georgia, serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

p { color: var(--gray-600); }

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

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

ul { list-style: none; }

/* ===== GOOGLE FONTS IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Lora:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

/* ===== UTILITY CLASSES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 60px 0; }

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}

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

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(201,162,39,0.4);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,162,39,0.5);
}

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

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-blue:hover {
  background: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: var(--navy);
  box-shadow: var(--shadow-lg);
  padding-top: 0;
}

.navbar.scrolled .nav-logo-text span { color: var(--gold); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-icon {
  width: 48px;
  height: 48px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--navy);
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-text strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.1;
}

.nav-logo-text span {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  padding: 8px 16px;
  border-radius: 50px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.nav-links .nav-apply {
  background: var(--gold);
  color: var(--navy);
  padding: 9px 20px;
  font-weight: 600;
  margin-left: 8px;
}

.nav-links .nav-apply:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 20px 24px 30px;
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,0.1);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.mobile-nav a:hover { color: var(--gold); padding-left: 8px; }

.mobile-nav .mob-apply {
  display: block;
  margin-top: 20px;
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  padding: 14px;
  border-radius: 50px;
  font-weight: 700;
  border: none;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/building1.png');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.35);
  transform: scale(1.05);
  animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,35,81,0.7) 0%, rgba(26,79,158,0.4) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,162,39,0.2);
  border: 1px solid rgba(201,162,39,0.5);
  color: var(--gold-light);
  padding: 8px 18px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease both;
}

.hero-badge::before { content: '★'; font-size: 0.75rem; }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero h1 span { color: var(--gold); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  margin-bottom: 44px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.45s both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
  animation: fadeInUp 0.8s ease 0.6s both;
  flex-wrap: wrap;
  gap: 32px;
}

.hero-stat strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.hero-stat span {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s ease infinite;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

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

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

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

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.about-img-main img { width: 100%; height: 100%; object-fit: cover; }

.about-img-float {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

.about-img-float img { width: 100%; height: 140px; object-fit: cover; }

.about-badge {
  position: absolute;
  top: -20px;
  right: 40px;
  background: var(--gold);
  color: var(--navy);
  padding: 16px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-badge strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.about-badge span {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--off-white);
  border-radius: var(--radius);
  transition: var(--transition);
}

.about-feature:hover { background: var(--blue-light); transform: translateY(-2px); }

.about-feature-icon {
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.about-feature-text strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.about-feature-text span {
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* ===== ACADEMICS PREVIEW ===== */
.academics-preview { background: var(--off-white); }

.grades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.grade-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-bottom: 4px solid transparent;
  transition: var(--transition);
  cursor: default;
}

.grade-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--gold);
}

.grade-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.grade-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.grade-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--gray-400);
}

/* ===== GALLERY PREVIEW ===== */
.gallery-preview { background: var(--navy); }
.gallery-preview .section-title { color: var(--white); }
.gallery-preview .section-label { color: var(--gold); }
.gallery-preview .section-subtitle { color: rgba(255,255,255,0.7); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  margin-top: 48px;
}

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

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 1;
}

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

.gallery-item:first-child img { min-height: 320px; }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,35,81,0.8), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay span {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== CONTACT PREVIEW / CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,162,39,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .section-title { color: var(--white); }
.cta-section .section-subtitle { color: rgba(255,255,255,0.75); margin: 16px auto 36px; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 160px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.page-hero-content { position: relative; z-index: 1; }

.page-hero h1 { color: var(--white); font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 16px; }

.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

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

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.mv-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--blue);
  transition: var(--transition);
}

.mv-card:last-child { border-top-color: var(--gold); }
.mv-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

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

.mv-card h3 { font-size: 1.5rem; margin-bottom: 16px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.value-item {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.value-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

.value-item h4 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.value-item p { font-size: 0.85rem; }

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

.about-story-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-story-imgs img {
  border-radius: var(--radius);
  width: 100%;
  height: 200px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.about-story-imgs img:first-child {
  grid-column: span 2;
  height: 260px;
}

/* ===== ACADEMICS PAGE ===== */
.academics-section { background: var(--white); }

.curriculum-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-light);
  border: 1px solid rgba(26,79,158,0.2);
  color: var(--blue);
  padding: 12px 24px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 48px;
}

.phases-grid {
  display: grid;
  gap: 24px;
}

.phase-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.phase-card:hover { box-shadow: var(--shadow-lg); transform: translateX(4px); }

.phase-header {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.phase-card:nth-child(2) .phase-header { background: linear-gradient(135deg, #1a5f2a, #2d9e4a); }
.phase-card:nth-child(3) .phase-header { background: linear-gradient(135deg, #7c3d00, #c96d00); }
.phase-card:nth-child(4) .phase-header { background: linear-gradient(135deg, #4a1a6e, #7d3aab); }
.phase-card:nth-child(5) .phase-header { background: linear-gradient(135deg, #8b1a1a, #c94040); }

.phase-icon { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.phase-header h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 6px; }
.phase-header p { color: rgba(255,255,255,0.75); font-family: 'Inter', sans-serif; font-size: 0.85rem; }

.phase-body { background: var(--white); padding: 32px 36px; }

.phase-body h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.subjects-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tag {
  padding: 6px 16px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.tag:hover { background: var(--blue-light); color: var(--blue); border-color: rgba(26,79,158,0.3); }

.phase-note {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--gray-600);
  padding: 12px 16px;
  background: var(--off-white);
  border-radius: 8px;
  border-left: 3px solid var(--blue);
}

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

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
  margin-bottom: 60px;
}

.req-card {
  padding: 28px 24px;
  background: var(--off-white);
  border-radius: var(--radius);
  border-left: 4px solid var(--blue);
  transition: var(--transition);
}

.req-card:hover { background: var(--blue-light); transform: translateX(4px); }
.req-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--blue); opacity: 0.3; margin-bottom: 8px; }
.req-card h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 8px; }
.req-card p { font-size: 0.85rem; }

.fees-section { background: var(--off-white); }

.fees-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 48px;
}

.fees-header {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  padding: 28px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  color: rgba(255,255,255,0.7);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fee-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 20px 36px;
  align-items: center;
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.fee-row:hover { background: var(--blue-light); }
.fee-row:last-child { border-bottom: none; }

.fee-row .grade-name { font-weight: 600; color: var(--navy); font-family: 'Inter', sans-serif; }
.fee-row .fee-amount { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--blue); }
.fee-row .fee-note { font-family: 'Inter', sans-serif; font-size: 0.82rem; color: var(--gray-400); }

.once-off-fees {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.once-card {
  padding: 28px 32px;
  border-radius: var(--radius);
  text-align: center;
}

.once-card:first-child { background: var(--navy); }
.once-card:last-child { background: var(--blue); }

.once-card h4 {
  color: rgba(255,255,255,0.7);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.once-card .amount {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.once-card span {
  display: block;
  color: rgba(255,255,255,0.6);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  margin-top: 8px;
}

.fees-disclaimer {
  text-align: center;
  margin-top: 28px;
  padding: 16px 24px;
  background: var(--gold-pale);
  border-radius: var(--radius);
  border: 1px solid rgba(201,162,39,0.3);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--gray-600);
}

/* ===== APPLICATION FORM ===== */
.apply-section { background: var(--white); }

.form-wrapper {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.form-title {
  text-align: center;
  margin-bottom: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full { grid-column: span 2; }

.form-group label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--off-white);
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(26,79,158,0.1);
}

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

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a5568' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

.form-submit {
  grid-column: span 2;
  text-align: center;
  margin-top: 12px;
}

.form-submit .btn {
  padding: 16px 56px;
  font-size: 1rem;
  width: 100%;
  justify-content: center;
}

/* ===== GALLERY PAGE ===== */
.gallery-section { background: var(--white); }

.gallery-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.gallery-full-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-full-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-full-item:nth-child(1),
.gallery-full-item:nth-child(5) {
  grid-column: span 2;
}

.gallery-full-item:nth-child(1) img,
.gallery-full-item:nth-child(5) img { height: 340px; }

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(10,35,81,0.85), transparent);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-full-item:hover .gallery-caption { transform: translateY(0); }

/* ===== CONTACT PAGE ===== */
.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info { }

.contact-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--off-white);
  border-radius: var(--radius);
  margin-bottom: 20px;
  transition: var(--transition);
}

.contact-card:hover { background: var(--blue-light); transform: translateX(4px); }

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--blue);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.contact-card p, .contact-card a {
  font-size: 0.95rem;
  color: var(--gray-800);
  line-height: 1.5;
}

.contact-card a:hover { color: var(--blue); }

.contact-form-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form-card h3 { font-size: 1.5rem; margin-bottom: 28px; }

.map-section { background: var(--navy); padding-bottom: 0; }
.map-section .section-title { color: var(--white); }
.map-section .section-label { color: var(--gold); }

.map-wrapper {
  margin-top: 48px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-wrapper iframe { display: block; width: 100%; height: 450px; border: none; }

/* ===== THANK YOU PAGE ===== */
.thankyou-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  text-align: center;
  padding: 40px 24px;
}

.thankyou-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  max-width: 560px;
  box-shadow: var(--shadow-lg);
}

.ty-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 28px;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.thankyou-card h1 { font-size: 2.2rem; margin-bottom: 20px; }
.thankyou-card p { margin-bottom: 36px; font-size: 1.05rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--gray-800);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .nav-logo { margin-bottom: 20px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.8; margin-bottom: 24px; }

.social-links { display: flex; gap: 12px; }
.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--white);
}
.social-link:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

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

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}

.footer-contact li span:first-child { font-size: 1rem; margin-top: 2px; flex-shrink: 0; }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { gap: 48px; }
  .contact-grid { gap: 40px; }
}

@media (max-width: 768px) {
  .section-pad { padding: 70px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }

  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 24px; }

  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-img-float { right: 0; bottom: -20px; width: 150px; }
  .about-badge { right: 20px; }
  .about-features { grid-template-columns: 1fr; }

  .mv-grid { grid-template-columns: 1fr; }
  .about-story { grid-template-columns: 1fr; }
  .about-story-imgs { margin-bottom: 0; }

  .phase-card { grid-template-columns: 1fr; }
  .phase-header { padding: 28px 24px; }

  .form-wrapper { padding: 36px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .form-submit { grid-column: 1; }

  .gallery-full-grid { grid-template-columns: 1fr 1fr; }
  .gallery-full-item:nth-child(1),
  .gallery-full-item:nth-child(5) { grid-column: span 2; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: span 2; }

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

  .once-off-fees { grid-template-columns: 1fr; }
  .fees-header, .fee-row { padding: 16px 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .thankyou-card { padding: 44px 28px; }

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

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .gallery-full-grid { grid-template-columns: 1fr; }
  .gallery-full-item:nth-child(1),
  .gallery-full-item:nth-child(5) { grid-column: 1; }
  .grades-grid { grid-template-columns: 1fr; }
}
