/* ==========================================================================
   Campus Suite — public website
   Builds on app.css (brand tokens per edition, Geist, form controls) with its own editorial layer:
   Pathshala is bright and friendly, Talim is jade with Islamic geometry, Lyceum is classical burgundy and gold.
   Everything is namespaced .s-* under body.site so the console is never affected.
   ========================================================================== */

.site {
  --s-max: 1220px;
  --s-bg: #FFFFFF;
  --s-tint: #F3F6FF;
  --s-tint-2: #E8EEFF;
  --s-ink: #0E1630;
  --s-ink-2: #3A4460;
  --s-muted: #626B84;
  --s-faint: #98A0B4;
  --s-line: #E2E7F2;
  --s-card: #FFFFFF;
  --s-display: "Bricolage Grotesque", "Anek Bangla", "Geist", system-ui, sans-serif;
  --s-display-weight: 700;
  --s-display-track: -0.035em;
  --s-display-leading: 1.02;
  --s-radius: 22px;
  --s-radius-sm: 14px;
  --s-btn-radius: 999px;
  --s-top: #16285E;
  --s-gold: #F2A516;
  --s-coral: #FF7A59;
  --s-mint: #22B08F;
  --s-shadow: 0 1px 2px rgba(14, 22, 48, .05), 0 18px 44px -26px rgba(14, 22, 48, .28);
  --s-shadow-lg: 0 2px 6px rgba(14, 22, 48, .06), 0 36px 80px -36px rgba(14, 22, 48, .42);

  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--s-ink);
  background: var(--s-bg);
  text-rendering: optimizeLegibility;
}

.site-madrasa {
  --s-bg: #FBF8F1;
  --s-tint: #F2ECDF;
  --s-tint-2: #E9E0CC;
  --s-ink: #0F2420;
  --s-ink-2: #34463F;
  --s-muted: #5D6D66;
  --s-faint: #95A29C;
  --s-line: #E4DBC8;
  --s-card: #FFFDF8;
  --s-display: "Fraunces", "Anek Bangla", Georgia, serif;
  --s-display-weight: 600;
  --s-display-track: -0.02em;
  --s-display-leading: 1.06;
  --s-radius: 20px;
  --s-top: #0B3B34;
  --s-gold: #B98B3E;
  --s-shadow: 0 1px 2px rgba(15, 36, 32, .05), 0 18px 44px -26px rgba(15, 36, 32, .3);
}

.site-college {
  --s-bg: #FBF9F5;
  --s-tint: #F3EEE6;
  --s-tint-2: #EBE3D7;
  --s-ink: #1D1317;
  --s-ink-2: #46393E;
  --s-muted: #6E6166;
  --s-faint: #A2959A;
  --s-line: #E6DDD2;
  --s-card: #FFFFFF;
  --s-display: "Cormorant Garamond", "Anek Bangla", Georgia, "Times New Roman", serif;
  --s-display-weight: 600;
  --s-display-track: -0.012em;
  --s-display-leading: 1.04;
  --s-radius: 4px;
  --s-radius-sm: 4px;
  --s-btn-radius: 3px;
  --s-top: #3F1325;
  --s-gold: #B08A3E;
  --s-shadow: 0 1px 2px rgba(29, 19, 23, .05), 0 18px 44px -28px rgba(29, 19, 23, .3);
}

html:lang(bn) .site { --s-display-track: 0; }
.site ::selection { background: color-mix(in srgb, var(--brand-500) 24%, transparent); }
.site img { max-width: 100%; height: auto; }
.site :focus-visible { outline: 2.5px solid var(--brand-500); outline-offset: 3px; border-radius: 6px; }
.site .arabic { font-family: "Amiri", var(--font-arabic); }
.site .icon { width: 18px; height: 18px; }
.site .icon-xs { width: 14px; height: 14px; }
.site .icon-sm { width: 16px; height: 16px; }

.s-wrap { width: 100%; max-width: calc(var(--s-max) + 64px); margin: 0 auto; padding: 0 32px; }
.s-skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--s-ink); color: #fff; font-weight: 600; transition: top .15s; }
.s-skip:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- type ---------- */
.s-display {
  font-family: var(--s-display);
  font-weight: var(--s-display-weight);
  letter-spacing: var(--s-display-track);
  line-height: var(--s-display-leading);
  font-size: clamp(40px, 5.3vw, 74px);
  text-wrap: balance;
}
.s-h2 {
  font-family: var(--s-display);
  font-weight: var(--s-display-weight);
  letter-spacing: var(--s-display-track);
  line-height: 1.08;
  font-size: clamp(30px, 3.3vw, 46px);
  text-wrap: balance;
}
.s-h3 { font-family: var(--s-display); font-weight: var(--s-display-weight); letter-spacing: calc(var(--s-display-track) / 2); line-height: 1.15; font-size: 23px; }
.site-college .s-h3 { font-size: 26px; }
.s-lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.65; color: var(--s-ink-2); max-width: 60ch; }
.s-body { color: var(--s-ink-2); font-size: 16.5px; line-height: 1.75; }
.s-muted { color: var(--s-muted); }
.s-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 14px;
}
.s-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.site-madrasa .s-eyebrow::before { width: 12px; height: 12px; border-radius: 0; background: var(--s-gold); box-shadow: none; clip-path: polygon(50% 0, 62% 26%, 92% 20%, 76% 46%, 100% 50%, 76% 54%, 92% 80%, 62% 74%, 50% 100%, 38% 74%, 8% 80%, 24% 54%, 0 50%, 24% 46%, 8% 20%, 38% 26%); }
.site-college .s-eyebrow { color: var(--brand-700); letter-spacing: .2em; font-size: 12px; }
.site-college .s-eyebrow::before { width: 28px; height: 1px; border-radius: 0; background: var(--s-gold); box-shadow: none; }
html:lang(bn) .s-eyebrow { letter-spacing: .02em; font-size: 14px; }

.s-link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand-700); }
.s-link-arrow .icon { transition: transform .2s var(--ease); }
.s-link-arrow:hover .icon { transform: translateX(3px); }
.site-college .s-link-arrow { letter-spacing: .02em; }

/* ---------- buttons ---------- */
.s-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--s-btn-radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s var(--ease), box-shadow .18s;
}
.s-btn:active { transform: translateY(1px); }
.s-btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--brand-700) 80%, transparent); }
.s-btn-primary:hover { background: var(--brand-700); transform: translateY(-1px); }
.s-btn-light { background: var(--s-card); color: var(--s-ink); border-color: var(--s-line); }
.s-btn-light:hover { border-color: color-mix(in srgb, var(--s-line) 50%, var(--s-ink) 50%); transform: translateY(-1px); }
.s-btn-accent { background: var(--accent); color: #1E1400; }
.site-madrasa .s-btn-accent, .site-college .s-btn-accent { color: #fff; }
.s-btn-accent:hover { filter: brightness(1.05); transform: translateY(-1px); }
.s-btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .04); }
.s-btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }
.s-btn-white { background: #fff; color: var(--brand-800); }
.s-btn-white:hover { background: var(--brand-50); }
.s-btn-sm { height: 40px; padding: 0 16px; font-size: 14px; gap: 8px; }
.s-btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.site-college .s-btn { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 650; }
.site-college .s-btn-lg { font-size: 13.5px; }
html:lang(bn) .site-college .s-btn { text-transform: none; letter-spacing: 0; font-size: 15px; }
.s-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- top bar ---------- */
.s-topbar { background: var(--s-top); color: rgba(255, 255, 255, .78); font-size: 13px; }
.s-topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.s-topbar-contact, .s-topbar-links { display: flex; align-items: center; gap: 20px; min-width: 0; }
.s-topbar a, .s-topbar span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.s-topbar a:hover { color: #fff; }
.s-topbar .icon-xs { opacity: .8; }
.s-lang span { font-weight: 600; color: #fff; }

/* ---------- header ---------- */
.s-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--s-bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.s-header.is-stuck { border-bottom-color: var(--s-line); box-shadow: 0 10px 30px -24px rgba(0, 0, 0, .35); }
.s-header-row { display: flex; align-items: center; gap: 20px; height: 80px; }
.s-brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.s-brand .crest { box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--brand-700) 80%, transparent), inset 0 0 0 1px rgba(255, 255, 255, .16); }
.site-college .s-brand .crest { border-radius: 50% !important; }
.s-brand-text { display: flex; flex-direction: column; min-width: 0; }
.s-brand-name { font-family: var(--s-display); font-weight: var(--s-display-weight); font-size: 19px; line-height: 1.12; letter-spacing: calc(var(--s-display-track) / 3); color: var(--s-ink); }
.site-college .s-brand-name { font-size: 23px; }
.s-brand-sub { font-size: 12.5px; color: var(--s-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-brand-arabic { font-family: "Amiri", var(--font-arabic); font-size: 15px; line-height: 1.2; color: var(--brand-700); direction: rtl; text-align: left; margin-bottom: 1px; }
.s-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.s-nav > a, .s-more > summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 540;
  color: var(--s-ink-2);
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.s-nav > a:hover, .s-more > summary:hover { color: var(--s-ink); background: color-mix(in srgb, var(--brand-500) 8%, transparent); }
.s-nav > a.is-active { color: var(--brand-700); background: color-mix(in srgb, var(--brand-500) 11%, transparent); }
.site-college .s-nav > a, .site-college .s-more > summary { border-radius: 2px; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; font-weight: 600; padding: 0 11px; }
.site-college .s-nav > a.is-active { background: transparent; box-shadow: inset 0 -2px 0 var(--s-gold); border-radius: 0; }
html:lang(bn) .site-college .s-nav > a, html:lang(bn) .site-college .s-more > summary { text-transform: none; letter-spacing: 0; font-size: 15px; }
.s-more { position: relative; }
.s-more > summary { list-style: none; }
.s-more > summary::-webkit-details-marker { display: none; }
.s-more[open] > summary .icon-xs { transform: rotate(180deg); }
.s-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 250px;
  padding: 8px;
  background: var(--s-card);
  border: 1px solid var(--s-line);
  border-radius: 16px;
  box-shadow: var(--s-shadow-lg);
  animation: pop .16s var(--ease);
}
.s-more-menu a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; color: var(--s-ink-2); }
.s-more-menu a:hover, .s-more-menu a.is-active { background: var(--s-tint); color: var(--s-ink); }
.s-more-menu .icon-sm { color: var(--brand-600); }
.s-header-cta { display: flex; align-items: center; gap: 8px; }
@media (max-width: 1500px) { .s-portal-btn { display: none !important; } }
.s-burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--s-line); background: var(--s-card); align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.s-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--s-ink); }

.s-menu { position: fixed; inset: 0; z-index: 120; background: rgba(8, 12, 22, .45); backdrop-filter: blur(3px); animation: fade .15s ease; }
.s-menu-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 100%); background: var(--s-bg); display: flex; flex-direction: column; animation: slide-in .22s var(--ease); overflow-y: auto; }
.s-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--s-line); }
.s-menu-close { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--s-line); }
.s-menu-nav { display: grid; padding: 10px 12px; }
.s-menu-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 12px; font-size: 16.5px; font-weight: 520; color: var(--s-ink-2); }
.s-menu-nav a .icon-sm { color: var(--brand-600); }
.s-menu-nav a.is-active, .s-menu-nav a:hover { background: var(--s-tint); color: var(--s-ink); }
.s-menu-foot { margin-top: auto; padding: 16px 20px 28px; display: grid; gap: 10px; border-top: 1px solid var(--s-line); }
.s-menu-meta { display: flex; gap: 18px; justify-content: center; font-size: 14px; color: var(--s-muted); margin-top: 6px; }
.s-menu-meta a { display: inline-flex; align-items: center; gap: 6px; }
body.menu-open { overflow: hidden; }

/* ---------- sections ---------- */
.s-section { padding: clamp(72px, 8vw, 116px) 0; position: relative; }
.s-section-sm { padding: clamp(48px, 5vw, 72px) 0; }
.s-section-alt { background: var(--s-tint); }
.s-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(32px, 4vw, 52px); flex-wrap: wrap; }
.s-head-text { max-width: 720px; }
.s-head-text .s-lead { margin-top: 14px; }
.s-center { text-align: center; margin-left: auto; margin-right: auto; }
.s-head.s-center { flex-direction: column; align-items: center; }

.s-ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--s-gold); margin: 0 auto 18px; }
.s-ornament::before, .s-ornament::after { content: ""; width: 56px; height: 1px; background: currentColor; opacity: .6; }
.s-ornament i { width: 14px; height: 14px; background: currentColor; clip-path: polygon(50% 0, 62% 26%, 92% 20%, 76% 46%, 100% 50%, 76% 54%, 92% 80%, 62% 74%, 50% 100%, 38% 74%, 8% 80%, 24% 54%, 0 50%, 24% 46%, 8% 20%, 38% 26%); }
.site-college .s-ornament i { width: 8px; height: 8px; clip-path: none; transform: rotate(45deg); }
.site-school .s-ornament { display: none; }

/* ---------- hero ---------- */
.s-hero { position: relative; overflow: hidden; background: var(--s-tint); isolation: isolate; }
.s-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.site-school .s-hero::before {
  background-image: radial-gradient(color-mix(in srgb, var(--brand-500) 26%, transparent) 1.3px, transparent 1.5px);
  background-size: 24px 24px;
  mask-image: radial-gradient(70% 80% at 80% 30%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(70% 80% at 80% 30%, #000 10%, transparent 72%);
}
.s-hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(48px, 6vw, 88px) 32px clamp(56px, 7vw, 104px); }
.s-hero-copy { position: relative; }
.s-hero .s-display { margin-top: 22px; }
.s-hero .s-lead { margin-top: 24px; }
.s-hero .s-actions { margin-top: 36px; }
.s-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 9px;
  border-radius: 999px;
  background: var(--s-card);
  border: 1px solid var(--s-line);
  font-size: 14px;
  font-weight: 560;
  color: var(--s-ink-2);
  box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .25);
  transition: border-color .15s, transform .15s;
}
.s-badge:hover { border-color: var(--brand-300); transform: translateY(-1px); }
.s-badge .s-pill { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--brand-600); padding: 3px 8px; border-radius: 999px; }
.s-badge .icon-sm { color: var(--brand-600); }
.s-live { width: 8px; height: 8px; border-radius: 50%; background: #22A15A; box-shadow: 0 0 0 0 rgba(34, 161, 90, .45); animation: s-pulse 2s infinite; }
@keyframes s-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 161, 90, .45); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.s-hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 40px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--s-muted); }
.s-hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.s-hero-facts .icon-sm { color: var(--brand-600); }
.site .art-display { font-family: var(--s-display); }
.site .art-seal { font-family: var(--font-ui); }
.s-mark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11 C40 3 80 3 120 9 S182 14 197 6' fill='none' stroke='%23F7B42C' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 96%;
  background-size: 100% .3em;
  padding-bottom: .06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.s-accent-text { color: #E9C987; }
.s-hero-art { position: relative; min-width: 0; }
.s-hero-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.s-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 14px;
  background: var(--s-card);
  border: 1px solid var(--s-line);
  border-radius: 18px;
  box-shadow: var(--s-shadow-lg);
  max-width: 300px;
  animation: s-bob 7s ease-in-out infinite;
}
.s-float-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--brand-50); color: var(--brand-600); }
.s-float-value { font-family: var(--s-display); font-weight: var(--s-display-weight); font-size: 26px; line-height: 1; letter-spacing: calc(var(--s-display-track) / 2); color: var(--s-ink); }
.s-float-label { font-size: 13px; color: var(--s-muted); line-height: 1.35; margin-top: 3px; }
@keyframes s-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Pathshala: light, dotted, playful */
.site-school .s-hero { background: linear-gradient(180deg, #F2F6FF 0%, #F7F9FF 100%); }
.site-school .s-float { left: -18px; bottom: 26px; }

/* Talim: deep jade with eight-pointed star lattice */
.site-madrasa .s-hero { background: var(--brand-800); color: #F6F1E6; }
.site-madrasa .s-hero::before {
  opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.1'%3E%3Cpath d='M48 10 58 38 86 48 58 58 48 86 38 58 10 48 38 38z'/%3E%3Crect x='29' y='29' width='38' height='38' transform='rotate(45 48 48)'/%3E%3Crect x='29' y='29' width='38' height='38'/%3E%3Cpath d='M0 0 10 10M96 0 86 10M0 96 10 86M96 96 86 86'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
}
.site-madrasa .s-hero .s-display { color: #FFFBF1; }
.site-madrasa .s-hero .s-lead { color: rgba(246, 241, 230, .8); }
.site-madrasa .s-hero .s-badge { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #F6F1E6; box-shadow: none; }
.site-madrasa .s-hero .s-badge .s-pill { background: var(--accent); }
.site-madrasa .s-hero .s-badge .icon-sm { color: #E9C987; }
.site-madrasa .s-hero .s-hero-facts { color: rgba(246, 241, 230, .72); }
.site-madrasa .s-hero .s-hero-facts .icon-sm { color: #E9C987; }
.site-madrasa .s-hero .s-btn-light { background: transparent; color: #FFFBF1; border-color: rgba(255, 255, 255, .34); }
.site-madrasa .s-hero .s-btn-light:hover { background: rgba(255, 255, 255, .08); }
.site-madrasa .s-hero .s-btn-primary { background: #F6EBD2; color: var(--brand-900); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .6); }
.site-madrasa .s-hero .s-btn-primary:hover { background: #fff; }
.s-hero-arabic { font-family: "Amiri", var(--font-arabic); font-size: clamp(22px, 2vw, 28px); color: #E9C987; direction: rtl; text-align: left; line-height: 1.4; margin-top: 18px; }
.site-madrasa .s-hero-art svg { width: 88%; margin-left: auto; }
.site-madrasa .s-float { left: -8px; top: 50%; background: #FFFDF8; max-width: 330px; }
.site-madrasa .s-float-value { white-space: nowrap; }
.site-madrasa .s-float-icon { background: #F2ECDF; color: var(--brand-700); }

/* Lyceum: paper, serif, gold rules */
.site-college .s-hero { background: var(--s-bg); }
.site-college .s-hero::before {
  background-image: repeating-linear-gradient(90deg, color-mix(in srgb, var(--brand-900) 5%, transparent) 0 1px, transparent 1px 72px);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.site-college .s-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--s-line); }
.site-college .s-hero .s-display { font-size: clamp(46px, 5.1vw, 76px); font-weight: 600; }
.site-college { font-variant-numeric: lining-nums; }
.site-college .s-display, .site-college .s-h2, .site-college .s-h3, .site-college .s-stats dd, .site-college .s-date-d, .site-college .s-event-tile .d,
.site-college .s-score-value, .site-college .s-float-value, .site-college .s-brand-name, .site-college .art-display { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.site-college .s-hero .s-display em { font-style: italic; color: var(--brand-600); }
.s-rule { display: flex; align-items: center; gap: 12px; color: var(--s-gold); margin-top: 26px; }
.s-rule::before { content: ""; width: 64px; height: 1px; background: currentColor; }
.s-rule::after { content: ""; width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid currentColor; }
.site-college .s-hero .s-badge { border-radius: 3px; box-shadow: none; }
.site-college .s-hero .s-badge .s-pill { border-radius: 2px; background: var(--brand-700); }
.site-college .s-float { right: -18px; top: 34px; left: auto; bottom: auto; border-radius: 4px; }
.site-college .s-float-icon { border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- notice ticker ---------- */
.s-ticker { position: relative; z-index: 2; background: var(--s-card); border-top: 1px solid var(--s-line); border-bottom: 1px solid var(--s-line); }
.site-madrasa .s-ticker { background: #F6EFDF; border-color: #E4DBC8; }
.s-ticker-row { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.s-ticker-label { display: inline-flex; align-items: center; gap: 9px; flex: none; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--brand-600); padding: 8px 14px 8px 12px; border-radius: 999px; }
.site-college .s-ticker-label { border-radius: 2px; background: var(--brand-700); }
.site-madrasa .s-ticker-label { background: var(--brand-700); }
html:lang(bn) .s-ticker-label { letter-spacing: 0; font-size: 14px; }
.s-ticker-track { position: relative; flex: 1; min-width: 0; height: 28px; overflow: hidden; }
.s-ticker-item { position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; min-width: 0; font-weight: 560; color: var(--s-ink); opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.s-ticker-item.is-on { opacity: 1; transform: none; pointer-events: auto; }
.s-ticker-item.is-out { opacity: 0; transform: translateY(-12px); }
.s-ticker-item time { flex: none; font-size: 13px; font-weight: 600; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.s-ticker-item .s-ticker-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-ticker-item:hover .s-ticker-title { text-decoration: underline; text-underline-offset: 3px; }
.s-ticker-pin { flex: none; color: var(--accent-ink); }
.s-ticker-nav { display: flex; gap: 4px; flex: none; }
.s-ticker-nav button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--s-muted); border: 1px solid var(--s-line); background: var(--s-card); }
.s-ticker-nav button:hover { color: var(--s-ink); border-color: var(--s-faint); }
.s-ticker-all { flex: none; font-size: 14px; font-weight: 600; color: var(--brand-700); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- stats ---------- */
.s-stats { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); margin: 0; }
.s-stats > div { padding: 34px 28px; display: flex; flex-direction: column-reverse; gap: 8px; border-left: 1px solid var(--s-line); }
.s-stats > div:first-child { border-left: 0; padding-left: 0; }
.s-stats dt { font-size: 15px; color: var(--s-muted); line-height: 1.4; }
.s-stats dd { margin: 0; font-family: var(--s-display); font-weight: var(--s-display-weight); font-size: clamp(38px, 4vw, 58px); line-height: 1; letter-spacing: var(--s-display-track); color: var(--s-ink); font-variant-numeric: tabular-nums; }
.site-school .s-stats dd { color: var(--brand-700); }
.site-madrasa .s-stats dd { color: var(--brand-700); }
.site-college .s-stats dd { color: var(--brand-700); font-size: clamp(44px, 4.6vw, 66px); }
.s-stats-band { border-bottom: 1px solid var(--s-line); background: var(--s-bg); }

/* ---------- about + message ---------- */
.s-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.s-split-top { align-items: start; }
.s-about .s-body { margin-top: 20px; }
.s-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 32px 0 28px; border-top: 1px solid var(--s-line); }
.s-facts > div { padding: 14px 0; border-bottom: 1px solid var(--s-line); min-width: 0; }
.s-facts > div:nth-child(odd) { padding-right: 18px; }
.s-facts > div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--s-line); }
.s-facts dt { font-size: 13px; color: var(--s-muted); }
.s-facts dd { margin: 3px 0 0; font-weight: 600; color: var(--s-ink); overflow-wrap: anywhere; }

.s-message {
  position: relative;
  margin: 0;
  padding: clamp(28px, 3.5vw, 48px);
  border-radius: var(--s-radius);
  background: var(--s-card);
  border: 1px solid var(--s-line);
  box-shadow: var(--s-shadow);
}
.s-message::before {
  content: "\201C";
  position: absolute;
  top: -8px;
  right: 30px;
  font-family: Georgia, serif;
  font-size: 150px;
  line-height: 1;
  color: color-mix(in srgb, var(--brand-500) 16%, transparent);
}
.s-message blockquote { margin: 16px 0 0; font-family: var(--s-display); font-weight: 500; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.55; letter-spacing: calc(var(--s-display-track) / 4); color: var(--s-ink); }
.site-school .s-message blockquote { font-family: var(--font-ui); font-weight: 450; font-size: clamp(18px, 1.5vw, 21px); letter-spacing: -.01em; }
.site-college .s-message blockquote { font-style: italic; font-size: clamp(22px, 2vw, 27px); }
.s-message figcaption { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--s-line); }
.s-message-name { font-weight: 650; color: var(--s-ink); }
.s-message-role { font-size: 14px; color: var(--s-muted); }
.site-madrasa .s-message { border-radius: 220px 220px var(--s-radius) var(--s-radius); padding-top: clamp(64px, 7vw, 96px); background: #FFFDF8; }
.site-madrasa .s-message::before { left: 50%; right: auto; transform: translateX(-50%); top: 6px; color: color-mix(in srgb, var(--s-gold) 36%, transparent); }
.site-college .s-message { border-radius: 2px; box-shadow: none; outline: 1px solid var(--s-line); outline-offset: 6px; }

/* ---------- highlight cards ---------- */
.s-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.s-card {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: var(--s-radius);
  background: var(--s-card);
  border: 1px solid var(--s-line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.s-card:hover { transform: translateY(-4px); box-shadow: var(--s-shadow); }
.s-card-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; color: var(--brand-700); background: var(--brand-50); }
.s-card-icon .icon { width: 25px; height: 25px; }
.s-card h3 { font-family: var(--s-display); font-weight: var(--s-display-weight); font-size: 21px; line-height: 1.2; letter-spacing: calc(var(--s-display-track) / 2); }
.site-college .s-card h3 { font-size: 25px; }
.s-card p { margin-top: 10px; color: var(--s-muted); font-size: 15.5px; line-height: 1.65; }
.site-school .s-cards .s-card:nth-child(4n+1) .s-card-icon { background: #E1EAFF; color: #1D45B8; }
.site-school .s-cards .s-card:nth-child(4n+2) .s-card-icon { background: #FEF1D6; color: #9A5B00; }
.site-school .s-cards .s-card:nth-child(4n+3) .s-card-icon { background: #FFE6DE; color: #B7401F; }
.site-school .s-cards .s-card:nth-child(4n+4) .s-card-icon { background: #DDF5EE; color: #13795F; }
.site-madrasa .s-card { border-radius: 140px 140px var(--s-radius) var(--s-radius); text-align: center; padding-top: 44px; background: #FFFDF8; }
.site-madrasa .s-card-icon { margin: 0 auto 22px; width: 64px; height: 64px; border-radius: 50%; background: var(--brand-50); outline: 1px dashed color-mix(in srgb, var(--s-gold) 60%, transparent); outline-offset: 5px; }
.site-college .s-card { border-top: 3px solid var(--brand-700); }
.site-college .s-card-icon { border-radius: 50%; background: transparent; border: 1px solid var(--s-gold); color: var(--brand-700); }

/* ---------- academics overview ---------- */
.s-programs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.s-program {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--s-radius);
  background: var(--s-card);
  border: 1px solid var(--s-line);
  position: relative;
  overflow: hidden;
}
.s-program::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--dept, var(--brand-600)); }
.site-madrasa .s-program::before { height: 3px; }
.s-program-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.s-program-local { font-size: 14px; color: var(--s-muted); margin-top: 4px; }
.s-program-count { flex: none; font-size: 12.5px; font-weight: 600; color: var(--s-ink-2); background: var(--s-tint); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.site-college .s-program-count { border-radius: 2px; }
.s-program-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 24px; padding: 0; list-style: none; }
.s-program-list li { display: inline-flex; flex-direction: column; padding: 7px 12px; border-radius: 10px; background: var(--s-tint); font-size: 14px; font-weight: 540; color: var(--s-ink-2); line-height: 1.3; }
.site-college .s-program-list li { border-radius: 2px; }
.s-program-list li .arabic { font-size: 15px; color: var(--brand-700); font-weight: 400; direction: rtl; text-align: left; }
.s-program-groups { margin: -8px 0 22px; font-size: 14.5px; color: var(--s-ink-2); }
.s-program-groups span { display: block; font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--s-muted); margin-bottom: 4px; }
.s-program-foot { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--s-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--s-muted); }
.s-program .s-link-arrow { font-size: 14.5px; }
.s-program-years { display: grid; gap: 8px; margin: 20px 0 24px; }
.s-program-years div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 14.5px; padding-bottom: 8px; border-bottom: 1px dashed var(--s-line); }
.s-program-years span { color: var(--s-muted); font-size: 13px; }

/* ---------- notices & events ---------- */
.s-news { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.s-news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.s-notice-list { display: grid; }
.s-notice-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px 4px;
  border-top: 1px solid var(--s-line);
  transition: background .15s;
}
.s-notice-row:last-child { border-bottom: 1px solid var(--s-line); }
.s-notice-row:hover { background: color-mix(in srgb, var(--s-tint) 60%, transparent); }
.s-notice-row:hover .s-notice-title { color: var(--brand-700); }
.s-date { text-align: center; line-height: 1; }
.s-date-d { display: block; font-family: var(--s-display); font-weight: var(--s-display-weight); font-size: 32px; letter-spacing: -.03em; color: var(--s-ink); }
.s-date-m { display: block; margin-top: 5px; font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--s-muted); }
html:lang(bn) .s-date-m { letter-spacing: 0; font-size: 13px; }
.s-notice-title { font-weight: 600; font-size: 17px; line-height: 1.4; color: var(--s-ink); transition: color .15s; }
.s-notice-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; font-size: 13.5px; color: var(--s-muted); }
.s-notice-meta .icon-xs { vertical-align: -2px; }
.s-notice-row .s-arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--s-muted); border: 1px solid var(--s-line); transition: all .2s; }
.s-notice-row:hover .s-arrow { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.s-cat { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 620; color: var(--brand-700); background: var(--brand-50); }
.s-cat-accent { color: var(--accent-ink); background: var(--accent-soft); }
.s-cat-ok { color: var(--ok); background: var(--ok-soft); }
.s-cat-info { color: var(--info); background: var(--info-soft); }
.s-cat-warn { color: var(--warn); background: var(--warn-soft); }
.s-cat-bad { color: var(--bad); background: var(--bad-soft); }
.s-cat-plain { color: var(--s-ink-2); background: var(--s-tint); }
.site-college .s-cat { border-radius: 2px; }
.s-pinned { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--accent-ink); }

.s-event-list { display: grid; gap: 12px; }
.s-event {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--s-radius-sm);
  background: var(--s-card);
  border: 1px solid var(--s-line);
}
.s-event-tile { border-radius: 12px; overflow: hidden; text-align: center; background: var(--s-tint); line-height: 1; }
.site-college .s-event-tile { border-radius: 2px; }
.s-event-tile .m { display: block; padding: 5px 0; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--brand-600); }
.s-event-tile .d { display: block; padding: 7px 0 8px; font-family: var(--s-display); font-weight: var(--s-display-weight); font-size: 24px; color: var(--s-ink); }
.s-event-tile.is-holiday .m { background: var(--accent); }
.s-event-tile.is-exam .m { background: var(--brand-800); }
.s-event-title { font-weight: 600; line-height: 1.35; color: var(--s-ink); }
.s-event-sub { font-size: 13.5px; color: var(--s-muted); margin-top: 3px; }

/* ---------- gallery mosaic ---------- */
.s-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 16px; }
.s-mosaic a { position: relative; display: block; overflow: hidden; border-radius: var(--s-radius-sm); background: var(--s-tint-2); }
.s-mosaic a:first-child { grid-column: span 2; grid-row: span 2; }
.s-mosaic a:nth-child(4) { grid-row: span 2; }
.s-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.s-mosaic a:hover img { transform: scale(1.04); }
.s-mosaic figcaption, .s-photo-cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}
.s-mosaic figcaption span { background: rgba(10, 14, 24, .5); backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-madrasa .s-mosaic a:first-child { border-radius: 260px 260px var(--s-radius-sm) var(--s-radius-sm); }

/* ---------- admission call to action ---------- */
.s-cta { position: relative; overflow: hidden; background: var(--brand-700); color: #fff; isolation: isolate; }
.s-cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 400px); gap: 32px 64px; align-items: center; padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(56px, 6vw, 88px); }
.s-cta-art { position: relative; align-self: stretch; min-height: 240px; margin: calc(-1 * clamp(56px, 6vw, 88px)) 0; }
.s-cta-art svg { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 118%; height: auto; max-width: none; }
.s-cta .s-eyebrow { color: rgba(255, 255, 255, .8); }
.s-cta .s-eyebrow::before { background: var(--accent); }
.s-cta .s-h2 { color: #fff; }
.s-cta p { margin-top: 16px; color: rgba(255, 255, 255, .8); font-size: 17.5px; max-width: 62ch; }
.site-school .s-cta { background: var(--brand-600); }
.site-madrasa .s-cta { background: var(--brand-800); }
.site-college .s-cta { background: var(--brand-800); }
.site-college .s-cta .s-h2 { font-size: clamp(36px, 4vw, 58px); }

/* ---------- contact ---------- */
.s-contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.s-contact-list { display: grid; gap: 14px; margin-top: 28px; }
.s-contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: var(--s-radius-sm); background: var(--s-card); border: 1px solid var(--s-line); }
.s-contact-item .s-ci-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); }
.site-college .s-contact-item .s-ci-icon { border-radius: 50%; }
.s-ci-label { font-size: 13px; color: var(--s-muted); }
.s-ci-value { font-weight: 600; color: var(--s-ink); margin-top: 2px; overflow-wrap: anywhere; }
.s-ci-value a:hover { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
.s-map { position: relative; min-height: 420px; border-radius: var(--s-radius); overflow: hidden; border: 1px solid var(--s-line); background: var(--s-tint-2); }
.s-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.s-map-art { position: absolute; inset: 0; }
.s-map-art svg { width: 100%; height: 100%; }
.s-map-card { position: absolute; left: 20px; bottom: 20px; right: 20px; max-width: 360px; display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--s-card); border-radius: 16px; box-shadow: var(--s-shadow-lg); }
.site-college .s-map-card { border-radius: 4px; }

/* ---------- footer ---------- */
.s-footer { position: relative; background: var(--s-top); color: rgba(255, 255, 255, .72); padding: clamp(56px, 6vw, 84px) 0 0; overflow: hidden; isolation: isolate; font-size: 15px; }
.s-footer-art { position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none; }
.site-madrasa .s-footer-art { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.1'%3E%3Cpath d='M48 10 58 38 86 48 58 58 48 86 38 58 10 48 38 38z'/%3E%3Crect x='29' y='29' width='38' height='38' transform='rotate(45 48 48)'/%3E%3Crect x='29' y='29' width='38' height='38'/%3E%3C/g%3E%3C/svg%3E"); background-size: 96px; }
.site-school .s-footer-art { background-image: radial-gradient(#fff 1.2px, transparent 1.4px); background-size: 26px 26px; mask-image: linear-gradient(0deg, #000, transparent); -webkit-mask-image: linear-gradient(0deg, #000, transparent); }
.site-college .s-footer-art { background-image: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 64px); }
.s-footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.s-footer .s-brand-name { color: #fff; font-size: 21px; }
.site-college .s-footer .s-brand-name { font-size: 25px; }
.s-footer .s-brand-sub { color: rgba(255, 255, 255, .6); font-size: 14px; white-space: normal; }
.s-footer-motto { margin-top: 18px; font-family: var(--s-display); font-style: italic; font-size: 18px; color: rgba(255, 255, 255, .88); }
.site-school .s-footer-motto { font-style: normal; font-weight: 600; }
.s-footer-contact { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.s-footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.s-footer-contact .icon-sm { margin-top: 4px; color: rgba(255, 255, 255, .5); }
.s-footer a:hover { color: #fff; }
.s-footer-title { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
html:lang(bn) .s-footer-title { letter-spacing: 0; font-size: 15px; }
.s-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.s-footer-hours { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.s-footer-hours-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .5); margin-bottom: 4px; }
.s-social { display: flex; gap: 8px; margin-top: 22px; }
.s-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .85); }
.s-social a:hover { background: rgba(255, 255, 255, .1); }
.s-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; color: rgba(255, 255, 255, .55); }
.s-powered { display: inline-flex; align-items: center; gap: 8px; }
.s-powered .mark { border-radius: 5px; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.s-page-hero { position: relative; overflow: hidden; background: var(--s-tint); border-bottom: 1px solid var(--s-line); isolation: isolate; }
.s-page-hero-inner { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 64px); max-width: calc(var(--s-max) + 64px); }
.s-page-hero-inner > div { max-width: 860px; }
.s-page-hero .s-display { font-size: clamp(36px, 4.4vw, 60px); margin-top: 10px; }
.site-college .s-page-hero .s-display { font-size: clamp(42px, 5vw, 72px); }
.s-page-hero .s-lead { margin-top: 14px; }
.s-page-hero-aside { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.s-page-hero-art { position: absolute; right: -40px; top: -40px; bottom: -40px; width: 460px; z-index: -1; pointer-events: none; opacity: .9; }
.s-page-hero-art svg { width: 100%; height: 100%; }
.site-madrasa .s-page-hero { background: var(--brand-800); color: #F6F1E6; border-bottom: 0; }
.site-madrasa .s-page-hero .s-display { color: #FFFBF1; }
.site-madrasa .s-page-hero .s-lead { color: rgba(246, 241, 230, .8); }
.site-madrasa .s-page-hero .s-eyebrow { color: #E9C987; }
.site-madrasa .s-page-hero .s-crumbs, .site-madrasa .s-page-hero .s-crumbs a { color: rgba(246, 241, 230, .7); }
.site-madrasa .s-page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.1'%3E%3Cpath d='M48 10 58 38 86 48 58 58 48 86 38 58 10 48 38 38z'/%3E%3Crect x='29' y='29' width='38' height='38' transform='rotate(45 48 48)'/%3E%3Crect x='29' y='29' width='38' height='38'/%3E%3C/g%3E%3C/svg%3E"); background-size: 96px; mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); }
.site-madrasa .s-page-hero .s-btn-light { background: transparent; color: #FFFBF1; border-color: rgba(255, 255, 255, .34); }
.site-college .s-page-hero { background: var(--s-bg); }
.site-college .s-page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: repeating-linear-gradient(90deg, color-mix(in srgb, var(--brand-900) 5%, transparent) 0 1px, transparent 1px 72px); }
.site-school .s-page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(color-mix(in srgb, var(--brand-500) 22%, transparent) 1.2px, transparent 1.4px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 35%, #000 85%); -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 85%); }
.s-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--s-muted); }
.s-crumbs a:hover { color: var(--s-ink); text-decoration: underline; text-underline-offset: 3px; }
.s-crumbs .sep { opacity: .5; }

.s-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.s-aside { position: sticky; top: 104px; display: grid; gap: 18px; }
.s-panel { padding: 24px; border-radius: var(--s-radius); background: var(--s-card); border: 1px solid var(--s-line); }
.s-panel-title { font-family: var(--s-display); font-weight: var(--s-display-weight); font-size: 20px; letter-spacing: calc(var(--s-display-track) / 2); margin-bottom: 14px; }
.site-college .s-panel-title { font-size: 24px; }
.s-panel-list { display: grid; }
.s-panel-list a { display: block; padding: 11px 0; border-top: 1px solid var(--s-line); font-size: 15px; font-weight: 520; color: var(--s-ink-2); line-height: 1.4; }
.s-panel-list a:first-child { border-top: 0; padding-top: 0; }
.s-panel-list a:hover { color: var(--brand-700); }
.s-panel-list small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--s-muted); font-weight: 450; }

/* prose (markdown pages, notices) */
.s-prose { font-size: 17.5px; line-height: 1.8; color: var(--s-ink-2); max-width: 72ch; }
.s-prose > * + * { margin-top: 1.1em; }
.s-prose h2, .s-prose h3, .s-prose h4 { font-family: var(--s-display); font-weight: var(--s-display-weight); color: var(--s-ink); letter-spacing: calc(var(--s-display-track) / 2); line-height: 1.2; margin-top: 1.8em; }
.s-prose h2 { font-size: 30px; }
.site-college .s-prose h2 { font-size: 36px; }
.s-prose h3 { font-size: 23px; }
.s-prose h4 { font-size: 19px; }
.s-prose a { color: var(--brand-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.s-prose strong { color: var(--s-ink); font-weight: 650; }
.s-prose ul, .s-prose ol { padding-left: 1.3em; }
.s-prose li + li { margin-top: .45em; }
.s-prose li::marker { color: var(--brand-500); }
.s-prose blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-family: var(--s-display); font-size: 1.15em; color: var(--s-ink); }
.site-school .s-prose blockquote { font-family: var(--font-ui); }
.s-prose hr { border: 0; border-top: 1px solid var(--s-line); margin: 2em 0; }
.s-prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.s-prose th, .s-prose td { padding: 10px 12px; border-bottom: 1px solid var(--s-line); text-align: left; }
.s-prose th { font-size: 13.5px; color: var(--s-muted); font-weight: 600; background: var(--s-tint); }
.s-prose img { border-radius: var(--s-radius-sm); }
.s-prose code { font-family: var(--font-mono); font-size: .9em; background: var(--s-tint); padding: 2px 6px; border-radius: 6px; }

/* chips & filters */
.s-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.s-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--s-line); background: var(--s-card); font-size: 14.5px; font-weight: 540; color: var(--s-ink-2); transition: all .15s; white-space: nowrap; }
.s-chip:hover { border-color: var(--brand-300); color: var(--s-ink); }
.s-chip.is-on { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.s-chip .s-chip-n { font-size: 12.5px; opacity: .7; font-variant-numeric: tabular-nums; }
.site-college .s-chip { border-radius: 2px; }
.s-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.s-search { position: relative; min-width: 260px; }
.s-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--s-faint); pointer-events: none; }
.s-search input { width: 100%; height: 44px; padding: 0 16px 0 42px; border-radius: 999px; border: 1px solid var(--s-line); background: var(--s-card); font-size: 15px; outline: none; }
.s-search input:focus { border-color: var(--brand-400); box-shadow: var(--ring); }
.site-college .s-search input { border-radius: 3px; }

/* notices page */
.s-notice-cards { display: grid; gap: 14px; }
.s-notice-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 22px 24px;
  border-radius: var(--s-radius-sm);
  background: var(--s-card);
  border: 1px solid var(--s-line);
  transition: border-color .15s, box-shadow .2s, transform .2s var(--ease);
}
.s-notice-card:hover { border-color: color-mix(in srgb, var(--brand-400) 55%, var(--s-line)); box-shadow: var(--s-shadow); transform: translateY(-2px); }
.s-notice-card.is-pinned { box-shadow: inset 4px 0 0 var(--accent); }
.s-notice-card.is-pinned:hover { box-shadow: inset 4px 0 0 var(--accent), var(--s-shadow); }
.s-notice-card .s-date { padding-right: 20px; border-right: 1px solid var(--s-line); }
.s-notice-excerpt { margin-top: 6px; font-size: 15px; color: var(--s-muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 18px; color: var(--s-muted); font-size: 14.5px; }
.s-article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.site-madrasa .s-page-hero .s-article-meta { color: rgba(246, 241, 230, .75); }
.s-attachment { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--s-radius-sm); border: 1px dashed var(--s-line); background: var(--s-tint); margin-top: 32px; max-width: 72ch; }
.s-attachment-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--s-card); color: var(--brand-700); flex: none; }
.s-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--s-line); max-width: 72ch; }
.s-share-label { font-size: 14px; color: var(--s-muted); margin-right: 6px; }
.s-share a, .s-share button { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--s-line); background: var(--s-card); font-size: 14px; font-weight: 550; color: var(--s-ink-2); }
.s-share a:hover, .s-share button:hover { border-color: var(--brand-300); color: var(--s-ink); }

/* pager */
.s-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; font-size: 14px; color: var(--s-muted); }
.s-pager-pages { display: flex; gap: 6px; }
.s-pager-pages a, .s-pager-pages span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--s-line); background: var(--s-card); font-weight: 560; color: var(--s-ink-2); }
.s-pager-pages a:hover { border-color: var(--brand-300); }
.s-pager-pages .is-current { background: var(--s-ink); border-color: var(--s-ink); color: #fff; }
.s-pager-pages .is-disabled { opacity: .45; }
.site-college .s-pager-pages a, .site-college .s-pager-pages span { border-radius: 2px; }

/* empty */
.s-empty { text-align: center; padding: 64px 24px; border-radius: var(--s-radius); border: 1px dashed var(--s-line); background: var(--s-card); }
.s-empty-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--s-tint); color: var(--brand-600); }
.s-empty-icon .icon { width: 28px; height: 28px; }
.s-empty h3 { font-family: var(--s-display); font-weight: var(--s-display-weight); font-size: 24px; }
.s-empty p { margin: 8px auto 0; max-width: 46ch; color: var(--s-muted); }

/* academics page */
.s-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; position: sticky; top: 80px; z-index: 5; padding: 12px 0; background: color-mix(in srgb, var(--s-bg) 92%, transparent); backdrop-filter: blur(10px); }
.s-dept { scroll-margin-top: 170px; }
.s-dept + .s-dept { margin-top: clamp(56px, 6vw, 88px); }
.s-dept-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 20px; margin-bottom: 26px; border-bottom: 2px solid var(--dept, var(--brand-600)); flex-wrap: wrap; }
.s-dept-local { font-size: 16px; color: var(--s-muted); margin-top: 6px; }
.s-class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.s-class { border-radius: var(--s-radius-sm); background: var(--s-card); border: 1px solid var(--s-line); overflow: hidden; }
.s-class > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; cursor: pointer; list-style: none; }
.s-class > summary::-webkit-details-marker { display: none; }
.s-class > summary:hover { background: color-mix(in srgb, var(--s-tint) 55%, transparent); }
.s-class-name { font-weight: 650; font-size: 17px; color: var(--s-ink); line-height: 1.3; }
.s-class-sub { font-size: 13.5px; color: var(--s-muted); margin-top: 3px; }
.s-class-toggle { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--s-line); color: var(--s-muted); flex: none; transition: transform .2s; }
.s-class[open] .s-class-toggle { transform: rotate(180deg); color: var(--brand-700); }
.s-subjects { list-style: none; margin: 0; padding: 4px 20px 16px; border-top: 1px solid var(--s-line); }
.s-subjects li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--s-line); font-size: 15px; }
.s-subjects li:last-child { border-bottom: 0; }
.s-subjects .s-sub-name { color: var(--s-ink-2); min-width: 0; }
.s-subjects .s-sub-local { display: block; font-size: 13.5px; color: var(--s-muted); }
.s-subjects .arabic.s-sub-local { font-size: 17px; color: var(--brand-700); line-height: 1.5; }
.s-subjects .s-sub-tags { display: flex; gap: 6px; flex: none; }
.s-code { font-family: var(--font-mono); font-size: 12.5px; color: var(--s-muted); background: var(--s-tint); padding: 3px 7px; border-radius: 6px; }
.s-day { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.s-period { padding: 14px 16px; border-radius: 12px; background: var(--s-card); border: 1px solid var(--s-line); }
.s-period.is-break { background: repeating-linear-gradient(-45deg, var(--s-tint), var(--s-tint) 6px, transparent 6px, transparent 12px); }
.s-period-time { font-size: 13px; color: var(--s-muted); font-variant-numeric: tabular-nums; }
.s-period-name { font-weight: 600; margin-top: 3px; }

/* people */
.s-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.s-person { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--s-radius-sm); background: var(--s-card); border: 1px solid var(--s-line); }
.s-person .avatar { --av: 58px; font-size: 20px; }
.site-college .s-person .avatar { border-radius: 50%; }
.s-person-name { font-weight: 650; color: var(--s-ink); line-height: 1.3; }
.s-person-role { font-size: 14px; color: var(--brand-700); font-weight: 560; margin-top: 2px; }
.s-person-meta { font-size: 13.5px; color: var(--s-muted); margin-top: 6px; line-height: 1.45; }
.s-leader { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px; border-radius: var(--s-radius); background: var(--s-card); border: 1px solid var(--s-line); box-shadow: var(--s-shadow); }
.s-leader .avatar { --av: 112px; font-size: 38px; }

/* gallery */
.s-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.s-album { display: block; border-radius: var(--s-radius); overflow: hidden; background: var(--s-card); border: 1px solid var(--s-line); transition: transform .25s var(--ease), box-shadow .25s; }
.s-album:hover { transform: translateY(-4px); box-shadow: var(--s-shadow); }
.s-album-cover { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--s-tint-2); }
.s-album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.s-album:hover .s-album-cover img { transform: scale(1.04); }
.s-album-count { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(10, 14, 24, .55); backdrop-filter: blur(6px); color: #fff; font-size: 12.5px; font-weight: 600; }
.s-album-body { padding: 20px 22px 22px; }
.s-album-title { font-family: var(--s-display); font-weight: var(--s-display-weight); font-size: 22px; line-height: 1.2; letter-spacing: calc(var(--s-display-track) / 2); color: var(--s-ink); }
.site-college .s-album-title { font-size: 26px; }
.s-album-sub { font-size: 14px; color: var(--s-muted); margin-top: 6px; }
.site-madrasa .s-album-cover { border-radius: 0 0 0 0; }
.s-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.s-photos.is-pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.s-photos.is-single { grid-template-columns: minmax(0, 1fr); max-width: 960px; }
.s-photo { position: relative; border-radius: var(--s-radius-sm); overflow: hidden; background: var(--s-tint-2); cursor: zoom-in; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; }
.s-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.s-photo:hover img { transform: scale(1.03); }
.s-photo-cap { opacity: 0; transition: opacity .2s; }
.s-photo:hover .s-photo-cap, .s-photo:focus-visible .s-photo-cap { opacity: 1; }
.s-lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(6, 9, 16, .92); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: fade .15s ease; color: #fff; }
.s-lightbox[hidden] { display: none; }
.s-lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.s-lb-stage { display: grid; place-items: center; padding: 0 70px; min-height: 0; }
.s-lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.s-lb-cap { text-align: center; padding: 16px 20px 26px; font-size: 15px; color: rgba(255, 255, 255, .85); min-height: 60px; }
.s-lb-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .1); }
.s-lb-btn:hover { background: rgba(255, 255, 255, .2); }
.s-lb-prev, .s-lb-next { position: fixed; top: 50%; transform: translateY(-50%); }
.s-lb-prev { left: 14px; }
.s-lb-next { right: 14px; }

/* events page */
.s-month + .s-month { margin-top: 44px; }
.s-month-title { display: flex; align-items: baseline; gap: 12px; font-family: var(--s-display); font-weight: var(--s-display-weight); font-size: 26px; letter-spacing: calc(var(--s-display-track) / 2); padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--s-line); }
.s-month-title small { font-family: var(--font-ui); font-size: 14px; font-weight: 500; color: var(--s-muted); letter-spacing: 0; }
.s-event-rows { display: grid; gap: 12px; }
.s-event-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 20px; border-radius: var(--s-radius-sm); background: var(--s-card); border: 1px solid var(--s-line); }
.s-event-row .s-event-tile .d { font-size: 28px; }
.s-event-row.is-past { opacity: .72; }

/* results & verify */
.s-lookup { padding: clamp(24px, 3vw, 36px); border-radius: var(--s-radius); background: var(--s-card); border: 1px solid var(--s-line); box-shadow: var(--s-shadow); }
.s-lookup-grid { display: grid; grid-template-columns: 2fr 1fr 1fr .8fr auto; gap: 14px; align-items: end; }
.s-lookup-submit { height: 50px; grid-column: 5; grid-row: 1; }
.s-lookup-grid .s-or-row { grid-column: 1; grid-row: 2; text-align: left; padding: 0; }
.s-student-field { grid-column: 2 / -1; grid-row: 2; }
.s-field { display: grid; gap: 7px; min-width: 0; }
.s-field > span, .s-field > label { font-size: 13.5px; font-weight: 600; color: var(--s-ink-2); }
.site .s-input, .site .s-select, .site .s-textarea { width: 100%; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--s-line) 60%, var(--s-muted) 40%); background: #fff; font-size: 16px; color: var(--s-ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.site .s-textarea { height: auto; min-height: 110px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.site .s-select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23687080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.site .s-input:focus, .site .s-select:focus, .site .s-textarea:focus { border-color: var(--brand-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 18%, transparent); }
.site-college .s-input, .site-college .s-select, .site-college .s-textarea { border-radius: 3px; }
.s-field.is-invalid .s-input, .s-field.is-invalid .s-select, .s-field.is-invalid .s-textarea { border-color: var(--bad); }
.s-field-error { font-size: 13.5px; color: var(--bad); font-weight: 560; }
.s-field-hint { font-size: 13px; color: var(--s-muted); }
.s-or { align-self: center; font-size: 13px; font-weight: 600; color: var(--s-faint); text-transform: uppercase; letter-spacing: .1em; padding-bottom: 14px; text-align: center; }

.s-result { margin-top: 32px; border-radius: var(--s-radius); background: var(--s-card); border: 1px solid var(--s-line); overflow: hidden; }
.s-result-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px 30px; background: var(--s-tint); border-bottom: 1px solid var(--s-line); }
.s-result-name { font-family: var(--s-display); font-weight: var(--s-display-weight); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: calc(var(--s-display-track) / 2); }
.s-result-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 14.5px; color: var(--s-muted); }
.s-result-score { display: flex; gap: 12px; }
.s-score { min-width: 118px; padding: 14px 18px; border-radius: 16px; background: var(--s-card); border: 1px solid var(--s-line); text-align: center; }
.s-score-value { font-family: var(--s-display); font-weight: var(--s-display-weight); font-size: 34px; line-height: 1; letter-spacing: -.02em; color: var(--brand-700); }
.s-score-label { font-size: 12.5px; color: var(--s-muted); margin-top: 6px; }
.s-score.is-pass { background: var(--ok-soft); border-color: var(--ok-line); }
.s-score.is-pass .s-score-value { color: var(--ok); }
.s-score.is-fail { background: var(--bad-soft); border-color: var(--bad-line); }
.s-score.is-fail .s-score-value { color: var(--bad); }
.s-table-wrap { overflow-x: auto; }
.s-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.s-table th { text-align: left; font-size: 12.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--s-muted); padding: 12px 16px; border-bottom: 1px solid var(--s-line); white-space: nowrap; background: var(--s-card); }
.s-table td { padding: 13px 16px; border-bottom: 1px solid var(--s-line); vertical-align: middle; }
.s-table tbody tr:last-child td { border-bottom: 0; }
.s-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.s-table .center { text-align: center; }
.s-table tfoot td { font-weight: 650; background: var(--s-tint); }
.s-table .s-sub-local { display: block; font-size: 13px; color: var(--s-muted); }
.s-table .arabic.s-sub-local { font-size: 16px; color: var(--brand-700); text-align: left; }
.s-grade { display: inline-flex; min-width: 44px; justify-content: center; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--brand-50); color: var(--brand-700); white-space: nowrap; }
.s-grade.is-top { background: var(--ok-soft); color: var(--ok); }
.s-grade.is-fail { background: var(--bad-soft); color: var(--bad); }
.s-result-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 30px; border-top: 1px solid var(--s-line); font-size: 14px; color: var(--s-muted); }

.s-notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--info-soft); color: #173E73; border: 1px solid var(--info-line); margin-top: 24px; }
.s-notice .icon { flex: none; margin-top: 2px; }
.s-notice-warn { background: var(--warn-soft); color: #6B3A06; border-color: var(--warn-line); }
.s-notice-bad { background: var(--bad-soft); color: #7A1C25; border-color: var(--bad-line); }
.s-notice-ok { background: var(--ok-soft); color: #14532D; border-color: var(--ok-line); }

.s-portal-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: 14.5px; color: var(--s-muted); }
.s-portal-note .icon { flex: none; margin-top: 3px; color: var(--brand-700); }
.s-portal-note a { color: var(--brand-700); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.s-portal-note a:hover { text-decoration-color: currentColor; }
.s-verdict { margin-top: 32px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px 36px; align-items: start; padding: clamp(24px, 3vw, 40px); border-radius: var(--s-radius); border: 1px solid var(--ok-line); background: linear-gradient(180deg, var(--ok-soft), var(--s-card) 70%); }
.s-verdict.is-invalid { border-color: var(--bad-line); background: linear-gradient(180deg, var(--bad-soft), var(--s-card) 70%); }
.s-seal { width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ok); box-shadow: 0 0 0 8px color-mix(in srgb, var(--ok) 16%, transparent), 0 0 0 16px color-mix(in srgb, var(--ok) 7%, transparent); }
.s-seal .icon { width: 52px; height: 52px; stroke-width: 2.2; }
.s-verdict.is-invalid .s-seal { background: var(--bad); box-shadow: 0 0 0 8px color-mix(in srgb, var(--bad) 14%, transparent), 0 0 0 16px color-mix(in srgb, var(--bad) 6%, transparent); }
.s-verdict-title { font-family: var(--s-display); font-weight: var(--s-display-weight); font-size: clamp(26px, 2.8vw, 36px); line-height: 1.12; letter-spacing: calc(var(--s-display-track) / 2); }
.s-verdict dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 24px; margin: 22px 0 0; }
.s-verdict dt { font-size: 13px; color: var(--s-muted); }
.s-verdict dd { margin: 2px 0 0; font-weight: 650; color: var(--s-ink); overflow-wrap: anywhere; }

/* admission */
.s-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.s-step { position: relative; padding: 26px 22px 24px; border-radius: var(--s-radius-sm); background: var(--s-card); border: 1px solid var(--s-line); counter-increment: step; }
.s-step::after { content: counter(step, decimal-leading-zero); position: absolute; right: 18px; top: 16px; font-family: var(--s-display); font-weight: var(--s-display-weight); font-size: 30px; color: color-mix(in srgb, var(--brand-500) 18%, transparent); }
.s-step-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); margin-bottom: 18px; }
.site-college .s-step-icon { border-radius: 50%; }
.s-step h3 { font-weight: 650; font-size: 17.5px; line-height: 1.3; }
.s-step p { margin-top: 8px; font-size: 14.5px; color: var(--s-muted); line-height: 1.6; }
.s-fees caption { caption-side: bottom; text-align: left; padding: 14px 16px; font-size: 13.5px; color: var(--s-muted); }
.s-fees .s-group-row td { background: var(--s-tint); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--s-ink-2); padding-top: 10px; padding-bottom: 10px; }
.s-fees th small { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--s-faint); margin-top: 2px; }
.s-fees td:first-child { font-weight: 560; color: var(--s-ink); white-space: nowrap; }
.s-doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.s-doc-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--s-ink-2); line-height: 1.5; }
.s-doc-list li .icon-sm { flex: none; margin-top: 4px; color: var(--ok); }
.s-faq { display: grid; gap: 10px; }
.s-faq details { border-radius: var(--s-radius-sm); background: var(--s-card); border: 1px solid var(--s-line); }
.s-faq summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 18px 20px; font-weight: 600; cursor: pointer; list-style: none; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary .icon-sm { flex: none; transition: transform .2s; color: var(--s-muted); }
.s-faq details[open] summary .icon-sm { transform: rotate(45deg); color: var(--brand-600); }
.s-faq details p { padding: 0 20px 20px; color: var(--s-muted); line-height: 1.7; }

.s-form-card { border-radius: var(--s-radius); background: var(--s-card); border: 1px solid var(--s-line); box-shadow: var(--s-shadow); overflow: hidden; }
.s-form-section { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px 40px; padding: 32px clamp(20px, 3vw, 40px); border-top: 1px solid var(--s-line); }
.s-form-section:first-child { border-top: 0; }
.s-form-section h2 { font-family: var(--s-display); font-weight: var(--s-display-weight); font-size: 21px; letter-spacing: calc(var(--s-display-track) / 2); line-height: 1.25; }
.site-college .s-form-section h2 { font-size: 25px; }
.s-form-section-sub { font-size: 14px; color: var(--s-muted); margin-top: 6px; line-height: 1.55; }
.s-form-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.s-form-grid > * { grid-column: span 6; }
.s-form-grid > .w-2 { grid-column: span 2; }
.s-form-grid > .w-3 { grid-column: span 3; }
.s-form-grid > .w-4 { grid-column: span 4; }
.s-req { color: var(--bad); margin-left: 2px; }
.s-opt { font-weight: 450; color: var(--s-faint); font-size: 12.5px; margin-left: 6px; }
.s-radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.s-radio { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--s-line) 60%, var(--s-muted) 40%); background: #fff; cursor: pointer; font-weight: 540; }
.s-radio input { accent-color: var(--brand-600); width: 18px; height: 18px; margin: 0; }
.s-radio:has(input:checked) { border-color: var(--brand-500); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-500); }
.site-college .s-radio { border-radius: 3px; }
.s-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--s-ink-2); line-height: 1.55; cursor: pointer; }
.s-check input { accent-color: var(--brand-600); width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.s-form-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 24px clamp(20px, 3vw, 40px); background: var(--s-tint); border-top: 1px solid var(--s-line); }
.s-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.s-photo-drop { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--s-line) 50%, var(--s-muted) 50%); background: var(--s-tint); }
.s-photo-drop .s-photo-box { width: 76px; height: 92px; border-radius: 10px; background: #fff; border: 1px solid var(--s-line); display: grid; place-items: center; overflow: hidden; color: var(--s-faint); flex: none; }
.s-photo-drop img { width: 100%; height: 100%; object-fit: cover; }

.s-success { text-align: center; padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px); border-radius: var(--s-radius); background: var(--s-card); border: 1px solid var(--s-line); box-shadow: var(--s-shadow); }
.s-success .s-seal { margin: 0 auto 26px; }
.s-appno { display: inline-flex; flex-direction: column; gap: 6px; margin-top: 26px; padding: 18px 32px; border-radius: 16px; background: var(--s-tint); border: 1px dashed var(--brand-300); }
.s-appno span { font-size: 13px; color: var(--s-muted); letter-spacing: .08em; text-transform: uppercase; }
.s-appno strong { font-family: var(--font-mono); font-size: clamp(26px, 3vw, 36px); letter-spacing: .02em; color: var(--brand-800); }
.s-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; margin-top: 32px; text-align: left; border-top: 1px solid var(--s-line); }
.s-summary div { padding: 14px 4px; border-bottom: 1px solid var(--s-line); }
.s-summary dt { font-size: 13px; color: var(--s-muted); }
.s-summary dd { margin: 2px 0 0; font-weight: 600; }

/* reveal on scroll */
.js .s-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .s-reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
  .s-nav > a, .s-more > summary { padding: 0 9px; font-size: 14px; }
  .site-college .s-nav > a, .site-college .s-more > summary { font-size: 12px; padding: 0 8px; }
  .s-brand-name { font-size: 17px; }
  .site-college .s-brand-name { font-size: 21px; }
  .s-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-lookup-grid { grid-template-columns: 1fr 1fr; }
  .s-lookup-submit, .s-or-row, .s-student-field { grid-column: 1 / -1; grid-row: auto; }
  .s-lookup-grid .s-or-row { grid-column: 1 / -1; grid-row: auto; padding-top: 4px; text-align: center; }
}

@media (max-width: 1080px) {
  .s-nav, .s-header-cta .s-btn { display: none; }
  .s-header-cta { margin-left: auto; }
  .s-burger { display: inline-flex; }
  .s-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .s-hero-art { max-width: 620px; margin: 0 auto; width: 100%; }
  .s-split, .s-news, .s-contact, .s-layout { grid-template-columns: minmax(0, 1fr); }
  .s-aside { position: static; }
  .s-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-footer-brand { grid-column: span 2; }
  .s-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-form-section { grid-template-columns: minmax(0, 1fr); }
  .s-cta-inner { grid-template-columns: minmax(0, 1fr); }
  .s-cta-art { display: none; }
  .s-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s-mosaic a:nth-child(4) { grid-row: span 1; }
  .s-photos, .s-photos.is-pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .site { font-size: 15.5px; }
  .s-wrap { padding: 0 18px; }
  .s-hero-grid { padding: 36px 18px 56px; }
  .hide-sm { display: none !important; }
  .hide-md { display: none !important; }
  .s-topbar { font-size: 12.5px; }
  .s-topbar-links { gap: 14px; }
  .s-header-row { height: 68px; gap: 12px; }
  .s-brand .crest { width: 40px !important; height: 40px !important; }
  .s-brand-name { font-size: 15.5px; }
  .site-college .s-brand-name { font-size: 18.5px; }
  .s-brand-sub { display: none; }
  .s-brand-arabic { font-size: 13px; }
  .s-display { font-size: clamp(36px, 10vw, 46px); }
  .site-college .s-hero .s-display { font-size: clamp(42px, 11.5vw, 54px); }
  .s-hero .s-actions .s-btn { flex: 1 1 auto; }
  .s-float { position: relative; left: auto !important; right: auto !important; bottom: auto !important; top: auto !important; margin: -40px auto 0; max-width: 92%; animation: none; }
  .site-madrasa .s-hero-art svg { width: 100%; }
  .site-madrasa .s-float-value { white-space: normal; }
  .s-hero-facts { margin-top: 28px; font-size: 13.5px; }
  .s-ticker-row { flex-wrap: wrap; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .s-ticker-track { order: 3; flex-basis: 100%; height: 46px; }
  .s-ticker-item { display: block; }
  .s-ticker-item time { display: block; font-size: 12.5px; line-height: 1.3; }
  .s-ticker-pin { display: none; }
  .s-ticker-item .s-ticker-title { display: block; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .s-ticker-nav { display: none; }
  .s-ticker-all { margin-left: auto; }
  .s-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-stats > div { padding: 24px 14px; }
  .s-stats > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .s-stats > div:nth-child(n+3) { border-top: 1px solid var(--s-line); }
  .s-cards { grid-template-columns: minmax(0, 1fr); }
  .s-facts { grid-template-columns: minmax(0, 1fr); }
  .s-facts > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .s-notice-row { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
  .s-notice-row .s-arrow { display: none; }
  .s-date-d { font-size: 26px; }
  .s-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; }
  .s-mosaic a:first-child { grid-column: span 2; }
  .s-mosaic a:nth-child(n+6) { display: none; }
  .s-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .s-footer-brand { grid-column: auto; }
  .s-footer-bottom { flex-direction: column; align-items: flex-start; }
  .s-steps { grid-template-columns: minmax(0, 1fr); }
  .s-notice-card { grid-template-columns: 60px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .s-notice-card .s-date { padding-right: 12px; }
  .s-notice-card > .s-arrow { display: none; }
  .s-event-row { grid-template-columns: 62px minmax(0, 1fr); gap: 14px; }
  .s-event-row > :last-child:not(:nth-child(2)) { grid-column: 2; }
  .s-lookup-grid { grid-template-columns: minmax(0, 1fr); }
  .s-result-head { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .s-result-score { flex-wrap: wrap; }
  .s-score { min-width: 0; flex: 1; }
  .s-result-foot { padding: 14px 18px; }
  .s-verdict { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .s-verdict .s-seal { margin: 0 auto; }
  .s-verdict dl { text-align: left; }
  .s-form-grid > .w-2, .s-form-grid > .w-3, .s-form-grid > .w-4 { grid-column: span 6; }
  .s-leader { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .s-leader .avatar { margin: 0 auto; }
  .s-class-grid, .s-albums, .s-people { grid-template-columns: minmax(0, 1fr); }
  .s-photos, .s-photos.is-pairs { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .s-tabs { top: 68px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .s-map { min-height: 320px; }
  .s-lb-stage { padding: 0 10px; }
  .s-lb-prev, .s-lb-next { top: auto; bottom: 18px; transform: none; }
  .s-page-hero-art { width: 260px; opacity: .45; }
  .site-madrasa .s-message { border-radius: 160px 160px var(--s-radius) var(--s-radius); }
  .site-madrasa .s-card { border-radius: 100px 100px var(--s-radius) var(--s-radius); }
}

@media (max-width: 350px) {
  .s-topbar-contact a span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .s-float, .s-live { animation: none; }
  .js .s-reveal { opacity: 1; transform: none; transition: none; }
  .s-ticker-item { transition: none; }
}

@media print {
  .s-topbar, .s-header, .s-footer, .s-ticker, .s-menu, .s-share, .s-no-print { display: none !important; }
  .site { background: #fff; }
  .s-page-hero { background: #fff !important; color: #000 !important; }
  .s-result { border: 0; }
}
