:root {
  --ink: #1C1C1C; --ink2: #2B2B2B; --ink3: #3A3A3A;
  --gold: #C9A646; --gold2: #E2C877; --gold-d: #9C7F2C;
  --silver: #C3C7CB; --silver2: #E6E8EA;
  --bg: #F5F4F0; --card: #FFFFFF; --line: #E2E0DA; --muted: #6E6E6E;
  --ok: #2E7D4F; --bad: #B23A3A; --accent: #D9622B; --blue: #2F6FB0;
  --radius: 10px; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 18px rgba(0,0,0,.06);
  --head: 'Oswald', 'Inter', sans-serif; --body: 'Inter', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
}
html[lang=ar] { --body: 'IBM Plex Sans Arabic', 'Inter', sans-serif; --head: 'Cairo', 'IBM Plex Sans Arabic', sans-serif; }
html[lang=ur] { --body: 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', serif; --head: 'Noto Naskh Arabic', serif; }
html[lang=hi] { --body: 'Noto Sans Devanagari', 'Inter', sans-serif; --head: 'Noto Sans Devanagari', 'Oswald', sans-serif; }
* { box-sizing: border-box }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55 }
html[lang=ur] body { line-height: 2.05; font-size: 15px }
a { color: inherit }
button, input, select { font: inherit }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 .4em }
html[lang=en] h1, html[lang=en] .brand { letter-spacing: .02em }
.hidden { display: none !important }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: var(--ink); color: #fff; border-bottom: 2px solid var(--gold) }
.top .in { max-width: 1180px; margin: auto; display: flex; align-items: center; gap: 14px; padding: 10px 16px }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: .12em }
.brand .mark { width: 30px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, var(--gold2), var(--gold-d)); color: var(--ink); display: grid; place-items: center; font-size: 16px; font-weight: 700; letter-spacing: 0 }
.brand small { display: block; font-family: var(--body); font-weight: 400; font-size: 11px; letter-spacing: .04em; color: var(--silver) }
.top .sp { flex: 1 }
.langsel { background: var(--ink2); color: #fff; border: 1px solid #555; border-radius: 8px; padding: 6px 10px; cursor: pointer }
.navbtn { white-space: nowrap; background: none; border: 1px solid transparent; color: var(--silver2); padding: 6px 10px; border-radius: 8px; cursor: pointer; text-decoration: none; font-size: 14px }
.navbtn:hover { border-color: #555; color: #fff }

main { max-width: 1180px; margin: auto; padding: 24px 16px 60px; min-height: 70vh }
footer { background: var(--ink); color: var(--silver); font-size: 13px }
footer .in { max-width: 1180px; margin: auto; padding: 18px 16px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between }
footer b { color: var(--gold) }

/* buttons + forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; padding: 11px 18px; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 15px; transition: transform .08s, background .15s }
.btn:active { transform: translateY(1px) }
.btn.gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: var(--ink) }
.btn.gold:hover { background: var(--gold) }
.btn.dark { background: var(--ink); color: #fff }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line) }
.btn.small { padding: 6px 11px; font-size: 13px }
.btn[disabled] { opacity: .55; cursor: wait }
.field { display: block; margin: 0 0 14px }
.field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--ink3) }
.field input { width: 100%; padding: 11px 12px; border: 1px solid #CFCCC4; border-radius: 8px; background: #fff; font-size: 16px }
.field input:focus { outline: 2px solid var(--gold); border-color: var(--gold) }
.field input.code { font-family: var(--mono); font-size: 26px; letter-spacing: .4em; text-align: center; direction: ltr }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px }
.msg { padding: 10px 12px; border-radius: 8px; margin: 0 0 14px; font-size: 14px }
.msg.err { background: #FBEAEA; color: var(--bad) } .msg.ok { background: #E8F4EC; color: var(--ok) }
.links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; margin-top: 14px }
.links a { color: var(--gold-d); cursor: pointer; text-decoration: underline }

/* landing */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start }
.hero .pitch { background: var(--ink); color: #fff; border-radius: 14px; padding: 38px 34px; position: relative; overflow: hidden; min-height: 420px }
.hero .pitch::after { content: ""; position: absolute; inset: auto -60px -80px auto; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(201,166,70,.45) 0 1.5px, transparent 2px) 0 0/12px 12px; opacity: .6 }
.hero .eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .14em; font-size: 12px; text-transform: uppercase }
html[lang=ar] .hero .eyebrow, html[lang=ur] .hero .eyebrow { letter-spacing: 0 }
.hero h1 { font-size: 38px; margin: 12px 0 14px; max-width: 560px }
.hero p { color: #D6D6D6; max-width: 520px }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; position: relative; z-index: 1 }
.badge { border: 1px solid #555; border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--silver2); background: rgba(255,255,255,.04) }
.badge b { color: var(--gold) }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: var(--shadow) }
.card h2 { font-size: 24px }
.auth { max-width: 460px; margin: 10px auto }

/* dashboard */
.dash-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px }
.dash-head h1 { font-size: 30px; margin: 0 }
.pill { display: inline-block; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; background: var(--silver2); color: var(--ink3) }
.pill.gold { background: #F5ECCF; color: var(--gold-d) } .pill.ok { background: #E3F2E8; color: var(--ok) } .pill.bad { background: #F8E3E3; color: var(--bad) }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px }
.course { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow) }
.course .cov { background: var(--ink); color: #fff; padding: 22px; min-height: 150px; position: relative }
.course .cov .code { font-family: var(--mono); color: var(--gold); font-size: 13px }
.course .cov h3 { font-size: 22px; margin: 8px 0 4px }
.course .cov p { margin: 0; color: var(--silver); font-size: 14px }
.course .body { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1 }
.meter { height: 8px; background: var(--silver2); border-radius: 99px; overflow: hidden }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-d), var(--gold2)) }
.stats3 { display: flex; gap: 16px; font-size: 13px; color: var(--muted) }
.stats3 b { display: block; font-family: var(--mono); font-size: 18px; color: var(--ink) }
.section-t { font-size: 20px; margin: 30px 0 12px }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); font-size: 14px }
.table th { background: var(--ink); color: var(--silver2); font-weight: 600; text-align: start; padding: 9px 10px; white-space: nowrap }
.table td { border-top: 1px solid var(--line); padding: 9px 10px; vertical-align: middle }
.tablewrap { overflow-x: auto }

/* course page */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px }
.crumbs a { color: var(--gold-d); cursor: pointer }
.course-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin: 18px 0 26px }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px }
.tile .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-size: 18px }
.tile h3 { font-size: 18px; margin: 0 }
.tile p { margin: 0; font-size: 14px; color: var(--muted); flex: 1 }
.modlist { display: grid; gap: 10px }
.modrow { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; text-decoration: none }
.modrow:hover { border-color: var(--gold) }
.modrow .n { font-family: var(--mono); font-weight: 700; color: var(--gold-d); font-size: 18px; width: 36px }
.modrow .t { flex: 1; font-weight: 600 }
.modrow .done { color: var(--ok); font-size: 13px }

/* protected reader */
.protect { position: relative; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none }
.protect img, .protect svg { pointer-events: none; -webkit-user-drag: none }
.wm { position: absolute; inset: 0; pointer-events: none; z-index: 5; background-repeat: repeat; opacity: 1 }
.blurred .protect > :not(.wm) { filter: blur(14px) }
.reader-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px }
.reader-note { font-size: 12px; color: var(--muted) }
.reader { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 38px; box-shadow: var(--shadow); overflow: hidden }
.reader .mhead { border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 14px }
.reader .mnum { color: var(--gold-d); font-weight: 700; letter-spacing: .14em; font-size: 13px; font-family: 'Oswald', var(--head) }
html[lang=ar] .reader .mnum, html[lang=ur] .reader .mnum, html[lang=hi] .reader .mnum { letter-spacing: 0; font-family: var(--head) }
.reader h1 { font-size: 30px }
.reader h2 { font-size: 20px; margin: 24px 0 8px; border-inline-start: 4px solid var(--gold); padding-inline-start: 10px }
.reader .obj { background: #F3F1EA; border-radius: 10px; padding: 10px 16px; margin: 12px 0 }
.reader .obj ul { margin: 6px 0 0 }
.reader table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 14.5px }
.reader th { background: var(--ink); color: #fff; text-align: start; padding: 7px 9px; font-weight: 600 }
.reader td { border-bottom: 1px solid var(--line); padding: 7px 9px; vertical-align: top }
.reader tr:nth-child(even) td { background: #FAF9F6 }
.reader figure { margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #FCFBF8 }
.reader figure svg { display: block; margin: auto; max-width: 100%; height: auto; max-height: 300px }
.reader figcaption { font-size: 13px; color: var(--muted); margin-top: 6px }
.reader .tip { background: #F7F0DC; border-inline-start: 4px solid var(--gold); padding: 10px 14px; margin: 16px 0; border-radius: 6px }
.reader .quote { font-family: var(--head); font-size: 20px; border-inline-start: 4px solid var(--blue); padding: 4px 16px; margin: 12px 0; color: var(--blue) }
.reader .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
.reader .key { background: #F3F1EA; border-radius: 10px; padding: 10px 14px }
.reader .keyt { font-weight: 700 }
.reader .small { font-size: 13px; color: var(--muted) }
.reader .defect { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 12px 0 }
.reader .dh { font-weight: 700; font-size: 17px; font-family: var(--head) }
.reader .dn { background: var(--ink); color: var(--gold); border-radius: 5px; padding: 0 7px; margin-inline-end: 8px; font-family: var(--mono); font-size: 14px }
.reader .lab { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--blue); text-transform: uppercase }
.reader .dangle { font-size: 14px; background: #F7F0DC; padding: 6px 10px; border-radius: 6px; margin-top: 6px }
.reader ul { padding-inline-start: 22px }
.pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px }

/* presentation player */
.player { background: #111; border-radius: 14px; padding: 14px; position: relative }
.player:fullscreen { border-radius: 0; display: flex; flex-direction: column; justify-content: center }
.stagewrap { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 8px; background: #fff }
.stage { position: absolute; top: 0; left: 0; width: 1280px; height: 720px; transform-origin: 0 0 }
.slide { position: absolute; inset: 0; padding: 64px 80px; display: flex; flex-direction: column; background: #FBFAF6; color: var(--ink) }
.slide .ey { font-family: 'Oswald', var(--head); color: var(--gold-d); letter-spacing: .14em; font-size: 20px; text-transform: uppercase; font-weight: 600 }
html[lang=ar] .slide .ey, html[lang=ur] .slide .ey, html[lang=hi] .slide .ey { letter-spacing: 0; font-family: var(--head) }
.slide h2 { font-size: 50px; margin: 10px 0 26px; max-width: 1100px }
html[lang=ur] .slide h2 { font-size: 42px; line-height: 1.7 }
.slide ul { margin: 0; padding: 0; list-style: none; font-size: 27px; display: grid; gap: 14px }
html[lang=ur] .slide ul { font-size: 23px; gap: 6px }
.slide li { padding-inline-start: 34px; position: relative }
.slide li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 14px; height: 14px; border-radius: 3px; background: var(--gold); transform: rotate(45deg) }
html[lang=ur] .slide li::before { top: .95em }
.slide .cols { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; flex: 1 }
.slide .cols svg { width: 100%; height: auto; max-height: 470px }
.slide .foot { position: absolute; bottom: 22px; inset-inline: 80px; display: flex; justify-content: space-between; font-size: 15px; color: #8A8A8A; font-family: var(--body) }
.slide.dark, .slide.cover { background: var(--ink); color: #fff }
.slide.dark h2, .slide.cover h2 { color: #fff }
.slide.cover { justify-content: center }
.slide.cover h2 { font-size: 72px; max-width: 1000px }
.slide.cover .sub { font-size: 28px; color: var(--silver); max-width: 900px }
.slide.cover .bar { position: absolute; inset: auto 0 0 0; height: 14px; background: linear-gradient(90deg, var(--gold-d), var(--gold2)) }
.slide.cover .partners { position: absolute; bottom: 48px; inset-inline-start: 80px; font-size: 18px; color: var(--gold) }
.slide.statement { justify-content: center; background: linear-gradient(135deg, #FBFAF6 60%, #F3EBD2) }
.slide.statement h2 { font-size: 58px; border-inline-start: 10px solid var(--gold); padding-inline-start: 30px }
.slide .statsrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 10px 0 30px }
.slide .stat { background: var(--ink); color: #fff; border-radius: 16px; padding: 30px 26px }
.slide .stat b { display: block; font-family: var(--mono); color: var(--gold); font-size: 54px; line-height: 1.1; direction: ltr; unicode-bidi: isolate }
.slide .stat span { font-size: 22px; color: var(--silver2) }
.slide .flow { display: flex; gap: 14px; margin: 16px 0 34px; flex-wrap: nowrap }
.slide .flow div { flex: 1; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 22px 10px; text-align: center; font-weight: 700; font-size: 22px; position: relative }
.slide .flow div:nth-child(odd) { background: #F7F0DC; border-color: var(--gold-d) }
.slide .flow div small { display: block; font-family: var(--mono); color: var(--gold-d); font-size: 15px; margin-bottom: 4px }
.controls { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: #ddd; flex-wrap: wrap }
.controls .count { font-family: var(--mono); font-size: 14px; min-width: 70px; text-align: center }
.controls .sp { flex: 1 }
.progress { height: 4px; background: #333; border-radius: 99px; overflow: hidden; margin-top: 10px }
.progress i { display: block; height: 100%; background: var(--gold); transition: width .25s }
.notesbox { background: #1E1E1E; color: #ddd; border-radius: 8px; padding: 12px 16px; margin-top: 10px; font-size: 15px }
.player .wm { border-radius: 8px }

/* quiz */
.quiz { max-width: 780px; margin: auto }
.qcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow) }
.qhead { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 10px }
.qtext { font-size: 21px; font-weight: 600; margin: 4px 0 18px }
.opt { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: start; background: #FBFAF7; border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 14px; margin: 0 0 10px; cursor: pointer; font-size: 16px; color: var(--ink) }
.opt:hover { border-color: var(--gold) }
.opt .l { font-family: var(--mono); font-weight: 700; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: var(--silver2); flex: none }
.opt.sel { border-color: var(--gold-d); background: #F7F0DC }
.opt.sel .l { background: var(--ink); color: var(--gold) }
.dots { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 }
.dots button { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line); background: #fff; font-family: var(--mono); font-size: 12px; cursor: pointer }
.dots button.a { background: var(--ink3); color: #fff; border-color: var(--ink3) }
.dots button.c { outline: 2px solid var(--gold); outline-offset: 1px }
.qnav { display: flex; justify-content: space-between; gap: 10px }
.score { display: flex; gap: 26px; align-items: center; flex-wrap: wrap }
.ring { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--silver2) 0) }
.ring div { width: 118px; height: 118px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center }
.ring b { font-family: var(--mono); font-size: 32px; display: block; direction: ltr }
.mbar { display: grid; grid-template-columns: 1fr 120px 54px; gap: 10px; align-items: center; font-size: 14px; margin: 6px 0 }
.mbar .meter i { background: var(--ok) } .mbar.low .meter i { background: var(--bad) }
.rv { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 8px 0; background: #fff }
.rv.ok { border-inline-start: 5px solid var(--ok) } .rv.no { border-inline-start: 5px solid var(--bad) }
.rv .x { font-size: 14px; color: var(--muted); margin-top: 4px }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 }

/* admin */
.tabs { display: flex; gap: 6px; margin: 0 0 14px }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 14px; cursor: pointer; font-weight: 600 }
.tabs button.on { background: var(--ink); color: var(--gold); border-color: var(--ink) }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px }
.toolbar input { flex: 1; min-width: 220px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px }
.kpi b { display: block; font-family: var(--mono); font-size: 26px }
.kpi span { font-size: 13px; color: var(--muted) }
.mono { font-family: var(--mono); direction: ltr; unicode-bidi: isolate }

/* certificate render (off-screen, captured to PDF) */
.certpage { position: fixed; left: -4000px; top: 0; width: 1123px; height: 794px; background: #fff; font-family: var(--body) }
.cert { position: absolute; inset: 22px; border: 3px solid var(--ink); padding: 8px }
.cert .in { position: absolute; inset: 8px; border: 1.5px solid var(--gold); padding: 46px 70px; text-align: center; background: radial-gradient(circle at 50% 0%, #FBF6E6, #fff 60%) }
.cert .top1 { font-family: 'Oswald', sans-serif; letter-spacing: .3em; color: var(--ink); font-size: 22px; font-weight: 600 }
.cert .top1 i { display: inline-block; width: 34px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, var(--gold2), var(--gold-d)); vertical-align: middle; margin: 0 12px; font-style: normal; font-size: 18px; line-height: 34px; letter-spacing: 0 }
.cert h1 { font-family: 'Oswald', sans-serif; font-size: 50px; letter-spacing: .06em; margin: 22px 0 4px; color: var(--ink) }
.cert .tl { font-size: 22px; color: var(--gold-d); margin-bottom: 18px }
.cert .nm { font-family: "Oswald", var(--head); font-size: 42px; color: var(--ink); border-bottom: 1.5px solid var(--gold); display: inline-block; padding: 0 30px 6px; margin: 6px 0 8px }
.cert .cr { font-size: 26px; font-weight: 700; margin: 8px 0 2px }
.cert .crl { font-size: 20px; color: #444 }
.cert .row { display: flex; justify-content: space-between; align-items: flex-end; position: absolute; left: 70px; right: 70px; bottom: 44px; font-size: 14px; color: #333; text-align: start }
.cert .row b { display: block; font-family: var(--mono); font-size: 15px; color: var(--ink) }
.cert .sig { border-top: 1px solid #333; padding-top: 6px; width: 220px; text-align: center }
.cert .partners { position: absolute; left: 0; right: 0; bottom: 112px; font-size: 13px; color: #555; display: flex; align-items: center; justify-content: center; gap: 12px }
.cert .partners img.w { height: 34px; border-radius: 4px } .cert .partners img.q { height: 40px } .cert .partners b { color: #16365C; font-size: 14px }
.cert .clogos { display: flex; align-items: center; justify-content: center; gap: 14px } .cert .clogos img { height: 40px; background: #EEE; padding: 4px 8px; border-radius: 5px } .cert .clogos span { font-family: 'Oswald', sans-serif; letter-spacing: .4em; color: var(--gold-d); font-size: 20px; font-weight: 600 }
.resultpage { position: fixed; left: -4000px; top: 0; width: 794px; background: #fff; padding: 40px 46px; font-family: var(--body); color: var(--ink) }

@media print { body * { display: none !important } body::after { content: "Printing is disabled — INOVEX Academy"; display: block !important; font: 20px sans-serif; padding: 40px } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr } .hero h1 { font-size: 28px } .hero .pitch { min-height: 0; padding: 28px 22px }
  .course-top { grid-template-columns: 1fr } .reader { padding: 20px 16px } .reader .two { grid-template-columns: 1fr }
  .kpis { grid-template-columns: 1fr 1fr } .brand small { display: none } .mbar { grid-template-columns: 1fr 80px 44px }
}

/* ===== header logo ===== */
.hlogo { height: 30px; width: auto; border-radius: 4px; background: #E8E8E6; padding: 3px 6px; box-sizing: content-box }
.hacad { display: block; font-family: 'Oswald', sans-serif; color: var(--gold); letter-spacing: .3em; font-size: 15px; line-height: 1.1 }
.btn.line { background: transparent; color: #fff; border: 1px solid #6A6A6A }
.btn.line:hover { border-color: var(--gold); color: var(--gold) }
@media (max-width: 700px) { .hide-sm { display: none } }

/* ===== landing ===== */
.lp-hero { background: radial-gradient(ellipse at 85% 10%, rgba(201,166,70,.22), transparent 55%), linear-gradient(160deg, #222 0%, #141414 100%); color: #fff; border-radius: 18px; overflow: hidden; position: relative }
.lp-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: linear-gradient(90deg, var(--gold-d), var(--gold2), var(--gold-d)) }
.lp-hero-in { display: grid; grid-template-columns: 1.35fr .9fr; gap: 34px; padding: 54px 50px 58px; align-items: center }
.lp-eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .16em; font-size: 12.5px; text-transform: uppercase }
html[lang=ar] .lp-eyebrow, html[lang=ur] .lp-eyebrow, html[lang=hi] .lp-eyebrow { letter-spacing: 0; font-size: 14px }
.lp-hero h1 { font-size: 50px; line-height: 1.08; margin: 14px 0 16px; max-width: 640px }
html[lang=ur] .lp-hero h1 { font-size: 40px; line-height: 1.6 }
.lp-hero p { color: #D2D2D2; font-size: 17.5px; max-width: 580px; margin: 0 }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px }
.lp-cta .btn { padding: 14px 22px; font-size: 16px }
.lp-motto { font-family: 'Oswald', var(--head); letter-spacing: .14em; color: var(--silver); font-size: 13px; text-transform: uppercase }
html[lang=ar] .lp-motto, html[lang=ur] .lp-motto, html[lang=hi] .lp-motto { letter-spacing: 0; font-size: 15px }
.lp-partners { background: rgba(255,255,255,.04); border: 1px solid #3A3A3A; border-radius: 14px; padding: 22px; display: grid; gap: 16px }
.lp-plate { background: linear-gradient(180deg, #F4F4F2, #D9D9D6); border-radius: 10px; padding: 14px; display: grid; place-items: center }
.lp-plate img { width: 82%; height: auto }
.lp-p { display: grid; gap: 8px }
.lp-p span { font-size: 12px; color: var(--silver); text-transform: uppercase; letter-spacing: .1em }
html[lang=ar] .lp-p span, html[lang=ur] .lp-p span { letter-spacing: 0; font-size: 13px }
.lp-p .wag { height: 64px; width: auto; border-radius: 6px; justify-self: start }
.qem { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 8px; padding: 8px 12px; color: #16365C }
.qem img { height: 46px; width: auto } .qem b { font-size: 15px }
.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 22px 0 8px }
.lp-stats div { background: #fff; padding: 20px 22px }
.lp-stats b { display: block; font-family: 'Oswald', sans-serif; font-size: 38px; color: var(--ink); line-height: 1.1; direction: ltr; unicode-bidi: isolate }
html[dir=rtl] .lp-stats b { text-align: right }
.lp-stats span { font-size: 14px; color: var(--muted) }
.lp-sec { margin: 56px 0 0 }
.lp-sec > h2 { font-size: 30px; margin: 0 0 6px; display: flex; align-items: center; gap: 12px }
.lp-sec > h2::before { content: ""; width: 26px; height: 4px; background: var(--gold); border-radius: 2px }
.lp-lead { color: var(--muted); margin: 0 0 18px; max-width: 760px }
.lp-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 16px }
.lp-fields div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 600; display: flex; align-items: center; gap: 12px }
.lp-fields i { font-style: normal; width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--gold); display: grid; place-items: center; flex: none; font-size: 17px }
.lp-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px }
.lp-levels article { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; position: relative }
.lp-levels article.hl { background: var(--ink); color: #fff; border-color: var(--ink) }
.lp-levels article.hl p { color: #CFCFCF }
.lp-levels .lv { font-family: 'JetBrains Mono', monospace; color: var(--gold-d); font-weight: 700 }
.lp-levels .hl .lv { color: var(--gold) }
.lp-levels h3 { font-size: 24px; margin: 8px 0 8px } .lp-levels p { margin: 0; color: var(--ink3); font-size: 15px }
.lp-note { font-size: 14px; color: var(--muted); margin-top: 12px }
.lp-how ol { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s }
.lp-how li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; position: relative }
.lp-how li span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(180deg, var(--gold2), var(--gold)); font-family: 'JetBrains Mono', monospace; font-weight: 700; margin-bottom: 10px }
.lp-how li b { display: block; font-size: 17px } .lp-how li p { margin: 6px 0 0; font-size: 14px; color: var(--muted) }
.lp-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 18px }
.vid { margin: 0 } .vid iframe, .vid video, .vid.soon > div { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; background: #111; display: block }
.vid.soon > div { display: grid; place-items: center; align-content: center; gap: 10px; color: var(--silver); background: linear-gradient(135deg, #222, #161616); font-size: 14px }
.vid.soon span { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-size: 20px; padding-inline-start: 4px }
.vid figcaption { font-weight: 600; margin-top: 8px; font-size: 15px }
.lp-courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px }
.lp-course { display: flex; flex-direction: column; gap: 6px; text-decoration: none; background: var(--ink); color: #fff; border-radius: 14px; padding: 24px; border: 1px solid var(--ink); transition: transform .15s }
.lp-course:hover { transform: translateY(-2px) }
.lp-course .code { font-family: 'JetBrains Mono', monospace; color: var(--gold); font-size: 13px }
.lp-course b { font-size: 22px; font-family: var(--head) } .lp-course small { color: var(--silver); font-size: 14px }
.lp-course .go { margin-top: 10px; color: var(--gold); font-weight: 600 }
.lp-course.muted { background: #fff; color: var(--ink); border: 1px dashed #BDB9AE } .lp-course.muted small { color: var(--muted) } .lp-course.muted .code { color: var(--muted) }
.lp-plist { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px }
.lp-plist article { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px }
.lp-plist .wag { width: 150px; height: auto; border-radius: 8px; flex: none }
.lp-plist .qlogo { width: 92px; height: auto; flex: none; margin: 0 29px }
.lp-plist h3 { font-size: 20px; margin: 0 0 6px } .lp-plist p { margin: 0; font-size: 14.5px; color: var(--ink3) }
.lp-band { margin: 56px 0 10px; background: linear-gradient(120deg, var(--gold2), var(--gold) 55%, var(--gold-d)); border-radius: 16px; padding: 30px 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; color: var(--ink) }
.lp-band h2 { font-size: 28px; margin: 0 } .lp-band p { margin: 4px 0 0 }
.lp-band-cta { display: grid; gap: 8px; justify-items: end } .lp-band-cta .btn.gold { background: var(--ink); color: var(--gold) }
html[dir=rtl] .lp-band-cta { justify-items: start }
.lp-band .mono { font-size: 13px }

/* ===== request form ===== */
.rq { max-width: 960px; margin: auto }
.rq-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 18px }
.rq-head h1 { font-size: 34px } .rq-head p { color: var(--muted); max-width: 640px; margin: 0 }
.rq-logos { display: flex; gap: 10px; align-items: center } .rq-logos img { height: 52px; width: auto; border-radius: 6px } .rq-logos .wag { height: 44px }
.rq-sec { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 8px 22px 18px; margin: 0 0 16px }
.rq-sec legend { font-family: var(--head); font-size: 20px; font-weight: 700; padding: 0 8px; display: flex; gap: 10px; align-items: baseline }
.rq-sec legend span { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #fff; background: var(--ink); border-radius: 5px; padding: 2px 7px; font-weight: 700 }
.rq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px }
.rq-f.wide { grid-column: 1 / -1; margin: 6px 0 10px }
.rq-f em { color: var(--bad); font-style: normal }
.rq-l { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ink3) }
.rq textarea { width: 100%; padding: 11px 12px; border: 1px solid #CFCCC4; border-radius: 8px; font: inherit; resize: vertical }
.chips { display: flex; flex-wrap: wrap; gap: 8px }
.chip { position: relative; cursor: pointer }
.chip input { position: absolute; opacity: 0; pointer-events: none }
.chip span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #FBFAF7; font-size: 14.5px; transition: all .12s }
.chip:hover span { border-color: var(--gold) }
.chip input:checked + span { background: var(--ink); color: var(--gold); border-color: var(--ink) }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px }
.rq-detail { margin-top: 8px; width: 100%; padding: 9px 12px; border: 1px solid #CFCCC4; border-radius: 8px; font: inherit }
.rq-f.bad input:not([type=checkbox]):not([type=radio]), .rq-f.bad .chips { outline: 2px solid var(--bad); outline-offset: 3px; border-radius: 8px }
.rq-send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 6px 0 30px } .rq-send .btn { padding: 14px 28px; font-size: 16px }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0 }
.donecheck { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 34px; display: grid; place-items: center; margin: 0 auto 12px }
/* PDF sheet (off-screen) */
.rqpdf-wrap { position: fixed; left: -4000px; top: 0 }
.rqpdf { width: 794px; background: #fff; color: #1C1C1C; padding: 34px 40px; font-family: 'Inter', 'IBM Plex Sans Arabic', sans-serif; font-size: 12.5px }
.rqpdf .rtop { display: flex; align-items: center; gap: 14px; border-bottom: 3px solid #1C1C1C; padding-bottom: 12px }
.rqpdf .rtop > img { height: 34px; background: #EEE; padding: 3px 6px; border-radius: 4px }
.rqpdf .tt { flex: 1 } .rqpdf .tt b { display: block; font-family: 'Oswald', sans-serif; letter-spacing: .25em; font-size: 16px } .rqpdf .tt span { color: #777; font-size: 11px }
.rqpdf .pl img { height: 36px; margin-inline-start: 8px; border-radius: 4px }
.rqpdf h1 { font-size: 20px; margin: 16px 0 2px; display: flex; justify-content: space-between; font-family: 'Oswald', 'IBM Plex Sans Arabic', sans-serif }
.rqpdf h1, .rqpdf h1 span, .rqpdf [dir=rtl], .rqpdf td.la { letter-spacing: 0 !important }
.rqpdf h1 span { font-family: 'IBM Plex Sans Arabic', sans-serif }
.rqpdf .meta { color: #888; font-size: 11px; margin-bottom: 10px }
.rqpdf table { width: 100%; border-collapse: collapse }
.rqpdf td { border-bottom: 1px solid #E4E2DC; padding: 6px 8px; vertical-align: top }
.rqpdf td.le { width: 30%; color: #555 } .rqpdf td.la { width: 24%; color: #555; text-align: right; font-family: 'IBM Plex Sans Arabic', sans-serif } .rqpdf td.v { font-weight: 600 }
.rqpdf tr.sh td { background: #1C1C1C; color: #C9A646; font-weight: 700; padding: 7px 10px } .rqpdf tr.sh td { display: table-cell }
.rqpdf tr.sh span { display: inline-block; width: 50% } .rqpdf tr.sh span[dir=rtl] { text-align: right; font-family: 'IBM Plex Sans Arabic', sans-serif }
.rqpdf .foot { margin-top: 18px; text-align: center; font-family: 'Oswald', sans-serif; letter-spacing: .2em; color: #9C7F2C; font-size: 11px }
@media (max-width: 860px) {
  .lp-hero-in { grid-template-columns: 1fr; padding: 34px 22px 40px } .lp-hero h1 { font-size: 34px }
  .lp-stats { grid-template-columns: 1fr 1fr } .lp-levels, .lp-how ol, .lp-plist { grid-template-columns: 1fr }
  .lp-plist article { flex-direction: column } .rq-grid { grid-template-columns: 1fr } .rq-head { flex-direction: column } .lp-band-cta { justify-items: start }
}
@media (max-width: 560px) {
  .top .in { gap: 8px; padding: 8px 12px } .hlogo { height: 22px } .hacad { font-size: 12px; letter-spacing: .2em }
  .brand small { display: none } .navbtn { padding: 6px 6px; font-size: 13px } .langsel { padding: 5px 6px; font-size: 13px }
}

/* admin: issue certificate */
details.issue { margin: 0 0 14px } details.issue summary { list-style: none; display: inline-flex } details.issue summary::-webkit-details-marker { display: none }
.issue-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 10px; align-items: end }
.issue-grid .field { margin: 0 0 8px } .issue-grid .sel { width: 100%; padding: 10px; border: 1px solid #CFCCC4; border-radius: 8px; background: #fff }
@media (max-width: 860px) { .issue-grid { grid-template-columns: 1fr 1fr } }

.lp-contact { display: flex; flex-wrap: wrap; gap: 8px }
.btn.wa { background: #1FA855; color: #fff } .btn.wa::before { content: ""; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.6 14.1c-.2.7-1.4 1.3-2 1.4-.5.1-1.2.1-1.9-.1-.4-.1-1-.3-1.7-.6-3-1.3-4.9-4.3-5-4.5-.2-.2-1.2-1.6-1.2-3s.7-2.1 1-2.4c.3-.3.6-.3.8-.3h.6c.2 0 .4 0 .6.5l.9 2.1c.1.1.1.3 0 .5l-.3.5-.4.5c-.1.1-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.2 1.4 2.5 1.5.3.1.5.1.7-.1l.9-1.1c.2-.3.4-.2.7-.1l2 1c.3.1.5.2.5.3.1.1.1.7-.1 1.4z'/%3E%3C/svg%3E") center/contain no-repeat }
.btn.callb { background: var(--ink); color: var(--gold) } .btn.callb .mono { color: #fff; font-size: 13px }
.lp-mail { color: var(--ink); font-size: 14px; font-weight: 700 }
.lp-band-cta { justify-items: end } html[dir=rtl] .lp-band-cta { justify-items: start }
.lp-videos { grid-template-columns: repeat(2, 1fr) } .vid video { object-fit: contain; background: #000 }
@media (max-width: 760px) { .lp-videos { grid-template-columns: 1fr } }
