/* IQC1960 design system, v2. Plain CSS, no build step. */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Aref Ruqaa"; src: url("../fonts/aref-ruqaa-arabic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("../fonts/amiri-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --em-950: #071b1d;
  --em-900: #0a2527;
  --em-800: #0f3437;
  --em-700: #164649;
  --em-600: #1f5b5e;
  --gilt: #c6a15b;
  --gilt-2: #e3cc95;
  --gilt-3: #8e6f33;
  --ivory: #f2ecdf;      /* light tone on dark, and the archive paper */
  --ivory-2: #e7dfcc;
  --lapis-950: #0b1a33;
  --lapis-900: #10264a;
  --lapis-700: #1c3d70;
  --lapis-500: #2f5d9e;
  --lapis-100: #dde6f3;
  --chalk: #f4f6f9;
  --white: #ffffff;
  --ink: #15191d;
  --ink-2: #3a434b;
  --muted: #5f6872;
  --line: #dde2e7;
  --line-2: #eceff2;
  --ok: #2b7a4b;  --ok-bg: #e2f1e8;
  --warn: #8c5a00; --warn-bg: #f8edd6;
  --bad: #b3261e; --bad-bg: #fae3e0;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ruqaa: "Aref Ruqaa", "Amiri", serif;
  --naskh: "Amiri", "Traditional Arabic", serif;

  --wrap: 1240px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --r-1: 4px; --r-2: 8px; --r-3: 14px;

  /* Division accent, switched by body class */
  --accent: var(--em-700);
  --accent-dark: var(--em-900);
  --accent-soft: #e3ecea;

  --girih: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23c6a15b' stroke-width='.8'%3E%3Cpath d='M48 16l9.4 22.6L80 48l-22.6 9.4L48 80l-9.4-22.6L16 48l22.6-9.4z'/%3E%3Cpath d='M25.4 25.4h45.2v45.2H25.4z' transform='rotate(45 48 48)'/%3E%3Cpath d='M48 0v16M48 80v16M0 48h16M80 48h16M0 0l25.4 25.4M96 0L70.6 25.4M0 96l25.4-25.4M96 96L70.6 70.6'/%3E%3C/g%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.div-academics { --accent: var(--lapis-700); --accent-dark: var(--lapis-900); --accent-soft: var(--lapis-100); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; }
figure { margin: 0; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .45em; font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -.01em; color: inherit; }
h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.12; }
.ar { font-family: var(--naskh); direction: rtl; unicode-bidi: isolate; }
.ruqaa { font-family: var(--ruqaa); font-weight: 700; direction: rtl; unicode-bidi: isolate; line-height: 1.3; }
.kicker { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--gilt); margin-bottom: .9rem; display: block; line-height: 1.2; }
.lede { font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.6; max-width: 38rem; }
.measure { max-width: 40rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.tiny { font-size: .8rem; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--white); padding: .6rem 1rem; }
.skip:focus { left: .5rem; }
.preview-flag { margin: 0; background: #1b1407; color: var(--gilt-2); font-size: .78rem; padding: .5rem 1rem; text-align: center; }
.app .preview-flag { grid-column: 1 / -1; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .75rem 1.4rem; border-radius: var(--r-1); border: 1px solid transparent; font: 600 1rem/1.2 var(--sans); letter-spacing: .005em; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-gilt { background: var(--gilt); color: #1b1407; }
.btn-gilt:hover { background: var(--gilt-2); color: #1b1407; }
.btn-solid { background: var(--accent); color: var(--white); }
.btn-solid:hover { background: var(--accent-dark); color: var(--white); }
.btn-line { border-color: currentColor; color: var(--accent); background: transparent; }
.btn-line:hover { background: var(--accent-soft); }
.btn-line-light { border-color: rgba(242,236,223,.5); color: var(--ivory); background: transparent; }
.btn-line-light:hover { border-color: var(--ivory); color: var(--white); }
.btn-sm { min-height: 38px; padding: .45rem .9rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--line-2); color: var(--muted); border-color: transparent; cursor: not-allowed; }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link:hover { border-bottom-width: 2px; }

.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; padding: .22rem .6rem; border-radius: 99px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.tag-open { background: var(--ok-bg); color: var(--ok); }
.tag-few { background: var(--warn-bg); color: var(--warn); }
.tag-full, .tag-closed { background: var(--line-2); color: var(--muted); }
.tag-bad { background: var(--bad-bg); color: var(--bad); }
.tag-level { background: var(--accent-soft); color: var(--accent); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.tag-level::before, .tag-plain::before { display: none; }

/* ---------- Ornament ---------- */
.ornament { display: flex; align-items: center; gap: 1rem; color: var(--gilt); margin: 0 auto 1.5rem; max-width: 220px; }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .6; }
.ornament svg { width: 22px; height: 22px; flex: none; }
.girih { position: relative; isolation: isolate; }
.girih::before { content: ""; position: absolute; inset: 0; background-image: var(--girih); background-size: 96px; opacity: .09; z-index: -1; pointer-events: none; }
.grain::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .22; mix-blend-mode: overlay; pointer-events: none; z-index: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); color: var(--ink); }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 80px; }
body.has-hero .site-header { position: absolute; left: 0; right: 0; background: transparent; backdrop-filter: none; border-bottom: 1px solid rgba(242,236,223,.14); color: var(--ivory); }
.lockup { display: flex; align-items: center; gap: .85rem; color: inherit; text-decoration: none; min-width: 0; }
.crest { width: 46px; height: 46px; border-radius: 50%; background: var(--white); display: grid; place-items: center; flex: none; box-shadow: 0 0 0 1px var(--gilt); }
.crest img { width: 34px; height: auto; }
.lockup-name { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1; display: block; white-space: nowrap; }
.lockup-sub { display: block; font-size: .78rem; letter-spacing: .02em; opacity: .75; margin-top: .25rem; white-space: nowrap; }
.lockup-div { border-left: 1px solid currentColor; padding-left: .85rem; margin-left: .1rem; opacity: .9; font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.1; white-space: nowrap; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; align-items: center; gap: .2rem; margin: 0; padding: 0; }
.nav a { display: block; white-space: nowrap; padding: .55rem .7rem; color: inherit; text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gilt); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav .nav-switch a { font-family: var(--serif); font-style: italic; font-size: 1.1rem; opacity: .85; }
.head-actions { display: flex; align-items: center; gap: .6rem; white-space: nowrap; }
.div-islamic .lockup-sub, .div-academics .lockup-sub { display: none; }
@media (max-width: 1440px) { .lockup-div { display: none; } }
@media (max-width: 1320px) { .nav .nav-switch { display: none; } }
.head-actions .signin { color: inherit; font-weight: 600; text-decoration: none; padding: .5rem .6rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid currentColor; color: inherit; border-radius: var(--r-1); min-height: 42px; padding: 0 .9rem; font: 600 .9rem var(--sans); }
.nav-only-mobile { display: none; }
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(0,0,0,.25); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1.25rem; }
  .nav a { padding: .9rem .25rem; border-bottom: 1px solid var(--line-2); font-size: 1.05rem; }
  .nav-only-mobile, .nav .nav-switch { display: block; }
  .head-actions .signin { display: none; }
  .lockup-div { display: none; }
}
@media (max-width: 520px) {
  .site-header .wrap { gap: .75rem; min-height: 68px; }
  .lockup-name { font-size: 1.2rem; }
  .lockup-sub { display: none; }
  .crest { width: 40px; height: 40px; } .crest img { width: 29px; }
  .head-actions .btn { display: none; }
}

/* ---------- Landing hero ---------- */
.lp-hero { position: relative; background: var(--em-900); color: var(--ivory); min-height: min(100vh, 900px); display: flex; flex-direction: column; overflow: hidden; }
.lp-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 78% 40%, rgba(198,161,91,.14), transparent 60%), radial-gradient(ellipse 60% 70% at 10% 100%, rgba(31,91,94,.45), transparent 70%); }
.lp-hero .girih-layer { position: absolute; inset: 0; background-image: var(--girih); background-size: 120px; opacity: .06; mask-image: linear-gradient(90deg, transparent 0%, #000 55%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }
.lp-iqra { position: absolute; right: 4vw; top: 50%; transform: translateY(-56%); font-family: var(--ruqaa); font-weight: 700; font-size: clamp(12rem, 25vw, 25rem); line-height: 1; color: transparent; background: linear-gradient(160deg, var(--gilt-2) 10%, var(--gilt) 45%, var(--gilt-3) 90%); -webkit-background-clip: text; background-clip: text; opacity: .9; user-select: none; pointer-events: none; }
.lp-hero .wrap { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; padding-top: 130px; padding-bottom: 4rem; }
.lp-hero-copy { max-width: 40rem; }
.lp-hero h1 { font-size: clamp(3rem, 7vw, 6.2rem); line-height: .98; color: var(--white); margin-bottom: .35em; }
.lp-hero .lede { color: rgba(242,236,223,.82); }
.lp-hero .lede em { font-family: var(--serif); font-size: 1.15em; color: var(--gilt-2); }
.lp-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.lp-hero-foot { position: relative; z-index: 2; border-top: 1px solid rgba(242,236,223,.14); }
.lp-hero-foot .wrap { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 1.25rem; gap: 1.5rem; font-size: .92rem; color: rgba(242,236,223,.72); }
.lp-hero-foot strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.45rem; color: var(--ivory); line-height: 1.15; }
@media (max-width: 900px) {
  .lp-iqra { font-size: 62vw; right: -10vw; top: 22%; opacity: .14; }
  .lp-hero-foot .wrap { grid-template-columns: 1fr 1fr; }
}

/* ---------- Archive filmstrip ---------- */
.filmstrip { background: var(--em-950); padding-block: 1.25rem; overflow: hidden; }
.filmstrip-track { display: flex; gap: .75rem; width: max-content; }
.filmstrip img { height: 150px; width: auto; border-radius: 2px; }
.filmstrip-cap { color: rgba(242,236,223,.6); font-size: .8rem; text-align: right; margin-top: .75rem; }
@media (max-width: 600px) { .filmstrip img { height: 104px; } }

/* ---------- Divisions diptych ---------- */
.divisions-intro { text-align: center; padding-block: clamp(4rem, 9vw, 7rem) clamp(2.5rem, 5vw, 3.5rem); }
.divisions-intro h2 { margin-bottom: .3em; }
.divisions-intro p { color: var(--muted); max-width: 36rem; margin-inline: auto; }
.diptych { display: grid; grid-template-columns: 1fr 1fr; }
.dip { position: relative; padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem); display: flex; flex-direction: column; isolation: isolate; overflow: hidden; }
.dip h3 { font-size: clamp(2.2rem, 3.6vw, 3.3rem); line-height: 1; margin-bottom: .4em; }
.dip > p { max-width: 30rem; }
.dip-mark { font-size: clamp(4.5rem, 9vw, 8rem); line-height: 1.1; margin-bottom: 1.25rem; }
.dip-list { list-style: none; padding: 0; margin: 2rem 0 2.5rem; border-top: 1px solid; }
.dip-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid; }
.dip-cta { margin-top: auto; align-self: flex-start; }
.dip--islamic { background: var(--em-800); color: var(--ivory); }
.dip--islamic::before { content: ""; position: absolute; inset: 0; background-image: var(--girih); background-size: 96px; opacity: .07; z-index: -1; }
.dip--islamic .dip-mark { color: var(--gilt); }
.dip--islamic .dip-list, .dip--islamic .dip-list li { border-color: rgba(198,161,91,.35); }
.dip--islamic .dip-list .en { font-family: var(--serif); font-size: 1.35rem; }
.dip--islamic .dip-list .ar { font-size: 1.35rem; color: var(--gilt-2); }
.dip--islamic > p { color: rgba(242,236,223,.8); }
.dip--academic { background: var(--chalk); color: var(--lapis-900); }
.dip--academic::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(47,93,158,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(47,93,158,.09) 1px, transparent 1px); background-size: 28px 28px; }
.dip--academic h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -.035em; }
.dip--academic .dip-mark { font-family: var(--sans); font-weight: 700; letter-spacing: -.06em; color: var(--lapis-500); }
.dip--academic > p { color: var(--ink-2); }
.dip--academic .dip-list, .dip--academic .dip-list li { border-color: rgba(28,61,112,.22); }
.dip--academic .dip-list .idx { font-variant-numeric: tabular-nums; color: var(--lapis-500); font-weight: 600; width: 2.5rem; flex: none; }
.dip--academic .dip-list .en { font-weight: 600; flex: 1; }
.dip--academic .dip-list .meta { color: var(--muted); font-size: .9rem; }
.dip--academic .btn-solid { background: var(--lapis-700); }
.dip--academic .btn-solid:hover { background: var(--lapis-900); }
@media (max-width: 900px) { .diptych { grid-template-columns: 1fr; } }

/* ---------- Archive exhibition (salon hang) ---------- */
.exhibit { background: var(--ivory); color: var(--ink); padding-block: clamp(4rem, 9vw, 7rem); position: relative; }
.exhibit-grid { display: grid; grid-template-columns: minmax(260px, 4fr) 8fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.exhibit-text { position: sticky; top: 110px; }
.exhibit-text h2 { color: var(--em-900); }
.exhibit-text p { color: var(--ink-2); }
.salon { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.75rem 1.25rem; align-items: end; }
.salon figure { margin: 0; }
.salon img { width: 100%; object-fit: cover; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 18px 30px -18px rgba(10,37,39,.45); outline: 1px solid rgba(10,37,39,.12); outline-offset: 6px; }
.salon figcaption { font-size: .82rem; color: var(--ink-2); margin-top: .9rem; line-height: 1.45; }
.salon figcaption b { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--em-800); display: block; margin-bottom: .1rem; }
.s-a { grid-column: 1 / span 4; } .s-a img { aspect-ratio: 16 / 10; }
.s-b { grid-column: 5 / span 2; } .s-b img { aspect-ratio: 4 / 5; }
.s-c { grid-column: 1 / span 2; } .s-c img { aspect-ratio: 1; }
.s-d { grid-column: 3 / span 2; } .s-d img { aspect-ratio: 4 / 5; }
.s-e { grid-column: 5 / span 2; } .s-e img { aspect-ratio: 1; }
.s-f { grid-column: 3 / span 4; } .s-f img { aspect-ratio: 16 / 9; }
@media (max-width: 960px) { .exhibit-grid { grid-template-columns: 1fr; } .exhibit-text { position: static; } }
@media (max-width: 560px) { .salon { grid-template-columns: 1fr 1fr; } .salon figure { grid-column: auto / span 1 !important; } .s-a, .s-f { grid-column: 1 / -1 !important; } }

/* ---------- Vision band ---------- */
.vision { background: var(--em-900); color: var(--ivory); text-align: center; padding-block: clamp(4.5rem, 10vw, 8rem); }
.vision blockquote { margin: 0 auto; max-width: 56rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.22; color: var(--white); }
.vision cite { display: block; margin-top: 1.75rem; font-style: normal; font-size: .9rem; color: rgba(242,236,223,.7); letter-spacing: .02em; }
.vision .ruqaa { font-size: clamp(2rem, 4vw, 3rem); color: var(--gilt); margin-bottom: 1.25rem; }

/* ---------- Steps path ---------- */
.path { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; position: relative; }
.path::before { content: ""; position: absolute; top: 1.6rem; left: 1.6rem; right: calc(25% + 1.6rem); height: 1px; background: var(--gilt); opacity: .7; }
.path li { counter-increment: s; padding-right: 1.75rem; position: relative; }
.path li::before { content: counter(s); display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--white); border: 1px solid var(--gilt); font-family: var(--sans); font-weight: 600; font-size: 1.1rem; color: var(--accent); margin-bottom: 1.25rem; position: relative; }
.path h3 { font-family: var(--sans); font-weight: 700; font-size: 1.08rem; letter-spacing: 0; margin-bottom: .35rem; }
.path p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .path { grid-template-columns: 1fr 1fr; gap: 2rem 0; } .path::before { display: none; } }
@media (max-width: 520px) { .path { grid-template-columns: 1fr; } }

.sec { padding-block: clamp(4rem, 9vw, 7rem); }
.sec-chalk { background: var(--chalk); }
.sec-ivory { background: var(--ivory); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sec-head > div { max-width: 44rem; }
.sec-head p { color: var(--muted); margin: 0; }

/* ---------- Islamic division hero ---------- */
.ih { position: relative; background: var(--em-900); color: var(--ivory); overflow: hidden; }
.ih > .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-top: 150px; padding-bottom: clamp(3rem, 6vw, 5rem); }
.ih h1 { color: var(--white); font-size: clamp(2.8rem, 5.4vw, 5rem); }
.ih .lede { color: rgba(242,236,223,.82); }
.ih .bismillah { font-family: var(--naskh); font-size: 1.7rem; color: var(--gilt-2); direction: rtl; display: block; text-align: left; margin-bottom: 1.25rem; }
.ih-watermark { position: absolute; left: -3vw; bottom: -6vw; font-family: var(--ruqaa); font-weight: 700; font-size: clamp(12rem, 26vw, 26rem); color: rgba(198,161,91,.07); line-height: 1; pointer-events: none; user-select: none; }
.mihrab { position: relative; justify-self: end; width: min(100%, 460px); aspect-ratio: 4 / 5.2; }
.mihrab::before, .mihrab::after { content: ""; position: absolute; border: 1px solid var(--gilt); border-radius: 999px 999px 0 0; pointer-events: none; }
.mihrab::before { inset: -18px -18px 0 -18px; opacity: .55; }
.mihrab::after { inset: -9px -9px 0 -9px; opacity: .35; }
.mihrab img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 0 0; }
.mihrab .sill { position: absolute; left: -18px; right: -18px; bottom: -1px; height: 1px; background: var(--gilt); }
.ledger { position: relative; z-index: 2; border-top: 1px solid rgba(198,161,91,.3); }
.ledger ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.ledger li { padding: 1.35rem 1.25rem 1.5rem 0; font-size: .9rem; color: rgba(242,236,223,.7); }
.ledger li + li { padding-left: 1.25rem; border-left: 1px solid rgba(198,161,91,.3); }
.ledger strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.4rem; color: var(--ivory); line-height: 1.2; margin-bottom: .15rem; }
@media (max-width: 900px) {
  .ih > .wrap { grid-template-columns: 1fr; padding-top: 120px; }
  .mihrab { justify-self: center; width: min(78%, 360px); margin-top: 1rem; }
  .ledger ul { grid-template-columns: 1fr 1fr; }
  .ledger li:nth-child(3) { border-left: 0; padding-left: 0; }
  .ledger li:nth-child(n+3) { border-top: 1px solid rgba(198,161,91,.3); }
}

/* Illuminated index of disciplines */
.illum { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--gilt); border-bottom: 1px solid var(--gilt); }
.illum > div { padding: 2.25rem 2rem 2.5rem; }
.illum > div + div { border-left: 1px solid rgba(198,161,91,.55); }
.illum .ruqaa { font-size: 3rem; color: var(--gilt-3); display: block; margin-bottom: .5rem; text-align: left; }
.illum h3 { color: var(--em-900); }
.illum p { color: var(--ink-2); }
@media (max-width: 900px) { .illum { grid-template-columns: 1fr; } .illum > div + div { border-left: 0; border-top: 1px solid rgba(198,161,91,.55); } .illum > div { padding-inline: 0; } }

/* Curriculum on emerald */
.curric { background: var(--em-800); color: var(--ivory); }
.curric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(198,161,91,.3); }
.curric-grid > div { padding: 2rem 1.75rem 2.25rem 0; border-bottom: 1px solid rgba(198,161,91,.3); }
.curric-grid > div:not(:nth-child(3n+1)) { padding-left: 1.75rem; border-left: 1px solid rgba(198,161,91,.3); }
.curric-grid .ruqaa { font-size: 2.1rem; color: var(--gilt); display: block; text-align: left; margin-bottom: .25rem; }
.curric-grid h3 { color: var(--white); font-size: 1.6rem; }
.curric-grid p { color: rgba(242,236,223,.72); margin: 0; font-size: .97rem; }
.curric h2 { color: var(--white); }
.curric .sec-head p { color: rgba(242,236,223,.72); }
@media (max-width: 900px) { .curric-grid { grid-template-columns: 1fr 1fr; } .curric-grid > div { padding-left: 0 !important; border-left: 0 !important; padding-right: 1rem; } }
@media (max-width: 560px) { .curric-grid { grid-template-columns: 1fr; } }

/* ---------- Class register (open classes) ---------- */
.register { border-top: 2px solid var(--accent); }
.reg-row { display: grid; grid-template-columns: 2.1fr 1.4fr 1.5fr 1fr 1fr 118px; gap: 1.25rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.reg-head { padding-block: .7rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.reg-course a { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.1; color: var(--ink); text-decoration: none; }
.div-academics .reg-course a { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.reg-course a:hover { color: var(--accent); }
.reg-course .tag { margin-top: .45rem; }
.reg-row .v { display: block; font-weight: 600; }
.reg-row .s { display: block; font-size: .88rem; color: var(--muted); }
.reg-price .v { font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) {
  .reg-head { display: none; }
  .reg-row { grid-template-columns: 1fr 1fr; gap: .9rem 1.25rem; padding: 1.5rem 0; }
  .reg-course { grid-column: 1 / -1; }
  .reg-row > :last-child { grid-column: 1 / -1; }
  .reg-row > :last-child .btn { width: 100%; }
}

/* ---------- Testimonial ---------- */
.testimony { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.testimony img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.testimony blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.22; color: var(--em-900); }
.testimony blockquote::before { content: "\201C"; display: block; font-size: 5rem; line-height: .6; color: var(--gilt); margin-bottom: .5rem; }
.testimony figcaption { margin-top: 1.5rem; color: var(--muted); }
@media (max-width: 860px) { .testimony { grid-template-columns: 1fr; } .testimony img { aspect-ratio: 16 / 10; } }

/* ---------- Journal ---------- */
.journal { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 4rem); }
.journal-feature img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; margin-bottom: 1.25rem; }
.journal-feature h3 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
.journal h3 a { color: var(--ink); text-decoration: none; }
.journal h3 a:hover { text-decoration: underline; text-decoration-color: var(--gilt); }
.journal .meta { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.journal-list { border-top: 1px solid var(--line); }
.journal-list article { display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.journal-list img { aspect-ratio: 1; object-fit: cover; }
.journal-list h3 { font-size: 1.45rem; }
@media (max-width: 860px) { .journal { grid-template-columns: 1fr; } }

/* ---------- Closing arch CTA ---------- */
.arch-cta { position: relative; max-width: 860px; margin-inline: auto; text-align: center; background: var(--em-800); color: var(--ivory); border-radius: 999px 999px var(--r-2) var(--r-2); padding: clamp(5rem, 12vw, 8rem) clamp(1.5rem, 6vw, 5rem) clamp(3rem, 6vw, 4.5rem); isolation: isolate; overflow: hidden; }
.arch-cta::before { content: ""; position: absolute; inset: 0; background-image: var(--girih); background-size: 96px; opacity: .08; z-index: -1; }
.arch-cta::after { content: ""; position: absolute; inset: 14px 14px 0; border: 1px solid rgba(198,161,91,.5); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; }
.arch-cta h2 { color: var(--white); font-size: clamp(1.9rem, 3.4vw, 2.8rem); max-width: 22ch; margin-inline: auto; }
.arch-cta p { color: rgba(242,236,223,.75); }

/* ---------- Academic division ---------- */
.ah { position: relative; background: var(--chalk); color: var(--lapis-950); overflow: hidden; }
.ah::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(47,93,158,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(47,93,158,.08) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(180deg, #000 60%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); }
.ah .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3.5rem, 7vw, 6rem); }
.ah .kicker-sans { display: inline-flex; gap: .5rem; align-items: center; font-size: .9rem; font-weight: 600; color: var(--lapis-500); margin-bottom: 1.25rem; }
.ah .kicker-sans::before { content: ""; width: 26px; height: 2px; background: var(--gilt); }
.ah h1 { font-family: var(--sans); font-weight: 700; letter-spacing: -.045em; line-height: .98; font-size: clamp(2.8rem, 5.6vw, 5rem); color: var(--lapis-950); }
.ah .lede { color: var(--ink-2); }
.ah-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.div-academics h2, .div-academics .sec h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -.035em; }
.div-academics h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.02; }

/* Timetable visual */
.timetable { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: 0 30px 60px -30px rgba(16,38,74,.35); padding: 1.25rem; }
.tt-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.tt-head b { font-size: .95rem; }
.tt-head span { font-size: .78rem; color: var(--muted); }
.tt { display: grid; grid-template-columns: 44px repeat(6, 1fr); grid-template-rows: 22px repeat(5, 44px); gap: 4px; font-size: .72rem; }
.tt .d { text-align: center; font-weight: 600; color: var(--muted); }
.tt .h { color: var(--muted); font-variant-numeric: tabular-nums; align-self: start; }
.tt .c { border-radius: 6px; padding: .3rem .4rem; font-weight: 600; line-height: 1.15; overflow: hidden; }
.tt .c small { display: block; font-weight: 400; opacity: .8; }
.tt .c1 { background: var(--lapis-700); color: var(--white); }
.tt .c2 { background: var(--lapis-100); color: var(--lapis-900); }
.tt .c3 { background: #f1e6cd; color: #5d4513; }
.tt .e { background: var(--chalk); border-radius: 6px; }
@media (max-width: 900px) { .ah .wrap { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .tt { grid-template-columns: 34px repeat(6, 1fr); grid-template-rows: 20px repeat(5, 40px); font-size: .62rem; } .tt .c small { display: none; } }

.subject-index { border-top: 2px solid var(--lapis-900); }
.subject-index a { display: grid; grid-template-columns: 4.5rem 1.2fr 2fr auto; gap: 1.5rem; align-items: baseline; padding: 1.6rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.subject-index a:hover .sname { color: var(--lapis-500); }
.subject-index .num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--lapis-500); }
.subject-index .sname { font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.03em; line-height: 1.1; }
.subject-index .sdesc { color: var(--muted); }
.subject-index .sgo { font-weight: 600; font-size: .9rem; color: var(--lapis-700); white-space: nowrap; }
@media (max-width: 760px) { .subject-index a { grid-template-columns: 3rem 1fr; } .subject-index .sdesc, .subject-index .sgo { grid-column: 2; } }

.features3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; display: flex; flex-direction: column; }
.feat-ui { background: var(--chalk); border-bottom: 1px solid var(--line); padding: 1.25rem; min-height: 170px; display: flex; flex-direction: column; justify-content: center; gap: .5rem; font-size: .8rem; }
.feat-body { padding: 1.5rem; }
.feat-body h3 { font-family: var(--sans); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.feat-body p { color: var(--muted); margin: 0; font-size: .97rem; }
.mini-row { display: flex; justify-content: space-between; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: .5rem .65rem; }
.mini-bars { display: flex; align-items: end; gap: 5px; height: 70px; }
.mini-bars span { flex: 1; background: var(--lapis-500); border-radius: 3px 3px 0 0; opacity: .85; }
.mini-bars span.off { background: var(--line); }
.teacher-chip { display: flex; gap: .75rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 99px; padding: .4rem .9rem .4rem .4rem; align-self: flex-start; }
.teacher-chip i { width: 36px; height: 36px; border-radius: 50%; background: var(--lapis-100); display: grid; place-items: center; font-style: normal; font-weight: 700; color: var(--lapis-700); }
@media (max-width: 900px) { .features3 { grid-template-columns: 1fr; } }

.bridge { background: var(--em-900); color: var(--ivory); }
.bridge .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 2.5rem; align-items: center; padding-block: clamp(3rem, 6vw, 4.5rem); }
.bridge .ruqaa { font-size: clamp(3rem, 6vw, 5rem); color: var(--gilt); }
.bridge h2 { font-family: var(--serif) !important; font-weight: 500 !important; letter-spacing: -.01em !important; color: var(--white); font-size: clamp(1.8rem, 3vw, 2.6rem) !important; margin-bottom: .25em; }
.bridge p { margin: 0; color: rgba(242,236,223,.72); }
@media (max-width: 860px) { .bridge .wrap { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- Page heads (inner pages) ---------- */
.page-head { position: relative; background: var(--em-900); color: var(--ivory); padding-block: 3rem 3.25rem; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background-image: var(--girih); background-size: 96px; opacity: .06; }
.div-academics .page-head { background: var(--lapis-900); }
.div-academics .page-head::before { background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 32px 32px; opacity: 1; }
.page-head .wrap { position: relative; }
.page-head h1 { color: var(--white); font-size: clamp(2.6rem, 5vw, 4.4rem); margin-bottom: .25em; }
.div-academics .page-head h1 { font-family: var(--sans); font-weight: 700; letter-spacing: -.045em; }
.page-head .lede { color: rgba(242,236,223,.8); }
.div-academics .page-head .lede { color: rgba(221,230,243,.85); }
.crumbs { font-size: .85rem; margin-bottom: 1.5rem; color: rgba(242,236,223,.7); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.crumbs a { color: inherit; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.page-head .tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.25rem; }
.page-head .tag-level { background: rgba(255,255,255,.1); color: var(--ivory); }

/* ---------- Course listing ---------- */
.listing { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.filters { position: sticky; top: 104px; }
.filters h2 { font-family: var(--sans) !important; font-size: .85rem !important; font-weight: 700 !important; letter-spacing: 0 !important; color: var(--muted); margin: 0 0 .75rem; }
.filters ul { list-style: none; margin: 0 0 2rem; padding: 0; }
.filters a { display: flex; justify-content: space-between; padding: .5rem 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); font-size: .97rem; }
.filters a[aria-current="true"] { color: var(--accent); font-weight: 700; }
.filters a span { color: var(--muted); font-size: .85rem; }
.course-entry { display: grid; grid-template-columns: 230px 1fr auto; gap: 1.75rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.course-entry:first-child { border-top: 2px solid var(--accent); }
.course-entry img, .course-entry .mono { width: 230px; aspect-ratio: 4 / 3; object-fit: cover; }
.course-entry .mono { display: grid; place-items: center; background: var(--lapis-100); color: var(--lapis-700); font-weight: 700; font-size: 3.5rem; letter-spacing: -.05em; background-image: linear-gradient(rgba(47,93,158,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(47,93,158,.1) 1px, transparent 1px); background-size: 18px 18px; }
.course-entry .cat { font-size: .85rem; color: var(--accent); font-weight: 600; display: block; margin-bottom: .35rem; }
.course-entry h3 { margin-bottom: .35rem; }
.course-entry h3 a { color: var(--ink); text-decoration: none; }
.course-entry h3 a:hover { color: var(--accent); }
.div-academics .course-entry h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -.025em; font-size: 1.5rem; }
.course-entry p { color: var(--muted); margin: 0 0 .75rem; }
.course-entry .row { display: flex; gap: .4rem; flex-wrap: wrap; }
.course-entry .ce-side { text-align: right; display: grid; gap: .6rem; justify-items: end; }
.from { font-size: .82rem; color: var(--muted); }
.from b { display: block; font-size: 1.2rem; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .listing { grid-template-columns: 1fr; } .filters { position: static; } .filters ul { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; } .filters a { border: 1px solid var(--line); border-radius: 99px; padding: .4rem .85rem; gap: .5rem; } }
@media (max-width: 720px) { .course-entry { grid-template-columns: 1fr; gap: 1rem; } .course-entry img, .course-entry .mono { width: 100%; aspect-ratio: 16 / 9; } .course-entry .ce-side { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: space-between; align-items: center; } }

/* ---------- Course detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 380px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.detail h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.class-pick { display: grid; gap: .9rem; margin: 1.5rem 0 3rem; }
.class-opt { position: relative; display: grid; grid-template-columns: auto 1.35fr 1.45fr .9fr 130px; gap: 1.25rem; align-items: center; padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--white); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.class-opt:hover { border-color: var(--accent); }
.class-opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: linear-gradient(0deg, var(--accent-soft), var(--accent-soft)) padding-box; }
.class-opt input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.class-opt.is-off { background: var(--chalk); cursor: not-allowed; color: var(--muted); }
.class-opt .teacher { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.1; display: block; }
.div-academics .class-opt .teacher { font-family: var(--sans); font-size: 1.1rem; }
.class-opt .k { display: block; font-size: .85rem; color: var(--muted); }
.class-opt .v { display: block; font-weight: 600; }
.class-opt .r { text-align: right; display: grid; gap: .35rem; justify-items: end; }
.seats { width: 110px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.seats span { display: block; height: 100%; background: var(--accent); }
@media (max-width: 760px) { .class-opt { grid-template-columns: auto 1fr; align-items: start; } .class-opt > :nth-child(n+3) { grid-column: 2; } .class-opt .r { text-align: left; justify-items: start; } }
.learn { list-style: none; padding: 0; margin: 0 0 2.5rem; columns: 2; column-gap: 2rem; }
.learn li { break-inside: avoid; padding: .7rem 0 .7rem 1.6rem; border-bottom: 1px solid var(--line-2); position: relative; }
.learn li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--gilt); }
@media (max-width: 640px) { .learn { columns: 1; } }

.summary-card { position: sticky; top: 104px; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--white); overflow: hidden; box-shadow: 0 24px 48px -32px rgba(10,37,39,.4); }
.summary-card header { background: var(--accent-dark); color: var(--ivory); padding: 1.25rem 1.4rem; }
.summary-card header b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.1; color: var(--white); }
.div-academics .summary-card header b { font-family: var(--sans); font-size: 1.15rem; }
.summary-card header span { font-size: .88rem; opacity: .8; }
.summary-card .body { padding: 1.25rem 1.4rem 1.4rem; }
.plan-opts { display: grid; gap: .5rem; margin: .5rem 0 1rem; }
.plan-opt { display: flex; align-items: center; gap: .7rem; border: 1px solid var(--line); border-radius: var(--r-1); padding: .7rem .85rem; cursor: pointer; font-size: .95rem; }
.plan-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.plan-opt input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.plan-opt b { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kv { display: grid; gap: .45rem; margin: 0 0 1.1rem; font-size: .92rem; }
.kv div { display: flex; justify-content: space-between; gap: 1rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.methods { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1rem; }
.methods span { font-size: .78rem; font-weight: 600; border: 1px solid var(--line); border-radius: var(--r-1); padding: .25rem .5rem; color: var(--ink-2); }
@media (max-width: 1000px) { .detail { grid-template-columns: 1fr; } .summary-card { position: static; } }

/* ---------- Enrollment page ---------- */
.stepper { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; counter-reset: st; }
.stepper li { counter-increment: st; border-top: 3px solid var(--line); padding-top: .75rem; font-size: .9rem; color: var(--muted); }
.stepper li::before { content: "Step " counter(st); display: block; font-size: .75rem; }
.stepper li.done { border-color: var(--accent); color: var(--ink); }
.stepper li.now { border-color: var(--gilt); color: var(--ink); font-weight: 700; }
.enroll { display: grid; grid-template-columns: 1fr 360px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.box { border: 1px solid var(--line); border-radius: var(--r-3); padding: clamp(1.25rem, 3vw, 2rem); background: var(--white); margin-bottom: 1.25rem; }
.box h2 { font-size: 1.8rem; }
.pay-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.pay-way { border: 1px solid var(--line); border-radius: var(--r-2); padding: 1rem; }
.pay-way b { display: block; margin-bottom: .35rem; }
.pay-way span { font-size: .85rem; color: var(--muted); }
.notice { border-left: 3px solid var(--gilt); background: var(--chalk); padding: .9rem 1.1rem; font-size: .93rem; margin: 1.25rem 0; }
@media (max-width: 1000px) { .enroll { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .pay-ways { grid-template-columns: 1fr; } .stepper { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .93rem; }
.t th { text-align: left; font-size: .8rem; font-weight: 600; color: var(--muted); padding: .65rem .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: .85rem .8rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-foot { background: var(--em-950); color: rgba(242,236,223,.7); padding-top: clamp(3.5rem, 7vw, 5.5rem); font-size: .95rem; position: relative; overflow: hidden; }
.site-foot a { color: var(--ivory); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.foot-word { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3.5vw, 2.8rem); color: var(--white); line-height: 1; margin-bottom: 1rem; }
.foot-top h4 { font-family: var(--sans); font-weight: 700; font-size: .85rem; color: var(--gilt-2); letter-spacing: .01em; margin-bottom: 1rem; }
.foot-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot-bismillah { font-family: var(--naskh); font-size: 1.5rem; color: var(--gilt); direction: rtl; text-align: left; margin-bottom: 1rem; }
.foot-base { margin-top: 3.5rem; border-top: 1px solid rgba(242,236,223,.12); padding-block: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }
.foot-base nav { display: flex; gap: 1.25rem; }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-top { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.field { display: grid; gap: .4rem; margin-bottom: 1.15rem; }
.field label, .field .lbl { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; min-height: 50px; padding: .65rem .9rem; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1px solid #c9d0d7; border-radius: var(--r-1);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); outline-offset: 0; }
input[type="file"] { font: inherit; font-size: .9rem; padding: .6rem; border: 1px dashed #b9c2cb; border-radius: var(--r-1); width: 100%; background: var(--chalk); }
.pw { position: relative; }
.pw input { padding-right: 4.5rem; }
.pw button { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); background: none; border: 0; font: 600 .88rem var(--sans); color: var(--accent); padding: .55rem; cursor: pointer; }
.check { display: flex; gap: .65rem; align-items: start; font-size: .92rem; }
.check input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--accent); flex: none; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .form-2 { grid-template-columns: 1fr; } }

/* ---------- Auth ---------- */
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-art { position: relative; background: var(--em-900) center/cover no-repeat; color: var(--ivory); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.5rem, 4vw, 3rem); isolation: isolate; overflow: hidden; }
.auth-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,27,29,.55) 0%, rgba(7,27,29,.15) 40%, rgba(7,27,29,.92) 100%); z-index: -1; }
.auth-art .lockup { color: var(--ivory); }
.auth-art blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; color: var(--white); max-width: 22ch; }
.auth-art .label { font-size: .82rem; color: rgba(242,236,223,.7); margin-top: 1rem; display: block; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 6vw, 4rem) var(--gutter); background: var(--white); }
.auth-card { width: min(100%, 420px); }
.auth-card h1 { font-size: clamp(2.4rem, 4vw, 3.2rem); margin-bottom: .2em; }
.auth-card .intro { color: var(--muted); margin-bottom: 2rem; }
.auth-alt { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.auth-mobile { display: none; margin-bottom: 2.5rem; color: var(--ink); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-mobile { display: flex; } }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; background: var(--chalk); }
@media (min-width: 961px) { .app { background: linear-gradient(90deg, var(--white) 264px, var(--chalk) 264px); } }
.side { background: var(--white); border-right: 1px solid var(--line); padding: 1.25rem 1rem 1.5rem; display: flex; flex-direction: column; gap: 1.75rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .lockup { color: var(--ink); padding: 0 .4rem; }
.side .lockup-name { font-size: 1.2rem; }
.side-role { margin: 0 .4rem; padding: .5rem .75rem; border-radius: var(--r-2); background: var(--accent-soft); color: var(--accent); font-size: .85rem; font-weight: 600; }
.side-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; padding: .65rem .8rem; border-radius: var(--r-2); color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500; }
.side-nav a:hover { background: var(--chalk); color: var(--ink); }
.side-nav a[aria-current="page"] { background: var(--em-900); color: var(--white); }
.side-nav .count { background: var(--gilt); color: #1b1407; border-radius: 99px; font-size: .72rem; font-weight: 700; padding: .05rem .5rem; }
.side-foot { margin-top: auto; padding: 0 .4rem; font-size: .9rem; display: grid; gap: .4rem; }
.side-foot a { color: var(--muted); }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); background: var(--white); }
.topbar .who { display: flex; align-items: center; gap: .65rem; font-size: .92rem; font-weight: 600; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--em-800); color: var(--gilt-2); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.content { padding: clamp(1.25rem, 3vw, 2.5rem); max-width: 1240px; }
.page-title { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.page-title h1 { font-size: clamp(2.2rem, 3.5vw, 3rem); margin: 0; }
.page-title p { margin: .35rem 0 0; color: var(--muted); }
.side-toggle { display: none; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .2s; z-index: 60; box-shadow: 20px 0 50px -20px rgba(0,0,0,.3); }
  .side.is-open { transform: none; }
  .side-toggle { display: inline-flex; }
  .topbar .date { display: none; }
}

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-3); padding: 1.4rem 1.5rem; min-width: 0; }
.card h2 { font-size: 1.65rem; margin: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.cols-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.25rem; }
.cols-2b { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.stack { display: grid; gap: 1.25rem; }
.cols-2 > *, .cols-2b > *, .stack > * { min-width: 0; }
@media (max-width: 1080px) { .cols-2, .cols-2b { grid-template-columns: 1fr; } }

.next { position: relative; background: var(--em-900); color: var(--ivory); border: 0; overflow: hidden; isolation: isolate; padding: 1.75rem; }
.next::before { content: ""; position: absolute; inset: 0; background-image: var(--girih); background-size: 96px; opacity: .07; z-index: -1; }
.next .when { color: var(--gilt-2); font-weight: 600; font-size: .9rem; }
.next h2 { color: var(--white); font-size: clamp(1.9rem, 3vw, 2.5rem); margin: .4rem 0 .3rem; }
.next .with { color: rgba(242,236,223,.75); }
.window { margin: 1.5rem 0 1.25rem; }
.window-bar { position: relative; height: 8px; border-radius: 8px; background: rgba(242,236,223,.15); }
.window-bar .open { position: absolute; top: 0; bottom: 0; left: 8%; right: 8%; border-radius: 8px; background: rgba(198,161,91,.35); }
.window-bar .cls { position: absolute; top: 0; bottom: 0; left: 16%; right: 16%; border-radius: 8px; background: var(--gilt); }
.window-bar .now { position: absolute; top: -5px; width: 2px; height: 18px; background: var(--white); left: 4%; }
.window-labels { display: flex; justify-content: space-between; font-size: .78rem; color: rgba(242,236,223,.65); margin-top: .5rem; font-variant-numeric: tabular-nums; }
.next .actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.next .actions .btn[disabled] { background: rgba(242,236,223,.12); color: rgba(242,236,223,.65); }
.next .actions small { color: rgba(242,236,223,.7); }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; }
.week div { text-align: center; padding: .6rem .2rem; border-radius: var(--r-2); font-size: .8rem; color: var(--muted); border: 1px solid var(--line-2); }
.week b { display: block; font-size: 1.15rem; color: var(--ink); font-family: var(--serif); font-weight: 600; }
.week i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: .35rem auto 0; }
.week .today { border-color: var(--em-800); background: var(--em-900); color: rgba(242,236,223,.75); }
.week .today b { color: var(--white); }
.week .today i { background: var(--gilt); }

.meter { height: 8px; background: var(--line-2); border-radius: 8px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--em-700); border-radius: 8px; }
.big-n { font-family: var(--serif); font-weight: 600; font-size: 2.6rem; line-height: 1; font-variant-numeric: lining-nums; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .95rem 0; border-top: 1px solid var(--line-2); }
.rows li:first-child { border-top: 0; padding-top: .2rem; }
.rows .t { font-weight: 600; display: block; }
.rows .s { font-size: .86rem; color: var(--muted); display: block; }
.course-tile { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; }
.course-tile img, .course-tile .mono { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-2); }
.course-tile .mono { background: var(--lapis-100); color: var(--lapis-700); display: grid; place-items: center; font-weight: 700; font-size: 1.4rem; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; margin-bottom: 1.25rem; }
.kpis a, .kpis div { background: var(--white); padding: 1.25rem 1.4rem; text-decoration: none; color: var(--ink); display: grid; gap: .3rem; }
.kpis a:hover { background: var(--chalk); }
.kpis .n { font-family: var(--serif); font-weight: 600; font-size: 2.6rem; line-height: 1; }
.kpis .n.attn { color: var(--bad); }
.kpis .l { font-size: .88rem; color: var(--muted); }
@media (max-width: 860px) { .kpis { grid-template-columns: 1fr 1fr; } }

.paid-split { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; margin-bottom: 1.25rem; }
.paid-split div { background: var(--white); padding: 1.1rem 1.3rem; }
.paid-split .k { display: block; font-size: .85rem; color: var(--muted); }
.paid-split .v { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; line-height: 1.2; white-space: nowrap; }
@media (max-width: 760px) { .paid-split { grid-template-columns: 1fr 1fr; } .paid-split .v { font-size: 1.45rem; } }

.choice-list { display: grid; gap: .55rem; margin-bottom: 1rem; }
.choice { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--r-2); cursor: pointer; flex-wrap: wrap; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.choice b { margin-left: auto; font-variant-numeric: tabular-nums; }
.choice .custom { margin-left: auto; width: 160px; min-height: 40px; }
@media (max-width: 520px) { .choice .custom { width: 100%; margin-left: 0; } }
.result { border-left: 3px solid var(--gilt); background: var(--chalk); padding: .8rem 1rem; font-size: .92rem; margin-bottom: 1.25rem; }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); margin-right: .5rem; vertical-align: 1px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
.enroll > *, .detail > *, .listing > *, .exhibit-grid > *, .ah .wrap > *, .ih > .wrap > * { min-width: 0; }

@media (max-width: 600px) { .t .note { display: none; } }
.paid-split .v, .kpis .n, .big-n, .week b, .lp-hero-foot strong, .ledger strong { font-feature-settings: "lnum" 1; font-variant-numeric: lining-nums; }

/* ---------- v3: inner pages ---------- */
.story { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.story-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 0 0; }
.story-text p { color: var(--ink-2); max-width: 38rem; }
.story > * { min-width: 0; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story-img { max-width: 360px; } }

.eras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; border-top: 1px solid rgba(142,111,51,.4); }
.eras li { padding-top: 1.25rem; }
.eras .yr { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 1; color: var(--em-800); margin-bottom: 1rem; font-feature-settings: "lnum" 1; }
.eras img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; outline: 1px solid rgba(10,37,39,.12); outline-offset: 5px; }
.eras p { font-size: .93rem; color: var(--ink-2); margin: 1rem 0 0; }
@media (max-width: 900px) { .eras { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .eras { grid-template-columns: 1fr; } }

.mission { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--gilt); }
.mission li { padding: 1.75rem 1.5rem 1.5rem 0; }
.mission li + li { padding-left: 1.5rem; border-left: 1px solid rgba(198,161,91,.5); }
.mission .ruqaa { font-size: 2rem; color: var(--gilt-3); display: block; text-align: left; margin-bottom: .5rem; }
.mission p { color: var(--ink-2); margin: 0; }
.mission b { color: var(--em-900); font-weight: 600; }
@media (max-width: 900px) { .mission { grid-template-columns: 1fr 1fr; } .mission li { padding-left: 0 !important; border-left: 0 !important; border-bottom: 1px solid rgba(198,161,91,.5); } }
@media (max-width: 520px) { .mission { grid-template-columns: 1fr; } }
.illum-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .illum-4 { grid-template-columns: 1fr 1fr; } .illum-4 > div:nth-child(3) { border-left: 0; } }
@media (max-width: 560px) { .illum-4 { grid-template-columns: 1fr; } }

.year-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; }
.year-tabs button { border: 1px solid var(--line); background: var(--white); border-radius: 99px; padding: .5rem 1rem; font: 500 .92rem var(--sans); color: var(--ink); cursor: pointer; }
.year-tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--white); }
.gallery { columns: 3 280px; column-gap: 1.25rem; }
.gallery figure { break-inside: avoid; margin: 0 0 1.5rem; }
.gallery figure[hidden] { display: none; }
.gallery button { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; }
.gallery img { width: 100%; outline: 1px solid rgba(10,37,39,.12); outline-offset: 5px; }
.gallery figcaption { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; color: var(--ink-2); margin-top: .8rem; }
.gallery figcaption span { color: var(--gilt-3); font-family: var(--serif); font-style: italic; font-size: 1rem; white-space: nowrap; }
.lightbox { border: 0; padding: 1rem; max-width: min(92vw, 1100px); background: var(--em-950); color: var(--ivory); border-radius: var(--r-2); }
.lightbox::backdrop { background: rgba(7,27,29,.85); }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; }
.lightbox p { margin: .9rem 0 0; text-align: center; }
.lb-close { position: absolute; top: .5rem; right: .5rem; background: var(--em-800); color: var(--ivory); border: 1px solid rgba(198,161,91,.5); border-radius: var(--r-1); padding: .35rem .7rem; font: 600 .85rem var(--sans); cursor: pointer; z-index: 2; }
.empty-state { border: 1px dashed var(--line); border-radius: var(--r-3); padding: 3rem 1.5rem; text-align: center; color: var(--muted); }

.blog-feature { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--line); }
.blog-feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-feature h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.blog-feature h2 a, .blog-grid h3 a { color: var(--ink); text-decoration: none; }
.blog-feature h2 a:hover, .blog-grid h3 a:hover { text-decoration: underline; text-decoration-color: var(--gilt); }
.blog-feature p, .blog-grid p { color: var(--ink-2); }
.meta { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 1rem; }
.blog-grid h3 { font-size: 1.6rem; }
.blog-feature > *, .blog-grid > * { min-width: 0; }
@media (max-width: 860px) { .blog-feature { grid-template-columns: 1fr; } .blog-grid { grid-template-columns: 1fr; } }
.post-title { max-width: 20ch; }
.article-img { width: 100%; max-width: 980px; aspect-ratio: 21 / 9; object-fit: cover; margin: 0 auto 3rem; }
.article-body { max-width: 40rem; margin: 0 auto; }
.article-body p { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; line-height: 1.6; color: var(--ink); }
.article-body p.first::first-letter { float: left; font-size: 4.6rem; line-height: .82; padding: .3rem .6rem 0 0; color: var(--gilt-3); }
.article-body .ornament { margin-top: 2.5rem; }

.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact > * { min-width: 0; }
.contact-card { position: relative; background: var(--accent-dark); color: var(--ivory); border-radius: var(--r-3); padding: clamp(1.5rem, 3vw, 2.25rem); overflow: hidden; isolation: isolate; }
.contact-card::before { content: ""; position: absolute; inset: 0; background-image: var(--girih); background-size: 96px; opacity: .07; z-index: -1; }
.contact-card h2 { color: var(--white); font-size: 1.9rem; }
.div-academics .contact-card h2, .div-academics .contact-h { font-family: var(--sans); font-weight: 700; letter-spacing: -.03em; }
.contact-card dl { margin: 0; display: grid; gap: 1.1rem; }
.contact-card dt { font-size: .82rem; color: var(--gilt-2); font-weight: 600; }
.contact-card dd { margin: .15rem 0 0; }
.contact-card a { color: var(--white); }
.contact-h { font-size: 2rem; }
textarea { width: 100%; padding: .75rem .9rem; font: inherit; font-size: 1rem; border: 1px solid #c9d0d7; border-radius: var(--r-1); resize: vertical; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }


/* ---------- v4: gateway ---------- */
.gw { position: relative; background: var(--em-950); color: var(--ivory); padding: 140px 0 clamp(3rem, 6vw, 5rem); overflow: hidden; isolation: isolate; }
.gw-pattern { position: absolute; inset: 0; z-index: -1; background-image: var(--girih); background-size: 110px; opacity: .06; mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000, transparent 75%); }
.gw::after { content: ""; position: absolute; left: 50%; top: -10%; width: 900px; height: 600px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(198,161,91,.16), transparent); z-index: -1; }
.gw-intro { text-align: center; max-width: 52rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.gw-crest { width: 84px; height: 84px; border-radius: 50%; background: var(--white); display: inline-grid; place-items: center; box-shadow: 0 0 0 1px var(--gilt), 0 0 0 8px rgba(198,161,91,.12); margin-bottom: 1.5rem; }
.gw-crest img { width: 54px; }
.gw h1 { font-size: clamp(3rem, 7.5vw, 6.4rem); color: var(--white); line-height: .95; margin-bottom: .35em; }
.gw .lede { color: rgba(242,236,223,.8); margin-inline: auto; max-width: 40rem; }
.gw-doors { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.door { position: relative; min-height: 560px; border-radius: 20px; overflow: hidden; padding: clamp(1.75rem, 3.5vw, 2.75rem); display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; isolation: isolate; transition: transform .25s ease, box-shadow .25s ease; }
.door:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -40px rgba(0,0,0,.7); }
.door:focus-visible { outline-offset: 5px; }
.door-body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 1rem; max-width: 30rem; }
.door-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1; }
.door-text { font-size: 1.02rem; line-height: 1.6; }
.door-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.door-list span { font-size: .82rem; font-weight: 600; padding: .3rem .7rem; border-radius: 99px; border: 1px solid; }
.door .btn { align-self: flex-start; margin-top: .5rem; }
.door-isl { background: var(--em-800); color: var(--ivory); }
.door-isl::before { content: ""; position: absolute; inset: 0; background-image: var(--girih); background-size: 96px; opacity: .08; z-index: -1; }
.door-isl .door-art { position: absolute; top: 2.25rem; right: 2.25rem; width: 40%; aspect-ratio: 3 / 4; z-index: 1; }
.door-isl .door-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 0 0; opacity: .9; }
.door-isl .door-art::after { content: ""; position: absolute; inset: -10px -10px 0; border: 1px solid var(--gilt); border-bottom: 0; border-radius: 999px 999px 0 0; opacity: .6; }
.door-isl .door-mark { position: absolute; left: 2.25rem; top: 1.75rem; font-size: clamp(3.5rem, 6vw, 5.5rem); color: var(--gilt); z-index: 1; }
.door-isl .door-text { color: rgba(242,236,223,.82); }
.door-isl .door-list span { border-color: rgba(198,161,91,.5); color: var(--gilt-2); }
.door-isl .door-title { color: var(--white); }
.door-acad { background: var(--chalk); color: var(--lapis-950); }
.door-acad .door-title { font-family: var(--sans); font-weight: 700; letter-spacing: -.04em; }
.door-acad .door-text { color: var(--ink-2); }
.door-acad .door-list span { border-color: rgba(28,61,112,.3); color: var(--lapis-700); }
.door-mosaic { position: absolute; top: 2.25rem; right: 2.25rem; left: 2.25rem; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 46%; z-index: 1; }
.door-mosaic svg { width: 100%; height: 100%; border-radius: 10px; display: block; }
.door-mosaic svg:first-child { grid-row: span 2; }
.door-mosaic svg:nth-child(4) { display: none; }
.door-acad:hover .door-mosaic svg { filter: saturate(1.1); }
@media (max-width: 900px) {
  .gw-doors { grid-template-columns: 1fr; }
  .door { min-height: 0; padding-top: 0; }
  .door-isl .door-art, .door-mosaic { position: relative; top: auto; right: auto; left: auto; margin: 1.75rem 0 1.5rem; }
  .door-isl .door-art { width: 55%; align-self: flex-end; margin-right: .75rem; }
  .door-isl .door-mark { top: 2.75rem; left: 1.75rem; }
  .door-mosaic { height: 220px; }
}
.gw-heritage { background: var(--ivory); }
.gw-heritage .filmstrip { background: var(--em-950); }
.gh-row { display: grid; grid-template-columns: 1.2fr 2fr auto; gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.gh-row h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: var(--em-900); margin: 0; }
.gh-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.gh-facts div { padding: 0 1.25rem; border-left: 1px solid rgba(142,111,51,.4); }
.gh-facts dt { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; color: var(--em-800); line-height: 1; font-feature-settings: "lnum" 1; }
.gh-facts dd { margin: .3rem 0 0; font-size: .9rem; color: var(--ink-2); }
@media (max-width: 960px) { .gh-row { grid-template-columns: 1fr; } .gh-facts div:first-child { padding-left: 0; border-left: 0; } }
@media (max-width: 520px) { .gh-facts { grid-template-columns: 1fr; gap: 1rem; } .gh-facts div { border-left: 0; padding-left: 0; } }
.foot-min { padding-top: 2.5rem; }
.foot-min-row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.foot-min-row .foot-word { font-size: 1.8rem; margin-bottom: .4rem; }
.foot-min-row p { margin: 0; }
.foot-min-row nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.foot-min .foot-base { margin-top: 2rem; }

/* ---------- v4: Academic system ---------- */
.ah-facts { display: flex; gap: 2.5rem; margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(28,61,112,.18); }
.ah-facts dt { font-weight: 700; font-size: 2.2rem; letter-spacing: -.04em; line-height: 1; color: var(--lapis-700); }
.ah-facts dd { margin: .3rem 0 0; font-size: .88rem; color: var(--muted); }
.ah-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 54px); gap: 12px; }
.ah-mosaic svg { width: 100%; height: 100%; border-radius: 12px; display: block; box-shadow: 0 24px 40px -28px rgba(16,38,74,.55); }
.ah-mosaic svg:nth-child(1) { grid-column: 1 / 5; grid-row: 1 / 5; }
.ah-mosaic svg:nth-child(2) { grid-column: 5 / 7; grid-row: 1 / 3; }
.ah-mosaic svg:nth-child(3) { grid-column: 5 / 7; grid-row: 3 / 7; }
.ah-mosaic svg:nth-child(4) { grid-column: 1 / 3; grid-row: 5 / 7; }
.ah-mosaic svg:nth-child(5) { grid-column: 3 / 5; grid-row: 5 / 7; }
@media (max-width: 900px) { .ah-mosaic { grid-template-rows: repeat(6, 40px); } }
.programs3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.program-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.pc-art svg { display: block; width: 100%; height: 170px; }
.pc-body { padding: 1.5rem 1.6rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.pc-for { font-size: .82rem; font-weight: 700; color: var(--lapis-500); margin-bottom: .5rem; }
.pc-body h3 { font-family: var(--sans) !important; font-weight: 700; font-size: 1.5rem !important; letter-spacing: -.03em !important; }
.pc-body p { color: var(--muted); }
.pc-body ul { list-style: none; padding: 0; margin: 0 0 1.5rem; border-top: 1px solid var(--line-2); }
.pc-body li { padding: .55rem 0; border-bottom: 1px solid var(--line-2); font-size: .95rem; font-weight: 500; }
.pc-body .text-link { margin-top: auto; align-self: flex-start; }
@media (max-width: 960px) { .programs3 { grid-template-columns: 1fr; } .pc-art svg { height: 140px; } }
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.area { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: .75rem .75rem 1.25rem; transition: border-color .15s, transform .15s; }
.area:hover { border-color: var(--lapis-500); transform: translateY(-2px); }
.area-art svg { width: 100%; height: 130px; border-radius: 9px; display: block; margin-bottom: .75rem; }
.area-name { font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; padding: 0 .4rem; }
.area-count { font-size: .85rem; color: var(--lapis-500); font-weight: 600; padding: 0 .4rem; }
.area-list { font-size: .88rem; color: var(--muted); padding: 0 .4rem; }
@media (max-width: 960px) { .areas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .areas { grid-template-columns: 1fr; } }
.course-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.course-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border-radius: 16px; overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.course-card:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -35px rgba(16,38,74,.5); }
.cc-art svg { display: block; width: 100%; height: 210px; }
.cc-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.cc-cat { font-size: .82rem; font-weight: 700; color: var(--lapis-500); }
.cc-title { font-weight: 700; font-size: 1.45rem; letter-spacing: -.03em; line-height: 1.15; }
.cc-sum { color: var(--muted); font-size: .97rem; }
.cc-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; color: var(--muted); }
.cc-foot b { color: var(--ink); white-space: nowrap; }
@media (max-width: 960px) { .course-cards { grid-template-columns: 1fr; } }
.how-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.how-split > * { min-width: 0; }
.how-list { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--line); }
.how-list li { display: grid; gap: .15rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.how-list b { font-weight: 700; }
.how-list span { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .how-split { grid-template-columns: 1fr; } }

/* Teachers */
.portrait { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 50%; position: relative; overflow: hidden; }
.portrait span { position: relative; font-weight: 600; font-size: 1.9rem; letter-spacing: .02em; }
.portrait-islamic { background: var(--em-800); color: var(--gilt-2); font-family: var(--serif); }
.portrait-islamic::before { content: ""; position: absolute; inset: 0; background-image: var(--girih); background-size: 48px; opacity: .25; }
.portrait-islamic span { font-family: var(--serif); font-size: 2.4rem; }
.portrait-academics { background: var(--lapis-100); color: var(--lapis-700); }
.portrait-academics::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(47,93,158,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(47,93,158,.14) 1px, transparent 1px); background-size: 14px 14px; }
.portrait-academics span { font-weight: 700; letter-spacing: -.03em; }
.teacher-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.t-card { text-align: center; }
.t-card .portrait { width: 132px; margin: 0 auto 1rem; box-shadow: 0 0 0 1px var(--line), 0 0 0 7px var(--white), 0 0 0 8px var(--line); }
.div-islamic .t-card .portrait { box-shadow: 0 0 0 1px var(--gilt), 0 0 0 7px var(--white), 0 0 0 8px rgba(198,161,91,.5); }
.t-card h3 { font-size: 1.35rem; margin-bottom: .2rem; }
.div-academics .t-card h3 { font-family: var(--sans); font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; }
.t-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.teacher-row-sm { grid-template-columns: 1fr; gap: .9rem; margin: 1rem 0 2.5rem; }
.t-card-h { display: grid; grid-template-columns: 72px 1fr; gap: 1.1rem; text-align: left; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; }
.t-card-h .portrait { width: 72px; margin: 0; box-shadow: none; }
.t-card-h .portrait span { font-size: 1.3rem; }
@media (max-width: 860px) { .teacher-row { grid-template-columns: 1fr 1fr; } .teacher-row-sm { grid-template-columns: 1fr; } }
.teacher-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.t-profile { display: grid; grid-template-columns: 150px 1fr; gap: 1.75rem; padding: 1.75rem; border: 1px solid var(--line); border-radius: 16px; background: var(--white); align-items: start; }
.t-profile .portrait { width: 150px; }
.t-profile h2 { font-size: 1.9rem; margin-bottom: .1rem; }
.div-academics .t-profile h2 { font-family: var(--sans); font-weight: 700; font-size: 1.45rem; letter-spacing: -.03em; }
.t-title { color: var(--accent); font-weight: 600; font-size: .92rem; margin-bottom: .75rem; }
.t-profile > div > p:not(.t-title) { color: var(--ink-2); }
@media (max-width: 960px) { .teacher-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .t-profile { grid-template-columns: 1fr; } .t-profile .portrait { width: 110px; } }

.ce-art { width: 230px; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; }
.ce-art svg { width: 100%; height: 100%; display: block; }
@media (max-width: 720px) { .ce-art { width: 100%; aspect-ratio: 16 / 9; } }
.course-banner { border-radius: 14px; overflow: hidden; margin-bottom: 2.5rem; }
.course-banner svg { display: block; width: 100%; height: 240px; }
.course-banner-img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; margin-bottom: 2.5rem; border-radius: 4px; }
.art-cover { display: block; border-radius: 12px; overflow: hidden; margin-bottom: 1rem; }
.art-cover svg { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; }
.gallery .art-ph { display: block; border-radius: 6px; overflow: hidden; }
.gallery .art-ph svg { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }

/* ---------- v4: dashboards ---------- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; overflow-x: auto; }
.tabs a { padding: .75rem 1rem; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .93rem; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--gilt); }
.tabs a span { font-size: .78rem; background: var(--line-2); border-radius: 99px; padding: .05rem .45rem; margin-left: .3rem; }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.toolbar input, .toolbar select { width: auto; min-width: 180px; flex: 1; min-height: 44px; }
.avatar-sm { width: 30px; height: 30px; font-size: .7rem; flex: none; }
.who-cell { display: inline-flex; align-items: center; gap: .6rem; }
.my-courses { display: grid; gap: 1.1rem; }
.mc { display: grid; grid-template-columns: 220px 1fr; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.mc:hover { border-color: var(--em-600); box-shadow: 0 24px 40px -32px rgba(10,37,39,.5); }
.mc > img, .mc-art { width: 100%; height: 100%; min-height: 180px; object-fit: cover; display: block; }
.mc-art svg { width: 100%; height: 100%; display: block; }
.mc-body { padding: 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.mc-body h2 { font-size: 1.8rem; margin: .2rem 0 0; }
.mc-body p { margin: 0; }
.mc-body .meter { width: 100%; max-width: 420px; margin-top: .25rem; }
.mc-stats { display: flex; gap: 2rem; margin: .5rem 0 .25rem; }
.mc-stats b { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; font-feature-settings: "lnum" 1; line-height: 1.1; }
.mc-stats span { font-size: .8rem; color: var(--muted); }
@media (max-width: 700px) { .mc { grid-template-columns: 1fr; } .mc > img, .mc-art { min-height: 0; height: 150px; } .mc-stats { gap: 1.25rem; } }
.course-hero-in { display: grid; grid-template-columns: 120px 1fr auto; gap: 1.5rem; align-items: center; background: var(--em-900); color: var(--ivory); border-radius: 16px; padding: 1.25rem; margin-bottom: 1.5rem; position: relative; overflow: hidden; isolation: isolate; }
.course-hero-in::before { content: ""; position: absolute; inset: 0; background-image: var(--girih); background-size: 96px; opacity: .07; z-index: -1; }
.course-hero-in img { width: 120px; height: 120px; object-fit: cover; border-radius: 999px 999px 8px 8px; }
.course-hero-in h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); color: var(--white); margin: .2rem 0 .3rem; }
.course-hero-in p { margin: 0; color: rgba(242,236,223,.78); font-size: .95rem; }
.crumbs-in { font-size: .82rem; color: rgba(242,236,223,.7); }
.crumbs-in a { color: inherit; }
@media (max-width: 760px) { .course-hero-in { grid-template-columns: 72px 1fr; } .course-hero-in img { width: 72px; height: 72px; } .course-hero-in .btn { grid-column: 1 / -1; } }
.ring-row { display: flex; gap: 1.25rem; align-items: center; }
.ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--em-700) calc(var(--p) * 1%), var(--line-2) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--white); }
.ring span { position: relative; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; font-feature-settings: "lnum" 1; }
.drop { position: relative; display: grid; gap: .25rem; place-items: center; text-align: center; border: 1.5px dashed #b9c2cb; border-radius: 10px; padding: 1.5rem 1rem; background: var(--chalk); cursor: pointer; }
.drop b { color: var(--accent); }
.drop span { font-size: .82rem; color: var(--muted); }
.cert-list { display: grid; gap: 1.1rem; }
.cert-tile { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem; }
.cert-tile h2 { font-size: 1.7rem; margin: 0 0 .25rem; }
.cert-tile .btn-row { margin-top: 1rem; }
.cert-mini { aspect-ratio: 1.414; background: var(--ivory); border: 6px double var(--gilt); display: grid; place-content: center; text-align: center; gap: .3rem; padding: .75rem; }
.cert-mini span { font-family: var(--serif); font-style: italic; font-size: .85rem; color: var(--gilt-3); }
.cert-mini b { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--em-900); line-height: 1.1; }
.cert-mini-acad { background: var(--white); border: 0; box-shadow: inset 0 0 0 1px var(--lapis-100), inset 0 6px 0 var(--lapis-700); }
.cert-mini-acad b { font-family: var(--sans); color: var(--lapis-900); font-size: 1rem; }
@media (max-width: 640px) { .cert-tile { grid-template-columns: 1fr; } }
.live-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.live-card h2 { font-size: 1.5rem; margin: .75rem 0 .3rem; }
.live-top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .88rem; }
@media (max-width: 1000px) { .live-grid { grid-template-columns: 1fr; } }
.review { display: grid; grid-template-columns: 300px 1fr; gap: 1.25rem; align-items: start; }
.review > * { min-width: 0; }
.review-list { padding: .5rem; display: grid; gap: .25rem; }
.rv-item { display: grid; gap: .1rem; padding: .85rem 1rem; border-radius: 10px; text-decoration: none; color: var(--ink); }
.rv-item:hover { background: var(--chalk); }
.rv-item[aria-current] { background: var(--em-900); color: var(--white); }
.rv-item span { font-size: .85rem; opacity: .75; }
.rv-item .rv-meta { font-weight: 600; opacity: 1; }
.proof-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.proof-split > * { min-width: 0; }
.proof-img { aspect-ratio: 3 / 4; border-radius: 12px; background: linear-gradient(180deg, #a3133d, #6f0c2a); color: var(--white); display: grid; place-content: center; gap: .4rem; text-align: center; font-size: .92rem; }
.proof-img b { font-size: 1.4rem; }
.proof figcaption { margin-top: .5rem; }
@media (max-width: 1000px) { .review { grid-template-columns: 1fr; } .proof-split { grid-template-columns: 1fr; } .proof-img { aspect-ratio: 16 / 10; } }
.cat-course { margin-bottom: 1.25rem; }
.cat-course h2 { font-size: 1.6rem; }
.day-pick { display: flex; flex-wrap: wrap; gap: .4rem; }
.day-pick label { cursor: pointer; }
.day-pick input { position: absolute; opacity: 0; }
.day-pick span { display: inline-block; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; font-size: .9rem; }
.day-pick input:checked + span { background: var(--em-900); color: var(--white); border-color: var(--em-900); }
.day-pick input:focus-visible + span { outline: 2px solid var(--gilt); outline-offset: 2px; }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.content-item { display: grid; gap: .3rem; text-decoration: none; color: var(--ink); }
.content-item b { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.content-item:hover { border-color: var(--em-600); }
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; align-items: end; height: 220px; padding-top: 1.5rem; }
.bars div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .5rem; }
.bars span { width: 100%; max-width: 54px; background: var(--em-700); border-radius: 6px 6px 0 0; position: relative; }
.bars span:hover { background: var(--em-600); }
.bars i { position: absolute; top: -1.4rem; left: 0; right: 0; text-align: center; font-style: normal; font-size: .78rem; color: var(--muted); }
.bars b { font-size: .82rem; color: var(--muted); font-weight: 600; }
.verify-card { max-width: 560px; border: 1px solid var(--line); border-radius: 16px; padding: 2rem; }
.verify-card h2 { margin: 1rem 0 1.25rem; }

/* Certificate */
.cert-body { background: #e9e5dc; }
.cert-page { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
.cert-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cert { background: var(--ivory); aspect-ratio: 1.414; padding: 2.2%; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); position: relative; container-type: inline-size; }
.cert::before { content: ""; position: absolute; inset: 0; background-image: var(--girih); background-size: 80px; opacity: .05; }
.cert-frame { position: relative; height: 100%; border: 1.5px solid var(--gilt); outline: 1px solid var(--gilt); outline-offset: -8px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3% 8%; }
.cert-head { display: flex; flex-direction: column; align-items: center; gap: .3rem; margin-bottom: 1.5cqi; }
.cert-inst { font-family: var(--serif); font-weight: 600; font-size: 3.4cqi; color: var(--em-900); line-height: 1; }
.cert-div { font-size: 1.3cqi; color: var(--gilt-3); }
.cert-bism { font-family: var(--naskh); font-size: 2.4cqi; color: var(--gilt-3); margin: 0 0 1cqi; }
.cert-kind { font-family: var(--serif); font-style: italic; font-size: 2.6cqi; color: var(--gilt-3); margin: 0 0 1.5cqi; }
.cert-small { font-size: 1.4cqi; color: var(--ink-2); margin: 0; }
.cert-name { font-family: var(--serif); font-weight: 600; font-size: 5.2cqi; color: var(--em-900); margin: .8cqi 0; line-height: 1.1; border-bottom: 1px solid var(--gilt); padding: 0 4cqi .6cqi; }
.cert-course { font-family: var(--serif); font-weight: 600; font-size: 3cqi; color: var(--em-800); margin: .6cqi 0; }
.cert-foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 4cqi; align-items: end; width: 100%; margin-top: 3cqi; }
.cert-foot > div:not(.cert-seal) { display: grid; gap: .2rem; border-top: 1px solid var(--ink-2); padding-top: .6cqi; }
.sig { font-family: var(--serif); font-size: 1.6cqi; font-weight: 600; }
.cert-foot .tiny { font-size: 1cqi; }
.cert-seal { width: 8cqi; height: 8cqi; border-radius: 50%; background: var(--em-800); color: var(--gilt); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px var(--gilt); }
.cert-seal svg { width: 55%; height: 55%; }
@media print { .cert-actions { display: none; } .cert-body { background: none; } .cert-page { padding: 0; max-width: none; } .cert { box-shadow: none; } @page { size: A4 landscape; margin: 0; } }
@media (min-width: 901px) { .door-isl .door-body { max-width: 56%; } .door-isl .door-art { width: 36%; } .door-mosaic { height: 42%; } }
.door-acad .btn-solid { background: var(--lapis-700); }
.door-acad:hover .btn-solid { background: var(--lapis-900); }
@media (max-width: 700px) { .table-wrap table.t { min-width: 560px; } }

/* ================= v5: Islamic site, an evolution of the live design ================= */
@font-face { font-family: "Lexend"; src: url("../fonts/lexend-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("../fonts/lexend-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("../fonts/lexend-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("../fonts/lexend-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
body.div-islamic {
  --em-950: #062a31; --em-900: #093d47; --em-800: #0c4a56; --em-700: #11606e; --em-600: #168197;
  --teal-grad: linear-gradient(100deg, #0a4855 0%, #10707f 55%, #1797a8 100%);
  --gilt: #f2b51e; --gilt-2: #ffd26a; --gilt-3: #a87900;
  --ivory: #f8f5ee; --mint: #e5f2ec;
  --accent: #0c4a56; --accent-dark: #093d47; --accent-soft: #e5f2ec;
  --serif: "Lexend", "Segoe UI", system-ui, sans-serif;
  --sans: "Lexend", "Segoe UI", system-ui, sans-serif;
  font-family: var(--sans); font-size: 1rem; color: #1d2629;
}
.div-islamic h1, .div-islamic h2, .div-islamic h3, .div-islamic h4 { font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.div-islamic h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.div-islamic h3 { font-size: 1.25rem; }
.div-islamic .btn { border-radius: 6px; font-weight: 600; }
.div-islamic .btn-gilt { background: var(--gilt); color: #1d1600; box-shadow: 0 10px 24px -14px rgba(242,181,30,.9); }
.div-islamic .btn-gilt:hover { background: #ffc634; }
.div-islamic .btn-solid { background: var(--em-800); }
.div-islamic .btn-solid:hover { background: var(--em-700); }
.btn-light-teal { background: var(--white); color: var(--em-900); }
.btn-light-teal:hover { background: var(--gilt); color: #1d1600; }
.div-islamic .kicker { font-family: var(--sans); font-style: normal; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--em-700); }
.div-islamic .text-link { color: var(--em-800); }

/* utility bar and header, as on the live site */
.iq-util { background: var(--teal-grad); color: var(--white); font-size: .85rem; }
.iq-util .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 1rem; }
.iq-util a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.iq-util .ico { width: 16px; height: 16px; }
.iq-util-bism { font-family: var(--naskh); font-size: 1.25rem; direction: rtl; }
@media (max-width: 700px) { .iq-util a:last-child { display: none; } .iq-util-bism { font-size: 1.05rem; } }
.div-islamic .site-header { background: var(--white); }
.div-islamic .lockup-name { font-family: var(--sans); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.div-islamic .crest { box-shadow: none; border-radius: 6px; width: 48px; height: 54px; }
.div-islamic .crest img { width: 44px; }
.div-islamic .nav a { font-weight: 500; }
.div-islamic .nav a[aria-current="page"] { color: var(--em-800); text-decoration-color: var(--gilt); }
.div-islamic .nav .nav-switch a { font-family: var(--sans); font-style: normal; font-size: .9rem; color: var(--em-700); }
.div-islamic .head-actions .signin { background: var(--em-800); color: var(--white); border-radius: 6px; padding: .55rem 1.1rem; }
.div-islamic .head-actions .signin:hover { background: var(--em-700); }

/* shared Islamic section scaffolding */
.iq-sec { padding-block: clamp(4rem, 8vw, 6.25rem); }
.iq-cream { background: var(--ivory); }
.iq-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.iq-head-center { text-align: center; margin-inline: auto; }
.iq-head p { color: #5b6669; margin: .75rem auto 0; }
.iq-eyebrow { display: inline-flex; align-items: center; gap: .9rem; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--em-700); margin-bottom: .8rem; }
.iq-eyebrow-light { color: var(--gilt-2); }
.iq-bism { font-family: var(--naskh); font-size: 1.35rem; text-transform: none; letter-spacing: 0; color: var(--gilt-3); opacity: .8; }
.iq-center { text-align: center; margin: 2.5rem 0 0; }
.iq-ic { width: 76px; height: 76px; flex: none; border-radius: 50%; background: var(--gilt); color: #1d1600; display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(242,181,30,.18); }
.iq-ic .ico { width: 36px; height: 36px; }
.iq-ic-lg { width: 108px; height: 108px; } .iq-ic-lg .ico { width: 52px; height: 52px; }

/* hero: full-bleed Qur'an image, centred headline, as on the live site */
.iq-hero { position: relative; color: var(--white); text-align: center; background: linear-gradient(180deg, rgba(5,38,44,.72), rgba(6,52,60,.82)), url("../img/quran-gold.jpg") center 40%/cover no-repeat; padding: clamp(5rem, 11vw, 8.5rem) 0 clamp(8rem, 14vw, 10.5rem); overflow: hidden; }
.iq-hero::after { content: ""; position: absolute; inset: 0; background-image: var(--girih); background-size: 110px; opacity: .06; pointer-events: none; }
.iq-hero .wrap { position: relative; z-index: 1; max-width: 62rem; }
.iq-hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.06; color: var(--white); }
.iq-hero .lede { margin: 1rem auto 0; max-width: 40rem; color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.iq-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.iq-features-wrap { position: relative; z-index: 2; margin-top: -5.5rem; }
.iq-features { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(6,42,49,.35), 0 0 0 1px rgba(12,74,86,.06); overflow: hidden; }
.iq-features > div { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.9rem 1.75rem; }
.iq-features > div + div { border-left: 1px solid #e7ecea; }
.iq-features h3 { margin-bottom: .35rem; font-size: 1.2rem; }
.iq-features p { margin: 0; color: #5b6669; font-size: .95rem; }
@media (max-width: 900px) { .iq-features { grid-template-columns: 1fr; } .iq-features > div + div { border-left: 0; border-top: 1px solid #e7ecea; } }

/* welcome / introduction */
.iq-welcome { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.iq-welcome > * { min-width: 0; }
.iq-welcome p { color: #4b5659; max-width: 36rem; }
.iq-welcome .btn { margin-top: .75rem; }
.iq-frame { position: relative; margin: 0; padding: 0 0 2.4rem 1.6rem; }
.iq-frame::before { content: ""; position: absolute; left: 0; top: 2.2rem; bottom: 4.2rem; width: 10px; background: var(--em-800); border-radius: 4px; }
.iq-frame::after { content: ""; position: absolute; left: 0; top: 0; width: 10px; height: 2.2rem; background: var(--gilt); border-radius: 4px 4px 0 0; }
.iq-frame > img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 12px; box-shadow: 0 30px 50px -30px rgba(6,42,49,.5); }
.iq-ribbon { position: absolute; left: 0; bottom: 0; display: inline-flex; align-items: center; gap: .6rem; background: linear-gradient(90deg, #4cb98a, var(--gilt)); color: #102226; font-weight: 600; font-size: .95rem; padding: .85rem 1.5rem; border-radius: 0 8px 8px 0; box-shadow: 0 14px 26px -16px rgba(0,0,0,.4); }
.iq-ribbon .ico { width: 20px; height: 20px; }
.iq-frame-double .iq-frame-inset { position: absolute; right: -1rem; bottom: 3.5rem; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 8px solid var(--white); box-shadow: 0 24px 40px -24px rgba(0,0,0,.5); }
.iq-welcome-rev { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .iq-welcome { grid-template-columns: 1fr; } .iq-welcome-rev .iq-frame { order: 2; } .iq-frame-double .iq-frame-inset { right: .5rem; } }

/* what we offer: dark photo band with white cards */
.iq-offer { position: relative; padding-block: clamp(4.5rem, 9vw, 6.5rem); background: linear-gradient(180deg, rgba(10,14,12,.78), rgba(10,14,12,.86)), url("../img/quran-calligraphy.jpg") center/cover no-repeat; color: var(--white); }
.iq-head-light h2 { color: var(--white); }
.iq-offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.iq-offer-card { background: var(--white); color: #1d2629; border-radius: 14px; padding: 2rem 1.9rem; text-decoration: none; display: flex; flex-direction: column; gap: .75rem; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.iq-offer-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; background-image: var(--girih); background-size: 80px; opacity: .25; filter: hue-rotate(120deg); }
.iq-offer-card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(0,0,0,.6); }
.iq-offer-card h3 { font-size: 1.4rem; margin: .5rem 0 0; }
.iq-offer-card p { margin: 0; color: #5b6669; }
.iq-more { margin-top: auto; padding-top: .5rem; font-weight: 600; color: var(--em-700); }
@media (max-width: 900px) { .iq-offer-grid { grid-template-columns: 1fr; } }

/* course cards */
.iq-course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.iq-course { background: var(--white); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(12,74,86,.06), 0 20px 40px -32px rgba(6,42,49,.45); border: 1px solid #e9eeec; transition: transform .2s; }
.iq-course:hover { transform: translateY(-4px); }
.iq-course-img { position: relative; display: block; }
.iq-course-img img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.iq-chip { position: absolute; left: .85rem; top: .85rem; background: var(--gilt); color: #1d1600; font-size: .75rem; font-weight: 600; padding: .3rem .65rem; border-radius: 99px; }
.iq-course-body { padding: 1.25rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.iq-course-body h3 { margin: 0; font-size: 1.2rem; }
.iq-course-body h3 a { color: #1d2629; text-decoration: none; }
.iq-course-body h3 a:hover { color: var(--em-700); }
.iq-course-body > p { margin: 0; color: #5b6669; font-size: .92rem; }
.iq-course-meta { list-style: none; margin: 0; padding: .7rem 0 0; border-top: 1px solid #edf1ef; display: grid; gap: .35rem; font-size: .85rem; color: #4b5659; }
.iq-course-meta li { display: flex; align-items: center; gap: .45rem; }
.iq-course-meta .ico { width: 16px; height: 16px; color: var(--em-700); }
.iq-course-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: .6rem; }
.iq-price { font-weight: 700; color: var(--em-900); }
.iq-price small { display: block; font-weight: 400; font-size: .75rem; color: #6b7678; }
@media (max-width: 1100px) { .iq-course-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .iq-course-grid { grid-template-columns: 1fr; } }

/* teal CTA bands with mosque arches */
.iq-band-wrap { padding-block: 0; }
.iq-band, .iq-serve-box { position: relative; overflow: hidden; background: var(--teal-grad); color: var(--white); border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 5vw, 4.5rem); flex-wrap: wrap; }
.iq-band::before, .iq-serve-box::before { content: ""; position: absolute; right: -20px; bottom: -10px; width: 340px; height: 160px; opacity: .18; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='6'%3E%3Cpath d='M20 160V90a50 50 0 0 1 100 0v70M130 160V70a60 60 0 0 1 120 0v90M260 160V95a40 40 0 0 1 80 0v65'/%3E%3Cpath d='M70 40v-20M190 10V-10M300 55V35'/%3E%3C/g%3E%3C/svg%3E") no-repeat right bottom/contain; }
.iq-band h2, .iq-serve-box h2 { color: var(--white); margin: 0; max-width: 32ch; font-size: clamp(1.5rem, 2.8vw, 2.2rem); position: relative; }
.iq-band .btn, .iq-serve-box .btn { position: relative; }
.iq-serve { padding-block: clamp(3rem, 6vw, 4.5rem) 0; position: relative; z-index: 2; margin-bottom: -4.5rem; }
.iq-serve-box { justify-content: flex-start; }
.iq-serve-box .btn { margin-left: auto; }
@media (max-width: 760px) { .iq-serve-box .btn { margin-left: 0; } .iq-serve-box .iq-ic-lg { width: 80px; height: 80px; } }

/* why choose us cards */
.iq-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.iq-why > div { background: var(--ivory); border: 1px solid #ebe5d6; border-radius: 22px; padding: 2rem 1.5rem 1.75rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .75rem; transition: border-color .2s, transform .2s; }
.iq-cream .iq-why > div { background: var(--white); }
.iq-why > div:hover { border-color: var(--gilt); transform: translateY(-3px); }
.iq-why h3 { margin: .3rem 0 0; }
.iq-why p { margin: 0; color: #5b6669; font-size: .95rem; }
.iq-why b { color: #1d2629; }
.iq-why-label > div { justify-content: center; }
.iq-label { background: #fde8b0; color: #3a2c00; border-radius: 8px; padding: .6rem .85rem; font-size: .9rem; font-weight: 500; }
@media (max-width: 1000px) { .iq-why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .iq-why { grid-template-columns: 1fr; } }
.iq-t .portrait { box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--gilt) !important; }
.div-islamic .portrait-islamic { background: var(--em-800); color: var(--gilt); }
.div-islamic .portrait-islamic span { font-family: var(--sans); font-weight: 600; font-size: 2rem; }
.div-islamic .t-card h3 { font-size: 1.12rem; }

/* review */
.iq-review { position: relative; overflow: hidden; background: linear-gradient(100deg, #f7efd9 0%, #e6f3ec 60%, #d9efe6 100%); padding-block: clamp(3.5rem, 7vw, 5rem); }
.iq-review-in { position: relative; display: grid; grid-template-columns: 360px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.iq-review-in > * { min-width: 0; }
.iq-review-in > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; box-shadow: 0 30px 50px -30px rgba(6,42,49,.5); }
.iq-stars { display: inline-flex; gap: .25rem; background: var(--white); padding: .4rem .6rem; border-radius: 8px; color: var(--gilt); margin-bottom: 1rem; }
.iq-stars .ico { width: 20px; height: 20px; fill: currentColor; }
.iq-review blockquote { margin: 0 0 1.5rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.65; color: #34403f; max-width: 44rem; }
.iq-reviewer { display: flex; align-items: center; gap: .8rem; }
.iq-reviewer .avatar { width: 56px; height: 56px; font-size: 1rem; background: var(--em-800); color: var(--gilt); }
.iq-amin { position: absolute; right: 2%; top: -10%; font-family: var(--naskh); font-size: clamp(5rem, 11vw, 9rem); color: rgba(76,185,138,.28); pointer-events: none; }
@media (max-width: 860px) { .iq-review-in { grid-template-columns: 1fr; } .iq-review-in > img { max-width: 260px; } }

/* gallery grid and posts */
.iq-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.iq-gallery a { position: relative; display: block; border-radius: 10px; overflow: hidden; }
.iq-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.iq-gallery a:hover img { transform: scale(1.04); }
.iq-gallery span { position: absolute; left: .7rem; bottom: .7rem; background: rgba(6,42,49,.82); color: var(--white); font-size: .75rem; font-weight: 600; padding: .25rem .6rem; border-radius: 99px; }
@media (max-width: 900px) { .iq-gallery { grid-template-columns: 1fr 1fr; } }
.iq-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.iq-post { background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid #e9eeec; display: flex; flex-direction: column; box-shadow: 0 20px 40px -34px rgba(6,42,49,.45); }
.iq-post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.iq-post-body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.iq-post-body h3 { margin: 0; font-size: 1.2rem; }
.iq-post-body h3 a { color: #1d2629; text-decoration: none; }
.iq-post-body p { margin: 0; color: #5b6669; font-size: .93rem; }
.iq-date { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; color: #6b7678; }
.iq-date .ico { width: 15px; height: 15px; }
.iq-post-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: .65rem .65rem .65rem .9rem; border: 1px solid #e9eeec; border-radius: 10px; font-weight: 600; font-size: .9rem; }
@media (max-width: 900px) { .iq-posts { grid-template-columns: 1fr; } }

/* about: vision band and curriculum */
.iq-vision { padding-block: 0 clamp(4rem, 8vw, 6rem); background: var(--ivory); }
.iq-vision-in { position: relative; overflow: hidden; background: var(--em-800); color: var(--white); border-radius: 16px; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 7vw, 6rem); isolation: isolate; }
.iq-vision-in::before { content: ""; position: absolute; inset: 0; background-image: var(--girih); background-size: 150px; opacity: .1; z-index: -1; }
.iq-vision-in h2 { color: var(--white); }
.iq-vision-in p { font-size: clamp(1.1rem, 1.8vw, 1.35rem); max-width: 54rem; margin: 0; color: rgba(255,255,255,.9); }
.iq-vision-in b { color: var(--gilt-2); }
.iq-curric { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.iq-curric > div { position: relative; background: linear-gradient(180deg, #fbf3dc 0%, #e4f2ec 100%); border-radius: 22px; padding: 2rem 1.75rem; text-align: center; overflow: hidden; }
.iq-curric-ar { display: block; font-family: var(--naskh); font-size: 1.7rem; color: var(--gilt-3); margin-bottom: .25rem; }
.iq-curric h3 { margin: 0 0 .4rem; }
.iq-curric p { margin: 0; color: #355457; font-size: .93rem; }
@media (max-width: 900px) { .iq-curric { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .iq-curric { grid-template-columns: 1fr; } }

/* inner page banner, as on the live site */
.div-islamic .page-head { text-align: center; background: linear-gradient(180deg, rgba(5,32,38,.78), rgba(5,32,38,.86)), url("../img/quran-calligraphy.jpg") center/cover no-repeat; padding-block: clamp(3.5rem, 7vw, 5rem); }
.div-islamic .page-head::before { opacity: .05; }
.div-islamic .page-head h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
.div-islamic .page-head .lede { margin-inline: auto; }
.div-islamic .crumbs { margin-bottom: 1rem; }
.div-islamic .crumbs ol { justify-content: center; }
.div-islamic .page-head .tags { justify-content: center; }

/* contact info, gallery buttons */
.iq-info { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ivory); border-radius: 16px; overflow: hidden; }
.iq-info > div { text-align: center; padding: 2.25rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.iq-info > div + div { border-left: 1px solid #e3dccb; }
.iq-info .iq-ic { width: 62px; height: 62px; background: var(--white); color: var(--em-800); box-shadow: none; }
.iq-info .iq-ic .ico { width: 28px; height: 28px; }
.iq-info h3 { margin: .3rem 0 0; }
.iq-info p { margin: 0; color: #5b6669; font-size: .95rem; }
@media (max-width: 800px) { .iq-info { grid-template-columns: 1fr; } .iq-info > div + div { border-left: 0; border-top: 1px solid #e3dccb; } }
.contact-isl .contact-card { background: var(--em-800); }
.div-islamic .year-tabs { justify-content: center; }
.div-islamic .year-tabs button { border-radius: 6px; border-color: var(--em-800); color: var(--em-800); font-family: var(--sans); padding: .55rem 1.1rem; }
.div-islamic .year-tabs button[aria-pressed="true"] { background: var(--em-800); color: var(--white); }
.iq-gal { columns: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.iq-gal figure { margin: 0; }
.iq-gal img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; outline: 0; }
.iq-gal figcaption span { color: var(--em-700); font-family: var(--sans); font-style: normal; font-size: .8rem; }
@media (max-width: 900px) { .iq-gal { grid-template-columns: 1fr 1fr; } }

/* Islamic footer with mosque skyline */
.iq-foot { background: #071f23; padding-top: clamp(7rem, 12vw, 8.5rem); position: relative; }
.iq-foot .foot-word { font-family: var(--sans); font-weight: 600; font-size: 1.6rem; }
.iq-foot h4 { color: var(--white); font-family: var(--sans); font-weight: 600; font-size: 1.1rem; }
.iq-social { display: flex; gap: .5rem; margin-top: 1rem; }
.iq-social a { width: 40px; height: 40px; border-radius: 50%; background: var(--em-800); display: grid; place-items: center; text-decoration: none; font-weight: 700; color: var(--white); }
.iq-social a:hover { background: var(--gilt); color: #1d1600; }
.iq-skyline { display: block; width: 100%; height: 60px; color: #0c2c31; margin-top: 2.5rem; }
.iq-foot .foot-base { margin-top: 0; border-top: 0; background: #0c2c31; }

/* Islamic course and listing pages pick up the palette */
.div-islamic .course-entry h3 { font-size: 1.45rem; }
.div-islamic .reg-course a, .div-islamic .class-opt .teacher, .div-islamic .summary-card header b, .div-islamic .t-profile h2 { font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; }
.div-islamic .summary-card header b { font-size: 1.25rem; }
.div-islamic .t-profile h2 { font-size: 1.4rem; }
.div-islamic .page-title h1, .div-islamic .box h2 { font-weight: 600; }

/* ================= v5: Academic sample imagery ================= */
.aph { position: relative; display: block; width: 100%; height: 100%; background-size: cover; background-position: center; overflow: hidden; container-type: inline-size; color: var(--white); }
.aph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,24,52,0) 40%, rgba(10,24,52,.55) 100%); }
.aph-light { color: var(--lapis-950); }
.aph-light::after { background: linear-gradient(180deg, rgba(255,255,255,0) 50%, rgba(255,255,255,.35) 100%); }
.aph b { position: absolute; left: 7%; bottom: 6%; z-index: 1; font-family: var(--sans); font-weight: 700; letter-spacing: -.05em; line-height: .9; font-size: clamp(1.6rem, 19cqi, 7rem); }
.aph .aph-ur { font-family: var(--naskh); font-weight: 400; letter-spacing: 0; }
.pc-art .aph { height: 190px; } .area-art .aph { height: 150px; border-radius: 9px; margin-bottom: .75rem; }
.cc-art .aph { height: 230px; } .ce-art .aph { height: 100%; } .course-banner .aph { height: 260px; }
.art-cover .aph { height: auto; aspect-ratio: 16 / 10; } .gallery .art-ph .aph { aspect-ratio: 4 / 3; height: auto; }
.mc-art .aph { min-height: 180px; } .door-mosaic .aph { border-radius: 12px; }
.article-img.art-cover .aph { aspect-ratio: 21 / 9; }

/* Academic hero with large image and floating cards */
.ah2 { position: relative; background: var(--chalk); overflow: hidden; }
.ah2::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(47,93,158,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(47,93,158,.07) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(90deg, #000 40%, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 70%); }
.ah2 .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.ah2 .wrap > * { min-width: 0; }
.ah2 h1 { font-family: var(--sans); font-weight: 700; letter-spacing: -.05em; line-height: .96; font-size: clamp(3rem, 6.2vw, 5.6rem); color: var(--lapis-950); }
.ah2 .lede { color: var(--ink-2); }
.ah2-visual { position: relative; }
.ah2-img { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: 0 50px 80px -50px rgba(16,38,74,.7); }
.ah2-img .aph { height: 100%; }
.ah2-img .aph b { font-size: 26cqi; }
.float-card { position: absolute; background: var(--white); border-radius: 14px; box-shadow: 0 24px 50px -24px rgba(16,38,74,.45); padding: 1rem 1.1rem; font-size: .88rem; }
.float-card b { display: block; font-size: 1rem; letter-spacing: -.02em; }
.float-card span { color: var(--muted); }
.fc-1 { left: -2.5rem; bottom: 2.5rem; width: 250px; }
.fc-1 .row { display: flex; justify-content: space-between; align-items: center; margin-top: .6rem; gap: .5rem; }
.fc-2 { right: -1rem; top: 1.75rem; display: flex; gap: .75rem; align-items: center; }
.fc-2 .n { font-size: 1.9rem; font-weight: 700; letter-spacing: -.05em; color: var(--lapis-700); line-height: 1; }
.sample-tag { position: absolute; right: .8rem; bottom: .8rem; z-index: 2; background: rgba(255,255,255,.85); color: var(--lapis-900); font-size: .7rem; font-weight: 600; padding: .2rem .55rem; border-radius: 99px; }
@media (max-width: 960px) { .ah2 .wrap { grid-template-columns: 1fr; } .fc-1 { left: .75rem; } .fc-2 { right: .75rem; } .ah2-img { aspect-ratio: 4 / 3.4; } }
.acad-trust { background: var(--lapis-950); color: rgba(221,230,243,.85); }
.acad-trust .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2.5rem; padding-block: 1.2rem; font-size: .92rem; }
.acad-trust b { color: var(--white); }
.acad-cta { position: relative; overflow: hidden; border-radius: 22px; color: var(--white); display: grid; grid-template-columns: 1.2fr 1fr; isolation: isolate; background: var(--lapis-900); }
.acad-cta-text { padding: clamp(2rem, 5vw, 4rem); }
.acad-cta h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3.2rem); }
.acad-cta p { color: rgba(221,230,243,.85); max-width: 32rem; }
.acad-cta .btn-row { margin-top: 1.5rem; }
.acad-cta .aph { min-height: 300px; }
.btn-white { background: var(--white); color: var(--lapis-900); }
.btn-white:hover { background: var(--lapis-100); }
@media (max-width: 860px) { .acad-cta { grid-template-columns: 1fr; } .acad-cta .aph { min-height: 200px; } }
.div-academics .area-art { margin-bottom: .2rem; }
.div-academics .program-card, .div-academics .course-card { box-shadow: 0 30px 50px -44px rgba(16,38,74,.6); }

/* ================= v5: gateway refinement ================= */
.gw h1.gw-mark { font-family: var(--sans); font-weight: 700; letter-spacing: -.04em; font-size: clamp(3.4rem, 9vw, 7.4rem); line-height: .9; margin-bottom: .2em; }
.gw-mark span { color: var(--gilt); }
.gw-sub { display: block; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--ivory); margin-bottom: 1rem; }
.door-photo { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; transition: transform .6s ease; }
.door:hover .door-photo { transform: scale(1.04); }
.door-isl2 { background: #062a31; color: var(--white); }
.door-isl2 .door-photo { background-image: linear-gradient(180deg, rgba(6,42,49,.25) 0%, rgba(6,42,49,.75) 45%, rgba(6,42,49,.97) 100%), url("../img/quran-gold.jpg"); }
.door-isl2 .door-title { font-family: "Lexend", var(--sans); font-weight: 600; letter-spacing: -.02em; color: var(--white); }
.door-isl2 .door-text { color: rgba(255,255,255,.85); }
.door-isl2 .door-list span { border-color: rgba(242,181,30,.55); color: #ffd26a; }
.door-isl2 .btn-gilt { background: #f2b51e; color: #1d1600; }
.door-isl2 .door-mark { position: absolute; left: clamp(1.75rem, 3.5vw, 2.75rem); top: clamp(1.5rem, 3vw, 2.25rem); font-size: clamp(3rem, 5vw, 4.4rem); color: #f2b51e; }
.door-acad2 { background: var(--lapis-950); color: var(--white); }
.door-acad2 .door-photo { background-image: linear-gradient(180deg, rgba(11,26,51,.15) 0%, rgba(11,26,51,.7) 45%, rgba(11,26,51,.97) 100%), url("../img/acad/hero.jpg"); }
.door-acad2 .door-title { font-family: var(--sans); font-weight: 700; letter-spacing: -.045em; color: var(--white); }
.door-acad2 .door-text { color: rgba(221,230,243,.88); }
.door-acad2 .door-list span { border-color: rgba(221,230,243,.4); color: var(--lapis-100); }
.door-acad2 .door-mark-a { position: absolute; left: clamp(1.75rem, 3.5vw, 2.75rem); top: clamp(1.25rem, 3vw, 2rem); font-family: var(--sans); font-weight: 700; letter-spacing: -.06em; font-size: clamp(3rem, 5vw, 4.4rem); color: var(--white); opacity: .9; }
.door-acad2 .btn { background: var(--white); color: var(--lapis-900); }
.door-tagline { position: absolute; right: clamp(1.5rem, 3vw, 2.25rem); top: clamp(1.75rem, 3vw, 2.5rem); font-size: .8rem; font-weight: 600; letter-spacing: .02em; padding: .3rem .7rem; border-radius: 99px; background: rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.gw-doors .door { min-height: 600px; }
@media (max-width: 900px) { .gw-doors .door { min-height: 520px; padding-top: 7rem; } }

/* ================= v6: course discovery and enrollment ================= */
.cats-sec { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.cat-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 30px 50px -36px rgba(6,42,49,.55); }
.cat-img { position: relative; display: block; height: 200px; overflow: hidden; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-img .aph { height: 100%; }
.cat-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6,42,49,.55)); }
.div-academics .cat-img::after { display: none; }
.cat-ar { position: absolute; right: 1rem; bottom: .6rem; z-index: 1; font-family: var(--naskh); font-size: 2rem; color: var(--gilt-2); }
.cat-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.cat-name { font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; }
.div-academics .cat-name { font-weight: 700; letter-spacing: -.035em; }
.cat-desc { color: var(--muted); }
.cat-list { font-size: .88rem; color: var(--ink-2); padding-top: .55rem; border-top: 1px solid var(--line-2); }
.cat-foot { margin-top: auto; padding-top: .9rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .85rem; color: var(--muted); }

.cat-switch { display: flex; gap: .45rem; flex-wrap: wrap; padding-bottom: 1.5rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.cat-switch a { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.05rem; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; background: var(--white); white-space: nowrap; }
.cat-switch a span { font-size: .75rem; background: var(--line-2); border-radius: 99px; padding: .05rem .5rem; color: var(--muted); }
.cat-switch a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--white); }
.cat-switch a[aria-current] span { background: rgba(255,255,255,.2); color: var(--white); }
@media (max-width: 640px) { .cat-switch { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; } }

.clist { display: grid; gap: 1.25rem; }
.citem { display: grid; grid-template-columns: 260px 1fr 220px; gap: 1.75rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; }
.citem > * { min-width: 0; }
.citem-img { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.citem-img img, .citem-img .aph { width: 100%; height: 100%; object-fit: cover; }
.citem-body h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: .35rem; }
.div-academics .citem-body h2 { font-family: var(--sans); font-weight: 700; letter-spacing: -.03em; }
.citem-body h2 a { color: var(--ink); text-decoration: none; }
.citem-body h2 a:hover { color: var(--accent); }
.citem-body > p { color: var(--muted); margin-bottom: .9rem; }
.citem-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 0; padding-top: .8rem; border-top: 1px solid var(--line-2); }
.citem-facts dt { font-size: .78rem; color: var(--muted); }
.citem-facts dd { margin: .1rem 0 0; font-size: .9rem; font-weight: 600; }
.citem-side { display: grid; gap: .65rem; justify-items: end; text-align: right; padding-right: .5rem; }
@media (max-width: 1000px) { .citem { grid-template-columns: 200px 1fr; } .citem-side { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; justify-items: start; text-align: left; padding: .5rem 0 0; border-top: 1px solid var(--line-2); } }
@media (max-width: 640px) { .citem { grid-template-columns: 1fr; padding: .75rem; } .citem-img { aspect-ratio: 16 / 9; } .citem-facts { grid-template-columns: 1fr 1fr; } .citem-side { grid-auto-flow: row; grid-template-columns: 1fr auto; } .citem-side .btn { grid-column: 1 / -1; } }

/* course page */
.course-head { padding-bottom: 5.5rem; }
.course-cat { display: inline-block; font-size: .8rem; font-weight: 600; padding: .3rem .75rem; border-radius: 99px; background: var(--gilt); color: #1d1600; margin-bottom: 1rem; }
.div-academics .course-cat { background: var(--lapis-100); color: var(--lapis-900); }
.div-academics .course-head h1 { max-width: 22ch; }
.course-head h1 { max-width: 24ch; margin-inline: auto; }
.div-academics .course-head h1 { margin-inline: 0; }
.facts-bar { position: relative; z-index: 2; margin: -3.25rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--white); border-radius: 14px; box-shadow: 0 30px 60px -32px rgba(6,42,49,.4), 0 0 0 1px var(--line); overflow: hidden; }
.facts-bar div { padding: 1.15rem 1.3rem; }
.facts-bar div + div { border-left: 1px solid var(--line-2); }
.facts-bar dt { font-size: .78rem; color: var(--muted); }
.facts-bar dd { margin: .2rem 0 0; font-weight: 600; font-size: 1rem; }
@media (max-width: 900px) { .facts-bar { grid-template-columns: 1fr 1fr; } .facts-bar div:nth-child(odd) { border-left: 0; } .facts-bar div:nth-child(n+3) { border-top: 1px solid var(--line-2); } .facts-bar div:last-child { grid-column: 1 / -1; } }
.course-sec { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.course-main > * { min-width: 0; }
.course-intro { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.course-intro-img { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; }
.course-intro-img img, .course-intro-img .aph { width: 100%; height: 100%; object-fit: cover; }
.course-intro h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.sub-h { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.course-intro .learn { margin-bottom: 0; }
@media (max-width: 760px) { .course-intro { grid-template-columns: 1fr; } .course-intro-img { aspect-ratio: 16 / 9; } }
.classes-h { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-top: .5rem; }
.div-academics .classes-h, .div-academics .course-intro h2 { font-family: var(--sans); font-weight: 700; letter-spacing: -.03em; }
.level-group { margin: 1.5rem 0 2rem; }
.level-h { display: flex; align-items: center; gap: .6rem; font-size: 1rem; margin-bottom: .75rem; }
.level-h .tag { font-size: .85rem; padding: .3rem .8rem; }
.class-pick { margin: 0; }
.bopt { display: grid; grid-template-columns: auto 1.5fr 1fr 1fr 1fr .9fr auto; gap: 1rem; align-items: center; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.bopt + .bopt { margin-top: .6rem; }
.bopt:hover { border-color: var(--accent); }
.bopt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.bopt input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.bopt.is-off { background: var(--chalk); cursor: not-allowed; opacity: .78; }
.bopt b { display: block; font-weight: 600; font-size: .95rem; }
.bopt small { display: block; font-size: .8rem; color: var(--muted); }
.bopt-teacher { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.bopt-teacher .portrait { width: 44px; flex: none; }
.bopt-teacher .portrait span { font-size: .95rem; }
.bopt-seats { display: grid; gap: .35rem; justify-items: start; }
.bopt-seats .seats { width: 100%; max-width: 110px; }
.bopt-pick { font-size: .85rem; font-weight: 600; color: var(--accent); border: 1px solid currentColor; border-radius: 6px; padding: .35rem .75rem; }
.bopt:has(input:checked) .bopt-pick { background: var(--accent); color: var(--white); border-color: var(--accent); }
.bopt.is-off .bopt-pick { color: var(--muted); }
@media (max-width: 1180px) { .bopt { grid-template-columns: auto 1.4fr 1fr 1fr; } .bopt-seats, .bopt-fee { grid-row: 2; } .bopt-seats { grid-column: 2; } .bopt-fee { grid-column: 3; } .bopt-pick { grid-row: 2; grid-column: 4; justify-self: start; } }
@media (max-width: 640px) { .bopt { grid-template-columns: auto 1fr 1fr; gap: .75rem 1rem; } .bopt-teacher { grid-column: 2 / -1; } .bopt-when, .bopt-seats { grid-column: 2; } .bopt-dates, .bopt-fee { grid-column: 3; } .bopt-when, .bopt-dates { grid-row: 2; } .bopt-seats, .bopt-fee { grid-row: 3; } .bopt-pick { grid-row: 4; grid-column: 2 / -1; justify-self: stretch; text-align: center; } }
.plan-opt span { display: grid; flex: 1; }
.plan-opt .pn { font-weight: 600; }
.plan-opt small { color: var(--muted); font-size: .85rem; }
.lbl.small { display: block; font-weight: 600; margin-top: .25rem; }
.mini-path { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; counter-reset: mp; }
.mini-path li { counter-increment: mp; background: var(--chalk); border-radius: 12px; padding: 1rem; display: grid; gap: .2rem; font-size: .9rem; }
.mini-path li::before { content: counter(mp); width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: .85rem; margin-bottom: .35rem; }
.mini-path span { color: var(--muted); }
@media (max-width: 760px) { .mini-path { grid-template-columns: 1fr 1fr; } }
.empty-course { display: grid; justify-items: center; gap: .75rem; padding: 2.5rem 1.5rem; }
.empty-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.empty-ic .ico { width: 26px; height: 26px; }
.empty-state p { margin: 0 0 .5rem; }

/* enrollment */
.stepper-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 760px) { .stepper-5 { gap: .3rem; } .stepper-5 li { font-size: 0; padding-top: .55rem; } .stepper-5 li::before { font-size: .7rem; } .stepper-5 li[aria-current] { font-size: .8rem; grid-column: span 1; } .stepper-5 li[aria-current]::before { margin-bottom: .1rem; } }
.box-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.box-head h2 { margin: 0; font-size: 1.45rem; }
.sel-class { display: grid; grid-template-columns: 72px 1fr; gap: 1.25rem; align-items: start; }
.sel-class .portrait { width: 72px; }
.sel-class .portrait span { font-size: 1.3rem; }
.kv-2 { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
.kv-2 div { flex-direction: column; gap: .1rem; }
.kv-2 dd { text-align: left; }
@media (max-width: 560px) { .sel-class { grid-template-columns: 1fr; } .kv-2 { grid-template-columns: 1fr; } }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.plan-card { display: grid; gap: .25rem; padding: 1.1rem 1.2rem 1.1rem 3rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; position: relative; }
.plan-card input { position: absolute; left: 1.1rem; top: 1.25rem; width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.plan-card:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.pc-t { font-weight: 600; }
.pc-a { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.pc-n { font-size: .85rem; color: var(--muted); }
.sched { margin-top: 1rem; }
.sched summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.sched .table-wrap { margin-top: .75rem; }
.acct-choice { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.acct-opt { display: grid; gap: .2rem; padding: 1.2rem 1.25rem; border: 1px solid var(--accent); border-radius: 12px; text-decoration: none; color: var(--ink); }
.acct-opt b { font-size: 1.05rem; }
.acct-opt span { color: var(--muted); font-size: .9rem; }
.acct-opt:hover { background: var(--accent-soft); }
.acct-opt-new { background: var(--accent); color: var(--white); }
.acct-opt-new span { color: rgba(255,255,255,.8); }
.acct-opt-new:hover { background: var(--accent-dark); }
@media (max-width: 560px) { .acct-choice { grid-template-columns: 1fr; } }
.signed-as { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; background: var(--chalk); border-radius: 12px; }
.kv-total { border-top: 1px solid var(--line); padding-top: .6rem; }
.kv-total dd { font-size: 1.15rem; }
.done-panel { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; max-width: 860px; border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--white); }
.done-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--gilt); color: #1d1600; display: grid; place-items: center; }
.done-ic .ico { width: 30px; height: 30px; }
.done-panel h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.done-panel .btn-row { margin-top: 1.25rem; }
@media (max-width: 560px) { .done-panel { grid-template-columns: 1fr; } }
.enroll-note { display: grid; gap: .2rem; padding: .9rem 1rem; border-left: 3px solid var(--gilt); background: #f6f2e6; border-radius: 0 10px 10px 0; margin-bottom: 1.5rem; font-size: .92rem; }
.enroll-note span { color: var(--ink-2); }

html { scroll-padding-top: 100px; }

/* v6 QA: class options as two-row cards so names never wrap awkwardly */
.bopt { grid-template-columns: auto 1fr 1fr .9fr auto; grid-template-areas: "r t t s s" "r w d f p"; gap: .85rem 1.25rem; padding: 1.1rem 1.25rem; }
.bopt input { grid-area: r; align-self: start; margin-top: .7rem; }
.bopt-teacher { grid-area: t; } .bopt-seats { grid-area: s; justify-self: end; justify-items: end; }
.bopt-when { grid-area: w; } .bopt-dates { grid-area: d; } .bopt-fee { grid-area: f; } .bopt-pick { grid-area: p; align-self: center; }
.bopt-when, .bopt-dates, .bopt-fee { padding-top: .75rem; border-top: 1px solid var(--line-2); }
.bopt-pick { margin-top: .75rem; }
.bopt-teacher b { font-size: 1.02rem; }
@media (max-width: 1180px) { .bopt input { grid-area: r; } .bopt-teacher { grid-area: t; } .bopt-seats { grid-area: s; } .bopt-when { grid-area: w; } .bopt-dates { grid-area: d; } .bopt-fee { grid-area: f; } .bopt-pick { grid-area: p; } }
@media (max-width: 640px) {
  .bopt { grid-template-columns: auto 1fr 1fr; grid-template-areas: "r t t" "r s s" "r w d" "r f f" "r p p"; }
  .bopt input { grid-area: r; } .bopt-teacher { grid-area: t; } .bopt-seats { grid-area: s; } .bopt-when { grid-area: w; } .bopt-dates { grid-area: d; } .bopt-fee { grid-area: f; } .bopt-pick { grid-area: p; }
  .bopt-seats { justify-self: start; justify-items: start; }
  .bopt-fee { border-top: 0; padding-top: 0; }
  .bopt-pick { text-align: center; margin-top: .25rem; }
}
.plan-opt .pn { margin-left: 0; }
.plan-opt b.pn { margin-left: 0; }
.story-img-acad { border-radius: 16px; overflow: hidden; }
.story-img-acad .aph { aspect-ratio: 4 / 5; height: auto; }
.bopt:has(input:checked) .bopt-pick { font-size: 0; }
.bopt:has(input:checked) .bopt-pick::before { content: "Selected"; font-size: .85rem; }

/* ================= Backend stage 1-2: messages, switcher, payment-first card ================= */
.flash-wrap { display: grid; gap: .5rem; margin-bottom: 1.25rem; }
.flash { margin: 0 0 1rem; padding: .85rem 1rem; border-radius: 10px; font-size: .95rem; border-left: 4px solid; }
.flash-ok { background: var(--ok-bg); color: #1d5a37; border-color: var(--ok); }
.flash-error { background: var(--bad-bg); color: #8a1c15; border-color: var(--bad); }
.flash-info { background: var(--lapis-100); color: var(--lapis-900); border-color: var(--lapis-500); }
.field-error { color: var(--bad); font-size: .85rem; font-weight: 500; }
.div-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 .4rem; padding: 4px; background: var(--chalk); border-radius: 10px; }
.div-switch a { text-align: center; padding: .45rem .3rem; border-radius: 7px; font-size: .8rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.div-switch a[aria-current] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; text-align: left; }
.pay-first { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; border-left: 4px solid var(--gilt); margin-bottom: 1rem; flex-wrap: wrap; }
.pay-first .when { font-size: .85rem; font-weight: 600; color: var(--gilt-3); }
.pay-first h2 { font-size: 1.6rem; margin: .2rem 0 .3rem; }
.pay-first p { margin: 0 0 .3rem; }
.mono-sm { display: block; width: 64px; height: 64px; border-radius: var(--r-2); overflow: hidden; }
.mono-sm .aph b { font-size: 1rem; }
.div-switch-top { display: none; margin: 0; }
@media (max-width: 960px) { .div-switch-top { display: grid; flex: 1; max-width: 220px; } .topbar .who span:last-child { display: none; } }
@media (max-width: 560px) { .course-tile { grid-template-columns: 56px 1fr; } .course-tile > img, .course-tile .mono-sm { width: 56px; height: 56px; } .course-tile .tag { grid-column: 2; justify-self: start; } }
.plan-row { display: grid; grid-template-columns: 1.6fr .8fr 1fr; gap: .5rem; margin-bottom: .5rem; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.kpi { display: grid; gap: .2rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; text-decoration: none; color: var(--ink); }
.kpi:hover { border-color: var(--em-600); }
.kpi .n { font-family: var(--serif); font-weight: 600; font-size: 2.2rem; line-height: 1; font-feature-settings: "lnum" 1; }
.kpi .l { font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .kpis { grid-template-columns: 1fr 1fr; } }
.paid-split .v.bad { color: var(--bad); }
.admin-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.admin-photos figure { margin: 0; font-size: .8rem; }
.admin-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: .3rem; }
.kv-stack div { flex-direction: column; align-items: flex-start; gap: .15rem; }
.kv-stack dd { text-align: left; font-weight: 500; }
.plan-row { grid-template-columns: 1fr 1fr; }
.plan-row input[name="plan_name[]"] { grid-column: 1 / -1; }
.hero-art { width: 120px; height: 120px; border-radius: 12px; overflow: hidden; display: block; }
@media (max-width: 760px) { .hero-art { width: 72px; height: 72px; } .hero-art .aph b { font-size: 1rem; } }

/* ================= v8: Zoom links and teacher earnings ================= */
.zoom-card textarea { min-height: 3.2rem; font-size: .9rem; }
.zoom-one { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.zoom-one summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--accent); }
.zoom-one .rows { margin: .75rem 0; }
.zoom-one form { margin-top: .75rem; }
.earn-rule { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
.earn-split { display: flex; height: 2.4rem; border-radius: var(--r-2); overflow: hidden; font-weight: 600; font-size: .9rem; }
.earn-split:empty { display: none; }
.earn-split span { display: flex; align-items: center; padding: 0 .9rem; white-space: nowrap; min-width: 0; }
.es-t { background: var(--accent); color: #fff; }
.es-i { background: var(--line-2); color: var(--ink-2); justify-content: flex-end; }
.earn-points { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; color: var(--ink-2); }
.earn-tiles div > span.tiny { display: block; margin-top: .2rem; }
.earn-class { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 1.25rem 0 .5rem; display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.earn-class:first-of-type { margin-top: .25rem; }
.earn-row { border: 1px solid var(--line); border-radius: var(--r-2); margin-bottom: .5rem; background: var(--white); }
.earn-row summary { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: .8rem 1rem; cursor: pointer; list-style: none; }
.earn-row summary::-webkit-details-marker { display: none; }
.earn-row summary::after { content: "+"; font-weight: 700; color: var(--muted); grid-column: 4; }
.earn-row[open] summary::after { content: "\2212"; }
.earn-row[open] summary { border-bottom: 1px solid var(--line); }
.er-who { display: grid; min-width: 0; }
.er-num { display: grid; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.er-body { padding: 1rem; display: grid; gap: 1rem; }
.er-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .25rem 1.5rem; margin: 0; }
.earn-split .es-i { min-width: max-content; }
@media (max-width: 640px) {
  .earn-row summary { grid-template-columns: 1fr 1fr auto; }
  .earn-row summary .er-who { grid-column: 1 / 3; grid-row: 1; }
  .earn-row summary::after { grid-column: 3; grid-row: 1; align-self: start; }
  .earn-row summary .er-num { grid-row: 2; text-align: left; }
  .earn-split { font-size: .8rem; }
  .earn-split span { padding: 0 .6rem; }
}
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.35rem; margin: 2rem 0 .5rem; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--ink-2); }
/* v8: Academic imagery is real screens or photographs, shown without overlays */
.aph::after { display: none; }
.aph { background-color: var(--lapis-900); }
.study-grid .pc-art { display: block; }
.study-grid h3 a { color: inherit; text-decoration: none; }
.how-img { border-radius: 18px; overflow: hidden; box-shadow: 0 40px 70px -45px rgba(16,38,74,.6); }
.how-img .aph { aspect-ratio: 3 / 2; height: auto; }
.who4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.who4 > div { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem 1.5rem; }
.who4 h3 { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; margin-bottom: .4rem; }
.who4 p { color: var(--muted); margin: 0; font-size: .95rem; }
.empty-open { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 1.75rem 2rem; }
.empty-open h3 { font-family: var(--sans); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.empty-open p { margin: .35rem 0 0; max-width: 40rem; }
@media (max-width: 1000px) { .who4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .who4 { grid-template-columns: 1fr; } .empty-open { padding: 1.4rem; } }
@media (min-width: 600px) and (max-width: 960px) { .study-grid { grid-template-columns: 1fr 1fr; } }
.ah2-img .aph { background-position: 66% center; }
.setup-list { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; color: var(--ink-2); }
.portrait-photo { padding: 0; overflow: hidden; } .portrait-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.portrait-photo::before { display: none; }
.pay-methods { display: grid; gap: .75rem; }
.pay-method { border: 1px solid var(--line); border-radius: var(--r-2); padding: .85rem 1rem; }
.pay-method > b { display: block; margin-bottom: .35rem; }
.mono-copy { font-variant-numeric: tabular-nums; letter-spacing: .02em; word-break: break-all; user-select: all; }
.pay-step { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: .9rem; }
.pay-step > div { display: grid; gap: .15rem; }
.pay-step-n { flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: .9rem; }
.topbar a.who { color: inherit; text-decoration: none; }
.who-cell > .portrait, .who-cell > span > .portrait { width: 40px; flex: none; }
.who-cell .portrait span { font-size: .85rem; }
a.who-cell { color: inherit; text-decoration: none; }
.zoom-personal { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; margin-top: 1rem; padding: .75rem 1rem; border-radius: var(--r-2); background: var(--accent-soft); }
.payout-to { border: 1px solid var(--line); border-radius: var(--r-2); padding: .75rem 1rem; margin-bottom: 1rem; background: var(--chalk); }

/* ================= Islamic homepage cohesion pass =================
   One card treatment, one section rhythm, alternating white and ivory bands, limited rows on the homepage. */
:root { --iq-r: 14px; --iq-border: #e4e9e7; --iq-shadow: 0 1px 0 rgba(12,74,86,.04), 0 20px 40px -34px rgba(6,42,49,.5); }
.iq-sec { padding-block: clamp(4rem, 7.5vw, 6rem); }
.iq-head { margin-bottom: clamp(2rem, 3.5vw, 2.75rem); }
.iq-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.15; }
.iq-center { margin-top: clamp(2rem, 3.5vw, 2.5rem); }
/* Cards */
.iq-course, .iq-post, .iq-offer-card, .iq-why > div, .iq-features { border-radius: var(--iq-r); }
.iq-course, .iq-post { border: 1px solid var(--iq-border); box-shadow: var(--iq-shadow); }
.iq-why > div { border: 1px solid var(--iq-border); background: var(--ivory); box-shadow: none; padding: 1.9rem 1.5rem 1.75rem; }
.iq-cream .iq-course, .iq-cream .iq-post { border-color: #e6e1d3; }
.iq-course-body h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.iq-course-body > p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Welcome image: clean frame, badge on the photo */
.iq-frame-clean { padding: 0; }
.iq-frame-clean::before, .iq-frame-clean::after { display: none; }
.iq-frame-clean > img { border-radius: var(--iq-r); }
.iq-frame-clean .iq-ribbon { left: 1.25rem; bottom: 1.25rem; right: auto; background: var(--em-800); color: var(--white); border-radius: 99px; padding: .6rem 1.1rem; font-size: .9rem; box-shadow: 0 12px 24px -12px rgba(0,0,0,.5); }
.iq-frame-clean .iq-ribbon .ico { color: var(--gilt); }
/* Call to action inside the courses band, not floating between sections */
.iq-band-in { margin-top: clamp(3rem, 6vw, 4.5rem); border-radius: var(--iq-r); }
/* Teachers: one row of four on the homepage */
.iq-t .portrait { width: 116px; }
/* Student review: a framed card on white instead of a separate full-width colour band */
.iq-review { background: var(--white); }
.iq-review-in { background: var(--ivory); border: 1px solid #e6e1d3; border-radius: var(--iq-r); padding: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 280px 1fr; overflow: hidden; }
.iq-review-in > img { border-radius: calc(var(--iq-r) - 4px); }
.iq-review h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.iq-amin { right: 3%; top: auto; bottom: -1.5rem; font-size: clamp(4rem, 9vw, 7rem); color: rgba(198,161,91,.22); }
/* Gallery tiles keep their shape while photos load */
.iq-gallery a { border-radius: 12px; background: var(--em-800); aspect-ratio: 4 / 3; }
.iq-gallery img { height: 100%; }
/* Blog cards: a simple meta line instead of a box inside the card */
.iq-post-foot { border: 0; border-top: 1px solid var(--iq-border); border-radius: 0; padding: .85rem 0 0; font-weight: 500; color: #5b6669; }
.iq-post-foot a { font-weight: 600; color: var(--em-700); text-decoration: none; }
.iq-post-foot a:hover { text-decoration: underline; }
@media (max-width: 860px) { .iq-review-in { grid-template-columns: 1fr; } .iq-review-in > img { max-width: 220px; } }
@media (max-width: 560px) { .iq-sec { padding-block: 3.5rem; } .iq-frame-clean .iq-ribbon { left: .75rem; bottom: .75rem; font-size: .8rem; } .iq-band-in { text-align: left; } }

/* Breadcrumb on a light page title (admin teacher page); the cream colour is for the dark class headers. */
.page-title .crumbs-in { color: var(--muted); }
.page-title .crumbs-in a { text-decoration: underline; text-underline-offset: 2px; }

/* Short laptop screens: keep the whole admin menu, Settings and Sign out visible without scrolling the sidebar. */
@media (min-width: 901px) and (max-height: 880px) { .side { gap: 1rem; padding-top: 1rem; } .side-nav a { padding: .42rem .8rem; font-size: .92rem; } }

/* Cron command in Admin > Settings and on the setup page */
.cron-box { margin-bottom: 1rem; }
.cron-cmd { display: block; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--chalk); font-size: .82rem; overflow-wrap: anywhere; user-select: all; }

/* Admin teacher page: courses and levels, availability (full width, one under the other) */
.teach-cols { margin-top: 1.25rem; display: grid; gap: 1.25rem; }
.teach-div { font-size: 1.05rem; margin: .75rem 0 .25rem; }
.teach-div:first-of-type { margin-top: 0; }
.teach-cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: .6rem 0 .2rem; }
.teach-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; padding: .45rem 0; border-top: 1px solid var(--line); }
.teach-course { font-weight: 500; font-size: .95rem; }
.teach-levels { display: flex; gap: .25rem .9rem; flex-wrap: wrap; }
.teach-levels .check, .avail-row .check { margin: 0; font-size: .9rem; }
.avail-list { display: grid; gap: .45rem; }
.avail-row { display: grid; grid-template-columns: 8.5rem 9.5rem auto 9.5rem; justify-content: start; align-items: center; gap: .5rem; }
.avail-row input[type=time] { width: 100%; min-width: 0; padding: .4rem .5rem; }
@media (max-width: 560px) { .avail-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .3rem .4rem; } .avail-row .check { grid-column: 1 / -1; } .avail-row input[type=time] { font-size: .85rem; padding: .35rem .4rem; } }
/* Course page: teachers qualified for the course */
.t-card .t-meta { display: block; font-size: .82rem; color: var(--muted); margin-top: .2rem; }
