/* =====================================================================
   Standard High School Zzana - public website styles
   Brand: deep navy + gold. Headings: Playfair Display. Body: Inter.
   ===================================================================== */
:root {
  --brand: #0b2a5b;
  --brand-2: #123b7a;
  --accent: #c9a227;
  --accent-soft: #fbf4dc;
  --ink: #1b2433;
  --muted: #5b6577;
  --line: #e6e9ef;
  --bg-soft: #f5f7fb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 42, 91, .08);
  --shadow-lg: 0 24px 60px rgba(11, 42, 91, .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: 96px; }
body { font-family: var(--font-body); color: var(--ink); font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased; background: #fff; }
h1, h2, h3, .display-font { font-family: var(--font-head); color: var(--brand); line-height: 1.2; letter-spacing: -.01em; }
h4, h5, h6 { font-weight: 700; color: var(--ink); }
a { color: var(--brand-2); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
::selection { background: var(--accent); color: var(--brand); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--accent); color: var(--brand); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }

.text-accent { color: var(--accent) !important; }
.text-brand { color: var(--brand) !important; }
.bg-soft { background: var(--bg-soft); }
.bg-brand { background: var(--brand); }

/* ------------------------------------------------------------- buttons */
.btn { border-radius: 10px; font-weight: 600; padding: .65rem 1.25rem; transition: all .2s ease; }
.btn-lg { padding: .85rem 1.6rem; }
.btn-accent { background: var(--accent); color: var(--brand); border: 2px solid var(--accent); }
.btn-accent:hover, .btn-accent:focus { background: #b38d1b; border-color: #b38d1b; color: #fff; transform: translateY(-1px); }
.btn-brand { background: var(--brand); color: #fff; border: 2px solid var(--brand); }
.btn-brand:hover { background: var(--brand-2); color: #fff; border-color: var(--brand-2); transform: translateY(-1px); }
.btn-outline-brand { border: 2px solid var(--brand); color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

/* topbar + header: see "Masthead" at the end of this file */
.dropdown-menu { border: 0; border-radius: 12px; box-shadow: var(--shadow-lg); padding: .5rem; min-width: 230px; }
.dropdown-item { border-radius: 8px; padding: .55rem .9rem; font-weight: 500; }
.dropdown-item:hover { background: var(--accent-soft); color: var(--brand); }
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
  .navbar .dropdown-menu { animation: fadeDown .18s ease; }
}
@media (max-width: 991.98px) {
  .offcanvas .nav-link { padding: .8rem .5rem !important; border-bottom: 1px solid var(--line); border-radius: 0; }
  .offcanvas .dropdown-menu { box-shadow: none; padding-left: .75rem; }
}
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; background: var(--brand); color: #fff; overflow: hidden; }
.hero .carousel-item { min-height: clamp(480px, 70vh, 680px); }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-slide.no-image { background: radial-gradient(1200px 600px at 85% 20%, rgba(201,162,39,.25), transparent 60%), linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); }
.hero-slide.no-image::after { content: ''; position: absolute; inset: 0; background: url('../img/hero-pattern.svg'); opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,26,58,.88) 0%, rgba(7,26,58,.55) 55%, rgba(7,26,58,.25) 100%); }
.hero-content { position: relative; z-index: 2; min-height: inherit; display: flex; align-items: center; padding-top: 4rem; padding-bottom: 7.5rem; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(201,162,39,.16); border: 1px solid rgba(201,162,39,.45); color: #f3dc92; padding: .35rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; margin: 1.1rem 0; max-width: 820px; }
.hero p.lead { color: rgba(255,255,255,.88); max-width: 640px; font-size: 1.15rem; }
.hero .carousel-indicators [data-bs-target] { width: 34px; height: 4px; border-radius: 4px; background: #fff; border: 0; margin: 0 4px 0 0; transition: width .3s; }
.hero .carousel-indicators .active { background: var(--accent); width: 56px; }

@media (max-width: 575.98px) {
  .hero-content { padding-top: 3.5rem; padding-bottom: 7.5rem; }
  .hero .btn-lg { width: 100%; }
  .quick-card { flex-direction: column; gap: .6rem; padding: 1.1rem; }
  .quick-card h3 { font-size: .98rem; }
  .welcome-badge { right: 12px; bottom: -18px; }
}
/* quick links overlapping the hero */
.quick-links { position: relative; z-index: 5; margin-top: -4.5rem; }
.quick-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.6rem; height: 100%; display: flex; gap: 1rem; text-decoration: none; color: var(--ink); border-bottom: 4px solid transparent; transition: all .25s ease; }
.quick-card:hover { transform: translateY(-6px); border-bottom-color: var(--accent); color: var(--ink); }
.quick-card .icon { flex: 0 0 54px; height: 54px; border-radius: 14px; background: var(--accent-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.5rem; }
.quick-card h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin: 0 0 .25rem; color: var(--brand); }
.quick-card p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }

/* ------------------------------------------------------------ sections */
.section { padding: clamp(2.75rem, 5vw, 4.25rem) 0; }
.section-sm { padding: 2.25rem 0; }
.section-head { max-width: 720px; margin: 0 auto 2rem; text-align: center; }
.section-head.text-start { margin-left: 0; }
.kicker { display: inline-block; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; margin-bottom: .6rem; position: relative; padding-left: 38px; }
.kicker::before { content: ''; position: absolute; left: 0; top: 50%; width: 28px; height: 2px; background: var(--accent); }
.section-head.text-center .kicker { padding: 0 38px; }
.section-head.text-center .kicker::after { content: ''; position: absolute; right: 0; top: 50%; width: 28px; height: 2px; background: var(--accent); }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; margin-bottom: 1rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* welcome */
.welcome-media { position: relative; }
.welcome-media img { border-radius: 20px; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.welcome-badge { position: absolute; bottom: -16px; right: -12px; background: var(--brand); color: #fff; border-radius: 16px; padding: 1.1rem 1.4rem; box-shadow: var(--shadow-lg); border: 3px solid var(--accent); max-width: 240px; }
.welcome-badge strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--accent); display: block; line-height: 1; }
.check-list { list-style: none; padding: 0; margin: 1.25rem 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .65rem; }
.check-list li::before { content: '\F26A'; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: 0; color: var(--accent); font-size: 1.15rem; }
.signature { font-family: var(--font-head); font-style: italic; color: var(--brand); font-size: 1.2rem; }

/* stats band */
.stats-band { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; position: relative; overflow: hidden; }
.stats-band::before { content: ''; position: absolute; inset: 0; background: url('../img/hero-pattern.svg'); }
.stat { position: relative; text-align: center; padding: 1rem; }
.stat-value { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { color: rgba(255,255,255,.85); margin-top: .5rem; font-size: .95rem; }
@media (min-width: 768px) { .stat + .stat { border-left: 1px solid rgba(255,255,255,.15); } }

/* program cards */
.program-card { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); height: 100%; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-card .media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.program-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.program-card:hover .media img { transform: scale(1.06); }
.program-card .tag { position: absolute; top: 14px; left: 14px; background: var(--accent); color: var(--brand); font-weight: 700; font-size: .75rem; padding: .3rem .7rem; border-radius: 999px; }
.program-card .body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.program-card h3 { font-size: 1.35rem; }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--brand); margin-top: auto; }
.link-arrow i { transition: transform .2s; display: inline-block; }
.link-arrow:hover i { transform: translateX(5px); }

/* feature boxes */
.feature { padding: 1.75rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); height: 100%; transition: all .25s; }
.feature:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature .icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--brand); color: var(--accent); font-size: 1.6rem; margin-bottom: 1.1rem; }
.feature h3 { font-family: var(--font-body); font-size: 1.12rem; font-weight: 700; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* news cards */
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; transition: all .25s; }
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.news-card .media { aspect-ratio: 16/10; overflow: hidden; display: block; }
.news-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .media img { transform: scale(1.05); }
.news-card .body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.news-meta { font-size: .8rem; color: var(--muted); display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: .5rem; }
.news-meta .cat { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.news-card h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--brand); }
.news-card p { color: var(--muted); font-size: .93rem; }

/* events */
.event-item { display: flex; gap: 1.1rem; padding: 1.1rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: all .2s; }
.event-item:hover { box-shadow: var(--shadow); border-color: transparent; }
.event-date { flex: 0 0 72px; text-align: center; background: var(--brand); color: #fff; border-radius: 12px; padding: .6rem .3rem; line-height: 1.1; }
.event-date .d { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--accent); }
.event-date .m { text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; }
.event-item h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; margin-bottom: .2rem; }
.event-item .meta { font-size: .83rem; color: var(--muted); }

/* testimonials */
.testimonial { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); height: 100%; position: relative; }
.testimonial::before { content: '\201C'; font-family: var(--font-head); position: absolute; top: -.6rem; right: 1.4rem; font-size: 6rem; color: var(--accent); opacity: .35; line-height: 1; }
.testimonial blockquote { font-size: 1.02rem; margin-bottom: 1.25rem; }
.testimonial .who { display: flex; align-items: center; gap: .8rem; }
.testimonial .who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; display: block; background: var(--bg-soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item .cap { position: absolute; inset: auto 0 0 0; padding: 2rem 1rem .8rem; color: #fff; background: linear-gradient(transparent, rgba(7,26,58,.85)); font-weight: 600; font-size: .92rem; }
.filter-pills .btn { border-radius: 999px; padding: .4rem 1.1rem; font-size: .9rem; }
.filter-pills .btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* leadership */
.leader-card { text-align: center; }
.leader-card .photo { width: 100%; aspect-ratio: 1; border-radius: 20px; object-fit: cover; box-shadow: var(--shadow); margin-bottom: 1rem; }
.leader-card h3 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 700; margin-bottom: .1rem; color: var(--ink); }
.leader-card .pos { color: var(--accent); font-weight: 600; font-size: .9rem; }

/* page hero (inner pages) */
.page-hero { background: linear-gradient(120deg, rgba(7,26,58,.92), rgba(18,59,122,.82)), var(--hero-img, none) center/cover no-repeat, var(--brand); color: #fff; padding: clamp(2.5rem, 5vw, 3.75rem) 0 clamp(2.25rem, 4vw, 3rem); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: url('../img/hero-pattern.svg'); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; margin-bottom: .6rem; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 720px; margin: 0; }
.breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); margin-bottom: 1rem; font-size: .85rem; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb .active { color: rgba(255,255,255,.75); }

/* rich content from the CMS */
.prose { font-size: 1.05rem; }
.prose h2, .prose h3 { margin: 2rem 0 .9rem; }
.prose h3 { font-size: 1.55rem; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 1.8rem; margin-bottom: .55rem; }
.prose ul li::before { content: ''; position: absolute; left: .2rem; top: .65rem; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.prose blockquote { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; }
.prose img { border-radius: 12px; height: auto; }

.side-card { background: var(--bg-soft); border-radius: var(--radius); padding: 1.6rem; }
.side-card h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; }
.side-nav a { display: flex; justify-content: space-between; padding: .7rem .2rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.side-nav a:hover, .side-nav a.active { color: var(--brand); padding-left: .5rem; }

/* steps (admissions) */
.steps { counter-reset: step; }
.step { position: relative; padding: 1.6rem 1.6rem 1.6rem 5rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); height: 100%; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 1.4rem; top: 1.5rem; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--brand); font-weight: 800; display: grid; place-items: center; font-size: 1.15rem; }
.step h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }

/* downloads */
.download-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); transition: all .2s; background: #fff; }
.download-item:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--brand); }
.download-item i.bi-file-earmark-arrow-down { font-size: 1.6rem; color: #c0392b; }

/* accordion */
.accordion-item { border: 1px solid var(--line); border-radius: 12px !important; overflow: hidden; margin-bottom: .75rem; }
.accordion-button { font-weight: 600; color: var(--ink); }
.accordion-button:not(.collapsed) { background: var(--accent-soft); color: var(--brand); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(201,162,39,.35); }

/* --------------------------------------------------------------- forms */
.form-control, .form-select { border-radius: 10px; padding: .7rem .95rem; border-color: #d6dbe5; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .22rem rgba(201,162,39,.22); }
.form-label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.form-label .req { color: #c0392b; }
.form-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: clamp(1.4rem, 4vw, 2.75rem); }

/* multi-step application */
.wizard-steps { display: flex; gap: .5rem; margin-bottom: 2rem; counter-reset: ws; }
.wizard-steps .ws { flex: 1; text-align: center; position: relative; font-size: .82rem; font-weight: 600; color: var(--muted); }
.wizard-steps .ws::before { counter-increment: ws; content: counter(ws); display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto .45rem; border-radius: 50%; background: var(--bg-soft); border: 2px solid var(--line); color: var(--muted); font-weight: 800; position: relative; z-index: 1; transition: all .25s; }
.wizard-steps .ws::after { content: ''; position: absolute; top: 20px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 2px; background: var(--line); }
.wizard-steps .ws:last-child::after { display: none; }
.wizard-steps .ws.active { color: var(--brand); }
.wizard-steps .ws.active::before { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 0 0 5px rgba(11,42,91,.12); }
.wizard-steps .ws.done::before { content: '\F26E'; font-family: 'bootstrap-icons'; background: var(--accent); border-color: var(--accent); color: var(--brand); }
.wizard-steps .ws.done::after { background: var(--accent); }
.wizard-pane { display: none; animation: fadeIn .3s ease; }
.wizard-pane.active { display: block; }
.pane-title { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; color: var(--brand); display: flex; align-items: center; gap: .5rem; margin-bottom: 1.2rem; padding-bottom: .8rem; border-bottom: 1px dashed var(--line); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 575.98px) { .wizard-steps .ws span { display: none; } }

.upload-box { border: 2px dashed #cfd6e3; border-radius: 12px; padding: 1rem; text-align: center; background: var(--bg-soft); transition: border-color .2s; cursor: pointer; display: block; }
.upload-box:hover { border-color: var(--accent); }
.upload-box i { font-size: 1.6rem; color: var(--brand); }
.upload-box .fname { font-size: .85rem; color: var(--brand); font-weight: 600; word-break: break-all; }

.review-table th { width: 40%; color: var(--muted); font-weight: 600; font-size: .9rem; }
.success-panel { text-align: center; padding: 2rem 1rem; }
.success-panel .tick { width: 86px; height: 86px; border-radius: 50%; background: #e7f6ec; color: #198754; display: grid; place-items: center; font-size: 2.8rem; margin: 0 auto 1.2rem; }
.ref-box { display: inline-block; background: var(--accent-soft); border: 2px dashed var(--accent); padding: .8rem 1.6rem; border-radius: 12px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.5rem; font-weight: 800; color: var(--brand); letter-spacing: .06em; }

/* tracking timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 19px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-left: 56px; margin-bottom: 1.4rem; }
.timeline .dot { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); color: var(--brand); display: grid; place-items: center; }
.timeline li:first-child .dot { background: var(--brand); color: var(--accent); border-color: var(--brand); }

/* contact */
.contact-tile { display: flex; gap: 1rem; padding: 1.3rem; border-radius: 14px; background: #fff; box-shadow: var(--shadow); margin-bottom: 1rem; }
.contact-tile .icon { flex: 0 0 50px; height: 50px; border-radius: 12px; background: var(--brand); color: var(--accent); display: grid; place-items: center; font-size: 1.3rem; }
.contact-tile h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: .15rem; }
.contact-tile p { margin: 0; color: var(--muted); font-size: .93rem; }
.map-wrap { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* notice strip */
.notice-strip { background: var(--accent-soft); border-bottom: 1px solid #efe1ad; font-size: .9rem; }
.notice-inner { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: .55rem 0; color: var(--ink); text-decoration: none; min-width: 0; }
.notice-inner:hover { color: var(--brand); }
.notice-inner .badge { flex: 0 0 auto; }
.notice-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.notice-cta { flex: 0 0 auto; font-weight: 700; color: var(--brand); white-space: nowrap; }
.notice-inner:hover .notice-cta { text-decoration: underline; }
@media (max-width: 767.98px) { .notice-text { display: none; } }
.notice-strip .badge { background: var(--brand); }

/* -------------------------------------------------------------- footer */
.cta-band { background: linear-gradient(110deg, var(--brand) 0%, var(--brand-2) 100%); padding: 2.5rem 0; position: relative; overflow: hidden; color: rgba(255,255,255,.85); }
.cta-band::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -120px; top: -180px; background: radial-gradient(circle, rgba(201,162,39,.35), transparent 70%); }
.cta-band .container { position: relative; z-index: 1; }
.site-footer { background: #071a3a; color: rgba(255,255,255,.7); padding: 3.25rem 0 0; font-size: .93rem; }
.footer-title { font-family: var(--font-body); color: #fff; font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.2rem; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: .8rem; margin-bottom: .8rem; }
.footer-contact i { color: var(--accent); margin-top: .2rem; }
.site-footer .social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; text-decoration: none; transition: all .2s; }
.site-footer .social a:hover { background: var(--accent); color: var(--brand); }
.newsletter-form .form-control { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,.5); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding: 1.4rem 0; font-size: .85rem; }
.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: none; }

.whatsapp-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 1040; transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.back-to-top { position: fixed; right: 26px; bottom: 88px; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--brand); color: #fff; z-index: 1040; opacity: 0; visibility: hidden; transition: all .25s; box-shadow: var(--shadow); }
.back-to-top.show { opacity: 1; visibility: visible; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* misc */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state i { font-size: 2.6rem; color: var(--accent); }
.pagination .page-link { border-radius: 8px; margin: 0 3px; color: var(--brand); border-color: var(--line); }
.pagination .active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.lightbox-modal .modal-content { background: transparent; border: 0; }
.lightbox-modal img { border-radius: 12px; max-height: 82vh; object-fit: contain; }
.form-feedback.ok { color: #198754; }
.form-feedback.err { color: #dc3545; }
.site-footer .form-feedback.ok { color: #7ee2a8; }
.site-footer .form-feedback.err { color: #ffb4b4; }
@media print { .topbar, .site-header, .cta-band, .site-footer, .whatsapp-float, .back-to-top { display: none !important; } }

/* ------------------------------------------------- UNEB performance */
.result-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; height: 100%; display: flex; flex-direction: column; border-top: 5px solid var(--brand); }
.result-card.uace { border-top-color: var(--accent); }
.result-card .exam-pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--bg-soft); color: var(--brand); padding: .3rem .75rem; border-radius: 999px; }
.result-card .year { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--brand); line-height: 1; }
.result-card .headline { font-weight: 700; color: var(--ink); }
.result-card .cands { font-size: .85rem; color: var(--muted); }
.result-bars .rb { margin-bottom: .75rem; }
.result-bars .rb-head { display: flex; justify-content: space-between; gap: .75rem; font-size: .86rem; margin-bottom: .25rem; }
.result-bars .rb-track { height: 9px; background: #edf0f6; border-radius: 99px; overflow: hidden; }
.result-bars .rb-fill { height: 100%; background: var(--brand-2); border-radius: 99px; transition: width 1s ease; }
.result-bars .rb-fill.top { background: var(--accent); }
.performer-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; text-align: center; transition: transform .25s, box-shadow .25s; }
.performer-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.performer-card .photo-wrap { position: relative; aspect-ratio: 1; background: var(--bg-soft); }
.performer-card .photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.performer-card .rank { position: absolute; top: 10px; left: 10px; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--brand); display: grid; place-items: center; font-weight: 800; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.performer-card .exam-tag { position: absolute; bottom: 10px; right: 10px; background: rgba(11,42,91,.9); color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.performer-card .body { padding: 1rem .9rem 1.2rem; }
.performer-card h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: .2rem; color: var(--ink); }
.performer-card .score { color: var(--brand); font-weight: 800; font-size: .95rem; }
.performer-card .det { font-size: .8rem; color: var(--muted); }
.results-table th { background: var(--brand); color: #fff; font-weight: 600; font-size: .85rem; }
.results-table td { vertical-align: middle; }

/* ---------------------------------------------------- hero slider v2 */
.hero-slide { will-change: transform; }
.carousel-item.active .hero-slide:not(.no-image) { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-slide.no-image.v1 { background: radial-gradient(900px 500px at 15% 85%, rgba(201,162,39,.28), transparent 60%), linear-gradient(160deg, #071a3a 0%, var(--brand-2) 100%); }
.hero-slide.no-image.v2 { background: radial-gradient(900px 600px at 70% 0%, rgba(77,141,224,.35), transparent 60%), linear-gradient(120deg, var(--brand) 0%, #0e3570 100%); }
.hero-overlay.light { background: linear-gradient(90deg, rgba(7,26,58,.35), transparent 70%); }
.hero .anim { opacity: 0; transform: translateY(26px); }
.hero .carousel-item.active .anim { animation: heroIn .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero .carousel-item.active .a2 { animation-delay: .15s; } .hero .carousel-item.active .a3 { animation-delay: .3s; } .hero .carousel-item.active .a4 { animation-delay: .45s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.hero-badge { position: relative; width: 340px; height: 340px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 14px rgba(255,255,255,.08), 0 0 0 30px rgba(201,162,39,.12), 0 30px 80px rgba(0,0,0,.35); }
.hero-badge img { width: 250px; height: 250px; object-fit: contain; border-radius: 50%; }
.hero-badge .motto { position: absolute; bottom: -54px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--font-head); font-style: italic; color: var(--accent); font-size: 1.15rem; letter-spacing: .02em; }
.carousel-item.active .hero-badge { animation: heroIn .9s .3s cubic-bezier(.2,.7,.2,1) forwards, float 6s 1.2s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 5.6rem; z-index: 5; display: flex; justify-content: space-between; align-items: center; }
.hero-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: all .2s; backdrop-filter: blur(4px); }
.hero-arrow:hover { background: var(--accent); color: var(--brand); border-color: var(--accent); }
.brand-badge { border-radius: 10px; object-fit: contain; }
.badge-tile { background: #fff; border-radius: 10px; padding: 3px; object-fit: contain; }
@media (max-width: 575.98px) { .hero-controls { bottom: 5.2rem; } .hero-arrow { width: 38px; height: 38px; } }
@media (prefers-reduced-motion: reduce) { .hero .anim { opacity: 1; transform: none; } }

/* ------------------------------------------------ leadership messages */
.leader-tabs { gap: .6rem; }
.leader-tabs .nav-link { display: flex; align-items: center; gap: .8rem; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .75rem 1rem; color: var(--ink); transition: all .2s; width: 100%; }
.leader-tabs .nav-link strong { display: block; font-size: .92rem; line-height: 1.25; }
.leader-tabs .nav-link small { display: block; color: var(--muted); font-size: .8rem; }
.leader-tabs .nav-link:hover { border-color: var(--accent); }
.leader-tabs .nav-link.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--shadow); }
.leader-tabs .nav-link.active small { color: var(--accent); }
@media (max-width: 991.98px) { .leader-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .5rem; } .leader-tabs .nav-link { width: auto; flex: 0 0 auto; } }
.leader-pane { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 2rem; display: flex; gap: 2rem; align-items: flex-start; height: 100%; border-top: 5px solid var(--accent); }
.leader-pane .lp-photo { width: 220px; aspect-ratio: 4/5; object-fit: cover; border-radius: 16px; flex: 0 0 220px; background: var(--bg-soft); }
.leader-pane .lp-text { color: var(--muted); font-size: 1.02rem; }
@media (max-width: 767.98px) { .leader-pane { flex-direction: column; padding: 1.4rem; } .leader-pane .lp-photo { width: 140px; flex-basis: auto; } }
.leader-msg { display: flex; gap: 1.5rem; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 1.6rem; margin: 0; border-left: 5px solid var(--accent); height: 100%; }
.leader-msg h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.leader-msg blockquote { color: var(--muted); font-size: .97rem; margin-bottom: .8rem; }
.leader-msg figcaption strong { display: block; color: var(--brand); }
.leader-msg figcaption span { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
@media (max-width: 575.98px) { .leader-msg { flex-direction: column; } }
.comm-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 1.75rem; }
.comm-card img { border-radius: 50%; object-fit: cover; background: var(--bg-soft); }
.results-pair .level-title { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; display: flex; align-items: center; gap: .5rem; }
.results-pair .level-title i { color: var(--accent); }
.results-pair .level-title small { color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.result-empty { color: var(--muted); min-height: 280px; }
.result-empty .bi-hourglass-split { font-size: 2rem; color: var(--accent); }
.result-empty .exam-pill { align-self: flex-start; }

/* --------------------------------------------- performance at a glance */
.perf-glance { margin-top: 2rem; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2rem); }
.perf-glance h3 { font-family: var(--font-body); font-weight: 700; color: var(--ink); }
.perf-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.perf-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.perf-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: .75rem 1rem; background: #fafbfd; border-bottom: 1px solid var(--line); white-space: nowrap; }
.perf-table thead tr:first-child th { font-size: .82rem; color: var(--brand); background: #fff; }
.perf-table thead .grp-o { border-bottom: 3px solid var(--brand); text-align: center; }
.perf-table thead .grp-a { border-bottom: 3px solid var(--accent); text-align: center; border-left: 1px solid var(--line); }
.perf-table thead .grp-o i, .perf-table thead .grp-a i { color: var(--accent); margin-right: .25rem; }
.perf-table thead tr:last-child th:nth-child(3) { border-left: 1px solid var(--line); }
.perf-table td, .perf-table tbody th { padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.perf-table tbody tr:last-child td, .perf-table tbody tr:last-child th { border-bottom: 0; }
.perf-table tbody tr:hover { background: #fbfaf3; }
.perf-table td:nth-child(4) { border-left: 1px solid var(--line); }
.perf-table .yr { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; color: var(--brand); width: 90px; text-align: left; }
.perf-table thead .yr { font-family: var(--font-body); font-size: .74rem; vertical-align: bottom; }
.perf-table .num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); width: 110px; }
.perf-table .metric { display: block; text-decoration: none; color: inherit; min-width: 180px; }
.perf-table .m-top { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-bottom: .35rem; }
.perf-table .m-label { font-size: .85rem; color: var(--muted); }
.perf-table .metric strong { font-variant-numeric: tabular-nums; color: var(--brand); font-size: 1.02rem; }
.perf-table .m-bar { display: block; height: 6px; background: #edf0f6; border-radius: 9px; overflow: hidden; }
.perf-table .m-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--brand)); border-radius: 9px; }
.perf-table td:nth-child(5) .m-bar span { background: linear-gradient(90deg, #ddb93f, var(--accent)); }
.perf-table .metric:hover .m-label { color: var(--brand); text-decoration: underline; }

/* performer initials avatar (shown until a photo is uploaded) */
.avatar-initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; color: #fff; letter-spacing: .04em; }
.avatar-initials.o { background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 55%), linear-gradient(135deg, var(--brand-2), var(--brand)); }
.avatar-initials.a { background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 55%), linear-gradient(135deg, #d9b53c, #a8841a); color: var(--brand); }
.performer-card .achv { display: inline-block; margin-top: .5rem; font-size: .72rem; font-weight: 600; color: #8a6a0c; background: var(--accent-soft); border-radius: 999px; padding: .2rem .6rem; }

@media (max-width: 767.98px) {
  .perf-table { min-width: 0; }
  .perf-table thead { display: none; }
  .perf-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
  .perf-table tbody tr:last-child { border-bottom: 0; }
  .perf-table tbody th, .perf-table td { border: 0 !important; padding: 0; }
  .perf-table tbody th.yr { grid-column: 1 / -1; font-size: 1.2rem; margin-bottom: .35rem; }
  .perf-table td.num { display: none; }
  .perf-table td[data-level]::before { content: attr(data-level); display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
  .perf-table td[data-cands]::after { content: attr(data-cands); display: block; font-size: .72rem; color: var(--muted); margin-top: .3rem; }
  .perf-table .metric { min-width: 0; }
  .perf-table .m-top { flex-direction: column; align-items: flex-start; gap: 0; }
}

/* keep wide gutters from overflowing small screens */
@media (max-width: 991.98px) { .g-5, .gx-5 { --bs-gutter-x: 1.5rem; } }
html, body { overflow-x: clip; }

/* ------------------------------------------------ designed fallbacks */
.media-fallback { position: relative; width: 100%; height: 100%; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; color: #fff; overflow: hidden; background: linear-gradient(135deg, var(--brand-2), var(--brand)); }
.media-fallback::before { content: ''; position: absolute; inset: 0; background: url('../img/hero-pattern.svg'); opacity: .9; }
.media-fallback::after { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; right: -20%; bottom: -35%; background: radial-gradient(circle, rgba(201,162,39,.35), transparent 70%); }
.media-fallback.v1 { background: linear-gradient(150deg, #0e3570, #071a3a); }
.media-fallback.v2 { background: linear-gradient(120deg, #123b7a, #1d4f96); }
.media-fallback i { position: relative; z-index: 1; font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--accent); line-height: 1; }
.media-fallback span { position: relative; z-index: 1; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.85); text-align: center; padding: 0 1rem; }
.program-card .media .media-fallback, .news-card .media .media-fallback, .gallery-item .media-fallback { transition: transform .5s; }
.program-card:hover .media-fallback, .news-card:hover .media-fallback, .gallery-item:hover .media-fallback { transform: scale(1.04); }
.about-media { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.side-thumb { flex: 0 0 64px; width: 64px; height: 52px; border-radius: 10px; overflow: hidden; display: block; }
.side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-thumb .media-fallback i { font-size: 1.2rem; }

/* welcome mosaic (shown until the head's photo is uploaded) */
.welcome-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: .8rem; aspect-ratio: 4/5; }
.welcome-mosaic .wm { border-radius: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem; padding: 1.1rem; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.welcome-mosaic .wm i { font-size: 1.9rem; color: var(--accent); }
.welcome-mosaic .wm span { font-weight: 700; font-size: .92rem; }
.welcome-mosaic .t1 { background: linear-gradient(140deg, var(--brand-2), var(--brand)); }
.welcome-mosaic .t2 { grid-row: span 2; background: #fff; color: var(--brand); align-items: center; justify-content: center; text-align: center; border: 1px solid var(--line); }
.welcome-mosaic .t2 img { width: 74%; max-width: 190px; aspect-ratio: 1; object-fit: contain; }
.welcome-mosaic .t2 span { font-family: var(--font-head); font-style: italic; color: var(--brand); font-size: 1.05rem; }
.welcome-mosaic .t3 { background: linear-gradient(140deg, #d9b53c, #a8841a); color: var(--brand); }
.welcome-mosaic .t3 i { color: var(--brand); }
.welcome-mosaic .t4 { background: linear-gradient(140deg, #0e3570, #071a3a); }
.welcome-mosaic .t5 { grid-column: span 2; background: var(--accent-soft); color: var(--brand); flex-direction: row; align-items: center; justify-content: flex-start; }
.welcome-mosaic .t5 i { color: var(--brand); }
@media (max-width: 575.98px) { .welcome-mosaic { aspect-ratio: auto; grid-template-rows: auto; } .welcome-mosaic .wm { min-height: 120px; } }

/* initials portraits */
.ph-initials { display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: #fff; letter-spacing: .03em; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 55%), linear-gradient(135deg, var(--brand-2), var(--brand)); flex-shrink: 0; overflow: hidden; }
.lt-photo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: 0 0 46px; font-size: 1rem; }
.leader-tabs .nav-link.active .ph-initials { background: var(--accent); color: var(--brand); }
.lp-photo.ph-initials { font-size: 4rem; }
.lm-photo { width: 120px; height: 140px; object-fit: cover; border-radius: 14px; flex: 0 0 120px; font-size: 2.4rem; }
.leader-card .photo.ph-initials { width: 100%; aspect-ratio: 1; border-radius: 20px; font-size: 3.4rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.tm-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; font-size: 1rem; }
.cm-lg { width: 96px; height: 96px; border-radius: 18px; object-fit: cover; font-size: 2rem; }
.cm-md { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; font-size: 1.5rem; }
.cm-sm { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; font-size: 1.05rem; }

/* typography polish */
.accordion-header, .accordion-button { font-family: var(--font-body); }
.form-card h2, .form-card .h4 { font-family: var(--font-body); font-weight: 700; }
@media (max-width: 575.98px) { .hero .eyebrow { font-size: .68rem; letter-spacing: .04em; } .section-title { font-size: 1.65rem; } }

.welcome-mosaic { grid-template-areas: "a b" "c b" "d e"; }
.welcome-mosaic .t1 { grid-area: a; } .welcome-mosaic .t2 { grid-area: b; } .welcome-mosaic .t3 { grid-area: c; } .welcome-mosaic .t4 { grid-area: d; }
.welcome-mosaic .t5 { grid-area: e; grid-column: auto; flex-direction: column; align-items: flex-start; justify-content: flex-end; background: var(--brand); color: #fff; border: 3px solid var(--accent); }
.welcome-mosaic .t5 strong { font-family: var(--font-head); font-size: 1.7rem; color: var(--accent); line-height: 1; }
.welcome-mosaic .t5 span { font-weight: 500; font-size: .82rem; color: rgba(255,255,255,.85); }

.leader-pane .lp-photo.ph-initials { background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 55%), linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; }
.comm-card .ph-initials { border-radius: 50%; }

/* ------------------------------------------- best performers: flip cards */
.flip-card.performer-card { background: transparent; box-shadow: none; border-radius: 18px; overflow: visible; height: auto; aspect-ratio: 3 / 4; perspective: 1100px; cursor: pointer; outline: none; text-align: left; }
.flip-card.performer-card:hover { transform: none; box-shadow: none; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.2,.75,.25,1); transform-style: preserve-3d; }
@media (hover: hover) { .flip-card:hover .flip-inner { transform: rotateY(180deg); } }
.flip-card:focus-visible .flip-inner, .flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-card:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.flip-face { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: var(--shadow); }
.flip-front { background: var(--brand); }
.flip-front img { width: 100%; height: 100%; object-fit: cover; }
.flip-front .avatar-initials { position: absolute; inset: 0 0 30% 0; }
.flip-front .avatar-initials.o, .flip-front .avatar-initials.a { background: transparent; }
.flip-front { background: radial-gradient(circle at 30% 15%, rgba(255,255,255,.16), transparent 50%), linear-gradient(160deg, var(--brand-2), var(--brand)); }
.flip-front.a { background: radial-gradient(circle at 30% 15%, rgba(255,255,255,.25), transparent 50%), linear-gradient(160deg, #dcb840, #a8841a); }
.flip-front .front-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem .9rem .9rem; background: linear-gradient(transparent, rgba(7,26,58,.92) 55%); color: #fff; }
.flip-front.a .front-cap { background: linear-gradient(transparent, rgba(7,26,58,.9) 55%); }
.flip-front h3 { font-family: var(--font-body); font-size: .98rem; font-weight: 700; color: #fff; margin: 0 0 .15rem; line-height: 1.25; }
.flip-front .score { color: var(--accent); font-weight: 800; font-size: .88rem; }
.flip-front .rank { position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: .9rem; box-shadow: 0 4px 12px rgba(0,0,0,.2); z-index: 2; }
.flip-front .exam-tag { position: absolute; top: 10px; right: 10px; bottom: auto; background: rgba(255,255,255,.18); backdrop-filter: blur(4px); color: #fff; font-size: .7rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; z-index: 2; }
.flip-front.a .exam-tag { background: rgba(11,42,91,.85); }
.flip-hint { position: absolute; right: 10px; bottom: 58px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); color: #fff; font-size: .85rem; z-index: 2; transition: transform .4s; }
.flip-card:hover .flip-hint { transform: rotate(180deg); }
.flip-back { transform: rotateY(180deg); background: #fff; border-top: 5px solid var(--brand); padding: 1.1rem 1rem; display: flex; flex-direction: column; gap: .35rem; }
.flip-back.a { border-top-color: var(--accent); }
.flip-back .back-level { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.flip-back h3 { font-family: var(--font-head); font-size: 1.12rem; font-weight: 700; color: var(--brand); margin: 0; line-height: 1.2; }
.flip-back .back-score { display: inline-block; align-self: flex-start; font-weight: 800; color: #fff; background: var(--brand); padding: .25rem .65rem; border-radius: 8px; font-size: .85rem; }
.flip-back.a .back-score { background: var(--accent); color: var(--brand); }
.flip-back .back-det { font-size: .8rem; color: var(--muted); margin: .2rem 0 0; line-height: 1.45; }
.flip-back .back-det i { color: var(--accent); }
.flip-back .achv { align-self: flex-start; margin-top: auto; font-size: .72rem; line-height: 1.35; }
.flip-back .back-crest { position: absolute; right: -14px; bottom: -18px; font-size: 5rem; color: rgba(11,42,91,.05); line-height: 1; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; transform: none !important; }
  .flip-back { transform: none; opacity: 0; transition: opacity .2s; }
  .flip-card:hover .flip-back, .flip-card:focus-visible .flip-back, .flip-card.flipped .flip-back { opacity: 1; }
}
.flip-front .front-cap { padding-right: 2.6rem; }
.flip-hint { bottom: .95rem; }

/* tighter vertical rhythm */
.quick-links + .section { padding-top: clamp(2.5rem, 4vw, 3.5rem); }
.section .mt-5 { margin-top: 2rem !important; }
.section .mb-5 { margin-bottom: 2rem !important; }
.prose h2, .prose h3 { margin: 1.5rem 0 .7rem; }
.section-title { margin-bottom: .6rem; }
.footer-title { margin-bottom: .9rem; }
@media (max-width: 767.98px) { .section { padding: 2.25rem 0; } .section-head { margin-bottom: 1.5rem; } }

/* flip-card back: photo (or monogram) faintly behind the details */
.flip-back { isolation: isolate; }
.flip-back .back-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: .28; filter: grayscale(.15); }
.flip-back .back-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,.15) 55%, rgba(255,255,255,.7)); }
.flip-back .back-bg.mono { display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 9vw, 7.5rem); color: var(--brand); opacity: .07; letter-spacing: .02em; }
.flip-back.a .back-bg.mono { color: #a8841a; opacity: .14; }
.flip-back .back-bg.mono::after { display: none; }

/* ------------------------------------------------- academic calendar */
.term-card { background: #fff; border-radius: 16px; padding: 1.25rem 1.35rem; box-shadow: var(--shadow); border-top: 4px solid var(--line); height: 100%; }
.term-card.live { border-top-color: var(--accent); box-shadow: 0 0 0 2px rgba(201,162,39,.35), var(--shadow); }
.term-card.next { border-top-color: var(--brand); }
.term-card.done { opacity: .8; }
.term-name { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--brand); }
.term-state { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .25rem .6rem; border-radius: 999px; background: var(--bg-soft); color: var(--muted); }
.term-card.live .term-state { background: var(--accent); color: var(--brand); }
.term-card.next .term-state { background: #e8eefb; color: var(--brand); }
.term-dates { font-weight: 700; color: var(--ink); }
.term-dates i { color: var(--accent); }
.term-bar { height: 6px; border-radius: 9px; background: #edf0f6; overflow: hidden; }
.term-bar span { display: block; height: 100%; background: linear-gradient(90deg, #ddb93f, var(--accent)); }
.cal-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; font-weight: 600; color: var(--ink); }
.cal-chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.cal-chip i { margin-right: .2rem; }
.cal-month { margin-bottom: 1.75rem; }
.cal-month-title { font-family: var(--font-body); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: .75rem; display: flex; align-items: center; gap: .75rem; }
.cal-month-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.cal-items { display: grid; gap: .65rem; }
.cal-item { --c: var(--brand); position: relative; display: flex; gap: 1rem; align-items: flex-start; background: #fff; border-radius: 14px; padding: 1rem 1.1rem; box-shadow: 0 2px 10px rgba(11,42,91,.05); border-left: 4px solid var(--c); transition: box-shadow .2s; }
.cal-item:hover { box-shadow: var(--shadow); }
.cal-item.c-holiday { --c: var(--accent); } .cal-item.c-exam { --c: #c0392b; } .cal-item.c-event { --c: #198754; } .cal-item.c-meeting { --c: #0d6efd; }
.cal-item.past { opacity: .6; }
.cal-item.live { box-shadow: 0 0 0 2px var(--c), var(--shadow); }
.cal-date { flex: 0 0 56px; text-align: center; border-radius: 12px; background: var(--bg-soft); padding: .4rem 0; line-height: 1.1; }
.cal-date .d { display: block; font-family: var(--font-head); font-size: 1.45rem; font-weight: 800; color: var(--c); }
.cal-date .m { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.cal-body { flex: 1; min-width: 0; }
.cal-body h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; color: var(--ink); margin: 0 0 .2rem; }
.cal-body p { margin: .3rem 0 0; font-size: .9rem; color: var(--muted); }
.cal-range { font-size: .85rem; color: var(--muted); }
.cal-type { font-size: .72rem; font-weight: 700; color: var(--c); text-transform: uppercase; letter-spacing: .06em; }
.cal-term { font-size: .72rem; font-weight: 600; background: var(--bg-soft); border-radius: 999px; padding: .1rem .55rem; color: var(--muted); }
.cal-src { font-size: .65rem; font-weight: 800; letter-spacing: .06em; background: var(--brand); color: #fff; border-radius: 6px; padding: .12rem .4rem; }
.cal-now { font-size: .68rem; font-weight: 700; background: var(--c); color: #fff; border-radius: 999px; padding: .12rem .55rem; }
.cal-add { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-soft); color: var(--brand); text-decoration: none; }
.cal-add:hover { background: var(--accent); color: var(--brand); }
@media print { .cal-legend, .cal-add, .btn { display: none !important; } .cal-item { box-shadow: none; break-inside: avoid; } }

/* registration details */
.reg-strip { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .8rem; color: rgba(255,255,255,.65); }
.reg-strip strong { color: rgba(255,255,255,.9); font-weight: 600; }
.reg-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.25rem; }
.reg-card .reg-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.reg-card .reg-row:last-child { border-bottom: 0; }
.reg-card .reg-row span { color: var(--muted); }
.reg-card .reg-row strong { font-variant-numeric: tabular-nums; color: var(--brand); }
.reg-strip + .footer-bottom { margin-top: 1rem; }

/* ------------------------------------------------ feature link cards */
.feature-link { position: relative; display: block; overflow: hidden; text-decoration: none; color: inherit; isolation: isolate; }
.feature-link .feature-bg { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .45s ease, transform .6s ease; transform: scale(1.08); }
.feature-link .feature-bg img, .feature-link .feature-bg .media-fallback { width: 100%; height: 100%; object-fit: cover; }
.feature-link .feature-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,26,58,.55), rgba(7,26,58,.92)); }
.feature-link:hover, .feature-link:focus-visible { color: #fff; background-color: #0b2350; border-color: #0b2350; }
.feature-link:hover .feature-bg, .feature-link:focus-visible .feature-bg { opacity: 1; transform: none; }
.feature-link:hover h3, .feature-link:focus-visible h3 { color: #fff; }
.feature-link:hover p, .feature-link:focus-visible p { color: rgba(255,255,255,.85); }
.feature-link:hover .icon { background: var(--accent); color: var(--brand); }
.feature-more { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-weight: 700; font-size: .9rem; color: var(--brand); transition: gap .2s; }
.feature-link:hover .feature-more { color: var(--accent); gap: .6rem; }
.feature-link .icon { transition: all .3s; }
@media (hover: none) { .feature-more { color: var(--accent); } }

/* feature page */
.feature-hero { position: relative; color: #fff; padding: clamp(4rem, 9vw, 7rem) 0 clamp(5rem, 9vw, 7rem); background: linear-gradient(100deg, rgba(7,26,58,.94) 0%, rgba(7,26,58,.7) 55%, rgba(7,26,58,.35) 100%), var(--fh-img, none) center/cover no-repeat, var(--brand); overflow: hidden; }
.feature-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; max-width: 780px; margin: .9rem 0 .6rem; }
.fh-tag { font-family: var(--font-head); font-style: italic; color: #f3dc92; font-size: clamp(1.1rem, 2.2vw, 1.45rem); max-width: 720px; margin: 0; }
.fh-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); color: var(--brand); font-size: 1.7rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.fact-bar { position: relative; z-index: 3; margin-top: -3rem; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); overflow: hidden; }
.fact { padding: 1.3rem 1.4rem; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.fact span { color: var(--muted); font-size: .88rem; }
@media (max-width: 575.98px) { .fact { border-right: 0; border-bottom: 1px solid var(--line); } }
.masonry { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; grid-auto-flow: dense; gap: 1rem; }
.masonry-item { display: block; position: relative; overflow: hidden; border-radius: 16px; height: 100%; aspect-ratio: auto !important; margin: 0; }
.masonry-item > img, .masonry-item > .media-fallback { width: 100%; height: 100%; object-fit: cover; display: block; }
.masonry-item.m0 { grid-row: span 2; } .masonry-item.m3 { grid-row: span 2; } .masonry-item.m4 { grid-column: span 2; }
@media (max-width: 767.98px) { .masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: .6rem; } .masonry-item.m4 { grid-column: span 2; } }
.masonry-item .cap { opacity: 0; transition: opacity .3s; }
.masonry-item:hover .cap, .masonry-item:focus-visible .cap { opacity: 1; }
.feature-link-card { display: block; height: 100%; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
.feature-link-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: inherit; }
.flc-media { aspect-ratio: 16/9; overflow: hidden; }
.flc-media img, .flc-media .media-fallback { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.feature-link-card:hover .flc-media img { transform: scale(1.06); }
.flc-body { padding: 1.25rem 1.35rem 1.4rem; position: relative; }
.flc-icon { position: absolute; top: -26px; right: 1.2rem; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: var(--accent); font-size: 1.35rem; box-shadow: var(--shadow); }
.flc-body h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; margin-bottom: .35rem; }
.flc-body p { color: var(--muted); font-size: .92rem; }

/* teachers portfolio */
.tstat strong { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--brand); line-height: 1; }
.tstat span { color: var(--muted); font-size: .88rem; }
.dept-block { margin-bottom: 2.75rem; }
.dept-head { display: flex; align-items: center; gap: 1rem; padding-bottom: .9rem; margin-bottom: 1.25rem; border-bottom: 2px solid var(--line); }
.dept-head h2 { font-size: 1.5rem; margin: 0; }
.dept-head p { margin: .15rem 0 0; color: var(--muted); font-size: .92rem; }
.dept-icon { flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: var(--accent); font-size: 1.4rem; }
.dept-count { margin-left: auto; white-space: nowrap; font-size: .78rem; font-weight: 700; color: var(--brand); background: var(--accent-soft); padding: .3rem .7rem; border-radius: 999px; }
.hod-card { display: flex; height: 100%; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; border: 2px solid transparent; transition: all .25s; }
.hod-card:hover, .hod-card:focus-visible { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.hod-photo { position: relative; flex: 0 0 42%; min-height: 260px; background: var(--bg-soft); }
.hod-photo .hp { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; font-size: 3rem; }
.hod-badge { position: absolute; left: .75rem; bottom: .75rem; background: var(--accent); color: var(--brand); font-size: .72rem; font-weight: 800; padding: .3rem .65rem; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.hod-body { padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .35rem; }
.hod-body h3 { font-family: var(--font-head); font-size: 1.3rem; margin: 0; }
.hod-body .pos { color: var(--accent); font-weight: 700; font-size: .85rem; }
.hod-body .chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .25rem 0; }
.hod-body .chips span { font-size: .75rem; font-weight: 600; background: var(--bg-soft); color: var(--brand); border-radius: 999px; padding: .2rem .6rem; }
.hod-body .qual { font-size: .85rem; color: var(--ink); margin: 0; }
.hod-body .qual i { color: var(--accent); }
.hod-body .bio { font-size: .88rem; color: var(--muted); margin: 0; }
.hod-body .exp { margin-top: auto; font-size: .82rem; color: var(--muted); }
.hod-body .exp strong { font-family: var(--font-head); font-size: 1.4rem; color: var(--brand); }
@media (max-width: 575.98px) { .hod-card { flex-direction: column; } .hod-photo { flex-basis: auto; aspect-ratio: 4/3; min-height: 0; } }
.teacher-card { height: 100%; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: all .25s; }
.teacher-card:hover, .teacher-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tc-photo { position: relative; aspect-ratio: 4/5; background: var(--bg-soft); overflow: hidden; }
.tc-photo .tp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; font-size: 2.6rem; transition: transform .5s; }
.teacher-card:hover .tc-photo img { transform: scale(1.05); }
.tc-body { padding: .85rem 1rem 1rem; }
.tc-body h3 { font-family: var(--font-body); font-size: .98rem; font-weight: 700; margin: 0 0 .1rem; color: var(--ink); }
.tc-body .pos { font-size: .78rem; color: var(--accent); font-weight: 700; }
.tc-body .subj { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.teacher-modal { border: 0; border-radius: 20px; overflow: hidden; }
@media (max-width: 767.98px) { .teacher-modal .tm-photo { min-height: 0; height: 260px; background-position: center 25%; } }
.teacher-modal .tm-photo { width: 100%; border-radius: 0; height: 100%; min-height: 320px; background: linear-gradient(135deg, var(--brand-2), var(--brand)) center/cover no-repeat; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-size: 4rem; font-weight: 800; }
.tm-row { display: flex; gap: .8rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.tm-row i { color: var(--accent); font-size: 1.15rem; margin-top: .15rem; }
.tm-row small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.teacher-modal .btn-close { background-color: rgba(255,255,255,.92); border-radius: 50%; padding: .65rem; opacity: 1; box-shadow: 0 2px 8px rgba(0,0,0,.15); }

/* ---------- Leader social icons ---------- */
.lp-media, .leader-media { position: relative; }
.leader-pane .lp-media { flex: 0 0 220px; width: 220px; align-self: flex-start; }
.leader-pane .lp-media .lp-photo { width: 100%; flex: none; display: block; }
.leader-media .photo { margin-bottom: 0; }
.leader-card .leader-media { margin-bottom: 1rem; }
.social-icons { display: flex; flex-wrap: wrap; gap: .35rem; }
.social-icons a { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .85rem; text-decoration: none; transition: transform .2s, background-color .2s, color .2s; }
.social-icons a:hover, .social-icons a:focus-visible { transform: translateY(-2px); }
.social-overlay { position: absolute; left: 50%; bottom: .6rem; transform: translateX(-50%); justify-content: center; flex-wrap: nowrap; padding: .3rem .4rem; border-radius: 999px; background: rgba(7, 26, 58, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 4px 14px rgba(0,0,0,.18); max-width: calc(100% - 1rem); }
.social-overlay a { color: #fff; background: rgba(255,255,255,.14); }
.social-overlay a:hover, .social-overlay a:focus-visible { background: var(--accent); color: var(--brand); }
.social-inline a { background: var(--bg-soft); color: var(--brand); border: 1px solid var(--line); }
.social-inline a:hover, .social-inline a:focus-visible { background: var(--brand); color: #fff; border-color: var(--brand); }
.social-icons .s-facebook:hover { background: #1877f2; color: #fff; }
.social-icons .s-x_twitter:hover { background: #000; color: #fff; }
.social-icons .s-instagram:hover { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); color: #fff; }
.social-icons .s-linkedin:hover { background: #0a66c2; color: #fff; }
.social-icons .s-tiktok:hover { background: #010101; color: #fff; }
.social-icons .s-whatsapp:hover { background: #25d366; color: #fff; }
@media (max-width: 767.98px) {
  .leader-pane .lp-media { width: 200px; flex-basis: auto; }
  .social-overlay a { width: 28px; height: 28px; font-size: .8rem; }
}
@media (max-width: 575.98px) { .leader-card .social-overlay { gap: .2rem; padding: .25rem; } .leader-card .social-overlay a { width: 24px; height: 24px; font-size: .7rem; } }


/* ============================================================== Masthead
   Gold utility bar with rounded bottom corners, and a floating navy
   navigation "pill" that overlaps the first section. The pill docks to
   the top of the screen when scrolling. */
:root { --mh: 136px; }
@media (max-width: 991.98px) { :root { --mh: 84px; } }
.masthead { position: absolute; top: 0; left: 0; right: 0; z-index: 1030; pointer-events: none; }
.masthead > * { pointer-events: auto; }
.topbar { background: var(--accent); color: var(--brand); font-size: .82rem; font-weight: 600; padding: .5rem 0 2.1rem; border-radius: 0 0 34px 34px; box-shadow: 0 6px 18px rgba(7,26,58,.12); }
.topbar a { color: var(--brand); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover, .topbar a:focus-visible { color: #071a3a; text-decoration: underline; text-underline-offset: 3px; }
.topbar-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar-links i { font-size: .95rem; }
.topbar-social { display: flex; align-items: center; gap: .4rem; justify-content: flex-end; }
.topbar-social a { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--brand); color: var(--accent); font-size: .75rem; transition: transform .2s, background-color .2s; }
.topbar-social a:hover, .topbar-social a:focus-visible { transform: translateY(-2px); background: #071a3a; color: #fff; text-decoration: none; }
.topbar-social .follow { margin-left: .6rem; font-weight: 700; letter-spacing: .02em; }

.site-header { margin-top: -1.65rem; position: relative; background: transparent; box-shadow: none; }
.nav-pill { background: radial-gradient(600px 160px at 85% 0%, rgba(201,162,39,.16), transparent 70%), linear-gradient(100deg, #0a2654 0%, var(--brand) 55%, #12408a 100%); border-radius: 22px; padding: .55rem .75rem .55rem 1rem !important; box-shadow: 0 14px 36px rgba(7,26,58,.28); border: 1px solid rgba(255,255,255,.08); }
.brand-disc { width: 54px; height: 54px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: 0 0 54px; box-shadow: 0 0 0 3px rgba(201,162,39,.55); }
.brand-disc img { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.08rem; color: #fff; }
.brand-sub { font-size: .7rem; color: var(--accent); letter-spacing: .06em; font-style: italic; font-family: var(--font-head); }
.nav-pill .navbar-toggler { color: #fff; font-size: 2rem; padding: .1rem .4rem; }
.nav-pill .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(201,162,39,.5); }
@media (min-width: 992px) {
  .nav-pill .navbar-nav .nav-link { color: #fff; text-transform: uppercase; font-weight: 700; font-size: .84rem; letter-spacing: .04em; padding: .65rem .8rem !important; border-radius: 12px; display: inline-flex; align-items: center; gap: .3rem; position: relative; }
  .nav-pill .navbar-nav .nav-link:hover, .nav-pill .navbar-nav .nav-link:focus-visible, .nav-pill .navbar-nav .show > .nav-link { color: var(--accent); background: rgba(255,255,255,.06); }
  .nav-pill .navbar-nav .nav-link.active { color: var(--accent); box-shadow: none; background: transparent; }
  .nav-pill .navbar-nav .nav-link.active::after { content: ''; position: absolute; left: 50%; bottom: .18rem; width: 18px; height: 3px; border-radius: 3px; background: var(--accent); transform: translateX(-50%); border: 0; margin: 0; }
  .nav-pill .dropdown-toggle::after { display: none; }
  .nav-pill .chev { font-size: .68rem; opacity: .8; transition: transform .2s; }
  .nav-pill .dropdown:hover .chev, .nav-pill .show > .nav-link .chev { transform: rotate(180deg); }
  .nav-pill .dropdown-menu { margin-top: .55rem !important; border-top: 3px solid var(--accent); }
  .nav-pill .dropdown:hover > .dropdown-menu { margin-top: 0 !important; }
  .nav-pill .dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: .6rem; }
  .nav-actions { display: flex; gap: .5rem; align-items: center; }
}
.btn-pill { border-radius: 999px; padding: .6rem 1.25rem; font-weight: 700; white-space: nowrap; }
.btn-pill-outline { border-radius: 999px; padding: .55rem 1.25rem; font-weight: 700; color: #fff; border: 1.5px solid rgba(255,255,255,.85); white-space: nowrap; }
.btn-pill-outline:hover, .btn-pill-outline:focus-visible, .btn-pill-outline.active { background: #fff; color: var(--brand); border-color: #fff; }
@media (min-width: 992px) and (max-width: 1399.98px) {
  .nav-pill .navbar-nav .nav-link { padding: .6rem .55rem !important; font-size: .78rem; letter-spacing: .02em; }
  .brand-name { font-size: .98rem; }
  .btn-pill, .btn-pill-outline { padding: .5rem .95rem; font-size: .88rem; }
  .topbar-links { gap: 1rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .brand-text { display: none; }
  .nav-pill .btn-pill-outline { display: none; }
}
/* docked state while scrolling */
.masthead.docked .site-header { position: fixed; top: 10px; left: 0; right: 0; margin-top: 0; animation: dockIn .35s cubic-bezier(.2,.7,.2,1); }
.masthead.docked .nav-pill { padding-top: .35rem !important; padding-bottom: .35rem !important; box-shadow: 0 12px 34px rgba(7,26,58,.35); }
.masthead.docked .brand-disc { width: 46px; height: 46px; flex-basis: 46px; } .masthead.docked .brand-disc img { width: 40px; height: 40px; }
@keyframes dockIn { from { transform: translateY(-120%); } to { transform: none; } }
/* mobile */
@media (max-width: 991.98px) {
  .site-header { margin-top: 10px; }
  .nav-pill { border-radius: 18px; padding: .4rem .5rem .4rem .6rem !important; }
  .brand-disc { width: 46px; height: 46px; flex-basis: 46px; } .brand-disc img { width: 40px; height: 40px; }
  .brand-name { font-size: .95rem; }
  .brand-sub { font-size: .66rem; }
  .nav-actions { display: grid; gap: .6rem; margin-top: 1.2rem; }
  .nav-actions .btn-pill-outline { color: var(--brand); border-color: var(--brand); }
  .nav-actions .btn-pill-outline:hover { background: var(--brand); color: #fff; }
  .offcanvas .nav-link { color: var(--ink); font-weight: 600; }
  .offcanvas .nav-link.active { color: var(--brand); box-shadow: inset 3px 0 0 var(--accent); padding-left: .8rem !important; }
  .offcanvas .chev { float: right; margin-top: .3rem; font-size: .8rem; }
  .offcanvas .dropdown-toggle::after { display: none; }
  .offcanvas-contact .topbar-social a { width: 34px; height: 34px; font-size: .9rem; }
}
@media (max-width: 400px) { .brand-sub { display: none; } }
/* first section clears the masthead */
.hero-content { padding-top: calc(var(--mh) + 2.5rem); }
.page-hero { padding-top: calc(var(--mh) + clamp(1.5rem, 3vw, 2.5rem)); }
.feature-hero { padding-top: calc(var(--mh) + clamp(2rem, 5vw, 3.5rem)); }
main > .mh-spacer { height: calc(var(--mh) + 1rem); background: var(--brand); }


/* ---------- Rotating crest (school badge medallion) ----------
   The text ring turns slowly; the badge itself stays upright and does
   a single 3D flip when the logo is hovered or focused. */
.nav-pill .navbar-brand { position: relative; padding: 0; margin-right: .75rem; }
.crest { position: relative; width: 96px; height: 96px; flex: 0 0 96px; margin: -22px 0 -22px -4px; display: grid; place-items: center; filter: drop-shadow(0 8px 16px rgba(7,26,58,.35)); perspective: 600px; }
.crest-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: crestSpin 28s linear infinite; }
.crest .cr-bg { fill: var(--brand); stroke: var(--accent); stroke-width: 2.5; }
.crest .cr-inner { fill: none; stroke: rgba(201,162,39,.65); stroke-width: 1; stroke-dasharray: 2 3; }
.crest .cr-text { fill: #f3dc92; font-family: var(--font-body, Inter, sans-serif); font-size: 8.6px; font-weight: 800; letter-spacing: .5px; }
.crest-core { position: relative; width: 62px; height: 62px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--accent), inset 0 0 0 1px rgba(11,42,91,.08); transform-style: preserve-3d; animation: crestIn 1.1s cubic-bezier(.2,.7,.2,1) both; }
.crest-core img { width: 54px; height: 54px; object-fit: contain; border-radius: 50%; backface-visibility: hidden; }
.navbar-brand:hover .crest-core, .navbar-brand:focus-visible .crest-core { animation: crestFlip 1s cubic-bezier(.3,.7,.3,1); }
.navbar-brand:hover .crest-ring { animation-duration: 9s; }
.navbar-brand:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 14px; }
@keyframes crestSpin { to { transform: rotate(360deg); } }
@keyframes crestFlip { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
@keyframes crestIn { from { transform: rotateY(-180deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.brand-text { max-width: 11.5rem; }
.brand-name { line-height: 1.1; }
.masthead.docked .crest { width: 72px; height: 72px; flex-basis: 72px; margin: -12px 0 -12px -4px; }
.masthead.docked .crest-core { width: 46px; height: 46px; } .masthead.docked .crest-core img { width: 40px; height: 40px; }
@media (min-width: 992px) { .nav-pill { padding-left: 1.1rem !important; } }
@media (min-width: 992px) and (max-width: 1399.98px) {
  .brand-text { max-width: 9.5rem; }
  .brand-name { font-size: .92rem; }
  .brand-sub { display: none; }
  .nav-pill .navbar-nav .nav-link { padding: .55rem .5rem !important; font-size: .76rem; }
}
@media (max-width: 991.98px) {
  .crest { width: 64px; height: 64px; flex-basis: 64px; margin: -12px 0 -12px -2px; }
  .crest-core { width: 42px; height: 42px; } .crest-core img { width: 36px; height: 36px; }
  .crest .cr-text { display: none; }
  .crest .cr-inner { stroke-width: 2; stroke-dasharray: 4 5; }
  .masthead.docked .crest { width: 60px; height: 60px; flex-basis: 60px; margin: -10px 0; }
}
@media (prefers-reduced-motion: reduce) { .crest-ring, .crest-core, .navbar-brand:hover .crest-core { animation: none !important; } }
.quick-links + .notice-strip { background: transparent; border: 0; margin-top: 1.25rem; }
.quick-links + .notice-strip .notice-inner { background: var(--accent-soft); border: 1px solid #efe1ad; border-radius: 14px; padding: .6rem 1rem; }
.nav-pill .navbar-brand { white-space: normal; }
.masthead.docked .crest { margin: -6px 0 -6px -4px; }

/* ============================================================== Floating helpers */
.back-to-top { right: 30px; bottom: 96px; border-radius: 50%; width: 44px; height: 44px; }
.btn-whatsapp { background: #25d366; color: #fff; border: 0; font-weight: 700; border-radius: 999px; }
.btn-whatsapp:hover, .btn-whatsapp:focus-visible { background: #1ebe5a; color: #fff; }
.footer-actions .btn { border-radius: 999px; font-weight: 600; }

/* ---------- Accessibility toolbar (bottom-left) */
.a11y-launcher { position: fixed; left: 22px; bottom: 22px; z-index: 1045; width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff; background: var(--brand); color: #fff; font-size: 1.7rem; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(7,26,58,.35), 0 0 0 3px var(--accent); transition: transform .2s; }
.a11y-launcher:hover, .a11y-launcher:focus-visible { transform: scale(1.07); outline: none; box-shadow: 0 10px 26px rgba(7,26,58,.35), 0 0 0 5px var(--accent); }
.a11y-launcher.active::after { content: '\F26E'; font-family: 'bootstrap-icons'; position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--brand); font-size: .75rem; display: grid; place-items: center; border: 2px solid #fff; }
.a11y-panel { position: fixed; left: 22px; bottom: 92px; z-index: 1050; width: min(390px, calc(100vw - 24px)); max-height: calc(100vh - 120px); display: flex; flex-direction: column; background: #f3f5f9; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(7,26,58,.35); animation: popIn .22s ease; font-size: 16px; line-height: 1.4; letter-spacing: normal; text-align: left; }
.a11y-panel[hidden], .chatw-panel[hidden], .chatw-teaser[hidden] { display: none !important; }
.a11y-head { background: linear-gradient(110deg, var(--brand), #12408a); color: #fff; padding: .85rem 1rem; display: flex; align-items: center; justify-content: space-between; }
.a11y-head h2 { color: #fff; font-family: var(--font-body, Inter, sans-serif); font-size: 1.15rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: .5rem; }
.a11y-head h2 i { font-size: 1.4rem; color: var(--accent); }
.a11y-icon { width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; }
.a11y-icon:hover, .a11y-icon:focus-visible { background: rgba(255,255,255,.22); outline: none; }
.a11y-body { overflow-y: auto; padding: .8rem; display: grid; gap: .7rem; overscroll-behavior: contain; }
.a11y-card { background: #fff; border-radius: 14px; padding: .8rem; box-shadow: 0 1px 0 rgba(7,26,58,.06); }
.a11y-card h3 { font-family: var(--font-body, Inter, sans-serif); font-size: .82rem; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .6rem; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.a11y-grid button { position: relative; display: flex; align-items: center; gap: .55rem; min-height: 48px; padding: .55rem .7rem; border: 1.5px solid transparent; border-radius: 12px; background: #f1f3f8; color: #1d2433; font-size: .86rem; font-weight: 600; text-align: left; line-height: 1.2; transition: background-color .15s, border-color .15s; }
.a11y-grid button i { font-size: 1.15rem; color: var(--brand); flex: 0 0 auto; }
.a11y-grid button:hover { background: #e6eaf3; }
.a11y-grid button:focus-visible { outline: none; border-color: var(--accent); }
.a11y-grid button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.a11y-grid button[aria-pressed="true"] i { color: var(--accent); }
.a11y-grid button[aria-pressed="true"]::after { content: '\F26E'; font-family: 'bootstrap-icons'; position: absolute; top: 5px; right: 7px; font-size: .8rem; color: var(--accent); }
.a11y-scale { display: flex; align-items: center; justify-content: space-between; background: #f1f3f8; border-radius: 12px; padding: .35rem; margin-bottom: .5rem; font-size: .9rem; font-weight: 600; color: #1d2433; }
.a11y-scale button { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--brand); color: #fff; }
.a11y-scale button:focus-visible { outline: 3px solid var(--accent); }
.a11y-foot { padding: .6rem 1rem; font-size: .76rem; color: #5b6475; background: #fff; border-top: 1px solid #e3e7ef; }
.a11y-foot kbd { font-size: .7rem; background: var(--brand); }
.a11y-guide { display: none; position: fixed; left: 0; right: 0; top: 40%; height: 36px; z-index: 1044; pointer-events: none; border-top: 3px solid var(--accent); border-bottom: 3px solid var(--accent); box-shadow: 0 0 0 100vmax rgba(7,26,58,.38); }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* accessibility modes (classes set on <html>) */
html.a11y-lh :is(main, .site-footer) :is(p, li, dd, dt, td, th, label, blockquote, .lead, small, span) { line-height: 1.95 !important; }
html.a11y-ls :is(main, .site-footer) :is(p, li, h1, h2, h3, h4, h5, h6, a, span, label, td, th, blockquote, button) { letter-spacing: .07em !important; word-spacing: .16em !important; }
html.a11y-font body, html.a11y-font body :is(h1, h2, h3, h4, h5, h6, p, a, span, li, button, input, select, textarea, label, td, th) { font-family: Verdana, Tahoma, 'Segoe UI', Arial, sans-serif !important; }
html.a11y-left main :is(p, li, h1, h2, h3, h4, h5, h6, blockquote, .text-center, .section-head) { text-align: left !important; }
html.a11y-links main a:not(.btn), html.a11y-links .site-footer a:not(.btn) { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px dashed #ff9800; outline-offset: 2px; }
html.a11y-headings main :is(h1, h2, h3, h4) { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
html.a11y-contrast { --a11y-c: contrast(1.35); }
html.a11y-contrast main :is(.text-muted, p, li, small) { color: #111 !important; }
html.a11y-contrast main :is(.hero, .page-hero, .feature-hero, .bg-brand, .stats-band, .cta-band) :is(p, li, small, .lead) { color: #fff !important; }
html.a11y-dark main > :not(.hero, .page-hero, .feature-hero, .stats-band, .bg-brand, .cta-band) { filter: invert(.9) hue-rotate(180deg); }
html.a11y-dark main > :not(.hero, .page-hero, .feature-hero, .stats-band, .bg-brand, .cta-band) :is(img, video, iframe, .media-fallback, [style*="background-image"]) { filter: invert(1) hue-rotate(180deg); }
html.a11y-mono { --a11y-g: grayscale(1); }
html.a11y-lowsat { --a11y-s: saturate(.45); }
html:is(.a11y-contrast, .a11y-mono, .a11y-lowsat) :is(main, .site-footer, .topbar, .nav-pill) { filter: var(--a11y-c, ) var(--a11y-g, ) var(--a11y-s, ) !important; }
html.a11y-dark body { background: #121212; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3l30 20-13 3 8 15-6 3-8-15-11 9z' fill='%23000' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto !important; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-still .reveal { opacity: 1 !important; transform: none !important; }
html.a11y-focus :focus, html.a11y-focus :focus-visible { outline: 4px solid #ff9800 !important; outline-offset: 3px !important; box-shadow: 0 0 0 7px rgba(255,152,0,.25) !important; }
html.a11y-targets :is(.btn, .nav-link, .dropdown-item, .form-control, .form-select, .page-link) { min-height: 48px; display: inline-flex; align-items: center; }
html.a11y-targets .form-control, html.a11y-targets .form-select { display: block; }
html.a11y-noimg main :is(img, video, .hero-slide, .media-fallback, .feature-bg, .flc-media) { visibility: hidden !important; }

/* ---------- Chat with the Director (bottom-right) */
.chatw-launcher { position: fixed; right: 22px; bottom: 22px; z-index: 1045; width: 60px; height: 60px; border-radius: 50%; border: 0; background: linear-gradient(135deg, #12408a, var(--brand)); color: #fff; font-size: 1.6rem; box-shadow: 0 12px 28px rgba(7,26,58,.4), 0 0 0 3px var(--accent); display: grid; place-items: center; transition: transform .2s; }
.chatw-launcher:hover, .chatw-launcher:focus-visible { transform: scale(1.07); outline: none; }
.chatw-launcher::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--accent); animation: chatPulse 2.2s ease-out infinite; }
.chatw.seen .chatw-launcher::before, .chatw.open .chatw-launcher::before { display: none; }
.chatw-launcher > span { grid-area: 1 / 1; transition: transform .25s, opacity .25s; }
.chatw-launcher .ico-close { opacity: 0; transform: rotate(-90deg); font-size: 1.3rem; }
.chatw.open .chatw-launcher .ico-open { opacity: 0; transform: rotate(90deg); }
.chatw.open .chatw-launcher .ico-close { opacity: 1; transform: none; }
.chatw-launcher .dot { position: absolute; top: -3px; right: -3px; width: 22px; height: 22px; border-radius: 50%; background: #e0312b; color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.chatw.seen .chatw-launcher .dot { display: none; }
@keyframes chatPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
.chatw-teaser { position: fixed; right: 22px; bottom: 96px; z-index: 1044; width: 300px; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; animation: popIn .3s ease; }
.chatw-teaser .chatw-bubble { background: #fff; border-radius: 16px 16px 4px 16px; padding: .8rem 1rem; margin: 0; box-shadow: 0 10px 30px rgba(7,26,58,.18); font-weight: 600; color: #1d2433; align-self: stretch; }
.chatw-teaser-close { width: 26px; height: 26px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); color: #5b6475; display: grid; place-items: center; }
.chatw-quick { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.chatw-quick > * { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); border-radius: 999px; padding: .4rem 1rem; font-weight: 600; font-size: .9rem; text-decoration: none; box-shadow: 0 4px 14px rgba(7,26,58,.12); }
.chatw-quick > *:hover, .chatw-quick > *:focus-visible { background: var(--brand); color: #fff; outline: none; }
.chatw-quick a { border-color: #25d366; color: #128c4a; } .chatw-quick a:hover { background: #25d366; color: #fff; }
.chatw-panel { position: fixed; right: 22px; bottom: 96px; z-index: 1050; width: min(390px, calc(100vw - 24px)); height: min(640px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(7,26,58,.35); animation: popIn .22s ease; }
.chatw-head { display: flex; align-items: center; gap: .65rem; padding: .85rem .9rem; color: #fff; background: radial-gradient(400px 120px at 90% 0%, rgba(201,162,39,.25), transparent 70%), linear-gradient(110deg, var(--brand), #12408a); }
.chatw-head h2 { color: #fff; font-family: var(--font-body, Inter, sans-serif); font-size: 1.02rem; font-weight: 800; margin: 0; }
.chatw-head p { margin: 0; font-size: .74rem; color: rgba(255,255,255,.75); }
.chatw-title { flex: 1; min-width: 0; }
.chatw-avatar { position: relative; flex: 0 0 auto; }
.chatw-avatar .chatw-ava { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); font-size: 1rem; }
.chatw-avatar .online { position: absolute; right: 0; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid var(--brand); }
.chatw-close, .chatw-back { width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.chatw-close:hover, .chatw-back:hover, .chatw-close:focus-visible, .chatw-back:focus-visible { background: rgba(255,255,255,.22); outline: none; }
.chatw-body { flex: 1; overflow-y: auto; padding: .9rem; background: #f3f5f9; overscroll-behavior: contain; }
.chatw .msg { max-width: 88%; padding: .65rem .85rem; border-radius: 16px; font-size: .9rem; line-height: 1.45; margin-bottom: .5rem; }
.chatw .msg.bot { background: #fff; color: #1d2433; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(7,26,58,.08); }
.chatw .msg.me { margin-left: auto; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; word-break: break-word; }
.chatw .msg.ok { border-left: 4px solid #22c55e; }
.chatw .msg .ref { display: block; margin-top: .45rem; font-weight: 800; color: var(--brand); }
.chatw-options { display: grid; gap: .45rem; margin-top: .7rem; }
.chatw-options > * { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; background: #fff; border: 1.5px solid #e3e7ef; border-radius: 14px; text-align: left; color: #1d2433; text-decoration: none; transition: border-color .15s, transform .15s; width: 100%; }
.chatw-options > *:hover, .chatw-options > *:focus-visible { border-color: var(--accent); transform: translateX(2px); outline: none; color: #1d2433; }
.chatw-options > * > i:first-child { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.05rem; flex: 0 0 auto; }
.chatw-options > * > i:last-child { margin-left: auto; color: #9aa3b5; }
.chatw-options span { display: flex; flex-direction: column; line-height: 1.25; }
.chatw-options strong { font-size: .9rem; } .chatw-options small { color: #6b7385; font-size: .76rem; }
.chatw-options .wa > i:first-child { background: #dcfce7; color: #128c4a; }
.chatw-form { background: #fff; border-radius: 16px; padding: .85rem; box-shadow: 0 1px 2px rgba(7,26,58,.08); }
.chatw-form .form-label { font-size: .78rem; font-weight: 700; color: #3b4456; margin-bottom: .2rem; }
.chatw-form .req { color: #e0312b; }
.chatw-form .hint { font-size: .74rem; color: #6b7385; margin: -.1rem 0 0; }
.chatw-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.chatw-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.chatw-seg label { display: flex; align-items: center; justify-content: center; gap: .3rem; padding: .4rem; border: 1.5px solid #e3e7ef; border-radius: 10px; font-size: .8rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.chatw-seg input { position: absolute; opacity: 0; pointer-events: none; }
.chatw-seg label:has(input:checked) { border-color: var(--brand); background: var(--brand); color: #fff; }
.chatw-seg label:has(input:focus-visible) { outline: 3px solid var(--accent); }
.chatw-seg label.dim { opacity: .45; }
.chatw-error { margin-top: .6rem; padding: .5rem .7rem; border-radius: 10px; background: #fdecec; color: #a4231d; font-size: .84rem; font-weight: 600; }
.chatw-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.chatw-foot { padding: .55rem .9rem; font-size: .74rem; color: #6b7385; border-top: 1px solid #e3e7ef; background: #fff; }
@media (max-width: 575.98px) {
  .a11y-launcher { left: 14px; bottom: 14px; width: 50px; height: 50px; font-size: 1.5rem; }
  .chatw-launcher { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .back-to-top { right: 19px; bottom: 80px; }
  .chatw-panel { right: 8px; left: 8px; width: auto; bottom: 78px; height: calc(100vh - 96px); height: calc(100dvh - 96px); }
  .a11y-panel { left: 8px; right: 8px; width: auto; bottom: 74px; max-height: calc(100dvh - 92px); }
}
@media print { .a11y, .chatw, .masthead .topbar { display: none !important; } .masthead { position: static; } }
@media (prefers-reduced-motion: reduce) { .chatw-launcher::before { animation: none; } }

/* header keeps a fixed size so large-text mode never breaks the menu (browser zoom still enlarges it) */
@media (min-width: 992px) {
  .nav-pill .navbar-nav .nav-link { font-size: 13.4px; }
  .brand-name { font-size: 17px; } .brand-sub { font-size: 11px; }
  .nav-pill .btn-pill, .nav-pill .btn-pill-outline { font-size: 15px; }
  .topbar { font-size: 13px; }
}
@media (min-width: 992px) and (max-width: 1399.98px) {
  .nav-pill .navbar-nav .nav-link { font-size: 12.2px; }
  .brand-name { font-size: 14.7px; }
  .nav-pill .btn-pill, .nav-pill .btn-pill-outline { font-size: 14px; }
}
.a11y-panel, .chatw-panel, .chatw-teaser { font-size: 15px; }

/* Crest fit: the badge is a square image whose banner reaches ~58% of its width from
   the centre, so it is sized to ~84% of the white disc and never clipped to a circle. */
.crest { width: 100px; height: 100px; flex-basis: 100px; margin: -24px 0 -24px -4px; }
.crest-core { width: 66px; height: 66px; overflow: visible; }
.crest-core img, .masthead.docked .crest-core img { border-radius: 0 !important; object-fit: contain; width: 84%; height: 84%; }
.masthead.docked .crest { width: 74px; height: 74px; flex-basis: 74px; }
.masthead.docked .crest-core { width: 49px; height: 49px; }
@media (max-width: 991.98px) {
  .crest { width: 66px; height: 66px; flex-basis: 66px; margin: -12px 0 -12px -2px; }
  .crest-core { width: 46px; height: 46px; }
  .masthead.docked .crest { width: 62px; height: 62px; flex-basis: 62px; }
  .masthead.docked .crest-core { width: 43px; height: 43px; }
}
/* bigger white disc; built-in badge (transparent corners) fills 80%, an uploaded logo 70% (always inside the circle) */
.crest-core { width: 72px; height: 72px; }
.crest-core img.fit-art { width: 80% !important; height: 80% !important; }
.crest-core img.fit-safe { width: 70% !important; height: 70% !important; }
.masthead.docked .crest-core { width: 53px; height: 53px; }
@media (max-width: 991.98px) { .crest-core { width: 48px; height: 48px; } .masthead.docked .crest-core { width: 45px; height: 45px; } }

/* application documents */
.doc-grid .upload-box { position: relative; padding-top: 1.6rem; text-align: center; }
.doc-tag { position: absolute; top: .6rem; right: .6rem; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 999px; }
.doc-tag.req { background: #fdecec; color: #a4231d; }
.doc-tag.opt { background: #eef2f8; color: #5b6475; }
.upload-box.has-file { border-color: #22c55e !important; background: #f0fdf4; }
.upload-box.has-file > i { color: #16a34a; }
.upload-box.is-invalid { border-color: #dc3545 !important; background: #fff5f5; }
.upload-box .fname { font-size: .82rem; color: #166534; font-weight: 600; word-break: break-word; }
.upload-box:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ============================================================== How to Apply (Light Academy-style layout, STAHIZA colours) */
.ha-hero { position: relative; min-height: clamp(560px, 82vh, 760px); display: flex; align-items: flex-end; padding: calc(var(--mh) + 2rem) 0 3rem; overflow: hidden; background: var(--brand); }
.ha-slides, .ha-slide { position: absolute; inset: 0; }
.ha-slide { background-size: cover; background-position: center 30%; opacity: 0; transform: scale(1.06); transition: opacity 1.1s ease, transform 7s ease; }
.ha-slide.active { opacity: 1; transform: scale(1); }
.ha-slide-brand { background: radial-gradient(800px 400px at 80% 10%, rgba(201,162,39,.35), transparent 60%), linear-gradient(120deg, #071a3a, var(--brand)); }
.ha-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,26,58,.35) 0%, rgba(7,26,58,0) 35%, rgba(7,26,58,.55) 100%); pointer-events: none; }
.ha-tag { position: absolute; right: clamp(1rem, 5vw, 5rem); top: calc(var(--mh) + 2rem); z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: .1rem; font-family: var(--font-head); font-style: italic; font-weight: 700; color: #fff; font-size: clamp(1.2rem, 2.4vw, 2rem); text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.ha-wrap { position: relative; z-index: 2; }
.ha-card { background: #fff; border-radius: 22px; padding: clamp(1.5rem, 3vw, 2.5rem); max-width: 620px; box-shadow: 0 24px 60px rgba(7,26,58,.28); }
.ha-eyebrow { font-size: .85rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8a6d0b; margin-bottom: .4rem; }
.ha-eyebrow.light { color: var(--accent); }
.ha-card h1 { font-family: var(--font-head); color: var(--brand); font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: .6rem; }
.ha-lead { color: #4a5568; font-size: 1.05rem; line-height: 1.6; }
.ha-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.ha-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-width: 210px; padding: .85rem 1.2rem; border-radius: 8px; font-weight: 800; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.ha-btn:hover, .ha-btn:focus-visible { transform: translateY(-2px); text-decoration: none; }
.ha-apply { background: var(--accent); color: #0b2a5b; box-shadow: 0 8px 18px rgba(201,162,39,.35); }
.ha-apply:hover, .ha-apply:focus-visible { color: #071a3a; box-shadow: 0 10px 24px rgba(201,162,39,.45); }
.ha-apply.disabled { pointer-events: none; opacity: .55; }
.ha-wa { background: #fff; color: #087b35; border: 1.5px solid #cfe9d8; }
.ha-wa:hover, .ha-wa:focus-visible { background: #effaf3; color: #065f29; }
.ha-controls { display: flex; gap: .5rem; margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid #edf0f5; }
.ha-controls button { border: 1.5px solid #dfe4ee; background: #fff; color: var(--brand); border-radius: 999px; min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; font-weight: 700; padding: 0 .8rem; }
.ha-controls button:hover, .ha-controls button:focus-visible { background: var(--brand); color: #fff; border-color: var(--brand); outline: none; }
.ha-steps-section { background: #fff; }
.ha-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.ha-step { position: relative; background: #fff; border-radius: 22px; padding: 2rem; box-shadow: 0 12px 26px rgba(11,37,69,.08); border: 1px solid #eef1f6; transition: transform .2s, box-shadow .2s; }
.ha-step:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(11,37,69,.12); }
.ha-num { display: inline-flex; width: 52px; height: 52px; border-radius: 18px; background: #fbf3da; color: #8a6d0b; font-weight: 800; font-size: 1.15rem; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.ha-step h3 { font-size: 1.2rem; font-weight: 800; color: var(--brand); line-height: 1.3; margin-bottom: .6rem; }
.ha-step p { color: #4a5568; margin: 0; line-height: 1.6; }
.ha-step:not(:last-child)::after { content: '\F138'; font-family: 'bootstrap-icons'; position: absolute; right: -1.2rem; top: 2.6rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--brand); display: grid; place-items: center; font-size: 1rem; z-index: 2; box-shadow: 0 4px 10px rgba(201,162,39,.4); }
.ha-panel { background: #fff; border-radius: 22px; padding: 2rem; box-shadow: 0 12px 26px rgba(11,37,69,.06); }
.ha-check { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.ha-check li { display: flex; gap: .65rem; align-items: flex-start; }
.ha-check i { color: #16a34a; margin-top: .15rem; }
.ha-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; margin-top: 1.4rem; }
.ha-codes div { background: var(--bg-soft); border-radius: 14px; padding: .7rem .9rem; display: flex; flex-direction: column; }
.ha-codes span { font-size: .78rem; color: #5b6475; } .ha-codes strong { color: var(--brand); font-size: 1.15rem; }
.ha-fees th { font-weight: 500; color: #3b4456; } .ha-fees td { text-align: right; font-weight: 700; color: var(--brand); white-space: nowrap; }
.ha-fees .ha-total th, .ha-fees .ha-total td { background: var(--brand); color: #fff; font-weight: 800; }
.ha-band { padding: clamp(2.5rem, 5vw, 4rem) 0; background: #fff; }
.ha-band-inner { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 26px; overflow: hidden; background: radial-gradient(500px 220px at 0% 0%, rgba(201,162,39,.25), transparent 70%), linear-gradient(120deg, #071a3a, var(--brand)); color: #fff; box-shadow: 0 24px 50px rgba(7,26,58,.25); }
.ha-band-copy { padding: clamp(2rem, 4vw, 3.5rem); }
.ha-band-copy h2 { color: #fff; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.ha-band-copy p { color: #c9d4e8; }
.ha-band-copy .ha-contact { margin-top: 1.2rem; font-size: .9rem; }
.ha-band-media { background-size: cover; background-position: center; min-height: 320px; }
@media (max-width: 1199.98px) { .ha-steps { grid-template-columns: repeat(2, 1fr); } .ha-step:nth-child(2)::after { display: none; } }
@media (max-width: 767.98px) {
  .ha-hero { min-height: 0; padding-bottom: 1.5rem; align-items: flex-end; }
  .ha-tag { display: none; }
  .ha-card { margin-top: 38vh; }
  .ha-btn { width: 100%; min-width: 0; }
  .ha-steps { grid-template-columns: 1fr; }
  .ha-step::after { display: none !important; }
  .ha-band-inner { grid-template-columns: 1fr; }
  .ha-band-media { min-height: 220px; order: -1; }
}

/* ============================================================== Videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.video-grid.home { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; }
.video-grid.home .vg-lead { grid-row: span 2; }
.video-card { display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; background: #fff; border-radius: 18px; overflow: hidden; text-align: left; box-shadow: 0 10px 26px rgba(11,37,69,.1); transition: transform .2s, box-shadow .2s; height: 100%; }
.video-card:hover, .video-card:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(11,37,69,.18); outline: none; }
.video-card:focus-visible { box-shadow: 0 0 0 4px var(--accent); }
.vc-media { position: relative; display: block; aspect-ratio: 16 / 9; background: #0b2a5b; overflow: hidden; }
.video-card.lead .vc-media { aspect-ratio: auto; flex: 1; min-height: 260px; }
.vc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.video-card:hover .vc-media img { transform: scale(1.05); }
.vc-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(201,162,39,.95); color: #0b2a5b; display: grid; place-items: center; font-size: 2rem; box-shadow: 0 0 0 8px rgba(255,255,255,.25); transition: transform .2s; }
.video-card:hover .vc-play { transform: scale(1.1); }
.vc-badge { position: absolute; top: .6rem; left: .6rem; background: #ff0033; color: #fff; border-radius: 8px; padding: .1rem .45rem; font-size: .9rem; }
.vc-badge.vc-file { background: var(--brand); }
.vc-body { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem 1rem; }
.vc-cat { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a6d0b; }
.vc-title { font-weight: 700; color: var(--brand); line-height: 1.35; }
.video-card.lead .vc-title { font-size: 1.25rem; font-family: var(--font-head); }
.vc-credit { font-size: .8rem; color: #6b7385; }
.video-band { background: radial-gradient(700px 300px at 90% 0%, rgba(201,162,39,.2), transparent 60%), linear-gradient(120deg, #071a3a, var(--brand)); }
.video-band .kicker { color: var(--accent); }
.video-modal { background: #050d1d; border: 0; border-radius: 18px; overflow: hidden; }
.video-modal .modal-title { color: #fff; }
.video-modal video, .video-modal iframe { width: 100%; height: 100%; border: 0; background: #000; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; z-index: 0; pointer-events: none; }
.hero-video.playing { opacity: 1; }
.hero .carousel-item > .hero-overlay { z-index: 1; }
@media (max-width: 991.98px) { .video-grid.home { grid-template-columns: 1fr 1fr; } .video-grid.home .vg-lead { grid-column: span 2; grid-row: auto; } }
@media (max-width: 575.98px) { .video-grid.home { grid-template-columns: 1fr; } .video-grid.home .vg-lead { grid-column: auto; } }

/* ---------- Video cards v2 (description inside the card, equal heights) */
.video-card { display: flex; flex-direction: column; height: 100%; }
.vc-body { flex: 1; display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1.1rem 1.05rem; }
.vc-title { font-weight: 700; color: var(--brand); line-height: 1.35; font-size: 1.02rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vc-desc { font-size: .88rem; color: #5b6475; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vc-foot { margin-top: auto; padding-top: .6rem; border-top: 1px solid #eef1f6; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.vc-credit { font-size: .78rem; color: #6b7385; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-kind { flex: none; font-size: .72rem; font-weight: 700; color: #c4122f; background: #fdecee; border-radius: 999px; padding: .15rem .55rem; }
.vc-kind.file { color: var(--brand); background: #e8eef8; }
.vc-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,26,58,0) 45%, rgba(7,26,58,.55) 100%); }
.vc-cat-pill { position: absolute; left: .75rem; bottom: .7rem; background: rgba(255,255,255,.95); color: var(--brand); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: .2rem .6rem; }
.vc-badge, .vc-cat { display: none; }
.vc-play { width: 58px; height: 58px; margin: -29px 0 0 -29px; font-size: 1.8rem; }
/* homepage lead card keeps a large title */
.video-card.lead .vc-title { font-size: 1.3rem; -webkit-line-clamp: 3; }

/* ---------- STAHIZA TV page */
.tv-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.tv-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.tv-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border-radius: 999px; background: #fff; border: 1.5px solid #e1e6ef; color: var(--brand); font-weight: 600; font-size: .9rem; text-decoration: none; transition: all .15s; }
.tv-chip span { background: #eef2f8; color: #5b6475; border-radius: 999px; padding: 0 .5rem; font-size: .75rem; font-weight: 700; }
.tv-chip:hover, .tv-chip:focus-visible { border-color: var(--accent); color: var(--brand); text-decoration: none; }
.tv-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.tv-chip.active span { background: var(--accent); color: var(--brand); }
.tv-subscribe { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.1rem; border-radius: 999px; background: #ff0033; color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 6px 16px rgba(255,0,51,.25); }
.tv-subscribe:hover, .tv-subscribe:focus-visible { background: #d6002b; color: #fff; text-decoration: none; }
.tv-feature { display: grid; grid-template-columns: 1.45fr 1fr; gap: 0; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 18px 44px rgba(11,37,69,.12); margin-bottom: 3rem; }
.tv-feature-media .video-card { border-radius: 0; box-shadow: none; height: 100%; }
.tv-feature-media .video-card:hover { transform: none; }
.tv-feature-media .vc-media { aspect-ratio: 16 / 9; height: 100%; }
.tv-feature-media .vc-body { display: none; }
.tv-feature-media .vc-play { width: 84px; height: 84px; margin: -42px 0 0 -42px; font-size: 2.6rem; }
.tv-feature-copy { padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; }
.tv-label { align-self: flex-start; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8a6d0b; background: #fbf3da; border-radius: 999px; padding: .3rem .8rem; margin-bottom: 1rem; }
.tv-feature-copy h2 { font-family: var(--font-head); font-weight: 800; color: var(--brand); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; margin-bottom: .6rem; }
.tv-credit { color: #6b7385; font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
.tv-desc { color: #4a5568; line-height: 1.65; margin: 0; }
.tv-group { margin-bottom: 3rem; }
.tv-group-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: .75rem; margin-bottom: 1.25rem; border-bottom: 2px solid #eef1f6; }
.tv-group-head h2 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--brand); margin: 0; display: flex; align-items: center; gap: .6rem; }
.tv-group-head h2 i { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: #8a6d0b; display: grid; place-items: center; font-size: 1.1rem; }
.tv-group-head a { font-weight: 700; color: var(--brand); text-decoration: none; white-space: nowrap; }
.tv-group-head a:hover { color: #8a6d0b; }
.tv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
@media (max-width: 991.98px) { .tv-feature { grid-template-columns: 1fr; } .tv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .tv-grid { grid-template-columns: 1fr; } .tv-toolbar { flex-direction: column; align-items: stretch; } .tv-subscribe { justify-content: center; } .tv-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; } .tv-chip { flex: none; } }
/* featured video: the text decides the height, the picture fills it */
@media (min-width: 992px) { .tv-feature { grid-template-columns: 1.35fr 1fr; align-items: stretch; } }
.tv-feature-media { position: relative; min-height: 340px; }
.tv-feature-media .video-card { position: absolute; inset: 0; }
.tv-feature-media .vc-media { position: absolute; inset: 0; aspect-ratio: auto; height: auto; }
.tv-feature-media .vc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tv-feature-copy h2 { font-size: clamp(1.35rem, 2.1vw, 1.8rem); }
.tv-feature-copy .tv-desc { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 991.98px) { .tv-feature-media { min-height: 0; aspect-ratio: 16 / 9; } }
.tv-toolbar > * { min-width: 0; max-width: 100%; }
@media (max-width: 991.98px) { .tv-feature { grid-template-columns: 1fr; } .tv-feature-media { aspect-ratio: 16 / 9; min-height: 0; } }

/* gallery: albums, captions, lightbox navigation */
.gallery-albums { justify-content: center; }
.gallery-item .cap { display: flex; flex-direction: column; gap: .15rem; }
.gallery-item .cap-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.gallery-item .cap-date { font-size: .75rem; font-weight: 500; opacity: .8; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; }
.lb-stage img { max-height: 76vh; border-radius: 10px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--brand); font-size: 1.4rem; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.lb-nav.prev { left: .5rem; } .lb-nav.next { right: .5rem; }
.lb-nav:hover, .lb-nav:focus-visible { background: var(--accent); outline: none; }
.lb-desc { color: #c9d4e8; max-width: 760px; margin: 0 auto; font-size: .92rem; }
.lb-meta { color: #8fa0be; font-size: .82rem; }
.lb-meta a { color: var(--accent); }

/* ---- Apply: supporting documents (plain form list) ---- */
.doc-list { list-style: none; margin: 0; padding: 0; border: 1px solid #dfe3ea; border-radius: 6px; background: #fff; counter-reset: doc; }
.doc-list .doc-row { counter-increment: doc; display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; margin: 0; border: 0; border-top: 1px solid #e8ebf0; border-radius: 0; background: #fff; text-align: left; cursor: default; position: static; }
.doc-list .doc-row:first-child { border-top: 0; }
.doc-list .doc-row:hover { border-color: #e8ebf0; }
.doc-list .doc-info { flex: 1 1 auto; min-width: 0; }
.doc-list .doc-info label { display: block; font-weight: 600; color: #1d2533; margin: 0; cursor: pointer; }
.doc-list .doc-info label::before { content: counter(doc) ". "; color: #6b7280; font-weight: 500; }
.doc-list .doc-opt { font-weight: 400; color: #6b7280; font-size: .85em; }
.doc-list .doc-hint { font-size: .82rem; color: #6b7280; margin-top: .15rem; }
.doc-list .doc-pick { flex: 0 0 auto; width: 270px; display: flex; align-items: center; gap: .6rem; }
.doc-list .doc-btn { flex: 0 0 auto; margin: 0; padding: .3rem .75rem; font-size: .85rem; border: 1px solid #b9c0cc; border-radius: 4px; background: #f3f4f6; color: #1d2533; cursor: pointer; white-space: nowrap; }
.doc-list .doc-btn:hover { background: #e7e9ee; }
.doc-list .fname { font-size: .82rem; color: #6b7280; font-weight: 400; word-break: break-word; min-width: 0; }
.doc-list .doc-row.has-file { background: #fff !important; border-color: #e8ebf0 !important; }
.doc-list .doc-row.has-file .fname { color: #1d2533; }
.doc-list .doc-row.has-file .fname::before { content: "\2713  "; color: #15803d; font-weight: 700; }
.doc-list .doc-row.is-invalid { background: #fff7f7 !important; border-color: #e8ebf0 !important; box-shadow: inset 3px 0 0 #dc3545; }
.doc-list .doc-row.is-invalid .fname { color: #b42318; }
.doc-list .doc-row:focus-within { outline: none; }
.doc-list .doc-row:focus-within .doc-btn { outline: 2px solid var(--brand); outline-offset: 1px; }
@media (max-width: 767.98px) {
  .doc-list .doc-row { flex-direction: column; align-items: stretch; gap: .5rem; }
  .doc-list .doc-pick { width: auto; }
}

/* ---- Page banners (featured image on every page) ---- */
.page-hero.has-img { background: linear-gradient(90deg, rgba(7,26,58,.9) 0%, rgba(7,26,58,.72) 45%, rgba(7,26,58,.35) 100%), var(--hero-img) center 35%/cover no-repeat, var(--brand); min-height: clamp(220px, 32vw, 340px); display: flex; align-items: flex-end; }
.page-hero.has-img::after { display: none; }
.page-hero.has-img > .container { width: 100%; }
.page-hero.has-img h1, .page-hero.has-img p { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
@media (max-width: 575.98px) {
  .page-hero.has-img { background: linear-gradient(180deg, rgba(7,26,58,.55), rgba(7,26,58,.9)), var(--hero-img) center/cover no-repeat, var(--brand); min-height: 220px; }
  .page-hero p { font-size: 1rem; }
}

/* ---- Text must always stay inside its card (long words, pasted text with non-breaking spaces) ---- */
.leader-msg > div, .comm-card, .comm-body, .prose, .form-card, .card-body, .news-card, .event-card { min-width: 0; overflow-wrap: anywhere; word-break: normal; }
.prose p, .prose li, .prose blockquote { white-space: normal; }
.prose img, .prose iframe, .prose video, .prose table { max-width: 100%; height: auto; }
.prose table { display: block; overflow-x: auto; }
.leader-msg > div { flex: 1 1 auto; }

/* ---- Leadership messages ---- */
.comm-lead { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2.25rem; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 2rem; margin-bottom: 2.75rem; align-items: start; }
.comm-lead-img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.comm-lead-body { min-width: 0; overflow-wrap: anywhere; }
.comm-lead-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: .35rem 0 .9rem; color: var(--brand); }
.comm-lead-body p { color: #4a5568; font-size: 1.02rem; line-height: 1.75; margin-bottom: 1.25rem; }
.comm-by { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; border-top: 1px solid #e8ebf0; padding-top: 1rem; margin-bottom: 1.25rem; }
.comm-by strong { display: block; color: var(--brand); }
.comm-by span { display: block; font-size: .88rem; color: var(--muted); }
.comm-more-title { font-size: 1.25rem; color: var(--brand); margin: 0 0 1.25rem; }
.comm-card { height: 100%; display: flex; flex-direction: column; padding: 1.5rem; }
.comm-card-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; min-width: 0; }
.comm-card-head > div { min-width: 0; }
.comm-card-head strong { display: block; color: var(--brand); font-size: .98rem; line-height: 1.3; }
.comm-office { display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dark, #a07a10); font-weight: 600; margin-bottom: .15rem; }
.comm-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.comm-card p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.comm-author { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; margin-bottom: 1.75rem; background: var(--bg-soft); border-radius: 14px; min-width: 0; }
.comm-author > div { min-width: 0; }
.comm-text { font-size: 1.05rem; line-height: 1.8; max-width: 72ch; }
.comm-side { position: sticky; top: 110px; }
@media (max-width: 991.98px) { .comm-side { position: static; } }
@media (max-width: 767.98px) {
  .comm-lead { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.25rem; }
  .comm-lead-photo { max-width: 150px; }
  .comm-lead-body .btn { width: 100%; }
  .comm-text { font-size: 1rem; }
}
.doc-list .req, .apply-form p .req { color: #c0392b; }

/* ---- Fees explorer (How to Apply, Apply Online) ---- */
.fx-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .4rem; background: #eef1f6; padding: .35rem; border-radius: 12px; margin-bottom: .9rem; }
.fx-tab { border: 0; background: transparent; border-radius: 9px; padding: .5rem .25rem .4rem; font-weight: 700; color: var(--brand); font-size: 1rem; line-height: 1.1; transition: background .15s, color .15s; }
.fx-tab small { display: block; font-size: .66rem; font-weight: 500; color: #6b7280; margin-top: .15rem; letter-spacing: .02em; }
.fx-tab:hover { background: rgba(255,255,255,.7); }
.fx-tab.active { background: var(--brand); color: #fff; box-shadow: 0 6px 14px rgba(7,26,58,.22); }
.fx-tab.active small { color: rgba(255,255,255,.75); }
.fx-tab:focus-visible, .fx-switch button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.fx-switch { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem; }
.fx-switch button { display: flex; align-items: center; gap: .45rem; border: 2px solid #dfe3ea; background: #fff; border-radius: 12px; padding: .6rem .8rem; font-weight: 600; color: #1d2533; text-align: left; }
.fx-switch button span { margin-left: auto; font-size: .82rem; font-weight: 600; color: #6b7280; white-space: nowrap; }
.fx-switch button i { color: var(--accent); }
.fx-switch button.active { border-color: var(--brand); background: #f3f6fb; box-shadow: inset 0 0 0 1px var(--brand); }
.fx-switch button.active span { color: var(--brand); }
.fx-sum { background: linear-gradient(135deg, var(--brand), #12408a); color: #fff; border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: .9rem; }
.fx-sum-label { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.fx-sum strong { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 3.4vw, 2.1rem); color: var(--accent); line-height: 1.15; margin: .15rem 0; }
.fx-sum-sub { display: block; font-size: .86rem; color: rgba(255,255,255,.85); }
.fx-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: .95rem; }
.fx-table th, .fx-table td { padding: .55rem .2rem; border-bottom: 1px solid #e8ebf0; }
.fx-table th { font-weight: 500; color: #3b4456; }
.fx-table td { text-align: right; font-weight: 700; color: var(--brand); white-space: nowrap; padding-left: 1rem; }
.fx-table tfoot th, .fx-table tfoot td { border-bottom: 0; border-top: 2px solid var(--brand); font-weight: 800; color: var(--brand); padding-top: .7rem; }
.fx-note { font-size: .82rem; color: #6b7280; margin: .8rem 0 0; }
.fx-matrix { width: 100%; border-collapse: collapse; font-size: .93rem; }
.fx-matrix thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; font-weight: 600; padding: 0 .4rem .5rem; border-bottom: 2px solid #e8ebf0; text-align: right; }
.fx-matrix thead th:first-child { text-align: left; }
.fx-matrix tbody th { padding: .6rem .4rem; font-weight: 700; color: var(--brand); }
.fx-matrix tbody th small { display: block; font-weight: 400; font-size: .74rem; color: #6b7280; }
.fx-matrix td { padding: .6rem .4rem; text-align: right; font-weight: 600; white-space: nowrap; }
.fx-matrix tbody tr + tr > * { border-top: 1px solid #eef0f4; }
.fx-matrix-go { display: inline-block; font-size: .8rem; font-weight: 700; padding: .25rem .6rem; border-radius: 6px; background: #f3f6fb; color: var(--brand); text-decoration: none; }
.fx-matrix-go:hover { background: var(--brand); color: #fff; }
.ha-dl { display: flex; align-items: center; gap: .9rem; background: #fff; border-radius: 14px; padding: 1rem 1.2rem; margin-top: 1rem; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.ha-dl > i:first-child { font-size: 1.5rem; color: var(--accent); }
.ha-dl strong { display: block; color: var(--brand); } .ha-dl small { color: #6b7280; }
.ha-uniform { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: .8rem; }
.ha-uniform > div { background: #f6f8fb; border-radius: 12px; padding: .85rem 1rem; }
.ha-uniform strong { display: block; color: var(--brand); font-size: .92rem; margin-bottom: .25rem; }
.ha-uniform p { margin: 0; font-size: .9rem; color: #4a5568; }
.ha-items { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.ha-items li { background: #fff7e0; border: 1px solid #f1dfa6; color: #5c4a12; border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; }
/* Apply Online: fees outlook beside the form */
.apply-fees { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 1.25rem; position: sticky; top: 110px; }
.apply-fees-head p { font-size: .85rem; color: #6b7280; margin: .3rem 0 .9rem; }
.fx-apply .fx-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fx-apply .fx-table { font-size: .88rem; }
.apply-fees-more { display: inline-block; font-size: .85rem; font-weight: 600; margin-top: .6rem; }
@media (max-width: 991.98px) {
  .apply-fees { position: static; }
  .fx-apply .fx-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .fx-tabs, .fx-apply .fx-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fx-switch button { flex-wrap: wrap; } .fx-switch button span { margin-left: 0; width: 100%; }
  .ha-uniform { grid-template-columns: 1fr; }
}
.fx-switch { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fx-apply .fx-switch button { flex-wrap: wrap; row-gap: .1rem; padding: .55rem .7rem; }
.fx-apply .fx-switch button span { margin-left: 0; width: 100%; padding-left: 1.4rem; }
.fx-more > summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--brand); padding: .2rem 0 .6rem; list-style: none; display: flex; align-items: center; gap: .4rem; }
.fx-more > summary::-webkit-details-marker { display: none; }
.fx-more > summary::after { content: "\F282"; font-family: bootstrap-icons; font-size: .8rem; transition: transform .2s; }
.fx-more[open] > summary::after { transform: rotate(180deg); }
@media (min-width: 992px) { .fx-more > summary { display: none; } }
