/* =========================================================
   ASBM University — Theme stylesheet
   ========================================================= */
:root {
    --navy-900: #0a1b3f;
    --navy-800: #0f2a5c;
    --navy-700: #163a7a;
    --navy-100: #e8eef9;
    --gold: #f5b324;
    --gold-dark: #e0a010;
    --orange: #e8692c;
    --orange-dark: #d1571c;
    --green: #1f9d55;
    --ink: #0f172a;
    --muted: #5b6475;
    --line: #e5e9f2;
    --soft: #f5f7fc;
    --white: #ffffff;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 8px rgba(15, 42, 92, .06);
    --shadow: 0 10px 30px rgba(15, 42, 92, .10);
    --shadow-lg: 0 24px 60px rgba(15, 42, 92, .18);
    --ease: cubic-bezier(.2, .8, .2, 1);
    --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    font-size: 15px;
    overflow-x: clip; /* clip (not hidden) keeps the sticky header working */
}
#main { overflow-x: clip; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 700; color: var(--navy-900); letter-spacing: -.01em; }
a { color: var(--navy-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange); }
img { max-width: 100%; }

.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.bg-soft { background: var(--soft); }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 6px; }
.section-head p { color: var(--muted); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--navy-700); background: var(--navy-100);
    padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.display-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.15; margin-bottom: 16px; }
.lead-sm { color: var(--muted); font-size: 1.02rem; max-width: 520px; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 10px; padding: .6rem 1.15rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all .25s var(--ease); }
.btn-lg { padding: .8rem 1.4rem; font-size: 1rem; }
.btn-sm { padding: .4rem .8rem; font-size: .82rem; }
.btn .bi-arrow-right { transition: transform .25s var(--ease); }
.btn:hover .bi-arrow-right { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: var(--navy-900); border: 0; }
.btn-gold:hover { background: var(--gold-dark); color: var(--navy-900); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245, 179, 36, .35); }
.btn-orange { background: var(--orange); color: #fff; border: 0; }
.btn-orange:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(232, 105, 44, .35); }
.btn-navy { background: var(--navy-800); color: #fff; border: 0; }
.btn-navy:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 42, 92, .3); }
.btn-outline-navy { border: 1.5px solid var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline-navy:hover { background: var(--navy-800); color: #fff; }
.btn-light { background: #fff; color: var(--navy-900); border: 0; }
.btn-light:hover { transform: translateY(-2px); }
.link-arrow { font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; color: var(--navy-700); }
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }
.btn-icon {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
    background: #fff; color: var(--navy-900); display: inline-grid; place-items: center; font-size: 1.05rem;
    transition: all .2s;
}
.btn-icon:hover { background: var(--navy-100); border-color: var(--navy-100); }

/* ---------- Tags / chips / icon box ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600;
    border: 1px solid var(--line); background: #fff; color: var(--navy-800); transition: all .2s;
}
.chip:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); transform: translateY(-2px); }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.tag-navy { background: var(--navy-100); color: var(--navy-700); }
.tag-green { background: #e5f6ec; color: var(--green); }
.tag-soft { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.icon-box {
    width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: grid; place-items: center;
    background: var(--navy-100); color: var(--navy-700); font-size: 1.15rem;
}

/* ---------- Announcement + topbar ---------- */
.announce-bar { background: var(--navy-100); color: var(--navy-900); font-size: .82rem; padding: 7px 0; }
.announce-bar .badge { font-size: .65rem; }
.announce-link { font-weight: 600; white-space: nowrap; }
.topbar { background: var(--navy-900); font-size: .78rem; padding: 7px 0; }
.topbar a { color: rgba(255, 255, 255, .78); }
.topbar a:hover { color: var(--gold); }
.topbar i { margin-right: 4px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
    transition: box-shadow .3s, padding .3s;
}
.site-header > .container { min-height: 74px; transition: min-height .3s var(--ease); }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header.is-scrolled > .container { min-height: 60px; }
.site-header .brand img { transition: height .3s; }
.site-header.is-scrolled .brand img { height: 36px; }

.main-nav { list-style: none; margin: 0; padding: 0; gap: 2px; }
.main-nav > li { position: relative; }
.main-nav > li.has-mega { position: static; }
.nav-top {
    display: flex; align-items: center; gap: 4px; padding: 26px 10px; font-weight: 600; font-size: .88rem;
    color: var(--navy-900); position: relative; white-space: nowrap;
}
.btn { white-space: nowrap; }
.site-header.is-scrolled .nav-top { padding: 19px 10px; }
.nav-top i { font-size: .65rem; transition: transform .25s; }
.nav-top::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
    background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease);
}
.main-nav > li:hover > .nav-top, .main-nav > li.open > .nav-top { color: var(--navy-700); }
.main-nav > li:hover > .nav-top::after, .main-nav > li.open > .nav-top::after, .main-nav > li.is-current > .nav-top::after { transform: scaleX(1); }
.main-nav > li.is-current > .nav-top { color: var(--navy-700); }
.main-nav > li:hover > .nav-top i { transform: rotate(180deg); }

.dropdown-panel, .mega-menu {
    position: absolute; top: 100%; background: #fff; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: all .25s var(--ease); box-shadow: var(--shadow-lg);
}
.dropdown-panel { left: 0; min-width: 240px; border-radius: 0 0 var(--radius) var(--radius); padding: 10px; border-top: 1px solid var(--line); }
.dropdown-panel a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .88rem; color: var(--ink); }
.dropdown-panel a:hover { background: var(--soft); color: var(--navy-700); padding-left: 16px; }
.mega-menu { left: 0; right: 0; padding: 32px 0; border-top: 1px solid var(--line); }
.main-nav > li:hover > .dropdown-panel, .main-nav > li:hover > .mega-menu,
.main-nav > li.open > .dropdown-panel, .main-nav > li.open > .mega-menu { opacity: 1; visibility: visible; transform: none; }

.mega-title {
    font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-700);
    border-left: 3px solid var(--gold); padding-left: 8px; margin-bottom: 14px;
}
.mega-school { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; color: var(--ink); }
.mega-school strong { display: block; font-size: .88rem; }
.mega-school small, .mega-level small { color: var(--muted); font-size: .75rem; }
.mega-school:hover { background: var(--soft); }
.mega-school:hover .icon-box { background: var(--navy-800); color: #fff; }
.mega-level { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 8px; border-bottom: 1px solid var(--line); color: var(--ink); }
.mega-level strong { display: block; font-size: .9rem; }
.mega-level:hover { color: var(--navy-700); background: var(--soft); }
.mega-links { list-style: none; padding: 0; margin: 0; }
.mega-links a { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: .88rem; color: var(--ink); }
.mega-links a i { color: var(--gold-dark); transition: transform .2s; }
.mega-links a:hover i { transform: translateX(4px); }
.mega-promo { position: relative; border-radius: var(--radius); overflow: hidden; height: 100%; min-height: 260px; }
.mega-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega-promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 27, 63, .2), rgba(10, 27, 63, .92)); }
.mega-promo-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 20px; color: #fff; }
.mega-promo-body h5 { color: #fff; }
.mega-promo-body p { font-size: .82rem; color: rgba(255, 255, 255, .8); }

/* ---------- Mobile nav ---------- */
.mobile-nav { max-width: 360px; }
.mobile-nav .accordion-button { font-weight: 600; font-family: var(--font-head); color: var(--navy-900); padding: 14px 4px; background: transparent; box-shadow: none; }
.mobile-nav .accordion-button:not(.collapsed) { color: var(--navy-700); }
.mobile-nav .accordion-body { padding: 0 4px 12px; }
.mobile-nav .accordion-body a { display: block; padding: 7px 12px; font-size: .9rem; color: var(--muted); border-left: 2px solid var(--line); }
.mobile-nav .accordion-body a:hover { border-color: var(--gold); color: var(--navy-700); }
.mobile-utility { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; font-size: .85rem; }
.mobile-utility a { color: var(--muted); }

/* ---------- Filter pills (programme listing, eligibility) ---------- */
.pg-pill {
    border: 1px solid var(--line); background: #fff; color: var(--navy-800); border-radius: 999px;
    padding: 6px 14px; font-size: .8rem; font-weight: 600; transition: all .25s var(--ease);
}
.pg-pill:hover { border-color: var(--navy-700); }
.pg-pill.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.pg-search { position: relative; display: flex; align-items: center; min-width: 260px; margin: 0; }
.pg-search i { position: absolute; left: 14px; color: var(--muted); font-size: .85rem; }
.pg-search input { width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px 8px 36px; font-size: .85rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.pg-search input:focus { border-color: var(--navy-700); box-shadow: 0 0 0 .2rem rgba(22, 58, 122, .1); }

/* ---------- Forms ---------- */
.form-label { font-size: .76rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.form-control, .form-select { border-radius: 10px; border-color: var(--line); font-size: .9rem; padding: .55rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--navy-700); box-shadow: 0 0 0 .2rem rgba(22, 58, 122, .12); }

/* ---------- Shared page sections (used by every inner page) ---------- */
.hm-section { padding: 84px 0; }
.hm-section-line { border-top: 1px solid var(--line); }
.hm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 36px; }
.hm-eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
    font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-700);
}
.hm-eyebrow::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--gold); }
.hm-eyebrow-light { color: rgba(255, 255, 255, .85); }
.hm-title {
    font-family: var(--font-serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.15;
    font-size: clamp(1.75rem, 3vw, 2.5rem); color: var(--navy-900); margin-bottom: 16px;
}
.hm-subtitle { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.6rem); margin-bottom: 10px; }
.hm-text { color: var(--muted); font-size: 1rem; line-height: 1.65; margin-bottom: 20px; }
.hm-note { font-size: .78rem; color: var(--muted); margin: 14px 0 0; }
.hm-btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); }
.hm-btn-ghost:hover { background: #fff; color: var(--navy-900); border-color: #fff; }

/* Inner page hero with breadcrumb */
.page-hero { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; animation: pageHeroZoom 20s ease-in-out infinite alternate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10, 27, 63, .92), rgba(10, 27, 63, .65) 50%, rgba(10, 27, 63, .3)); }
.page-hero > .container { position: relative; z-index: 2; padding: 56px 12px 72px; }
.page-hero-title { font-family: var(--font-serif); font-weight: 600; color: #fff; line-height: 1.08; font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 640px; margin-bottom: 16px; }
.page-hero-lead { color: rgba(255, 255, 255, .8); font-size: 1.05rem; max-width: 460px; margin: 0; }
.page-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0 0 26px; font-size: .78rem; color: rgba(255, 255, 255, .65); }
.page-crumb a { color: rgba(255, 255, 255, .78); }
.page-crumb a:hover { color: var(--gold); }
.page-crumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.page-crumb [aria-current] { color: #fff; font-weight: 600; }
.page-hero .anim-in { opacity: 0; animation: pageFadeUp .8s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes pageHeroZoom { from { transform: scale(1); } to { transform: scale(1.1); } }
@keyframes pageFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Admissions CTA band */
.hm-cta {
    padding: 64px 0; color: #fff; position: relative; overflow: hidden;
    background: radial-gradient(circle at 85% 30%, rgba(245, 179, 36, .16), transparent 35%), linear-gradient(135deg, var(--navy-900), var(--navy-800));
}
.hm-cta .hm-title { margin-bottom: 10px; }
.hm-cta-text { color: rgba(255, 255, 255, .72); }

/* ---------- People (shared by leadership, school and faculty pages) ---------- */
/* Initials tile shown until a portrait file is added */
.ld-initials {
    width: 100%; height: 100%; display: grid; place-items: center;
    background: linear-gradient(150deg, var(--navy-800), var(--navy-900));
    font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--gold); letter-spacing: .04em;
}
.ld-initials-lg { font-size: clamp(3rem, 7vw, 5rem); }

.ld-person { margin: 0; }
.ld-photo { display: block; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--soft); margin-bottom: 12px; position: relative; }
.ld-photo-tall { aspect-ratio: 4 / 4.3; }
.ld-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ld-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.ld-person:hover .ld-photo img { transform: scale(1.06); }
.ld-person:hover .ld-photo::after { transform: scaleX(1); }
.ld-person:hover .ld-initials { background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); }
.ld-person figcaption strong { display: block; font-family: var(--font-serif); font-weight: 600; font-size: 1.02rem; line-height: 1.3; color: var(--navy-900); }
.ld-person figcaption small { display: block; margin-top: 3px; font-size: .76rem; color: var(--muted); }

/* ---------- Counsellor CTA ---------- */
.cta-counsellor {
    background: radial-gradient(circle at 15% 20%, rgba(245, 179, 36, .14), transparent 40%), linear-gradient(135deg, var(--navy-900), var(--navy-800));
    border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px);
}
.cta-counsellor h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.callback-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-lg); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 0; padding-bottom: 0; }
.footer-title { font-size: .9rem; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--muted); font-size: .85rem; transition: all .2s; }
.footer-links a:hover { color: var(--navy-700); padding-left: 4px; }
.social { display: flex; gap: 8px; }
.social a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--navy-800); font-size: .85rem; transition: all .25s; }
.social a:hover { background: var(--navy-800); color: #fff; transform: translateY(-3px); }
.footer-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 24px 0; margin-top: 32px; border-top: 1px solid var(--line); font-size: .82rem; }
.footer-popular > span { color: var(--muted); margin-right: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); }

/* ---------- Floating actions ---------- */
.float-actions { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 1020; display: grid; gap: 10px; }
.float-actions a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.2rem; box-shadow: var(--shadow); transition: transform .25s; }
.float-actions a:hover { transform: scale(1.1); color: #fff; }
.fa-whatsapp { background: #25d366; animation: pulse 2.4s infinite; }
.fa-call { background: var(--navy-800); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.back-to-top {
    position: fixed; right: 18px; bottom: 24px; z-index: 1020; width: 44px; height: 44px; border-radius: 50%; border: 0;
    background: var(--gold); color: var(--navy-900); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.mobile-apply-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1025; display: flex; gap: 10px; padding: 10px 16px;
    background: #fff; box-shadow: 0 -6px 20px rgba(15, 42, 92, .1); transform: translateY(100%); transition: transform .35s var(--ease);
}
.mobile-apply-bar.show { transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1199.98px) {
    .nav-top { padding-left: 7px; padding-right: 7px; font-size: .84rem; }
    .float-actions { top: auto; bottom: 84px; right: 16px; transform: none; }
    .float-actions .fa-call { display: none; } /* call lives in the mobile apply bar */
    .back-to-top { bottom: 140px; right: 17px; }
    body { padding-bottom: 66px; }
}
@media (max-width: 991.98px) {
    .section { padding: 64px 0; }
    .section-sm { padding: 44px 0; }
    .hm-section { padding: 64px 0; }
    .site-header > .container { min-height: 64px; }
    .page-hero::before { background: linear-gradient(180deg, rgba(10, 27, 63, .85), rgba(10, 27, 63, .7)); }
}
@media (max-width: 575.98px) {
    body { font-size: 14.5px; }
    .page-hero > .container { padding: 40px 12px 52px; }
    .hm-cta .btn { flex: 1 1 100%; }
    .footer-bottom { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
