/* YES Edu themes: shared structure only (no brand colours). Themes override the tokens and add their own look.
   Rules: logical properties, 360/768/1280, body >= 16px, Bengali line-height >= 1.7, no letter-spacing on bn/ar,
   numbers always in the body face, prefers-reduced-motion respected, no content hidden with display:none. */

/* ---------- tokens (neutral defaults; a theme redefines them in :root) ---------- */
:root {
  --c-ink: #1b1f24; --c-bg: #fff; --c-surface: #f4f6f8; --c-muted: #566370; --c-line: #d6dce2;
  --c-accent: #1f4e79; --c-accent-ink: #fff; --c-focus: #b36b00;
  --font-bn: "Noto Sans Bengali", Inter, system-ui, sans-serif;
  --font-en: Inter, "Noto Sans Bengali", system-ui, sans-serif;
  --font-ar: "Noto Sans Arabic", "Noto Naskh Arabic", system-ui, sans-serif;
  --font-body: var(--font-en); --font-head: var(--font-body);
  --radius: 8px; --shadow: 0 2px 10px rgb(0 0 0 / .08);
  --space: 1.5rem; --gap: 1.25rem; --section-space: clamp(2.5rem, 6vw, 5rem);
  --w: 1200px; --header-h: 72px;
}
html:lang(bn) { --font-body: var(--font-bn); }
html:lang(en) { --font-body: var(--font-en); }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-block-start: var(--header-h); }
body { min-block-size: 100vh; font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--c-ink); background: var(--c-bg); font-variant-numeric: tabular-nums lining-nums; overflow-wrap: break-word; }
html:lang(bn) body { line-height: 1.75; }
img, svg, video, canvas { display: block; max-inline-size: 100%; block-size: auto; }
img { object-fit: cover; }
a { color: inherit; text-decoration: none; }
a, a:not([class]), a:hover, a:focus { text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
textarea { resize: vertical; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.3; text-wrap: balance; }
html:lang(bn) :is(h1, h2, h3, h4, h5, h6) { line-height: 1.5; }
p, li, dd { text-wrap: pretty; }
hr { border: 0; border-block-start: 1px solid var(--c-line); }
[hidden] { display: none !important; }

/* ---------- languages and numbers ---------- */
:lang(bn), :lang(ar) { letter-spacing: 0; text-transform: none; }
.num, time, [data-format="number"], td.num, th.num { font-family: var(--font-body); font-weight: 500; font-variant-numeric: tabular-nums lining-nums; }
:lang(ar), .ar { font-family: var(--font-ar); font-size: 1.2em; line-height: 1.9; letter-spacing: 0; font-weight: inherit; font-style: normal; unicode-bidi: isolate; }
[lang="ar"][dir="rtl"] { text-align: start; }
bdi, [dir="ltr"] { unicode-bidi: isolate; }
/* an Arabic run keeps phone numbers, e-mails and URLs left-to-right: <bdi dir="ltr">016 3525 9160</bdi> */
a[href^="tel:"], a[href^="mailto:"] { unicode-bidi: isolate; direction: ltr; }

/* ---------- layout primitives ---------- */
.wrap { inline-size: min(var(--w), 100% - 2rem); margin-inline: auto; }
.sec { padding-block: var(--section-space); }
.sec__head { margin-block-end: var(--space); }
.sec__eyebrow { display: block; }
.sec__lead { max-inline-size: 65ch; }
.sec__grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr)); }
.sec__grid[data-cols="12"] { grid-template-columns: 1fr; }
.sec__grid[data-cols="6"] { --min: 340px; }
.sec__grid[data-cols="4"] { --min: 260px; }
.sec__grid[data-cols="3"] { --min: 210px; }
.sec__grid[data-cols="2"] { --min: 150px; }
.sec__grid[data-cols="1"] { --min: 100px; }
.sec__item { min-inline-size: 0; }
.sec__media { position: relative; overflow: hidden; }
.sec__media > img { inline-size: 100%; block-size: 100%; }
.sec__deco-a, .sec__deco-b { pointer-events: none; }
.stack > * + * { margin-block-start: var(--stack, 1rem); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: center; }
.split { display: grid; gap: var(--gap); } .split > *, .sec__grid > *, .sec__body { min-width: 0; }
@media (min-width: 768px) { .split { grid-template-columns: repeat(2, 1fr); align-items: center; } }
.ratio-16x9 { aspect-ratio: 16 / 9; } .ratio-4x3 { aspect-ratio: 4 / 3; } .ratio-3x4 { aspect-ratio: 3 / 4; } .ratio-1x1 { aspect-ratio: 1; } .ratio-3x1 { aspect-ratio: 3 / 1; }
[class*="ratio-"] > img { inline-size: 100%; block-size: 100%; }
.pg { min-block-size: 40vh; }

/* ---------- accessibility helpers ---------- */
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.visually-hidden { position: absolute !important; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: .5rem; inset-block-start: -4rem; z-index: 1000; padding: .6rem 1rem; background: var(--c-ink); color: var(--c-bg); border-radius: var(--radius); }
.skip-link:focus { inset-block-start: .5rem; }

/* ---------- slider (all slides stay in the DOM; the first one shows before JS runs) ---------- */
[data-slider] { position: relative; display: grid; overflow: hidden; }
[data-slider] .slide { grid-area: 1 / 1; position: relative; opacity: 0; transition: opacity 1.2s; pointer-events: none; }
[data-slider] .slide.on { opacity: 1; pointer-events: auto; }
[data-slider]:not(.is-ready) .slide:first-child { opacity: 1; pointer-events: auto; }
[data-slider] .slide > img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
[data-slider] [data-dots] { position: absolute; inset-inline: 0; inset-block-end: 1rem; display: flex; justify-content: center; gap: 8px; z-index: 2; }
[data-slider] [data-dots] { pointer-events: none; } [data-slider] [data-dots] button { pointer-events: auto; } /* the full-width dots row must not block the arrows beneath it */
[data-slider] [data-dots] button { inline-size: 30px; block-size: 6px; border: 0; padding: 0; background: rgb(255 255 255 / .45); border-radius: 3px; }
[data-slider] [data-dots] button.on { background: var(--c-accent-ink); }
[data-slider] [data-dots] button::after { content: ""; position: absolute; inline-size: 44px; block-size: 44px; translate: -7px -19px; } /* touch target */
[data-slider] [data-prev], [data-slider] [data-next] { display: grid; place-items: center; padding: 0; line-height: 0; position: absolute; inset-block-start: 50%; translate: 0 -50%; z-index: 5; min-inline-size: 44px; min-block-size: 44px; border: 0; border-radius: 50%; background: rgb(0 0 0 / .45); color: #fff; }
[data-slider] [data-prev] { inset-inline-start: .75rem; } [data-slider] [data-next] { inset-inline-end: .75rem; }
/* hero slider: the arrows sit at the bottom corners, never over the caption text */
.sec-home-slider [data-prev], .sec-home-slider [data-next] { inset-block-start: auto; inset-block-end: 1rem; translate: none; }
.sec-home-slider [data-next] { inset-inline-end: auto; inset-inline-start: 4rem; } /* both arrows side by side at the start: the floating WhatsApp and back-to-top buttons own the end corner and covered the next arrow */
@media (max-width: 380px) { .sec-home-slider [data-next] { inset-inline-start: 3.4rem; } .sec-home-slider [data-slider] [data-dots] { gap: 6px; } .sec-home-slider [data-slider] [data-dots] button { inline-size: 20px; } }
.sec-home-slider .sec__caption { padding-block-end: max(var(--cap-pad-b, 0px), 5rem); }

/* ---------- utility sections: divider, spacer (values come from data- attributes; attr() with a fallback) ---------- */
.sec-divider, .sec-spacer { padding-block: 0; }
.sec__rule { margin-block: 1rem; margin-inline: auto; inline-size: 100%; border: 0; border-block-start: 1px solid var(--c-line); }
.sec__rule[data-align="left"] { margin-inline: 0 auto; } .sec__rule[data-align="right"] { margin-inline: auto 0; }
.sec__rule[data-style="dashed"] { border-block-start-style: dashed; } .sec__rule[data-style="dotted"] { border-block-start-style: dotted; } .sec__rule[data-style="double"] { border-block-start-style: double; border-block-start-width: 4px; }
.sec__spacer { block-size: 1.25rem; }
@supports (block-size: attr(data-height px, 1px)) { .sec__spacer { block-size: attr(data-height px, 20px); } .sec__rule[data-width] { inline-size: attr(data-width %, 100%); } }

/* ---------- ticker, accordion, tabs ---------- */
.tick { overflow: hidden; white-space: nowrap; }
.tick > div { display: inline-block; animation: tick 42s linear infinite; }
.tick:hover > div, .tick:focus-within > div { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
details > summary { cursor: pointer; list-style: none; min-block-size: 44px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
details > summary::marker { content: ""; }
[role="tablist"] { display: flex; flex-wrap: wrap; gap: .5rem; }
[role="tab"] { min-block-size: 44px; padding-inline: 1rem; background: none; border: 0; border-block-end: 3px solid transparent; }
[role="tab"][aria-selected="true"] { border-block-end-color: var(--c-accent); }

/* ---------- header, menu, drawer, overlays ---------- */
.nav-toggle { display: none; min-inline-size: 44px; min-block-size: 44px; background: none; border: 0; }
@media (max-width: 960px) { .nav-toggle { display: inline-flex; align-items: center; justify-content: center; } }
.drawer { position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 900; inline-size: min(88vw, 360px); overflow-y: auto; background: var(--c-bg); transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; }
.menu-open .drawer { transform: none; visibility: visible; }
.overlay { position: fixed; inset: 0; z-index: 800; background: rgb(0 0 0 / .5); opacity: 0; pointer-events: none; transition: opacity .25s; }
.menu-open .overlay { opacity: 1; pointer-events: auto; }
.menu-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 950; display: grid; place-items: center; padding: 1rem; background: rgb(0 0 0 / .7); }
.modal:not(.is-open) { display: none; }
.back-to-top, .whatsapp-btn { position: fixed; inset-inline-end: 1rem; z-index: 700; min-inline-size: 44px; min-block-size: 44px; }
.back-to-top { inset-block-end: 1rem; opacity: 0; pointer-events: none; transition: opacity .2s; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.whatsapp-btn { inset-block-end: 4.5rem; }

/* ---------- tables ---------- */
table { inline-size: 100%; border-collapse: collapse; font-size: max(.9375rem, 15px); }
caption { text-align: start; padding-block: .5rem; font-weight: 700; }
th, td { padding: .6rem .75rem; text-align: start; vertical-align: middle; overflow-wrap: break-word; }
th { font-weight: 700; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; position: relative; }
.table-scroll > table { min-inline-size: 36rem; }
.tbl--sticky thead th { position: sticky; inset-block-start: 0; background: var(--c-bg); z-index: 1; }
img.user_img, td img, th img { inline-size: 48px; block-size: 48px; border-radius: 50%; }

/* ---------- forms ---------- */
label { display: inline-block; margin-block-end: .25rem; }
input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]), select, textarea { inline-size: 100%; min-block-size: 44px; padding: .55rem .75rem; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-bg); }
input[type="checkbox"], input[type="radio"] { inline-size: 1.15rem; block-size: 1.15rem; accent-color: var(--c-accent); }
[aria-invalid="true"] { border-color: #b3261e; }
:disabled, [aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-block-size: 44px; padding: .5rem 1.25rem; border: 1px solid transparent; border-radius: var(--radius); background: var(--c-accent); color: var(--c-accent-ink); font-weight: 600; line-height: 1.2; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-slider] .slide { transition: none; }
}

/* ---------- print: marksheet, routines, tables ---------- */
@media print {
  :root { --c-bg: #fff; --c-ink: #000; }
  body { font-size: 12pt; line-height: 1.4; background: #fff; }
  .site-header, .site-footer, .skip-link, .drawer, .overlay, .nav-toggle, .back-to-top, .whatsapp-btn, .modal, [data-slider] [data-dots], [data-slider] [data-prev], [data-slider] [data-next], .no-print { display: none !important; }
  .wrap { inline-size: 100%; }
  .sec { padding-block: .5rem; }
  table { border: 1px solid #000; font-size: 11pt; }
  th, td { border: 1px solid #000; padding: .25rem .4rem; }
  tr, .marksheet, .tbl-T12, .tbl-T13, .tbl-T14, .tbl-T15, .tbl-T16 { break-inside: avoid; }
  thead { display: table-header-group; }
  .table-scroll { overflow: visible; }
  .table-scroll > table { min-inline-size: 0; }
  a { text-decoration: none; }
}

/* =====================================================================================================
   KIT STRUCTURE (P4): layout of the section markup of the kit, driven by tokens that a theme sets in :root.
   Themes add colour, type, radius and decoration; they should not redeclare this structure (PLAN rule 13).
   Tokens (all optional): --header-bg --header-ink --topbar-bg --topbar-ink --logo-h --menu-hover --hero-h --hero-overlay --hero-ink
   --card-bg --card-border --card-radius --card-shadow --card-pad --title-color --title-weight --head-align --band-bg --band-ink
   --footer-bg --footer-ink --footer-head --section-alt --on-accent --strip-bg --strip-ink --notice-bg --th-bg --media-ratio
   ===================================================================================================== */
:root { --card-pad: 1.25rem; --hero-h: min(78vh, 700px); --hero-ink: #fff; --hero-overlay: linear-gradient(90deg, rgb(0 0 0 / .72), rgb(0 0 0 / .2)); --on-accent: #fff; --section-alt: var(--c-surface); --band-bg: var(--c-accent); --band-ink: var(--on-accent); --menu-hover: rgb(0 0 0 / .06); }
.sec__head { text-align: var(--head-align, start); }
.sec__head.cluster { justify-content: space-between; }
.sec__title { color: var(--title-color, inherit); font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: var(--title-weight, 700); }
.sec__eyebrow { color: var(--eyebrow-color, var(--c-accent)); font-weight: 600; font-size: .9rem; }
.sec__lead { color: var(--lead-color, var(--c-muted)); }
.sec__meta { color: var(--lead-color, var(--c-muted)); font-size: .9375rem; }
.sec__cta { margin-block-start: 1rem; }
.sec__item-title { font-size: 1.2rem; color: var(--title-color, inherit); }
.sec__item-title a:hover, .sec__link:hover .sec__item-title { color: var(--c-accent); }
.sec__badge { display: inline-block; padding: .15rem .65rem; font-size: .8125rem; font-weight: 600; background: var(--c-accent); color: var(--on-accent); border-radius: var(--radius); }
.sec__time, .sec__counter { font-weight: 700; }
.sec__list { display: grid; gap: .4rem 1.5rem; }
.sec__link { display: block; color: inherit; }
.sec__more { margin-block-start: var(--space); text-align: center; }
.sec__prose > * + * { margin-block-start: 1em; } .sec__prose :is(ul, ol) { padding-inline-start: 1.25em; list-style: revert; } .sec__prose table { margin-block: 1em; }
.sec-header-breadcumb, .sec-footer-content, .sec-footer-widget, .sec-footer-copyright, .sec-header-content, .sec-home-slider, .sec-x-prayer-times, .sec-counter, .sec-divider, .sec-spacer, .sec-text-editor { padding-block: 0; }
.btn { transition: background-color .2s, color .2s, transform .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--c-accent); border-color: currentColor; }
.btn--ghost { background: transparent; color: inherit; }
.btn--sm { min-block-size: 36px; padding: .25rem .9rem; font-size: .9rem; } .btn--lg { min-block-size: 52px; padding: .7rem 1.8rem; font-size: 1.1rem; }

/* cards: any grid of items */
.sec__grid > .sec__item, .card { background: var(--card-bg, transparent); border: var(--card-border, 0); border-radius: var(--card-radius, 0); box-shadow: var(--card-shadow, none); overflow: hidden; display: flex; flex-direction: column; gap: .45rem; }
.sec__grid > .sec__item > :not(.sec__media):not(.sec__link), .sec__grid > .sec__item > .sec__link > :not(.sec__media) { margin-inline: var(--card-pad); }
.sec__grid > .sec__item > .sec__media { margin: 0; }
.sec__grid > .sec__item > :last-child { margin-block-end: var(--card-pad); }
.sec__grid > .sec__item > .sec__media + *, .sec__grid > .sec__item > .sec__link > .sec__media + * { margin-block-start: .6rem; }
.sec__grid .sec__media > img { aspect-ratio: var(--media-ratio, 3 / 2); }
.sec__media > img { inline-size: 100%; }

/* header and top bar */
.site-header { position: sticky; inset-block-start: 0; z-index: 60; background: var(--header-bg, var(--c-bg)); color: var(--header-ink, inherit); box-shadow: var(--header-shadow, none); }
.sec__topbar { background: var(--topbar-bg, var(--c-surface)); color: var(--topbar-ink, inherit); font-size: .875rem; }
.sec__topbar > .wrap { justify-content: space-between; padding-block: .4rem; gap: .5rem 1.5rem; }
.sec__topbar ul { display: flex; gap: .25rem 1.1rem; flex-wrap: wrap; align-items: center; }
.sec__topbar a:hover { }
.sec__mainbar > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: .65rem; }
.sec__logo { display: inline-flex; align-items: center; gap: .6rem; } .sec__logo img { block-size: var(--logo-h, 48px); inline-size: auto; }
.sec__nav-main { margin-inline-start: auto; }
.sec__menu { display: flex; flex-wrap: wrap; gap: .1rem; } .sec__menu > .sec__item { position: relative; }
.sec__menu a { display: block; padding: .6rem .85rem; font-weight: 600; border-radius: var(--radius); }
.sec__menu a:hover, .sec__menu a:focus-visible { background: var(--menu-hover); }
.sec__submenu { position: absolute; inset-inline-start: 0; inset-block-start: 100%; z-index: 20; min-inline-size: 13rem; padding: .35rem; background: var(--c-bg); color: var(--c-ink); border: 1px solid var(--c-line); box-shadow: var(--shadow); visibility: hidden; opacity: 0; transition: opacity .15s; }
.sec__submenu .sec__submenu { inset-inline-start: 100%; inset-block-start: 0; }
.sec__menu li:hover > .sec__submenu, .sec__menu li:focus-within > .sec__submenu { visibility: visible; opacity: 1; }
/* footer social links are icon boxes: the label stays for screen readers only (it overflowed the box and widened the page in English) */
.sec-footer-copyright .sec__social .sec__label { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sec-footer-copyright .sec__social a { position: relative; }
/* laptop widths: the dropdowns of the last three top-level items open towards the page, not past its edge (they widened the page by about 100px at 961-1100px) */
@media (min-width: 961px) and (max-width: 1279px) {
  .sec__menu > li:nth-last-child(-n+3) > .sec__submenu { inset-inline-start: auto; inset-inline-end: 0; }
  .sec__menu > li:nth-last-child(-n+3) .sec__submenu .sec__submenu { inset-inline-start: auto; inset-inline-end: 100%; }
}
.sec-header-content .frm-F10 { display: flex; } .sec-header-content .frm-F10 input { min-inline-size: 11rem; border-start-end-radius: 0; border-end-end-radius: 0; }
.sec-header-content .frm-F10 button { padding-inline: .8rem; border: 1px solid var(--c-line); border-inline-start: 0; background: var(--c-accent); color: var(--on-accent); border-start-end-radius: var(--radius); border-end-end-radius: var(--radius); }
.sec__nav-account a { font-weight: 600; }
.drawer { padding: 1rem; } .drawer .sec__menu { flex-direction: column; } .drawer .sec__submenu { position: static; visibility: visible; opacity: 1; box-shadow: none; border: 0; padding-inline-start: 1rem; min-inline-size: 0; } .drawer .sec__submenu { background: transparent; color: inherit; }
/* drawer: hovered and focused links get a light highlight and keep their text colour (a theme's desktop hover colour made them vanish on the dark drawer) */
.drawer .sec__menu a:hover, .drawer .sec__menu a:focus-visible, .drawer .sec__menu li:hover > a { background: rgb(0 0 0 / .22); box-shadow: inset 4px 0 0 currentColor; color: inherit; border-color: transparent; }
.sec__close { float: inline-end; background: none; border: 0; min-inline-size: 44px; min-block-size: 44px; }
.ui-search-trigger { position: absolute; inset-inline-end: 4.5rem; inset-block-start: .6rem; }
@media (max-width: 960px) { .sec__nav-main, .sec__mainbar .frm-F10, .sec__mainbar .frm.frm-F10.frm--inline { display: none; } }
/* small screens: the top bar wraps to several lines, so the search button sits at the bottom of the header (beside the menu button), not over the top bar text */
@media (max-width: 960px) { .ui-search-trigger { inset-block-start: auto; inset-block-end: .55rem; } }
/* wide screens: the header has its own search form, so the extra button would sit on top of the top bar links */
@media (min-width: 961px) { .ui-search-trigger:has(+ .ui-search-overlay) { display: none; } }
/* very small screens: a smaller logo, so it does not run under the search and menu buttons */
@media (max-width: 400px) { .sec__mainbar .sec__logo img { block-size: min(var(--logo-h, 48px), 34px); } }

/* breadcrumb band */
.sec-header-breadcumb { position: relative; background: var(--band-bg); color: var(--band-ink); isolation: isolate; }
.sec-header-breadcumb .sec__media { position: absolute; inset: 0; z-index: -1; opacity: var(--crumb-image-opacity, .3); } .sec-header-breadcumb .sec__media img { inline-size: 100%; block-size: 100%; }
.sec-header-breadcumb .sec__head { padding-block: clamp(1.75rem, 5vw, 3.5rem); margin: 0 auto; } .sec-header-breadcumb .sec__title { color: inherit; }
.sec__crumbs { display: flex; flex-wrap: wrap; gap: .4rem; } .sec__crumbs li + li::before { content: "/"; margin-inline-end: .4rem; opacity: .6; }

/* hero slider */
.sec-home-slider { position: relative; background: var(--c-ink); color: var(--hero-ink); }
.sec-home-slider [data-slider] { min-block-size: var(--hero-h); }
.sec-home-slider .slide { min-block-size: var(--hero-h); display: flex; flex-direction: column; justify-content: center; }
.sec-home-slider .slide > .sec__media { position: absolute; inset: 0; } .sec-home-slider .slide > .sec__media img { inline-size: 100%; block-size: 100%; aspect-ratio: auto; }
.sec-home-slider .slide::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); pointer-events: none; }
.sec-home-slider .sec__caption { position: relative; z-index: 2; padding-block: 3rem 5rem; } .sec-home-slider .sec__title { color: inherit; font-size: clamp(2.1rem, 5.2vw, 4rem); font-weight: 800; max-inline-size: 18ch; }
.sec-home-slider .sec__lead { color: inherit; opacity: .9; font-size: 1.15rem; max-inline-size: 52ch; margin-block: .8rem 1.4rem; }
.sec-home-slider [data-dots] { inset-block-end: 1.4rem; z-index: 5; }

/* bands and strips */
.sec-x-prayer-times { background: var(--strip-bg, var(--c-ink)); color: var(--strip-ink, #fff); } .sec-x-prayer-times > .wrap { padding-block: .8rem; justify-content: space-between; gap: .5rem 2rem; }
.sec-x-prayer-times .sec__title { font-size: 1.05rem; color: inherit; } .sec-x-prayer-times .sec__body { gap: .25rem 1.8rem; } .sec-x-prayer-times .sec__item { display: flex; flex-direction: column; text-align: center; line-height: 1.3; } .sec-x-prayer-times .sec__time { font-size: 1.2rem; }
.sec-home-page-noticeboard { background: var(--notice-bg, var(--section-alt)); } .sec-home-page-noticeboard .sec__body { display: grid; gap: .6rem; } .sec-home-page-noticeboard .sec__item { display: grid; gap: .1rem; padding: .7rem 1rem; background: var(--c-bg); border: var(--card-border, 1px solid var(--c-line)); border-radius: var(--card-radius, 0); }
.sec-counter { position: relative; background: var(--band-bg); color: var(--band-ink); isolation: isolate; }
.sec-counter > .sec__media { position: absolute; inset: 0; z-index: -1; opacity: .18; } .sec-counter > .sec__media img { inline-size: 100%; block-size: 100%; }
.sec-counter .sec__head { padding-block: 3rem 1rem; text-align: center; } .sec-counter .sec__title, .sec-counter .sec__lead { color: inherit; } .sec-counter .sec__cta { justify-content: center; }
.sec-counter .sec__counters { padding-block: 1rem 3rem; text-align: center; } .sec-counter .sec__counters > .sec__item { background: none; border: 0; box-shadow: none; } .sec-counter .sec__counter { display: block; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.2; color: var(--counter-color, inherit); } .sec-counter .sec__meta { color: inherit; opacity: .85; }
.sec-cta { background: var(--band-bg); color: var(--band-ink); text-align: center; } .sec-cta .sec__title, .sec-cta .sec__lead { color: inherit; } .sec-cta .sec__lead { margin-inline: auto; }

/* two-column and media sections */
.sec-home-about-area .sec__list { margin-block: 1rem; } .sec-home-about-area .sec__list > li::before { content: ""; display: inline-block; inline-size: .6rem; block-size: .6rem; margin-inline-end: .7rem; background: var(--c-accent); border-radius: var(--bullet-radius, 50%); }
.sec-home-about-area .sec__phone { display: inline-flex; gap: .5rem; align-items: center; font-weight: 700; color: var(--c-accent); }
.sec-about-section .sec__media-set { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; } .sec-about-section .sec__img-medium { grid-row: span 2; block-size: 100%; }
.sec-speech .sec__media, .sec-speech-slider .sec__media { aspect-ratio: 3 / 4; } .sec-speech .sec__media img, .sec-speech-slider .sec__media img { block-size: 100%; }
.sec-feature-area .sec__item { flex-direction: row; align-items: flex-start; padding: 1rem; gap: 1rem; } .sec-feature-area .sec__media { flex: none; inline-size: 4.5rem; } .sec-feature-area .sec__media img { aspect-ratio: auto; }

/* people, gallery, news, events, charts */
.sec-teacher .sec__media img, .sec-x-ulama .sec__media img, .sec-x-alumni .sec__media img, .sec-x-toppers .sec__media img, .sec-speech-slider .sec__media img { aspect-ratio: 3 / 4; object-position: center top; }
.sec-teacher .sec__item, .sec-x-ulama .sec__item, .sec-x-alumni .sec__item { text-align: var(--people-align, start); }
.sec-photo-gallery .sec__grid { grid-auto-rows: 220px; } .sec-photo-gallery .sec__item { position: relative; display: block; } .sec-photo-gallery .sec__link, .sec-photo-gallery .sec__media, .sec-photo-gallery img { block-size: 100%; aspect-ratio: auto; } .sec-photo-gallery .sec__item-title { position: absolute; inset-inline: 0; inset-block-end: 0; margin: 0 !important; padding: 1.6rem .9rem .7rem; color: #fff; font-size: 1rem; background: linear-gradient(transparent, rgb(0 0 0 / .72)); }
.sec-photo-gallery .sec__item:hover img { transform: scale(1.05); } .sec-photo-gallery img { transition: transform .5s; }
.sec-x-year-chart .sec__bars { display: flex; align-items: flex-end; gap: .8rem; block-size: 14rem; } .sec-x-year-chart .sec__bars > li { flex: 1; display: flex; flex-direction: column-reverse; align-items: center; gap: .2rem; block-size: 100%; } .sec-x-year-chart meter { writing-mode: vertical-lr; direction: rtl; inline-size: 2.2rem; flex: 1; accent-color: var(--c-accent); }
.sec-x-admission-steps .sec__step { display: inline-grid; place-items: center; inline-size: 2.4rem; block-size: 2.4rem; border-radius: 50%; background: var(--c-accent); color: var(--on-accent); font-weight: 700; }
.sec-event .sec__date { text-align: center; line-height: 1.2; }

/* tables (preview chrome) */
.tbl__toolbar, .tbl__footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; margin-block: .6rem; } .tbl__toolbar select, .tbl__toolbar input { inline-size: auto; min-block-size: 36px; }
.tbl th, .tbl td { border-block-end: 1px solid var(--c-line); } .tbl thead th { background: var(--th-bg, var(--c-surface)); } .tbl__sort { background: none; border: 0; font: inherit; font-weight: 700; padding: 0; }
.tbl__sort::after { content: ""; display: inline-block; margin-inline-start: .35rem; border: .3rem solid transparent; border-block-start-color: currentColor; opacity: .35; } [aria-sort="ascending"] .tbl__sort::after { border-block-start-color: transparent; border-block-end-color: currentColor; opacity: 1; } [aria-sort="descending"] .tbl__sort::after { opacity: 1; }
.tbl__pager ul { display: flex; gap: .3rem; } .tbl__pager a { display: block; min-inline-size: 2.2rem; text-align: center; padding: .3rem .6rem; border: 1px solid var(--c-line); border-radius: var(--radius); } .tbl__pager [aria-current="page"] { background: var(--c-accent); color: var(--on-accent); border-color: var(--c-accent); } .tbl__pager [aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* footer */
.site-footer { background: var(--footer-bg, var(--c-ink)); color: var(--footer-ink, #cfd8de); } .site-footer .sec__title { font-size: 1.1rem; color: var(--footer-head, #fff); font-weight: 700; }
.site-footer .wrap { padding-block: 1.25rem; } .site-footer a:hover { color: var(--footer-head, #fff); }
.site-footer .sec-footer-content .wrap { display: grid; gap: 1rem; padding-block-start: 3rem; } .site-footer .sec-footer-widget .sec__body { display: grid; gap: .35rem; } .sec-footer-widget > .wrap { padding-block: 1rem; }
.sec-footer-copyright { border-block-start: 1px solid rgb(255 255 255 / .12); font-size: .9rem; } .sec-footer-copyright .wrap { justify-content: space-between; } .sec__social { display: flex; gap: .8rem; }
@media (min-width: 960px) { .site-footer { display: grid; grid-template-columns: 1.6fr 1fr 1fr; align-items: start; } .site-footer .sec-footer-copyright { grid-column: 1 / -1; } .site-footer .sec-footer-content .wrap { padding-inline: 2rem; } }
@media print { .site-footer, .sec-home-slider [data-dots] { display: none !important; } }

/* ---------- forms and tables: shared alignment (design audit round 3) ---------- */
/* one control height (48px): fields, selects and buttons in the same row line up */
.frm input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"]), .frm select:not([multiple]) { block-size: 48px; }
.frm .btn, .frm button[type="submit"] { min-block-size: 48px; }
.frm .frm__row { row-gap: 0; } .frm .frm__label { margin-block-end: .25rem; } .frm .frm__help, .frm .frm__error:not(:empty) { margin-block-start: .25rem; } .frm .frm__error:empty { block-size: 0; min-block-size: 0; padding: 0; margin: 0; } /* spacing comes from the lines that have content, so an empty error line adds nothing under the field */
.frm--inline .frm__actions { margin-block-start: 0; }
/* newsletter: label on top, field and button on one line, help text below */
.frm.frm-F13.frm--inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .8rem; row-gap: .35rem; align-items: start; }
.frm-F13 .frm__row { display: contents; }
.frm-F13 .frm__label { grid-column: 1 / -1; grid-row: 1; }
.frm-F13 input { grid-column: 1; grid-row: 2; }
.frm-F13 .frm__actions { grid-column: 2; grid-row: 2; margin: 0; }
.frm-F13 .frm__help, .frm-F13 .frm__error { grid-column: 1 / -1; margin: 0; }
/* search form (also outside the header): field and button in one row, same height */
.frm.frm-F10.frm--inline { display: flex; flex-wrap: nowrap; gap: 0; align-items: stretch; }
.frm-F10 input { flex: 1 1 auto; min-inline-size: 0; border-start-end-radius: 0; border-end-end-radius: 0; }
.frm.frm-F10 button { flex: none; display: grid; place-items: center; min-inline-size: 48px; min-block-size: 48px; padding-inline: .9rem; border: 1px solid var(--c-accent); border-inline-start: 0; background: var(--c-accent); color: var(--on-accent, #fff); border-start-end-radius: var(--radius); border-end-end-radius: var(--radius); cursor: pointer; }
/* password field with the show/hide button: the button is a box of the same height, attached to the field */
.frm__group { display: flex; align-items: stretch; }
.frm__group > input { flex: 1 1 auto; min-inline-size: 0; }
.frm__group > .frm__toggle { display: grid; place-items: center; flex: none; min-inline-size: 48px; min-block-size: 48px; padding: 0; margin: 0; border: 1px solid var(--c-line); border-inline-start: 0; background: var(--c-surface); color: var(--c-ink); cursor: pointer; }
/* file chooser: the browser button looks like a button of the theme, centred in the drop zone */
.frm__drop { justify-items: center; align-content: center; }
.frm input[type="file"] { inline-size: auto; max-inline-size: 100%; font: inherit; color: var(--c-muted); }
.frm input[type="file"]::file-selector-button { margin-inline-end: .8rem; min-block-size: 44px; padding-inline: 1.2rem; border: 0; border-radius: var(--radius); background: var(--c-accent); color: var(--c-accent-ink, #fff); font: inherit; font-weight: 600; cursor: pointer; }
/* tables: routine cells put the subject and the room on two lines; the empty message and visible captions get room */
.tbl__subject, .tbl__room { display: block; }
.tbl__room { font-size: .9em; }
p.tbl__empty { margin: 0; padding: 1.2rem 1rem; text-align: center; color: var(--c-muted); background: var(--c-surface); border: 1px dashed var(--c-line); }
.tbl caption:not(.visually-hidden) { caption-side: top; padding: 1.4rem 0 .7rem; text-align: start; font-weight: 700; color: var(--c-ink); }
.tbl table + table { margin-block-start: 1.5rem; }

/* ---------- local icon set (preview only: Laravel pages carry html.icon-font and use the real icon font): the Font Awesome class names of the data fields are drawn as masks ---------- */
html:not(.icon-font) i[class*="fa-"] { display: inline-block; inline-size: 1em; block-size: 1em; vertical-align: -.125em; background-color: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.fa-facebook-f { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14 8h3V4h-3a4 4 0 0 0-4 4v3H7v4h3v6h4v-6h3l1-4h-4V8z'/%3E%3C/svg%3E"); }
.fa-youtube { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' fill-rule='evenodd' d='M6 5h12a4 4 0 0 1 4 4v6a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V9a4 4 0 0 1 4-4zm4 4v6l5-3-5-3z'/%3E%3C/svg%3E"); }
.fa-twitter { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4l16 16M20 4L4 20'/%3E%3C/svg%3E"); }
.fa-school { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V9l7-5 7 5v12M10 21v-6h4v6'/%3E%3C/svg%3E"); }
.fa-book { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2V5zM4 19a2 2 0 0 1 2-2h13'/%3E%3C/svg%3E"); }
.fa-book-open { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5h7a3 3 0 0 1 3 3v13a2 2 0 0 0-2-2H2zM22 5h-7a3 3 0 0 0-3 3v13a2 2 0 0 1 2-2h8z'/%3E%3C/svg%3E"); }
.fa-user { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.fa-video { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H3zM17 10l4-2v8l-4-2'/%3E%3C/svg%3E"); }
.fa-user-nurse { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM4 21a8 8 0 0 1 16 0M12 15v4M10 17h4'/%3E%3C/svg%3E"); }
.fa-user-graduate { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5zM6 11v5c0 1.5 3 3 6 3s6-1.5 6-3v-5'/%3E%3C/svg%3E"); }
.fa-phone-alt { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.fa-mobile-alt { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 2h10a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zM11 18h2'/%3E%3C/svg%3E"); }
.fa-envelope { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h18v14H3zM3 7l9 7 9-7'/%3E%3C/svg%3E"); }
.fa-palette { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18c1.5 0 2-1 1.5-2.2-.6-1.4.4-2.8 2-2.8H18a3 3 0 0 0 3-3C21 6.5 17 3 12 3zM7.5 11h.01M10 7.5h.01M14.5 7.5h.01'/%3E%3C/svg%3E"); }
.fa-music { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l12-2v13M9 18a3 3 0 1 1-6 0 3 3 0 0 1 6 0zM21 16a3 3 0 1 1-6 0 3 3 0 0 1 6 0z'/%3E%3C/svg%3E"); }
.fa-id-card { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h18v14H3zM8 11h.01M5.5 16a3 3 0 0 1 5 0M14 10h4M14 14h4'/%3E%3C/svg%3E"); }
.fa-futbol { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 8l3.5 2.5-1.3 4h-4.4l-1.3-4z'/%3E%3C/svg%3E"); }
.fa-flask { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6L4 19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2l-6-10V3M7.5 15h9'/%3E%3C/svg%3E"); }
.fa-calculator { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zM8 7h8M8 12h.01M12 12h.01M16 12h.01M8 16h.01M12 16h.01M16 16h.01'/%3E%3C/svg%3E"); }
.fa-apple-alt { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7c-2-2-7-1-7 5 0 5 3 9 5 9 1 0 1-.5 2-.5s1 .5 2 .5c2 0 5-4 5-9 0-6-5-7-7-5zM12 7c0-2 1-3 3-4'/%3E%3C/svg%3E"); }

/* ---------- mobile drawer, round 5 (modern drawer: close button at the leading edge, brand, search, accordion menu, contact footer) ---------- */
.overlay { background: rgb(8 10 14 / .6); }
.drawer { display: flex; flex-direction: column; gap: 1rem; padding: 0 1rem 1.25rem; inline-size: min(88vw, 22rem); border-start-start-radius: min(28px, calc(var(--radius, 6px) * 4)); border-end-start-radius: min(28px, calc(var(--radius, 6px) * 4)); box-shadow: -12px 0 40px rgb(0 0 0 / .35); transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility .32s; }
.drawer__head { position: sticky; inset-block-start: 0; z-index: 2; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; margin-inline: -1rem; padding: .85rem 1rem; background: inherit; border-block-end: 1px solid rgb(255 255 255 / .14); }
.drawer .sec__close { float: none; display: grid; place-items: center; flex: none; inline-size: 44px; block-size: 44px; min-inline-size: 44px; min-block-size: 44px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .14); color: inherit; cursor: pointer; transition: background-color .2s; }
.drawer .sec__close:hover { background: rgb(255 255 255 / .26); }
.drawer__brand { display: grid; place-items: center; padding: .35rem .75rem; border-radius: 12px; background: #fff; }
.drawer__brand img { block-size: 32px; inline-size: auto; }
.drawer .sec__menu { display: grid; gap: .15rem; }
.drawer .sec__menu li { position: relative; }
.drawer .sec__menu a { color: inherit; display: flex; align-items: center; min-block-size: 48px; padding: .5rem 3.25rem .5rem .8rem; border: 0; border-radius: 12px; font-weight: 600; line-height: 1.4; }
.drawer .sec__menu li:not(:has(> .drawer__toggle)) > a { padding-inline-end: .8rem; }
.drawer .sec__menu > li:first-child > a { justify-content: center; border: 1px solid rgb(255 255 255 / .35); }
.drawer .sec__menu a[aria-current] { background: rgb(0 0 0 / .22); box-shadow: inset 4px 0 0 currentColor; }
.drawer .sec__submenu { display: grid; gap: .1rem; margin-inline-start: 1.1rem; padding: .15rem 0 .35rem .6rem; border-inline-start: 2px solid rgb(255 255 255 / .2); }
.drawer .sec__submenu a { min-block-size: 44px; font-weight: 500; font-size: .95em; }
.drawer.is-enhanced li:not(.is-open) > .sec__submenu { display: none; }
.drawer__toggle { position: absolute; inset-block-start: 0; inset-inline-end: .1rem; display: grid; place-items: center; inline-size: 48px; block-size: 48px; padding: 0; border: 0; border-radius: 12px; background: none; color: inherit; cursor: pointer; }
.drawer__toggle::before { content: ""; inline-size: .55rem; block-size: .55rem; border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; rotate: 45deg; translate: 0 -2px; transition: rotate .2s; }
.drawer li.is-open > .drawer__toggle::before { rotate: -135deg; translate: 0 2px; }
.drawer__toggle:hover { background: rgb(0 0 0 / .22); }
.drawer .frm-F10 { inline-size: 100%; }
.drawer__contact { display: grid; gap: .1rem; margin-block-start: auto; padding-block-start: 1rem; border-block-start: 1px solid rgb(255 255 255 / .14); font-size: .95rem; }
.drawer__contact a { display: flex; align-items: center; gap: .65rem; min-block-size: 40px; opacity: .92; }
.drawer__contact a:hover { opacity: 1; }
/* search dialog: the form starts below the close button */
.modal.ui-search-overlay .sec__dialog { padding-block-start: 4rem; }

/* footer copyright line: it sits on the dark footer, so it keeps the footer text colour (the muted text colour of .sec__meta was 2:1 there) */
.sec-footer-copyright .sec__meta { color: inherit; }

/* ---------- sample cards on the UI page: text and badges keep a side margin, the picture stays full width ---------- */
.ui-card-news, .ui-card-course, .ui-card-event, .ui-card-staff { display: grid; align-content: start; gap: .55rem; padding-block-end: 1.25rem; }
.ui-card-event { padding-block-start: 1.25rem; }
.ui-card-news > :not(.sec__media), .ui-card-course > :not(.sec__media), .ui-card-event > :not(.sec__media), .ui-card-staff > :not(.sec__media) { margin-block: 0; margin-inline: 1.15rem; }
.ui-card-news > .sec__media, .ui-card-course > .sec__media, .ui-card-staff > .sec__media { margin: 0 0 .4rem; }
.ui-card-event > .sec__date { justify-self: start; }

/* class, house and alumni cards: the badge is a label the size of its text, not a bar across the card */
.sec-x-classes .sec__item > .sec__badge, .sec-x-houses .sec__item > .sec__badge, .sec-x-alumni .sec__item > .sec__badge { align-self: flex-start; justify-self: start; inline-size: fit-content; }

/* text-editor content that is its own finished layout (starts with a <section>): no reading column, no padding */
.sec.sec-text-editor--raw { padding-block: 0; max-inline-size: none; }


/* Cards without a photo: designs pin the rank/age badge over the photo, so with no photo it would sit on the name. */
.sec-x-toppers .sec__item:not(:has(.sec__media img)) .sec__badge, .sec-x-classes .sec__item:not(:has(.sec__media img)) .sec__badge { position: static; inset: auto; align-self: start; inline-size: fit-content; margin-block-end: .5rem; }
.sec-x-toppers .sec__item:not(:has(.sec__media img)) .sec__media, .sec-x-classes .sec__item:not(:has(.sec__media img)) .sec__media, .sec-x-why-us:not(:has(.sec__media img)) .sec__media > img { display: none; }

/* x-hero: a full-width band, headline on one side and art on the other. The art is the photo when one is set, else
   rings in the design's own ink. Colours come from the design tokens, so every design gives it its own look. */
.sec-x-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem); background: var(--hero-bg, var(--band-bg, var(--c-ink))) var(--chev, none); color: var(--band-ink, #fff); }
.sec-x-hero > .wrap { inline-size: min(var(--w), 100% - 2rem); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.sec-x-hero .sec__body { max-inline-size: 46rem; }
.sec-x-hero .sec__eyebrow { margin: 0 0 .9rem; color: var(--hero-eyebrow, var(--counter-color, currentColor)); font-weight: 600; }
.sec-x-hero .sec__title { color: inherit; font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.25; }
.sec-x-hero .sec__lead { max-inline-size: 60ch; margin-block: 1rem 1.6rem; color: inherit; opacity: .92; }
.sec-x-hero .sec__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.sec-x-hero .btn--outline { color: inherit; border-color: currentColor; background: transparent; } .sec-x-hero .btn--outline:hover { background: #fff; color: var(--c-ink); }
.sec-x-hero .sec__art { justify-self: center; inline-size: 100%; }
.sec-x-hero .sec__art img { display: block; inline-size: 100%; block-size: auto; max-block-size: 440px; object-fit: contain; background: #fff; border-radius: var(--radius, 12px); box-shadow: var(--shadow, 0 18px 40px rgb(0 0 0 / .28)); }
.sec-x-hero .sec__art:not(:has(img)) { aspect-ratio: 1; max-inline-size: 380px; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 28%, transparent); box-shadow: inset 0 0 0 34px color-mix(in srgb, currentColor 6%, transparent), 0 0 0 34px color-mix(in srgb, currentColor 4%, transparent), 0 0 0 70px color-mix(in srgb, currentColor 3%, transparent); }
@media (max-width: 860px) { .sec-x-hero > .wrap { grid-template-columns: minmax(0, 1fr); } .sec-x-hero .sec__art:not(:has(img)) { display: none; } .sec-x-hero .sec__art img { max-inline-size: 420px; margin-inline: auto; } }
