:root {
  --navy: #102e4a;
  --navy-deep: #082238;
  --green: #1f654f;
  --green-dark: #154c3d;
  --gold: #f4bd42;
  --coral: #c94e3b;
  --ink: #1b2733;
  --muted: #667383;
  --line: #dfe6e8;
  --soft: #f3f7f4;
  --white: #fff;
  --shadow: 0 16px 42px rgba(15, 46, 65, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "Manrope", Arial, sans-serif; line-height: 1.6; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; }
.section-title { margin: 0; color: var(--navy); font-family: "Libre Baskerville", Georgia, serif; font-size: clamp(30px, 4vw, 48px); line-height: 1.18; }
.section-copy { max-width: 730px; margin: 15px 0 0; color: var(--muted); font-size: 15px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.text-link { border: 0; color: var(--green); background: transparent; font-size: 14px; font-weight: 800; }

.top-strip { color: #d7e2e8; background: var(--navy-deep); font-size: 12px; font-weight: 700; }
.top-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; }
.top-details { display: flex; flex-wrap: wrap; gap: 18px; }
.registration-link { color: var(--gold); font-weight: 800; }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(16, 46, 74, .08); background: rgba(255, 255, 255, .97); box-shadow: 0 6px 18px rgba(10, 45, 66, .05); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; max-width: 360px; }
.brand-mark { width: 54px; height: 54px; display: grid; place-items: center; border: 3px solid var(--gold); border-radius: 50%; color: #fff; background: var(--green); font-family: "Libre Baskerville", serif; font-size: 18px; }
.brand strong { display: block; color: var(--navy); font-family: "Libre Baskerville", serif; font-size: 15px; line-height: 1.35; }
.brand small { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link { padding: 11px 10px; border: 0; color: #33475b; background: transparent; font-size: 13px; font-weight: 800; }
.nav-link:hover, .nav-link.active { color: var(--green); }
.dropdown { position: absolute; top: calc(100% + 12px); left: 0; min-width: 230px; padding: 8px; border: 1px solid var(--line); border-radius: 5px; opacity: 0; visibility: hidden; background: #fff; box-shadow: var(--shadow); transform: translateY(8px); transition: .2s ease; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown button { width: 100%; padding: 9px 10px; border: 0; border-radius: 3px; color: #3e5060; background: #fff; text-align: left; font-size: 12px; font-weight: 700; }
.dropdown button:hover { color: var(--green); background: #eef7f3; }
.apply-btn, .primary-btn { border: 0; border-radius: 4px; color: #fff; background: var(--green); font-size: 13px; font-weight: 800; box-shadow: 0 8px 18px rgba(31, 101, 79, .22); transition: .2s ease; }
.apply-btn { padding: 11px 15px; }
.primary-btn { padding: 13px 20px; }
.apply-btn:hover, .primary-btn:hover { background: var(--green-dark); transform: translateY(-2px); }
.secondary-btn { padding: 12px 19px; border: 1px solid rgba(255,255,255,.62); border-radius: 4px; color: #fff; background: rgba(255,255,255,.08); font-size: 13px; font-weight: 800; }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 4px; color: var(--navy); background: #fff; font-size: 21px; }
.mobile-nav { display: none; }

.notice { color: #fff; background: var(--coral); overflow: hidden; }
.notice .container { display: grid; grid-template-columns: 145px 1fr; gap: 18px; align-items: center; min-height: 42px; }
.notice-label { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.ticker { overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 58px; animation: ticker 22s linear infinite; font-size: 13px; font-weight: 700; }
@keyframes ticker { to { transform: translateX(-50%); } }

.hero { position: relative; min-height: 620px; overflow: hidden; color: #fff; background: var(--navy); }
.hero-slide { position: absolute; inset: 0; opacity: 0; background-position: center; background-size: cover; transition: opacity .8s ease; }
.hero-slide.active { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,31,48,.84), rgba(4,31,48,.52) 45%, rgba(4,31,48,.16)); }
.hero-content { position: relative; z-index: 2; display: grid; align-content: center; min-height: 620px; max-width: 720px; padding: 70px 0 92px; }
.hero-kicker { margin: 0 0 12px; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.hero h1 { max-width: 690px; margin: 0; font-family: "Libre Baskerville", Georgia, serif; font-size: clamp(47px, 6vw, 76px); line-height: 1.08; }
.hero h1 span { color: var(--gold); }
.hero p { max-width: 590px; margin: 20px 0 28px; color: rgba(255,255,255,.88); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; }
.hero-stat { padding-right: 34px; border-right: 1px solid rgba(255,255,255,.28); }
.hero-stat:last-child { border: 0; }
.hero-stat strong { display: block; color: var(--gold); font-size: 25px; line-height: 1; }
.hero-stat span { display: block; margin-top: 8px; color: rgba(255,255,255,.78); font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.hero-dots { position: absolute; z-index: 4; right: 5%; bottom: 32px; display: flex; gap: 8px; }
.hero-dot { width: 24px; height: 4px; border: 0; border-radius: 0; background: rgba(255,255,255,.5); }
.hero-dot.active { background: var(--gold); }

.admission-banner { display: grid; grid-template-columns: 1.2fr .8fr; overflow: hidden; border-radius: 6px; color: #fff; background: var(--navy); box-shadow: var(--shadow); }
.admission-banner-copy { padding: 34px; }
.admission-banner-copy .eyebrow { color: var(--gold); }
.admission-banner h2 { margin: 0; font-family: "Libre Baskerville", serif; font-size: clamp(26px, 4vw, 40px); line-height: 1.18; }
.admission-banner p { max-width: 660px; margin: 14px 0 22px; color: rgba(255,255,255,.77); font-size: 14px; }
.admission-banner img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; margin-top: 14px; }
.timeline-card { display: flex; min-height: 162px; flex-direction: column; align-items: flex-start; padding: 19px; border: 1px solid var(--line); border-radius: 5px; background: #fff; box-shadow: 0 8px 18px rgba(20,55,70,.05); text-align: left; }
.timeline-card strong { color: var(--coral); font-size: 13px; }
.timeline-card h3 { margin: 7px 0 4px; color: var(--navy); font-size: 17px; }
.timeline-card p { margin: 0; color: var(--muted); font-size: 12px; }

.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.program-card { overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #fff; box-shadow: 0 8px 20px rgba(20,55,70,.06); }
.program-card img { width: 100%; aspect-ratio: 1.7; object-fit: cover; }
.program-body { padding: 20px; }
.program-level { color: var(--coral); font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.program-card h3 { margin: 7px 0 8px; color: var(--navy); font-family: "Libre Baskerville", serif; font-size: 21px; }
.program-card p { min-height: 73px; margin: 0; color: var(--muted); font-size: 13px; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.card-actions .primary-btn { padding: 10px 14px; font-size: 12px; }

.snapshot { position: relative; color: #fff; background: linear-gradient(rgba(7,34,55,.87), rgba(7,34,55,.9)), url("./school-building.jpeg") center / cover; }
.snapshot .section-title { color: #fff; text-align: center; }
.snapshot .eyebrow { color: var(--gold); text-align: center; }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 38px; }
.stat { padding: 6px 18px; border-right: 1px solid rgba(255,255,255,.24); text-align: center; }
.stat:last-child { border: 0; }
.stat strong { display: block; color: #fff; font-size: clamp(36px, 5vw, 54px); line-height: 1; }
.stat span { display: block; margin-top: 12px; color: rgba(255,255,255,.76); font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }

.approach-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.approach-card { padding: 24px; border-left: 4px solid var(--gold); background: #fff; box-shadow: 0 10px 25px rgba(22,59,71,.08); }
.approach-card strong { color: var(--coral); font-size: 14px; }
.approach-card h3 { margin: 12px 0 6px; color: var(--navy); font-size: 20px; }
.approach-card p { margin: 0; color: var(--muted); font-size: 13px; }

.gallery-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; grid-template-rows: 220px 220px; gap: 12px; }
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: 4px; background: #dfe8e8; }
.gallery-grid figure:first-child { grid-row: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }

.page-hero { min-height: 390px; display: grid; align-items: end; padding: 70px 0; color: #fff; background-position: center; background-size: cover; }
.page-hero h1 { max-width: 760px; margin: 0; font-family: "Libre Baskerville", serif; font-size: clamp(38px, 5vw, 58px); line-height: 1.15; }
.page-hero p { max-width: 720px; margin: 15px 0 0; color: rgba(255,255,255,.84); }
.about-hero { background-image: linear-gradient(rgba(6,35,56,.34), rgba(6,35,56,.8)), url("./school-building.jpeg"); }
.academics-hero { background-image: linear-gradient(rgba(6,35,56,.28), rgba(6,35,56,.82)), url("./library-wide.jpeg"); }
.admissions-hero { background-image: linear-gradient(rgba(6,35,56,.16), rgba(6,35,56,.77)), url("./admission-poster.jpeg"); background-position: center 38%; }
.infrastructure-hero { background-image: linear-gradient(rgba(6,35,56,.12), rgba(6,35,56,.8)), url("./infrastructure-background.png"); }
.gallery-hero { background-image: linear-gradient(rgba(6,35,56,.22), rgba(6,35,56,.8)), url("./school-building.jpeg"); }
.faculty-hero { background-image: linear-gradient(rgba(6,35,56,.32), rgba(6,35,56,.82)), url("./parent-meeting.jpeg"); }
.contact-hero { background-image: linear-gradient(rgba(6,35,56,.12), rgba(6,35,56,.8)), url("./contact-background.png"); background-position: center; }

.content-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 26px; align-items: start; }
.side-tabs { display: grid; gap: 5px; }
.side-tabs button { padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; color: #506170; background: #fff; text-align: left; font-size: 13px; font-weight: 800; }
.side-tabs button.active, .side-tabs button:hover { border-color: var(--green); color: #fff; background: var(--green); }
.content-panel { padding: 30px; border: 1px solid var(--line); border-radius: 5px; background: #fff; box-shadow: 0 10px 28px rgba(16,50,67,.06); }
.content-panel h2 { margin: 0 0 10px; color: var(--navy); font-family: "Libre Baskerville", serif; font-size: 29px; }
.content-panel h3 { margin: 25px 0 8px; color: var(--navy); font-size: 18px; }
.content-panel p, .content-panel li { color: var(--muted); font-size: 14px; }
.content-panel ul { padding-left: 19px; }
.content-panel li { margin-bottom: 8px; }
.details-grid { display: grid; grid-template-columns: 190px 1fr; border-top: 1px solid var(--line); }
.details-grid div { padding: 11px 8px; border-bottom: 1px solid var(--line); font-size: 13px; }
.details-grid div:nth-child(odd) { color: var(--navy); font-weight: 800; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #fff; background: var(--navy); }

.infra-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.infra-card { overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #fff; box-shadow: 0 10px 24px rgba(18,50,68,.06); }
.infra-card img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.infra-card div { padding: 18px; }
.infra-card h3 { margin: 0 0 7px; color: var(--navy); font-size: 18px; }
.infra-card p { margin: 0; color: var(--muted); font-size: 13px; }
.full-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.full-gallery figure { margin: 0; overflow: hidden; border-radius: 5px; background: #e9efee; }
.full-gallery img { width: 100%; aspect-ratio: 1.25; object-fit: cover; transition: transform .35s ease; }
.full-gallery figure:hover img { transform: scale(1.05); }
.faculty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.faculty-card { padding: 22px; border: 1px solid var(--line); border-radius: 5px; background: #fff; box-shadow: 0 9px 22px rgba(16,50,66,.06); }
.avatar { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 50%; color: #fff; background: var(--green); font-weight: 800; }
.faculty-card h3 { margin: 5px 0 2px; color: var(--navy); }
.faculty-card p { margin: 0; color: var(--muted); font-size: 13px; }

.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; }
.contact-panel, .form-panel { padding: 25px; border: 1px solid var(--line); border-radius: 5px; background: #fff; box-shadow: 0 9px 25px rgba(16,50,66,.06); }
.contact-panel h2, .form-panel h2 { margin: 0 0 15px; color: var(--navy); font-family: "Libre Baskerville", serif; font-size: 25px; }
.contact-panel p { margin: 10px 0; color: var(--muted); font-size: 14px; }
.contact-panel img { width: 100%; margin-top: 20px; border-radius: 3px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 6px; color: var(--navy); font-size: 12px; font-weight: 800; }
input, textarea { width: 100%; padding: 11px 12px; border: 1px solid #cfdadb; border-radius: 3px; outline: 0; color: var(--ink); background: #fff; font-size: 14px; }
input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,101,79,.1); }
textarea { min-height: 112px; resize: vertical; }
.span-2 { grid-column: span 2; }

.footer { color: rgba(255,255,255,.7); background: var(--navy-deep); }
.footer-grid { display: grid; grid-template-columns: 1.25fr .7fr .7fr .9fr; gap: 34px; padding: 48px 0 34px; }
.footer .brand strong { color: #fff; }
.footer p, .footer button { color: rgba(255,255,255,.65); font-size: 13px; }
.footer h3 { margin: 0 0 13px; color: #fff; font-size: 14px; }
.footer button { display: block; margin: 8px 0; padding: 0; border: 0; background: transparent; text-align: left; }
.footer button:hover { color: var(--gold); }
.copyright { padding: 15px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; text-align: center; }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; background: rgba(5,25,39,.75); }
.modal { position: relative; width: min(620px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; padding: 27px; border-radius: 6px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--navy); background: #edf3f2; font-size: 19px; }
.modal h2 { margin: 0 0 7px; color: var(--navy); font-family: "Libre Baskerville", serif; font-size: 29px; }
.modal > p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }

@media (max-width: 1040px) {
  .desktop-nav { display: none; }
  .menu-btn { display: block; }
  .mobile-nav { padding: 9px 18px 16px; border-top: 1px solid var(--line); background: #fff; }
  .mobile-nav.open { display: grid; gap: 3px; }
  .mobile-nav button { padding: 9px; border: 0; color: var(--navy); background: #fff; text-align: left; font-size: 13px; font-weight: 800; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
@media (max-width: 760px) {
  .top-details span:nth-child(3) { display: none; }
  .top-strip .container { align-items: flex-start; flex-direction: column; gap: 2px; padding: 6px 0; }
  .nav-wrap { min-height: 68px; }
  .brand-mark { width: 45px; height: 45px; font-size: 15px; }
  .brand strong { max-width: 230px; font-size: 12px; }
  .brand small { font-size: 9px; }
  .apply-btn { display: none; }
  .notice .container { grid-template-columns: 1fr; gap: 0; padding: 7px 0; }
  .notice-label { display: none; }
  .hero, .hero-content { min-height: 580px; }
  .hero h1 { font-size: 49px; }
  .hero p { font-size: 15px; }
  .hero-stats { gap: 15px; }
  .hero-stat { padding-right: 15px; }
  .hero-stat strong { font-size: 20px; }
  .hero-stat span { font-size: 9px; }
  .section { padding: 55px 0; }
  .section-head, .approach-intro { display: block; }
  .section-head .text-link { margin-top: 14px; padding-left: 0; }
  .admission-banner { grid-template-columns: 1fr; }
  .admission-banner img { min-height: 230px; }
  .timeline, .program-grid, .approach-grid, .infra-grid, .full-gallery, .faculty-grid, .contact-layout { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .stat { border: 0; }
  .stat:last-child { grid-column: span 2; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 150px; }
  .gallery-grid figure:first-child { grid-column: span 2; grid-row: auto; }
  .page-hero { min-height: 310px; padding: 48px 0; }
  .content-layout { grid-template-columns: 1fr; }
  .side-tabs { display: flex; overflow-x: auto; padding-bottom: 3px; }
  .side-tabs button { min-width: max-content; }
  .content-panel { padding: 20px; }
  .details-grid { grid-template-columns: 1fr; }
  .details-grid div:nth-child(odd) { padding-bottom: 2px; border-bottom: 0; }
  .details-grid div:nth-child(even) { padding-top: 2px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: span 2; }
}
