/* School360 website — School360 Knowledge Academy design.
   School colour arrives as --primary* variables (App\Libraries\Theme). Mobile-first. */

:root {
  --primary: #2F45D8; --primary-hover: #2638B1; --primary-ink: #2F45D8; --primary-soft: #EEF1FF;
  --primary-tint: #D5DAF7; --primary-wash: #F6F7FE; --primary-deep: #141E5E; --primary-glow: rgba(47,69,216,.25); --on-primary: #fff;
  --ink: #0F172A; --ink-2: #334155; --muted: #64748B; --line: #E2E8F0; --line-2: #EEF2F7; --bg: #F7F9FC;
  --dark: #0B1530; --dark-2: #131F42; --dark-line: #24315A; --dark-muted: #A9B4CE;
  --radius: 16px; --radius-sm: 10px; --shadow-sm: 0 1px 3px rgba(15,23,42,.06); --shadow: 0 14px 34px rgba(15,23,42,.10);
  --font: "Inter", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-bn: "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.6; }
body.lang-bn { font-family: var(--font-bn); font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--primary-ink); text-decoration: none; }
a:hover { color: var(--primary-hover); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary-glow); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 640px) { .wrap { padding-left: 24px; padding-right: 24px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }
.center { text-align: center; }
.accent { color: var(--primary-ink); }
.accent-light { color: #93C5FD; }
.empty { color: var(--muted); padding: 32px 0; text-align: center; }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline-flex; } }

/* ---------- buttons, badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; text-align: center; line-height: 1.3; }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 16px var(--primary-glow); }
.btn--primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn--ghost { background: #fff; border-color: #CBD5E1; color: var(--ink); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary-ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--outline-light { border-color: #334155; color: #fff; }
.btn--outline-light:hover { border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.round-btn { width: 42px; height: 42px; border-radius: 999px; border: 1px solid #CBD5E1; background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.round-btn:hover { border-color: var(--primary); color: var(--primary-ink); }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-soft); color: var(--primary-ink); padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lang-bn .badge { text-transform: none; letter-spacing: 0; font-size: 13px; }
.badge--warm { background: #FFF4E5; color: #92400E; }
.badge--dark { background: rgba(255,255,255,.08); color: #C7D2FE; }
.eyebrow { display: block; color: var(--primary-ink); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lang-bn .eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }
.eyebrow--alert { color: #FCA5A5; }
.chip { display: inline-block; background: var(--primary-soft); color: var(--primary-ink); padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pill { padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.pill--eiin { background: rgba(16,185,129,.16); color: #6EE7B7; }

/* ---------- top bar ---------- */
.topbar { background: var(--dark); color: #CBD5E1; font-size: 13px; }
.topbar a { color: #E2E8F0; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding-top: 7px; padding-bottom: 7px; }
.topbar__group { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.topbar__date { align-items: center; gap: 6px; }
.topbar__login { display: inline-flex; align-items: center; gap: 6px; color: #fff !important; border: 1px solid #334155; padding: 4px 12px; border-radius: 8px; font-weight: 600; }
.topbar__login:hover { border-color: #fff; }

/* ---------- header (single row) ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(10px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; flex: 0 1 auto; }
.brand:hover { color: var(--ink); }
.brand__logo { width: 44px; height: 44px; object-fit: contain; flex: none; }
.brand__name { font-weight: 800; font-size: 16px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 1100px) { .site-header .brand { max-width: 270px; } }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-switch { display: inline-flex; background: rgba(255,255,255,.08); border: 1px solid #334155; border-radius: 999px; padding: 2px; }
.lang-switch a { padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #CBD5E1 !important; }
.lang-switch a.is-active { background: #fff; color: var(--dark) !important; }
.topbar__contact { opacity: .9; }
.topbar__contact:hover { opacity: 1; }
.hide-md { display: none; }
@media (min-width: 900px) { .hide-md { display: inline-flex; } }
.btn--outline { border-color: var(--primary); color: var(--primary-ink); background: #fff; }
.btn--outline:hover { background: var(--primary); color: var(--on-primary); }
.header-cta { display: none; white-space: nowrap; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #CBD5E1; border-radius: var(--radius-sm); background: #fff; color: var(--ink); cursor: pointer; }

/* desktop nav — items that don't fit are moved into "More" by site.js */
.nav { display: none; }
@media (min-width: 1100px) {
  .nav { display: block; flex: 1 1 auto; min-width: 0; }
  .nav:not(.is-ready) { overflow: hidden; }
  .menu-toggle { display: none; }
}
.nav__list, .dropdown, .dropdown ul { list-style: none; margin: 0; padding: 0; }
.nav__list { display: flex; align-items: center; justify-content: flex-end; gap: 0; flex-wrap: nowrap; }
.nav__item { position: relative; flex: none; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 68px; padding: 0 12px; border: 0; background: none; color: var(--ink-2); font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.lang-bn .nav__link { font-size: 15.5px; }
.nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary); transform: scaleX(0); transition: transform .18s; }
.nav__link:hover, .nav__link.is-active, .has-sub.is-open > .nav__link, .has-sub:hover > .nav__link { color: var(--primary-ink); }
.nav__link:hover::after, .nav__link.is-active::after, .has-sub.is-open > .nav__link::after { transform: scaleX(1); }
.nav__link.is-label { cursor: default; }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; flex: none; }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 240px; max-width: 340px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: none; z-index: 50; }
.dropdown--right, .nav__item:nth-last-child(-n+3) > .dropdown { left: auto; right: 0; }
.has-sub.is-open > .dropdown { display: block; }
@media (hover: hover) { .has-sub:hover > .dropdown, .has-sub:focus-within > .dropdown { display: block; } }
.dropdown__item { position: relative; }
.dropdown__link { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; border: 0; background: none; color: var(--ink); font-size: 14px; text-align: left; cursor: pointer; line-height: 1.4; }
.lang-bn .dropdown__link { font-size: 15px; }
.dropdown__link:hover { background: var(--primary-soft); color: var(--primary-ink); }
.dropdown__link.is-label { color: var(--muted); cursor: default; }
.dropdown__link .caret { transform: rotate(-45deg); }
.dropdown--side { top: -8px; left: 100%; }
.dropdown__group + .dropdown__group, .dropdown__item + .dropdown__group { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.dropdown__heading { display: block; padding: 6px 12px 2px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.lang-bn .dropdown__heading { text-transform: none; font-size: 13px; }
/* a top-level item moved into "More" looks like a dropdown entry; its own submenu opens to the left */
.nav__more .nav__item { display: block; }
.nav__more .nav__item > .nav__link { display: flex; width: 100%; justify-content: space-between; height: auto; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; }
.nav__more .nav__item > .nav__link::after { display: none; }
.nav__more .nav__item > .nav__link:hover { background: var(--primary-soft); }
.nav__more .nav__item > .dropdown { top: -8px; left: auto; right: 100%; }
.nav__more .nav__item > .nav__link .caret { transform: rotate(135deg); }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.45); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(90vw, 380px); background: #fff; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(15,23,42,.2); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer__title { font-weight: 800; line-height: 1.3; }
.drawer__foot { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); }
.drawer__foot .btn { flex: 1; }
.mnav, .mnav ul { list-style: none; margin: 0; padding: 0; }
.mnav { flex: 1; overflow-y: auto; padding: 6px 8px; }
.mnav__link { display: flex; justify-content: space-between; align-items: center; padding: 13px 10px; border-radius: 10px; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
.mnav__link::-webkit-details-marker { display: none; }
summary.mnav__link::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
details[open] > summary.mnav__link { background: var(--primary-soft); color: var(--primary-ink); }
details[open] > summary.mnav__link::after { transform: rotate(-135deg); }
.mnav__sub { padding: 4px 0 8px 12px !important; }
.mnav__sublink { display: block; padding: 10px; border-radius: 8px; color: var(--ink-2); }
.mnav__sublink.is-group { font-weight: 700; color: var(--ink); }
.mnav__third { padding-left: 14px !important; border-left: 2px solid var(--line); margin-left: 10px !important; }
body.drawer-open { overflow: hidden; }

/* ---------- sections ---------- */
.section { padding: 56px 0; background: #fff; }
@media (min-width: 1024px) { .section { padding: 80px 0; } }
.section--tight { padding: 48px 0; }
.section--ivory { background: #FAF8F3; }
.section--slate { background: #F0F4F8; }
.section--sand { background: #FAF6EF; }
.section--lavender { background: #F5F3FA; }
.section--dark { background: var(--dark); color: #fff; }
.section--dark .h2 { color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.section-head__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.subtitle { margin: 8px 0 0; color: var(--muted); max-width: 600px; }
.section--dark .subtitle { color: var(--dark-muted); }
.h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.015em; }
.lang-bn .h2 { letter-spacing: 0; line-height: 1.35; }
.h3 { font-size: 20px; font-weight: 700; }
.lead { font-size: 17px; color: var(--ink-2); line-height: 1.75; }
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--people { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.more-row { margin-top: 24px; }

/* ---------- hero ---------- */
.hero { background: #fff; padding: 36px 0 32px; }
.hero__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .hero { padding: 56px 0 44px; } .hero__grid { grid-template-columns: 1fr 1.1fr; gap: 48px; } }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero__title { font-size: clamp(30px, 4vw, 48px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.lang-bn .hero__title { letter-spacing: 0; line-height: 1.3; }
.hero__alt { display: block; margin-top: 10px; font-size: .62em; color: var(--primary-ink); letter-spacing: 0; }
.hero__alt[lang="bn"] { font-family: var(--font-bn); }
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; width: 100%; max-width: 500px; }
.hero__stats div { display: flex; flex-direction: column; padding: 2px 14px; }
.hero__stats div:first-child { padding-left: 0; }
.hero__stats div + div { border-left: 1px solid var(--line); }
.hero__stats dd { margin: 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; }
.hero__stats dt { font-size: 13px; color: var(--muted); }

/* slider — banners are shown whole; the blurred copy fills the sides */
.slider { position: relative; }
.slider__viewport { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #DFE5EE; box-shadow: var(--shadow); }
.slider__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease; overflow: hidden; }
.slider__slide.is-active { opacity: 1; }
.slider__slide::before { content: ""; position: absolute; inset: -30px; background: var(--slide) center / cover no-repeat; filter: blur(22px) brightness(.9); transform: scale(1.1); }
.slider__slide img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.slider__slide figcaption { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); background: rgba(255,255,255,.95); border-radius: 12px; padding: 8px 14px; font-weight: 600; font-size: 14px; line-height: 1.4; }
.slider__slide figcaption .eyebrow { font-size: 10px; }
.slider__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(15,23,42,.15); z-index: 2; }
.slider__btn--prev { left: 12px; } .slider__btn--next { right: 12px; }
.slider__dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.slider__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #CBD5E1; cursor: pointer; transition: width .2s; }
.slider__dots button[aria-current="true"] { width: 28px; background: var(--primary); }

/* ticker */
.ticker { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker__inner { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.ticker__label { flex: none; background: var(--primary); color: var(--on-primary); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 8px; letter-spacing: .05em; }
.ticker__track { flex: 1; min-width: 0; overflow: hidden; font-family: var(--font-bn); }
.ticker__items { display: inline-flex; gap: 48px; white-space: nowrap; animation: ticker var(--ticker-duration, 40s) linear infinite; }
.ticker__items span::before { content: "•"; margin-right: 10px; color: var(--primary); }
.ticker__track:hover .ticker__items, .ticker__track:focus-within .ticker__items { animation-play-state: paused; }
.ticker__all { flex: none; font-weight: 600; font-size: 14px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* welcome */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.split__media { position: relative; border-radius: 22px; overflow: hidden; background: #DFE5EE; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.media-tag { position: absolute; top: 14px; left: 14px; background: var(--dark); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.split__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.split__text .lead { margin: 0; }

/* leadership — tabs + book-style card */
.tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; width: fit-content; max-width: 100%; margin: 0 auto 24px; }
.tabs__list button { border: 0; background: none; padding: 9px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; min-height: 40px; }
.tabs__list button[aria-selected="true"] { background: var(--primary); color: var(--on-primary); }
.leader { position: relative; max-width: 960px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 24px 60px rgba(15,23,42,.10); display: grid; overflow: hidden; }
.leader::before { content: ""; position: absolute; top: 0; left: 28px; width: 16px; height: 24px; background: var(--primary); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); z-index: 1; }
@media (min-width: 768px) { .leader { grid-template-columns: 300px 1fr; } }
.leader__person { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 36px 24px; background: #F8FAFF; text-align: center; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .leader__person { border-bottom: 0; border-right: 1px solid var(--line); box-shadow: inset -12px 0 20px -16px rgba(15,23,42,.18); } }
.leader__photo { width: 150px; height: 150px; border-radius: 999px; object-fit: cover; object-position: top; border: 4px solid var(--primary); background: #DFE5EE; display: flex; align-items: center; justify-content: center; color: var(--primary-ink); margin-bottom: 6px; }
.leader__name { font-size: 20px; font-weight: 800; }
.leader__role { color: var(--primary-ink); font-weight: 600; }
.leader__body { padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; justify-content: center; }
@media (min-width: 768px) { .leader__body { padding: 44px 40px; } }
.leader__body p { font-size: 17px; color: var(--ink-2); line-height: 1.8; margin: 0; }
.leader__quote { color: var(--primary); }

/* teachers */
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.hscroll::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .hscroll { grid-auto-columns: calc((100% - 42px) / 4); } }
@media (min-width: 1024px) { .hscroll { grid-auto-columns: calc((100% - 70px) / 6); } }
.hscroll > * { scroll-snap-align: start; }
.honored { margin: 16px 0 0; text-align: right; font-size: 14px; }
.person-card { position: relative; display: block; border-radius: 18px; overflow: hidden; background: #1B2748; aspect-ratio: 4 / 5; color: #fff; transition: transform .18s, box-shadow .18s; }
.person-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: #fff; }
.person-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person-card__initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 800; color: #A9B4CE; background: #1B2748; }
.person-card__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 14px 14px; background: linear-gradient(to top, rgba(11,21,48,.94), rgba(11,21,48,0)); display: flex; flex-direction: column; line-height: 1.35; }
.person-card__info strong { font-size: 14px; }
.person-card__info small { font-size: 12px; color: #CBD5E1; }

/* why choose us */
.grid--why { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--why { grid-template-columns: repeat(3, 1fr); } }
.why { position: relative; overflow: hidden; border-radius: 18px; padding: 26px; color: #fff; display: flex; flex-direction: column; gap: 12px; min-height: 190px; }
.why::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 130px; height: 130px; border-radius: 999px; border: 18px solid rgba(255,255,255,.05); }
.why h3 { font-size: 18px; } .why p { margin: 0; font-size: 14.5px; color: #D5DCEA; }
.why__icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; }
.why--navy { background: #13294B; } .why--green { background: #0F3D2E; } .why--indigo { background: #1B2347; }
.why--maroon { background: #4A1622; } .why--teal { background: #0E2A44; }

/* notice board (dark) */
.noticeboard { display: grid; gap: 18px; margin-bottom: 28px; padding: 18px; border: 1px solid var(--dark-line); border-radius: 22px; background: rgba(255,255,255,.03); }
@media (min-width: 900px) { .noticeboard { grid-template-columns: 1fr 1.1fr; padding: 22px; } }
.notice-feature { background: #fff; color: var(--ink); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; align-self: start; }
.notice-feature__meta { display: flex; justify-content: space-between; width: 100%; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.notice-feature h3 { font-family: var(--font-bn); font-size: 21px; line-height: 1.5; }
.notice-feature__note { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--muted); }
.notice-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.notice-row { background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 14px; display: flex; gap: 14px; align-items: center; }
.notice-row__title { flex: 1; min-width: 0; color: var(--ink); font-family: var(--font-bn); font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
a.notice-row__title:hover { color: var(--primary-ink); }
.notice-row__dl { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-ink); display: inline-flex; align-items: center; justify-content: center; }
.notice-row__dl:hover { background: var(--primary); color: var(--on-primary); }
.datebox { flex: none; width: 52px; height: 52px; border-radius: 10px; background: var(--dark); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.datebox b { font-size: 18px; } .datebox small { font-size: 11px; color: var(--dark-muted); }
.datebox--light { background: var(--primary-soft); color: var(--primary-ink); width: 60px; height: 60px; }
.datebox--light small { color: var(--muted); text-align: center; }

/* services — theme-colour cards */
.grid--services { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.service { position: relative; overflow: hidden; background: var(--primary); color: var(--on-primary); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 10px 24px var(--primary-glow); }
.service::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 999px; background: rgba(255,255,255,.08); }
.service h3 { font-size: 19px; font-weight: 700; }
.service__icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.16); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.service__icon img { width: 28px; height: 28px; object-fit: contain; filter: brightness(0) invert(1); }
.service__links { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.service__links a { display: flex; gap: 8px; padding: 5px 0; color: rgba(255,255,255,.92); font-size: 15px; line-height: 1.45; }
.service__links a::before { content: "▸"; opacity: .8; }
.service__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* gallery */
.gallery { display: flex; flex-direction: column; gap: 12px; max-width: 1000px; margin: 0 auto; }
.gallery__main { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #DFE5EE; box-shadow: var(--shadow); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 22px 18px; color: #fff; font-weight: 700; background: linear-gradient(to top, rgba(11,21,48,.85), rgba(11,21,48,0)); }
.gallery__main figcaption:empty { display: none; }
.gallery__thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumbs button { padding: 0; border: 3px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: #DFE5EE; scroll-snap-align: start; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--primary); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* important links */
.link-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.link-grid a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font-weight: 500; min-height: 62px; line-height: 1.35; }
.link-grid a:hover { border-color: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow-sm); }
.link-grid__icon { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-ink); display: inline-flex; align-items: center; justify-content: center; }

/* hotlines */
.hotline { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 16px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; color: #fff; }
.hotline:hover { color: #fff; border-color: #3B4B7A; }
.hotline span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.hotline small { color: var(--dark-muted); font-size: 13px; }
.hotline__no { padding: 6px 12px; border-radius: 10px; font-weight: 800; font-size: 18px; flex: none; }
.hotline__no--red { background: #DC2626; } .hotline__no--blue { background: #2F45D8; } .hotline__no--green { background: #047857; }

/* contact + map */
.contact-band { padding-bottom: 0; }
.contact-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); max-width: 980px; margin: 0 auto 48px; }
.contact-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 24px 18px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: #fff; }
.contact-card:hover { border-color: var(--primary); color: var(--ink); box-shadow: var(--shadow-sm); }
.contact-card small { color: var(--muted); font-size: 13px; }
.contact-card strong { font-weight: 600; overflow-wrap: anywhere; }
.contact-card__icon { width: 52px; height: 52px; border-radius: 999px; background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.map-band { height: 380px; background: var(--line-2); }
.map-band iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-band:not(:has(.map-band)) { padding-bottom: 32px; }

/* ---------- inner pages ---------- */
.page-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0; }
.page-hero__title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-top: 6px; }
.lang-bn .page-hero__title { line-height: 1.35; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.page-body { padding-top: 32px; padding-bottom: 64px; }
.prose-card, .message, .profile, .info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); }
.prose-card + .prose-card { margin-top: 16px; }
.prose-card__img { border-radius: 12px; margin-bottom: 20px; max-height: 460px; width: 100%; object-fit: cover; }
.prose { font-size: 17px; line-height: 1.8; color: var(--ink-2); overflow-wrap: anywhere; }
.prose img { height: auto; border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.video { position: relative; aspect-ratio: 16 / 9; margin-top: 20px; border-radius: 12px; overflow: hidden; background: #000; }
.video iframe, .map iframe { width: 100%; height: 100%; border: 0; }
.message { display: grid; gap: 28px; }
@media (min-width: 860px) { .message { grid-template-columns: 260px 1fr; } .message--plain { grid-template-columns: 1fr; } }
.message__person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.message__person img { width: 200px; height: 240px; object-fit: cover; border-radius: 16px; margin-bottom: 8px; }
.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.doc-row { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 14px; }
.doc-row__icon { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-ink); display: inline-flex; align-items: center; justify-content: center; }
.doc-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-row__text strong { font-weight: 600; overflow-wrap: anywhere; }
.doc-row__text time { font-size: 13px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); flex: 1 1 160px; }
.field--grow { flex: 2 1 240px; }
.field input, .field select { min-height: 44px; border: 1px solid #CBD5E1; border-radius: var(--radius-sm); padding: 8px 12px; background: #fff; color: var(--ink); font-size: 15px; }
.result-count { margin: 0 0 14px; font-size: 14px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.pager a { min-width: 44px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.pager a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.profile { display: grid; gap: 28px; }
@media (min-width: 760px) { .profile { grid-template-columns: 260px 1fr; } }
.profile__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #1B2748; }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.profile__body { display: flex; flex-direction: column; gap: 10px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 10px 0 14px; }
.facts div { background: var(--bg); border-radius: 12px; padding: 10px 14px; }
.facts dt { font-size: 13px; color: var(--muted); } .facts dd { margin: 0; font-weight: 600; }
.album + .album { margin-top: 40px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.photo-grid a { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #DFE5EE; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.photo-grid a:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); }
.lightbox::backdrop { background: rgba(11,21,48,.88); }
.lightbox img { max-height: 82vh; border-radius: 12px; margin: 0 auto; }
.lightbox p { color: #fff; text-align: center; margin: 10px 0 0; }
.lightbox__close { position: fixed; top: 14px; right: 14px; }
.contact { display: flex; flex-direction: column; gap: 16px; }
.contact__cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.info-card p { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.lang-bn .label { text-transform: none; font-size: 13px; }
.map { aspect-ratio: 16 / 7; min-height: 280px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.grid--members { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.member__photo { width: 120px; height: 140px; border-radius: 14px; object-fit: cover; object-position: top; background: #DFE5EE; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; color: var(--primary-ink); }
.member__name { font-weight: 700; }
.member__role { color: var(--primary-ink); font-weight: 600; font-size: 14px; }
.video-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.video-card .video { margin: 0; border-radius: 0; }
.video-card figcaption { padding: 12px 14px; font-weight: 600; }

/* ---------- footer (light, 4 columns) ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); font-size: 15px; }
.footer-grid { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); align-items: start; }
.footer-col p { margin: 0 0 10px; }
.footer-col--brand { display: flex; flex-direction: column; gap: 12px; }
.footer-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--primary-ink); }
.social { display: flex; gap: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 20px; font-size: 13px; color: var(--muted); }

/* status pages */
.status-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.status-card { max-width: 480px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.status-card h1 { font-size: 22px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ticker__items { animation: none !important; white-space: normal; flex-wrap: wrap; row-gap: 4px; }
}
@media print {
  .topbar, .site-header, .drawer, .site-footer, .ticker, .slider__btn { display: none !important; }
  body { background: #fff; }
}

/* ---------- page loader (school logo inside a spinning ring) ---------- */
.preloader { display: none; }
.js .preloader { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.72); backdrop-filter: blur(3px); transition: opacity .3s ease, visibility .3s; }
.js .preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__ring { position: relative; width: 132px; height: 132px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: #fff; box-shadow: 0 0 0 10px rgba(255,255,255,.6), 0 18px 50px var(--primary-glow); }
.preloader__ring::before { content: ""; position: absolute; inset: -6px; border-radius: 999px; background: conic-gradient(from 0deg, var(--primary), var(--primary-tint), #34D399, var(--primary)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); animation: preloader-spin 1.1s linear infinite; }
.preloader__ring img { width: 84px; height: 84px; object-fit: contain; animation: preloader-pulse 1.6s ease-in-out infinite; }
@keyframes preloader-spin { to { transform: rotate(360deg); } }
@keyframes preloader-pulse { 50% { transform: scale(.92); opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .preloader__ring::before, .preloader__ring img { animation: none; } }
@media print { .preloader { display: none !important; } }

/* ---------- decorative background in the school colour (leadership section) ---------- */
.section--leaders { position: relative; overflow: hidden; isolation: isolate;
  --tone: color-mix(in srgb, var(--primary) 16%, transparent);
  --tone-soft: color-mix(in srgb, var(--primary) 7%, transparent);
  background:
    radial-gradient(circle, var(--tone) 1.2px, transparent 1.6px) 0 0 / 26px 26px,
    radial-gradient(60% 50% at 85% 10%, var(--tone-soft), transparent 70%),
    linear-gradient(180deg, var(--primary-wash), #fff 85%);
}
/* concentric rings on the left, fading out */
.section--leaders::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; left: -380px; top: 40px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 96px, var(--tone) 96px 98px);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%); }
/* a soft glow on the right */
.section--leaders::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -200px; bottom: -160px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%); }
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
  .section--leaders { --tone: var(--primary-tint); --tone-soft: var(--primary-soft); }
}
.badge--outline { background: #fff; border: 1px solid var(--primary-tint); box-shadow: 0 4px 14px var(--primary-glow); padding: 7px 16px; }
.section--leaders .tabs__list { padding: 6px; border-color: var(--primary-tint); box-shadow: 0 8px 24px var(--primary-glow); }
.section--leaders .tabs__list button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; min-height: 46px; font-size: 15px; }
.section--leaders .tabs__list button[aria-selected="true"] { box-shadow: 0 6px 16px var(--primary-glow); }
@media (max-width: 767px) { .section--leaders::before { width: 560px; height: 560px; left: -300px; } }

/* ---------- dropdown: long labels wrap, each entry clearly separated ---------- */
.dropdown { width: max-content; min-width: 230px; max-width: 300px; padding: 6px; }
.dropdown > li + li { border-top: 1px solid var(--line-2); }
.dropdown__link,
.nav__more .nav__item > .nav__link { position: relative; white-space: normal; text-align: left; line-height: 1.45; padding: 10px 12px 10px 16px; border-radius: 8px; overflow-wrap: anywhere; }
.dropdown__link::before,
.nav__more .nav__item > .nav__link::before { content: ""; position: absolute; left: 4px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--primary-tint); transition: background .15s, height .15s, margin .15s; }
.dropdown__link:hover::before,
.nav__more .nav__item > .nav__link:hover::before { height: 60%; margin-top: 0; top: 20%; border-radius: 3px; background: var(--primary); }
.dropdown__link.is-label::before { display: none; }
.dropdown__link .caret, .nav__more .nav__link .caret { margin-left: 8px; }
.dropdown__group > ul > li + li { border-top: 1px solid var(--line-2); }

/* ---------- brand: school name on one line ---------- */
.brand__name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: clamp(15px, 1.25vw, 18px); -webkit-line-clamp: unset; }
@media (min-width: 1100px) { .site-header .brand { max-width: 40%; flex: 0 0 auto; } }
@media (max-width: 1099px) { .site-header .brand { flex: 1 1 auto; } }


/* ---------- hero (School360 design) ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 28px 0 40px; background: linear-gradient(180deg, #fff, var(--primary-wash)); }
.hero__waves { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; width: 100%; height: 200px; fill: none; stroke: color-mix(in srgb, var(--primary) 12%, transparent); stroke-width: 1.5; }
.hero__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .hero { padding: 64px 0 72px; } .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; } }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero__title { font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.lang-bn .hero__title { letter-spacing: 0; line-height: 1.3; }
.hero__alt { display: block; margin-top: 10px; font-size: .64em; font-weight: 700; color: var(--primary-ink); letter-spacing: -.01em; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 14px 0; margin: 0; }
.hero__stats div, .hero__stats div:first-child { display: flex; flex-direction: column; padding: 2px 28px 2px 16px; border-left: 2px solid var(--line); }
.hero__stats div + div { border-left: 2px solid var(--line); }
.hero__stats dd { margin: 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; line-height: 1.2; }
.hero__stats dt { font-size: 14px; color: var(--muted); }
.btn--lg { min-height: 56px; padding: 14px 28px; border-radius: 14px; font-size: 16px; }
.hero__actions .btn--primary { box-shadow: 0 12px 28px var(--primary-glow); }
@media (max-width: 639px) {
  .hero__text { order: 2; }
  .hero__stats div { padding-right: 18px; }
  .hero__actions { width: 100%; } .hero__actions .btn { flex: 1; padding-left: 12px; padding-right: 12px; }
}

/* peek carousel: the active card in the middle, neighbours peeking in at the sides */
.peek { position: relative; outline: none; }
.peek__stage { position: relative; aspect-ratio: 16 / 10.5; -webkit-mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.peek__slide { position: absolute; top: 0; bottom: 0; left: 15%; width: 70%; margin: 0; border-radius: 22px; overflow: hidden; background: var(--line-2); box-shadow: 0 18px 40px rgba(15,23,42,.14); transition: transform .7s cubic-bezier(.22,.7,.2,1), opacity .7s, filter .7s; cursor: pointer; }
.peek__slide img { width: 100%; height: 100%; object-fit: cover; }
.peek__slide[data-pos="0"] { transform: none; z-index: 3; cursor: default; }
.peek__slide[data-pos="-1"] { transform: translateX(-104%) scale(.9); z-index: 2; filter: saturate(.7) brightness(.95); }
.peek__slide[data-pos="1"] { transform: translateX(104%) scale(.9); z-index: 2; filter: saturate(.7) brightness(.95); }
.peek__slide[data-pos="-2"] { transform: translateX(-200%) scale(.8); opacity: 0; }
.peek__slide[data-pos="2"] { transform: translateX(200%) scale(.8); opacity: 0; }
.peek__cap { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); background: rgba(255,255,255,.96); border-radius: 14px; padding: 10px 16px; box-shadow: 0 8px 20px rgba(15,23,42,.15); display: flex; flex-direction: column; gap: 2px; line-height: 1.35; opacity: 0; transform: translateY(8px); transition: opacity .4s .3s, transform .4s .3s; }
.peek__slide[data-pos="0"] .peek__cap { opacity: 1; transform: none; }
.peek__cap span { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-ink); font-size: 13px; font-weight: 700; }
.peek__cap strong { font-size: 15px; }
.peek__btn { position: absolute; top: calc(50% - 22px); z-index: 4; width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255,255,255,.9); backdrop-filter: blur(6px); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 16px rgba(15,23,42,.18); transition: transform .15s, background .15s; }
.peek__btn:hover { background: #fff; transform: scale(1.07); }
.peek__btn--prev { left: calc(15% - 22px); } .peek__btn--next { right: calc(15% - 22px); }
.peek__dots { display: flex; justify-content: center; gap: 8px; width: fit-content; margin: 16px auto 0; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 4px 14px rgba(15,23,42,.06); }
.peek__dots button { position: relative; overflow: hidden; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #CBD5E1; cursor: pointer; transition: width .25s; }
.peek__dots button[aria-current="true"] { width: 30px; background: var(--primary-tint); }
.peek__dots button[aria-current="true"]::after { content: ""; position: absolute; inset: 0; background: var(--primary); transform-origin: left; animation: dot-fill 6s linear forwards; }
.peek:hover .peek__dots button::after, .peek:focus-within .peek__dots button::after { animation-play-state: paused; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.peek:focus-visible .peek__slide[data-pos="0"] { outline: 3px solid var(--primary-glow); outline-offset: 3px; }
@media (max-width: 639px) {
  .peek__stage { aspect-ratio: 16 / 11; }
  .peek__slide { left: 9%; width: 82%; border-radius: 16px; }
  .peek__slide[data-pos="-1"] { transform: translateX(-102%) scale(.9); }
  .peek__slide[data-pos="1"] { transform: translateX(102%) scale(.9); }
  .peek__btn { width: 36px; height: 36px; top: calc(50% - 18px); }
  .peek__btn--prev { left: calc(9% - 14px); } .peek__btn--next { right: calc(9% - 14px); }
  .peek__cap { left: 10px; bottom: 10px; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) { .peek__slide, .peek__cap { transition: none; } .peek__dots button::after { animation: none; transform: none; } }

/* ---------- peek carousel v2: wider cards (≈16:10), balanced neighbours, softer depth ---------- */
@media (min-width: 1024px) { .hero__grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 32px; } }
.peek__stage { aspect-ratio: 1.74; -webkit-mask: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.peek__slide { top: 6%; bottom: 6%; left: 12%; width: 76%; border-radius: 24px; box-shadow: 0 24px 50px rgba(15,23,42,.18); }
.peek__slide[data-pos="-1"] { transform: translateX(-96%) scale(.86); filter: saturate(.8) brightness(.92); }
.peek__slide[data-pos="1"]  { transform: translateX(96%) scale(.86);  filter: saturate(.8) brightness(.92); }
.peek__slide[data-pos="-2"] { transform: translateX(-180%) scale(.75); opacity: 0; }
.peek__slide[data-pos="2"]  { transform: translateX(180%) scale(.75);  opacity: 0; }
.peek__slide[data-pos="0"] { box-shadow: 0 28px 60px rgba(15,23,42,.22), 0 0 0 1px rgba(255,255,255,.6) inset; }
.peek__slide img { transition: transform 6s ease-out; }
.peek__slide[data-pos="0"] img { transform: scale(1.04); }                       /* slow zoom on the active card */
.peek__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,.18), transparent 40%); pointer-events: none; }
.peek__btn--prev { left: calc(12% - 22px); } .peek__btn--next { right: calc(12% - 22px); }
.peek__dots { margin-top: 10px; }
@media (max-width: 639px) {
  .peek__stage { aspect-ratio: 1.6; }
  .peek__slide { left: 8%; width: 84%; top: 4%; bottom: 4%; border-radius: 18px; }
  .peek__slide[data-pos="-1"] { transform: translateX(-98%) scale(.88); }
  .peek__slide[data-pos="1"]  { transform: translateX(98%) scale(.88); }
  .peek__btn--prev { left: calc(8% - 14px); } .peek__btn--next { right: calc(8% - 14px); }
}
@media (prefers-reduced-motion: reduce) { .peek__slide img { transition: none; } .peek__slide[data-pos="0"] img { transform: none; } }

/* ---------- notice strip (floating card) ---------- */
.news-strip { position: relative; z-index: 2; margin-top: -8px; margin-bottom: 8px; }
.news { display: flex; align-items: stretch; background: #fff; border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 12px 30px rgba(15,23,42,.08); overflow: hidden; min-height: 60px; }
.news__label { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 16px; border-radius: 16px; margin: 4px; }
.news__pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
.news__pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #34D399; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.news__track { flex: 1; min-width: 0; display: flex; align-items: center; font-size: 16px; -webkit-mask: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.news__items { gap: 56px; padding-left: 20px; }
.news__items span::before { content: "★"; color: var(--primary); margin-right: 12px; font-size: 13px; }
.news__all { flex: none; display: inline-flex; align-items: center; padding: 0 18px; font-weight: 600; font-size: 14px; border-left: 1px solid var(--line-2); }
@media (max-width: 639px) { .news__label { padding: 0 14px; font-size: 14px; gap: 6px; } .news__label svg { display: none; } .news { min-height: 50px; border-radius: 14px; } }
@media (prefers-reduced-motion: reduce) { .news__pulse::after { animation: none; } }

/* ---------- welcome ---------- */
.welcome-sec { background: radial-gradient(70% 60% at 85% 40%, #FDF3E7, transparent 70%), radial-gradient(60% 60% at 10% 30%, var(--primary-wash), transparent 70%), #FBFAF6; }
.welcome { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .welcome { grid-template-columns: 1.05fr 1fr; gap: 72px; } }
.welcome__media { position: relative; padding: 0 0 18px 18px; }
.welcome__media::before { content: ""; position: absolute; left: 0; bottom: 0; width: calc(100% - 26px); height: calc(100% - 26px); border: 2px dashed color-mix(in srgb, var(--primary) 35%, #34D399); border-radius: 28px; }
.welcome__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: var(--line-2); box-shadow: 0 24px 50px rgba(15,23,42,.16); border: 1px solid rgba(255,255,255,.8); }
.welcome__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.welcome__frame:hover img { transform: scale(1.03); }
.welcome__noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--primary-tint); }
.welcome__eiin { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(15,23,42,.78); backdrop-filter: blur(6px); color: #fff; font-size: 14px; font-weight: 700; }
.welcome__eiin svg { color: #34D399; }
.welcome__text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.welcome__text .h2 { font-size: clamp(28px, 3.4vw, 44px); }
.welcome__quote { margin: 0; color: var(--primary-ink); font-style: italic; font-weight: 600; font-size: 18px; }
.welcome__text .lead { margin: 0; }
.welcome__contact { color: var(--primary-ink); }
.badge--warmline svg { color: #F59E0B; }
@media (max-width: 639px) { .welcome__text .btn-row { width: 100%; } .welcome__text .btn-row .btn { flex: 1; padding-left: 12px; padding-right: 12px; } }

/* ---------- scroll progress (top) ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #10B981, var(--primary) 55%, #F59E0B); box-shadow: 0 0 10px rgba(16,185,129,.4); }
#main:focus { outline: none; }

/* ---------- back to top (with progress ring) ---------- */
.to-top { position: fixed; right: 20px; bottom: 22px; z-index: 90; width: 52px; height: 52px; border-radius: 999px; background: #fff; color: var(--primary-ink); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(15,23,42,.18); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background .15s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary); color: var(--on-primary); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 3; }
.to-top__ring circle:first-child { stroke: var(--primary-tint); }
.to-top__ring circle:last-child { stroke: var(--primary); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.to-top:hover .to-top__ring circle:last-child { stroke: #fff; }
@media (max-width: 639px) { .to-top { right: 14px; bottom: 16px; width: 46px; height: 46px; } }
@media print { .scroll-progress, .to-top { display: none !important; } }

/* ---------- notice board (framed board with pinned notice) ---------- */
.nb-sec { position: relative; color: #fff; background:
  radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--primary) 30%, transparent), transparent 70%),
  linear-gradient(160deg, #0B1E2D 0%, #0E3442 55%, #071621 100%); }
.nb-sec::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 34px 34px, linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 34px 34px; pointer-events: none; }
.nb-sec .wrap { position: relative; }
.nb-sec .h2 { color: #fff; }
.nb-sec .subtitle { color: rgba(255,255,255,.75); }
.nb-sec .accent-light { color: #5EEAD4; background: linear-gradient(90deg, #67E8F9, #5EEAD4); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.badge--glass { background: rgba(255,255,255,.08); color: #A5F3FC; border: 1px solid rgba(165,243,252,.25); padding: 7px 18px; }

.nb { position: relative; margin: 8px auto 32px; padding: 18px; border-radius: 30px; background: linear-gradient(180deg, #123E4C, #0B2B36); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 70px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08); }
@media (min-width: 900px) { .nb { padding: 26px; } }
.nb__screw { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #F1F5F9, #94A3B8 70%); box-shadow: 0 1px 2px rgba(0,0,0,.5); }
.nb__screw--tl { top: 12px; left: 12px; } .nb__screw--tr { top: 12px; right: 12px; } .nb__screw--bl { bottom: 12px; left: 12px; } .nb__screw--br { bottom: 12px; right: 12px; }
.nb__inner { display: grid; gap: 18px; padding: 20px 14px; border-radius: 22px; background: rgba(4,18,26,.55); box-shadow: inset 0 2px 12px rgba(0,0,0,.4); }
@media (min-width: 900px) { .nb__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px; padding: 26px 22px; } }

.nb-feature { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 30px 26px 24px; border-radius: 20px; background: linear-gradient(180deg, #fff, #F1F5F9); color: var(--ink); box-shadow: 0 16px 34px rgba(0,0,0,.25); border-top: 4px solid transparent; background-clip: padding-box; }
.nb-feature::before { content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 4px; border-radius: 20px 20px 0 0; background: linear-gradient(90deg, #0EA5E9, var(--primary), #22D3EE); }
.nb-feature__pin { position: absolute; top: -14px; left: 50%; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FCA5A5, #DC2626 55%, #7F1D1D); box-shadow: 0 6px 10px rgba(0,0,0,.35); }
.nb-feature__pin::after { content: ""; position: absolute; left: 50%; top: 22px; width: 2px; height: 8px; margin-left: -1px; background: #64748B; border-radius: 2px; }
.nb-feature__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.nb-feature__title { font-family: var(--font-bn); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.45; font-weight: 700; }
.nb-feature__desc { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.nb-feature__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.nb-feature__actions { display: inline-flex; align-items: center; gap: 10px; }
.nb-iconbtn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; }
.nb-iconbtn:hover { border-color: var(--primary); color: var(--primary-ink); }
.nb-more { min-height: 44px; border-radius: 12px; padding-left: 22px; padding-right: 22px; }
.nb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-ink); font-size: 13.5px; font-weight: 600; border: 1px solid var(--primary-tint); }
.nb-chip--plain { background: #fff; color: var(--ink-2); border-color: var(--line); font-weight: 500; }
.nb-chip--file { background: #E0F2FE; color: #0369A1; border-color: #BAE6FD; }
.nb-chip--pdf { padding: 2px 8px; font-size: 12px; border-radius: 6px; background: #E0F2FE; color: #0369A1; border-color: #BAE6FD; }

.nb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.nb-item { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(180deg, #fff, #F1F5F9); color: var(--ink); box-shadow: 0 10px 24px rgba(0,0,0,.2); transition: transform .18s, box-shadow .18s; }
.nb-item:hover { transform: translateX(4px); box-shadow: 0 14px 30px rgba(0,0,0,.28); color: var(--ink); }
.nb-date { flex: none; width: 66px; height: 66px; border-radius: 14px; background: linear-gradient(160deg, #123E4C, #071E28); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.nb-date b { font-size: 22px; } .nb-date small { font-size: 12px; color: #5EEAD4; font-weight: 600; margin-top: 2px; }
.nb-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.nb-item__title { font-family: var(--font-bn); font-weight: 600; font-size: 16.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nb-item__go { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: background .15s, color .15s; }
.nb-item:hover .nb-item__go { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.nb-all { color: #fff; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.04); min-height: 52px; padding: 12px 30px; border-radius: 14px; }
.nb-all:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }
@media (max-width: 639px) {
  .nb { padding: 12px; border-radius: 22px; } .nb__screw { display: none; }
  .nb__inner { padding: 14px 10px; border-radius: 16px; }
  .nb-feature { padding: 26px 18px 18px; }
  .nb-item { padding: 12px; gap: 12px; } .nb-date { width: 56px; height: 56px; } .nb-item__go { display: none; }
}

/* ---------- wider layout: content uses most of the screen, like the School360 design ---------- */
.wrap { max-width: 2200px; padding-left: clamp(16px, 4vw, 100px); padding-right: clamp(16px, 4vw, 100px); }
.prose, .message .prose { max-width: 80ch; }
.leader, .msg-slider { max-width: 1100px; }
.gallery { max-width: 1200px; }
.contact-cards { max-width: 1200px; }
@media (min-width: 1600px) {
  .grid--services { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .hscroll { grid-auto-columns: calc((100% - 98px) / 8); }
}

/* ---------- why choose us: gradient cards with white icon and line art ---------- */
.grid--why { gap: 24px; }
.why { position: relative; overflow: hidden; isolation: isolate; min-height: 300px; padding: 34px 32px; border-radius: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; box-shadow: 0 18px 40px rgba(15,23,42,.18); border: 1px solid rgba(255,255,255,.06); transition: transform .25s, box-shadow .25s; }
.why:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(15,23,42,.26); }
.why::after { display: none; }
.why::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.65) 100%); }
.why--navy   { background: linear-gradient(140deg, #0C3B6E, #071A33 70%); }
.why--green  { background: linear-gradient(140deg, #14532D, #052014 70%); }
.why--indigo { background: linear-gradient(140deg, #3B1263, #170826 70%); }
.why--teal   { background: linear-gradient(140deg, #0E4A5C, #04212A 70%); }
.why--maroon { background: linear-gradient(140deg, #5B1328, #24060F 70%); }
.why__art { position: absolute; z-index: -1; right: 6%; top: 8%; color: rgba(255,255,255,.07); transform: rotate(-6deg); transition: transform .4s; }
.why:hover .why__art { transform: rotate(0) scale(1.05); }
.why__art svg { stroke-width: 1; }
.why__icon { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.why--navy .why__icon { color: #1D4ED8; } .why--green .why__icon { color: #15803D; } .why--indigo .why__icon { color: #7E22CE; }
.why--teal .why__icon { color: #0E7490; } .why--maroon .why__icon { color: #BE123C; }
.why__text h3 { font-size: clamp(20px, 1.6vw, 24px); font-weight: 800; margin-bottom: 10px; color: #fff; }
.why__text p { margin: 0; font-size: 15.5px; line-height: 1.7; color: rgba(255,255,255,.85); }
@media (max-width: 639px) { .why { min-height: 240px; padding: 26px 22px; gap: 28px; } .why__art svg { width: 160px; height: 160px; } }

/* ---------- language switch: white pill "EN | বাং" ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; box-shadow: 0 2px 8px rgba(15,23,42,.06); }
.lang-switch a, .topbar .lang-switch a { padding: 0; border-radius: 0; background: none !important; font-size: 14px; font-weight: 700; color: #64748B !important; line-height: 1.4; }
.lang-switch a:hover { color: var(--primary-ink) !important; }
.lang-switch a.is-active { color: var(--primary-ink) !important; background: none; box-shadow: none; }
.lang-switch a[lang="bn"] { font-family: var(--font-bn); font-size: 15px; }
.lang-switch__sep { color: #CBD5E1; font-weight: 400; }
.topbar .lang-switch { padding: 3px 14px; box-shadow: none; border-color: transparent; }

/* ---------- leadership: open-book card ---------- */
.section--leaders::after { width: 640px; height: 640px; right: -260px; bottom: -220px; background: repeating-radial-gradient(circle, transparent 0 86px, var(--tone) 86px 88px); -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%); }
.leader.book { max-width: 1120px; display: grid; grid-template-columns: 1fr; padding: 12px; border-radius: 30px; border: 0; overflow: visible;
  background: linear-gradient(160deg, var(--primary), var(--primary-deep, #141E5E)); box-shadow: 0 30px 70px var(--primary-glow), 0 10px 24px rgba(15,23,42,.18); }
.leader.book::before { display: none; }
@media (min-width: 860px) { .leader.book { grid-template-columns: 1fr 44px 1fr; padding: 16px; } }
.book__page { position: relative; background: #FBFAF6; display: flex; flex-direction: column; min-height: 420px; }
.book__page--left { align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 70px 28px 60px; border-radius: 20px 20px 0 0; }
.book__page--right { justify-content: center; gap: 22px; padding: 44px 34px 70px; border-radius: 0 0 20px 20px; }
@media (min-width: 860px) {
  .book__page--left { border-radius: 20px 4px 4px 20px; box-shadow: inset -18px 0 26px -18px rgba(15,23,42,.25); }
  .book__page--right { border-radius: 4px 20px 20px 4px; box-shadow: inset 18px 0 26px -18px rgba(15,23,42,.25); padding: 56px 52px 80px; }
}
.book__spine { display: none; }
@media (min-width: 860px) { .book__spine { display: block; background: linear-gradient(90deg, #D9D6CF, #9CA3AF 45%, #6B7280 50%, #9CA3AF 55%, #D9D6CF); box-shadow: inset 0 0 8px rgba(0,0,0,.25); } }
.book__ribbon { position: absolute; top: 0; left: 36px; width: 46px; height: 64px; padding-top: 10px; display: flex; justify-content: center; align-items: flex-start; background: var(--primary); color: var(--on-primary); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); box-shadow: 0 6px 12px var(--primary-glow); }
.book__photo { position: relative; width: 200px; height: 200px; border-radius: 50%; padding: 6px; background: #fff; border: 3px solid var(--primary); box-shadow: 0 0 0 14px color-mix(in srgb, var(--primary) 7%, transparent), 0 16px 34px rgba(15,23,42,.18); margin-bottom: 18px; }
.book__photo img, .book__nophoto { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: top; }
.book__nophoto { display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary-ink); }
.book__badge { position: absolute; right: 2px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--on-primary); border: 3px solid #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px var(--primary-glow); }
.book__name { font-size: clamp(22px, 2vw, 28px); font-weight: 800; }
.book__role { color: var(--primary-ink); font-weight: 700; font-size: 17px; }
.book__role::after { content: ""; display: block; width: 52px; height: 3px; border-radius: 3px; background: var(--primary); margin: 14px auto 0; }
.book__quote { font-family: Georgia, serif; font-size: 72px; line-height: .6; height: 34px; color: var(--primary); font-weight: 700; }
.book__text { margin: 0; padding-left: 26px; border-left: 3px solid var(--primary); font-size: 18px; line-height: 1.95; color: var(--ink); }
.book__divider { position: relative; height: 20px; display: flex; align-items: center; justify-content: center; }
.book__divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed #D6D3CB; }
.book__divider span { position: relative; background: #FBFAF6; padding: 0 14px; color: var(--primary); font-size: 18px; }
.book__cta { align-self: center; display: inline-flex; align-items: stretch; border: 2px solid var(--primary); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 24px var(--primary-glow); transition: transform .15s, box-shadow .15s; }
.book__cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px var(--primary-glow); }
.book__cta-icon { display: inline-flex; align-items: center; justify-content: center; width: 58px; background: #fff; color: var(--primary-ink); border-right: 1px solid var(--primary-tint); }
.book__cta-text { display: inline-flex; align-items: center; padding: 14px 26px; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 16px; }
.book__art { position: absolute; fill: none; stroke: color-mix(in srgb, var(--primary) 45%, #fff); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.book__art--books { left: 40px; bottom: 22px; width: 190px; height: 58px; }
.book__art--quill { right: 34px; bottom: 22px; width: 50px; height: 76px; }
@media (max-width: 639px) {
  .leader.book { padding: 8px; border-radius: 22px; }
  .book__page--left { padding: 60px 18px 70px; } .book__page--right { padding: 30px 20px 80px; }
  .book__photo { width: 160px; height: 160px; }
  .book__text { font-size: 16.5px; padding-left: 16px; }
  .book__cta-text { padding: 12px 18px; font-size: 15px; } .book__cta-icon { width: 48px; }
  .book__art--books { width: 140px; left: 20px; }
}

/* teacher row auto-scroll: no snapping while it glides */
.hscroll.is-auto { scroll-snap-type: none; }

/* ---------- services: half-circle fan ---------- */
.svc-sec { background: radial-gradient(50% 45% at 50% 55%, var(--primary-wash), transparent 70%), #FAF7F1; }
.fan { position: relative; width: 100%; max-width: 1000px; margin: 10px auto 0; aspect-ratio: 1000 / 740; display: none; }
@media (min-width: 768px) { .fan { display: block; } .svc-cards--mobile { display: none !important; } }
.fan__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fan__petal { stroke: #fff; stroke-width: 8; stroke-linejoin: round; paint-order: stroke; cursor: pointer; transform-box: fill-box; transform-origin: center; transition: transform .25s, filter .25s, opacity .25s; }
.fan__petal:hover, .fan__petal.is-active { transform: scale(1.035); filter: url(#fan-shadow) brightness(1.15); }
.fan.has-pick .fan__petal:not(.is-active) { opacity: .55; }
.fan-stop-a.fan--navy { stop-color: #1E4E8C; } .fan-stop-b.fan--navy { stop-color: #071833; }
.fan-stop-a.fan--green { stop-color: #1B6B3A; } .fan-stop-b.fan--green { stop-color: #04200F; }
.fan-stop-a.fan--purple { stop-color: #6B21A8; } .fan-stop-b.fan--purple { stop-color: #1E0730; }
.fan-stop-a.fan--teal { stop-color: #0E6377; } .fan-stop-b.fan--teal { stop-color: #031C22; }
.fan-stop-a.fan--maroon { stop-color: #9F1239; } .fan-stop-b.fan--maroon { stop-color: #2A0611; }
.fan-stop-a.fan--indigo { stop-color: #4338CA; } .fan-stop-b.fan--indigo { stop-color: #110B3D; }
.fan__label { position: absolute; transform: translate(-50%, -50%); width: 22%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px; border: 0; background: none; color: #fff; text-align: center; cursor: pointer; font-weight: 700; font-size: clamp(14px, 1.5vw, 18px); line-height: 1.3; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.fan__icon { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.4); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.fan__label:hover .fan__icon, .fan__label[aria-expanded="true"] .fan__icon { background: #fff; color: var(--ink); transform: scale(1.08); }
.fan__label:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: 12px; }
.fan__hub { position: absolute; width: 40%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: 0 0 0 10px rgba(255,255,255,.7), 0 24px 50px rgba(15,23,42,.18); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fan__hub::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 1.5px dashed var(--line); pointer-events: none; }
.fan__panel { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18% 14% 16%; text-align: center; opacity: 0; visibility: hidden; transform: scale(.94); transition: opacity .25s, transform .25s, visibility .25s; }
.fan__panel.is-active { opacity: 1; visibility: visible; transform: none; }
.fan__panel strong { font-size: clamp(16px, 1.6vw, 21px); line-height: 1.35; }
.fan__panel small { color: var(--muted); font-size: 14px; }
.fan__hub-icon { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(140deg, #10B981, #047857); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(16,185,129,.35); margin-bottom: 6px; }
.fan__links { list-style: none; margin: 4px 0 0; padding: 0 4px; width: 100%; max-height: 52%; overflow-y: auto; text-align: left; scrollbar-width: thin; }
.fan__links a { display: flex; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.fan__links a::before { content: "▸"; color: var(--primary); }
.fan__links a:hover { color: var(--primary-ink); }
.fan__back { margin-top: 4px; border: 0; background: none; color: var(--primary-ink); font-weight: 600; font-size: 14px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .fan__petal, .fan__panel, .fan__icon { transition: none; } }
/* cards (phones): coloured like the fan petals */
.service--navy { background: linear-gradient(140deg, #1E4E8C, #071833); } .service--green { background: linear-gradient(140deg, #1B6B3A, #04200F); }
.service--purple { background: linear-gradient(140deg, #6B21A8, #1E0730); } .service--teal { background: linear-gradient(140deg, #0E6377, #031C22); }
.service--maroon { background: linear-gradient(140deg, #9F1239, #2A0611); } .service--indigo { background: linear-gradient(140deg, #4338CA, #110B3D); }
.service[class*="service--"] { color: #fff; box-shadow: 0 14px 30px rgba(15,23,42,.18); }

/* ---------- services fan v2: original size and proportions ---------- */
.fan { max-width: 820px; margin-top: 0; }
.fan__petal { cursor: pointer; transform-box: fill-box; transform-origin: center; transition: transform .25s, filter .25s, opacity .25s; }
.fan__petal:hover, .fan__petal.is-active { transform: scale(1.03); filter: url(#fan-shadow) brightness(1.12); }
.fan__label { width: 20%; gap: 8px; font-size: clamp(13px, 1.25vw, 16px); font-weight: 700; }
.fan__icon { width: 40px; height: 40px; background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.35); }
.fan__icon svg { width: 17px; height: 17px; }
.fan__hub { width: 40%; box-shadow: 0 0 0 9px rgba(255,255,255,.75), 0 22px 46px rgba(15,23,42,.16); }
.fan__hub::before { inset: 12px; border-color: #E5E7EB; }
.fan__panel { padding: 20% 15% 16%; gap: 6px; }
.fan__panel strong { font-size: clamp(15px, 1.35vw, 18px); }
.fan__panel small { font-size: 12.5px; }
.fan__hub-icon { width: 50px; height: 50px; margin-bottom: 4px; }
.fan__links a { font-size: 14px; padding: 5px 2px; }
.svc-sec { background: radial-gradient(38% 42% at 50% 62%, color-mix(in srgb, var(--primary) 6%, #fff), transparent 72%), #FAF7F1; }

/* ---------- services fan: hover lifts the petal outward and previews it in the centre ---------- */
.fan__petal, .fan__petal:hover, .fan__petal.is-active { transform: none; transform-box: view-box; transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .3s, opacity .3s; }
.fan__petal.is-hover, .fan__petal.is-active { transform: translate(calc(var(--dx) * 16px), calc(var(--dy) * 16px)); filter: url(#fan-shadow) brightness(1.15) saturate(1.1); }
.fan__label { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.fan__label.is-hover, .fan__label[aria-expanded="true"] { transform: translate(calc(-50% + var(--dx) * 13px), calc(-50% + var(--dy) * 13px)); }
.fan__label.is-hover .fan__icon { background: #fff; color: var(--ink); transform: scale(1.08); }
.fan.has-focus .fan__petal:not(.is-hover):not(.is-active) { opacity: .6; }
.fan.has-pick .fan__petal:not(.is-active) { opacity: 1; }
.fan.has-focus.has-pick .fan__petal:not(.is-hover):not(.is-active) { opacity: .6; }
/* centre text slides in */
.fan__panel { transform: translateY(14px); transition: opacity .3s, transform .35s cubic-bezier(.2,.8,.2,1), visibility .3s; }
.fan__panel.is-active { transform: none; }
.fan__panel.is-active strong { animation: hub-in .4s .05s both; }
.fan__panel.is-active .fan__links li { animation: hub-in .4s both; }
.fan__panel.is-active .fan__links li:nth-child(2) { animation-delay: .06s; } .fan__panel.is-active .fan__links li:nth-child(3) { animation-delay: .12s; }
.fan__panel.is-active .fan__links li:nth-child(4) { animation-delay: .18s; } .fan__panel.is-active .fan__links li:nth-child(n+5) { animation-delay: .24s; }
@keyframes hub-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fan__petal, .fan__label, .fan__panel { transition: none; } .fan__panel.is-active strong, .fan__panel.is-active .fan__links li { animation: none; } }

/* ---------- gallery: cover-flow ---------- */
.gal-sec { overflow: hidden; background: radial-gradient(40% 50% at 85% 75%, #FDF0E2, transparent 70%), #FAF7F1; }
.peek--gallery { max-width: 1500px; margin: 10px auto 0; }
.peek--gallery .peek__stage { aspect-ratio: 2.75; -webkit-mask: none; mask: none; overflow: visible; }
.peek--gallery .peek__slide { top: 0; bottom: 0; left: 22.5%; width: 55%; border-radius: 26px; box-shadow: 0 30px 60px rgba(15,23,42,.22); }
.peek--gallery .peek__slide[data-pos="0"] { transform: none; z-index: 3; }
.peek--gallery .peek__slide[data-pos="-1"] { transform: translateX(-54%) scale(.76); z-index: 2; filter: saturate(.75); }
.peek--gallery .peek__slide[data-pos="1"]  { transform: translateX(54%) scale(.76);  z-index: 2; filter: saturate(.75); }
.peek--gallery .peek__slide[data-pos="-2"], .peek--gallery .peek__slide[data-pos="2"] { transform: scale(.6); opacity: 0; z-index: 1; }
.peek--gallery .peek__slide::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.42); transition: opacity .6s; pointer-events: none; }
.peek--gallery .peek__slide[data-pos="0"]::after { opacity: 0; }
.peek--gallery .peek__slide[data-pos="0"] img { transform: none; }
.gal-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 70px 34px 28px; background: linear-gradient(to top, rgba(10,18,40,.82), transparent); color: #fff; opacity: 0; transform: translateY(10px); transition: opacity .45s .25s, transform .45s .25s; }
.gal-cap strong { display: block; font-size: clamp(17px, 1.7vw, 24px); font-weight: 700; line-height: 1.4; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.peek__slide[data-pos="0"] .gal-cap { opacity: 1; transform: none; }
.gal-nav { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 34px; }
.gal-nav__btn { width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 20px rgba(15,23,42,.08); transition: background .15s, color .15s, transform .15s; }
.gal-nav__btn:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); transform: translateY(-2px); }
.gal-nav__btn svg { width: 22px; height: 22px; }
.gal-nav__dots { display: flex; gap: 10px; }
.gal-nav__dots button { position: relative; overflow: hidden; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: #CBD5E1; cursor: pointer; transition: width .25s; }
.gal-nav__dots button[aria-current="true"] { width: 42px; background: var(--primary-tint); }
.gal-nav__dots button[aria-current="true"]::after { content: ""; position: absolute; inset: 0; background: var(--primary); transform-origin: left; animation: dot-fill 6s linear forwards; }
.peek--gallery:hover .gal-nav__dots button::after { animation-play-state: paused; }
.gal-all { min-width: 260px; }
@media (max-width: 639px) {
  .peek--gallery .peek__stage { aspect-ratio: 1.55; }
  .peek--gallery .peek__slide { left: 9%; width: 82%; border-radius: 18px; }
  .peek--gallery .peek__slide[data-pos="-1"] { transform: translateX(-60%) scale(.8); }
  .peek--gallery .peek__slide[data-pos="1"]  { transform: translateX(60%) scale(.8); }
  .gal-cap { padding: 50px 18px 16px; }
  .gal-nav { gap: 16px; margin-top: 22px; } .gal-nav__btn { width: 48px; height: 48px; }
  .gal-nav__dots { max-width: 55vw; overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .gal-nav__dots button::after { animation: none; transform: none; } .gal-cap { transition: none; } }

/* gallery: a little smaller */
.peek--gallery { max-width: 1120px; }
.peek--gallery .peek__stage { aspect-ratio: 2.6; }
.peek--gallery .peek__slide { left: 21%; width: 58%; border-radius: 22px; }
.peek--gallery .peek__slide[data-pos="-1"] { transform: translateX(-50%) scale(.78); }
.peek--gallery .peek__slide[data-pos="1"]  { transform: translateX(50%) scale(.78); }
.gal-nav { margin-top: 26px; } .gal-nav__btn { width: 52px; height: 52px; }
@media (max-width: 639px) {
  .peek--gallery .peek__stage { aspect-ratio: 1.55; }
  .peek--gallery .peek__slide { left: 9%; width: 82%; }
  .peek--gallery .peek__slide[data-pos="-1"] { transform: translateX(-60%) scale(.8); }
  .peek--gallery .peek__slide[data-pos="1"]  { transform: translateX(60%) scale(.8); }
}

/* ---------- emergency hotlines ---------- */
.hl-sec { color: #fff; background: radial-gradient(40% 60% at 95% 10%, rgba(16,185,129,.12), transparent 70%), radial-gradient(35% 50% at 5% 90%, rgba(245,158,11,.07), transparent 70%), #0A1424; }
.hl-sec .h2 { color: #fff; }
.eyebrow--green { color: #34D399; }
.hl-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.hl-card { display: flex; align-items: center; gap: 22px; padding: 22px 24px; border-radius: 22px; background: linear-gradient(180deg, #1E293B, #172033); border: 1.5px solid #334155; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); transition: transform .2s, border-color .2s; }
.hl-card:hover { color: #fff; transform: translateY(-3px); border-color: #475569; }
.hl-no { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; font-size: 24px; font-weight: 800; letter-spacing: .01em; box-shadow: 0 8px 18px rgba(0,0,0,.25); }
.hl-no--red { background: #DC2626; } .hl-no--blue { background: #2563EB; } .hl-no--green { background: #059669; }
.hl-card__text { display: flex; flex-direction: column; gap: 4px; line-height: 1.35; }
.hl-card__text strong { font-size: 18px; } .hl-card__text small { font-size: 14.5px; color: #94A3B8; }
.hl-row { display: grid; gap: 28px; margin-top: 44px; }
@media (min-width: 900px) { .hl-row { grid-template-columns: 1fr 1fr; } }
.hl-box { border-radius: 22px; padding: 28px 30px; }
.hl-box h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; margin-bottom: 18px; }
.hl-box--anthem { background: linear-gradient(120deg, rgba(16,185,129,.12), rgba(16,185,129,.03)); border: 1px solid rgba(52,211,153,.25); }
.hl-box--anthem h3 { color: #34D399; }
.hl-audio { width: 100%; height: 50px; border-radius: 999px; display: block; }
.hl-box--alert { display: flex; gap: 18px; align-items: flex-start; background: rgba(250,204,21,.03); border: 1px solid rgba(250,204,21,.22); }
.hl-box__icon { color: #FACC15; flex: none; margin-top: 2px; }
.hl-box--alert h3 { color: #FACC15; margin-bottom: 10px; }
.hl-box--alert p { margin: 0; color: #CBD5E1; line-height: 1.7; }
@media (max-width: 639px) { .hl-card { padding: 16px; gap: 14px; } .hl-no { font-size: 20px; padding: 8px 12px; } .hl-box { padding: 22px 18px; } }

/* ---------- footer (smart) ---------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; border-top: 0; font-size: 16px;
  background: radial-gradient(28% 45% at 12% 45%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
              radial-gradient(30% 50% at 92% 35%, rgba(245,158,11,.14), transparent 70%),
              linear-gradient(180deg, #F3F8F6, #F6F4EE); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--primary), #10B981, #F59E0B); }
.footer-grid { display: grid; gap: 36px; padding-top: 64px; padding-bottom: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.3fr .9fr 1.1fr 1.1fr; gap: 48px; } }
.footer-brand { display: flex; align-items: center; gap: 16px; color: var(--ink); }
.footer-brand:hover { color: var(--ink); }
.footer-brand__logo { flex: none; width: 70px; height: 70px; border-radius: 18px; background: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(15,23,42,.08); }
.footer-brand__logo img { width: 52px; height: 52px; object-fit: contain; }
.footer-brand__name { font-size: 22px; font-weight: 800; line-height: 1.3; }
.footer-quote { margin: 22px 0 0; padding-left: 18px; border-left: 3px solid var(--primary); font-style: italic; color: var(--ink-2); }
.footer-eiin { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a { width: 56px; height: 56px; border-radius: 16px; background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(15,23,42,.08); transition: transform .15s, background .15s, color .15s; }
.footer-social a:hover { background: var(--primary); color: var(--on-primary); transform: translateY(-2px); }
.footer-title { position: relative; font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 26px; padding-bottom: 14px; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; border-radius: 3px; background: var(--primary); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-links a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 16.5px; transition: color .15s, transform .15s; }
.footer-links a svg { color: var(--primary); flex: none; }
.footer-links a:hover { color: var(--primary-ink); transform: translateX(3px); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.footer-contact li { display: flex; gap: 16px; align-items: flex-start; }
.footer-contact__icon { flex: none; width: 52px; height: 52px; border-radius: 14px; background: #fff; color: var(--primary-ink); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(15,23,42,.07); }
.footer-contact li > span:last-child { display: flex; flex-direction: column; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.footer-contact small { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.footer-contact a { color: var(--ink-2); } .footer-contact a:hover { color: var(--primary-ink); }
.footer-text { color: var(--ink-2); line-height: 1.75; margin: 0 0 20px; }
.play-badge { display: inline-flex; align-items: center; gap: 12px; padding: 9px 20px 9px 14px; border-radius: 12px; background: #000; color: #fff; border: 1px solid #A6A6A6; box-shadow: 0 10px 22px rgba(0,0,0,.2); transition: transform .15s; }
.play-badge:hover { color: #fff; transform: translateY(-2px); }
.play-badge__icon { width: 30px; height: 32px; }
.play-badge span { display: flex; flex-direction: column; line-height: 1.05; }
.play-badge small { font-size: 11px; letter-spacing: .04em; } .play-badge b { font-size: 24px; font-weight: 500; letter-spacing: -.01em; }
.footer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 22px 28px; margin-bottom: 0; border-radius: 26px 26px 0 0; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); box-shadow: 0 -6px 24px rgba(15,23,42,.05); color: var(--muted); font-size: 15px; }
.footer-bar strong { color: var(--ink); }
.footer-credit { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-credit strong { color: var(--primary-ink); }
.footer-credit img { height: 44px; width: auto; }
@media (max-width: 639px) { .footer-bar { flex-direction: column; text-align: center; padding: 18px 16px; } .footer-credit { justify-content: center; } }

/* ---------- hotlines: smoother look ---------- */
.hl-sec { background: radial-gradient(45% 60% at 100% 0%, rgba(16,185,129,.14), transparent 70%), radial-gradient(40% 55% at 0% 100%, rgba(59,130,246,.10), transparent 70%), linear-gradient(180deg, #0B1526, #091120); }
.hl-grid { gap: 24px; }
.hl-card { position: relative; overflow: hidden; gap: 20px; padding: 24px 26px; border-radius: 24px; border: 1px solid rgba(148,163,184,.16);
  background: linear-gradient(180deg, rgba(30,41,59,.72), rgba(15,23,42,.72)); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 18px 40px rgba(0,0,0,.25); transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s; }
.hl-card::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; background: radial-gradient(60% 120% at 0% 50%, var(--glow, rgba(255,255,255,.08)), transparent 70%); }
.hl-card:has(.hl-no--red) { --glow: rgba(239,68,68,.18); } .hl-card:has(.hl-no--blue) { --glow: rgba(59,130,246,.2); } .hl-card:has(.hl-no--green) { --glow: rgba(16,185,129,.2); }
.hl-card:hover { transform: translateY(-4px); border-color: rgba(148,163,184,.3); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 24px 50px rgba(0,0,0,.35); }
.hl-card:hover::before { opacity: 1; }
.hl-card > * { position: relative; }
.hl-no { border-radius: 16px; padding: 12px 18px; font-size: 26px; font-variant-numeric: tabular-nums; }
.hl-no--red { background: linear-gradient(140deg, #F05252, #C81E1E); box-shadow: 0 10px 22px rgba(220,38,38,.35); }
.hl-no--blue { background: linear-gradient(140deg, #3B82F6, #1D4ED8); box-shadow: 0 10px 22px rgba(37,99,235,.35); }
.hl-no--green { background: linear-gradient(140deg, #10B981, #047857); box-shadow: 0 10px 22px rgba(5,150,105,.35); }
.hl-card__text strong { font-size: 19px; } .hl-card__text small { color: #9AA8BC; }
.hl-row { gap: 24px; margin-top: 32px; }
.hl-box { border-radius: 24px; padding: 28px 30px; backdrop-filter: blur(10px); box-shadow: 0 18px 40px rgba(0,0,0,.22); }
.hl-box--anthem { background: linear-gradient(130deg, rgba(16,185,129,.16), rgba(15,23,42,.6) 70%); border: 1px solid rgba(52,211,153,.22); }
.hl-box--alert { background: linear-gradient(130deg, rgba(250,204,21,.08), rgba(15,23,42,.6) 70%); border: 1px solid rgba(250,204,21,.2); }
.hl-box__icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(250,204,21,.12); display: inline-flex; align-items: center; justify-content: center; margin-top: 0; }

/* custom audio player */
.player { display: flex; align-items: center; gap: 14px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.player audio { display: none; }
.player__play { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: linear-gradient(140deg, #10B981, #047857); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(16,185,129,.35); transition: transform .15s; }
.player__play:hover { transform: scale(1.06); }
.player .i-pause, .player.is-playing .i-play { display: none; }
.player.is-playing .i-pause { display: block; }
.player__seek { flex: 1; min-width: 60px; height: 6px; -webkit-appearance: none; appearance: none; border-radius: 999px; cursor: pointer; background: linear-gradient(90deg, #34D399 var(--p, 0%), rgba(255,255,255,.18) var(--p, 0%)); }
.player__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(52,211,153,.3); }
.player__seek::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(52,211,153,.3); }
.player__time { flex: none; font-size: 14px; color: #CBD5E1; font-variant-numeric: tabular-nums; min-width: 82px; text-align: right; }
.player__mute { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: none; color: #CBD5E1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.player__mute:hover { background: rgba(255,255,255,.08); color: #fff; }
.player .i-mute, .player.is-muted .i-vol { display: none; }
.player.is-muted .i-mute { display: block; }
.player.is-playing .player__play { animation: pulse-ring 2s ease-out infinite; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.45); } 100% { box-shadow: 0 0 0 14px rgba(16,185,129,0); } }

/* gentle reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .player.is-playing .player__play { animation: none; } }
@media (max-width: 639px) { .player__time { min-width: 0; font-size: 13px; } .player { gap: 10px; } }

/* ---------- top bar login + header payment button ---------- */
.topbar__inner { min-height: 46px; }
.topbar__login { gap: 7px; padding: 5px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); font-size: 13px; transition: background .15s, border-color .15s; }
.topbar__login:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }
.topbar__login--alt { background: transparent; }
.header-cta { gap: 8px; border-radius: 12px; padding: 9px 18px; min-height: 44px; box-shadow: 0 8px 18px var(--primary-glow); }
.header-cta:hover { transform: translateY(-1px); }
/* hero: less empty space above */
@media (min-width: 1024px) { .hero { padding-top: 40px; padding-bottom: 56px; } }

/* ---------- top bar: matching buttons (login × 2 + language), same height and radius ---------- */
.topbar .topbar__group { gap: 10px; }
.topbar__login, .topbar .lang-switch { height: 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); box-shadow: none; }
.topbar__login { padding: 0 12px; font-size: 13px; }
.topbar__login--alt { background: transparent; }
.topbar .lang-switch { padding: 0 12px; gap: 8px; }
.topbar .lang-switch a { font-size: 13px; font-weight: 700; color: #94A3B8 !important; }
.topbar .lang-switch a[lang="bn"] { font-size: 14px; }
.topbar .lang-switch a.is-active { color: #fff !important; }
.topbar .lang-switch a:hover { color: #fff !important; }
.topbar .lang-switch .lang-switch__sep { color: rgba(255,255,255,.25); }
@media (max-width: 639px) { .topbar__login { padding: 0 9px; font-size: 12px; } .topbar__login svg { display: none; } }

/* ---------- footer on phones: centred, compact, two-column links ---------- */
@media (max-width: 767px) {
  .site-footer .wrap { padding-left: 20px; padding-right: 20px; }
  .footer-grid { gap: 0; padding-top: 36px; padding-bottom: 8px; }
  .footer-col { padding: 26px 0; border-top: 1px solid rgba(15,23,42,.07); }
  .footer-col--brand { border-top: 0; padding-top: 0; align-items: center; text-align: center; }
  .footer-brand { flex-direction: column; gap: 12px; }
  .footer-brand__logo { width: 76px; height: 76px; border-radius: 22px; }
  .footer-brand__name { font-size: 21px; }
  .footer-eiin { margin-top: 8px; }
  .footer-social { justify-content: center; margin-top: 16px; }
  .footer-social a { width: 46px; height: 46px; border-radius: 14px; }
  .footer-title { font-size: 17px; margin-bottom: 16px; padding-bottom: 10px; }
  .footer-title::after { width: 34px; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .footer-links a { font-size: 15px; gap: 6px; }
  .footer-contact { gap: 12px; }
  .footer-contact li { gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.7); }
  .footer-contact__icon { width: 40px; height: 40px; border-radius: 12px; box-shadow: none; background: var(--primary-soft); }
  .footer-contact li > span:last-child { font-size: 15px; }
  .footer-text { font-size: 15px; margin-bottom: 14px; }
  .play-badge { width: 100%; justify-content: center; padding: 10px 16px; }
  .footer-bar { border-radius: 0; margin: 0 -20px; padding: 18px 20px 84px; font-size: 13.5px; gap: 10px; }  /* room for the back-to-top button */
  .footer-credit { flex-direction: column; gap: 10px; }
  .footer-credit img { height: 38px; }
}

/* ---------- inner-page header (tinted band, centred) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: 56px 0 60px; border-bottom: 0; text-align: center;
  background: linear-gradient(135deg, color-mix(in srgb, #10B981 7%, #fff), color-mix(in srgb, var(--primary) 6%, #fff)); }
.page-hero__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.page-hero__title { font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; margin: 0; line-height: 1.25; }
.page-hero .crumbs { justify-content: center; font-size: 14.5px; color: var(--ink-2); }
.page-hero .crumbs a { color: var(--primary-ink); text-decoration: none; }
.page-hero__blob { position: absolute; z-index: -1; border-radius: 50%; }
.page-hero__blob--l { width: 260px; height: 260px; left: -90px; bottom: -120px; background: color-mix(in srgb, #F59E0B 10%, transparent); }
.page-hero__blob--r { width: 380px; height: 380px; right: -60px; top: -120px; background: color-mix(in srgb, var(--primary) 9%, transparent); }
@media (max-width: 639px) { .page-hero { padding: 36px 0 40px; } .page-hero__blob--r { width: 220px; height: 220px; } }

/* ---------- notice list ---------- */
.nl-wrap { max-width: 980px; }
.nl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.nl-item { display: flex; gap: 22px; align-items: flex-start; padding: 24px 26px; border-radius: 22px; background: linear-gradient(180deg, #fff, #FAFBFD); border: 1px solid #EEF1F6; box-shadow: 0 10px 28px rgba(15,23,42,.06); transition: transform .25s, box-shadow .25s; }
.nl-item:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15,23,42,.1); }
.nl-item.is-new { animation: nl-in .5s both; }
@keyframes nl-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.nl-date { flex: none; width: 66px; height: 70px; border-radius: 16px; background: linear-gradient(150deg, var(--primary), var(--primary-hover)); color: var(--on-primary); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; box-shadow: 0 10px 22px var(--primary-glow); }
.nl-date b { font-size: 26px; font-weight: 800; } .nl-date small { font-size: 11px; font-weight: 700; letter-spacing: .08em; margin-top: 4px; opacity: .9; }
.nl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.nl-title { margin: 0; font-family: var(--font-bn); font-size: 19px; font-weight: 700; line-height: 1.55; }
.nl-title a { color: var(--ink); } .nl-title a:hover { color: var(--primary-ink); }
.nl-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.nl-when { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.nl-when svg { color: var(--primary-ink); }
.nl-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 10px; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 14px; box-shadow: 0 8px 18px var(--primary-glow); transition: transform .15s, background .15s; }
.nl-btn:hover { color: var(--on-primary); background: var(--primary-hover); transform: translateY(-1px); }
.nl-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 30px; min-height: 60px; }
.nl-spinner { display: none; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--primary-tint); border-top-color: var(--primary); animation: preloader-spin .8s linear infinite; }
.nl-more.is-loading .nl-spinner { display: block; } .nl-more.is-loading .btn { display: none; }
.nl-end { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }
@media (max-width: 639px) {
  .nl-item { padding: 16px; gap: 14px; border-radius: 18px; }
  .nl-date { width: 54px; height: 58px; border-radius: 14px; } .nl-date b { font-size: 21px; }
  .nl-title { font-size: 16.5px; } .nl-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .nl-item.is-new { animation: none; } }

/* ---------- teacher / staff list ---------- */
.pt-wrap { max-width: 1400px; }
.pt-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px; border-radius: 20px; background: #fff; border: 1px solid #EEF1F6; box-shadow: 0 14px 34px rgba(15,23,42,.07); }
.pt-filter__search { flex: 2 1 280px; position: relative; display: flex; align-items: center; }
.pt-filter__search svg { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.pt-filter input, .pt-filter select { width: 100%; height: 50px; border: 1px solid transparent; border-radius: 14px; background: #F4F6FA; color: var(--ink); font-size: 15.5px; transition: border-color .15s, background .15s; }
.pt-filter input { padding: 0 16px 0 46px; }
.pt-filter select { padding: 0 40px 0 16px; -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.pt-filter input:focus, .pt-filter select:focus { outline: none; border-color: var(--primary); background-color: #fff; box-shadow: 0 0 0 4px var(--primary-glow); }
.pt-filter__select { flex: 1 1 200px; }
.pt-filter__btn { height: 50px; padding: 0 28px; border-radius: 14px; }
.pt-count { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 2px 18px; }
.pt-count__chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); font-size: 14px; }
.pt-count__reset { font-size: 14px; font-weight: 600; color: var(--muted); }
.pt-count__reset:hover { color: #DC2626; }

.pt-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.pt { animation: none; }
.pt.is-new { animation: nl-in .5s both; }
.pt__link { display: flex; flex-direction: column; height: 100%; border-radius: 20px; background: #fff; border: 1px solid #EEF1F6; box-shadow: 0 8px 22px rgba(15,23,42,.06); overflow: hidden; color: var(--ink); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.pt__link:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(15,23,42,.12); color: var(--ink); }
.pt__photo { position: relative; display: block; aspect-ratio: 1 / 1.08; margin: 10px 10px 0; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, var(--primary-soft), #E9EDF4); }
.pt__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .5s ease; }
.pt__link:hover .pt__photo img { transform: scale(1.05); }
.pt__initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 42px; font-weight: 800; color: var(--primary-ink); }
.pt__body { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 14px 18px; flex: 1; }
.pt__name { font-size: 17px; font-weight: 700; line-height: 1.4; }
.pt__post { display: inline-block; margin-top: 2px; padding: 3px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); font-size: 13px; font-weight: 600; }
.pt__sub { font-size: 13.5px; color: var(--muted); }
.pt__more { margin-top: auto; padding-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--primary-ink); opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.pt__link:hover .pt__more, .pt__link:focus-visible .pt__more { opacity: 1; transform: none; }
@media (max-width: 639px) {
  .pt-filter { padding: 10px; border-radius: 16px; } .pt-filter__btn { width: 100%; }
  .pt-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pt__photo { margin: 6px 6px 0; border-radius: 12px; } .pt__body { padding: 10px 8px 12px; } .pt__name { font-size: 15px; } .pt__post { font-size: 12px; padding: 2px 8px; }
  .pt__more { display: none; }
}

/* ---------- managing committee ---------- */
.page-hero__sub { margin: 0; max-width: 760px; color: var(--ink-2); font-size: 17px; }
.mc { max-width: 1300px; }
.mc-head { position: relative; display: grid; gap: 28px; align-items: center; padding: 28px; border-radius: 30px; background: linear-gradient(135deg, #fff, var(--primary-wash)); border: 1px solid #EEF1F6; box-shadow: 0 24px 60px rgba(15,23,42,.08); overflow: hidden; }
.mc-head::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 6%, transparent); pointer-events: none; }
@media (min-width: 760px) { .mc-head { grid-template-columns: 300px 1fr; padding: 40px 48px; gap: 48px; } }
.mc-head__flag { position: absolute; top: 22px; right: 22px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 14px; box-shadow: 0 10px 22px var(--primary-glow); }
.mc-head__photo { position: relative; aspect-ratio: 4 / 4.4; border-radius: 22px; overflow: hidden; background: var(--line-2); border: 6px solid #fff; box-shadow: 0 18px 40px rgba(15,23,42,.16); max-width: 320px; }
.mc-head__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mc-head__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.mc-head__name { font-size: clamp(26px, 3vw, 40px); font-weight: 800; margin: 0; }
.mc-head__type { margin: 0; color: var(--muted); font-size: 16px; }
.mc-head__facts { width: 100%; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 40px; }
.mc-head__facts span { display: flex; flex-direction: column; font-weight: 600; color: var(--ink-2); }
.mc-head__facts small { font-weight: 600; font-size: 13px; color: var(--muted); }
.mc-pill { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); border: 1px solid var(--primary-tint); font-size: 14px; font-weight: 700; line-height: 1.45; text-align: center; }
.mc-pill--lg { font-size: 17px; padding: 8px 18px; border-radius: 12px; }
.mc-title { margin-top: 64px; }
.mc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -6px 0 28px; }
.mc-chips button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: all .15s; }
.mc-chips button b { min-width: 24px; padding: 1px 8px; border-radius: 999px; background: var(--line-2); font-size: 12.5px; }
.mc-chips button:hover { border-color: var(--primary); color: var(--primary-ink); }
.mc-chips button.is-active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 8px 18px var(--primary-glow); }
.mc-chips button.is-active b { background: rgba(255,255,255,.2); }
.mc-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.mc-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 34px 22px 28px; border-radius: 24px; background: linear-gradient(180deg, #fff, #FAFBFD); border: 1px solid #EEF1F6; box-shadow: 0 12px 30px rgba(15,23,42,.06); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, opacity .25s; }
.mc-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(15,23,42,.12); }
.mc-card.is-hidden { display: none; }
.mc-card__photo { width: 140px; height: 140px; border-radius: 50%; padding: 5px; background: linear-gradient(140deg, var(--primary), #10B981); margin-bottom: 8px; box-shadow: 0 12px 26px var(--primary-glow); }
.mc-card__photo img, .mc-card__photo .mc-noimg { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: top; border: 4px solid #fff; background: var(--line-2); }
.mc-card__name { font-size: 19px; font-weight: 800; line-height: 1.4; }
.mc-card__type { color: var(--muted); font-size: 14.5px; }
.mc-card__edu { font-size: 13.5px; color: var(--ink-2); padding-top: 8px; border-top: 1px dashed var(--line); width: 100%; }
.mc-noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--primary-ink); background: var(--primary-soft); }
@media (max-width: 639px) {
  .mc-head { padding: 64px 18px 24px; border-radius: 22px; } .mc-head__photo { margin: 0 auto; width: 70%; }
  .mc-head__body { align-items: center; text-align: center; } .mc-head__facts { justify-content: center; }
  .mc-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .mc-card { padding: 20px 10px; border-radius: 18px; }
  .mc-card__photo { width: 96px; height: 96px; padding: 3px; } .mc-card__name { font-size: 15.5px; } .mc-pill { font-size: 12px; padding: 3px 10px; }
}

/* committee: cards stay centred when there are only a few */
.mc-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.mc-card { flex: 0 1 300px; }
@media (max-width: 639px) { .mc-grid { display: grid; grid-template-columns: repeat(2, 1fr); } .mc-grid .mc-card:only-child { grid-column: 1 / -1; justify-self: center; width: 70%; } }

/* ---------- current page in the menu ---------- */
.nav__link.is-active { color: var(--primary-ink); }
.nav__link.is-active::after { transform: scaleX(1); }
.dropdown__link.is-active { background: var(--primary-soft); color: var(--primary-ink); font-weight: 700; }
.dropdown__link.is-active::before { height: 60%; margin-top: 0; top: 20%; border-radius: 3px; background: var(--primary); }
.dropdown__group.is-active > .dropdown__heading { color: var(--primary-ink); }
.nav__more .nav__item > .nav__link.is-active { background: var(--primary-soft); }
.mnav__link.is-active, .mnav__sublink.is-active { color: var(--primary-ink); }
.mnav__sublink.is-active { background: var(--primary-soft); font-weight: 700; }

/* ---------- about page ---------- */
.ab-intro__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .ab-intro__grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } .ab-intro__grid--text { grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; } }
.ab-intro__media { border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 24px 50px rgba(15,23,42,.14); }
.ab-intro__media img { width: 100%; height: 100%; object-fit: cover; }
.ab-intro__text { display: flex; flex-direction: column; gap: 14px; }
.ab-mv { background: linear-gradient(135deg, color-mix(in srgb, #10B981 6%, #fff), #FBF7EF); }
.ab-mv__grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .ab-mv__grid { grid-template-columns: 1fr 1fr; } }
.ab-mv__card { padding: 36px; border-radius: 26px; background: rgba(255,255,255,.75); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 18px 44px rgba(15,23,42,.08); }
.ab-mv__card h2 { font-size: 24px; font-weight: 800; margin: 20px 0 12px; }
.ab-mv__card p { margin: 0; color: var(--ink-2); line-height: 1.85; }
.ab-mv__icon { width: 58px; height: 58px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; }
.ab-mv__icon--green { background: #D1FAE5; color: #047857; } .ab-mv__icon--amber { background: #FEF3C7; color: #B45309; }
.ab-msg__card { position: relative; max-width: 960px; margin: 0 auto; display: grid; gap: 28px; padding: 36px; border-radius: 28px; background: #fff; box-shadow: 0 24px 60px rgba(15,23,42,.08); }
@media (min-width: 760px) { .ab-msg__card { grid-template-columns: 110px 1fr; padding: 44px 52px; gap: 36px; } }
.ab-msg__photo { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; border: 4px solid var(--primary); box-shadow: 0 0 0 8px var(--primary-soft); display: flex; align-items: center; justify-content: center; color: var(--primary-ink); background: var(--primary-soft); }
.ab-msg__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ab-msg__body { border-left: 3px solid var(--primary); padding-left: 24px; display: flex; flex-direction: column; gap: 14px; }
.ab-msg__lead { margin: 0; font-size: 18px; text-align: center; }
.ab-msg__text { margin: 0; color: var(--ink-2); line-height: 1.9; font-size: 16.5px; }
.ab-msg__sign { display: flex; flex-direction: column; margin-top: 10px; }
.ab-msg__sign strong { font-size: 17px; } .ab-msg__sign span { color: var(--primary-ink); font-weight: 700; font-size: 13.5px; letter-spacing: .03em; }
.ab-dept { background: linear-gradient(180deg, #F2F6FB, #F4F1FA); }
.why--amber { background: linear-gradient(140deg, #6B3A0C, #1F1003 70%); } .why--amber .why__icon { color: #B45309; }
.ab-dept .why { min-height: 230px; }
.ab-hist { background: #FBF7EF; }
.ab-hist__card { position: relative; max-width: 960px; margin: 0 auto; padding: 40px; border-radius: 28px; background: #fff; box-shadow: 0 24px 60px rgba(15,23,42,.08); overflow: hidden; }
.ab-hist__card::after { content: "★"; position: absolute; top: 18px; right: 40px; font-size: 54px; color: var(--primary-tint); opacity: .6; }
.ab-hist__head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.ab-hist__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px var(--primary-glow); }
.ab-hist__head h3 { margin: 6px 0 0; font-size: 22px; font-weight: 800; }
@media (max-width: 639px) { .ab-mv__card, .ab-msg__card, .ab-hist__card { padding: 24px 20px; border-radius: 20px; } .ab-msg__photo { margin: 0 auto; } .ab-msg__body { padding-left: 16px; } }

/* =========================================================================
   Theme harmony: deep card colours and dark sections follow the school colour
   (tones come from App\Libraries\Theme; dark sections = navy tinted with the colour)
   ========================================================================= */
:root { --tone-1-a: #13294B; --tone-1-b: #071A33; --tone-1-i: #1D4ED8; --tone-2-a: #0F3D2E; --tone-2-b: #052014; --tone-2-i: #15803D;
  --tone-3-a: #3B1263; --tone-3-b: #170826; --tone-3-i: #7E22CE; --tone-4-a: #0E4A5C; --tone-4-b: #04212A; --tone-4-i: #0E7490;
  --tone-5-a: #5B1328; --tone-5-b: #24060F; --tone-5-i: #BE123C; --tone-6-a: #1B2347; --tone-6-b: #0B1024; --tone-6-i: #4338CA; --primary-light: #93C5FD; }
.why--t1 { background: linear-gradient(140deg, var(--tone-1-a), var(--tone-1-b) 72%); } .why--t1 .why__icon { color: var(--tone-1-i); }
.why--t2 { background: linear-gradient(140deg, var(--tone-2-a), var(--tone-2-b) 72%); } .why--t2 .why__icon { color: var(--tone-2-i); }
.why--t3 { background: linear-gradient(140deg, var(--tone-3-a), var(--tone-3-b) 72%); } .why--t3 .why__icon { color: var(--tone-3-i); }
.why--t4 { background: linear-gradient(140deg, var(--tone-4-a), var(--tone-4-b) 72%); } .why--t4 .why__icon { color: var(--tone-4-i); }
.why--t5 { background: linear-gradient(140deg, var(--tone-5-a), var(--tone-5-b) 72%); } .why--t5 .why__icon { color: var(--tone-5-i); }
.why--t6 { background: linear-gradient(140deg, var(--tone-6-a), var(--tone-6-b) 72%); } .why--t6 .why__icon { color: var(--tone-6-i); }
.service--t1 { background: linear-gradient(140deg, var(--tone-1-a), var(--tone-1-b)); } .service--t2 { background: linear-gradient(140deg, var(--tone-2-a), var(--tone-2-b)); }
.service--t3 { background: linear-gradient(140deg, var(--tone-3-a), var(--tone-3-b)); } .service--t4 { background: linear-gradient(140deg, var(--tone-4-a), var(--tone-4-b)); }
.service--t5 { background: linear-gradient(140deg, var(--tone-5-a), var(--tone-5-b)); } .service--t6 { background: linear-gradient(140deg, var(--tone-6-a), var(--tone-6-b)); }
.fan-stop-a.fan--t1 { stop-color: var(--tone-1-a); } .fan-stop-b.fan--t1 { stop-color: var(--tone-1-b); }
.fan-stop-a.fan--t2 { stop-color: var(--tone-2-a); } .fan-stop-b.fan--t2 { stop-color: var(--tone-2-b); }
.fan-stop-a.fan--t3 { stop-color: var(--tone-3-a); } .fan-stop-b.fan--t3 { stop-color: var(--tone-3-b); }
.fan-stop-a.fan--t4 { stop-color: var(--tone-4-a); } .fan-stop-b.fan--t4 { stop-color: var(--tone-4-b); }
.fan-stop-a.fan--t5 { stop-color: var(--tone-5-a); } .fan-stop-b.fan--t5 { stop-color: var(--tone-5-b); }
.fan-stop-a.fan--t6 { stop-color: var(--tone-6-a); } .fan-stop-b.fan--t6 { stop-color: var(--tone-6-b); }

/* dark sections: navy tinted with the school colour instead of fixed teal */
.nb-sec { background:
  radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--primary) 26%, transparent), transparent 70%),
  linear-gradient(160deg, color-mix(in srgb, var(--primary) 10%, #0B1726) 0%, color-mix(in srgb, var(--primary) 16%, #0E2233) 55%, color-mix(in srgb, var(--primary) 6%, #060F18) 100%); }
.nb { background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 18%, #12283A), color-mix(in srgb, var(--primary) 10%, #0B1C29)); }
.nb-date { background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 30%, #12283A), color-mix(in srgb, var(--primary) 12%, #071420)); }
.nb-date small { color: var(--primary-light); }
.nb-sec .accent-light { background: linear-gradient(90deg, var(--primary-light), color-mix(in srgb, var(--primary-light) 70%, #fff)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--primary-light); }
.accent-light { color: var(--primary-light); }
.badge--glass { color: var(--primary-light); border-color: color-mix(in srgb, var(--primary-light) 35%, transparent); }
.nb-feature::before { background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary)); }
.nb-chip--file, .nb-chip--pdf { background: var(--primary-soft); color: var(--primary-ink); border-color: var(--primary-tint); }
.hl-sec { background: radial-gradient(45% 60% at 100% 0%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 70%), radial-gradient(40% 55% at 0% 100%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--primary) 6%, #0B1526), #091120); }
.scroll-progress span { background: linear-gradient(90deg, var(--primary-light), var(--primary)); box-shadow: 0 0 10px var(--primary-glow); }

/* ---------- full message in a dialog ---------- */
.msg-modal { width: min(94vw, 900px); max-height: min(88vh, 900px); padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 40px 100px rgba(15,23,42,.35); overflow: hidden; }
.msg-modal::backdrop { background: rgba(15,23,42,.55); backdrop-filter: blur(4px); }
.msg-modal[open] { display: flex; animation: msg-in .3s cubic-bezier(.2,.8,.2,1); }
.msg-modal[open]::backdrop { animation: fade-in .3s; }
@keyframes msg-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.msg-modal__box { display: flex; flex-direction: column; width: 100%; max-height: inherit; }
.msg-modal__head { display: flex; align-items: center; gap: 22px; padding: 32px 40px 24px; border-bottom: 1px solid var(--line-2); }
.msg-modal__photo { flex: none; width: 92px; height: 92px; border-radius: 20px; overflow: hidden; background: var(--primary-soft); color: var(--primary-ink); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px rgba(15,23,42,.15); border: 3px solid #fff; }
.msg-modal__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.msg-modal__who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.msg-modal__who h2 { margin: 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; }
.msg-modal__who span { color: var(--primary-ink); font-weight: 800; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; }
.lang-bn .msg-modal__who span { text-transform: none; letter-spacing: 0; font-size: 15px; }
.msg-modal__x { flex: none; align-self: flex-start; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #F1F5F9; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, transform .15s; }
.msg-modal__x:hover { background: #E2E8F0; transform: rotate(90deg); }
.msg-modal__body { flex: 1; overflow-y: auto; padding: 26px 40px; font-size: 17.5px; line-height: 2; text-align: justify; text-justify: inter-character; color: var(--ink-2); max-width: none; overscroll-behavior: contain; }
.msg-modal__body p { margin: 0 0 1.1em; }
.msg-modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 40px 24px; border-top: 1px solid var(--line-2); }
.msg-modal__foot .btn { min-width: 130px; border-radius: 12px; }
body.modal-open { overflow: hidden; }
@media (max-width: 639px) {
  .msg-modal { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .msg-modal__head { padding: 20px 18px 16px; gap: 14px; } .msg-modal__photo { width: 64px; height: 64px; border-radius: 16px; }
  .msg-modal__body { padding: 18px; font-size: 16px; text-align: left; } .msg-modal__foot { padding: 14px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) { .msg-modal[open], .msg-modal[open]::backdrop { animation: none; } }

/* ---------- student directory ---------- */
.st-wrap { max-width: 1400px; }
.st-filter { display: grid; gap: 12px; padding: 18px; border-radius: 22px; background: #fff; border: 1px solid #EEF1F6; box-shadow: 0 14px 34px rgba(15,23,42,.07); grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); align-items: end; }
.st-f { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.st-f select, .st-f input { height: 48px; border: 1px solid transparent; border-radius: 12px; background: #F4F6FA; padding: 0 14px; font-size: 15px; color: var(--ink); }
.st-f select { -webkit-appearance: none; appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.st-f select:focus, .st-f input:focus { outline: none; border-color: var(--primary); background-color: #fff; box-shadow: 0 0 0 4px var(--primary-glow); }
.st-f__btn { height: 48px; border-radius: 12px; gap: 8px; }
.st-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0 16px; }
.st-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.st-chip b { padding: 1px 9px; border-radius: 999px; background: var(--line-2); font-size: 13px; }
.st-chip:hover { border-color: var(--primary); color: var(--primary-ink); }
.st-chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 8px 18px var(--primary-glow); }
.st-chip.is-active b { background: rgba(255,255,255,.22); }
.st-table-wrap { border-radius: 22px; background: #fff; border: 1px solid #EEF1F6; box-shadow: 0 14px 34px rgba(15,23,42,.06); overflow: hidden; }
.st-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.st-table thead th { position: sticky; top: 0; background: linear-gradient(180deg, var(--primary), var(--primary-hover)); color: var(--on-primary); text-align: left; font-weight: 700; font-size: 14.5px; padding: 15px 14px; white-space: nowrap; }
.st-table tbody td { padding: 12px 14px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.st-table tbody tr:nth-child(even) { background: #FAFBFD; }
.st-table tbody tr:hover { background: var(--primary-wash); }
.st-table tbody tr.is-new { animation: nl-in .45s both; }
.st-sl { color: var(--muted); width: 60px; }
.st-person { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 220px; }
.st-person:hover { color: var(--primary-ink); }
.st-person strong { display: block; font-weight: 700; line-height: 1.35; }
.st-person small { color: var(--muted); font-size: 13px; }
.st-avatar { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #DBEAFE; color: #1D4ED8; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.st-avatar--f { background: #FCE7F3; color: #BE185D; }
.st-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.st-roll { display: inline-flex; min-width: 36px; height: 30px; padding: 0 8px; align-items: center; justify-content: center; border-radius: 8px; background: var(--primary-soft); color: var(--primary-ink); }
.st-sex { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.st-sex--m { background: #DBEAFE; color: #1D4ED8; } .st-sex--f { background: #FCE7F3; color: #BE185D; }
.st-act { text-align: right; }
.st-view { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 10px; border: 1px solid var(--primary-tint); color: var(--primary-ink); font-weight: 600; font-size: 14px; white-space: nowrap; }
.st-view:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
/* phones and small tablets: each student becomes a card */
@media (max-width: 900px) {
  .st-table-wrap { background: none; border: 0; box-shadow: none; overflow: visible; }
  .st-table thead { display: none; }
  .st-table, .st-table tbody { display: block; }
  .st-table tbody tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 12px; padding: 16px; margin-bottom: 12px; border-radius: 18px; background: #fff !important; border: 1px solid #EEF1F6; box-shadow: 0 8px 20px rgba(15,23,42,.06); }
  .st-table tbody td { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; font-size: 14.5px; }
  .st-table tbody td[data-label]::before { content: attr(data-label); font-size: 12px; color: var(--muted); font-weight: 600; }
  .st-sl { display: none !important; }
  .st-who { grid-column: 1 / -1; padding-bottom: 10px !important; border-bottom: 1px dashed var(--line) !important; }
  .st-act { grid-column: 1 / -1; text-align: left; }
  .st-view { width: 100%; justify-content: center; }
}

/* ---------- student profile ---------- */
.sp { max-width: 980px; }
.sp-back { display: inline-flex; margin-bottom: 18px; font-weight: 600; }
.sp-card { border-radius: 28px; background: #fff; border: 1px solid #EEF1F6; box-shadow: 0 24px 60px rgba(15,23,42,.08); overflow: hidden; }
.sp-head { display: flex; align-items: center; gap: 26px; padding: 34px 38px; background: linear-gradient(135deg, var(--primary-wash), #fff); border-bottom: 1px solid var(--line-2); }
.sp-photo { position: relative; flex: none; width: 128px; height: 148px; border-radius: 22px; overflow: hidden; background: #DBEAFE; color: #1D4ED8; display: inline-flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 800; border: 4px solid #fff; box-shadow: 0 14px 30px rgba(15,23,42,.14); }
.sp-photo--f { background: #FCE7F3; color: #BE185D; }
.sp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sp-who h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.sp-alt { margin: 4px 0 0; color: var(--muted); }
.sp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sp-tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.sp-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 14px; margin: 0; padding: 30px 38px; }
.sp-facts div { padding: 14px 16px; border-radius: 14px; background: #F7F9FC; border: 1px solid var(--line-2); }
.sp-facts dt { font-size: 13px; color: var(--muted); font-weight: 600; } .sp-facts dd { margin: 4px 0 0; font-size: 17px; font-weight: 700; }
.sp-subjects { padding: 0 38px 34px; }
.sp-subjects h3 { font-size: 18px; margin-bottom: 12px; }
.sp-subjects ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-subjects li { padding: 7px 14px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-ink); font-weight: 600; font-size: 14.5px; }
.sp-subjects li.is-optional { background: #FEF3C7; color: #92400E; }
.sp-subjects small { font-weight: 500; opacity: .8; }
@media (max-width: 639px) { .sp-head { flex-direction: column; text-align: center; padding: 26px 18px; } .sp-tags { justify-content: center; } .sp-facts { padding: 20px 16px; grid-template-columns: 1fr 1fr; } .sp-subjects { padding: 0 16px 24px; } }

/* ---------- student filter v2 ---------- */
.st-filter { grid-template-columns: repeat(2, 1fr); padding: 20px; gap: 14px; }
@media (min-width: 760px) { .st-filter { grid-template-columns: repeat(4, 1fr); } .st-f--search { grid-column: 1 / -1; } }
@media (min-width: 1200px) { .st-filter { grid-template-columns: 1fr 1fr 1fr 1fr 1.7fr; } .st-f--search { grid-column: auto; } }
.st-f > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.st-f > span:first-child svg { width: 15px; height: 15px; color: var(--primary-ink); }
.st-search { position: relative; display: block; }
.st-search input { width: 100%; padding-right: 56px; }
.st-search__btn { position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 14px var(--primary-glow); }
.st-search__btn:hover { background: var(--primary-hover); }
.st-filter.is-busy { opacity: .6; pointer-events: none; }
.st-summary { justify-content: space-between; }
.st-seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px; background: #fff; border: 1px solid #EEF1F6; box-shadow: 0 6px 16px rgba(15,23,42,.05); }
.st-seg a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.st-seg a b { padding: 1px 9px; border-radius: 999px; background: var(--line-2); font-size: 13px; }
.st-seg a:hover { background: var(--line-2); }
.st-seg a.is-active { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 14px var(--primary-glow); }
.st-seg a.is-active b { background: rgba(255,255,255,.22); }
.st-seg a.st-seg--m:not(.is-active) b { background: #DBEAFE; color: #1D4ED8; }
.st-seg a.st-seg--f:not(.is-active) b { background: #FCE7F3; color: #BE185D; }
.st-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); border: 1px solid var(--primary-tint); font-weight: 600; font-size: 13.5px; }
.st-tag span { font-size: 11px; opacity: .7; }
.st-tag:hover { background: #FEE2E2; border-color: #FCA5A5; color: #B91C1C; }
@media (max-width: 639px) { .st-filter { grid-template-columns: 1fr 1fr; padding: 14px; } .st-f--search { grid-column: 1 / -1; } .st-summary { flex-direction: column; align-items: stretch; } .st-seg { justify-content: space-between; } .st-seg a { flex: 1; justify-content: center; padding: 8px 6px; } }

/* ---------- document table (menu file lists, results) ---------- */
.dt-wrap { max-width: 1200px; }
.dt { border-radius: 24px; background: #fff; border: 1px solid #EEF1F6; box-shadow: 0 18px 44px rgba(15,23,42,.07); overflow: hidden; }
.dt__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 24px 28px; background: linear-gradient(135deg, var(--primary-wash), #fff); border-bottom: 1px solid var(--line-2); }
.dt__title { margin: 0 0 8px; font-size: clamp(19px, 2vw, 24px); font-weight: 800; }
.dt__count { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 13.5px; font-weight: 600; box-shadow: 0 6px 14px var(--primary-glow); }
.dt__count b { font-size: 15px; }
.dt__search { position: relative; display: flex; align-items: center; flex: 0 1 320px; }
.dt__search svg { position: absolute; left: 14px; color: var(--muted); }
.dt__search input { width: 100%; height: 46px; padding: 0 14px 0 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; }
.dt__search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }
.dt__cols, .dt__row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 90px 150px 150px; align-items: center; gap: 16px; padding: 0 28px; }
.dt__cols { padding-top: 12px; padding-bottom: 12px; background: #F8FAFC; border-bottom: 1px solid var(--line-2); font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.lang-bn .dt__cols { text-transform: none; letter-spacing: 0; font-size: 14px; }
.dt__list { list-style: none; margin: 0; padding: 0; }
.dt__row { padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); transition: background .15s; }
.dt__row:last-child { border-bottom: 0; }
.dt__row:hover { background: var(--primary-wash); }
.dt__no { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(150deg, var(--primary), var(--primary-hover)); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; box-shadow: 0 6px 14px var(--primary-glow); }
.dt__name { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dt__name a, .dt__name { font-family: var(--font-bn); font-weight: 700; font-size: 16.5px; line-height: 1.5; color: var(--ink); }
.dt__name a:hover { color: var(--primary-ink); }
.dt__date-m { display: none; font-family: var(--font); font-weight: 500; font-size: 13px; color: var(--muted); }
.dt__date { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14.5px; }
.dt__date svg { color: var(--primary-ink); }
.dt-type { display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: 800; letter-spacing: .03em; }
.dt-type--pdf { background: #FEE2E2; color: #B91C1C; } .dt-type--doc { background: #DBEAFE; color: #1D4ED8; } .dt-type--xls { background: #DCFCE7; color: #15803D; }
.dt-type--img { background: #F3E8FF; color: #7E22CE; } .dt-type--link { background: #E0F2FE; color: #0369A1; } .dt-type--file { background: var(--line-2); color: var(--ink-2); }
.dt__act { display: flex; justify-content: flex-end; gap: 8px; }
.dt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 10px; font-weight: 600; font-size: 14px; transition: background .15s, color .15s, border-color .15s; }
.dt-btn--view { padding: 0 14px; border: 1px solid var(--primary-tint); color: var(--primary-ink); background: #fff; }
.dt-btn--view:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.dt-btn--dl { width: 40px; border: 1px solid var(--line); color: var(--ink-2); background: #fff; }
.dt-btn--dl:hover { border-color: var(--primary); color: var(--primary-ink); }
.dt__none { padding: 26px; text-align: center; color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .dt__cols { display: none; }
  .dt__row { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "no name" "no meta" "act act"; gap: 6px 14px; padding: 16px 18px; }
  .dt__no { grid-area: no; align-self: start; } .dt__name { grid-area: name; }
  .dt__type { grid-area: meta; } .dt__date { display: none; } .dt__date-m { display: block; }
  .dt__act { grid-area: act; justify-content: stretch; margin-top: 6px; } .dt-btn--view { flex: 1; }
  .dt__head { padding: 18px; } .dt__search { flex-basis: 100%; }
}

/* ---------- mobile header: one slim top bar, logins move into the menu ---------- */
.hide-sm-flex { display: none !important; }
@media (min-width: 640px) { .hide-sm-flex { display: inline-flex !important; } }
.pay-mini { display: none; }
@media (max-width: 639px) {
  .topbar__inner { min-height: 40px; padding-top: 6px; padding-bottom: 6px; flex-wrap: nowrap; }
  .topbar .topbar__group { gap: 8px; flex-wrap: nowrap; }
  .topbar .lang-switch { height: 28px; padding: 0 10px; }
  .pill--eiin { font-size: 12px; padding: 2px 9px; }
  .site-header__inner { min-height: 62px; gap: 10px; }
  .site-header .brand__logo { width: 38px; height: 38px; }
  .site-header .brand__name { font-size: 15.5px; }
  .header-actions { gap: 8px; }
  .pay-mini { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 14px var(--primary-glow); }
  .pay-mini svg { width: 20px; height: 20px; }
  .menu-toggle { border-radius: 12px; }
}
.drawer__foot--stack { flex-direction: column; }
.drawer__foot--stack > .btn { width: 100%; gap: 8px; }
.drawer__logins { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer__logins .btn { gap: 6px; }

/* document table header: title left, total + search right */
.dt__intro { min-width: 0; }
.dt__title { margin: 0; }
.dt__updated { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.dt__updated svg { color: var(--primary-ink); }
.dt__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dt__stat { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 18px 0 8px; border-radius: 14px; background: #fff; border: 1px solid var(--primary-tint); box-shadow: 0 6px 16px var(--primary-glow); }
.dt__stat-icon { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(150deg, var(--primary), var(--primary-hover)); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; }
.dt__stat-text { display: flex; flex-direction: column; line-height: 1.1; }
.dt__stat-text b { font-size: 22px; font-weight: 800; color: var(--primary-ink); }
.dt__stat-text small { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.dt__search { flex: 0 1 300px; }
.dt__search input { height: 54px; border-radius: 14px; }
@media (max-width: 860px) { .dt__tools { width: 100%; } .dt__search { flex: 1 1 200px; } .dt__stat, .dt__search input { height: 48px; } }

/* document table header v3: one joined control — total | search */
.dt__head { align-items: center; flex-wrap: nowrap; }
.dt__bar { flex: 0 1 470px; display: flex; align-items: stretch; height: 56px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(15,23,42,.06); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.dt__bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }
.dt__bar--solo { flex: 0 0 auto; }
.dt__total { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px 0 8px; background: var(--primary-wash); border-right: 1px solid var(--line); white-space: nowrap; }
.dt__bar--solo .dt__total { border-right: 0; }
.dt__total-icon { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(150deg, var(--primary), var(--primary-hover)); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 12px var(--primary-glow); }
.dt__total b { font-size: 21px; font-weight: 800; color: var(--primary-ink); }
.dt__total small { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.dt__find { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; }
.dt__find svg { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.dt__find input { width: 100%; height: 100%; border: 0; background: transparent; padding: 0 16px 0 46px; font-size: 15px; color: var(--ink); }
.dt__find input:focus { outline: none; }
@media (max-width: 860px) {
  .dt__head { flex-wrap: wrap; }
  .dt__bar { flex: 1 1 100%; height: 52px; }
  .dt__total { padding-right: 14px; } .dt__total small { display: none; }
}

/* ---------- contact page ---------- */
.ct { max-width: 1320px; }
.ct__grid { display: grid; gap: 30px; align-items: start; }
@media (min-width: 1000px) { .ct__grid { grid-template-columns: 1.05fr 1fr; gap: 36px; } }
.ct-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ct-card { position: relative; overflow: hidden; display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 22px; background: #fff; border: 1px solid #EEF1F6; box-shadow: 0 12px 30px rgba(15,23,42,.06); color: var(--ink); transition: transform .25s, box-shadow .25s, border-color .25s; }
.ct-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(15,23,42,.1); border-color: var(--primary-tint); color: var(--ink); }
.ct-card__icon { flex: none; width: 54px; height: 54px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary-ink); transition: background .25s, color .25s; }
.ct-card:hover .ct-card__icon { background: var(--primary); color: var(--on-primary); }
.ct-card__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ct-card__body small { font-size: 13px; font-weight: 700; color: var(--muted); }
.ct-card__body strong { font-size: 16.5px; line-height: 1.45; overflow-wrap: anywhere; }
.ct-card__body em { font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--primary-ink); margin-top: 6px; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; }
.ct-card:hover .ct-card__body em { opacity: 1; transform: none; }
.ct-card--pin { grid-column: 1 / -1; }
.ct-map { position: relative; margin-top: 18px; height: 340px; border-radius: 24px; overflow: hidden; border: 1px solid #EEF1F6; box-shadow: 0 12px 30px rgba(15,23,42,.08); background: var(--line-2); }
.ct-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.ct-map__empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); text-align: center; padding: 20px; background: repeating-linear-gradient(45deg, #F1F5F9 0 14px, #F8FAFC 14px 28px); }
.ct-map__open { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; background: #fff; color: var(--primary-ink); font-weight: 700; font-size: 14px; box-shadow: 0 6px 16px rgba(15,23,42,.15); }
.ct-form-card { position: relative; padding: 36px; border-radius: 28px; background: #fff; border: 1px solid #EEF1F6; box-shadow: 0 24px 60px rgba(15,23,42,.1); overflow: hidden; }
.ct-form-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary)); }
.ct-form-card__icon { width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(150deg, var(--primary), var(--primary-hover)); color: var(--on-primary); box-shadow: 0 10px 22px var(--primary-glow); margin-bottom: 16px; }
.ct-form-card h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; margin: 0 0 4px; }
.ct-form-card > .muted { margin: 0 0 22px; }
.ct-form { display: flex; flex-direction: column; gap: 16px; }
.ct-field { display: flex; flex-direction: column; gap: 7px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); position: relative; }
.ct-field i { color: #DC2626; font-style: normal; }
.ct-field input, .ct-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #F8FAFC; padding: 14px 16px; font-size: 15.5px; color: var(--ink); font-weight: 400; transition: border-color .15s, box-shadow .15s, background .15s; }
.ct-field textarea { resize: vertical; min-height: 140px; line-height: 1.7; }
.ct-field input:focus, .ct-field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-glow); }
.ct-field input.is-bad, .ct-field textarea.is-bad { border-color: #F87171; background: #FEF2F2; }
.ct-count { align-self: flex-end; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.ct-submit { height: 56px; border-radius: 14px; font-size: 16.5px; gap: 10px; margin-top: 4px; }
.ct-submit[disabled] { opacity: .7; cursor: wait; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-alert { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-weight: 600; }
.ct-alert--ok { background: #DCFCE7; color: #166534; } .ct-alert--err { background: #FEE2E2; color: #991B1B; }
@media (max-width: 639px) { .ct-form-card { padding: 24px 18px; border-radius: 22px; } .ct-map { height: 260px; } .ct-card__body em { opacity: 1; transform: none; } }


/* ---------- people cards as links, successful student, holidays ---------- */
a.member--link { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.member--link:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,23,42,.1); }
.ss-card { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 28px; border-radius: 24px; background: #fff; border: 1px solid #EEF1F6; box-shadow: 0 16px 40px rgba(15,23,42,.06); }
.ss-card__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; color: var(--primary-ink); font-size: 44px; font-weight: 800; }
.ss-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ss-card__name { margin: 0 0 4px; font-size: 26px; } .ss-card__role { margin: 0 0 16px; color: var(--primary-ink); font-weight: 600; }
.ss-card .sp-facts { margin-bottom: 18px; }
@media (max-width: 639px) { .ss-card { grid-template-columns: 1fr; padding: 20px; } .ss-card__photo { max-width: 220px; } }
.hd-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-bottom: 18px; }
.hd-filter label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hd-filter input { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; background: #fff; }
.hd-filter__count { margin-left: auto; font-size: 13.5px; }
.st-table tr.is-past td { color: var(--muted); }

/* ---------- careers (job application) ---------- */
.jb { max-width: 1040px; }
.jb-card { background: #fff; border: 1px solid #EEF1F6; border-radius: 22px; padding: 26px; box-shadow: 0 16px 40px rgba(15,23,42,.06); }
.jb-links { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.jb-empty { text-align: center; } .jb-empty h2 { margin: 0 0 6px; }
.jb-title { margin: 0 0 6px; text-align: center; font-size: 22px; }
.jb-note { margin: 0 0 20px; text-align: center; color: #B91C1C; font-size: 14px; }
.jb-grid { display: grid; gap: 14px 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.jb-grid--gap { margin-top: 20px; }
.jb-f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.jb-f--wide { grid-column: 1 / -1; }
.jb-f i, .jb-sub i { color: #DC2626; font-style: normal; }
.jb-f input:not([type=checkbox]), .jb-f select, .jb-f textarea, .jb-edu__row input, .jb-edu__row select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 400; background: #F8FAFC; color: var(--ink); }
.jb-f input:focus, .jb-f select:focus, .jb-f textarea:focus, .jb-edu__row input:focus, .jb-edu__row select:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-glow); }
.jb-f input[type=file] { padding: 8px; background: #fff; }
.jb-hint { margin: -6px 0 0; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.jb-same { font-weight: 500; color: var(--muted); margin-left: 8px; }
.jb-sub { margin: 24px 0 10px; font-size: 16px; }
.jb-edu { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.jb-edu__row { display: grid; gap: 8px; grid-template-columns: 1.1fr 1.1fr 1.6fr 1fr 1.2fr .9fr .7fr 36px; align-items: center; padding: 10px; border: 1px solid var(--line-2); border-radius: 14px; }
.jb-x { width: 36px; height: 36px; border: 0; border-radius: 10px; background: #FEE2E2; color: #B91C1C; cursor: pointer; font-weight: 800; }
@media (max-width: 899px) { .jb-edu__row { grid-template-columns: 1fr 1fr; } .jb-x { justify-self: end; } }
.jb-agree { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 14px; font-weight: 600; }
.jb-err { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #FEF2F2; color: #B91C1C; font-weight: 600; }
.jb-lookup { max-width: 520px; margin: 0 auto; text-align: center; } .jb-lookup .ct-form { text-align: left; margin-top: 14px; } .jb-lookup h2 { margin: 0 0 4px; }
.jb-lookup__back { margin-top: 14px; font-size: 14px; }
.jb-doc__head { display: grid; grid-template-columns: 70px 1fr 90px; gap: 14px; align-items: center; border-bottom: 2px solid var(--line); padding-bottom: 12px; }
.jb-doc__head strong { display: block; font-size: 19px; text-align: center; } .jb-doc__head small { display: block; text-align: center; color: var(--muted); }
.jb-doc__logo { width: 64px; height: 64px; object-fit: contain; } .jb-doc__photo { width: 90px; height: 108px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; }
.jb-doc__title { text-align: center; font-size: 18px; margin: 16px 0 12px; } .jb-doc__title span { color: var(--primary-ink); }
.jb-scroll { overflow-x: auto; }
.jb-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 14px; }
.jb-table td, .jb-table th { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.jb-table__cap { text-align: center !important; background: var(--primary-wash); color: var(--primary-ink); font-size: 15px; }
.jb-table__l { width: 22%; background: #F8FAFC; font-weight: 600; color: var(--ink-2); }
.jb-pill { padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; } .jb-pill--ok { background: #DCFCE7; color: #15803D; } .jb-pill--wait { background: #FEF3C7; color: #B45309; }
.jb-signs { display: flex; justify-content: space-between; margin-top: 30px; text-align: center; font-size: 13px; }
.jb-signs div { min-width: 180px; display: flex; flex-direction: column; align-items: center; gap: 4px; } .jb-signs img { max-width: 140px; max-height: 60px; object-fit: contain; }
.jb-signs span { border-top: 1px dashed #64748B; padding-top: 4px; width: 100%; }
.jb-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin-top: 18px; }
.jb-pay { display: inline-flex; gap: 12px; align-items: center; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.jb-pay b { color: var(--primary-ink); }
@media print { .site-header, .topbar, .site-footer, .no-print, .jb-actions, .to-top, .scroll-progress, .page-hero { display: none !important; } .jb-card { box-shadow: none; border: 0; padding: 0; } }
.jb-edu__row--3 { grid-template-columns: 1fr 1.6fr 2fr 36px; }
@media (max-width: 899px) { .jb-edu__row--3 { grid-template-columns: 1fr 1fr; } }
.prg-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 6px 0 4px; }
.prg-checks label { display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #F8FAFC; }
.prg-checks input[type=text], .prg-checks input:not([type]) { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; min-width: 220px; }

/* ---------- departments + scholarship ---------- */
.dp-faculty { margin-bottom: 34px; } .dp-faculty__title { font-size: 21px; margin: 0 0 14px; padding-left: 12px; border-left: 4px solid var(--primary); }
.dp-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.dp-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 20px; color: #fff; text-decoration: none; min-height: 150px; transition: transform .2s, box-shadow .2s; }
.dp-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(15,23,42,.18); }
.dp-card--t1 { background: linear-gradient(140deg, var(--tone-1-a), var(--tone-1-b)); } .dp-card--t2 { background: linear-gradient(140deg, var(--tone-2-a), var(--tone-2-b)); }
.dp-card--t3 { background: linear-gradient(140deg, var(--tone-3-a), var(--tone-3-b)); } .dp-card--t4 { background: linear-gradient(140deg, var(--tone-4-a), var(--tone-4-b)); }
.dp-card--t5 { background: linear-gradient(140deg, var(--tone-5-a), var(--tone-5-b)); } .dp-card--t6 { background: linear-gradient(140deg, var(--tone-6-a), var(--tone-6-b)); }
.dp-card__icon { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.16); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.dp-card strong { font-size: 17px; } .dp-card__go { margin-top: auto; font-size: 13px; opacity: .85; }
.dp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.dp-tabs a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.dp-tabs a[aria-current] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); } .dp-tabs__all { margin-left: auto; }
.dp-faculty-name { margin: 0 0 16px; } .dp-sub { font-size: 18px; margin: 22px 0 12px; }
.dp-overview { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid #EEF1F6; }
.sc-intro { padding: 18px 20px; border-radius: 16px; background: var(--primary-wash); border: 1px solid var(--primary-tint); margin-bottom: 18px; text-align: justify; }
.hd-filter select { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; background: #fff; }

/* ---------- homepage design 2: madrasah (website_template = 2) — modern, light Islamic touch ---------- */
.mh { --gold: #C9A227; --gold-soft: #F6EBC4; --girih: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1.2'%3E%3Cpath d='M32 6l7.5 18.5L58 32l-18.5 7.5L32 58l-7.5-18.5L6 32l18.5-7.5z'/%3E%3Cpath d='M13.6 13.6L32 21.2l18.4-7.6L42.8 32l7.6 18.4L32 42.8l-18.4 7.6L21.2 32z'/%3E%3Ccircle cx='32' cy='32' r='6'/%3E%3C/g%3E%3C/svg%3E"); }
.mh-hero { position: relative; overflow: hidden; color: #fff; padding: 34px 0 70px; background: radial-gradient(120% 90% at 85% 10%, var(--primary) 0%, var(--primary-deep) 60%, #0b1220 120%); }
.mh-hero__pattern { position: absolute; inset: 0; background-image: var(--girih); background-size: 64px 64px; -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 70%, transparent); mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 70%, transparent); }
.mh-hero .wrap { position: relative; }
.mh-bismillah { margin: 0 0 26px; text-align: center; font-family: Amiri, "Traditional Arabic", serif; font-size: clamp(26px, 4.4vw, 44px); line-height: 1.4; color: var(--gold); text-shadow: 0 2px 18px rgba(201,162,39,.25); }
.mh-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.mh-dates { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mh-dates span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 13.5px; font-weight: 600; backdrop-filter: blur(6px); }
.mh-dates__hijri { color: var(--gold-soft); border-color: rgba(201,162,39,.45) !important; }
.mh-hero__title { margin: 0; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.15; font-weight: 800; }
.mh-hero__alt { display: block; margin-top: 8px; font-size: .5em; font-weight: 600; opacity: .85; }
.mh-hero__eiin { margin: 10px 0 0; opacity: .8; font-weight: 600; letter-spacing: .04em; }
.mh-rule { display: flex; align-items: center; gap: 10px; margin: 22px 0; width: 220px; }
.mh-rule::before, .mh-rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.mh-rule::after { background: linear-gradient(90deg, var(--gold), transparent); }
.mh-rule i { width: 12px; height: 12px; transform: rotate(45deg); border: 2px solid var(--gold); }
.mh-stats { display: flex; gap: 30px; margin: 0 0 26px; padding: 0; }
.mh-stats div { display: flex; flex-direction: column-reverse; } .mh-stats dd { margin: 0; font-size: 30px; font-weight: 800; color: var(--gold-soft); } .mh-stats dt { font-size: 13.5px; opacity: .8; }
.mh-btn { border-radius: 999px; font-weight: 700; } .mh-btn--gold { background: var(--gold); color: #1b1404; border: 0; } .mh-btn--gold:hover { background: #dbb431; }
.mh-btn--line { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); } .mh-btn--line:hover { background: rgba(255,255,255,.1); }
.mh-arch { position: relative; justify-self: center; width: min(100%, 440px); }
.mh-arch__frame { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 26px 26px; overflow: hidden; border: 6px solid rgba(255,255,255,.12); outline: 2px solid var(--gold); outline-offset: 8px; box-shadow: 0 30px 60px rgba(0,0,0,.35); background: rgba(255,255,255,.06); }
.mh-arch__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.mh-arch__slide.is-on { opacity: 1; } .mh-arch__slide img { width: 100%; height: 100%; object-fit: cover; }
.mh-arch__slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px; background: linear-gradient(transparent, rgba(0,0,0,.65)); font-weight: 600; text-align: center; }
.mh-arch__dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.mh-arch__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 2px; transform: rotate(45deg); background: rgba(255,255,255,.4); cursor: pointer; }
.mh-arch__dots button[aria-current] { background: var(--gold); }
@media (max-width: 899px) { .mh-hero__grid { grid-template-columns: 1fr; gap: 34px; } .mh-hero__text { text-align: center; } .mh-dates, .mh-stats, .mh .mh-hero .btn-row { justify-content: center; } .mh-rule { margin-inline: auto; } .mh-arch { width: min(100%, 340px); } }
@media (max-width: 639px) { .mh-hero { padding: 24px 0 56px; } .mh-stats { gap: 20px; } .mh-stats dd { font-size: 24px; } }
/* Islamic touches on the shared sections */
.mh .news-strip { margin-top: -30px; }
.mh .section-head .h2 { position: relative; padding-bottom: 14px; }
.mh .section-head--center .h2::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 90px; height: 10px; transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%, var(--gold) 0 3px, transparent 3.5px), linear-gradient(90deg, transparent, var(--gold) 30%, transparent 46%, transparent 54%, var(--gold) 70%, transparent) center / 100% 1.5px no-repeat; }
.mh .eyebrow, .mh .badge--outline { border-color: var(--gold) !important; }
.mh .section--sand { position: relative; background-color: var(--primary-wash); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23C9A227' stroke-opacity='.16' stroke-width='1.2'%3E%3Cpath d='M32 6l7.5 18.5L58 32l-18.5 7.5L32 58l-7.5-18.5L6 32l18.5-7.5z'/%3E%3Cpath d='M13.6 13.6L32 21.2l18.4-7.6L42.8 32l7.6 18.4L32 42.8l-18.4 7.6L21.2 32z'/%3E%3C/g%3E%3C/svg%3E"); background-size: 64px 64px; }
.mh .why { border-radius: 26px 26px 18px 18px; }
.mh .person-card img, .mh .person-card__initials { border-radius: 999px 999px 14px 14px; }
.mh .welcome__frame { border-radius: 999px 999px 26px 26px; outline: 2px solid var(--gold); outline-offset: 8px; }
.mh .nb { border-color: var(--gold); }
.mh-dates__greet { background: var(--gold) !important; color: #1b1404; border-color: var(--gold) !important; }
.mh-skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; fill: #fff; opacity: .07; pointer-events: none; }
.mh-ayah { padding: 34px 0 6px; }
.mh-ayah__card { position: relative; margin: 0 auto; max-width: 760px; padding: 30px 28px 22px; text-align: center; border-radius: 26px; background: #fff; border: 1px solid var(--gold-soft); box-shadow: 0 18px 40px rgba(15,23,42,.06); }
.mh-ayah__card::before, .mh-ayah__card::after { content: ""; position: absolute; top: 50%; width: 64px; height: 64px; transform: translateY(-50%); opacity: .35; background: var(--girih-gold) center / 64px no-repeat; }
.mh-ayah__card::before { left: 14px; } .mh-ayah__card::after { right: 14px; }
.mh-ayah__star { position: absolute; top: -14px; left: 50%; width: 26px; height: 26px; transform: translateX(-50%) rotate(45deg); background: var(--gold); border: 4px solid #fff; border-radius: 4px; }
.mh-ayah__card blockquote { margin: 0; }
.mh-ayah__ar { margin: 0 0 8px; font-family: Amiri, "Traditional Arabic", serif; font-size: clamp(28px, 4vw, 40px); line-height: 1.6; color: var(--primary-ink); }
.mh-ayah__tr { margin: 0; font-size: 16.5px; color: var(--ink-2); }
.mh-ayah__card figcaption { margin-top: 10px; font-size: 13px; font-weight: 700; color: #9a7b14; letter-spacing: .02em; }
.mh { --girih-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23C9A227' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M36 27.5A13 13 0 1 1 29 4.6a10.2 10.2 0 0 0 7 22.9z' fill='%23C9A227' fill-opacity='.28'/%3E%3Cpath d='M46.0 4.5L47.6 8.7L52.2 9.0L48.7 11.9L49.8 16.3L46.0 13.8L42.2 16.3L43.3 11.9L39.8 9.0L44.4 8.7z' fill='%23C9A227' fill-opacity='.28'/%3E%3Cpath d='M11 39.5l21 6 21-6-4-6-17 5-17-5z'/%3E%3Cpath d='M32 38.5v7'/%3E%3Cpath d='M10 58l44-17M54 58L10 41'/%3E%3Ccircle cx='32' cy='49.5' r='2.6' fill='%23C9A227' fill-opacity='.5'/%3E%3C/g%3E%3C/svg%3E"); }
/* --girih-gold now holds the emblem (crescent + star over an open Quran on a rehal) — used by the dividers, verse card, message corners and the fan hub */
@media (max-width: 639px) { .mh-ayah__card::before, .mh-ayah__card::after { display: none; } .mh-skyline { height: 70px; } }

/* madrasah hero slider v2: pointed mihrab arch with a gold rim; landscape photos are shown whole (no cropping) over a blurred fill */
.mh { --arch-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V34C0 18 14 9 30 6 40 4 47 2 50 0c3 2 10 4 20 6 16 3 30 12 30 28v66z'/%3E%3C/svg%3E"); }
.mh-hero__grid { grid-template-columns: 1fr 1.08fr; }
.mh-arch { position: relative; width: min(100%, 580px); justify-self: end; padding: 12px; }
.mh-arch__rim { position: absolute; inset: 0; background: linear-gradient(160deg, #F3D77A, var(--gold) 35%, #8a6a10 70%, #E9C75A);
  -webkit-mask: var(--arch-mask) center / 100% 100% no-repeat; mask: var(--arch-mask) center / 100% 100% no-repeat; filter: drop-shadow(0 26px 40px rgba(0,0,0,.35)); }
.mh-arch__frame { position: relative; aspect-ratio: 5 / 4; border: 0; outline: 0; border-radius: 0; box-shadow: none; background: #0f172a;
  -webkit-mask: var(--arch-mask) center / 100% 100% no-repeat; mask: var(--arch-mask) center / 100% 100% no-repeat; }
.mh-arch__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; }
.mh-arch__slide.is-on { opacity: 1; }
.mh-arch__slide .mh-arch__fill { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(22px) brightness(.55) saturate(1.2); }
.mh-arch__slide .mh-arch__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18% 4% 4%; }
.mh-arch__slide.is-on .mh-arch__img { animation: mh-zoom 7s ease-out both; }
@keyframes mh-zoom { from { transform: scale(1.04); } to { transform: scale(1); } }
.mh-arch__slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 16px 16px; background: none; display: flex; justify-content: center; }
.mh-arch__slide figcaption span { max-width: 100%; padding: 7px 16px; border-radius: 999px; background: rgba(15,23,42,.72); border: 1px solid rgba(201,162,39,.55); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(6px); }
.mh-arch__lamp { position: absolute; top: 6%; left: 50%; transform: translateX(-50%); width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #1b1404; background: radial-gradient(circle, #F6E39A, var(--gold)); box-shadow: 0 0 22px rgba(246,227,154,.7); }
.mh-arch__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.mh-arch__btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(201,162,39,.7); background: rgba(255,255,255,.08); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; }
.mh-arch__btn:hover { background: var(--gold); color: #1b1404; }
.mh-arch__dots { display: flex; gap: 8px; margin: 0; }
.mh-arch__dots button { width: 10px; height: 10px; transition: background .2s, transform .2s; }
.mh-arch__dots button[aria-current] { transform: rotate(45deg) scale(1.25); }
@media (max-width: 899px) { .mh-arch { justify-self: center; width: min(100%, 460px); } }
@media (prefers-reduced-motion: reduce) { .mh-arch__slide.is-on .mh-arch__img { animation: none; } }

/* madrasah slider v2.1: the gold rim wraps only the photo (not the buttons); phone layout */
.mh-arch { padding: 0; }
.mh-arch__stage { position: relative; padding: 12px; }
@media (max-width: 899px) {
  .mh-hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .mh-arch { justify-self: center; width: min(100%, 460px); }
}
@media (max-width: 639px) {
  .mh-bismillah { font-size: 28px; margin-bottom: 18px; }
  .mh-dates { gap: 6px; }
  .mh-dates span { padding: 6px 11px; font-size: 12.5px; white-space: nowrap; }
  .mh-dates svg { width: 13px; height: 13px; }
  .mh-hero__title { font-size: 30px; }
  .mh-hero__alt { font-size: 17px; }
  .mh-rule { width: 180px; margin: 16px auto; }
  .mh-stats { gap: 18px; margin-bottom: 20px; }
  .mh-stats dd { font-size: 24px; } .mh-stats dt { font-size: 12.5px; }
  .mh-hero .btn-row { flex-wrap: nowrap; gap: 8px; }
  .mh-hero .mh-btn { flex: 1 1 0; padding: 12px 10px; font-size: 14.5px; min-height: 0; justify-content: center; white-space: nowrap; }
  .mh-arch { width: 100%; }
  .mh-arch__stage { padding: 8px; }
  .mh-arch__frame { aspect-ratio: 4 / 3.4; }
  .mh-arch__slide .mh-arch__img { padding: 20% 3% 3%; }
  .mh-arch__lamp { width: 30px; height: 30px; top: 5%; }
  .mh-arch__lamp svg { width: 15px; height: 15px; }
  .mh-arch__slide figcaption span { font-size: 12.5px; padding: 5px 12px; }
  .mh-arch__btn { width: 36px; height: 36px; }
  .mh-skyline { height: 60px; }
}

/* madrasah: leaders' messages — mihrab photo + framed message panel with girih corners */
.mh-lead { background: linear-gradient(180deg, #fff, var(--primary-wash)); }
.mh-lead__tabs { justify-content: center; }
.mh-lead__tabs [role=tab] { border-radius: 999px; border: 1.5px solid var(--gold-soft); background: #fff; }
.mh-lead__tabs [role=tab][aria-selected="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--gold); box-shadow: 0 8px 20px var(--primary-glow); }
.mh-lead__card { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: center; max-width: 1040px; margin: 0 auto; }
.mh-lead__person { display: flex; flex-direction: column; align-items: center; text-align: center; }
.mh-lead__arch { position: relative; width: 240px; aspect-ratio: 4 / 5; padding: 8px; background: linear-gradient(160deg, #F3D77A, var(--gold) 40%, #8a6a10 75%, #E9C75A);
  -webkit-mask: var(--arch-mask) center / 100% 100% no-repeat; mask: var(--arch-mask) center / 100% 100% no-repeat; filter: drop-shadow(0 18px 30px rgba(15,23,42,.18)); }
.mh-lead__arch img, .mh-lead__nophoto { width: 100%; height: 100%; object-fit: cover; object-position: top; background: var(--primary-soft);
  -webkit-mask: var(--arch-mask) center / 100% 100% no-repeat; mask: var(--arch-mask) center / 100% 100% no-repeat; }
.mh-lead__nophoto { display: flex; align-items: center; justify-content: center; color: var(--primary-ink); }
.mh-lead__name { margin-top: 18px; font-size: 22px; font-weight: 800; color: var(--ink); }
.mh-lead__role { margin-top: 4px; color: #9a7b14; font-weight: 700; letter-spacing: .02em; }
.mh-lead__rule { margin: 14px auto 0; width: 150px; }
.mh-lead__panel { position: relative; padding: 46px 42px 34px; border-radius: 22px; background: #fff; border: 1.5px solid var(--gold-soft); box-shadow: 0 22px 50px rgba(15,23,42,.07);
  background-image: radial-gradient(circle at 100% 0, var(--primary-wash), transparent 45%); }
.mh-lead__panel::before { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(201,162,39,.4); border-radius: 16px; pointer-events: none; }
.mh-lead__corner { position: absolute; width: 46px; height: 46px; background: var(--girih-gold) center / 46px no-repeat; opacity: .55; }
.mh-lead__corner--tl { top: -10px; left: -10px; } .mh-lead__corner--tr { top: -10px; right: -10px; }
.mh-lead__corner--bl { bottom: -10px; left: -10px; } .mh-lead__corner--br { bottom: -10px; right: -10px; }
.mh-lead__star { position: absolute; top: -13px; left: 50%; width: 24px; height: 24px; transform: translateX(-50%) rotate(45deg); background: var(--gold); border: 4px solid #fff; border-radius: 4px; }
.mh-lead__text { position: relative; margin: 0 0 24px; font-size: 17px; line-height: 1.95; color: var(--ink-2); text-align: justify; }
.mh-lead__cta { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 899px) {
  .mh-lead__card { grid-template-columns: 1fr; gap: 26px; }
  .mh-lead__arch { width: 200px; }
  .mh-lead__panel { padding: 38px 22px 26px; }
  .mh-lead__text { font-size: 16px; line-height: 1.85; }
  .mh-lead__cta { width: 100%; justify-content: center; }
  .mh-lead__tabs { overflow-x: auto; justify-content: flex-start; flex-wrap: nowrap; scrollbar-width: none; }
  .mh-lead__tabs [role=tab] { white-space: nowrap; }
}

/* ===== madrasah homepage: Islamic look for the shared sections (CSS only — same markup, data and scripts) ===== */
/* 1. section dividers: a thin gold band with an 8-point star between sections */
.mh > section.section { position: relative; }
.mh > section.section + section.section::before { content: ""; position: absolute; top: -9px; left: 50%; z-index: 2; width: min(520px, 76%); height: 18px; transform: translateX(-50%); pointer-events: none;
  background: var(--girih-gold) center / 18px 18px no-repeat, linear-gradient(90deg, transparent, rgba(201,162,39,.55) 30%, transparent 47%, transparent 53%, rgba(201,162,39,.55) 70%, transparent) center / 100% 1.5px no-repeat; }

/* 2. notice board: an arched notice panel instead of a screwed office board */
.mh .nb-sec { background: radial-gradient(110% 80% at 50% 0%, var(--primary) 0%, var(--primary-deep) 70%); }
.mh .nb-sec::before { background: var(--girih) 0 0 / 64px 64px; opacity: .9; }
.mh .nb-sec .accent-light { background: linear-gradient(90deg, #F6E39A, var(--gold)); -webkit-background-clip: text; background-clip: text; color: var(--gold); }
.mh .nb-sec .badge--glass { border-color: rgba(201,162,39,.6); }
.mh .nb { border-radius: 260px 260px 30px 30px / 90px 90px 30px 30px; padding: 26px 18px 18px; border: 2px solid var(--gold); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.18)); box-shadow: 0 30px 70px rgba(0,0,0,.35), inset 0 0 0 6px rgba(201,162,39,.12); }
.mh .nb__screw { display: none; }
.mh .nb__inner { background: rgba(0,0,0,.22); border: 1px dashed rgba(201,162,39,.45); border-radius: 200px 200px 22px 22px / 64px 64px 22px 22px; padding-top: 40px; }
.mh .nb-feature::before { background: linear-gradient(90deg, #E9C75A, var(--gold), #8a6a10); }
.mh .nb-feature__pin { width: 24px; height: 24px; margin-left: -12px; border-radius: 4px; transform: rotate(45deg); background: var(--gold); border: 4px solid #fff; box-shadow: 0 6px 12px rgba(0,0,0,.3); }
.mh .nb-feature__pin::after { display: none; }
.mh .nb-date { background: linear-gradient(160deg, var(--primary), var(--primary-deep)); border: 1.5px solid var(--gold); border-radius: 999px 999px 12px 12px / 30px 30px 12px 12px; }
.mh .nb-date small { color: var(--gold-soft); }
.mh .nb-all { border-color: var(--gold); }

/* 3. teachers: whole card in a mihrab arch with a gold rim */
.mh .person-card { border-radius: 0; background: transparent; overflow: visible; padding: 6px; }
.mh .person-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, #F3D77A, var(--gold) 40%, #8a6a10 80%);
  -webkit-mask: var(--arch-mask) center / 100% 100% no-repeat; mask: var(--arch-mask) center / 100% 100% no-repeat; }
.mh .person-card img, .mh .person-card .person-card__initials { position: relative; border-radius: 0; background: var(--primary-deep);
  -webkit-mask: var(--arch-mask) center / 100% 100% no-repeat; mask: var(--arch-mask) center / 100% 100% no-repeat; }
.mh .person-card .person-card__initials { position: absolute; inset: 6px; color: var(--gold-soft); }
.mh .person-card__info { left: 6px; right: 6px; bottom: 6px; border-radius: 0 0 14px 14px; }
.mh .person-card:hover { box-shadow: none; filter: drop-shadow(0 14px 22px rgba(15,23,42,.22)); }

/* 4. gallery: photos framed like mosque windows (pointed arches) */
.mh .gal-sec { background: radial-gradient(40% 50% at 85% 75%, var(--primary-wash), transparent 70%), #FBF8F1; }
.mh .peek--gallery .peek__slide { border-radius: 0; box-shadow: none; -webkit-mask: var(--arch-mask) center / 100% 100% no-repeat; mask: var(--arch-mask) center / 100% 100% no-repeat; }
.mh .peek--gallery .peek__stage { filter: drop-shadow(0 26px 34px rgba(15,23,42,.2)); }
.mh .gal-nav__btn { border-color: var(--gold); }

/* 5. services fan: gold outlines and an 8-point star at the hub */
.mh .fan__petal { stroke: #F6EBC4; }
.mh .fan__hub { box-shadow: 0 0 0 10px rgba(255,255,255,.75), 0 0 0 12px rgba(201,162,39,.55), 0 24px 50px rgba(15,23,42,.18); }
.mh .fan__hub::before { border-color: rgba(201,162,39,.5); background: var(--girih-gold) center / 70% no-repeat; opacity: .35; }
.mh .fan__hub-icon { background: linear-gradient(140deg, var(--gold), #8a6a10); }

@media (max-width: 639px) {
  .mh .nb { border-radius: 140px 140px 24px 24px / 50px 50px 24px 24px; padding: 20px 10px 10px; }
  .mh .nb__inner { border-radius: 110px 110px 18px 18px / 40px 40px 18px 18px; padding-top: 30px; }
  .mh > section.section + section.section::before { width: 70%; }
}

.mh > section.section + section.section::before { top: -15px; height: 30px; background: var(--girih-gold) center / 30px 30px no-repeat, linear-gradient(90deg, transparent, rgba(201,162,39,.55) 30%, transparent 46%, transparent 54%, rgba(201,162,39,.55) 70%, transparent) center / 100% 1.5px no-repeat; }
.mh-ayah__card::before, .mh-ayah__card::after { width: 70px; height: 70px; background-size: 70px; opacity: .45; }
.mh-lead__corner { width: 40px; height: 40px; background-size: 40px; opacity: .6; }

/* madrasah ornaments v3: a different motif for each place (one repeated icon looked monotonous) */
.mh { --mh-crescent: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23C9A227' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M42 46A17 17 0 1 1 33 15.5a13.4 13.4 0 0 0 9 30.5z' fill='%23C9A227' fill-opacity='.28'/%3E%3Cpath d='M46.0 15.0L47.8 19.6L52.7 19.8L48.9 22.9L50.1 27.7L46.0 25.0L41.9 27.7L43.1 22.9L39.3 19.8L44.2 19.6z' fill='%23C9A227' fill-opacity='.28'/%3E%3C/g%3E%3C/svg%3E"); --mh-quran: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23C9A227' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 30l24 7 24-7-5-8-19 6-19-6z' fill='%23C9A227' fill-opacity='.18'/%3E%3Cpath d='M32 28v9'/%3E%3Cpath d='M8 56l48-20M56 56L8 36'/%3E%3Ccircle cx='32' cy='46' r='3' fill='%23C9A227' fill-opacity='.5'/%3E%3C/g%3E%3C/svg%3E"); --mh-lantern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23C9A227' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 4v5M26 9h12l2 6H24z'/%3E%3Cpath d='M24 15h16l-2 26H26z' fill='%23C9A227' fill-opacity='.18'/%3E%3Cpath d='M27 41h10l-2 7h-6zM32 48v6'/%3E%3Cpath d='M32 22v12M28 26c2 3 6 3 8 0'/%3E%3C/g%3E%3C/svg%3E"); --mh-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23C9A227' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 60V18C4 10 10 4 18 4h42'/%3E%3Cpath d='M12 60V24c0-7 5-12 12-12h36'/%3E%3Cpath d='M20 36c0-9 7-16 16-16'/%3E%3Ccircle cx='20' cy='20' r='3.4' fill='%23C9A227' fill-opacity='.45'/%3E%3C/g%3E%3C/svg%3E"); }
.mh > section.section + section.section::before { top: -13px; height: 26px; background: var(--mh-crescent) center / 26px 26px no-repeat, linear-gradient(90deg, transparent, rgba(201,162,39,.55) 30%, transparent 46%, transparent 54%, rgba(201,162,39,.55) 70%, transparent) center / 100% 1.5px no-repeat; }
.mh-ayah__card::before, .mh-ayah__card::after { background-image: var(--mh-quran); background-size: 64px; width: 64px; height: 64px; opacity: .45; }
.mh-ayah__card::after { transform: translateY(-50%) scaleX(-1); }
.mh-lead__corner { width: 46px; height: 46px; background: var(--mh-corner) center / 46px no-repeat; opacity: .75; }
.mh-lead__corner--tl { top: 6px; left: 6px; } .mh-lead__corner--tr { top: 6px; right: 6px; transform: scaleX(-1); }
.mh-lead__corner--bl { bottom: 6px; left: 6px; transform: scaleY(-1); } .mh-lead__corner--br { bottom: 6px; right: 6px; transform: scale(-1, -1); }
.mh .fan__hub::before { background: var(--mh-lantern) center / 46% no-repeat; opacity: .32; }

/* madrasah fan hub: the mosque icon in the gold medallion is the only motif (the faint lantern behind the text is removed) */
.mh .fan__hub::before { background: none; opacity: 1; }
.mh .fan__hub-icon { width: 64px; height: 64px; box-shadow: 0 0 0 5px rgba(201,162,39,.18), 0 10px 22px rgba(138,106,16,.35); }

/* madrasah: emergency hotlines — same information, Islamic look (CSS only) */
.mh .hl-sec { position: relative; background: radial-gradient(70% 70% at 50% 0%, var(--primary-deep) 0%, #0b1220 75%); }
.mh .hl-sec::after { content: ""; position: absolute; inset: 0; background: var(--girih) 0 0 / 64px 64px; opacity: .55; pointer-events: none;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent); mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent); }
.mh .hl-sec .wrap { position: relative; z-index: 1; }
.mh .hl-sec .eyebrow--green { color: var(--gold); }
.mh .hl-card { border-radius: 120px 120px 22px 22px / 34px 34px 22px 22px; border: 1px solid rgba(201,162,39,.32); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); padding-top: 30px; }
.mh .hl-card::after { content: ""; position: absolute; top: 9px; left: 50%; width: 9px; height: 9px; transform: translateX(-50%) rotate(45deg); background: var(--gold); opacity: .8; }
.mh .hl-card:hover { border-color: rgba(201,162,39,.6); }
.mh .hl-no { box-shadow: 0 0 0 2px rgba(201,162,39,.45), 0 10px 22px rgba(0,0,0,.3); }
.mh .hl-box { position: relative; border-radius: 200px 200px 22px 22px / 46px 46px 22px 22px; padding-top: 38px; }
.mh .hl-box::before { content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(201,162,39,.3); border-radius: inherit; pointer-events: none; }
.mh .hl-box--anthem { background: linear-gradient(120deg, rgba(201,162,39,.10), rgba(201,162,39,.02)); border: 1px solid rgba(201,162,39,.35); }
.mh .hl-box--anthem h3 { color: var(--gold-soft); }
.mh .hl-box--anthem .player__play { background: linear-gradient(140deg, var(--gold), #8a6a10); }
.mh .hl-box--alert { background: rgba(201,162,39,.05); border: 1px solid rgba(201,162,39,.3); }
.mh .hl-box__icon { color: var(--gold); }
.mh .hl-box--alert h3 { color: var(--gold-soft); }
@media (max-width: 639px) { .mh .hl-card { border-radius: 70px 70px 20px 20px / 24px 24px 20px 20px; } .mh .hl-box { border-radius: 90px 90px 20px 20px / 30px 30px 20px 20px; } }

/* madrasah messages: nicer photo frame — rounded base, thin even gold rim, white inner gap, soft double-arch halo */
.mh { --arch-mask-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 92V34C0 18 14 9 30 6 40 4 47 2 50 0c3 2 10 4 20 6 16 3 30 12 30 28v58c0 4.4-3.6 8-8 8H8c-4.4 0-8-3.6-8-8z'/%3E%3C/svg%3E"); }
.mh-lead__person { position: relative; }
.mh-lead__person::before { content: ""; position: absolute; top: -16px; left: 50%; width: 262px; height: 312px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(60% 50% at 50% 35%, rgba(201,162,39,.22), transparent 70%), linear-gradient(160deg, rgba(243,215,122,.55), rgba(201,162,39,.25));
  -webkit-mask: var(--arch-mask-r) center / 100% 100% no-repeat; mask: var(--arch-mask-r) center / 100% 100% no-repeat; opacity: .55; }
.mh-lead__arch { width: 220px; padding: 4px; background: linear-gradient(170deg, #F6E39A, #D9B441 45%, #C9A227 80%, #E9C75A);
  -webkit-mask: var(--arch-mask-r) center / 100% 100% no-repeat; mask: var(--arch-mask-r) center / 100% 100% no-repeat; filter: drop-shadow(0 16px 26px rgba(15,23,42,.16)); }
.mh-lead__arch::before { content: ""; position: absolute; inset: 4px; background: #fff;
  -webkit-mask: var(--arch-mask-r) center / 100% 100% no-repeat; mask: var(--arch-mask-r) center / 100% 100% no-repeat; }
.mh-lead__arch img, .mh-lead__nophoto { position: relative; display: block; width: 100%; height: 100%; padding: 0; transform: scale(.94); transform-origin: center 60%;
  object-fit: cover; object-position: center 22%; filter: saturate(.92) contrast(1.03);
  background: linear-gradient(180deg, var(--primary-wash), var(--primary-soft));
  -webkit-mask: var(--arch-mask-r) center / 100% 100% no-repeat; mask: var(--arch-mask-r) center / 100% 100% no-repeat; }
.mh-lead__name { margin-top: 22px; }
@media (max-width: 899px) { .mh-lead__arch { width: 190px; } .mh-lead__person::before { width: 226px; height: 270px; top: -14px; } }

/* madrasah: contact + services — Islamic shapes (8-point Rub el Hizb star, arches), CSS only */
.mh { --octagram: polygon(50.0% 0.0%, 64.7% 14.6%, 85.4% 14.6%, 85.4% 35.3%, 100.0% 50.0%, 85.4% 64.7%, 85.4% 85.4%, 64.7% 85.4%, 50.0% 100.0%, 35.3% 85.4%, 14.6% 85.4%, 14.6% 64.7%, 0.0% 50.0%, 14.6% 35.3%, 14.6% 14.6%, 35.3% 14.6%); --octagram-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 104 104'%3E%3Cpath d='M50.0 0.0L64.7 14.6L85.4 14.6L85.4 35.3L100.0 50.0L85.4 64.7L85.4 85.4L64.7 85.4L50.0 100.0L35.3 85.4L14.6 85.4L14.6 64.7L0.0 50.0L14.6 35.3L14.6 14.6L35.3 14.6z' fill='none' stroke='%23C9A227' stroke-opacity='.55' stroke-width='.6' stroke-dasharray='2 1.6'/%3E%3C/svg%3E"); --wide-arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V22C18 9 34 3.5 50 0c16 3.5 32 9 50 22v78z'/%3E%3C/svg%3E"); }
.mh .contact-card { position: relative; border-radius: 160px 160px 18px 18px / 52px 52px 18px 18px; border-color: var(--gold-soft); padding-top: 34px; }
.mh .contact-card::before { content: ""; position: absolute; top: 10px; left: 50%; width: 8px; height: 8px; transform: translateX(-50%) rotate(45deg); background: var(--gold); opacity: .8; }
.mh .contact-card:hover { border-color: var(--gold); box-shadow: 0 16px 34px rgba(15,23,42,.08); }
.mh .contact-card__icon { width: 62px; height: 62px; border-radius: 0; clip-path: var(--octagram); background: linear-gradient(150deg, var(--primary), var(--primary-deep)); }
.mh .map-band { height: 400px; -webkit-mask: var(--wide-arch) top / 100% 100% no-repeat; mask: var(--wide-arch) top / 100% 100% no-repeat; }
.mh .fan__icon { width: 50px; height: 50px; border: 0; border-radius: 0; clip-path: var(--octagram); background: rgba(255,255,255,.2); }
.mh .fan__label:hover .fan__icon, .mh .fan__label[aria-expanded="true"] .fan__icon { background: #fff; }
.mh .fan__hub::before { inset: 7%; border: 0; border-radius: 0; background: var(--octagram-line) center / 100% 100% no-repeat; opacity: 1; }
.mh .fan__hub-icon { clip-path: var(--octagram); border-radius: 0; width: 70px; height: 70px; box-shadow: none; }
@media (max-width: 639px) { .mh .contact-card { border-radius: 120px 120px 16px 16px / 40px 40px 16px 16px; } .mh .map-band { height: 320px; } }

/* madrasah v4: no star shapes anywhere — patterns are pointed-arch lattices, icons are round again */
.mh { --girih: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1.2'%3E%3Cpath d='M4 32V18C4 11 9 7 16 5c4-1 7-2.5 12-5 5 2.5 8 4 12 5 7 2 12 6 12 13v14'/%3E%3Cpath d='M-24 64V50c0-7 5-11 12-13 4-1 7-2.5 12-5 5 2.5 8 4 12 5 7 2 12 6 12 13v14'/%3E%3Cpath d='M32 64V50c0-7 5-11 12-13 4-1 7-2.5 12-5 5 2.5 8 4 12 5 7 2 12 6 12 13v14'/%3E%3C/g%3E%3C/svg%3E"); --arch-tile-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cg fill='none' stroke='%23C9A227' stroke-opacity='.20' stroke-width='1.2'%3E%3Cpath d='M4 32V18C4 11 9 7 16 5c4-1 7-2.5 12-5 5 2.5 8 4 12 5 7 2 12 6 12 13v14'/%3E%3Cpath d='M-24 64V50c0-7 5-11 12-13 4-1 7-2.5 12-5 5 2.5 8 4 12 5 7 2 12 6 12 13v14'/%3E%3Cpath d='M32 64V50c0-7 5-11 12-13 4-1 7-2.5 12-5 5 2.5 8 4 12 5 7 2 12 6 12 13v14'/%3E%3C/g%3E%3C/svg%3E"); }
.mh-hero__pattern, .mh .nb-sec::before, .mh .hl-sec::after { background-size: 56px 64px; }
.mh .section--sand { background-image: var(--arch-tile-gold); background-size: 56px 64px; }
.mh .contact-card__icon { clip-path: none; border-radius: 999px; width: 56px; height: 56px; box-shadow: 0 0 0 4px var(--gold-soft); }
.mh .fan__icon { clip-path: none; border-radius: 50%; width: 46px; height: 46px; border: 1.5px solid rgba(246,235,196,.55); }
.mh .fan__hub::before { inset: 14px; border-radius: 50%; border: 1.5px dashed rgba(201,162,39,.45); background: none; }
.mh .fan__hub-icon { clip-path: none; border-radius: 50%; width: 64px; height: 64px; box-shadow: 0 0 0 5px rgba(201,162,39,.18), 0 10px 22px rgba(138,106,16,.35); }

/* madrasah v5: overall polish */
/* warm ivory page tone instead of plain white (dark sections keep their own background) */
.mh { background: #FCFAF5; }
/* section tags shaped like small arches, matching the rest of the page */
.mh .badge--outline, .mh .badge--glass { border-radius: 60px 60px 10px 10px / 22px 22px 10px 10px; padding-top: 7px; }
.mh .news__label { border-radius: 40px 40px 12px 12px / 18px 18px 12px 12px; }
/* hotlines without the anthem: the health note uses the full width */
.mh .hl-row:not(:has(.hl-box--anthem)) { grid-template-columns: 1fr; max-width: 860px; margin-left: auto; margin-right: auto; }
/* calmer motion: madrasah pages feel more serene with slower, softer transitions */
.mh .reveal { transition-duration: .9s; }
.mh .why, .mh .person-card, .mh .contact-card, .mh .hl-card { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, filter .35s ease; }
