/* ========================================
   RICHMINDALE K-12 INTERNATIONAL STYLES
   Base Setup & Variables
   ======================================== */

/* 
   DESIGN SYSTEM REFERENCE
   =======================
   
   Border Radius:
   - Buttons, inputs, small elements: 6px
   - Cards, containers: 8px
   - Circular: 50%
   - Accents (lines, bars): 1-3px
   
   Shadow Depth:
   - sm: Resting cards (0 2px 16px)
   - md: Medium elevation (0 4px 20px)
   - lg: Hover/Active cards (0 8px 30px)
   
   Transitions:
   - Fast: 0.2s (color, opacity)
   - Normal: 0.3s (general)
   - Smooth easing: cubic-bezier(0.22, 1, 0.36, 1)
   
   Spacing Scale:
   - xs: 0.5rem | sm: 1rem | md: 2rem
   - lg: 5rem | xl: 8rem | 2xl: 10rem
   
   Color Hierarchy:
   - primary-yellow (#FFC107): Main brand
   - accent-gold (#FFD54F): Highlights
   - hover-yellow (#FFB300): Interactions
*/

/* Premium Font Import — Playfair Display (headings) + Inter (body) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette - Richmindale Brand */
  --primary-yellow: #FFC107;
  --primary-dark: #2C2C2C;
  --secondary-dark: #1A1A1A;
  --accent-gold: #FFD54F;
  --text-light: #FFFFFF;
  --text-dark: #333333;
  --border-gray: #E0E0E0;
  --bg-light: #F5F5F5;
  --hover-yellow: #FFB300;

  /* Gradients */
  --nav-gradient: linear-gradient(
    90deg,
    var(--primary-yellow) 0%,
    var(--accent-gold) 40%,
    var(--hover-yellow) 100%
  );

  /* Typography — Premium Pairing */
  --font-primary: 'Inter', 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;

  /* Spacing — tightened premium scale (reduced ~30%) */
  --spacing-xs:  0.35rem;
  --spacing-sm:  0.7rem;
  --spacing-md:  1.4rem;
  --spacing-lg:  3.5rem;
  --spacing-xl:  5.5rem;
  --spacing-2xl: 7rem;

  /* Section horizontal padding — consistent gutter */
  --section-px: clamp(1.5rem, 5vw, 4rem);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Easing — premium feel */
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);

  /* Shadow Hierarchy — consistent depth system */
  --shadow-sm: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);

  /* Button Tokens — refined */
  --btn-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  --btn-shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.08);
  --btn-focus: 0 0 0 3px rgba(255, 193, 7, 0.28);

  /* Refined gradient — warmer, more consistent */
  --gradient-button: linear-gradient(
    175deg,
    #FFD54F 0%,
    #FFC107 55%,
    #FFB300 100%
  );
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global heading defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); letter-spacing: -0.01em; }
h4 { font-family: var(--font-primary); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

p {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

/* ========================================
   BUTTON SYSTEM — Unified Premium
   ======================================== */

:is(.btn, .cta-button, .ae-button, .philippines-button, .newsletter-button, .map-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  background: var(--gradient-button);
  color: var(--primary-dark);

  border: none;
  cursor: pointer;
  text-decoration: none;

  font-family: var(--font-primary);
  font-weight: 700;
  letter-spacing: 0.03em;

  border-radius: 6px;
  box-shadow: var(--btn-shadow);

  /* Single transition covering all states cleanly */
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.22s ease;

  position: relative;
  overflow: hidden;
}

/* Subtle inner top highlight for depth */
:is(.btn, .cta-button, .ae-button, .philippines-button, .newsletter-button, .map-link)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.18) 0%,
    transparent 60%
  );
  border-radius: inherit;
  pointer-events: none;
}

:is(.btn, .cta-button, .ae-button, .philippines-button, .newsletter-button, .map-link):hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
  filter: brightness(1.04);
}

:is(.btn, .cta-button, .ae-button, .philippines-button, .newsletter-button, .map-link):active {
  transform: translateY(0) scale(0.985);
  filter: brightness(0.97);
  box-shadow: var(--btn-shadow);
  transition-duration: 0.1s;
}

:is(.btn, .cta-button, .ae-button, .philippines-button, .newsletter-button, .map-link):focus-visible {
  outline: none;
  box-shadow: var(--btn-shadow), var(--btn-focus);
}

/* Per-button sizing — unchanged */
.cta-button        { padding: 1rem 3rem;    font-size: 1.05rem; border-radius: 6px; }
.btn               { padding: 0.9rem 2.5rem; font-size: 1rem;   border-radius: 6px; }
.ae-button         { padding: 0.8rem 2.5rem; font-size: 0.95rem; border-radius: 6px; }
.philippines-button{ padding: 1rem 3rem;    font-size: 1.05rem; border-radius: 6px; }
.newsletter-button { padding: 1rem 2.5rem;  font-size: 0.95rem; border-radius: 6px; white-space: nowrap; }
.map-link          { padding: 0.5rem 1rem;  font-size: 0.9rem;  border-radius: 6px; }

/* ========================================
   NAVIGATION HEADER
   ======================================== */

.main-header {
  /*background-color: var(--bg-light);*/
  background: var(--nav-gradient);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08),
              0 2px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 2rem;
  background: var(--bg-light);
  text-decoration: none;
}

.logo-image {
  height: 67px;
  width: auto;
  object-fit: contain;
}

.logo h1 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
  margin: 0;
  line-height: 1.3;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  display: block;
  padding: 1.5rem 1.2rem;
  color: var(--text-light);
  background-color: var(--primary-dark);
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;

  /* Smooth multi-property transition */
  transition: color 0.25s ease,
              background-color 0.25s ease,
              letter-spacing 0.25s ease;

  /* Underline animation setup */
  position: relative;
}

/* Animated gold underline — slides in from left */
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0.65rem;
  left: 1.2rem;
  right: 1.2rem;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 1px;

  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-menu a:hover {
  color: var(--primary-dark);
  background-color: rgb(255, 255, 255);
  letter-spacing: 0.08em;
}

.nav-menu a:hover::after {
  transform: scaleX(1);
  background: var(--text-light);
}

/* Active link state */
.nav-menu a.active {
  color: var(--primary-dark);
  background-color: rgba(255, 255, 255, 0.5);
}

.nav-menu a.active::after {
  transform: scaleX(1);
  background: var(--primary-dark);
  opacity: 0.7;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
  background:
    linear-gradient(
      160deg,
      rgba(20, 18, 14, 0.72) 0%,
      rgba(30, 26, 18, 0.50) 50%,
      rgba(15, 13, 10, 0.38) 100%
    ),
    url('assets/website-cover.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: var(--text-light);
  padding: var(--spacing-xl) var(--section-px);
  min-height: 580px;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;

  position: relative;
  overflow: hidden;
}

/* Refined edge vignette — replaces noisy pattern */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 28% 50%,
    transparent 38%,
    rgba(10, 8, 5, 0.32) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  margin-left: clamp(24px, 6vw, 90px);
  max-width: 540px;
  animation: heroFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1rem;
  color: var(--text-light);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.3);
  animation: heroFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

/* Gold accent bar beneath title */
.hero-title::after {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-yellow), transparent);
  border-radius: 2px;
  margin-top: 0.8rem;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-top: 1.4rem;
  margin-bottom: 2.2rem;
  line-height: 2;
  opacity: 0.82;
  animation: heroFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

/* CTA staggered entrance */
.hero-content .cta-button {
  animation: heroFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.38s both;
}

/* Foreground layer (bottom-right) — placement unchanged */
.hero-section::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(80vw, 2400px);
  height: 100%;

  background-image: url("assets/website-cover-foreground.svg");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;

  pointer-events: none;
  opacity: 1;
  z-index: 2;
}

.hero-foreground-shadow {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;

  /* Softened — less heavy than before */
  height: 28%; /* try 25%�40% */

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.50) 0%,
    rgba(0, 0, 0, 0.20) 50%,
    rgba(0, 0, 0, 0.00) 100%
  );

  z-index: 3;
  pointer-events: none;
}

/* ========================================
   HERO ENTRANCE ANIMATIONS
   ======================================== */

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   WELCOME SECTION
   ======================================== */

.welcome-section {
  padding: var(--spacing-xl) var(--section-px);
  text-align: center;
  background-color: var(--text-light);
}

.welcome-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.welcome-section p {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-dark);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.9;
  letter-spacing: 0.015em;
}

/* ========================================
   ADMISSION & ENROLLMENT SECTION
   ======================================== */

.admission-enrollment {
  padding: var(--spacing-xl) var(--section-px);
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.ae-container {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.ae-card {
  background-color: var(--text-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.ae-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.ae-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.ae-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.ae-card:hover .ae-image img {
  transform: scale(1.05);
}

.ae-content {
  padding: 2.5rem;
  background-color: var(--primary-dark);
  color: var(--text-light);
  text-align: center;
}

.ae-content h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
  color: var(--primary-yellow);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ae-content p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

/* ========================================
   EVENTS SECTION
   ======================================== */

.events-section {
  padding: var(--spacing-xl) var(--section-px);
  background-color: var(--text-light);
}

.events-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.events-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--primary-dark);
  margin-bottom: var(--spacing-sm);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.events-header p {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  color: var(--primary-dark);
}

.events-container {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.event-card {
  background-color: var(--text-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.event-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.event-card:hover .event-image img {
  transform: scale(1.1);
}

.event-content {
  padding: 1.75rem;
  background: var(--nav-gradient);
  text-align: center;
}

.event-content h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.event-content p {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--primary-dark);
}

.events-footer {
  text-align: center;
  margin-top: var(--spacing-lg);
}

.view-more-link {
  display: inline-block;
  color: var(--primary-dark);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(44,44,44,0.45);
  padding-bottom: 0.25rem;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.view-more-link:hover {
  color: var(--primary-dark);
  border-bottom-color: rgba(44,44,44,0.85);
}

/* ========================================
   GALLERY SECTION
   ======================================== */

.gallery-section {
  padding: var(--spacing-xl) var(--section-px);
  background-color: var(--primary-dark);
  color: var(--text-light);
}

.gallery-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gallery-header p {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  color: var(--text-light);
}

.hashtag {
  color: var(--primary-yellow);
  font-weight: bold;
}

.gallery-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  gap: 2rem;
}

/* ========================================
   CAROUSEL BUTTONS — Premium
   ======================================== */
.carousel-btn {
  /* Clean frosted glass */
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;

  width: 48px;
  height: 48px;
  border-radius: 50%;

  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1;

  display: grid;
  place-items: center;

  transition: background 0.22s ease,
              border-color 0.22s ease,
              color 0.22s ease,
              transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
  z-index: 10;
  position: relative;
}

.carousel-btn:hover {
  background: rgba(255, 193, 7, 0.15);
  border-color: rgba(255, 193, 7, 0.5);
  color: var(--primary-yellow);
  transform: translateY(-1px);
}

.carousel-btn:active {
  transform: scale(0.94);
  transition-duration: 0.1s;
}

.carousel-btn:focus-visible {
  outline: 3px solid var(--primary-yellow);
  outline-offset: 3px;
}

.carousel-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
  transform: none;
}

.carousel-btn span {
  line-height: 1;
  position: relative;
  z-index: 1;
}

.gallery-track-container {
  overflow: hidden;
  flex: 1;
  position: relative;
}

/* Focus outline for keyboard navigation */
.gallery-track-container:focus-within {
  outline: 2px solid var(--primary-yellow);
  outline-offset: 4px;
  border-radius: 8px;
}

.gallery-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item {
  min-width: calc(33.333% - 1rem);
  flex-shrink: 0;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.5s ease;
  filter: brightness(0.92) saturate(0.95);
}

/* Subtle gold tint overlay on hover */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(
    to top,
    rgba(255, 193, 7, 0.12) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(1) saturate(1.05);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ========================================
   GALLERY DOTS — Elegant Minimal
   ======================================== */
.gallery-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.5rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.28);
  border: none;
  cursor: pointer;

  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.3s ease,
              opacity 0.3s ease;
}

/* Active — expands into a pill */
.dot.active {
  width: 24px;
  background-color: var(--primary-yellow);
  opacity: 1;
}

/* Hover on inactive dots */
.dot:not(.active):hover {
  background-color: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

/* Focus state for keyboard navigation */
.dot:focus-visible {
  outline: 2px solid var(--primary-yellow);
  outline-offset: 3px;
}

@keyframes dotPulse {
  /* removed — no longer needed */
}

.gallery-footer {
  text-align: center;
  margin-top: var(--spacing-md);
}

.gallery-footer .view-more-link {
  color: var(--primary-yellow);
  border-bottom-color: rgba(255,193,7,0.6);
}

.gallery-footer .view-more-link:hover {
  color: var(--text-light);
  border-bottom-color: rgba(255,255,255,0.8);
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials-section {
  padding: var(--spacing-xl) var(--section-px);
  background-color: var(--text-light);
  position: relative;
}

.testimonials-section::before {
  content: '"';
  position: absolute;
  top: 2rem;
  right: 5%;
  font-size: 15rem;
  color: var(--primary-yellow);
  opacity: 0.1;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonials-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.testimonials-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--primary-dark);
  margin-bottom: var(--spacing-sm);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.testimonials-header p {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  color: var(--text-dark);
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.testimonial-card {
  background-color: var(--text-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem;
  border: 2px solid var(--border-gray);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-yellow);
}

.testimonial-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 4px solid var(--primary-yellow);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-content {
  text-align: center;
}

.stars {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--primary-yellow);
}

.testimonial-content h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.student-grade {
  font-size: 0.85rem;
  color: var(--primary-yellow);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: var(--text-dark);
  text-align: justify;
}

.testimonials-footer {
  text-align: center;
  margin-top: var(--spacing-lg);
}

.testimonials-footer .view-more-link {
  color: var(--primary-dark);
  border-bottom-color: rgba(44,44,44,0.55);
}

.testimonials-footer .view-more-link:hover {
  color: var(--primary-yellow);
  border-bottom-color: rgba(255,193,7,0.8);
}

/* ========================================
   PHILIPPINES PROGRAM SECTION
   ======================================== */

.philippines-section {
  padding: var(--spacing-xl) var(--section-px);
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
  color: var(--text-light);
  text-align: center;
}

.philippines-content {
  max-width: 900px;
  margin: 0 auto;
}

.philippines-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.philippines-subtitle {
  font-size: 1.2rem;
  color: var(--primary-yellow);
  margin-bottom: var(--spacing-md);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.philippines-description {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.015em;
  margin-bottom: var(--spacing-md);
  color: rgba(255, 255, 255, 0.88);
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */

.newsletter-section {
  padding: var(--spacing-xl) var(--section-px);
  background-color: var(--text-light);
  text-align: center;
}

.newsletter-content {
  max-width: 700px;
  margin: 0 auto;
}

.newsletter-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--primary-dark);
  margin-bottom: var(--spacing-sm);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.newsletter-content p {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.newsletter-input {
  flex: 1;
  padding: 1rem 1.5rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  border: 2px solid var(--border-gray);
  border-radius: 6px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-input:focus {
  border-color: var(--primary-yellow);
  box-shadow: var(--btn-focus);
}

/* ========================================
   FOOTER
   ======================================== */

.main-footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: var(--spacing-xl) var(--section-px) var(--spacing-lg);
  position: relative;

  /* Thin gold accent line at the very top */
  border-top: 2px solid rgba(255, 193, 7, 0.18);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.2rem;

  margin-bottom: var(--spacing-lg);
}

.footer-column h4 {
  color: var(--accent-gold);
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  /* Subtle gold accent dot before the label */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-column h4::before {
  content: '';
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--primary-yellow);
  border-radius: 1px;
  opacity: 0.7;
  flex-shrink: 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 40px;
  width: auto;
}

.footer-logo h3 {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-light);
  line-height: 1.4;
}

.footer-tagline {
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.5;
  transition: color 0.22s ease, padding-left 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--text-light);
  padding-left: 4px;
}

.contact-info p {
  font-size: 0.875rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

.contact-info strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.contact-info a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.22s ease;
}

.contact-info a:hover {
  color: var(--text-light);
}

/* Map embed wrapper — acts as the clickable link */
.map-embed-wrapper {
  display: block;
  position: relative;
  margin-top: 0.8rem;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid rgba(255, 193, 7, 0.25);
  text-decoration: none;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

.map-embed-wrapper:hover {
  border-color: var(--primary-yellow);
  box-shadow: 0 0 16px rgba(255, 193, 7, 0.3);
}

.footer-map {
  display: block;
  width: 100%;
  height: 140px;
  border: none;
  pointer-events: none; /* Clicks pass through to the <a> wrapper */
}

/* Hover overlay with label */
.map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.4rem 0.6rem;
  transition: background var(--transition-normal);
}

.map-overlay span {
  background: var(--primary-yellow);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.map-embed-wrapper:hover .map-overlay {
  background: rgba(0, 0, 0, 0.15);
}

.map-embed-wrapper:hover .map-overlay span {
  opacity: 1;
  transform: translateY(0);
}

/* Give the contact column slightly more width */
.footer-column--contact {
  grid-column: span 1;
}

.footer-bottom {
  /* Refined divider — gradient fade from center */
  border-top: none;
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-md);
  position: relative;

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Gradient divider — fades at both ends */
.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 20%,
    rgba(255, 255, 255, 0.12) 80%,
    transparent 100%
  );
}

.social-media p {
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
}


/* ========================================
   FONT AWESOME SOCIAL ICONS - FIXED
   ======================================== */

/* Base icon styling */
.social-icon i {
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #ffffff; /* White icons for dark background */
}

/* Hover states with brand colors */
.social-icon:hover .fa-facebook-f {
  color: #1877f2 !important;
}

.social-icon:hover .fa-twitter {
  color: #000000 !important; /* Keep white on hover, or change to #000000 if you prefer */
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.5)); /*Optional glow effect */
}

.social-icon:hover .fa-instagram {
  color: #e4405f !important;
}

.social-icon:hover .fa-youtube {
  color: #ff0000 !important;
}

.social-icon:hover .fa-linkedin-in {
  color: #0a66c2 !important;
}

/* Container styling */
.social-icons {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.22s ease,
              border-color 0.22s ease,
              transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.social-icon:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.footer-legal {
  text-align: right;
}

.footer-legal p {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.35);
}

.legal-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.22s ease;
}

.legal-links a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.legal-links span {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
}

/* ========================================
   BACK TO TOP BUTTON — Refined
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  left: auto;

  width: 44px;
  height: 44px;
  border-radius: 50%;

  background: var(--gradient-button);
  color: var(--primary-dark);
  border: 1px solid rgba(255, 255, 255, 0.25);

  font-size: 1rem;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;
  opacity: 0;
  visibility: hidden;

  display: grid;
  place-items: center;

  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);

  transition: opacity 0.35s ease,
              visibility 0.35s ease,
              transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.22s ease;
  z-index: 999;
  overflow: hidden;
}

/* Subtle top highlight for depth */
.back-to-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.18) 0%,
    transparent 55%
  );
  border-radius: 50%;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  animation: fadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
  transform: translateY(-1px) scale(0.96);
  transition-duration: 0.1s;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ========================================
   HAMBURGER BUTTON
   ======================================== */

.hamburger {
  display: none; /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 52px;
  height: 52px;
  padding: 0;
  margin-right: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  flex-shrink: 0;
  border-radius: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--primary-dark);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
  transform-origin: center;
}

/* Animate to X when open */
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
  /* --- Hamburger visible, nav hidden by default --- */
  .hamburger { display: flex; }

  /* Nav container with gradient on right side */
  .nav-container {
    justify-content: space-between;
    padding: 0;
    background: linear-gradient(to right, var(--bg-light) 0%, var(--bg-light) calc(100% - 83px), transparent calc(100% - 83px));
    position: relative;
  }

  /* Golden gradient background fills right side */
  .nav-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 83px;
    background: var(--nav-gradient);
    z-index: 0;
  }

  .logo {
    flex: 1;
    background: transparent;
    position: relative;
    z-index: 1;
  }

  /* Hamburger with no background, sits on top of gradient */
  .hamburger {
    width: 83px;
    height: 83px;
    background: transparent;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-dark);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 1050;

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease-smooth),
                opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
  }

  .nav-menu.open {
    max-height: 600px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu li { width: 100%; }

  .nav-menu a {
    padding: 1rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
    /* Disable underline on mobile — full width tap targets instead */
    letter-spacing: 0.06em;
    transition: color 0.2s ease,
                background-color 0.2s ease,
                padding-left 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Hide desktop underline on mobile */
  .nav-menu a::after {
    display: none;
  }

  .nav-menu a:hover {
    color: var(--primary-yellow);
    background-color: rgba(255, 255, 255, 0.06);
    padding-left: 2rem;
    letter-spacing: 0.06em;
  }

  /* Navbar container needs relative for the dropdown */
  .navbar { position: relative; }

  .ae-container { grid-template-columns: 1fr; gap: 2rem; }
  .events-container { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-item { min-width: calc(50% - 0.75rem); }
  .testimonials-container { grid-template-columns: 1fr; gap: 2rem; }
  .footer-container { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   TABLET BREAKPOINT (768px - 1024px)
   Hero Section Optimization
   ======================================== */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-section {
    min-height: 500px;
    background-position: center 45%;
    background-size: cover;
    align-items: flex-start;
    padding: var(--spacing-lg) var(--section-px);
    padding-top: 3.5rem;
    display: flex;
    justify-content: flex-start;
  }

  .hero-content {
    margin-left: clamp(24px, 4vw, 60px);
    margin-top: 1.5rem;
    max-width: 480px;
  }

  .hero-title {
    font-size: clamp(2.3rem, 5vw, 3rem);
  }

  .hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    margin-bottom: 1.8rem;
  }

  /* Foreground students image - ensure they're fully visible */
  .hero-section::after {
    width: 100%;
    height: 80%;
    background-size: 70%;
    background-position: right bottom;
  }

  /* Lighter shadow to keep students visible */
  .hero-foreground-shadow {
    height: 28%;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.15) 50%,
      rgba(0, 0, 0, 0.00) 100%
    );
  }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.2rem; }

  /* Hero: make min-height taller so students are more visible */
  .hero-section {
    min-height: 520px;
    align-items: flex-start;
    padding-top: 3rem;
  }

  /* Students foreground — larger, shifted right on mobile */
  .hero-section::after {
    width: 100%;
    height: 80%;
    background-size: 140%;
    background-position: 100% bottom;
  }

  /* Scale all section padding down on mobile */
  .welcome-section,
  .admission-enrollment,
  .events-section,
  .gallery-section,
  .testimonials-section,
  .philippines-section,
  .newsletter-section {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
  }

  .main-footer {
    padding-top: var(--spacing-lg);
  }

  .welcome-section h2 { font-size: 2rem; }

  .ae-image { height: 250px; }
  .ae-content { padding: 1.75rem; }
  .ae-content h3 { font-size: 1.6rem; }

  .events-header h2 { font-size: 2rem; }
  .event-image { height: 200px; }

  .gallery-header h2 { font-size: 2rem; }
  .gallery-carousel { gap: 1rem; }
  .carousel-btn { width: 40px; height: 40px; font-size: 1.5rem; }
  .gallery-item { min-width: 100%; }
  .gallery-item img { height: 250px; }

  .testimonials-header h2 { font-size: 2rem; }
  .testimonial-card { padding: 2rem; }
  .testimonial-image { width: 100px; height: 100px; }

  .philippines-content h2 { font-size: 2rem; }
  .philippines-subtitle { font-size: 1.1rem; }
  .philippines-description { font-size: 1rem; }

  .newsletter-content h2 { font-size: 1.8rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-button { width: 100%; }

  .footer-container { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { text-align: center; }
  .legal-links { justify-content: center; }

  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    left: auto;
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
  }

  .carousel-btn {
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
  }
}

/* ========================================
   ADMISSIONS PAGE STYLES
   ======================================== */

/* Admissions Hero */
.admissions-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  color: var(--text-light);
  padding: var(--spacing-xl) var(--section-px);
  text-align: center;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admissions-hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.admissions-hero-content p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto;
}

/* Degree Programs Section */
.degree-programs-section {
  padding: var(--spacing-xl) var(--section-px);
  background-color: var(--text-light);
}

.degree-programs-container {
  max-width: 1000px;
  margin: 0 auto;
}

.degree-programs-container h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--primary-dark);
  margin-bottom: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.program-category h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-bottom: 3px solid var(--primary-yellow);
  padding-bottom: 0.75rem;
}

.program-list {
  list-style: none;
  padding: 0;
}

.program-list li {
  padding: 0.85rem 0 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  position: relative;
}

.program-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-yellow);
  font-weight: 700;
}

.programs-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* Admission Policy Section */
.admission-policy-section {
  padding: var(--spacing-xl) var(--section-px);
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.admission-policy-container {
  max-width: 900px;
  margin: 0 auto;
}

.admission-policy-container h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--primary-dark);
  margin-bottom: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.admission-policy-container p {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.01em;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

/* Admission Requirements Section */
.admission-requirements-section {
  padding: var(--spacing-xl) var(--section-px);
  background-color: var(--text-light);
}

.admission-requirements-container {
  max-width: 1100px;
  margin: 0 auto;
}

.admission-requirements-container h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--primary-dark);
  margin-bottom: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.requirement-category {
  background-color: var(--text-light);
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  padding: 2rem;
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.requirement-category:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-yellow);
}

.requirement-category h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.requirement-category p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.requirements-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.requirements-list li {
  padding: 0.65rem 0 0.65rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  position: relative;
}

.requirements-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-yellow);
  font-weight: 700;
}

.requirement-note {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-top: 1rem;
  font-style: italic;
}

/* Final CTA Section */
.final-cta-section {
  padding: var(--spacing-xl) var(--section-px);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  color: var(--text-light);
  text-align: center;
}

.final-cta-container {
  max-width: 900px;
  margin: 0 auto;
}

.final-cta-container h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--text-light);
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.final-cta-container p {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
}

.final-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive adjustments for admissions page */
@media (max-width: 768px) {
  .admissions-hero {
    min-height: 280px;
    padding: var(--spacing-lg) var(--section-px);
  }

  .programs-grid,
  .requirements-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .programs-cta,
  .final-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .programs-cta .btn,
  .final-cta-buttons .btn,
  .final-cta-buttons .cta-button {
    width: 100%;
  }

  .requirement-category {
    padding: 1.5rem;
  }
}

/* ========================================
   LEGAL PAGES (TERMS, PRIVACY)
   ======================================== */

.legal-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  color: var(--text-light);
  padding: var(--spacing-lg) var(--section-px);
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.legal-hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.25rem;
}

.legal-revision {
  font-size: 0.9rem !important;
  color: rgba(255, 193, 7, 0.8) !important;
  font-style: italic;
  margin-top: 0.5rem;
}

.legal-content-section {
  padding: var(--spacing-xl) var(--section-px);
  background-color: var(--text-light);
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
}

.legal-article {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-gray);
}

.legal-article:last-child {
  border-bottom: none;
}

.legal-article h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.legal-article h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--primary-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
}

.legal-article p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.legal-list li {
  padding: 0.5rem 0 0.5rem 1.8rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  position: relative;
}

.legal-list li::before {
  content: '»';
  position: absolute;
  left: 0;
  color: var(--primary-yellow);
  font-weight: 700;
  font-size: 1.2rem;
}

.contact-box {
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
  border-left: 4px solid var(--primary-yellow);
  padding: 2rem;
  margin-top: 1.5rem;
  border-radius: 6px;
}

.contact-box p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.contact-box strong {
  color: var(--primary-dark);
  font-weight: 700;
}

.contact-box a {
  color: var(--primary-yellow);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.22s ease;
}

.contact-box a:hover {
  color: var(--hover-yellow);
  text-decoration: underline;
}

.legal-contact {
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
  padding: 2.5rem;
  border-radius: 8px;
  border: 2px solid var(--border-gray);
}

@media (max-width: 768px) {
  .legal-hero {
    min-height: 200px;
    padding: var(--spacing-md) var(--section-px);
  }

  .legal-content-section {
    padding: var(--spacing-lg) var(--section-px);
  }

  .legal-article {
    margin-bottom: 2rem;
  }

  .contact-box {
    padding: 1.5rem;
  }
}

/* ========================================
   CONTACT US PAGE
   ======================================== */

.contact-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  color: var(--text-light);
  padding: var(--spacing-lg) var(--section-px);
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.contact-hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
}

.contact-main-section {
  padding: var(--spacing-xl) var(--section-px);
  background-color: var(--text-light);
}

.contact-main-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

/* Grievance Info Column */
.contact-info-column {
  display: flex;
  flex-direction: column;
}

.grievance-box {
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
  border-left: 4px solid var(--primary-yellow);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.grievance-box h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--primary-yellow);
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.grievance-box h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.grievance-box p {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.state-board-info {
  background: var(--text-light);
  border: 2px solid var(--border-gray);
  border-radius: 6px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.state-board-info p {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.state-board-info strong {
  color: var(--primary-dark);
  font-weight: 700;
}

.state-board-info a {
  color: var(--primary-yellow);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.22s ease;
}

.state-board-info a:hover {
  color: var(--hover-yellow);
  text-decoration: underline;
}

/* Contact Form Column */
.contact-form-column {
  display: flex;
  flex-direction: column;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: 0.02em;
}

.required {
  color: #e74c3c;
  font-weight: 700;
}

.input-with-icon {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--border-gray);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-with-icon:focus-within {
  border-color: var(--primary-yellow);
  box-shadow: var(--btn-focus);
}

.input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary-yellow);
  font-size: 1.2rem;
  flex-shrink: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.input-with-icon input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-size: 1rem;
  background: transparent;
  min-height: 48px;
  font-family: var(--font-primary);
}

.input-with-icon input::placeholder {
  color: #95a5a6;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  border: 2px solid var(--border-gray);
  border-radius: 6px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  border: 2px solid var(--border-gray);
  border-radius: 6px;
  outline: none;
  resize: vertical;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-yellow);
  box-shadow: var(--btn-focus);
}

.file-input {
  padding: 0.75rem;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  border: 2px solid var(--border-gray);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.file-input:hover {
  border-color: var(--primary-yellow);
}

.contact-form .cta-button {
  align-self: flex-start;
  margin-top: 1rem;
}

/* Contact Details Section */
.contact-details-section {
  padding: var(--spacing-xl) var(--section-px);
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
  text-align: center;
}

.contact-details-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-details-container h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.contact-details-container > p {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  color: var(--text-dark);
  margin-bottom: 3rem;
}

.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.contact-detail-card {
  background: var(--text-light);
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.contact-detail-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-yellow);
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.contact-detail-card h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.contact-detail-card p {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  margin: 0;
}

.contact-detail-card a {
  color: var(--primary-yellow);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.22s ease;
}

.contact-detail-card a:hover {
  color: var(--hover-yellow);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .contact-main-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-details-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    min-height: 200px;
    padding: var(--spacing-md) var(--section-px);
  }

  .contact-main-section {
    padding: var(--spacing-lg) var(--section-px);
  }

  .grievance-box {
    padding: 2rem;
  }

  .state-board-info {
    padding: 1.25rem;
  }

  .contact-form .cta-button {
    width: 100%;
  }

  .contact-details-section {
    padding: var(--spacing-lg) var(--section-px);
  }
}

/* ========================================
   ACADEMICS PAGE
   ======================================== */

.academics-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  color: var(--text-light);
  padding: var(--spacing-xl) var(--section-px);
  text-align: center;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.academics-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.academics-hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.hero-subtitle-academic {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary-yellow);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Academic Structure Section */
.academic-structure-section {
  padding: var(--spacing-xl) var(--section-px);
  background-color: var(--text-light);
}

.academic-structure-container {
  max-width: 1200px;
  margin: 0 auto;
}

.academic-structure-container h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--primary-dark);
  margin-bottom: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.framework-card {
  background: var(--text-light);
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  padding: 2.5rem;
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.framework-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-yellow);
}

.framework-card h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.framework-card p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.framework-card strong {
  color: var(--primary-dark);
  font-weight: 600;
}

.framework-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.framework-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  position: relative;
}

.framework-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-yellow);
  font-weight: 700;
}

/* Grade Levels Section */
.grade-levels-section {
  padding: var(--spacing-xl) var(--section-px);
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.grade-levels-container {
  max-width: 1200px;
  margin: 0 auto;
}

.grade-levels-container h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--primary-dark);
  margin-bottom: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.grade-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.grade-card {
  background: var(--text-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.grade-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.grade-header {
  background: var(--nav-gradient);
  padding: 2rem;
  text-align: center;
}

.grade-header h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  color: var(--primary-dark);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
}

.grade-content {
  padding: 2rem;
}

.grade-content h4 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.grade-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.grade-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  position: relative;
}

.grade-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-yellow);
  font-weight: 700;
}

.grade-note {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-dark);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-gray);
}

/* Subjects Section */
.subjects-section {
  padding: var(--spacing-xl) var(--section-px);
  background-color: var(--text-light);
}

.subjects-container {
  max-width: 1000px;
  margin: 0 auto;
}

.subjects-container h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--primary-dark);
  margin-bottom: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.subjects-column h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-bottom: 3px solid var(--primary-yellow);
  padding-bottom: 0.75rem;
}

.subjects-list {
  list-style: none;
  padding: 0;
}

.subjects-list li {
  padding: 0.65rem 0 0.65rem 1.5rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  position: relative;
}

.subjects-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-yellow);
  font-weight: 700;
}

/* Academic Support Section */
.academic-support-section {
  padding: var(--spacing-xl) var(--section-px);
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.academic-support-container {
  max-width: 1100px;
  margin: 0 auto;
}

.support-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

.support-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.support-text p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.support-list {
  list-style: none;
  padding: 0;
}

.support-list li {
  padding: 0.65rem 0 0.65rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  position: relative;
}

.support-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-yellow);
  font-weight: 700;
}

/* Academic CTA Section */
.academic-cta-section {
  padding: var(--spacing-xl) var(--section-px);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  color: var(--text-light);
  text-align: center;
}

.academic-cta-container {
  max-width: 900px;
  margin: 0 auto;
}

.academic-cta-container h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.academic-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .academics-hero {
    min-height: 320px;
    padding: var(--spacing-lg) var(--section-px);
  }

  .hero-buttons,
  .academic-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn,
  .hero-buttons .cta-button,
  .academic-cta-buttons .btn,
  .academic-cta-buttons .cta-button {
    width: 100%;
  }

  .framework-grid,
  .grade-cards,
  .subjects-grid,
  .support-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .framework-card,
  .grade-content {
    padding: 2rem;
  }
}

/* ========================================
   APPLY (APPLICATION) PAGE
   ======================================== */

.apply-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  color: var(--text-light);
  padding: var(--spacing-lg) var(--section-px);
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apply-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.apply-hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
}

.apply-form-section {
  padding: var(--spacing-xl) var(--section-px);
  background-color: var(--text-light);
}

.apply-container {
  max-width: 900px;
  margin: 0 auto;
}

.apply-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.apply-intro p {
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.8;
}

.apply-form {
  background: var(--text-light);
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  padding: 3rem;
}

.form-section {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-gray);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-description {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  border: 2px solid var(--border-gray);
  border-radius: 6px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-yellow);
  box-shadow: var(--btn-focus);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.agreements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.agreement-card {
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.22s ease;
}

.agreement-card:hover {
  border-color: var(--primary-yellow);
}

.agreement-card h4 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.agreement-link {
  display: inline-block;
  color: var(--primary-yellow);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.22s ease;
}

.agreement-link:hover {
  color: var(--hover-yellow);
  text-decoration: underline;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
  cursor: pointer;
}

.checkbox-group label {
  margin-bottom: 0;
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Requirements Section */
.requirements-section {
  padding: var(--spacing-xl) var(--section-px);
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.requirements-container {
  max-width: 1100px;
  margin: 0 auto;
}

.requirements-container h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--primary-dark);
  margin-bottom: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.requirements-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.requirement-block {
  background: var(--text-light);
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  padding: 2rem;
}

.requirement-block h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.requirement-block p {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.requirement-block ul {
  list-style: none;
  padding: 0;
}

.requirement-block ul li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-dark);
  position: relative;
}

.requirement-block ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-yellow);
  font-weight: 700;
}

.requirements-note {
  background: var(--text-light);
  border-left: 4px solid var(--primary-yellow);
  padding: 2rem;
  border-radius: 6px;
}

.requirements-note p {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.8;
  margin: 0;
}

/* Apply CTA Section */
.apply-cta-section {
  padding: var(--spacing-xl) var(--section-px);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  color: var(--text-light);
  text-align: center;
}

.apply-cta-container {
  max-width: 900px;
  margin: 0 auto;
}

.apply-cta-container h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--text-light);
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.apply-cta-container p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
}

.apply-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .apply-hero {
    min-height: 200px;
    padding: var(--spacing-md) var(--section-px);
  }

  .apply-form {
    padding: 2rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .agreements-grid {
    grid-template-columns: 1fr;
  }

  .form-actions,
  .apply-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn,
  .form-actions .cta-button,
  .apply-cta-buttons .btn,
  .apply-cta-buttons .cta-button {
    width: 100%;
  }

  .requirements-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ========================================
   ACADEMICS PAGE
   ======================================== */

.academics-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  color: var(--text-light);
  padding: var(--spacing-xl) var(--section-px);
  text-align: center;
}

.academics-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.academics-hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.hero-tagline {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary-yellow);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Academic Structure Section */
.academic-structure-section {
  padding: var(--spacing-xl) var(--section-px);
  background-color: var(--text-light);
}

.academic-structure-container {
  max-width: 1200px;
  margin: 0 auto;
}

.academic-structure-container h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--primary-dark);
  margin-bottom: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.framework-card {
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  padding: 2.5rem;
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.framework-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-yellow);
}

.framework-card h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.framework-card p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.framework-card strong {
  color: var(--primary-dark);
  font-weight: 700;
}

.framework-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.framework-list li {
  padding: 0.6rem 0 0.6rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  position: relative;
}

.framework-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-yellow);
  font-weight: 700;
}

/* Grade Levels Section */
.grade-levels-section {
  padding: var(--spacing-xl) var(--section-px);
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.grade-levels-container {
  max-width: 1200px;
  margin: 0 auto;
}

.grade-levels-container h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--primary-dark);
  margin-bottom: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.grade-levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.grade-card {
  background: var(--text-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.grade-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.grade-header {
  background: var(--nav-gradient);
  padding: 2rem;
  text-align: center;
}

.grade-header h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  color: var(--primary-dark);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.grade-content {
  padding: 2.5rem;
}

.grade-content h4 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.grade-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.grade-list li {
  padding: 0.6rem 0 0.6rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  position: relative;
}

.grade-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-yellow);
  font-weight: 700;
}

.graduation-note {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-style: italic;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-gray);
}

/* Subjects Section */
.subjects-section {
  padding: var(--spacing-xl) var(--section-px);
  background-color: var(--text-light);
}

.subjects-container {
  max-width: 900px;
  margin: 0 auto;
}

.subjects-container h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--primary-dark);
  margin-bottom: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.subjects-column h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-bottom: 3px solid var(--primary-yellow);
  padding-bottom: 0.75rem;
}

.subjects-list {
  list-style: none;
  padding: 0;
}

.subjects-list li {
  padding: 0.75rem 0 0.75rem 1.8rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  position: relative;
}

.subjects-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-yellow);
  font-weight: 700;
}

/* Academic Support Section */
.academic-support-section {
  padding: var(--spacing-xl) var(--section-px);
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.academic-support-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 4rem;
}

.support-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.support-content p {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.support-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.support-list li {
  padding: 0.6rem 0 0.6rem 1.8rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  position: relative;
}

.support-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-yellow);
  font-weight: 700;
}

/* Academics CTA Section */
.academics-cta-section {
  padding: var(--spacing-xl) var(--section-px);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  color: var(--text-light);
  text-align: center;
}

.academics-cta-container {
  max-width: 900px;
  margin: 0 auto;
}

.academics-cta-container h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.academics-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .academics-hero {
    padding: var(--spacing-lg) var(--section-px);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn,
  .hero-buttons .cta-button {
    width: 100%;
  }

  .framework-grid,
  .grade-levels-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .framework-card {
    padding: 2rem;
  }

  .subjects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .academic-support-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .academics-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .academics-cta-buttons .btn,
  .academics-cta-buttons .cta-button {
    width: 100%;
  }
}

/* ========================================
   ADMISSIONS PAGE - K12 SPECIFIC STYLES
   ======================================== */

/* Tuition Overview Section */
.tuition-overview-section {
  padding: var(--spacing-xl) var(--section-px);
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.tuition-overview-container {
  max-width: 1200px;
  margin: 0 auto;
}

.tuition-overview-container h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.section-intro {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-dark);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.tuition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.tuition-card {
  background: var(--text-light);
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.tuition-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-yellow);
}

.tuition-card h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tuition-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-yellow);
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.tuition-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dark);
  font-family: var(--font-primary);
}

.tuition-includes {
  list-style: none;
  padding: 0;
  text-align: left;
}

.tuition-includes li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-gray);
}

.tuition-includes li:last-child {
  border-bottom: none;
}

.tuition-includes li::before {
  content: '✓';
  color: var(--primary-yellow);
  font-weight: 700;
  margin-right: 0.5rem;
}

.tuition-notes {
  background: var(--text-light);
  border-left: 4px solid var(--primary-yellow);
  padding: 2rem;
  border-radius: 6px;
  text-align: center;
}

.tuition-notes p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.tuition-notes p:last-child {
  margin-bottom: 0;
}

/* Application Process Timeline */
.application-process-section {
  padding: var(--spacing-xl) var(--section-px);
  background-color: var(--text-light);
}

.application-process-container {
  max-width: 1100px;
  margin: 0 auto;
}

.application-process-container h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.timeline-step {
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.timeline-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--nav-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0 auto 1rem;
  font-family: var(--font-heading);
}

.timeline-step h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.timeline-step p {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
}

/* Program Note Styling */
.program-note {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-dark);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-gray);
  line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .tuition-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tuition-card {
    padding: 1.5rem;
  }

  .tuition-amount {
    font-size: 2rem;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .timeline-step {
    padding: 1.5rem;
  }
}