:root {
  --navy: #14237a;
  --navy-dark: #0d1857;
  --red: #d7261e;
  --yellow: #f7c600;
  --ink: #1b1f33;
  --muted: #5a607a;
  --bg: #ffffff;
  --tint: #f4f6fc;
  --line: #e2e6f2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 35, 122, .12);
  --font: 'Poppins', system-ui, sans-serif;
  --serif: 'Merriweather', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h2 { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--navy); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 2rem); margin-inline: auto; }

/* Top bar */
.topbar { background: var(--navy-dark); color: #dfe4ff; font-size: .8rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; flex-wrap: wrap; }
.topbar a { color: var(--yellow); font-weight: 600; text-decoration: none; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header.scrolled { box-shadow: 0 6px 20px rgba(20, 35, 122, .1); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: .6rem 0; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { border-radius: 10px; }
.brand strong { display: block; color: var(--navy); font-family: var(--serif); font-size: 1.05rem; line-height: 1.1; }
.brand small { color: var(--red); font-weight: 600; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__link { display: block; padding: .5rem .8rem; border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ink); }
.nav__link:hover, .nav__link.active { color: var(--navy); background: var(--tint); }
.nav__link--cta { background: var(--red); color: #fff; }
.nav__link--cta:hover, .nav__link--cta.active { background: #b81d16; color: #fff; }
.nav__toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* Buttons */
.btn { display: inline-block; padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; font-size: .95rem; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn--yellow { background: var(--yellow); color: var(--navy-dark); }
.btn--yellow:hover { background: #ffd633; }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); }

/* Hero */
.hero { position: relative; color: #fff; background: url('../images/students-group.jpg') center 30% / cover no-repeat, var(--navy); min-height: 560px; display: flex; align-items: center; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13,24,87,.94) 30%, rgba(13,24,87,.55) 100%); }
.hero__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 4rem; }
.hero__text { max-width: 640px; }
.pill { display: inline-block; background: var(--red); padding: .35rem 1rem; border-radius: 999px; font-size: .8rem; font-weight: 600; margin-bottom: 1.2rem; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 900; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero p { font-size: 1.1rem; color: #e5e9ff; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero__badge img { width: 190px; border-radius: 50%; border: 6px solid rgba(255,255,255,.9); box-shadow: 0 20px 50px rgba(0,0,0,.35); background: #fff; }

/* Facts */
.facts { background: var(--yellow); color: var(--navy-dark); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 1.2rem; }
.facts__grid div { display: flex; flex-direction: column; text-align: center; }
.facts__grid strong { font-size: 1.05rem; }
.facts__grid span { font-size: .8rem; }

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2 { color: #fff; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.eyebrow { display: inline-block; color: var(--red); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6rem; }
.eyebrow--light { color: var(--yellow); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.about__media { position: relative; padding-bottom: 3rem; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about__media > img:first-child { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about__media-small { position: absolute; right: -1rem; bottom: 0; width: 55%; border: 6px solid #fff; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.mv__card { background: var(--tint); border-left: 4px solid var(--red); border-radius: 10px; padding: 1rem 1.1rem; }
.mv__card h3 { color: var(--navy); margin-bottom: .3rem; }
.mv__card p { margin: 0; font-size: .92rem; color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); border-top: 4px solid var(--yellow); }
.card p { color: var(--muted); font-size: .93rem; margin: 0; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--navy); display: grid; place-items: center; margin-bottom: 1rem; }
.card__icon svg { width: 26px; height: 26px; fill: var(--yellow); }

/* English banner */
.english { background: linear-gradient(120deg, var(--navy-dark), var(--navy)); color: #fff; padding-block: 4rem; }
.english__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.english h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.english p { color: #dfe4ff; max-width: 520px; }
.english__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.english__list li { background: rgba(255,255,255,.08); border-left: 4px solid var(--yellow); padding: .9rem 1.1rem; border-radius: 8px; }
.english__list strong { display: block; color: var(--yellow); }

/* Life */
.life { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.life__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.life__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.life__item div { padding: 1rem 1.1rem 1.2rem; }
.life__item p { margin: 0; font-size: .9rem; color: var(--muted); }

/* Admissions */
.admissions { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.admissions p { color: #dfe4ff; }
.fees { background: rgba(255,255,255,.08); border-radius: var(--radius); padding: 1.4rem; margin-top: 1.5rem; }
.fees table { width: 100%; border-collapse: collapse; margin-bottom: .6rem; }
.fees th, .fees td { padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.18); text-align: left; font-weight: 500; }
.fees td { text-align: right; font-weight: 700; color: var(--yellow); font-size: 1.1rem; }
.fees small { color: #b9c2f5; }
.enquiry { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.8rem; display: grid; gap: 1rem; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.enquiry h3 { color: var(--navy); margin: 0; font-size: 1.2rem; }
.enquiry label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--navy); }
.enquiry input, .enquiry select, .enquiry textarea { font: inherit; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: 2px solid var(--navy); border-color: var(--navy); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.gallery .g-wide { grid-column: span 2; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: stretch; }
.contact__list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.contact__list strong { display: block; color: var(--navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.contact__list a { text-decoration: none; font-weight: 600; color: var(--navy); }
.contact__list a:hover { color: var(--red); }
.contact__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Footer */
.footer { background: var(--navy-dark); color: #c9d0f7; padding-block: 2rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: .8rem; }
.footer__brand img { border-radius: 8px; }
.footer__brand strong { display: block; color: #fff; }
.footer__brand span, .footer p { font-size: .85rem; margin: 0; }

/* Responsive */
@media (max-width: 960px) {
  .cards, .life { grid-template-columns: repeat(2, 1fr); }
  .about, .admissions, .contact, .english__inner { grid-template-columns: 1fr; }
  .hero__badge { display: none; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__list { position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: .8rem 1rem 1.2rem; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(20,35,122,.1); display: none; }
  .nav__list.open { display: flex; }
  .nav__link { border-radius: 10px; }
}

@media (max-width: 560px) {
  .cards, .life, .mv { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .g-wide { grid-column: span 2; }
  .about__media-small { right: 0; }
  .topbar__inner { justify-content: center; text-align: center; }
  .hero { min-height: 500px; }
}
