/* =====================================================
   HILLS MONTESSORI SCHOOL — MAIN STYLESHEET
   Color palette: Deep Blue · Gold · White
   ===================================================== */

/* --- Design Tokens --- */
:root {
  --blue-dark:  #1B3A6B;
  --blue-mid:   #2E5FA3;
  --blue-light: #4A7CC7;
  --gold:       #C9A227;
  --gold-light: #E4BF45;
  --white:      #FFFFFF;
  --gray-light: #F4F6FA;
  --gray-mid:   #E2E8F0;
  --gray-text:  #64748B;
  --text-dark:  #1A202C;
  --text-body:  #374151;
  --error:      #C53030;
  --success-bg: #F0FFF4;
  --success-bd: #68D391;
  --success-tx: #22543D;

  --font-heading: 'Merriweather', Georgia, serif;
  --font-body:    'Open Sans', Arial, sans-serif;

  --radius:    12px;
  --radius-sm: 6px;
  --shadow:    0 4px 24px rgba(27, 58, 107, 0.10);
  --shadow-lg: 0 10px 48px rgba(27, 58, 107, 0.18);
  --transition: all 0.3s ease;

  --max-width: 1200px;
  --nav-h:     80px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.gold { color: var(--gold); }
.req  { color: var(--error); }

section { padding: 96px 0; }

.section-header { text-align: center; margin-bottom: 64px; }

.section-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--blue-dark);
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-subtitle {
  max-width: 640px;
  margin: 0 auto;
  color: var(--gray-text);
  font-size: 1.05rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--gold);
  color: var(--blue-dark);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.38);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue-dark);
}

.btn-large { padding: 18px 48px; font-size: 1.1rem; }
.btn-full  { width: 100%; }


/* =======================================================
   NAVIGATION
   ======================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
  height: var(--nav-h);
}

.navbar.scrolled {
  background: var(--blue-dark);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

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

.school-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.school-tagline {
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

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

.nav-link {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  opacity: 0.88;
}
.nav-link:hover,
.nav-link.active-nav { opacity: 1; color: var(--gold); }

.btn-enroll {
  background: var(--gold);
  color: var(--blue-dark) !important;
  opacity: 1 !important;
  padding: 10px 20px;
  margin-left: 8px;
}
.btn-enroll:hover {
  background: var(--gold-light);
  color: var(--blue-dark) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =======================================================
   HERO
   ======================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('school aeriel.jfif') center center / cover no-repeat;
  padding: 0 24px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 58, 107, 0.90) 0%,
    rgba(27, 58, 107, 0.72) 55%,
    rgba(46, 95, 163, 0.50) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding-top: var(--nav-h);
}

.hero-badge {
  display: inline-block;
  background: rgba(201, 162, 39, 0.18);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 22px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-indicator {
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  position: relative;
}
.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 2px;
  animation: scrollBounce 2.2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { top: 6px; opacity: 1; }
  50%       { top: 18px; opacity: 0.25; }
}


/* =======================================================
   STATS BAR
   ======================================================= */
.stats-bar {
  background: var(--blue-dark);
  padding: 52px 0;
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item { text-align: center; }

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
}


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

/* Overview row */
.about-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 88px;
}

.about-text h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--blue-dark);
  margin-bottom: 16px;
}
.about-text p { margin-bottom: 14px; }

.about-features { margin-top: 28px; }
.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--gray-mid);
  font-weight: 600;
  color: var(--text-dark);
}
.about-features li:last-child { border-bottom: none; }

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--gold);
  color: var(--blue-dark);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
  flex-shrink: 0;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-image::before {
  content: '';
  position: absolute;
  top: -14px; left: -14px;
  right: 14px; bottom: 14px;
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}
.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* Leadership */
.leadership-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: 48px;
}

.leaders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.leader-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--gold);
}
.leader-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.leader-image-wrap {
  width: 100%;
  height: 260px;
  overflow: hidden;
}
.leader-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s ease;
}
.leader-card:hover .leader-image-wrap img { transform: scale(1.05); }

.leader-info { padding: 24px; }

.leader-role {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 162, 39, 0.12);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 8px;
}

.leader-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--blue-dark);
  margin-bottom: 12px;
}

.leader-message {
  font-size: 0.9rem;
  color: var(--gray-text);
  font-style: italic;
  line-height: 1.8;
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  margin: 0;
}


/* =======================================================
   ACADEMICS
   ======================================================= */
.academics { background: var(--gray-light); }

.academics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.academic-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.academic-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--blue-mid);
  transition: height 0.3s ease;
}
.academic-card.featured::before { background: var(--gold); }
.academic-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.academic-card:hover::before { height: 6px; }

.academic-card.featured {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}
.academic-card.featured:hover { transform: scale(1.03) translateY(-8px); }

.academic-icon { font-size: 2.8rem; margin-bottom: 20px; }

.academic-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--blue-dark);
  margin-bottom: 12px;
}

.academic-card > p {
  color: var(--gray-text);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.academic-card ul li {
  padding: 7px 0 7px 22px;
  border-bottom: 1px solid var(--gray-mid);
  font-size: 0.9rem;
  color: var(--text-body);
  position: relative;
}
.academic-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.academic-card ul li:last-child { border-bottom: none; }


/* =======================================================
   GALLERY
   ======================================================= */
.gallery { background: var(--blue-dark); }
.gallery .section-title    { color: var(--white); }
.gallery .section-subtitle { color: rgba(255, 255, 255, 0.68); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px;
  gap: 10px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-sm);
  position: relative;
  cursor: pointer;
}
.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 58, 107, 0.85) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: var(--white);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}


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

.admissions-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 160px;
  max-width: 210px;
  text-align: center;
  padding: 32px 20px;
  background: var(--gray-light);
  border-radius: var(--radius);
  transition: var(--transition);
}
.step:hover {
  background: var(--blue-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.step:hover h4,
.step:hover p { color: var(--white); }

.step-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}
.step h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--blue-dark);
  margin-bottom: 8px;
  transition: var(--transition);
}
.step p {
  font-size: 0.88rem;
  color: var(--gray-text);
  transition: var(--transition);
}

.step-arrow {
  align-self: center;
  font-size: 1.6rem;
  color: var(--gold);
  padding: 0 10px;
  flex-shrink: 0;
}

.admissions-cta { text-align: center; }

.admissions-note {
  margin-top: 18px;
  color: var(--gray-text);
  font-size: 0.95rem;
}
.admissions-note a {
  color: var(--blue-mid);
  font-weight: 700;
}
.admissions-note a:hover { text-decoration: underline; }


/* =======================================================
   CONTACT
   ======================================================= */
.contact { background: var(--gray-light); }

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

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.contact-icon { font-size: 1.5rem; flex-shrink: 0; padding-top: 2px; }
.contact-item h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--blue-dark);
  margin-bottom: 4px;
}
.contact-item p  { color: var(--gray-text); font-size: 0.95rem; }
.contact-item a  { color: var(--blue-mid); font-weight: 700; }
.contact-item a:hover { text-decoration: underline; }

/* Form wrapper */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

/* Form shared styles (used in both modal and contact) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(46, 95, 163, 0.12);
}
.form-group input.error,
.form-group textarea.error,
.form-group select.error { border-color: var(--error); }

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

.form-error {
  font-size: 0.8rem;
  color: var(--error);
  font-weight: 600;
  min-height: 1.1em;
}

.form-success {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--success-bg);
  border: 1px solid var(--success-bd);
  border-radius: var(--radius-sm);
  color: var(--success-tx);
  font-weight: 600;
  font-size: 0.95rem;
}


/* =======================================================
   FOOTER
   ======================================================= */
.footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 72px 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.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo img  { width: 42px; }
.footer-logo span {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  font-weight: 700;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.8; }

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 0.9rem;
  opacity: 0.78;
  transition: var(--transition);
}
.footer-col ul a:hover { opacity: 1; color: var(--gold); padding-left: 4px; }

.footer-col p  { font-size: 0.9rem; margin-bottom: 6px; }
.footer-phone  { color: var(--gold); font-weight: 700; }
.footer-phone:hover { text-decoration: underline; }

.footer-bottom {
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
  opacity: 0.55;
}


/* =======================================================
   MODAL
   ======================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 58, 107, 0.72);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--gray-text);
  line-height: 1;
  padding: 4px 8px;
  transition: var(--transition);
  border-radius: 4px;
}
.modal-close:hover { color: var(--blue-dark); background: var(--gray-light); }

.modal-header { margin-bottom: 28px; padding-right: 36px; }
.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.modal-header p { color: var(--gray-text); font-size: 0.95rem; }


/* =======================================================
   SCROLL REVEAL ANIMATION
   ======================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.20s; }
.reveal-d3 { transition-delay: 0.30s; }
.reveal-d4 { transition-delay: 0.40s; }


/* =======================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ======================================================= */
@media (max-width: 1024px) {
  .leaders-grid {
    grid-template-columns: 1fr 1fr;
  }
  .leaders-grid .leader-card:last-child {
    grid-column: span 2;
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}


/* =======================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ======================================================= */
@media (max-width: 768px) {
  section { padding: 72px 0; }
  .section-header { margin-bottom: 48px; }

  /* Nav */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--blue-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 24px;
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-link {
    padding: 14px 16px;
    text-align: center;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }
  .btn-enroll { margin-left: 0; margin-top: 8px; }

  /* Stats */
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }

  /* About */
  .about-overview { grid-template-columns: 1fr; gap: 40px; }
  .about-image::before { display: none; }

  /* Leaders */
  .leaders-grid { grid-template-columns: 1fr; }
  .leaders-grid .leader-card:last-child { grid-column: span 1; max-width: 100%; }

  /* Academics */
  .academics-grid { grid-template-columns: 1fr; }
  .academic-card.featured { transform: none; }
  .academic-card.featured:hover { transform: translateY(-8px); }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item        { height: 180px; }
  .gallery-item.large  { grid-column: span 2; grid-row: span 1; height: 240px; }

  /* Admissions steps */
  .admissions-steps { flex-direction: column; align-items: center; gap: 16px; }
  .step-arrow { transform: rotate(90deg); padding: 4px 0; }
  .step { max-width: 100%; width: 100%; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-wrap { padding: 28px 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Modal */
  .modal { padding: 32px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}


/* =======================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ======================================================= */
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; }

  .stats-bar .container { gap: 20px; }
  .stat-number { font-size: 2rem; }

  .gallery-grid  { grid-template-columns: 1fr; }
  .gallery-item  { height: 200px; }
  .gallery-item.large { grid-column: span 1; height: 220px; }
}
