/* =====================================================================
   ZAAD ACADEMY — Royal Academic Theme
   Palette: deep sapphire blue · platinum silver · amethyst · wine
   © Zaadh Holdings Private Limited
   ===================================================================== */
:root {
  /* Presidential palette: deep navy · royal emerald · royal purple, with soft champagne accents, on a light paper ground */
  --green-950: #032a1c; --green-900: #05402b; --green-700: #0b6b45; --green-500: #179060;
  --blue-950: #000a33; --blue-900: #000f46; --blue-800: #0a2468; --blue-700: #094183; --blue-500: #2b6cc4;
  --purple-900: #2a0f4a; --purple-800: #3b1866; --purple-600: #5a2a8f; --purple-400: #9a74cf;
  --gold-700: #6d5e41; --gold: #b39462; --gold-400: #c0b296; --gold-200: #e4dccb; --gold-50: #f7f5f1;
  --amber: #5a2a8f; --wine: #3b1866;
  --ivory: #f4f5f8; --paper: #ffffff; --ink: #101a33; --ink-2: #33405c; --muted: #66718a; --line: #e2e6ef;
  --royal-grad: linear-gradient(135deg, #000f46 0%, #094183 52%, #0b6b45 100%);
  --gold-grad: linear-gradient(135deg, #f7f4ef 0%, #e1d8c6 48%, #c2b396 100%);
  --purple-grad: linear-gradient(135deg, #2a0f4a 0%, #3b1866 50%, #5a2a8f 100%);
  --shadow-1: 0 2px 6px rgba(7, 26, 65, .06), 0 8px 24px rgba(7, 26, 65, .06);
  --shadow-2: 0 10px 40px rgba(7, 26, 65, .16);
  --radius: 14px;
  --f-head: "Cormorant Garamond", "Faruma", "Cairo", Georgia, serif;
  --f-body: "Inter", "Faruma", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-dv: "Faruma", "MV Faseyha", "Inter", sans-serif;
  --f-ar: "Amiri", "Traditional Arabic", serif;
  --f-arui: "Cairo", "Inter", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); color: var(--ink); background: var(--ivory); line-height: 1.65; font-size: 15px; -webkit-user-select: none; user-select: none; overflow-x: hidden; }
input, textarea, select, [contenteditable] { -webkit-user-select: text; user-select: text; font: inherit; }
img { max-width: 100%; display: block; -webkit-user-drag: none; }
a { color: var(--blue-700); text-decoration: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
body.no-scroll { overflow: hidden; }
body.is-dv { font-size: 16.5px; line-height: 2; }
body.is-ar { font-family: var(--f-arui); font-size: 15.5px; line-height: 1.9; }
body.is-ar h1, body.is-ar h2, body.is-ar h3, body.is-ar h4, body.is-ar .b-name { font-family: var(--f-arui); font-weight: 700; letter-spacing: 0; }
body.is-dv h1, body.is-dv h2, body.is-dv h3, body.is-dv h4 { letter-spacing: 0; font-weight: 400; }
[lang="dv"] { font-family: var(--f-dv); }
.is-dv [lang="dv"], .is-dv .b-name { line-height: 1.9; }
[lang="ar"]:not(html) { font-family: var(--f-arui); }
.thaana { font-family: var(--f-dv); }
.quran, .arabic, .quran * { font-family: var(--f-ar) !important; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: url("../img/geo-soft.svg") 0 0 / 190px; opacity: .42; pointer-events: none; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.pre { white-space: pre-line; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 0; border-radius: 999px; padding: .72em 1.4em; font-weight: 600; font-size: .94rem; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.sm { padding: .5em 1em; font-size: .85rem; }
.btn.block { width: 100%; }
.btn-gold { background: var(--gold-grad); color: var(--blue-950); box-shadow: 0 4px 14px rgba(120, 134, 180, .35); }
.btn-gold:hover { box-shadow: 0 6px 20px rgba(120, 134, 180, .5); }
.btn-ghost { background: transparent; border: 1.5px solid var(--gold); color: var(--blue-900); }
.btn-ghost:hover { background: var(--gold-50); }
.btn-ghost-light { background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(197, 203, 224, .7); color: #ffffff; backdrop-filter: blur(4px); }
.btn-royal { background: var(--royal-grad); color: #ffffff; }
.btn-sm-ghost { background: var(--gold-50); border: 1px solid var(--gold-200); color: var(--blue-900); border-radius: 8px; padding: .45em .7em; font-size: .8rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Loader ---------- */
#za-loader { position: fixed; inset: 0; z-index: 9999; background: #ffffff; display: grid; place-content: center; justify-items: center; gap: 22px; transition: opacity .6s; }
#za-loader img { width: 170px; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .35)); background: #ffffff; border-radius: 18px; padding: 14px; }
#za-loader .ld-bar { width: 180px; height: 3px; background: #e0e6f0; border-radius: 3px; overflow: hidden; position: relative; }
#za-loader .ld-bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--gold-grad); animation: ld 1.1s infinite ease-in-out; }
@keyframes ld { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
#za-loader.done { opacity: 0; pointer-events: none; }

/* ---------- Top bar ---------- */
.topbar { background: var(--blue-950); color: #ced7eb; font-size: .82rem; border-bottom: 2px solid var(--gold); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 40px; }
.topbar a { color: #ced7eb; }
.topbar a:hover { color: var(--gold-200); }
.tb-left, .tb-right { display: flex; align-items: center; gap: 16px; }
.tb-left i { color: var(--gold); margin-inline-end: 4px; }
.tb-date { color: var(--gold-200); letter-spacing: .02em; }
.socials { display: inline-flex; gap: 6px; }
.socials a { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .07); transition: background .2s; }
.socials a:hover { background: var(--gold); color: var(--blue-950); }
.lang-btn { background: var(--gold-grad); color: var(--blue-950); border: 0; border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: .82rem; font-family: var(--f-dv), var(--f-body); }
.lang-btn.dark { background: var(--blue-900); color: var(--gold-200); border: 1px solid var(--gold); }
.tb-login { display: inline-flex; gap: 6px; align-items: center; border: 1px solid rgba(120, 134, 180, .55); padding: 4px 12px; border-radius: 999px; }

/* ---------- Masthead ---------- */
.masthead { background: var(--paper) url("../img/pattern.svg"); background-size: 120px; border-bottom: 1px solid var(--line); position: relative; }
.masthead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .88) 50%, rgba(255, 255, 255, .97) 100%); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 16px; color: var(--blue-900); }
.brand img { width: 118px; height: auto; }
.b-name { font-family: var(--f-head); font-size: 2.05rem; font-weight: 700; line-height: 1; color: var(--blue-900); letter-spacing: .01em; }
.b-sec { font-weight: 700; color: var(--purple-600); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; margin-top: 6px; }
body.is-dv .b-sec { letter-spacing: 0; font-size: .95rem; text-transform: none; }
.b-tag { color: var(--green-700); font-size: .8rem; margin-top: 2px; }
.mh-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.mh-ayah { font-family: var(--f-ar); font-size: 1.45rem; color: var(--green-900); direction: rtl; }
.mh-cta { display: flex; gap: 10px; }
.burger { display: none; background: var(--blue-900); border: 0; width: 44px; height: 44px; border-radius: 10px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 22px; height: 2px; background: var(--gold-200); border-radius: 2px; }

/* ---------- Main nav ---------- */
.mainnav { background: linear-gradient(90deg, var(--blue-800), var(--blue-700) 55%, var(--green-700)); position: sticky; top: 0; z-index: 100; border-bottom: 3px solid var(--gold); transition: box-shadow .3s; }
.mainnav.stuck { box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.menu > li { position: relative; }
.menu > li > a, .nav-top { display: flex; align-items: center; gap: 7px; color: #f0eef3; padding: 15px 15px; background: none; border: 0; font-weight: 600; font-size: .9rem; letter-spacing: .01em; border-bottom: 3px solid transparent; margin-bottom: -3px; }
body.is-dv .menu > li > a, body.is-dv .nav-top { font-size: .98rem; }
.nav-top i { font-size: .65rem; color: var(--gold-400); transition: transform .2s; }
.menu > li > a:hover, .nav-top:hover, .has-sub.open > .nav-top { color: var(--gold-200); border-bottom-color: var(--gold-200); background: rgba(255, 255, 255, .04); }
.menu > li.nav-learn > a { background: var(--gold-grad); color: var(--blue-950); border-radius: 0; }
.sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; inset-inline-start: 0; min-width: 250px; background: #ffffff; border-top: 3px solid var(--gold); box-shadow: var(--shadow-2); border-radius: 0 0 12px 12px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 10; }
.has-sub:hover > .sub, .has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover > .nav-top i, .has-sub.open > .nav-top i { transform: rotate(180deg); }
.sub a { display: block; padding: 9px 20px; color: var(--ink-2); font-size: .9rem; border-inline-start: 3px solid transparent; }
.sub a:hover { background: var(--gold-50); color: var(--purple-600); border-inline-start-color: var(--gold); }

/* ---------- Ticker ---------- */
.ticker { background: #edf3fc; border-bottom: 1px solid #d5e1f2; }
.ticker .wrap { display: flex; align-items: stretch; overflow: hidden; }
.tk-label { background: var(--green-700); color: var(--gold-200); padding: 9px 18px; font-weight: 700; font-size: .85rem; white-space: nowrap; display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.tk-viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000000 4%, #000000 96%, transparent); }
.tk-track { display: inline-flex; white-space: nowrap; animation: tk 40s linear infinite; padding-block: 9px; }
.tk-track:hover { animation-play-state: paused; }
.tk-item { padding-inline: 28px; color: var(--blue-900); font-size: .9rem; }
.tk-item i { color: var(--gold); font-size: .6rem; margin-inline-end: 8px; vertical-align: middle; }
@keyframes tk { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .tk-track { animation-name: tk-rtl; }
@keyframes tk-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 470px; overflow: hidden; background: var(--blue-950); color: #ffffff; }
.hero-slides .slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity 1.1s ease; }
.hero-slides .slide.on { opacity: 1; z-index: 1; }
.slide::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg"); background-size: 140px; opacity: .55; }
.slide.s1 { background: radial-gradient(1200px 500px at 85% 40%, rgba(120, 134, 180, .22), transparent 60%), linear-gradient(120deg, var(--blue-950), var(--blue-800) 45%, var(--purple-800)); }
.slide.s2 { background: radial-gradient(1000px 500px at 80% 50%, rgba(120, 134, 180, .2), transparent 60%), linear-gradient(120deg, var(--green-950), var(--green-700) 50%, var(--blue-900)); }
.slide.s3 { background: radial-gradient(1000px 500px at 80% 50%, rgba(120, 134, 180, .22), transparent 60%), linear-gradient(120deg, var(--purple-900), var(--purple-600) 50%, var(--blue-900)); }
.slide .wrap { position: relative; z-index: 2; }
.h-txt { max-width: 640px; padding-block: 60px; }
.h-kicker { display: inline-block; color: var(--gold-200); border: 1px solid rgba(197, 203, 224, .5); padding: 4px 14px; border-radius: 999px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
body.is-dv .h-kicker { letter-spacing: 0; font-size: .9rem; text-transform: none; }
.h-txt h1 { font-family: var(--f-head); font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; margin: 0 0 16px; font-weight: 700; }
body.is-dv .h-txt h1 { line-height: 1.5; font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
.h-txt p { font-size: 1.1rem; color: #dee5f4; margin: 0 0 26px; max-width: 540px; }
.h-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-emblem { position: absolute; z-index: 3; inset-inline-end: max(4vw, calc((100vw - 1240px) / 2 + 20px)); top: 50%; transform: translateY(-50%); width: 330px; text-align: center; pointer-events: none; }
.hero-emblem img { background: rgba(255, 255, 255, .96); border-radius: 50%; width: 270px; height: 270px; object-fit: contain; padding: 46px 30px; margin: 0 auto; box-shadow: 0 0 0 8px rgba(120, 134, 180, .35), 0 0 0 16px rgba(120, 134, 180, .12), 0 30px 60px rgba(0, 0, 0, .4); }
.he-ayah { font-family: var(--f-ar); font-size: 1.7rem; color: var(--gold-200); margin-top: 26px; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.hero-dots { position: absolute; bottom: 22px; inset-inline-start: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 4; }
html[dir="rtl"] .hero-dots { transform: translateX(50%); }
.hero-dots button { width: 34px; height: 4px; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .3); padding: 0; }
.hero-dots button.on { background: var(--gold); }

/* ---------- Features strip ---------- */
.features { background: #ffffff; border-bottom: 1px solid var(--line); }
.features .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.feat { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px 10px; font-weight: 600; color: var(--blue-900); border-inline-end: 1px solid var(--line); }
.feat:last-child { border: 0; }
.feat i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-50); color: var(--gold-700); font-size: 1.15rem; border: 1px solid var(--gold-200); }

/* ---------- Layout ---------- */
.main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; padding-block: 44px; }
.block { margin-bottom: 52px; scroll-margin-top: 80px; }
.sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { font-family: var(--f-head); font-size: 2rem; color: var(--blue-900); margin: 0; line-height: 1.1; white-space: nowrap; }
body.is-dv .sec-head h2 { font-size: 1.45rem; }
.sec-head .orn { flex: 1; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); position: relative; }
html[dir="rtl"] .sec-head .orn { background: linear-gradient(-90deg, var(--gold), transparent); }
.sec-head .orn::before { content: "◆"; position: absolute; top: 50%; inset-inline-start: 0; transform: translateY(-52%); color: var(--gold); font-size: .7rem; }
.sec-head.light h2 { color: #ffffff; }
.lead { font-size: 1.05rem; color: var(--ink-2); }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { background: #ffffff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); cursor: pointer; transition: transform .25s, box-shadow .25s; border: 1px solid var(--line); display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.news-card.feature { grid-column: 1 / -1; flex-direction: row; }
.news-card.feature .nc-img { flex: 1.2; aspect-ratio: auto; min-height: 260px; }
.news-card.feature .nc-body { flex: 1; padding: 28px; }
.news-card.feature h3 { font-size: 1.55rem; }
.nc-img { aspect-ratio: 16/10; overflow: hidden; background: var(--blue-900); }
.nc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover .nc-img img { transform: scale(1.05); }
.nc-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nc-body time { color: var(--purple-600); font-size: .8rem; font-weight: 600; }
.nc-body h3 { margin: 0; font-family: var(--f-head); font-size: 1.25rem; line-height: 1.25; color: var(--blue-900); }
body.is-dv .nc-body h3 { font-size: 1.05rem; line-height: 1.7; }
.nc-body p { margin: 0; color: var(--muted); font-size: .9rem; flex: 1; }
.more { color: var(--gold-700); font-weight: 600; font-size: .85rem; }
html[dir="rtl"] .more i, html[dir="rtl"] .fa-arrow-right, html[dir="rtl"] .fa-arrow-right-long { transform: scaleX(-1); }

/* Latest video */
.lv-card { display: grid; grid-template-columns: 1.3fr 1fr; background: var(--royal-grad); border-radius: 18px; overflow: hidden; color: #ffffff; box-shadow: var(--shadow-2); position: relative; border: 1px solid rgba(120, 134, 180, .5); }
.lv-thumb { position: relative; aspect-ratio: 16/9; background: #000000; }
.lv-thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.65) saturate(1.1); }
.lv-play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: var(--blue-950); font-size: 1.8rem; box-shadow: 0 0 0 10px rgba(120, 134, 180, .25); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(120, 134, 180, .45); } 50% { box-shadow: 0 0 0 18px rgba(120, 134, 180, 0); } }
.lv-lock { position: absolute; top: 14px; inset-inline-end: 14px; background: rgba(0, 0, 0, .55); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-200); }
.lp-card { margin-top: 18px; }
.lv-card[hidden] { display: none; }
.lp-card:first-of-type, #lv-card[hidden] + .lp-card { margin-top: 0; }
.lp-thumb { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #164688, #071a41 70%); }
.lp-doc { position: relative; width: 132px; height: 168px; border-radius: 10px 34px 10px 10px; background: linear-gradient(160deg, #ffffff, #eef1f8); box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 4px rgba(120, 134, 180, .55); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #b42318; font-size: 3.4rem; transform: rotate(-4deg); }
.lp-doc b { font-family: Inter, sans-serif; font-size: .78rem; color: var(--blue-900); background: var(--gold-200); padding: 2px 10px; border-radius: 999px; max-width: 118px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-info { padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 10px; align-items: flex-start; }
.lv-info h3 { font-family: var(--f-head); font-size: 1.7rem; margin: 0; line-height: 1.15; }
body.is-dv .lv-info h3 { font-size: 1.2rem; line-height: 1.7; }
.lv-info p { margin: 0; color: #d6dded; font-size: .92rem; }
.pill { display: inline-flex; gap: 6px; align-items: center; background: rgba(120, 134, 180, .18); color: var(--gold-200); border: 1px solid rgba(120, 134, 180, .5); border-radius: 999px; padding: 3px 12px; font-size: .78rem; font-weight: 600; }

/* About */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.vm-card { background: #ffffff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); border-top: 4px solid var(--green-700); box-shadow: var(--shadow-1); }
.vm-card:nth-child(2) { border-top-color: var(--purple-600); }
.vm-card i { font-size: 1.4rem; color: var(--gold); }
.vm-card h3 { margin: 8px 0 6px; font-family: var(--f-head); font-size: 1.4rem; color: var(--blue-900); }
.vm-card p { margin: 0; color: var(--ink-2); }

/* Courses */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tabs button { background: #ffffff; border: 1px solid var(--line); color: var(--ink-2); padding: 10px 18px; border-radius: 999px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.tabs button.on { background: var(--blue-900); color: var(--gold-200); border-color: var(--blue-900); }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.course-card { background: #ffffff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; transition: transform .2s; }
.course-card:hover { transform: translateY(-3px); }
.course-card::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: var(--gold-grad); }
.cc-top { display: flex; justify-content: space-between; align-items: center; }
.cc-top > i { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--royal-grad); color: var(--gold-200); font-size: 1.2rem; }
.mqa { font-size: .72rem; font-weight: 700; color: var(--green-700); background: #ede8f5; border: 1px solid #ccbfe3; border-radius: 999px; padding: 3px 10px; }
.course-card h3 { margin: 0; font-size: 1.05rem; color: var(--blue-900); line-height: 1.35; }
.course-card p { margin: 0; color: var(--muted); font-size: .88rem; flex: 1; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: var(--purple-600); font-weight: 600; }
.course-card .btn { align-self: flex-start; }

/* Advice */
.advice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.adv { border-radius: var(--radius); padding: 24px; position: relative; }
.adv-ar { background: var(--royal-grad); color: #ffffff; text-align: center; border: 1px solid rgba(120, 134, 180, .45); overflow: hidden; }
.adv-ar::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg"); background-size: 90px; opacity: .45; }
.adv-ar > * { position: relative; }
.adv-k { color: var(--gold); font-size: .9rem; letter-spacing: .3em; }
.adv-ar p { font-family: var(--f-ar); font-size: 1.6rem; line-height: 1.9; margin: 6px 0; color: #ffffff; }
.adv-ar small { color: var(--gold-200); font-family: var(--f-ar); font-size: 1rem; }
.adv-tip { background: #ffffff; border: 1px solid var(--line); border-inline-start: 4px solid var(--gold); display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow-1); }
.adv-tip i { color: var(--gold); font-size: 1.3rem; margin-top: 4px; }
.adv-tip p { margin: 0; color: var(--ink-2); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-grid figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; cursor: zoom-in; background: var(--blue-900); }
.gallery-grid figure:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-grid figure:hover img { transform: scale(1.07); }
.gallery-grid figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 14px 10px; background: linear-gradient(transparent, rgba(4, 18, 48, .9)); color: #ffffff; font-weight: 600; font-size: .9rem; display: flex; flex-direction: column; }
.gallery-grid figcaption small { color: var(--gold-200); font-weight: 400; font-size: .75rem; }

/* Testimonials & FAQ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testi-grid blockquote { margin: 0; background: #ffffff; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.testi-grid blockquote i { color: var(--gold); font-size: 1.4rem; }
.testi-grid p { margin: 8px 0; color: var(--ink-2); font-style: italic; }
body.is-dv .testi-grid p { font-style: normal; }
.testi-grid cite { color: var(--purple-600); font-weight: 600; font-style: normal; font-size: .85rem; }
.faq details { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq summary { padding: 16px 20px; font-weight: 600; color: var(--blue-900); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--gold); transition: transform .2s; }
.faq details[open] summary { background: var(--gold-50); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 14px 20px 18px; color: var(--ink-2); }

/* ---------- Sidebar widgets ---------- */
.side-col { display: flex; flex-direction: column; gap: 20px; }
.widget { background: #ffffff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-1); padding: 18px; overflow: hidden; }
.w-head { margin: -18px -18px 14px; padding: 12px 18px; background: var(--blue-900); color: var(--gold-200); font-weight: 700; display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--gold); font-size: .95rem; }
.w-note { font-size: .72rem; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.w-prayer .w-head { background: linear-gradient(90deg, var(--green-900), var(--green-700)); }
.pr-loc { font-size: .85rem; color: var(--purple-600); font-weight: 600; margin-bottom: 10px; }
.pr-next { display: flex; justify-content: space-between; align-items: center; background: var(--royal-grad); color: #ffffff; padding: 12px 14px; border-radius: 12px; margin-bottom: 10px; }
.pr-next small { display: block; color: var(--gold-200); font-size: .72rem; }
.pr-next b { font-size: .95rem; }
.pr-count { font-family: ui-monospace, Menlo, monospace; font-size: 1.25rem; font-weight: 700; color: var(--gold-200); direction: ltr; }
.pr-list { list-style: none; margin: 0; padding: 0; }
.pr-list li { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; font-size: .92rem; }
.pr-list li:nth-child(odd) { background: var(--ivory); }
.pr-list li.sr { color: var(--muted); }
.pr-list li.on { background: var(--gold-50); border: 1px solid var(--gold-200); color: var(--blue-900); font-weight: 700; }
.pr-list b { direction: ltr; font-weight: 600; }
.pr-ctrl { display: flex; gap: 6px; margin-top: 10px; }
.pr-ctrl select { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 6px; font-size: .8rem; background: #ffffff; }
.w-weather .w-head { background: linear-gradient(90deg, var(--blue-800), var(--purple-800)); }
.wx { display: flex; align-items: center; gap: 14px; }
.wx-main { display: flex; align-items: center; gap: 6px; }
.wx-ico { font-size: 2.4rem; }
.wx-temp { font-size: 2rem; font-weight: 700; color: var(--blue-900); direction: ltr; }
.wx-meta { font-size: .8rem; color: var(--ink-2); }
.wx-meta div:first-child { font-weight: 700; color: var(--purple-600); }
.wx-date { margin-top: 12px; text-align: center; border-top: 1px dashed var(--line); padding-top: 12px; }
.clock { font-family: ui-monospace, Menlo, monospace; font-size: 1.7rem; font-weight: 700; color: var(--green-900); letter-spacing: .04em; direction: ltr; }
.wx-date .hij { color: var(--gold-700); font-weight: 600; }
.w-cal .w-head { background: linear-gradient(90deg, var(--purple-800), var(--purple-600)); }
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; text-align: center; }
.cal-h b { display: block; color: var(--blue-900); }
.cal-h small { color: var(--gold-700); font-size: .72rem; }
.cal-h button { border: 1px solid var(--line); background: #ffffff; width: 30px; height: 30px; border-radius: 8px; color: var(--purple-600); font-size: 1.1rem; }
html[dir="rtl"] .cal-h button { transform: scaleX(-1); }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal-g .dh { font-size: .66rem; color: var(--muted); font-weight: 700; padding: 4px 0; }
.cal-g .dc { border-radius: 8px; padding: 3px 0; line-height: 1.1; position: relative; }
.cal-g .dc b { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); }
.cal-g .dc i { font-style: normal; font-size: .58rem; color: var(--gold-700); }
.cal-g .dc.today { background: var(--blue-900); }
.cal-g .dc.today b { color: #ffffff; } .cal-g .dc.today i { color: var(--gold-200); }
.cal-g .dc.ev::after { content: ""; position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--purple-600); }
.cal-g .dc.ev.holiday::after { background: var(--green-500); } .cal-g .dc.ev.event::after { background: var(--gold); }
.cal-events { list-style: none; padding: 0; margin: 10px 0 0; font-size: .82rem; }
.cal-events li { padding: 6px 8px; border-inline-start: 3px solid var(--purple-600); margin-bottom: 4px; background: var(--ivory); border-radius: 4px; }
.cal-events li.holiday { border-color: var(--green-500); } .cal-events li.event { border-color: var(--gold); }
.cal-events b { color: var(--purple-600); margin-inline-end: 4px; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 6px; border-radius: 10px; background: var(--ivory); border: 1px solid var(--line); color: var(--blue-900); font-size: .78rem; font-weight: 600; transition: .2s; }
.quick a i { font-size: 1.2rem; color: var(--purple-600); }
.quick a:hover { background: var(--blue-900); color: var(--gold-200); }
.quick a:hover i { color: var(--gold); }
.w-notice { background: linear-gradient(135deg, var(--gold-50), #ffffff); border-color: var(--gold-200); }
.w-notice .w-head { background: var(--gold-grad); color: var(--blue-950); }
.w-notice p { margin: 0; color: var(--blue-900); font-weight: 500; }
.prog { list-style: none; margin: 0; padding: 0; }
.prog li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.prog li:last-child { border: 0; }
.prog .pd { flex: none; width: 52px; text-align: center; background: var(--royal-grad); color: var(--gold-200); border-radius: 10px; padding: 4px 0; font-size: .64rem; line-height: 1.2; }
.prog .pd b { display: block; font-size: 1.2rem; color: #ffffff; }
.w-word { text-align: center; }
.word-ar { font-family: var(--f-ar); font-size: 2.3rem; color: var(--green-900); }
.word-tr { color: var(--purple-600); font-weight: 600; }
.nisab { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: center; }
.nisab div { border-radius: 12px; padding: 12px; background: var(--gold-50); border: 1px solid var(--gold-200); }
.nisab div:last-child { background: #f1f3f8; border-color: #d8deeb; }
.nisab b { display: block; font-size: 1.3rem; color: var(--blue-900); }
.nisab span { font-size: .8rem; color: var(--muted); }
.links { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.links li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.links a::before { content: "›"; color: var(--gold); margin-inline-end: 8px; font-weight: 700; }
.w-sub { margin-top: 10px; font-size: .82rem; color: var(--green-700); font-weight: 600; }
.w-visit { display: flex; align-items: center; gap: 14px; background: var(--royal-grad); color: #ffffff; border: 0; }
.w-visit > i { font-size: 1.8rem; color: var(--gold); }
.w-visit b { display: block; font-size: 1.6rem; direction: ltr; }
.w-visit span { color: var(--gold-200); font-size: .82rem; }

/* ---------- Services / subscribe / footer ---------- */
.services { background: var(--royal-grad); padding: 60px 0; position: relative; overflow: hidden; }
.services::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg"); background-size: 140px; opacity: .5; }
.services .wrap { position: relative; }
.srv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.srv { background: rgba(255, 255, 255, .06); border: 1px solid rgba(120, 134, 180, .35); border-radius: var(--radius); padding: 22px; color: #ffffff; backdrop-filter: blur(6px); transition: .25s; }
.srv:hover { background: rgba(255, 255, 255, .11); transform: translateY(-3px); }
.srv i { font-size: 1.5rem; color: var(--gold); }
.srv h3 { margin: 10px 0 4px; font-size: 1.05rem; }
.srv p { margin: 0; color: #ced6e7; font-size: .88rem; }
.subscribe { background: var(--gold-50); border-block: 1px solid var(--gold-200); padding: 34px 0; }
.subscribe .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.subscribe h3 { margin: 0; color: var(--blue-900); font-family: var(--f-head); font-size: 1.7rem; }
body.is-dv .subscribe h3 { font-size: 1.3rem; }
.subscribe p { margin: 0; color: var(--ink-2); }
.subscribe form { display: flex; gap: 8px; flex: 1; max-width: 460px; }
.subscribe input { flex: 1; border: 1px solid var(--gold-200); border-radius: 999px; padding: 12px 18px; background: #ffffff; min-width: 0; }
.site-footer { background: var(--blue-950); color: #b8c2d9; position: relative; }
.ft-ornament { height: 6px; background: var(--gold-grad); }
.ft-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 30px; padding-block: 50px 30px; }
.site-footer h4 { color: var(--gold-200); margin: 0 0 14px; font-size: 1rem; position: relative; padding-bottom: 10px; }
.site-footer h4::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 40px; height: 2px; background: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; font-size: .9rem; }
.site-footer a { color: #b8c2d9; }
.site-footer a:hover { color: var(--gold-200); }
.ft-brand img { width: 90px; background: #ffffff; border-radius: 12px; padding: 8px; }
.ft-brand .b-name { color: #ffffff; font-size: 1.6rem; }
.ft-brand .b-sec { color: var(--gold-200); }
.site-footer p { font-size: .88rem; }
.ft-reg { color: var(--gold-200); font-size: .8rem !important; }
.ft-contact i { color: var(--gold); width: 18px; }
.ft-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0; font-size: .78rem; }
.ft-bottom .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Forms (shared) ---------- */
.fld { display: flex; flex-direction: column; gap: 5px; font-size: .86rem; }
.fld > span { font-weight: 600; color: var(--ink-2); }
.fld em { color: var(--purple-600); font-style: normal; }
.fld input, .fld select, .fld textarea, .toolbar input, .toolbar select, .row-form input { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #ffffff; color: var(--ink); transition: border .2s, box-shadow .2s; width: 100%; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .toolbar input:focus, .row-form input:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(120, 134, 180, .18); }
.fld.full { grid-column: 1 / -1; }
.fld.invalid input, .fld.invalid select, .chk.invalid { border-color: var(--purple-600); background: #f6f0fc; }
.fld.missing input, .fld.missing select, .chk.missing { border-color: var(--amber); background: #edf0f8; box-shadow: 0 0 0 3px rgba(105, 121, 174, .15); }
.fld.missing > span { color: var(--amber); }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; padding: 10px; border-radius: 10px; border: 1.5px solid transparent; }
.chk.full { grid-column: 1 / -1; }
.chk input { width: 18px; height: 18px; accent-color: var(--green-700); margin-top: 3px; flex: none; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.hint { background: var(--gold-50); border: 1px solid var(--gold-200); padding: 10px 14px; border-radius: 10px; font-size: .85rem; color: var(--blue-900); margin: 0 0 14px; }
.alert { padding: 14px 16px; border-radius: 12px; margin: 14px 0; font-size: .92rem; }
.alert.warn { background: #edf0f8; border: 1px solid #c4cbe0; color: #3d2e60; }
.alert.info { background: #edf2fc; border: 1px solid #ced9f2; color: var(--blue-900); }
.alert.err { background: #f4eefb; border: 1px solid #d9c6ef; color: var(--purple-800); }
.card { background: #ffffff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-1); padding: 28px; }
.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.b-submitted { background: #edf2fc; color: var(--blue-700); }
.b-resubmitted { background: #e8efff; color: var(--blue-500); }
.b-under_review { background: #f3ecfb; color: var(--purple-600); }
.b-incomplete { background: #e2e6f3; color: #495c9b; }
.b-accepted { background: #e9e2f4; color: var(--green-700); }
.b-rejected { background: #ecedf1; color: #43495c; }

/* ---------- Toasts & modals ---------- */
#za-toasts { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 10001; display: flex; flex-direction: column; gap: 8px; }
.za-toast { background: var(--blue-900); color: #ffffff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-2); border-inline-start: 4px solid var(--gold); max-width: 360px; font-size: .9rem; animation: tin .3s; transition: opacity .5s, transform .5s; }
.za-toast.ok { border-color: var(--green-500); } .za-toast.err { border-color: var(--purple-400); background: var(--purple-900); }
.za-toast.out { opacity: 0; transform: translateY(10px); }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }
.za-modal-wrap { position: fixed; inset: 0; z-index: 5000; background: rgba(9, 35, 80, .55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .25s; overflow-y: auto; }
.za-modal-wrap.in { opacity: 1; }
.za-modal { background: #ffffff; border-radius: 20px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; position: relative; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); border-top: 5px solid var(--gold); transform: translateY(14px); transition: transform .3s; }
.za-modal-wrap.in .za-modal { transform: none; }
.za-modal.m-wide { width: min(900px, 100%); }
.za-modal.m-sm { width: min(440px, 100%); }
.za-modal.m-news { width: min(760px, 100%); }
.za-modal-x { position: absolute; top: 10px; inset-inline-end: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(7, 26, 65, .08); font-size: 1.4rem; color: var(--blue-900); z-index: 2; }
.m-pad { padding: 30px; }
.m-pad.center { text-align: center; }
.m-hero { width: 100%; max-height: 360px; object-fit: cover; }
.m-pad h2 { margin: 6px 0 10px; color: var(--blue-900); font-family: var(--f-head); font-size: 1.8rem; line-height: 1.2; }
body.is-dv .m-pad h2 { font-size: 1.35rem; line-height: 1.6; }
.m-pad time { color: var(--purple-600); font-weight: 600; font-size: .85rem; }
.m-lb { width: min(1000px, 100%); background: #000000; border-top-color: var(--gold); }
.lb { position: relative; }
.lb img { width: 100%; max-height: 78vh; object-fit: contain; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #ffffff; font-size: 1.8rem; }
.lb-nav.p { left: 10px; } .lb-nav.n { right: 10px; }
.lb-cap { color: var(--gold-200); padding: 12px 18px; text-align: center; }
.gate { text-align: center; }
.gate .stack { text-align: start; margin-top: 18px; }
.gate-logo { width: 120px; margin: 0 auto 6px; }
.big-ok { font-size: 3.4rem; color: var(--green-500); }
.ref-big { font-family: ui-monospace, Menlo, monospace; font-size: 1.7rem; font-weight: 800; color: var(--purple-600); letter-spacing: .06em; direction: ltr; display: inline-block; }

/* ---------- Royal media viewer ---------- */
.rv-wrap { position: fixed; inset: 0; z-index: 6000; background: radial-gradient(circle at 50% 30%, rgba(19, 66, 141, .92), rgba(9, 35, 80, .96)); display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .3s; }
.rv-wrap.in { opacity: 1; }
.rv-frame { position: relative; width: min(1180px, 100%); background: linear-gradient(160deg, #0d326d, #0f2f5a); border-radius: 18px; padding: 10px; box-shadow: 0 0 0 2px var(--gold), 0 0 0 8px rgba(120, 134, 180, .18), 0 40px 90px rgba(0, 0, 0, .6); display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.rv-frame:fullscreen { width: 100vw; max-height: none; height: 100vh; border-radius: 0; padding: 8px; }
.rv-c { position: absolute; width: 34px; height: 34px; border: 3px solid var(--gold); z-index: 2; pointer-events: none; }
.rv-c.tl { top: -6px; left: -6px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.rv-c.tr { top: -6px; right: -6px; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.rv-c.bl { bottom: -6px; left: -6px; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.rv-c.br { bottom: -6px; right: -6px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.rv-bar { display: flex; align-items: center; gap: 10px; padding: 6px 8px 12px; color: var(--gold-200); border-bottom: 1px solid rgba(120, 134, 180, .3); margin-bottom: 10px; }
.rv-bar img { width: 54px; background: #ffffff; border-radius: 8px; padding: 3px; }
.rv-title { flex: 1; font-weight: 700; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(120, 134, 180, .5); background: rgba(255, 255, 255, .05); color: var(--gold-200); font-size: 1rem; transition: .2s; }
.rv-btn:hover { background: var(--gold); color: var(--blue-950); }
.rv-body { display: flex; gap: 10px; min-height: 0; flex: 1; }
.rv-stage { flex: 1; aspect-ratio: 16/9; background: #000000; border-radius: 10px; overflow: hidden; min-width: 0; box-shadow: inset 0 0 0 1px rgba(120, 134, 180, .35); }
.rv-stage.is-pdf { aspect-ratio: auto; height: calc(100vh - 170px); background: #ffffff; }
.rv-frame:fullscreen .rv-stage { aspect-ratio: auto; height: 100%; }
.rv-stage iframe, .rv-stage video { width: 100%; height: 100%; border: 0; display: block; }
.rv-list { width: 260px; flex: none; overflow-y: auto; max-height: 62vh; display: flex; flex-direction: column; gap: 6px; }
.rv-list h4 { margin: 0 0 4px; color: var(--gold); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.rv-list button { display: flex; gap: 10px; align-items: center; text-align: start; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); color: #dee5f3; border-radius: 10px; padding: 9px; font-size: .86rem; }
.rv-list button b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(120, 134, 180, .2); color: var(--gold-200); flex: none; font-size: .75rem; }
.rv-list button.on { border-color: var(--gold); background: rgba(120, 134, 180, .15); }
.rv-foot { text-align: center; color: rgba(197, 203, 224, .55); font-size: .72rem; padding-top: 8px; letter-spacing: .06em; }
.rv-wrap.mini { inset: auto 20px 20px auto; background: none; padding: 0; width: 380px; display: block; }
html[dir="rtl"] .rv-wrap.mini { inset: auto auto 20px 20px; }
.rv-wrap.mini .rv-frame { width: 100%; max-height: none; padding: 6px; }
.rv-wrap.mini .rv-list, .rv-wrap.mini .rv-foot, .rv-wrap.mini .rv-c { display: none; }
.rv-wrap.mini .rv-bar { padding: 2px 4px 6px; margin-bottom: 6px; cursor: pointer; }
.rv-wrap.mini .rv-bar img { width: 34px; }
.rv-wrap.mini .rv-btn { width: 30px; height: 30px; font-size: .8rem; }
.rv-wrap.mini [data-a="fs"] { display: none; }
.rv-wrap.mini .rv-stage.is-pdf { height: 240px; }

/* ---------- Apply page ---------- */
.page-banner { background: var(--royal-grad); color: #ffffff; padding: 46px 0; position: relative; overflow: hidden; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg"); background-size: 120px; opacity: .5; }
.page-banner .wrap { position: relative; }
.page-banner h1 { margin: 0; font-family: var(--f-head); font-size: 2.6rem; }
body.is-dv .page-banner h1 { font-size: 1.9rem; }
.page-banner p { margin: 6px 0 0; color: var(--gold-200); }
.apply-main { padding-block: 40px 70px; display: flex; flex-direction: column; gap: 26px; }
.ap-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ap-card { background: #ffffff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; text-align: start; box-shadow: var(--shadow-1); transition: .25s; border-top: 5px solid var(--gold); color: inherit; }
.ap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.ap-card i { font-size: 2rem; color: var(--purple-600); }
.ap-card h3 { margin: 12px 0 6px; color: var(--blue-900); font-size: 1.3rem; }
.ap-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.ap-choice.compact .ap-card { padding: 16px 20px; display: flex; gap: 14px; align-items: center; }
.ap-choice.compact .ap-card p { display: none; }
.ap-choice.compact .ap-card h3 { margin: 0; font-size: 1.05rem; }
.ap-choice.compact .ap-card i { font-size: 1.4rem; }
.ap-track h2, .form-head h2 { margin: 0 0 16px; color: var(--blue-900); font-size: 1.35rem; }
.row-form { display: flex; gap: 10px; flex-wrap: wrap; }
.row-form input { flex: 1; min-width: 200px; width: auto; }
.my-apps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip { background: var(--gold-50); border: 1px solid var(--gold-200); border-radius: 999px; padding: 6px 14px; color: var(--blue-900); font-family: ui-monospace, monospace; font-size: .85rem; }
.form-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ref-chip { background: var(--blue-900); color: var(--gold-200); padding: 4px 14px; border-radius: 999px; font-family: ui-monospace, monospace; font-weight: 700; }
.ap-form fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 22px; margin: 0 0 18px; }
.ap-form legend { padding: 0 10px; font-weight: 700; color: var(--blue-900); display: flex; align-items: center; gap: 10px; }
.ap-form legend .num { width: 28px; height: 28px; border-radius: 50%; background: var(--gold-grad); color: var(--blue-950); display: grid; place-items: center; font-size: .85rem; }
.status-card { border-top: 6px solid var(--blue-700); }
.status-card.st-incomplete { border-top-color: var(--amber); } .status-card.st-accepted { border-top-color: var(--green-500); } .status-card.st-under_review { border-top-color: var(--purple-600); }
.sc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.sc-head .badge { font-size: .9rem; padding: 6px 16px; }
.sc-who { margin: 10px 0 20px; }
.stepper { list-style: none; padding: 0; margin: 0 0 10px; display: flex; gap: 0; counter-reset: s; }
.stepper li { flex: 1; text-align: center; position: relative; font-size: .82rem; color: var(--muted); font-weight: 600; }
.stepper li span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 6px; background: #eef0f5; color: var(--muted); position: relative; z-index: 1; font-weight: 800; }
.stepper li::before { content: ""; position: absolute; top: 18px; inset-inline-start: -50%; width: 100%; height: 3px; background: #eef0f5; }
.stepper li:first-child::before { display: none; }
.stepper li.done span, .stepper li.done::before, .stepper li.cur::before { background: var(--green-500); color: #ffffff; }
.stepper li.cur span { background: var(--gold-grad); color: var(--blue-950); box-shadow: 0 0 0 5px rgba(120, 134, 180, .25); }
.stepper li.done, .stepper li.cur { color: var(--blue-900); }
.miss-list { margin: 8px 0 14px; padding-inline-start: 4px; list-style: none; }
.miss-list li { padding: 3px 0; } .miss-list i { color: var(--amber); }
.sc-live { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--green-700); font-weight: 700; justify-content: flex-end; }
.sc-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); animation: pulse2 1.6s infinite; }
@keyframes pulse2 { 50% { opacity: .3; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-emblem { display: none; }
  .main-grid { grid-template-columns: 1fr; }
  .side-col { display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .menu > li > a, .nav-top { padding: 14px 10px; font-size: .85rem; }
}
@media (max-width: 860px) {
  .burger { display: flex; }
  .mh-right { display: none; }
  .mainnav { position: sticky; }
  .mainnav .wrap { width: 100%; }
  .menu { display: none; flex-direction: column; flex-wrap: nowrap; max-height: calc(100vh - 60px); overflow-y: auto; }
  .mainnav.open .menu { display: flex; }
  .menu > li > a, .nav-top { width: 100%; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid rgba(255, 255, 255, .06); margin: 0; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border-radius: 0; background: rgba(0, 0, 0, .18); border: 0; }
  .has-sub.open > .sub { display: block; }
  .has-sub:hover > .sub { display: none; } .has-sub.open:hover > .sub { display: block; }
  .sub a { color: #dee5f4; padding-inline-start: 34px; }
  .sub a:hover { background: rgba(255, 255, 255, .06); color: var(--gold-200); }
  .news-grid, .testi-grid, .srv-grid { grid-template-columns: 1fr 1fr; }
  .news-card.feature { flex-direction: column; }
  .lv-card { grid-template-columns: 1fr; }
  .features .wrap { grid-template-columns: 1fr 1fr; }
  .feat:nth-child(2) { border-inline-end: 0; }
  .feat { border-bottom: 1px solid var(--line); }
  .rv-list { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .hide-sm { display: none !important; }
  .topbar .wrap { flex-wrap: wrap; justify-content: center; padding-block: 6px; }
  .brand img { width: 78px; }
  .b-name { font-size: 1.5rem; }
  .b-tag { display: none; }
  .hero { min-height: 430px; }
  .news-grid, .testi-grid, .srv-grid, .advice-grid, .vm, .grid2, .ap-choice, .side-col, .ft-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .feat { flex-direction: column; text-align: center; font-size: .8rem; gap: 6px; }
  .sec-head h2 { font-size: 1.55rem; white-space: normal; }
  .card { padding: 20px; }
  .rv-wrap { padding: 8px; } .rv-frame { padding: 6px; }
  .rv-wrap.mini { width: calc(100% - 24px); inset: auto 12px 12px 12px; }
  .stepper li { font-size: .7rem; }
  .m-pad { padding: 22px; }
}
@media print { .topbar, .mainnav, .ticker, .side-col, .site-footer, .showcase, .za-modal-wrap { display: none !important; } }

/* =====================================================================
   v2 — geometric art · language tabs · royal slideshow · publications
   ===================================================================== */
/* Geometric band (like the tile art) */
.geo-band { height: 16px; background: url("../img/geo-full.svg") 0 50% / 64px repeat-x; border-block: 2px solid var(--gold); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.site-footer .geo-band { border-top: 0; }
.ft-ornament { display: none; }

/* Language tabs */
.lang-tabs { display: inline-flex; background: rgba(255, 255, 255, .08); border: 1px solid rgba(120, 134, 180, .6); border-radius: 999px; padding: 3px; gap: 2px; direction: ltr; }
.lang-tabs button { border: 0; background: none; color: #dee5f4; border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 600; line-height: 1.6; transition: background .2s, color .2s; }
.lang-tabs button[lang="dv"] { font-family: var(--f-dv); font-size: .9rem; }
.lang-tabs button[lang="ar"] { font-family: var(--f-arui); }
.lang-tabs button:hover { color: #ffffff; background: rgba(255, 255, 255, .08); }
.lang-tabs button.on { background: var(--gold-grad); color: var(--blue-950); box-shadow: 0 2px 8px rgba(120, 134, 180, .45); }
.lang-tabs.dark { background: var(--blue-900); }
.lang-tabs.dark button { color: var(--gold-200); }
.lang-tabs.dark button.on { color: var(--blue-950); }
.tb-right { gap: 12px; }

/* Royal looping slideshow */
.hero { min-height: clamp(420px, 62vh, 640px); background: var(--blue-950); }
.hero .hero-slides .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; display: block; background: none; }
.hero .hero-slides .slide::before { display: none; }
.hero .hero-slides .slide.on { opacity: 1; z-index: 1; }
.slide-img { position: absolute; inset: -2%; background: center / cover no-repeat; transform: scale(1.02); }
.slide.on .slide-img { animation: kenburns 9s ease-out forwards; }
.slide:nth-child(even).on .slide-img { animation-name: kenburns2; }
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
@keyframes kenburns2 { from { transform: scale(1.12) translate(1%, 1%); } to { transform: scale(1.02) translate(0, 0); } }
.hero-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(9, 35, 80, .62) 0%, rgba(9, 35, 80, .3) 45%, rgba(9, 35, 80, 0) 75%), linear-gradient(0deg, rgba(9, 35, 80, .45), transparent 40%); pointer-events: none; }
html[dir="rtl"] .hero-shade { background: linear-gradient(-90deg, rgba(9, 35, 80, .62) 0%, rgba(9, 35, 80, .3) 45%, rgba(9, 35, 80, 0) 75%), linear-gradient(0deg, rgba(9, 35, 80, .45), transparent 40%); }
.hero-ui { position: relative; z-index: 3; min-height: inherit; display: flex; align-items: center; }
.hero-cap { max-width: 620px; padding: 34px 34px 30px; border-radius: 22px; background: rgba(9, 35, 80, .42); backdrop-filter: blur(6px); border: 1px solid rgba(120, 134, 180, .45); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); position: relative; margin-block: 60px; }
.hero-cap::before, .hero-cap::after { content: ""; position: absolute; width: 30px; height: 30px; border: 3px solid var(--gold); }
.hero-cap::before { top: -6px; inset-inline-start: -6px; border-inline-end: 0; border-bottom: 0; border-start-start-radius: 14px; }
.hero-cap::after { bottom: -6px; inset-inline-end: -6px; border-inline-start: 0; border-top: 0; border-end-end-radius: 14px; }
.hero-cap.in > * { animation: capin .9s ease both; }
.hero-cap.in > *:nth-child(2) { animation-delay: .08s; } .hero-cap.in > *:nth-child(3) { animation-delay: .16s; } .hero-cap.in > *:nth-child(4) { animation-delay: .24s; }
@keyframes capin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-cap h1 { font-family: var(--f-head); font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.12; margin: 0 0 12px; color: #ffffff; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.is-dv .hero-cap h1, .hero-cap h1 [lang="dv"] { line-height: 1.6; font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.is-ar .hero-cap h1 { line-height: 1.45; }
.hero-cap p { color: #e5ebf6; font-size: 1.08rem; margin: 0 0 22px; }
.hero-arrow { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(197, 203, 224, .6); background: rgba(4, 18, 48, .45); color: var(--gold-200); font-size: 1.1rem; backdrop-filter: blur(4px); transition: .2s; }
.hero-arrow:hover { background: var(--gold); color: var(--blue-950); }
.hero-arrow.prev { left: 18px; } .hero-arrow.next { right: 18px; }
.hero-dots { z-index: 5; }
.hero-progress { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .12); }
.hero-progress span { display: block; height: 100%; width: 0; background: var(--gold-grad); }
html[dir="rtl"] .hero-progress span { margin-inline-start: auto; }

/* Section heading link */
.sec-more { margin-inline-start: 10px; white-space: nowrap; font-weight: 600; font-size: .88rem; color: var(--purple-600); border: 1px solid var(--line); background: #ffffff; padding: 6px 14px; border-radius: 999px; }
.sec-more:hover { border-color: var(--gold); }
.sec-more.light { background: rgba(255, 255, 255, .08); color: var(--gold-200); border-color: rgba(120, 134, 180, .5); }
.tabs.sm button { padding: 7px 14px; font-size: .85rem; }

/* Publication cards */
.news-grid { grid-template-columns: repeat(3, 1fr); }
.post-card { display: flex; flex-direction: column; background: #ffffff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1); color: inherit; transition: transform .25s, box-shadow .25s, border-color .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--gold-200); }
.pc-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--blue-900); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.post-card:hover .pc-img img { transform: scale(1.06); }
.pc-type { position: absolute; top: 12px; inset-inline-start: 12px; font-size: .74rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--blue-900); color: var(--gold-200); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.pc-type.inline { position: static; box-shadow: none; display: inline-block; }
.t-news { background: var(--blue-700) !important; color: #ffffff !important; } .t-article { background: var(--purple-600) !important; color: #ffffff !important; } .t-religious { background: var(--green-700) !important; color: #ffffff !important; }
.pc-media { position: absolute; bottom: 12px; inset-inline-end: 12px; width: 38px; height: 38px; border-radius: 50%; background: var(--gold-grad); color: var(--blue-950); display: grid; place-items: center; font-size: .85rem; }
.pc-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pc-body h3 { margin: 0; font-size: 1.12rem; line-height: 1.4; color: var(--blue-900); font-weight: 700; }
.pc-body h3[lang="en"] { font-family: var(--f-head); font-size: 1.3rem; line-height: 1.2; }
.pc-body h3[lang="dv"] { font-weight: 400; line-height: 1.75; }
.pc-body p { margin: 0; color: var(--ink-2); font-size: .9rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .78rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.pc-meta i { color: var(--gold-700); }
.pc-author { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); }
.pc-author img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: #ffffff; border: 1px solid var(--gold-200); }
.post-card.feature { grid-column: 1 / -1; flex-direction: row; }
.post-card.feature .pc-img { flex: 1.25; aspect-ratio: auto; min-height: 300px; }
.post-card.feature .pc-body { flex: 1; padding: 28px; justify-content: center; }
.post-card.feature h3 { font-size: 1.45rem; }
.post-card.feature h3[lang="en"] { font-size: 1.85rem; }

/* Religious knowledge band */
.religious { position: relative; padding: 30px; border-radius: 22px; overflow: hidden; background: var(--green-900); border: 1px solid rgba(120, 134, 180, .5); box-shadow: var(--shadow-2); }
.religious::before { content: ""; position: absolute; inset: 0; background: url("../img/geo-royal.svg") 0 0 / 150px; opacity: .35; }
.religious::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(48, 22, 92, .86), rgba(19, 66, 141, .86)); }
.religious > * { position: relative; z-index: 1; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.post-card.rel { background: rgba(255, 255, 255, .97); }

/* Posts list page */
.posts-main { padding-block: 34px 70px; }
.posts-tools { justify-content: space-between; }
.posts-tools input { max-width: 300px; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; background: #ffffff; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 26px; }
.pager button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #ffffff; font-weight: 700; color: var(--blue-900); }
.pager button.on { background: var(--blue-900); color: var(--gold-200); }
.empty { grid-column: 1 / -1; text-align: center; padding: 50px; color: var(--muted); }
.empty i { font-size: 2.6rem; color: var(--gold-400); }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }

/* Single post */
.post-hero { position: relative; min-height: 420px; display: flex; align-items: flex-end; color: #ffffff; overflow: hidden; background: var(--blue-950); }
.ph-img { position: absolute; inset: 0; background: center / cover no-repeat; transform: scale(1.03); }
.ph-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9, 35, 80, .9) 0%, rgba(9, 35, 80, .45) 45%, rgba(9, 35, 80, .1)); }
.ph-in { position: relative; padding-block: 40px 34px; }
.ph-back { display: inline-flex; gap: 8px; align-items: center; color: var(--gold-200); border: 1px solid rgba(120, 134, 180, .55); padding: 5px 14px; border-radius: 999px; font-size: .85rem; margin-bottom: 14px; background: rgba(4, 18, 48, .35); }
html[dir="rtl"] .ph-back i { transform: scaleX(-1); }
.post-hero h1 { margin: 0 0 14px; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.25; max-width: 900px; text-shadow: 0 2px 18px rgba(0, 0, 0, .4); }
.post-hero h1[lang="en"] { font-family: var(--f-head); line-height: 1.12; }
.post-hero h1[lang="dv"] { font-weight: 400; line-height: 1.7; }
.ph-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: #dee5f4; font-size: .9rem; }
.ph-meta i { color: var(--gold); margin-inline-end: 4px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; padding-block: 36px 70px; }
.post-body { background: #ffffff; border-radius: 20px; padding: clamp(20px, 4vw, 44px); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.post-lead { font-size: 1.15rem; color: var(--blue-900); font-weight: 600; border-inline-start: 4px solid var(--gold); padding-inline-start: 16px; margin: 0 0 24px; }
.rich { font-size: 1.05rem; line-height: 1.9; color: var(--ink); }
.rich[lang="dv"] { font-size: 1.12rem; line-height: 2.1; }
.rich h2, .rich h3, .rich h4 { color: var(--blue-900); margin: 1.4em 0 .5em; line-height: 1.4; }
.rich h2 { font-size: 1.5rem; } .rich h3 { font-size: 1.25rem; }
.rich[lang="dv"] h2, .rich[lang="dv"] h3 { font-weight: 400; }
.rich p { margin: 0 0 1em; }
.rich ul, .rich ol { padding-inline-start: 1.5em; margin: 0 0 1em; }
.rich li { margin-bottom: .35em; }
.rich li::marker { color: var(--gold-700); font-weight: 700; }
.rich a { color: var(--purple-600); text-decoration: underline; text-underline-offset: 3px; }
.rich img { border-radius: 12px; margin: 14px auto; box-shadow: var(--shadow-1); }
.rich blockquote { margin: 1.2em 0; padding: 16px 20px; border-inline-start: 4px solid var(--gold); background: var(--gold-50); border-radius: 10px; color: var(--blue-900); }
.rich blockquote.quran { text-align: center; border: 1px solid rgba(120, 134, 180, .5); background: linear-gradient(135deg, var(--blue-900), var(--purple-800)); color: #ffffff; font-size: 1.45rem; line-height: 2; padding: 22px 26px; position: relative; overflow: hidden; }
.rich blockquote.quran::before { content: ""; position: absolute; inset: 0; background: url("../img/geo-line.svg") 0 0 / 110px; opacity: .25; }
.rich hr { border: 0; height: 12px; background: url("../img/geo-full.svg") 0 50% / 48px repeat-x; margin: 2em 0; border-radius: 6px; opacity: .8; }
.rich table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.rich td, .rich th { border: 1px solid var(--line); padding: 8px 10px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 30px; padding-top: 20px; border-top: 1px dashed var(--line); }
.share a, .share button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory); border: 1px solid var(--line); color: var(--blue-900); }
.share button { width: auto; border-radius: 999px; padding: 0 16px; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: .85rem; }
.share a:hover, .share button:hover { background: var(--blue-900); color: var(--gold-200); }
.post-side { display: flex; flex-direction: column; gap: 20px; }
.author-card { background: #ffffff; border-radius: 18px; padding: 24px; text-align: center; border: 1px solid var(--line); border-top: 5px solid var(--gold); box-shadow: var(--shadow-1); position: sticky; top: 80px; }
.author-card img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; background: #ffffff; border: 3px solid var(--gold-200); padding: 4px; }
.author-card small { color: var(--muted); }
.author-card h4 { margin: 2px 0; color: var(--blue-900); font-size: 1.1rem; }
.author-card p { margin: 0; color: var(--purple-600); font-size: .88rem; }
.related { background: #ffffff; border-radius: 18px; padding: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.related h4 { margin: 0 0 12px; color: var(--blue-900); }
.related a { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--ink); font-size: .9rem; }
.related a:last-child { border: 0; }
.related img { width: 74px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; }
.related small { display: block; color: var(--muted); font-size: .75rem; }
.post-404 { text-align: center; margin: 60px auto; max-width: 520px; }
.post-404 i { font-size: 3rem; color: var(--gold); }
.center { text-align: center; }

/* Embedded media blocks */
.emb { margin: 26px 0; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #0d326d, #0f2f5a); padding: 8px; box-shadow: 0 0 0 2px var(--gold), 0 14px 40px rgba(7, 26, 65, .25); }
.emb figcaption { display: flex; align-items: center; gap: 10px; color: var(--gold-200); padding: 4px 6px 10px; font-weight: 600; font-size: .92rem; }
.emb figcaption span { flex: 1; }
.emb-fs { width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(120, 134, 180, .5); background: rgba(255, 255, 255, .05); color: var(--gold-200); }
.emb-fs:hover { background: var(--gold); color: var(--blue-950); }
.emb-stage { background: #000000; border-radius: 10px; overflow: hidden; }
.emb-stage iframe, .emb-stage video { width: 100%; height: 100%; border: 0; display: block; }
.emb.html .emb-stage { background: #ffffff; }
.emb.pdf .emb-stage { background: #ffffff; }
.emb:fullscreen { padding: 8px; display: flex; flex-direction: column; border-radius: 0; }
.emb:fullscreen .emb-stage { flex: 1; aspect-ratio: auto !important; }
.emb:fullscreen .emb-html { height: 100% !important; }

/* small helpers */
.gold-i { color: var(--gold); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid3 .fld.full { grid-column: 1 / -1; }
.ft-credit { opacity: .8; }

@media (max-width: 1100px) { .posts-grid { grid-template-columns: 1fr 1fr; } .post-layout { grid-template-columns: 1fr; } .author-card { position: static; } }
@media (max-width: 860px) {
  .post-card.feature { flex-direction: column; } .post-card.feature .pc-img { min-height: 0; aspect-ratio: 16/10; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .hero-arrow { display: none; }
  .hide-md { display: none !important; }
  .grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .news-grid, .rel-grid, .posts-grid { grid-template-columns: 1fr; }
  .religious { padding: 20px 16px; }
  .hero-cap { padding: 22px; margin-block: 40px 60px; }
  .lang-tabs button { padding: 3px 9px; font-size: .74rem; }
  .post-hero { min-height: 340px; }
}
html[dir="rtl"] .hero .hero-slides .slide.art { transform: scaleX(-1); }
.btn.block { margin-bottom: 0; }
.is-dv .rte-area, .rte-area[lang="dv"] { line-height: 2; font-size: 1.05rem; }
html, body { max-width: 100%; overflow-x: hidden; }
.subscribe form { flex: 1 1 280px; min-width: 0; }
@media (max-width: 640px) { .subscribe form { flex-direction: column; } .subscribe form .btn { width: 100%; } }

/* Dhivehi interface: Faruma first (Thaana, digits and punctuation), Latin words fall back to Inter */
body.is-dv { --f-body: "Faruma", "Inter", "Cairo", sans-serif; --f-head: "Faruma", "Inter", "Cairo", serif; font-family: var(--f-body); }
body.is-dv button, body.is-dv input, body.is-dv select, body.is-dv textarea { font-family: "Faruma", "Inter", sans-serif; }
body:not(.is-dv) [lang="dv"] input, [lang="dv"] { font-family: "Faruma", "Inter", sans-serif; }
.rv-wrap { grid-template-columns: minmax(0, 1fr); }
.rv-frame { min-width: 0; max-width: 100%; justify-self: center; }
.rv-bar, .rv-body { min-width: 0; }

/* =====================================================================
   v4 — MQA programme cards · page blocks (no empty areas)
   ===================================================================== */
.prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.prog-grid.home { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.prog-card { --dc1: #13428d; --dc2: #1956b3; position: relative; display: flex; flex-direction: column; background: #ffffff; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(9, 35, 80, .06), 0 18px 40px rgba(9, 35, 80, .08); transition: transform .3s, box-shadow .3s; }
.prog-card:hover { transform: translateY(-5px); box-shadow: 0 4px 10px rgba(9, 35, 80, .08), 0 26px 60px rgba(9, 35, 80, .16); }
.prog-card::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(120, 134, 180, .35); border-radius: 15px; pointer-events: none; }
.d-quran { --dc1: #30165c; --dc2: #431f82; } .d-arabic { --dc1: #13428d; --dc2: #296cca; } .d-imamate { --dc1: #0f2f5a; --dc2: #1f4d8a; }
.d-janazah { --dc1: #294268; --dc2: #476897; } .d-teaching { --dc1: #0d326d; --dc2: #431f82; } .d-special { --dc1: #4c5c91; --dc2: #6777ad; }
.pg-top { position: relative; height: 112px; background: linear-gradient(135deg, var(--dc1), var(--dc2)); color: #ffffff; padding: 16px 18px; }
.pg-top::before { content: ""; position: absolute; inset: 0; background: url("../img/geo-line.svg") 0 0 / 90px; opacity: .45; }
.pg-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold-grad); }
.pg-div { position: relative; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .85rem; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); padding: 4px 12px; border-radius: 999px; backdrop-filter: blur(3px); }
.pg-seal { position: absolute; top: 12px; inset-inline-end: 14px; width: 54px; height: 54px; display: grid; place-items: center; color: var(--gold-200); }
.pg-seal i { position: absolute; font-size: 3.3rem; color: var(--gold); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }
.pg-seal b { position: relative; font-family: "Inter", sans-serif; font-size: .62rem; letter-spacing: .06em; color: #ffffff; font-weight: 800; }
.pg-medal { position: absolute; bottom: -34px; inset-inline-start: 18px; width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e2e6f3, #b0b9d4 45%, #6777ad); box-shadow: 0 0 0 4px #ffffff, 0 8px 18px rgba(9, 35, 80, .25); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--blue-950); z-index: 2; line-height: 1; }
.pg-medal small { font-size: .58rem; font-weight: 700; opacity: .8; }
.pg-medal b { font-family: "Cormorant Garamond", serif; font-size: 1.9rem; font-weight: 700; line-height: .95; }
.pg-medal span { font-family: "Inter", sans-serif; font-size: .5rem; font-weight: 800; letter-spacing: .1em; }
.pg-medal.alt i { font-size: 1.5rem; }
.pg-body { padding: 44px 20px 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pg-qt { align-self: flex-start; font-size: .74rem; font-weight: 700; color: var(--dc1); background: color-mix(in srgb, var(--dc2) 12%, #ffffff); border: 1px solid color-mix(in srgb, var(--dc2) 30%, #ffffff); padding: 2px 10px; border-radius: 999px; }
.pg-body h3 { margin: 0; color: var(--blue-950); font-size: 1.12rem; line-height: 1.45; }
.is-dv .pg-body h3, .pg-body h3 [lang="dv"] { font-weight: 400; font-size: 1.18rem; line-height: 1.75; }
.pg-body p { margin: 0; color: var(--ink-2); font-size: .88rem; flex: 1; }
.pg-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 8px 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--ivory); }
.pg-facts > div { padding: 10px 8px; text-align: center; border-inline-end: 1px solid var(--line); }
.pg-facts > div:last-child { border-inline-end: 0; }
.pg-facts dt { font-size: .7rem; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pg-facts dt i { color: var(--gold-700); font-size: .9rem; }
.pg-facts dd { margin: 4px 0 0; font-weight: 800; color: var(--blue-900); font-size: .98rem; }
.pg-acc { font-size: .78rem; color: var(--green-700); font-weight: 600; background: #eee9f6; border-radius: 10px; padding: 6px 10px; }
.pg-foot { padding: 12px 20px 20px; }
.pg-foot .btn { width: 100%; }
/* catalogue */
.prog-banner .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.mqa-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; color: #ffffff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35); padding: 7px 16px; border-radius: 999px; font-size: .88rem; }
.mqa-link:hover { background: rgba(255, 255, 255, .22); }
.pb-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 10px; }
.pb-stats div { background: rgba(255, 255, 255, .12); border: 1px solid rgba(197, 203, 224, .5); border-radius: 16px; padding: 12px 18px; text-align: center; min-width: 96px; }
.pb-stats b { display: block; font-size: 1.8rem; color: var(--gold-200); font-family: "Inter", sans-serif; line-height: 1.1; }
.pb-stats span { font-size: .8rem; color: #e5ecf8; }
.courses-main { padding-block: 30px 60px; }
.course-tools { justify-content: space-between; align-items: flex-start; }
.ct-filters { display: flex; gap: 8px; }
.ct-filters select, .ct-filters input { border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 14px; background: #ffffff; min-width: 0; }
.prog-group { margin: 26px 0 40px; }
.pgh { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--line); position: relative; }
.pgh::after { content: ""; position: absolute; bottom: -2px; inset-inline-start: 0; width: 120px; height: 2px; background: var(--gold-grad); }
.pgh > i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #ffffff; background: linear-gradient(135deg, var(--dc1), var(--dc2)); font-size: 1.2rem; }
.pgh h2 { margin: 0; font-size: 1.5rem; color: var(--blue-950); }
.is-dv .pgh h2 { font-weight: 400; }
.pgh-n { background: var(--gold-50); border: 1px solid var(--gold-200); color: var(--gold-700); font-weight: 800; border-radius: 999px; padding: 1px 12px; font-family: "Inter", sans-serif; }
.pgh small { color: var(--muted); margin-inline-start: auto; }
/* steps */
.steps-block { margin: 50px 0 30px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; background: #ffffff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 20px 20px; text-align: center; box-shadow: var(--shadow-1); }
.steps li::before { content: ""; position: absolute; top: 46px; inset-inline-start: calc(100% - 10px); width: 38px; border-top: 2px dashed var(--gold-400); }
.steps li:last-child::before { display: none; }
.st-n { position: absolute; top: -14px; inset-inline-start: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--gold-grad); color: var(--blue-950); font-weight: 800; display: grid; place-items: center; font-family: "Inter", sans-serif; box-shadow: 0 0 0 4px #ffffff; }
html[dir="rtl"] .st-n { transform: translateX(50%); }
.steps li > i { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin: 4px auto 12px; font-size: 1.4rem; color: #ffffff; background: var(--royal-grad); }
.steps b { display: block; color: var(--blue-950); font-size: 1.02rem; margin-bottom: 4px; }
.is-dv .steps b { font-weight: 400; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .88rem; }
/* help & documents */
.apply-help { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0; }
.help-card, .docs-card { background: #ffffff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-1); height: 100%; }
.help-card { text-align: center; background: linear-gradient(160deg, #ffffff, #edf3fc); border-top: 4px solid var(--blue-700); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.help-card > i { font-size: 2rem; color: var(--blue-700); }
.help-card h4, .docs-card h4 { margin: 0; color: var(--blue-950); font-size: 1.15rem; }
.help-card p { margin: 0 0 6px; color: var(--ink-2); }
.help-card .btn { width: 100%; max-width: 320px; }
.help-card .socials a { background: var(--ivory); color: var(--blue-800); border: 1px solid var(--line); }
.docs-card { border-top: 4px solid var(--green-700); }
.docs-card h4 i { color: var(--green-700); }
.docs-card ul { list-style: none; margin: 14px 0 0; padding: 0; }
.docs-card li { padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.docs-card li:last-child { border: 0; }
.docs-card li i { color: var(--green-500); margin-inline-end: 6px; }
/* CTA & ayah bands */
.cta-band { margin: 40px 0; border-radius: 24px; overflow: hidden; position: relative; background: var(--royal-grad); color: #ffffff; box-shadow: var(--shadow-2); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: url("../img/geo-line.svg") 0 0 / 120px; opacity: .35; }
.cta-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 34px 38px; flex-wrap: wrap; }
.cta-in h3 { margin: 0 0 6px; font-size: 1.7rem; color: #ffffff; }
.is-dv .cta-in h3 { font-weight: 400; }
.cta-in p { margin: 0; color: #e5ecf8; }
.cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ayah-band { margin: 40px 0 10px; text-align: center; padding: 30px 20px; border-radius: 22px; background: #ffffff url("../img/geo-soft.svg") 0 0 / 150px; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.ayah-band p { margin: 0; font-size: 2rem; color: var(--green-900); }
.ayah-band small { color: var(--gold-700); font-size: 1rem; }
/* home sidebar extras */
.side-sticky { position: sticky; top: 74px; display: flex; flex-direction: column; gap: 20px; }
.w-prog .w-head { background: linear-gradient(90deg, var(--green-900), var(--green-700)); }
.prog-links { list-style: none; margin: 0 0 12px; padding: 0; }
.prog-links a { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px dashed var(--line); color: var(--ink); }
.prog-links a i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #e9f1fc; color: var(--blue-700); }
.prog-links a span { flex: 1; }
.prog-links b { background: var(--gold-50); color: var(--gold-700); border-radius: 999px; padding: 0 9px; font-family: "Inter", sans-serif; font-size: .8rem; }
.prog-links a:hover span { color: var(--blue-700); }
.w-ayah { text-align: center; }
.w-ayah p { font-size: 1.5rem; color: var(--green-900); margin: 6px 0 2px; line-height: 1.9; }
.w-ayah small { color: var(--gold-700); }
.post-more { padding-bottom: 20px; }
.ap-progs { margin-top: 10px; }
@media (max-width: 1100px) { .side-sticky { position: static; } .steps { grid-template-columns: 1fr 1fr; } .steps li::before { display: none; } }
@media (max-width: 860px) { .pb-stats { grid-template-columns: repeat(2, 1fr); width: 100%; } .apply-help { grid-template-columns: 1fr; } .course-tools { flex-direction: column; align-items: stretch; } .ct-filters { width: 100%; } .ct-filters input { flex: 1; } }
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .cta-in { padding: 26px 22px; } .cta-in h3 { font-size: 1.35rem; } .cta-btns, .cta-btns .btn { width: 100%; }
  .prog-grid, .prog-grid.home { grid-template-columns: 1fr; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .tabs button { flex: none; }
  .pgh h2 { font-size: 1.25rem; }
}
.author-card { position: static; }
.post-side .side-sticky { top: 80px; }
.ct-filters select { flex: 1 1 140px; } .ct-filters input { flex: 1 1 160px; }
@media (max-width: 640px) { .ct-filters { flex-wrap: wrap; } .ct-filters select, .ct-filters input { flex: 1 1 100%; } }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.duo .testi-grid { grid-template-columns: 1fr; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }
.post-layout { align-items: start; }
.main-grid > *, .duo > *, .post-layout > * { min-width: 0; }
@media (max-width: 640px) { .sec-head { flex-wrap: wrap; } .sec-head .orn { min-width: 40px; } }

/* Dhivehi calendar (dhivehi.mv) */
.w-dvcal .w-head { background: linear-gradient(90deg, var(--blue-800), var(--green-700)); }
.w-head-link { margin-inline-start: auto; color: var(--gold-200); }
.dvcal-frame { position: relative; height: 560px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--ivory); }
.dvcal-frame iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; background: transparent; }
.dvcal-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); text-align: center; padding: 20px; }
.dvcal-fallback i { font-size: 2.4rem; color: var(--gold-400); }
.dvcal-fallback a { color: var(--blue-700); font-weight: 700; text-decoration: underline; }
.dvcal-btn { margin-top: 10px; }
/* announcements widget */
.w-ann .w-head { background: linear-gradient(90deg, var(--green-900), var(--blue-800)); }
.ann-list { list-style: none; margin: 0; padding: 0; }
.ann-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.ann-list li:last-child { border: 0; }
.ann-d { flex: none; width: 48px; text-align: center; background: #e9f1fc; color: var(--blue-700); border-radius: 10px; padding: 4px 0; font-size: .64rem; line-height: 1.25; }
.ann-d b { display: block; font-size: 1.15rem; color: var(--blue-900); }
.ann-list a { color: var(--ink); }
.ann-list a:hover { color: var(--blue-700); }
.tk-item a { color: inherit; }

/* ===================== Software library ===================== */
.sw-banner { background: linear-gradient(135deg, #092350 0%, #0d326d 45%, #30165c 100%); }
.sw-banner .pb-stats { grid-template-columns: repeat(3, auto); }
.sw-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-200); font-family: "Inter", sans-serif; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.sw-kicker i { color: var(--gold); }
.sw-main { padding-top: 34px; padding-bottom: 50px; }
.sw-spot { margin-bottom: 30px; }
.sw-spot .sec-head h2 i { color: var(--gold); font-size: .8em; }
.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; margin-bottom: 18px; }
.sw-grid.feat { grid-template-columns: repeat(3, 1fr); }
.tn { display: inline-block; min-width: 1.6em; padding: 0 .4em; margin-inline-start: 4px; border-radius: 999px; background: rgba(9, 35, 80, .08); font-family: "Inter", sans-serif; font-size: .75em; text-align: center; }
.tabs button.on .tn { background: rgba(255, 255, 255, .25); }

.sw-card { --sc1: #0d326d; --sc2: #3475d7; position: relative; display: flex; flex-direction: column; background: #ffffff; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(9, 35, 80, .06), 0 18px 44px rgba(9, 35, 80, .1); transition: transform .3s, box-shadow .3s; min-width: 0; }
.sw-card:hover { transform: translateY(-6px); box-shadow: 0 4px 12px rgba(9, 35, 80, .1), 0 30px 64px rgba(9, 35, 80, .18); }
.sw-card::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(120, 134, 180, .4); border-radius: 16px; pointer-events: none; }
.sw-card.is-feat { border-color: rgba(120, 134, 180, .6); }
.sw-top { position: relative; height: 128px; background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, .25), transparent 55%), linear-gradient(135deg, var(--sc1), var(--sc2)); color: #ffffff; padding: 16px 18px; }
.sw-top::before { content: ""; position: absolute; inset: 0; background: url("../img/geo-line.svg") 0 0 / 88px; opacity: .4; }
.sw-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold-grad); }
.sw-cat, .sw-st, .sw-no { position: relative; z-index: 1; }
.sw-cat { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .8rem; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .32); padding: 4px 12px; border-radius: 999px; backdrop-filter: blur(3px); }
.sw-st { position: absolute; top: 16px; inset-inline-end: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; background: #ffffff; color: var(--green-900); padding: 4px 11px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.sw-st i { width: 8px; height: 8px; border-radius: 50%; background: #5e2fae; box-shadow: 0 0 0 3px rgba(94, 47, 174, .25); animation: swp 1.8s infinite; }
.st-beta .sw-st { color: var(--blue-800); } .st-beta .sw-st i { background: var(--blue-500); box-shadow: 0 0 0 3px rgba(52, 117, 215, .25); }
.st-soon .sw-st { color: var(--gold-700); } .st-soon .sw-st i { background: var(--gold); box-shadow: 0 0 0 3px rgba(120, 134, 180, .25); animation: none; }
@keyframes swp { 50% { box-shadow: 0 0 0 6px rgba(94, 47, 174, 0); } }
.sw-no { position: absolute; bottom: 14px; inset-inline-start: 18px; font-family: "Cormorant Garamond", serif; font-size: .95rem; font-weight: 700; letter-spacing: .08em; color: rgba(255, 255, 255, .85); }
.sw-emb { position: absolute; left: 50%; bottom: -42px; transform: translateX(-50%); z-index: 2; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--sc1), var(--sc2)); color: #ffffff; font-size: 2.1rem; border: 4px solid #ffffff; box-shadow: 0 0 0 3px var(--gold), 0 10px 24px rgba(9, 35, 80, .3); }
.sw-emb::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed rgba(188, 195, 219, .7); }
.sw-body { padding: 54px 24px 6px; text-align: center; flex: 1; }
.sw-feat { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: var(--gold-700); background: var(--gold-50); border: 1px solid var(--gold-200); padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.sw-body h3 { margin: 0 0 4px; font-size: 1.25rem; color: var(--blue-950); line-height: 1.35; }
body.is-en .sw-body h3 { font-family: var(--f-head); font-size: 1.45rem; }
.sw-tag { margin: 0 0 10px; color: var(--gold-700); font-weight: 600; font-size: .9rem; }
.sw-desc { margin: 0 0 14px; color: var(--muted); font-size: .9rem; line-height: 1.75; }
.sw-feats { list-style: none; margin: 0; padding: 12px 14px; text-align: start; background: linear-gradient(180deg, #f6f8fd, #edf3fc); border: 1px solid #e0e9f6; border-radius: 14px; }
.sw-feats li { display: flex; gap: 9px; align-items: flex-start; font-size: .86rem; color: var(--ink); padding: 4px 0; line-height: 1.6; }
.sw-feats li + li { border-top: 1px dashed #d5dfef; }
.sw-feats i { color: var(--green-500); margin-top: .3em; flex: none; }
.sw-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 22px 10px; position: relative; z-index: 1; }
.sw-foot .btn { justify-content: center; padding-inline: 10px; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-off { background: #eef0f5; color: #6a7891; cursor: default; }
.sw-seal { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 0 16px; font-family: "Inter", sans-serif; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #8995ac; position: relative; z-index: 1; }
.sw-seal img { width: 18px; height: 18px; object-fit: contain; opacity: .8; }
.sw-more { text-align: center; color: var(--muted); margin: 6px 0 34px; }
.sw-more i { color: var(--gold); }
.sw-why { background: #ffffff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; margin-bottom: 26px; box-shadow: 0 10px 30px rgba(9, 35, 80, .06); }
.sw-why h2 { text-align: center; margin: 0 0 22px; color: var(--blue-900); font-family: var(--f-head); }
body.is-dv .sw-why h2 { font-size: 1.4rem; }
.sw-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sw-why-grid > div { text-align: center; padding: 18px 14px; border-radius: 16px; background: linear-gradient(180deg, #f5f8fd, #ffffff); border: 1px solid #e2ebf7; }
.sw-why-grid i { width: 56px; height: 56px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--royal-grad); color: #ffffff; font-size: 1.3rem; box-shadow: 0 0 0 3px var(--gold-200); }
.sw-why-grid h3 { margin: 12px 0 6px; font-size: 1rem; color: var(--blue-900); }
.sw-why-grid p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.7; }
.sw-licence { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, #092350, #0d326d 55%, #30165c); color: #ffffff; border-radius: 22px; padding: 26px 30px; position: relative; overflow: hidden; }
.sw-licence::before { content: ""; position: absolute; inset: 0; background: url("../img/geo-line.svg") 0 0 / 100px; opacity: .25; }
.sw-licence > * { position: relative; }
.sw-licence > div:first-child { display: flex; gap: 16px; align-items: center; }
.sw-licence > div:first-child > i { font-size: 2.2rem; color: var(--gold); }
.sw-licence h3 { margin: 0 0 4px; color: var(--gold-200); }
.sw-licence p { margin: 0; color: #dbe4f3; font-size: .9rem; }
.sw-lic-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Home: software band */
.sw-band { background: linear-gradient(135deg, #092350 0%, #0d326d 50%, #30165c 100%); padding: 60px 0 54px; position: relative; overflow: hidden; }
.sw-band::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg"); background-size: 140px; opacity: .45; }
.sw-band .wrap { position: relative; }
.sw-band .sw-lead { color: #d4dff0; margin: -10px 0 26px; max-width: 760px; }
.sw-band .sw-grid { grid-template-columns: repeat(3, 1fr); }
.sw-band-foot { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.sw-band-foot .sw-chip { color: #e5ecf8; background: rgba(255, 255, 255, .1); border: 1px solid rgba(197, 203, 224, .45); padding: 8px 16px; border-radius: 999px; font-size: .86rem; }
.sw-band-foot .sw-chip b { color: var(--gold-200); font-family: "Inter", sans-serif; }
.nav-sw > a { color: #c4cbe2 !important; font-weight: 700; }
.nav-sw > a i { color: #adb7d7; }

@media (max-width: 980px) { .sw-grid.feat, .sw-band .sw-grid { grid-template-columns: 1fr 1fr; } .sw-why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .sw-grid, .sw-grid.feat, .sw-band .sw-grid { grid-template-columns: minmax(0, 1fr); } .sw-why-grid { grid-template-columns: 1fr; } .sw-why { padding: 22px 16px; } .sw-licence { padding: 22px 18px; } .sw-banner .pb-stats { grid-template-columns: repeat(3, 1fr); } .sw-band .sw-grid > :nth-child(n+4) { display: none; } }

/* ===================== Lesson showcase (home) ===================== */
.showcase { position: relative; overflow: hidden; padding: 54px 0 46px; background: radial-gradient(1200px 500px at 85% -10%, rgba(120, 134, 180, .22), transparent 60%), linear-gradient(135deg, #061531 0%, #092350 40%, #251148 100%); color: #ffffff; }
.showcase::before { content: ""; position: absolute; inset: 0; background: url("../img/geo-line.svg") 0 0 / 120px; opacity: .14; animation: scDrift 60s linear infinite; }
@keyframes scDrift { to { background-position: 240px 120px; } }
.sc-bg span { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; animation: scFloat 14s ease-in-out infinite; }
.sc-bg span:nth-child(1) { width: 220px; height: 220px; top: -60px; left: 8%; background: radial-gradient(circle, rgba(94, 47, 174, .35), transparent 70%); }
.sc-bg span:nth-child(2) { width: 300px; height: 300px; bottom: -120px; right: 12%; background: radial-gradient(circle, rgba(52, 117, 215, .35), transparent 70%); animation-delay: -4s; }
.sc-bg span:nth-child(3) { width: 140px; height: 140px; top: 30%; right: 40%; background: radial-gradient(circle, rgba(120, 134, 180, .35), transparent 70%); animation-delay: -8s; }
.sc-bg span:nth-child(4), .sc-bg span:nth-child(5), .sc-bg span:nth-child(6) { width: 6px; height: 6px; background: #bcc3db; opacity: .7; filter: none; animation: scTwinkle 3s ease-in-out infinite; }
.sc-bg span:nth-child(4) { top: 18%; left: 30%; } .sc-bg span:nth-child(5) { top: 70%; left: 62%; animation-delay: -1s; } .sc-bg span:nth-child(6) { top: 40%; left: 85%; animation-delay: -2s; }
@keyframes scFloat { 50% { transform: translate(30px, -24px) scale(1.08); } }
@keyframes scTwinkle { 50% { opacity: .1; transform: scale(.4); } }
.showcase .wrap { position: relative; z-index: 1; }
.sc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.sc-kicker { display: inline-flex; gap: 8px; align-items: center; color: #bcc3db; background: rgba(120, 134, 180, .14); border: 1px solid rgba(120, 134, 180, .5); padding: 4px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.sc-head h2 { margin: 10px 0 6px; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.35; background: linear-gradient(90deg, #ffffff, #bcc3db); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.is-dv .sc-head h2 { font-size: clamp(1.25rem, 2.6vw, 1.75rem); }
.sc-head p { margin: 0; color: #cedaed; max-width: 680px; font-size: .95rem; line-height: 1.8; }
.sc-tabs, .sc-kinds { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.sc-tabs button, .sc-kinds button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(197, 203, 224, .35); background: rgba(255, 255, 255, .06); color: #e5ecf8; padding: 7px 16px; border-radius: 999px; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; transition: .2s; }
.sc-tabs button:hover, .sc-kinds button:hover { background: rgba(255, 255, 255, .12); }
.sc-tabs button.on { background: var(--gold-grad); color: var(--blue-950); border-color: transparent; box-shadow: 0 6px 18px rgba(120, 134, 180, .35); }
.sc-kinds button { font-size: .8rem; padding: 5px 12px; }
.sc-kinds button.on { background: #ffffff; color: var(--blue-900); }
.sc-kinds .n { background: rgba(0, 0, 0, .15); border-radius: 999px; padding: 0 7px; font-family: Inter, sans-serif; font-size: .72rem; }
.sc-stage { position: relative; margin-top: 8px; }
.sc-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 14px 4px 24px; scrollbar-width: none; perspective: 1200px; }
.sc-track::-webkit-scrollbar { display: none; }
.sc-arrow { position: absolute; top: 42%; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(197, 203, 224, .6); background: rgba(6, 21, 49, .75); color: #ffffff; cursor: pointer; backdrop-filter: blur(6px); transition: .2s; }
.sc-arrow:hover { background: var(--gold); color: var(--blue-950); }
.sc-arrow.prev { left: -14px; } .sc-arrow.next { right: -14px; }
html[dir="rtl"] .sc-arrow i { transform: scaleX(-1); }
.sc-card { --c1: #092350; --c2: #1956b3; --rx: 0deg; --ry: 0deg; flex: 0 0 290px; scroll-snap-align: start; background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: 20px; overflow: hidden; cursor: pointer; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s, box-shadow .25s; animation: scIn .6s both; outline: none; border: 1px solid rgba(120, 134, 180, .45); }
.sc-card:hover, .sc-card:focus-visible { box-shadow: 0 26px 60px rgba(0, 0, 0, .45), 0 0 0 2px var(--gold); }
@keyframes scIn { from { opacity: 0; transform: translateY(26px) scale(.96); } }
.sc-thumb { position: relative; height: 162px; background: linear-gradient(135deg, var(--c1), var(--c2)); overflow: hidden; }
.sc-thumb::before { content: ""; position: absolute; inset: 0; background: url("../img/geo-line.svg") 0 0 / 80px; opacity: .3; }
.sc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.sc-card:hover .sc-thumb img { transform: scale(1.07); }
.sc-art { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; color: rgba(255, 255, 255, .9); text-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.sc-thumb img + .sc-art { display: none; }
.sc-kind { position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; gap: 6px; align-items: center; background: rgba(6, 21, 49, .78); color: #ffffff; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; backdrop-filter: blur(4px); }
.sc-time { position: absolute; bottom: 10px; inset-inline-end: 10px; background: var(--gold-grad); color: var(--blue-950); padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.sc-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--blue-900); font-size: 1.2rem; box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); animation: scPulse 2.4s infinite; opacity: 0; transition: opacity .25s; }
.sc-card:hover .sc-play, .k-video .sc-play { opacity: 1; }
@keyframes scPulse { 70% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.sc-body { padding: 14px 16px 16px; }
.sc-body small { color: var(--green-700); font-weight: 700; font-size: .78rem; }
.sc-body h3 { margin: 6px 0 4px; font-size: 1.02rem; line-height: 1.5; color: var(--blue-950); min-height: 3em; }
.sc-body p { margin: 0 0 8px; font-size: .82rem; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px dashed var(--line); padding-top: 10px; }
.sc-price { font-family: Inter, sans-serif; font-weight: 800; color: var(--blue-900); font-size: .95rem; }
.sc-price.big { font-size: 1.5rem; color: var(--gold-700); }
.btn.sm { padding: .45em .9em; font-size: .82rem; }
.sc-dots { display: flex; justify-content: center; gap: 7px; margin: 2px 0 18px; }
.sc-dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .35); cursor: pointer; transition: .3s; padding: 0; }
.sc-dots button.on { width: 28px; background: var(--gold); }
.sc-steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; counter-reset: sc; }
.sc-steps li { position: relative; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(197, 203, 224, .25); border-radius: 14px; padding: 10px 12px; font-size: .82rem; counter-increment: sc; }
.sc-steps li i { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(120, 134, 180, .2); color: #bcc3db; }
.sc-steps li::after { content: counter(sc); position: absolute; top: -8px; inset-inline-end: 10px; background: var(--gold); color: var(--blue-950); width: 18px; height: 18px; border-radius: 50%; font: 800 .65rem Inter, sans-serif; display: grid; place-items: center; }
/* preview window */
.sc-modal { width: min(1000px, 100%) !important; }
.sc-pv { padding: 16px; }
.sc-pv-h { display: flex; align-items: center; gap: 10px; margin: 0 30px 10px 0; flex-wrap: wrap; }
html[dir="rtl"] .sc-pv-h { margin: 0 0 10px 30px; }
.sc-pv-h .sc-kind { position: static; }
.sc-pv-h h3 { margin: 0; flex: 1; font-size: 1.1rem; color: var(--blue-950); }
.sc-new { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; background: linear-gradient(135deg, #d92d20, #f04438); color: #ffffff; font-size: .72rem; font-weight: 800; padding: 4px 11px; border-radius: 999px; box-shadow: 0 6px 16px rgba(217, 45, 32, .45); animation: scNew 2.2s ease-in-out infinite; }
@keyframes scNew { 50% { transform: scale(1.07); } }
.sc-badge { background: var(--gold-50); color: var(--gold-700); border: 1px solid var(--gold-200); padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.sc-pv-stage { position: relative; height: min(62vh, 560px); border-radius: 14px; overflow: hidden; background: #09162c; }
.sc-pv-in { position: absolute; inset: 0; }
.sc-pv-in .sv-slide { width: 100%; height: 100%; border: 0; background: #ffffff; }
.sc-pv-in .vid { position: absolute; inset: 0; }
.sc-pv-in .vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.sc-cover { position: absolute; inset: 0; z-index: 2; }
.sc-pv-wm { position: absolute; inset: 0; pointer-events: none; z-index: 4; background-repeat: repeat; }
.sc-blur .sc-pv-in { filter: blur(30px); }
.sc-pv-end { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; color: #ffffff; padding: 20px; background: radial-gradient(circle at 50% 30%, rgba(120, 134, 180, .25), transparent 60%), #09162c; }
.sc-pv-end[hidden] { display: none; }
.sc-pv-end i { font-size: 2.4rem; color: var(--gold); }
.sc-pv-end h4 { margin: 4px 0 0; font-size: 1.2rem; } .sc-pv-end p { margin: 0 0 10px; color: #cedaed; }
.sc-pv-bar { position: relative; height: 6px; background: #e6ecf5; border-radius: 999px; margin: 10px 0 0; overflow: visible; }
.sc-pv-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gold-grad); border-radius: 999px; transition: width 1s linear; }
html[dir="rtl"] .sc-pv-fill { inset: 0 0 0 auto; }
.sc-pv-left { position: absolute; top: 9px; inset-inline-end: 0; font: 700 .75rem Inter, sans-serif; color: var(--muted); }
.sc-pv-cta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.sc-cta-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-pdf { position: absolute; inset: 0; overflow: auto; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; background: #5a6477; }
.sc-pg { position: relative; width: min(760px, 100%); background: #ffffff; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.sc-pg img { display: block; width: 100%; pointer-events: none; -webkit-user-drag: none; }
.sc-pg span { position: absolute; bottom: 6px; inset-inline-end: 10px; font: 700 .7rem Inter, sans-serif; color: #888899; }
.sc-pg.more { padding: 30px 20px; text-align: center; background: linear-gradient(180deg, #ffffff, #f3f5fa); }
.sc-pg.more i { font-size: 2rem; color: var(--gold-700); } .sc-pg.more h4 { margin: 8px 0 4px; }
/* subscribe & status */
.sc-sub-h { text-align: center; margin-bottom: 14px; }
.sc-sub-h .sc-kind { position: static; display: inline-flex; }
.sc-sub-h h2 { margin: 10px 0 2px; color: var(--blue-950); }
.sc-sub-h small { color: var(--muted); }
.sc-st-ico { font-size: 2rem; color: var(--gold-700); }
.sc-h4 { margin: 18px 0 8px; color: var(--blue-900); display: flex; gap: 8px; align-items: center; }
.sc-warn { display: flex; gap: 12px; background: linear-gradient(135deg, #edf0f8, #f9f9fc); border: 1.5px solid #a5afd0; border-radius: 16px; padding: 14px 16px; }
.sc-warn > i { font-size: 1.6rem; color: #566cb2; margin-top: 4px; }
.sc-warn p { margin: 0 0 6px; font-size: .88rem; line-height: 1.85; color: #30244b; }
.sc-warn p[lang="ar"] { font-family: "Cairo", sans-serif; }
.sc-call { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; justify-content: center; }
.btn-wa { background: #25d366; color: #ffffff; } .btn-wa:hover { background: #1ebe5b; }
.btn-viber { background: #7360f2; color: #ffffff; }
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #ffffff; box-shadow: 0 4px 14px rgba(9, 35, 80, .06); }
.bk-card.bml { border-inline-start: 4px solid #e53935; } .bk-card.mib { border-inline-start: 4px solid #381a6d; }
.bk-logo { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #f4f6f9; overflow: hidden; box-shadow: 0 2px 8px rgba(9, 35, 80, .14); border: 1px solid #e3e7ef; }
.bk-logo:has(img) { background: #ffffff; }
.bk-logo img { width: 100%; height: 100%; object-fit: contain; }
.bk-logo img + b { display: none; }
.bk-logo b { font: 800 .95rem Inter, sans-serif; letter-spacing: .04em; }
.bk-bml b { color: #c62828; } .bk-mib b { color: #381a6d; }
.bk-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bk-t small { color: var(--muted); font-size: .74rem; }
.bk-t b { font: 800 1.02rem Inter, sans-serif; color: var(--blue-950); letter-spacing: .03em; word-break: break-all; }
@media (max-width: 480px) { .bk-t b { white-space: nowrap; word-break: normal; letter-spacing: 0; font-size: clamp(.9rem, 4.6vw, 1.1rem); } .bk-logo { width: 48px; height: 48px; } }
.bk-t span { font-size: .74rem; color: var(--ink-2); }
.sc-done { text-align: center; padding: 20px 6px; }
.sc-done > i { font-size: 3rem; color: #5e2fae; }
.sc-ref { display: inline-block; margin: 6px 0 4px; background: var(--gold-50); border: 1px dashed var(--gold); border-radius: 10px; padding: 6px 14px; font-family: Inter, sans-serif; }
.sc-who { display: flex; flex-direction: column; gap: 2px; margin: 14px 0 8px; padding: 10px 12px; background: #f3f6fb; border-radius: 12px; }
.sc-who small { color: var(--muted); }
.sc-req { border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 10px; background: #ffffff; }
.sc-req-h { display: flex; gap: 10px; align-items: center; }
.sc-req-h .sc-kind { position: static; width: 36px; height: 36px; justify-content: center; padding: 0; }
.sc-req-h > div { flex: 1; min-width: 0; } .sc-req-h b { display: block; } .sc-req-h small { color: var(--muted); font-size: .76rem; }
.sc-pill { padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; background: #eef1f7; color: var(--ink-2); white-space: nowrap; }
.st-new .sc-pill { background: #edf3fc; color: var(--blue-800); }
.st-ok .sc-pill, .st-confirmed .sc-pill { background: #e2e6f3; color: #465a9b; }
.st-paid .sc-pill { background: #ede7fb; color: #5b3fb0; }
.st-act .sc-pill, .st-active .sc-pill { background: #eae3f5; color: var(--green-900); }
.st-rej .sc-pill, .st-rejected .sc-pill { background: #fde8e8; color: #9b2c2c; }
.sc-req-msg { margin: 8px 0; font-size: .86rem; color: var(--ink-2); line-height: 1.8; }
.sc-amount { margin: 6px 0 8px; font-size: .9rem; } .sc-amount b { font-family: Inter, sans-serif; color: var(--gold-700); font-size: 1.1rem; }
.sc-slip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.sc-slip-row label.btn { cursor: pointer; }
.sc-slips small { display: block; margin: 10px 0 4px; color: var(--muted); }
.sc-slip-imgs { display: flex; gap: 6px; flex-wrap: wrap; }
.sc-slip { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #eef1f7; cursor: zoom-in; border: 1px solid var(--line); }
.sc-slip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .sc-steps { grid-template-columns: repeat(2, 1fr); } .sc-arrow { display: none; } }
@media (max-width: 640px) { .showcase { padding: 38px 0 32px; } .sc-card { flex-basis: 78vw; } .bk-grid { grid-template-columns: 1fr; } .sc-pv-stage { height: 56vh; } .sc-steps { grid-template-columns: 1fr; } .sc-pv { padding: 10px; } }
/* application form: document uploads */
.ap-file { display: flex; align-items: center; gap: 8px; }
.ap-file-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 1.5px dashed #b7c2d5; border-radius: 12px; padding: 11px 14px; background: #f8fafc; color: var(--blue-900); cursor: pointer; font-size: .9rem; transition: .15s; }
.ap-file-btn:hover { border-color: var(--gold); background: var(--gold-50); }
.ap-file-btn .af-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-file.has .ap-file-btn { border-style: solid; border-color: #b29fd3; background: #f2eefa; color: var(--green-900); }
.af-ok { color: var(--green-700); font-size: 1.2rem; }
.ap-file-btn i { color: var(--gold-700); font-size: 1.1rem; }
.fld.invalid .ap-file-btn { border-color: #d92d20; background: #fff5f4; }
.ap-declare { padding: 12px 14px; border: 1px solid var(--gold-200); background: var(--gold-50); border-radius: 12px; line-height: 1.7; }
/* student portal entry points */
.tb-login { background: var(--gold-grad); color: var(--blue-950) !important; font-weight: 800; border-color: transparent; box-shadow: 0 2px 10px rgba(120, 134, 180, .45); }
.tb-login:hover { filter: brightness(1.06); }
.menu > li.nav-sp > a { background: linear-gradient(135deg, #30165c, #431f82); color: #ffffff; }
.sp-band { padding: 34px 0 10px; }
.sp-band .wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 22px; align-items: center; }
.sp-kick { display: inline-flex; gap: 8px; align-items: center; background: var(--gold-50); color: var(--gold-700); border: 1px solid var(--gold-200); padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: .82rem; }
.sp-intro h2 { margin: 10px 0 6px; color: var(--blue-950); font-family: var(--f-head); font-size: 1.9rem; line-height: 1.2; }
body.is-dv .sp-intro h2 { font-size: 1.4rem; line-height: 1.8; }
.sp-intro p { margin: 0; color: var(--muted); }
.sp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sp-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 20px; color: #ffffff; box-shadow: var(--shadow-2); position: relative; overflow: hidden; border: 1px solid rgba(120, 134, 180, .55); transition: .2s; }
.sp-card:hover { transform: translateY(-4px); }
.sp-card.st { background: linear-gradient(135deg, #092350, #1956b3); }
.sp-card.lc { background: linear-gradient(135deg, #241046, #431f82); }
.sp-card::after { content: ""; position: absolute; width: 180px; height: 180px; inset: auto -50px -70px auto; border-radius: 50%; background: radial-gradient(circle, rgba(188, 195, 219, .22), transparent 70%); }
.sp-ico { width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--gold-grad); color: var(--blue-950); font-size: 1.4rem; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.sp-card h3 { margin: 0 0 4px; font-size: 1.2rem; color: #ffffff; }
.sp-card p { margin: 0 0 12px; color: #dae4f4; font-size: .86rem; }
@media (max-width: 900px) { .sp-band .wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .sp-cards { grid-template-columns: 1fr; } }
/* academic calendar */
.acal-main { padding: 26px 16px 40px; max-width: 980px; }
.acal-full { min-height: 200px; }
.acal-mini { font-size: 12px; }
.acal-mini > div { padding: 6px !important; }
.acal-more { margin-top: 8px; }
.acal-mini details summary, .acal-full details summary { cursor: pointer; }
@media (min-width: 981px) and (max-width: 1440px) { .menu > li > a, .nav-top { padding-left: 12px; padding-right: 12px; } }

/* ---------- readable notices & announcements (long Dhivehi text, emoji points, links) ---------- */
.nt { display: flex; flex-direction: column; gap: 6px; }
.nt[lang="dv"] { font-family: var(--f-dv); font-size: 1rem; line-height: 1.95; }
.nt[lang="ar"] { font-family: var(--f-arui); line-height: 1.9; }
.nt-ln { display: block; overflow-wrap: anywhere; word-break: normal; }
.nt-link { display: inline-block; max-width: 100%; direction: ltr; unicode-bidi: isolate; font-family: Inter, sans-serif; font-size: .82rem; font-weight: 600; color: var(--blue-700); background: rgba(25, 86, 179, .08); padding: 0 8px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
#notice-text { max-height: 260px; overflow: hidden; position: relative; transition: max-height .3s; }
#notice-text::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 46px; background: linear-gradient(transparent, #f1f3f8); pointer-events: none; }
#notice-text.nt-open { max-height: 4000px; }
#notice-text.nt-open::after { display: none; }
.w-notice p#notice-text { font-weight: 400; }
.nt-more { display: block; margin: 8px auto 0; border: 1px solid var(--gold-200); background: #ffffff; color: var(--gold-700); border-radius: 999px; padding: 3px 16px; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.ann-list li { align-items: flex-start; }
.ann-tx { flex: 1; min-width: 0; display: flex; gap: 6px; align-items: flex-start; }
.ann-tx .nt.clamp { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.ann-tx .nt.clamp.open { -webkit-line-clamp: unset; display: flex; }
.ann-tx .nt.clamp .nt-ln { display: inline; }
.ann-tx .nt.clamp .nt-ln + .nt-ln::before { content: " · "; color: var(--gold); }
.ann-tx .nt.clamp.open .nt-ln { display: block; }
.ann-tx .nt.clamp.open .nt-ln + .nt-ln::before { content: none; }
.ann-go { flex: none; color: var(--blue-700); font-size: .8rem; padding-top: 4px; }
.menu > li.nav-lib > a { background: linear-gradient(135deg, #241046, #431f82); color: #ffffff !important; font-weight: 700; box-shadow: inset 0 -3px 0 var(--gold); }
.menu > li.nav-lib > a i { color: var(--gold-200); }
.sc-card { position: relative; }
.sc-shl { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 4; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(9, 35, 80, .78); color: #ffffff; border: 1px solid rgba(188, 195, 219, .6); cursor: pointer; font-size: .85rem; transition: .2s; }
.sc-shl:hover { background: var(--gold); color: var(--blue-950); }

/* ===== software card: own pictures ===== */
.sw-top.has-bn { background-image: linear-gradient(135deg, color-mix(in srgb, var(--sc1) 78%, transparent), color-mix(in srgb, var(--sc2) 55%, transparent)), var(--sbn); background-size: cover; background-position: center; }
.sw-top.has-bn::before { opacity: .18; }
.sw-emb.has-logo { background: #ffffff; }
.sw-emb.has-logo::after { border-color: rgba(120, 134, 180, .55); }
.sw-emb img { width: 70%; height: 70%; object-fit: contain; border-radius: 8px; position: relative; z-index: 1; }

/* ===== software banner designer (portal) ===== */
.swa-hero { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(135deg, #092350, #0d326d 55%, #30165c); color: #ffffff; border-radius: 18px; padding: 20px 22px; margin-bottom: 18px; position: relative; overflow: hidden; }
.swa-hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: var(--gold-grad); }
.swa-hero h2 { margin: 0 0 4px; color: var(--gold-200); font-size: 1.3rem; display: flex; gap: 10px; align-items: center; }
.swa-hero p { margin: 0 0 4px; opacity: .9; max-width: 640px; }
.swa-hero small { opacity: .75; }
.swa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.swa-item { position: relative; display: flex; flex-direction: column; gap: 10px; }
.swa-item.off .sw-card { opacity: .5; filter: grayscale(.6); }
.swa-hid { position: absolute; top: 10px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 5; background: #394358; color: #ffffff; font-size: .75rem; padding: 3px 12px; border-radius: 999px; }
[dir="rtl"] .swa-hid { transform: translateX(50%); }
.swa-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.swa-acts > button:not(.btn) { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #ffffff; color: var(--ink-2); cursor: pointer; }
.swa-acts > button:not(.btn):hover:not(:disabled) { border-color: var(--gold); color: var(--gold-700); }
.swa-acts > button:disabled { opacity: .35; cursor: default; }
.swa-acts > button.danger { color: #b3263c; }
.swe-modal { width: min(1180px, 96vw) !important; max-width: none !important; }
.swe-head { padding-inline-end: 46px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.swe-head h2 { margin: 0; }
.swe-head > div { display: flex; gap: 8px; }
.swe-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.swe-form section { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; background: #ffffff; }
.swe-form h3 { margin: 0 0 10px; font-size: 1rem; color: var(--blue-950); display: flex; gap: 8px; align-items: center; }
.swe-form h3 i { color: var(--gold); }
.swe-lang { margin-bottom: 10px; }
.swe-prev { position: sticky; top: 8px; background: var(--ivory); border: 1px dashed var(--gold-200); border-radius: 16px; padding: 14px; }
.swe-prev h3 { margin: 0 0 10px; font-size: .95rem; color: var(--gold-700); }
.swe-cols { display: flex; gap: 8px; flex-wrap: wrap; }
.swe-cols button { width: 40px; height: 40px; border-radius: 12px; border: 3px solid #ffffff; box-shadow: 0 0 0 1px var(--line); background: linear-gradient(135deg, var(--a), var(--b)); cursor: pointer; }
.swe-cols button.cu { background: conic-gradient(#c8102e, #7886b4, #5e2fae, #3475d7, #5674d6, #c8102e); color: #ffffff; }
.swe-cols button.on { box-shadow: 0 0 0 3px var(--gold); }
.swe-cu { display: flex; gap: 14px; margin-top: 8px; }
.swe-cu[hidden] { display: none; }
.swe-cu input { width: 54px; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: #ffffff; }
.swe-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; max-height: 150px; overflow: auto; padding: 4px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 6px; }
.swe-icons button { height: 40px; border-radius: 10px; border: 1px solid transparent; background: var(--ivory); color: var(--blue-900); cursor: pointer; font-size: 1.05rem; }
.swe-icons button.on { background: var(--gold-grad); color: var(--blue-950); }
.swe-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.swe-thumb { height: 90px; border-radius: 12px; border: 1px dashed var(--line); display: grid; place-items: center; background: var(--ivory); color: var(--muted); font-size: 1.6rem; overflow: hidden; margin-bottom: 6px; }
.swe-thumb img { width: 100%; height: 100%; object-fit: contain; }
.swe-thumb.banner img { object-fit: cover; }
.swe-ib { display: flex; gap: 6px; flex-wrap: wrap; }
.swe-ib [hidden] { display: none; }
@media (max-width: 900px) {
  .swe-grid { grid-template-columns: minmax(0, 1fr); }
  .swe-prev { position: static; order: -1; }
  .swe-imgs { grid-template-columns: minmax(0, 1fr); }
}

/* ===== even columns on the home page ===== */
#main-fill { display: flex; flex-direction: column; gap: 26px; margin-top: 26px; }
#main-fill > .block { margin: 0; }
#main-fill .mf-widgets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; align-items: start; }
#main-fill .mf-widgets > [data-links] { display: contents; }

/* ===== link groups (portal → Links) ===== */
.w-links-g .links i { margin-inline-end: 6px; color: var(--gold-700); }
.lk-top { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 18px; align-items: start; }
.lk-g.off { opacity: .55; }
.lk-gh { display: flex; gap: 12px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.lk-gi { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--royal-grad); color: #fff; font-size: 1.1rem; }
.lk-gt { flex: 1; min-width: 0; }
.lk-gt b { display: block; }
.lk-gt small { color: var(--muted); font-size: .78rem; }
.lk-acts { display: flex; gap: 4px; flex-wrap: wrap; }
.lk-acts button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.lk-acts button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-700); }
.lk-acts button:disabled { opacity: .35; cursor: default; }
.lk-acts button.danger { color: #b3263c; }
.lk-acts.sm button { width: 28px; height: 28px; font-size: .8rem; }
.lk-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.lk-list li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--ivory); }
.lk-list li > i { width: 20px; text-align: center; color: var(--blue-700); }
.lk-list li > div { flex: 1; min-width: 0; }
.lk-list li b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-list li small { display: block; color: var(--muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-list li.muted { color: var(--muted); font-size: .85rem; }
.lk-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lk-form .seg label { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; cursor: pointer; }
.lk-icons { max-height: 130px; }
@media (max-width: 700px) { .lk-3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- ID card reader (OCR) ---------- */
.ocr .ocr-in { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.ocr-pv { display: grid; gap: 6px; margin: 8px 0 12px; }
.ocr-pv img { max-height: 220px; width: auto; max-width: 100%; border-radius: 12px; box-shadow: var(--shadow-1); justify-self: center; }
.ocr-bar { height: 8px; background: var(--line); border-radius: 8px; overflow: hidden; }
.ocr-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green-700), var(--gold)); transition: width .3s; }
.ocr-miss { color: #b45309; font-size: .75rem; }
.ocr-raw pre { white-space: pre-wrap; font-size: .78rem; max-height: 180px; overflow: auto; background: var(--ivory); padding: 8px; border-radius: 8px; }
.ocr-filled { background: #f0faf4 !important; border-color: #7cc79f !important; }

/* ---------- applicant status (royal card) ---------- */
.ap-mystatus { padding: 22px; }
.ms-form { display: grid; grid-template-columns: 1fr 1fr 1.6fr auto; gap: 12px; align-items: end; }
.ms-dob { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ms-dob select, .ms-dob input { flex: 1 1 80px; min-width: 70px; }
.ms-card { margin-top: 20px; padding: 10px; border-radius: 22px; background: linear-gradient(135deg, #000f46, #0b6b45 55%, #4a1f78); box-shadow: 0 18px 46px rgba(0, 15, 70, .3); }
.ms-frame { position: relative; background: #fffdf6; border-radius: 16px; padding: 20px 22px; border: 2px solid #b0945c; box-shadow: inset 0 0 0 5px #fffdf6, inset 0 0 0 6px rgba(176, 148, 92, .6); }
.ms-top { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid rgba(176, 148, 92, .5); padding-bottom: 10px; }
.ms-top img { width: 52px; } .ms-top b { display: block; color: var(--blue-900); font-size: 1.2rem; } .ms-top span { font: 700 .78rem/1 Cinzel, serif; letter-spacing: .14em; color: var(--green-700); }
.ms-top em { margin-inline-start: auto; font-style: normal; background: var(--gold-grad); color: var(--blue-950); border-radius: 999px; padding: 3px 12px; font-size: .82rem; font-weight: 700; }
.ms-who h3 { margin: 12px 0 0; color: var(--blue-900); font-size: 1.35rem; } .ms-who p { margin: 0; color: var(--green-700); }
.ms-ids { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; margin-top: 4px; } .ms-ids code { background: var(--gold-50); padding: 1px 8px; border-radius: 6px; }
.ms-steps { margin: 16px 0; }
.ms-msg { display: flex; gap: 10px; align-items: flex-start; background: #eef6f1; border-radius: 12px; padding: 10px 14px; color: #12422c; }
.ms-msg i { color: var(--green-700); margin-top: 6px; } .ms-msg p { margin: 0; }
.ms-hist { list-style: none; padding: 0; margin: 12px 0 0; font-size: .85rem; color: var(--ink-2); display: grid; gap: 4px; }
.ms-hist b { color: var(--blue-900); font-weight: 600; margin-inline-end: 6px; }
.ms-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 8px; border-top: 1px dashed rgba(176, 148, 92, .6); font-size: .78rem; color: var(--muted); }
.st-registered .ms-msg, .st-accepted .ms-msg { background: #f9f3e6; color: #4d3d1e; }
.ap-ack a { word-break: break-all; }
.ap-choice { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; }
@media (max-width: 760px) { .ms-form { grid-template-columns: 1fr; } }

/* ---------- pay by QR (PayMV / Maldives National QR) ---------- */
.pay-qr { display: flex; gap: 16px; align-items: center; background: linear-gradient(135deg, #eef4fb, #eef8f2); border: 1.5px solid #c8d6ea; border-radius: 16px; padding: 12px; margin: 10px 0 12px; }
.pay-qr-img { flex: none; width: 150px; } .pay-qr-img img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 6px 18px rgba(13, 50, 109, .2); display: block; background: #fff; }
.pay-qr-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; line-height: 1.7; }
.pay-qr-t b { color: #0d326d; font-size: 1.02rem; } .pay-qr-t small { color: #5b6478; font-size: .78rem; } .pay-qr-t p { margin: 0; color: #0b5a3a; font-weight: 700; }
.pay-or { display: flex; align-items: center; gap: 8px; color: #8a94a8; font-size: .8rem; } .pay-or::before, .pay-or::after { content: ""; flex: 1; border-top: 1px dashed #c8d6ea; } .pay-or em { font-style: normal; }
.pay-qr-t .btn { align-self: flex-start; margin-top: 4px; padding: 4px 12px; font-size: .8rem; }
.pay-accs { display: grid; gap: 6px; } .pay-acc { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e1e6ef; border-radius: 12px; padding: 8px 12px; } .pay-acc b { flex: 1; font: 800 1.05rem Inter, monospace; color: #0d326d; letter-spacing: .04em; }
.pay-bank { background: #0d326d; color: #fff; border-radius: 8px; padding: 2px 8px; font: 800 .75rem Inter, sans-serif; } .pay-accs > small { color: #5b6478; text-align: center; }
.pay-for { background: #faf5eb; border-radius: 10px; padding: 6px 12px; } .pg-foot { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 520px) { .pay-qr { flex-direction: column; text-align: center; } .pay-qr-img { width: 200px; } .pay-qr-t .btn { align-self: center; } }

/* ---------- Royal RASFAHI menu (crown) ---------- */
.menu > li.nav-royal > .nav-top { background: linear-gradient(135deg, #2a0f4a 0%, #3b1866 55%, #0b4a36 100%); color: #fff; border-radius: 10px; margin: 6px 4px; padding: 9px 14px; border: 1px solid rgba(207, 183, 137, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 4px 14px rgba(20, 8, 45, .35); }
.menu > li.nav-royal > .nav-top:hover, .menu > li.nav-royal.open > .nav-top { color: #fff; border-color: #cfb789; background: linear-gradient(135deg, #3b1866 0%, #5a2a8f 55%, #0b5a45 100%); }
.menu > li.nav-royal .nr-crown { font-size: .85rem; color: #e9dcbe; }
.nr-sub { min-width: 330px; padding: 10px; border-top: 3px solid #5a2a8f; background: linear-gradient(180deg, #ffffff, #faf8fd); }
.nr-sub li + li { margin-top: 4px; }
.nr-sub a { display: flex !important; align-items: center; gap: 12px; padding: 10px 12px !important; border-radius: 10px; border-inline-start: 0 !important; }
.nr-sub a:hover { background: #f1ecf9 !important; }
.nr-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #0b1a4a, #3b1866); color: #e9dcbe; box-shadow: inset 0 -3px 0 #0b6b45; }
.nr-sub li:nth-child(2) .nr-ic { background: linear-gradient(135deg, #0b4a36, #1d7a57); box-shadow: inset 0 -3px 0 #5a2a8f; }
.nr-sub li:nth-child(3) .nr-ic { background: linear-gradient(135deg, #2a0f4a, #5a2a8f); box-shadow: inset 0 -3px 0 #0b6b45; }
.nr-t { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nr-t b { color: #101a33; font-weight: 700; font-size: .95rem; }
body.is-dv .nr-t b { font-weight: 400; font-size: 1rem; }
.nr-t small { color: #66718a; font-size: .78rem; line-height: 1.4; }
.nr-x { font-size: .7rem; color: #9a74cf; }
@media (max-width: 980px) {
  .menu > li.nav-royal > .nav-top { margin: 8px 12px; width: calc(100% - 24px); }
  .nr-sub { min-width: 0; background: rgba(0, 0, 0, .18); padding: 6px 10px; }
  .nr-t b { color: #fff; } .nr-t small { color: #c9cfe0; }
  .nr-sub a:hover { background: rgba(255, 255, 255, .06) !important; }
}

/* ---------- App links in the menu: Arabic Teacher · Hifz Record · Qur'an Contest ---------- */
.menu > li.nav-app > a { margin: 6px 3px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(207, 183, 137, .45); border-bottom-width: 1px; color: #fff; gap: 8px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.menu > li.nav-app > a i { font-size: .9rem; color: #e9dcbe; }
.menu > li.na-ar > a { background: linear-gradient(135deg, #3a0d16, #6b1a28); }
.menu > li.na-hf > a { background: linear-gradient(135deg, #062a1f, #0b6b45); }
.menu > li.na-ct > a { background: linear-gradient(135deg, #0b1a4a, #2552a3); }
.menu > li.nav-app > a:hover { color: #fff; border-color: #e9dcbe; filter: brightness(1.12); }
@media (min-width: 981px) and (max-width: 1440px) { .menu > li.nav-app > a { padding: 8px 9px; } }
@media (max-width: 980px) { .menu > li.nav-app > a { margin: 6px 12px; width: calc(100% - 24px); } }

/* ---------- payment: account QR, notes, settings ---------- */
.pay-accqr { display: flex; gap: 14px; align-items: center; margin: 10px 0; padding: 12px; border: 1px solid #ddd8ec; border-radius: 12px; background: #fbfaff; }
.pay-accqr-c { flex: none; width: 128px; height: 128px; background: #fff; border-radius: 8px; padding: 4px; box-shadow: 0 0 0 1px #e3e0ee; }
.pay-accqr-c svg { width: 100%; height: 100%; display: block; }
.pay-accqr > div:last-child { display: flex; flex-direction: column; gap: 4px; }
.pay-accqr b { color: #1a1440; line-height: 1.8; } .pay-accqr small { color: #5d6077; }
.pay-note { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: #f1faf5; border: 1px solid #bfe2cd; color: #164a33; }
.pay-note i { margin-top: 4px; } .pay-note p { margin: 2px 0; line-height: 1.8; }
.pay-set .pay-set-qr { display: flex; gap: 14px; align-items: center; margin: 10px 0; }
.pay-set-img { flex: none; width: 110px; height: 110px; border-radius: 12px; border: 1px dashed #c9c4dc; display: grid; place-items: center; background: #fff; color: #9a94b5; font-size: 2rem; overflow: hidden; }
.pay-set-img img { width: 100%; height: 100%; object-fit: contain; }
.pay-prev { margin-top: 12px; padding: 12px; border-radius: 12px; background: #f7f6fb; }
.pay-prev h4 { margin: 0 0 6px; color: #3b1866; }

/* ---------- Install as an app ---------- */
.pwa-install { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .12); color: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .85rem; cursor: pointer; }
.pwa-install:hover { background: rgba(255, 255, 255, .22); }
.pwa-install[hidden] { display: none !important; }
.pwa-fab { position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 90; background: linear-gradient(135deg, #0b1a4a, #3b1866); border: 1px solid rgba(207, 183, 137, .6); box-shadow: 0 10px 26px rgba(11, 26, 74, .35); padding: 10px 16px; }
.pwa-ios { position: fixed; inset: 0; z-index: 9999; background: rgba(6, 10, 30, .55); display: grid; align-items: end; justify-items: center; padding: 16px; }
.pwa-ios-c { width: min(420px, 100%); background: #fff; color: #1a1440; border-radius: 16px; padding: 18px 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); font-size: 1rem; line-height: 1.8; }
.pwa-ios-c b { display: block; margin-bottom: 6px; font-size: 1.05rem; } .pwa-ios-c ol { margin: 0 0 10px; padding-inline-start: 22px; }
.pwa-ios-c button { width: 100%; border: 0; border-radius: 10px; padding: 10px; background: #0b1a4a; color: #fff; font: inherit; }
.pwa-sh { display: inline-block; border: 1px solid #ccd; border-radius: 6px; padding: 0 6px; }

/* e-Books Library (المكتبة العلمية) — stands out in the top menu */
.menu > li.na-elib > a { margin: 6px 4px; padding: 8px 14px; border-radius: 999px; color: #fff !important; font-weight: 700; gap: 8px; border: 1px solid rgba(255,255,255,.55); background: linear-gradient(135deg, #b45309, #f59e0b); box-shadow: 0 4px 14px rgba(245,158,11,.35), inset 0 -3px 0 rgba(0,0,0,.15); animation: elibGlow 2.6s ease-in-out infinite; }
.menu > li.na-elib > a i { font-size: 1rem; color: #fff; }
.menu > li.na-elib > a:hover { filter: brightness(1.1); transform: translateY(-1px); }
@keyframes elibGlow { 0%, 100% { box-shadow: 0 4px 14px rgba(245,158,11,.35), inset 0 -3px 0 rgba(0,0,0,.15); } 50% { box-shadow: 0 4px 22px rgba(245,158,11,.7), inset 0 -3px 0 rgba(0,0,0,.15); } }
@media (max-width: 980px) { .menu > li.na-elib > a { margin: 6px 12px; width: calc(100% - 24px); justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .menu > li.na-elib > a { animation: none; } }

/* new version banner (installed app) */
.pwa-upd { position: fixed; z-index: 9999; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 12px; align-items: center; background: var(--blue-950, #0b1a4a); color: #fff; padding: 10px 14px 10px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: .95rem; }
.pwa-upd button { border: 0; border-radius: 999px; padding: 6px 16px; background: var(--gold, #c9a227); color: #111; font-weight: 800; cursor: pointer; } .pwa-upd i { font-style: normal; cursor: pointer; opacity: .7; }

/* RASFAHI Suite apps in the menu bar */
.menu > li.na-ssc > a { background: linear-gradient(135deg, #3a0614, #8f1d40); }
.menu > li.na-mus > a { background: linear-gradient(135deg, #0b3d2e, #1e7a4f); }
.menu > li.na-free > a { background: linear-gradient(135deg, #12304f, #1d6aa5); }
.menu > li.na-mus > a i, .menu > li.na-free > a i { color: #f3d77a; font-size: 1.05rem; }
.menu > li.nav-app > a .na-img { width: 24px; height: 24px; border-radius: 6px; flex: none; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
/* e-Library on Google Drive — a different colour from the e-Books Library (OneDrive) beside it */
.menu > li.na-elib2 > a { margin: 6px 4px; padding: 8px 14px; border-radius: 12px; color: #fff !important; font-weight: 700; gap: 8px; border: 1px solid rgba(255,255,255,.5); background: linear-gradient(135deg, #065f46, #0ea5a4); box-shadow: 0 4px 14px rgba(14,165,164,.35), inset 0 -3px 0 rgba(0,0,0,.15); }
.menu > li.na-elib2 > a i { font-size: 1rem; color: #fde68a; }
.menu > li.na-elib2 > a:hover { filter: brightness(1.1); transform: translateY(-1px); }
.menu > li.na-elib > a::after { content: "PDF"; font: 800 .62rem Inter, sans-serif; background: rgba(255,255,255,.25); border-radius: 6px; padding: 1px 5px; letter-spacing: .5px; }
.menu > li.na-elib2 > a::after { content: "DRIVE"; font: 800 .62rem Inter, sans-serif; background: rgba(255,255,255,.22); border-radius: 6px; padding: 1px 5px; letter-spacing: .5px; }
@media (max-width: 980px) { .menu > li.na-elib2 > a { margin: 6px 12px; width: calc(100% - 24px); justify-content: center; } }
/* RASFAHI Suite button: every software, two columns, each with its own icon */
@media (min-width: 981px) { .menu > li.nav-suite > .nr-sub { display: grid; grid-template-columns: repeat(2, minmax(250px, 1fr)); width: 640px; left: 50%; right: auto; margin-left: -320px; max-height: 78vh; overflow-y: auto; }
  .menu > li.nav-suite > .nr-sub > li:first-child, .menu > li.nav-suite > .nr-sub > li:nth-child(2) { grid-column: span 1; } }
.nr-ic img { width: 30px; height: 30px; border-radius: 8px; display: block; box-shadow: 0 1px 4px rgba(0,0,0,.3); }

@media (min-width: 981px) { .menu { position: relative; } .menu > li.nav-suite { position: static; } }
/* Policies and Gazette in the menu bar */
.menu > li.na-pol > a, .menu > li.na-gz > a { margin: 6px 3px; padding: 7px 13px; border-radius: 999px; font-weight: 700; gap: 7px; border: 1px solid rgba(201,162,39,.55); }
.menu > li.na-pol > a { background: linear-gradient(135deg, #1e3a5f, #2d5a8a); color: #fff !important; }
.menu > li.na-gz > a { background: linear-gradient(135deg, #3b2a06, #8a6a14); color: #fff8e1 !important; }
.menu > li.na-pol > a i, .menu > li.na-gz > a i { color: #f2d98a; }
/* public Policies and Gazette pages */
.pub-main { padding: 26px 0 50px; } .pub-main .toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; } .pub-main select, .pub-main input { padding: 9px 12px; border: 1px solid #d6dbe8; border-radius: 12px; font: inherit; }
.pub-main .tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 16px; } .pub-main .tabs button { border: 1px solid #d6dbe8; background: #fff; border-radius: 999px; padding: 8px 16px; cursor: pointer; font: inherit; } .pub-main .tabs button.on { background: var(--royal-grad); color: #fff; border-color: transparent; }
.pol-doc, .gz-item { background: #fff; border: 1px solid #e3e7f2; border-radius: var(--radius, 14px); margin: 10px 0; box-shadow: var(--shadow-1); }
.pol-doc > summary, .gz-item > summary { cursor: pointer; padding: 14px 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .pol-doc > summary b, .gz-item > summary b { font-family: var(--f-head); font-size: 1.08rem; color: var(--blue-900); flex: 1; }
.pol-doc small, .gz-item small { color: var(--muted); } .pol-sec { padding: 6px 20px 10px; line-height: 1.95; } .pol-sec h4 { margin: 8px 0 4px; color: var(--blue-800); }
.gz-no { background: var(--gold-grad); color: var(--ink); font: 800 .8rem Inter, sans-serif; border-radius: 8px; padding: 3px 8px; } .gz-body { padding: 4px 20px 16px; line-height: 1.95; }
/* RASFAHI Suite — wings (mega menu) */
.nav-mega { position: static; }
.nr-mega { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: 6px 14px; padding: 14px 16px 16px; min-width: min(1100px, 96vw); inset-inline-start: 50%; transform: translateX(50%); max-height: 78vh; overflow: auto; border-top: 3px solid #5a2a8f; background: linear-gradient(180deg, #fff, #faf8fd); }
[dir="ltr"] .nr-mega { transform: translateX(-50%); }
.has-sub.nav-mega:hover > .nr-mega, .has-sub.nav-mega.open > .nr-mega { transform: translateX(50%); }
[dir="ltr"] .has-sub.nav-mega:hover > .nr-mega, [dir="ltr"] .has-sub.nav-mega.open > .nr-mega { transform: translateX(-50%); }
.nr-wing h4 { margin: 2px 0 6px; padding-bottom: 6px; border-bottom: 2px solid #efe7fa; color: #3b1866; font-size: .95rem; display: flex; gap: 8px; align-items: center; }
.nr-wing h4 i { color: #c9a227; }
.nr-wing ul { list-style: none; margin: 0; padding: 0; }
.nr-wing a { display: flex !important; align-items: center; gap: 10px; padding: 6px 8px !important; border-radius: 10px; color: #0b1a4a !important; font-size: .92rem; border: 0 !important; }
.nr-wing a:hover { background: #f1ecf9 !important; }
.nr-mi { flex: none; width: 32px; height: 32px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #0b1a4a, #3b1866); color: #e9dcbe; }
.nr-mi img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1100px) { .nr-mega { grid-template-columns: repeat(3, minmax(160px, 1fr)); } }
@media (max-width: 860px) {
  .nr-mega { display: none !important; } .has-sub.nav-mega.open > .nr-mega { display: block !important; }
  .nr-mega, .has-sub.nav-mega:hover > .nr-mega, .has-sub.nav-mega.open > .nr-mega, [dir="ltr"] .nr-mega, [dir="ltr"] .has-sub.nav-mega.open > .nr-mega { transform: none !important; min-width: 0; grid-template-columns: 1fr; background: rgba(0, 0, 0, .18); max-height: none; }
  .nr-wing h4 { color: #f1d98a; border-color: rgba(255,255,255,.15); } .nr-wing a { color: #fff !important; }
}
.su-st { margin: 4px 0 0; font-size: .85rem; color: #4a5470; } .su-st:empty { display: none; } .su-st .su-star { color: #c9a227; }
/* RASFAHI SUITE — its own tab (rasfahisuite.web.app) */
.menu > li.na-rsuite > a { position: relative; overflow: hidden; background: linear-gradient(120deg, #1a0b3d, #4b1d8f 45%, #b8860b 100%); color: #fff7d6 !important; border: 1px solid rgba(243, 215, 122, .7); box-shadow: 0 0 0 2px rgba(243, 215, 122, .18), 0 6px 18px rgba(75, 29, 143, .45); font-weight: 800; letter-spacing: .3px; }
.menu > li.na-rsuite > a i { color: #f3d77a; font-size: 1.05rem; filter: drop-shadow(0 0 4px rgba(243, 215, 122, .8)); animation: rs-pulse 2.4s ease-in-out infinite; }
.menu > li.na-rsuite > a::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); animation: rs-shine 3.8s ease-in-out infinite; pointer-events: none; }
.menu > li.na-rsuite > a:hover { filter: brightness(1.12); transform: translateY(-1px); }
@keyframes rs-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes rs-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .menu > li.na-rsuite > a::after, .menu > li.na-rsuite > a i { animation: none; } }
/* ── phones: fit the screen (no sideways scrolling, no zoom-in when typing) ── */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video, iframe, canvas { max-width: 100%; }
.toolbar > .tabs, .course-tools .tabs, .tabs { min-width: 0; max-width: 100%; }
@media (max-width: 820px) {
  input, select, textarea { font-size: 16px !important; }            /* iPhone zooms in on smaller text boxes and the page stops fitting */
  .grid3 { grid-template-columns: 1fr 1fr; }
  .toolbar { flex-wrap: wrap; }
  .toolbar > input[type=search], .toolbar > input:not([type=checkbox]):not([type=radio]) { flex: 1 1 160px; min-width: 0; }
  table { max-width: 100%; }
}
@media (max-width: 560px) {
  .grid3, .grid2 { grid-template-columns: 1fr; }
  .tbl-wrap, .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .panel > table.tbl, .m-pad > table.tbl, .stack > table.tbl { display: block; overflow-x: auto; white-space: nowrap; }
  h1 { overflow-wrap: anywhere; }
}
/* site menu on phones: the open list always fits the visible screen (iPhone's 100vh is taller than what you see) */
@media (max-width: 860px) {
  .menu { max-height: calc(100vh - 60px); max-height: calc(100dvh - 8px); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom); }
  body.nav-open { overflow: hidden; }
  .tb-login { white-space: nowrap; padding: 6px 12px; font-size: .85rem; }
}
@media (max-width: 420px) { .tb-login span, .tb-login { line-height: 1.2; } }
.mz-gem{display:inline-block;margin-inline-start:8px;padding:4px;font-size:10px;line-height:1;opacity:.55;color:#c9a24a!important;text-decoration:none;vertical-align:middle;transition:opacity .3s,transform .3s}.mz-gem:hover,.mz-gem:focus{opacity:1;transform:scale(1.3)}
/* Student Services (services.html) — the royal pill in the top menu */
.menu > li.na-ss > a { margin: 6px 3px; padding: 7px 14px; border-radius: 999px; font-weight: 700; gap: 7px; color: #fff !important; background: linear-gradient(120deg, var(--green-700), var(--blue-700) 55%, var(--purple-600)); background-size: 200% 100%; border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 4px 14px rgba(9, 15, 131, .25); animation: naSs 6s ease-in-out infinite; }
.menu > li.na-ss > a i { color: var(--gold-200, #f2d98a); }
.menu > li.na-ss > a:hover { filter: brightness(1.08); transform: translateY(-1px); }
@keyframes naSs { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .menu > li.na-ss > a { animation: none; } }

/* Online Counter (counter.html) — the second royal pill in the top menu */
.menu > li.na-oc > a { margin: 6px 3px; padding: 7px 14px; border-radius: 999px; font-weight: 700; gap: 7px; color: #fff !important; background: linear-gradient(120deg, var(--purple-800, #3b0764), var(--blue-800) 50%, var(--green-700)); background-size: 200% 100%; border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 4px 14px rgba(9, 15, 131, .25); animation: naSs 7s ease-in-out infinite reverse; }
.menu > li.na-oc > a i { color: var(--gold-200, #f2d98a); }
.menu > li.na-oc > a:hover { filter: brightness(1.08); transform: translateY(-1px); }
