:root {
  --green-900: #0f3d2c;
  --green-800: #14432f;
  --green-700: #1d5a41;
  --green-600: #256b4d;
  --green-100: #eaf3ee;
  --ink: #17281f;
  --grey: #5c6b62;
  --border: #dfe9e2;
  --radius: 14px;
  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.25;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-alt { background: var(--green-100); }
.eyebrow {
  color: var(--green-700);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}
.section-title { font-size: 2rem; margin-bottom: 16px; }
.section-lead { color: var(--grey); max-width: 640px; margin-bottom: 40px; font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--green-900);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1140px; margin: 0 auto;
}
.brand { display: flex; align-items: center; }
.brand img { height: 60px; width: auto; }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: rgba(255,255,255,0.88); }
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: #fff; color: var(--green-900); padding: 10px 20px;
  border-radius: 30px; font-weight: 600; font-size: 0.9rem;
}
.nav-cta:hover { background: var(--green-100); color: var(--green-900); }
.nav-links .nav-cta, .nav-links .nav-cta:hover { color: var(--green-900); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #fff; }

.social-icons { display: flex; gap: 14px; align-items: center; }
.social-icons a { color: rgba(255,255,255,0.8); display: flex; }
.social-icons a:hover { color: #fff; }
.social-icons svg { width: 20px; height: 20px; }
footer .social-icons { margin-top: 16px; }

/* Hero */
.hero-cover {
  position: relative; overflow: hidden; color: #fff;
  padding: 140px 0 110px; min-height: 560px; display: flex; align-items: center;
}
.hero-cover-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-cover-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(15,61,44,0.94) 0%, rgba(15,61,44,0.82) 40%, rgba(15,61,44,0.45) 75%, rgba(15,61,44,0.25) 100%);
}
.hero-cover-content { position: relative; z-index: 2; max-width: 640px; }
.hero-cover .eyebrow { color: #bfe3cf; }
.motto-highlight {
  font-size: 3.2rem; margin-bottom: 20px; text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.hero-cover p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 32px; max-width: 560px; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 30px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none;
}
.btn-primary { background: #fff; color: var(--green-900); }
.btn-primary:hover { background: var(--green-100); }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-dark-outline { border: 1.5px solid var(--green-900); color: var(--green-900); }
.btn-dark-outline:hover { background: var(--green-100); }

.campus-banner { position: relative; background: var(--green-900); }
.campus-banner img {
  width: 100%; display: block; max-height: 380px; object-fit: cover; object-position: center 30%;
}
.campus-caption { padding: 18px 24px; text-align: center; }
.campus-caption .eyebrow { margin-bottom: 4px; }
.campus-caption p { color: var(--grey); font-size: 0.95rem; }

.page-hero {
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-700) 100%);
  color: #fff; padding: 64px 0; text-align: center;
}
.page-hero h1 { font-size: 2.3rem; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.8); }

/* Quick links */
.quick-links {
  position: relative; z-index: 5; margin-top: -40px; margin-bottom: 40px;
  background: #fff; border-radius: var(--radius); box-shadow: 0 20px 40px rgba(15,61,44,0.15);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.quick-link {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 28px 16px; text-align: center; font-weight: 600; font-size: 0.95rem; color: var(--ink);
  border-right: 1px solid var(--border); transition: background 0.2s ease;
}
.quick-link:last-child { border-right: none; }
.quick-link:hover { background: var(--green-100); }
.quick-link .icon { font-size: 1.8rem; }

/* Grids */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; height: 100%;
}
.card .card-photo {
  aspect-ratio: 16/10; margin: -28px -28px 18px; border-radius: var(--radius) var(--radius) 0 0;
}
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--green-100);
  color: var(--green-700); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { color: var(--grey); font-size: 0.92rem; }

.stats-band { background: var(--green-900); padding: 56px 0; }
.stat-row { display: flex; gap: 80px; flex-wrap: wrap; justify-content: center; }
.stat { text-align: center; }
.stat b { font-size: 2.8rem; color: #fff; display: block; font-family: 'Poppins', sans-serif; }
.stat span { color: rgba(255,255,255,0.75); font-size: 0.95rem; }

/* Photos */
.photo-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
}
.photo-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.3,1), filter 0.6s ease;
}
.photo-frame:hover img { transform: scale(1.07); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-grid .photo-frame { aspect-ratio: 1/1; }
.gallery-grid .photo-frame:first-child { grid-row: span 2; grid-column: span 2; aspect-ratio: 1/1; }

/* Scroll reveal + hero zoom */
@keyframes heroSlowZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-cover-img { animation: heroSlowZoom 14s ease-out forwards; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in-view { opacity: 1; transform: none; }

.video-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  position: relative; aspect-ratio: 16/9; background: #000;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Testimonials */
.quote-card {
  background: var(--green-100); border-radius: var(--radius); padding: 28px;
}
.quote-card p { font-style: italic; color: var(--ink); margin-bottom: 16px; }
.quote-card .name { font-weight: 600; font-size: 0.9rem; }
.quote-card .role { color: var(--grey); font-size: 0.8rem; }

/* News clipping */
.news-card {
  display: flex; gap: 20px; align-items: center; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.news-card .photo-frame { width: 120px; flex-shrink: 0; aspect-ratio: 3/4; }
.news-card h3 { font-size: 1rem; margin-bottom: 6px; }
.news-card p { color: var(--grey); font-size: 0.9rem; }

.achievement-card .photo-frame { aspect-ratio: 4/3; margin-bottom: 16px; }
.achievement-card h3 { font-size: 1rem; margin-bottom: 8px; }
.achievement-card p { color: var(--grey); font-size: 0.88rem; line-height: 1.55; }
.achievement-multi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.achievement-multi .photo-frame { aspect-ratio: 3/4; }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.list-check { list-style: none; }
.list-check li { padding-left: 28px; position: relative; margin-bottom: 12px; color: var(--grey); }
.list-check li::before {
  content: "✓"; position: absolute; left: 0; color: var(--green-700); font-weight: 700;
}

/* CTA band */
.cta-band {
  background: var(--green-900); color: #fff; border-radius: 20px; padding: 48px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.75); }

/* Footer */
footer { background: var(--green-900); color: rgba(255,255,255,0.8); padding: 56px 0 24px; }
footer .brand img { height: 52px; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; font-size: 0.9rem; }
footer a:hover { color: #bfe3cf; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px;
  font-size: 0.82rem; color: rgba(255,255,255,0.5); text-align: center;
}

/* Philosophy / values */
.philosophy-list { max-width: 820px; }
.philosophy-row {
  display: grid; grid-template-columns: 220px 1fr; gap: 40px;
  padding: 32px 0; border-bottom: 1px solid var(--border);
}
.philosophy-row:first-child { padding-top: 0; }
.philosophy-row:last-child { border-bottom: none; }
.philosophy-label { display: flex; align-items: center; gap: 14px; }
.philosophy-label .icon {
  width: 44px; height: 44px; border-radius: 12px; background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.philosophy-label h3 { font-size: 1.25rem; color: var(--green-800); }
.philosophy-row p { color: var(--grey); font-size: 1.08rem; max-width: 560px; }

.values-row { display: flex; flex-wrap: wrap; gap: 12px; }
.value-chip {
  background: #fff; border: 1px solid var(--border); border-radius: 30px;
  padding: 9px 20px; font-size: 0.88rem; font-weight: 600; color: var(--green-800);
}

/* Leadership */
.leader-card { text-align: center; }
.leader-card .photo-frame { aspect-ratio: 1/1; margin-bottom: 18px; }
.leader-card .photo-frame img { object-position: center 15%; }
.leader-card h3 { margin-bottom: 2px; font-size: 1.05rem; }
.leader-card .role { color: var(--green-700); font-weight: 600; font-size: 0.85rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: center; }
.step .num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--green-900); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  margin: 0 auto 16px;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item .icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--green-100); flex-shrink: 0;
  color: var(--green-700); display: flex; align-items: center; justify-content: center;
}
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

form.inquiry { display: grid; gap: 16px; }
form.inquiry input, form.inquiry textarea, form.inquiry select {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--border);
  font-family: inherit; font-size: 0.95rem;
}
form.inquiry label { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; display: block; }

@media (max-width: 860px) {
  .nav-links { position: fixed; top: 88px; left: 0; right: 0; background: var(--green-900);
    flex-direction: column; padding: 20px 24px; gap: 18px;
    display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .grid-2, .split, .contact-grid, .footer-grid, .steps, .hero-grid { grid-template-columns: 1fr; }
  .philosophy-row { grid-template-columns: 1fr; gap: 12px; }
  .quick-links { grid-template-columns: repeat(2, 1fr); margin-top: -24px; }
  .quick-link { border-bottom: 1px solid var(--border); }
  .quick-link:nth-child(2n) { border-right: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .photo-frame:first-child { grid-column: span 2; }
  .hero h1 { font-size: 2.1rem; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .news-card { flex-direction: column; align-items: flex-start; }
}

/* Highlighted achievement */
.highlight-feature {
  position: relative; background: #fff; border: 2px solid var(--green-700);
  border-radius: 20px; padding: 40px 32px 32px; margin-bottom: 48px;
  box-shadow: 0 18px 40px rgba(15, 61, 44, 0.14);
}
.highlight-badge {
  position: absolute; top: -14px; left: 32px; background: var(--green-900); color: #fff;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 30px;
}
.highlight-feature .value-chip { font-size: 0.82rem; }

/* Admissions popup + modals */
.admission-popup {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 160px;
  border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(0,0,0,0.28);
  border: 2px solid var(--green-700);
}
.admission-popup[hidden] { display: none; }
.admission-popup-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 12px; overflow: hidden; }
.admission-popup-open img { width: 100%; height: auto; transition: transform 0.3s ease; }
.admission-popup-open:hover img { transform: scale(1.04); }
.admission-popup-close {
  position: absolute; top: -12px; right: -12px; width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: var(--green-900); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; z-index: 1;
}
.modal {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 30, 22, 0.65);
  display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal-box {
  position: relative; background: #fff; border-radius: 18px; padding: 32px; width: 100%; max-width: 440px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.modal-box-wide { max-width: 560px; padding: 16px; text-align: center; }
.modal-close {
  position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--green-100); color: var(--green-900); font-size: 1.3rem; cursor: pointer; z-index: 1;
}
.modal-box h2 { font-size: 1.4rem; margin-bottom: 4px; }
.modal-sub { color: var(--grey); font-size: 0.92rem; margin-bottom: 18px; }
.modal-box form label { display: block; font-size: 0.85rem; font-weight: 600; margin: 12px 0 4px; }
.modal-box form input, .modal-box form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  font-family: inherit; font-size: 0.95rem;
}
.modal-box form input:focus, .modal-box form textarea:focus { outline: 2px solid var(--green-700); outline-offset: 1px; }


.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.modal-actions .btn { flex: 1 1 auto; text-align: center; }
.modal-box .btn-primary { background: var(--green-900); color: #fff; }
.modal-box .btn-primary:hover { background: var(--green-700); }
.lightbox-img { width: 100%; height: auto; border-radius: 12px; }
.lightbox-cta { margin-top: 14px; }
body.modal-open { overflow: hidden; }
@media (max-width: 860px) {
  .admission-popup { width: 108px; right: 12px; bottom: 12px; }
  .modal-box { padding: 24px 20px; }
}

/* Enquiry form status + spam trap */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.88rem; margin-top: 10px; padding: 10px 14px; border-radius: 10px; }
.form-status[hidden] { display: none; }
.form-status.is-ok { background: var(--green-100); color: var(--green-900); }
.form-status.is-error { background: #fdecea; color: #b3261e; }
button:disabled { opacity: 0.6; cursor: wait; }
form.inquiry .btn-primary { background: var(--green-900); color: #fff; }
form.inquiry .btn-primary:hover { background: var(--green-700); }
