:root {
  --navy: #0c1f4a;
  --navy-2: #16306b;
  --purple: #6b3fd4;
  --purple-dark: #5a31b8;
  --purple-soft: #efe9fd;
  --bg: #f4f5f9;
  --ink: #17203a;
  --muted: #5b6482;
  --line: #e1e4ee;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(12, 31, 74, .08);
  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
}
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--font-body); color: var(--ink); background: var(--white); font-size: 1.05rem; line-height: 1.65; }
h1, h2, h3, h4, .navbar-brand { font-family: var(--font-head); letter-spacing: -.01em; }
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--purple); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

/* ---------- buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .65rem 1.4rem; }
.btn-purple { background: var(--purple); border-color: var(--purple); color: #fff; }
.btn-purple:hover, .btn-purple:focus { background: var(--purple-dark); border-color: var(--purple-dark); color: #fff; }
.btn-ghost { border: 2px solid rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline-navy { border: 2px solid var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ---------- navbar ---------- */
.site-nav { background: rgba(255,255,255,.96); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); padding: .6rem 0; }
.site-nav .navbar-brand { color: var(--navy); font-weight: 800; display: flex; align-items: center; gap: .6rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.brand-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: .72rem; color: var(--muted); line-height: 1; margin-top: 2px; }
.site-nav .nav-link { color: var(--ink); font-weight: 600; font-size: .98rem; border-radius: 999px; padding: .45rem .9rem !important; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--purple); background: var(--purple-soft); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 70%); color: #fff; padding: 8.5rem 0 5.5rem; overflow: hidden; position: relative; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; line-height: 1.06; margin: .6rem 0 1.4rem; max-width: 18ch; }
.hero-slogan { color: #cbbcff; font-weight: 600; font-size: 1.1rem; margin: 0; }
.hero-intro { color: #dbe2f5; max-width: 58ch; font-size: 1.12rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0; padding: 0; list-style: none; }
.hero-tags li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: .35rem .9rem; border-radius: 999px; font-size: .92rem; font-weight: 600; }
.hero-load { animation: rise .7s ease both; }
.hero-load.d2 { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.portrait { position: relative; max-width: 360px; margin: 0 auto; }
.portrait::before { content: ""; position: absolute; inset: 22px -18px -18px 22px; background: var(--purple); border-radius: 180px 180px 28px 28px; }
.portrait img { position: relative; width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; border-radius: 180px 180px 28px 28px; border: 5px solid #fff; background: #26407f; }
.portrait figcaption { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); background: #fff; color: var(--navy); font-weight: 700; padding: .5rem 1.2rem; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap; font-family: var(--font-head); }

/* ---------- sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg); }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--navy); margin-bottom: .6rem; }
.section-lead { color: var(--muted); max-width: 68ch; margin-bottom: 2.2rem; }
.card-soft { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* students carousel */
.student-slide { display: grid; grid-template-columns: 1fr; }
.student-slide img { width: 100%; height: 340px; object-fit: cover; object-position: top; background: var(--bg); }
.student-slide .body { padding: 1.6rem; }
.student-slide h3 { font-size: 1.6rem; color: var(--navy); margin-bottom: .2rem; }
.student-slide .meta { color: var(--purple); font-weight: 600; margin-bottom: .6rem; }
@media (min-width: 768px) {
  .student-slide { grid-template-columns: 5fr 7fr; }
  .student-slide img { height: 100%; min-height: 380px; }
  .student-slide .body { padding: 2.4rem; align-self: center; }
}
#studentCarousel { border-radius: var(--radius); overflow: hidden; }
#studentCarousel .carousel-control-prev, #studentCarousel .carousel-control-next { width: 52px; }
#studentCarousel .carousel-control-prev-icon, #studentCarousel .carousel-control-next-icon { background-color: rgba(12,31,74,.75); border-radius: 50%; padding: 18px; background-size: 50%; }
#studentCarousel .carousel-indicators [data-bs-target] { background-color: var(--purple); }

/* admission pathway */
.path-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.path-list li { position: relative; padding: 0 0 1.4rem 3.4rem; counter-increment: step; }
.path-list li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-head); }
.path-list li::after { content: ""; position: absolute; left: 1.15rem; top: 2.6rem; bottom: .2rem; width: 2px; background: var(--line); }
.path-list li:last-child::after { display: none; }
.path-list strong { color: var(--navy); }

/* meet */
.meet-card { background: linear-gradient(135deg, var(--purple) 0%, #4a2aa0 100%); color: #fff; border-radius: 26px; padding: 2.6rem; box-shadow: 0 20px 50px rgba(107,63,212,.35); }
.meet-card h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
.meet-card ul { padding-left: 1.2rem; }
.meet-icon { width: 76px; height: 76px; border-radius: 22px; background: #fff; color: var(--purple); display: grid; place-items: center; font-size: 2.2rem; margin-bottom: 1.2rem; }
.btn-meet { background: #fff; color: var(--purple-dark); font-weight: 800; padding: .85rem 2rem; letter-spacing: .02em; }
.btn-meet:hover { background: var(--navy); color: #fff; }
.meet-steps { background: rgba(255,255,255,.12); border-radius: 18px; padding: 1.4rem 1.6rem; }
.meet-steps ol { margin: 0; padding-left: 1.2rem; }

/* accordion */
.study-acc .accordion-item { border: 1px solid var(--line); border-radius: 14px !important; margin-bottom: .8rem; overflow: hidden; background: #fff; }
.study-acc .accordion-button { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.study-acc .accordion-button:not(.collapsed) { background: var(--purple-soft); color: var(--purple-dark); box-shadow: none; }
.study-acc .accordion-body p:last-child { margin-bottom: 0; }

/* resources */
.res-heading { font-size: 1.4rem; font-weight: 700; color: var(--navy); margin: 2.4rem 0 1rem; display: flex; align-items: center; gap: .6rem; }
.res-heading:first-of-type { margin-top: 0; }
.res-card { height: 100%; padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; transition: transform .18s ease, box-shadow .18s ease; }
.res-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(12,31,74,.13); }
.res-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--purple-soft); color: var(--purple); }
.res-icon.yt { background: #ffe9e9; color: #d62828; }
.res-icon.ig { background: #fde7f3; color: #c2185b; }
.res-icon.pdf { background: #fff0e0; color: #d9730d; }
.res-icon.app { background: #e3f6ec; color: #1a8a4f; }
.res-card h3 { font-size: 1.15rem; margin: .4rem 0 0; color: var(--navy); }
.res-card p { color: var(--muted); font-size: .98rem; margin: 0 0 .6rem; flex-grow: 1; }
.subject-card { height: 100%; overflow: hidden; }
.subject-head { background: var(--navy); color: #fff; padding: 1rem 1.4rem; display: flex; align-items: center; gap: .7rem; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.channel-row { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.4rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.channel-row:first-of-type { border-top: 0; }
.channel-row .name { flex: 1 1 140px; font-weight: 600; color: var(--ink); }
.channel-row .bi-youtube { color: #d62828; font-size: 1.5rem; }

/* notes */
.note-card { padding: 1.4rem 1.5rem; height: 100%; border-left: 5px solid var(--purple); }
.note-card i { font-size: 1.5rem; color: var(--purple); }

/* feedback */
.form-frame { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); min-height: 560px; }
.form-frame iframe { width: 100%; height: 720px; border: 0; display: block; }
.form-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); background: #fff; text-align: center; }
@media (max-width: 575px) { .form-frame iframe { height: 820px; } }

/* contact */
.contact-btn { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border-radius: 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; box-shadow: var(--shadow); transition: transform .18s ease; }
.contact-btn:hover { transform: translateY(-2px); color: var(--ink); }
.contact-btn i { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; }
.contact-btn small { display: block; font-weight: 500; color: var(--muted); }
.ci-ig i { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.ci-wa i { background: #25d366; }
.ci-meet i { background: var(--purple); }
.form-control, .form-select { border-radius: 12px; padding: .7rem .95rem; border-color: var(--line); }

/* closing band + footer */
.closing { background: var(--purple-soft); text-align: center; padding: 4rem 0; }
.closing p { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 700; color: var(--navy); max-width: 28ch; margin: 0 auto; }
.site-footer { background: var(--navy); color: #c5cde6; padding: 2.4rem 0; font-size: .95rem; }
.site-footer a { color: #fff; }

.state-box { padding: 2rem; text-align: center; color: var(--muted); }
.admin-link { font-size: .85rem; opacity: .7; }
