:root {
  --navy: #163a75;
  --navy-dark: #0c2452;
  --navy-deep: #081a3d;
  --gold: #c9a93b;
  --gold-dark: #a98b26;
  --gold-soft: #f7f1dc;
  --ink: #1b2333;
  --muted: #5c687c;
  --line: #e4e8f0;
  --soft: #f4f6fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 36, 82, .08);
  --shadow-lg: 0 20px 50px rgba(12, 36, 82, .16);
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { font-family: var(--font-body); color: var(--ink); font-size: 1rem; line-height: 1.7; background: #fff; }
h1, h2, h3, h4, .font-head { font-family: var(--font-head); color: var(--navy-dark); line-height: 1.2; }
h5, h6 { font-weight: 700; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; }
.text-muted { color: var(--muted) !important; }
.text-gold { color: var(--gold) !important; }
.bg-soft { background: var(--soft); }
.bg-navy { background: var(--navy-dark); color: #fff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--gold); color: #000; padding: 8px 14px; }
.skip-link:focus { left: 8px; top: 8px; }

/* Buttons */
.btn { border-radius: 999px; font-weight: 600; padding: .7rem 1.6rem; letter-spacing: .01em; }
.btn-sm { padding: .4rem 1rem; }
.btn-gold { background: var(--gold); color: var(--navy-deep); border: 2px solid var(--gold); }
.btn-gold:hover, .btn-gold:focus { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; border: 2px solid var(--navy); }
.btn-navy:hover, .btn-navy:focus { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn-outline-light:hover { color: var(--navy-dark); }
.btn-outline-navy { border: 2px solid var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* Eyebrow + section titles */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; color: var(--gold-dark); margin-bottom: .8rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.section-title { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin-bottom: 1rem; }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 720px; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }
.text-center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--gold); }

/* Top bar */
.topbar { background: var(--navy-deep); color: rgba(255,255,255,.82); font-size: .85rem; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--gold); }
.topbar .social a { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; }
.announcement { background: var(--gold); color: var(--navy-deep); font-weight: 600; font-size: .9rem; }
.announcement a { color: var(--navy-deep); text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1030; background: var(--navy); box-shadow: 0 4px 18px rgba(0,0,0,.12); }
.site-header .navbar { padding: 0; }
.site-header .brand img { height: 62px; width: auto; display: block; transition: height .2s; }
.site-header.scrolled .brand img { height: 52px; }
.site-header .nav-link { color: #fff !important; font-weight: 500; font-size: .95rem; padding: 1.55rem .8rem !important; position: relative; }
.site-header.scrolled .nav-link { padding-top: 1.2rem !important; padding-bottom: 1.2rem !important; }
.site-header .nav-link::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 1rem; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.site-header .nav-link:hover::after, .site-header .nav-link.active::after { transform: scaleX(1); }
.site-header .dropdown-menu { border: 0; border-radius: 12px; box-shadow: var(--shadow-lg); padding: .5rem; min-width: 240px; border-top: 3px solid var(--gold); }
.site-header .dropdown-item { border-radius: 8px; padding: .55rem .9rem; font-weight: 500; }
.site-header .dropdown-item:hover, .site-header .dropdown-item.active { background: var(--soft); color: var(--navy); }
.site-header .navbar-toggler { border-color: rgba(255,255,255,.4); }
.site-header .navbar-toggler-icon { filter: invert(1); }
@media (min-width: 1200px) { .site-header .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; } }
@media (max-width: 1199.98px) {
  .site-header .navbar-collapse { max-height: 75vh; overflow-y: auto; padding-bottom: 1rem; }
  .site-header .nav-link { padding: .7rem 0 !important; }
  .site-header .nav-link::after { display: none; }
  .site-header .dropdown-menu { box-shadow: none; background: rgba(255,255,255,.06); border-top: 0; }
  .site-header .dropdown-item { color: #fff; }
  .site-header .dropdown-item:hover { color: var(--navy); }
}

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy-deep); }
.hero video, .hero .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(8,26,61,.92) 0%, rgba(8,26,61,.72) 45%, rgba(8,26,61,.25) 100%); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 700; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero .lead { font-size: 1.2rem; color: rgba(255,255,255,.88); max-width: 600px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-badges span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; backdrop-filter: blur(4px); }
.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; color: #fff; font-size: 1.6rem; animation: bob 2s infinite; }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll { animation: none; } html { scroll-behavior: auto; } }

/* Stats */
.stats-strip { position: relative; z-index: 3; margin-top: -70px; }
.stats-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 2rem 1rem; }
.stat { text-align: center; padding: .5rem 1rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .num { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--navy); line-height: 1; }
.stat .num small { color: var(--gold); font-size: .6em; }
.stat .label { color: var(--muted); font-size: .9rem; margin-top: .4rem; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 767.98px) { .stat + .stat { border-left: 0; } .stat { padding: 1rem; } }

/* Image frames */
.img-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-accent { position: relative; }
.img-accent::before { content: ""; position: absolute; width: 60%; height: 70%; right: -18px; bottom: -18px; border: 3px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.experience-badge { position: absolute; left: -20px; bottom: 30px; background: var(--gold); color: var(--navy-deep); border-radius: var(--radius); padding: 1rem 1.3rem; box-shadow: var(--shadow); text-align: center; }
.experience-badge strong { display: block; font-family: var(--font-head); font-size: 2.2rem; line-height: 1; }
@media (max-width: 991.98px) { .experience-badge { left: 12px; } }

/* Cards */
.card-lift { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .25s, box-shadow .25s; height: 100%; overflow: hidden; }
.card-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.icon-circle { width: 58px; height: 58px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; background: var(--gold-soft); color: var(--gold-dark); flex-shrink: 0; }
.icon-circle.navy { background: rgba(22,58,117,.08); color: var(--navy); }
.feature-card { padding: 2rem; }
.feature-card h3, .feature-card h4 { font-size: 1.3rem; margin: 1rem 0 .6rem; }
.stage-card { padding: 2rem; border-top: 4px solid var(--gold); }
.stage-card .stage-grades { display: inline-block; background: var(--soft); color: var(--navy); font-weight: 600; font-size: .85rem; border-radius: 999px; padding: .2rem .8rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .65rem; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--gold-dark); font-size: 1.1rem; }

/* Tabs on home about */
.about-tabs .nav-link { border: 0; border-radius: 999px; color: var(--navy); font-weight: 600; padding: .5rem 1.2rem; background: var(--soft); margin: 0 .4rem .5rem 0; }
.about-tabs .nav-link.active { background: var(--navy); color: #fff; }

/* Admission band */
.cta-band { background: linear-gradient(110deg, var(--navy-deep), var(--navy)); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(201,169,59,.14); }
.cta-band h2 { color: #fff; }

/* Activities */
.activity-tile { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 280px; display: flex; align-items: flex-end; color: #fff; }
.activity-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.activity-tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 35%, rgba(8,26,61,.9)); }
.activity-tile:hover img { transform: scale(1.06); }
.activity-tile .body { position: relative; z-index: 2; padding: 1.5rem; }
.activity-tile h3 { color: #fff; font-size: 1.35rem; margin: 0; }

/* Posts */
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--soft); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { padding: 1.5rem; }
.post-card h3 { font-size: 1.2rem; margin: .5rem 0; }
.post-card h3 a { color: var(--navy-dark); }
.post-card h3 a:hover { color: var(--gold-dark); }
.post-meta { font-size: .82rem; color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; }
.badge-type { background: var(--gold-soft); color: var(--gold-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; border-radius: 6px; padding: .3rem .6rem; }
.article-body { font-size: 1.08rem; }
.article-body img { border-radius: 12px; margin: 1rem 0; height: auto; }
.article-body h2, .article-body h3 { margin-top: 2rem; }
.article-body blockquote { border-left: 4px solid var(--gold); background: var(--soft); padding: 1rem 1.5rem; border-radius: 0 12px 12px 0; font-style: italic; }
.article-body table { width: 100%; margin: 1.5rem 0; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery-grid a, .gallery-grid .gitem { position: relative; display: block; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--soft); }
.gallery-grid img, .gallery-grid video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-grid a:hover img { transform: scale(1.07); }
.gallery-grid .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #fff; background: rgba(8,26,61,.35); }
.gallery-grid .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .5rem .8rem; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.album-card .thumb { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.album-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.album-card:hover .thumb img { transform: scale(1.06); }
.album-card .count { position: absolute; top: 12px; right: 12px; background: rgba(8,26,61,.8); color: #fff; border-radius: 999px; font-size: .8rem; padding: .2rem .7rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(5,12,28,.94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox .stage { max-width: 92vw; max-height: 86vh; display: flex; align-items: center; justify-content: center; }
.lightbox img, .lightbox video { max-width: 92vw; max-height: 82vh; border-radius: 8px; }
.lightbox iframe { width: min(92vw, 1100px); aspect-ratio: 16/9; border: 0; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.5rem; }
.lightbox button:hover { background: var(--gold); color: var(--navy-deep); }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-size: .95rem; }

/* Testimonials */
.testimonial { background: #fff; border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); height: 100%; position: relative; }
.testimonial::before { content: "\201C"; font-family: var(--font-head); position: absolute; top: -10px; right: 24px; font-size: 6rem; color: var(--gold-soft); line-height: 1; }
.testimonial p { font-style: italic; color: #39445a; position: relative; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.stars { color: var(--gold); letter-spacing: 2px; }

/* Page header */
.page-header { position: relative; padding: 120px 0 80px; color: #fff; background: var(--navy-deep) center/cover no-repeat; }
.page-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,26,61,.94), rgba(22,58,117,.7)); }
.page-header .container { position: relative; }
.page-header h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.page-header p { color: rgba(255,255,255,.85); max-width: 680px; font-size: 1.1rem; }
.breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.breadcrumb a { color: var(--gold); }
.breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,.75); }

/* Leadership */
.leader { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 992px) { .leader { grid-template-columns: 5fr 7fr; } .leader.reverse > :first-child { order: 2; } }
.leader .role { color: var(--gold-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }
.quote-block { border-left: 4px solid var(--gold); padding: 1rem 1.4rem; background: var(--soft); border-radius: 0 12px 12px 0; font-style: italic; }

/* Tables */
.table-school { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table-school thead th { background: var(--navy); color: #fff; font-weight: 600; border: 0; }
.table-school td, .table-school th { padding: .9rem 1rem; vertical-align: middle; }

/* Timeline (schedule) */
.time-card { border-radius: var(--radius); padding: 1.8rem; background: #fff; border: 1px solid var(--line); height: 100%; }
.time-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.time-row:last-child { border-bottom: 0; }
.time-row span:last-child { font-weight: 600; color: var(--navy); text-align: right; }

/* Forms */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 2.2rem; }
.form-control, .form-select { border-radius: 10px; padding: .75rem 1rem; border-color: #d6dce7; }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(201,169,59,.2); }
.form-label { font-weight: 600; font-size: .9rem; color: var(--navy-dark); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.map-frame { border: 0; width: 100%; height: 420px; border-radius: var(--radius); }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding-top: 70px; }
.site-footer h5 { color: #fff; font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 1.2rem; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer .footer-logo { max-width: 300px; }
.site-footer .social a { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(255,255,255,.08); margin-right: .4rem; font-size: 1.1rem; }
.site-footer .social a:hover { background: var(--gold); color: var(--navy-deep); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.3rem 0; margin-top: 50px; font-size: .88rem; }

/* Floating actions */
.float-actions { position: fixed; right: 18px; bottom: 18px; z-index: 1040; display: flex; flex-direction: column; gap: 10px; }
.float-actions a { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; box-shadow: var(--shadow-lg); }
.float-actions .wa { background: #25d366; }
.float-actions .call { background: var(--navy); }
.float-actions a:hover { color: #fff; transform: scale(1.06); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Pagination */
.pagination .page-link { color: var(--navy); border-radius: 8px !important; margin: 0 3px; }
.pagination .page-item.active .page-link { background: var(--navy); border-color: var(--navy); color: #fff; }

.alert-success-soft { background: #e9f7ef; color: #1e6b3f; border: 1px solid #c8ebd6; border-radius: 12px; }
.bg-navy .form-card, .bg-navy .form-card h3 { color: var(--ink); }
.bg-navy .form-card h3 { color: var(--navy-dark); }
.article-body .ql-align-center { text-align: center; }
.article-body .ql-align-right { text-align: right; }
.article-body .ql-align-justify { text-align: justify; }
