/* Naqaa v4 identity — drop-in replacement for rushd-pilot style.css.
   Preserves every class hook app.js uses; restyles to the approved v4 brand.
   Requires the Cairo font <link> added to index.html <head> (see INTEGRATION.md). */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;700;800;900&display=swap");

:root {
  --blue:#1295d8; --blue-deep:#0e6ea3; --blue-dark:#123f55;
  --orange:#f58a3c; --orange-deep:#e07020;
  --green:#8dc63f; --soft:#f2f8fb; --soft2:#fdf3ea;
  --ink:#1d2b33; --ink2:#5a6b75; --line:#dfe8ed; --bad:#c0392b;
}
* { box-sizing: border-box; }
html, body { margin:0; background:#fff; color:var(--ink); font-family:'Cairo', Tahoma, "Noto Naskh Arabic", system-ui, sans-serif; font-size:16px; line-height:1.75; }
#app { max-width: 1080px; margin: 0 auto; padding: 12px 20px 48px; }

/* header */
header.top { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); flex-wrap:wrap; background:rgba(255,255,255,.94); }
header.top img.rushd { width:84px; height:auto; } header.top img.naqaa { width:40px; height:auto; border-radius:22%; }
header.top h1 { font-size:22px; margin:0; color:var(--blue); flex:1; min-width:120px; font-weight:900; }

/* demo banner */
.demo { border:1.5px dashed var(--orange); background:var(--soft2); border-radius:12px; padding:8px 14px; font-size:13px; margin:10px 0; color:var(--orange-deep); font-weight:700; }

h2 { font-size:24px; color:var(--blue); margin:22px 0 10px; font-weight:800; }
h3 { font-size:17px; margin:14px 0 6px; font-weight:800; color:var(--blue-dark); }

/* buttons */
button, .btn { font:inherit; font-weight:800; min-height:44px; padding:9px 22px; border-radius:999px; border:1.5px solid var(--blue); background:var(--blue); color:#fff; cursor:pointer; transition:.15s; }
button:hover, .btn:hover { background:var(--blue-deep); border-color:var(--blue-deep); }
button.ghost { background:#fff; color:var(--blue); } button.ghost:hover { background:var(--soft); }
button.danger { background:#fff; color:var(--bad); border-color:var(--bad); }
button:disabled { opacity:.5; cursor:default; }
button:focus-visible, input:focus-visible, select:focus-visible { outline:3px solid var(--orange); outline-offset:1px; }

/* forms */
input, select, textarea { font:inherit; width:100%; min-height:44px; padding:9px 14px; border:1.5px solid #b9c8d0; border-radius:10px; background:#fff; }
input:focus, select:focus, textarea:focus { border-color:var(--blue); }
label { display:block; margin:12px 0 4px; font-size:14px; color:var(--ink2); font-weight:700; }

/* cards */
.card { border:1px solid var(--line); border-radius:16px; padding:18px; margin:12px 0; background:#fff; box-shadow:0 4px 16px rgba(18,149,216,.05); }
.login { max-width:420px; margin:24px auto; }

.row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; } .row > * { flex:0 0 auto; } .row > button, .row > .btn { max-width:100%; }
.grow { flex:1 1 200px !important; }
.err { color:var(--bad); font-size:14px; margin:8px 0; min-height:20px; }
.ok { background:#f3f9e8; border-radius:10px; padding:10px 14px; margin:10px 0; font-size:14px; }
.secret { font-family:ui-monospace, Menlo, monospace; font-size:20px; letter-spacing:1px; direction:ltr; text-align:center; background:#fffbe6; border:1px solid #e6d9a2; padding:10px; border-radius:10px; user-select:all; }

/* lecture list */
ul.list { list-style:none; margin:0; padding:0; } ul.list li { border-bottom:1px solid var(--line); }
.lesson { display:grid; grid-template-columns:32px 1fr auto; gap:10px; align-items:center; min-height:48px; padding:8px 6px; width:100%; background:none; border:0; color:inherit; text-align:start; border-radius:8px; }
.lesson:hover { background:var(--soft); }
.lesson:disabled { color:var(--ink2); } .num { color:var(--orange); font-weight:800; }
.state { font-size:13px; color:var(--ink2); } .state.done { color:var(--blue); font-weight:700; } .state.open { color:var(--orange); font-weight:700; }

/* progress */
.bar { height:9px; background:#e7eef2; border-radius:5px; overflow:hidden; margin:6px 0; } .bar span { display:block; height:100%; background:linear-gradient(90deg,var(--blue),var(--blue-deep)); }

/* video */
.video { aspect-ratio:16/9; background:var(--soft); border-radius:12px; display:grid; place-content:center; text-align:center; color:var(--blue-deep); padding:12px; }
.video iframe { width:100%; height:100%; border:0; border-radius:12px; } .video:has(iframe){padding:0;display:block;overflow:hidden}

/* quiz */
.opt { display:flex; gap:10px; align-items:center; min-height:44px; padding:8px 12px; border:1.5px solid var(--line); border-radius:10px; margin:6px 0; transition:.15s; }
.opt:hover { border-color:var(--blue); background:var(--soft); }
.opt input { width:20px; min-height:20px; }

table { border-collapse:collapse; width:100%; font-size:14px; } th, td { padding:8px; border-bottom:1px solid var(--line); text-align:start; vertical-align:top; } .scroll { overflow-x:auto; }

/* tabs */
nav.tabs { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
nav.tabs button { background:#fff; color:var(--blue); }
nav.tabs button[aria-current="true"] { background:var(--blue); color:#fff; }

.muted { color:var(--ink2); font-size:13px; }
@media (min-width: 720px) { #app { padding: 20px 32px 64px; } header.top img.rushd { width:96px; } }

/* ===== v4 public sections (landing page markup in public-home.html) ===== */
section.v4 { padding:44px 0; }
section.v4.alt { background:var(--soft); }
.v4-wrap { max-width:1080px; margin:0 auto; padding:0 20px; }
.v4-sec-head { text-align:center; margin-bottom:28px; }
.v4-sec-head .kick { color:var(--green); font-weight:800; font-size:14px; }
.v4-sec-head h2 { font-size:30px; color:var(--blue); margin:4px 0 6px; }
.v4-sec-head p { color:var(--ink2); max-width:560px; margin:6px auto 0; font-size:15.5px; }

/* hero */
.v4-hero { background:linear-gradient(180deg,var(--soft),#fff); padding:52px 0 40px; text-align:center; }
.v4-hero .heart-frame { position:relative; display:inline-block; padding:26px 40px; }
.v4-hero .heart-frame::before { content:""; position:absolute; inset:0; border:3px dashed var(--orange); border-radius:52% 48% 55% 45%/58% 55% 45% 42%; transform:rotate(-3deg); }
.v4-hero img.logo { width:150px; height:150px; object-fit:contain; position:relative; border-radius:22%; }
.v4-hero h1 { font-size:52px; color:var(--blue); font-weight:900; margin:18px 0 4px; }
.v4-hero .tag { font-size:21px; color:var(--orange-deep); font-weight:800; }
.v4-hero p.lead { max-width:640px; margin:14px auto 0; color:var(--ink2); font-size:16.5px; }
.v4-affil { display:inline-flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line); border-radius:999px; padding:7px 18px; font-size:13px; color:var(--ink2); font-weight:700; margin-top:16px; box-shadow:0 4px 14px rgba(18,149,216,.07); }
.v4-affil img { width:22px; height:22px; object-fit:contain; }
.v4-hero .cta { margin-top:22px; display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.btn.orange { background:var(--orange); border-color:var(--orange); } .btn.orange:hover { background:var(--orange-deep); border-color:var(--orange-deep); }
.btn.ghost2 { background:#fff; color:var(--blue); border:2px solid var(--blue); }
a.btn { text-decoration:none; display:inline-block; }

/* about */
.v4-about { display:grid; grid-template-columns:1.2fr .8fr; gap:28px; align-items:center; }
.v4-about h2 { font-size:27px; color:var(--blue); margin:0 0 10px; }
.v4-about p { color:var(--ink2); font-size:15.5px; margin-bottom:10px; }
.v4-about .side { background:#fff; border:1px solid var(--line); border-radius:18px; padding:20px; text-align:center; box-shadow:0 8px 24px rgba(18,149,216,.08); }
.v4-about .side .logos { display:flex; align-items:center; justify-content:center; gap:18px; }
.v4-about .side .logos img { width:84px; height:84px; object-fit:contain; }
.v4-about .side .logos img:first-child { border-radius:22%; }
.v4-about .side b { display:block; color:var(--blue-dark); font-size:17px; margin-top:10px; }
.v4-about .side .center { display:block; color:var(--ink2); font-size:12.5px; margin-top:4px; line-height:1.6; }

/* programs */
.v4-prog-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; }
.v4-prog { background:#fff; border:1px solid var(--line); border-radius:18px; padding:22px 16px; text-align:center; transition:.2s; }
.v4-prog:hover { transform:translateY(-4px); box-shadow:0 10px 26px rgba(18,149,216,.12); }
.v4-prog .ic { width:76px; height:76px; margin:0 auto 12px; display:grid; place-content:center; border-radius:50%; background:var(--soft); }
.v4-prog .ic img { width:64px; height:64px; object-fit:contain; }
.v4-prog .ic svg { width:42px; height:42px; }
.v4-prog h3 { font-size:18px; margin:0 0 4px; }
.v4-prog p { color:var(--ink2); font-size:13.5px; line-height:1.7; }

/* articles / qa / faq */
.v4-art-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.v4-art { background:#fff; border:1px solid var(--line); border-radius:16px; padding:18px; text-align:center; }
.v4-art h3 { font-size:15.5px; margin:8px 0 4px; }
.v4-art p { color:var(--ink2); font-size:13px; }
.v4-chip { display:inline-block; background:var(--soft); color:var(--blue); font-size:12px; font-weight:800; padding:3px 12px; border-radius:999px; }
.v4-chip.green { background:#f3f9e8; color:#6a9a2a; }
.v4-chip.soon { background:var(--soft2); color:var(--orange-deep); }
.v4-cats { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin:0 0 20px; }
.v4-cats span { background:#fff; border:1.5px solid var(--blue); color:var(--blue); border-radius:999px; padding:4px 16px; font-size:13px; font-weight:800; }
.v4-qa-note { max-width:640px; margin:0 auto; background:#fff; border:1.5px dashed var(--green); border-radius:16px; padding:20px 22px; text-align:center; color:var(--ink2); font-size:14.5px; }
.v4-faq { max-width:720px; margin:0 auto; }
.v4-faq .item { background:#fff; border:1px solid var(--line); border-radius:14px; padding:14px 18px; margin-bottom:10px; }
.v4-faq .item b { display:block; color:var(--blue-dark); font-size:15px; }
.v4-faq .item p { color:var(--ink2); font-size:13.5px; margin:3px 0 0; }
.v4-faq .item p.pending { color:var(--orange-deep); }

/* footer */
footer.v4 { background:var(--blue-dark); color:#dcebf2; padding:34px 0 20px; text-align:center; }
footer.v4 .f-brand { display:flex; align-items:center; justify-content:center; gap:10px; margin-bottom:8px; }
footer.v4 .f-brand img { width:40px; border-radius:22%; }
footer.v4 .f-brand b { color:#fff; font-size:20px; }
footer.v4 .f-affil { display:flex; align-items:center; justify-content:center; gap:8px; margin:10px 0 4px; color:#bcd9e8; font-size:13px; font-weight:700; }
footer.v4 .f-affil img { width:26px; height:26px; object-fit:contain; background:#fff; border-radius:8px; padding:3px; }
footer.v4 nav { display:flex; gap:18px; justify-content:center; margin:12px 0; font-size:14px; flex-wrap:wrap; }
footer.v4 nav a { color:#bcd9e8; text-decoration:none; }
footer.v4 small { color:#8fb4c6; font-size:12.5px; }

@media (max-width:720px) {
  .v4-hero h1 { font-size:38px; }
  .v4-about, .v4-art-grid { grid-template-columns:1fr; }
  section.v4 { padding:34px 0; }
}

/* v4 public umbrella header (Naqaa identity) — used on public landing only.
   Programme/learner views keep the existing header.top with the Rushd logo. */
header.v4-top { position:sticky; top:0; background:rgba(255,255,255,.94); border-bottom:1px solid var(--line); z-index:5; }
header.v4-top .topbar { display:flex; align-items:center; gap:14px; padding-top:10px; padding-bottom:10px; }
header.v4-top .brand { display:flex; align-items:center; gap:10px; }
header.v4-top .brand img { width:44px; height:44px; object-fit:contain; border-radius:22%; }
header.v4-top .brand b { font-size:22px; color:var(--blue); font-weight:900; }
header.v4-top nav { display:flex; gap:18px; margin-inline-start:auto; font-weight:700; font-size:14.5px; }
header.v4-top nav a { color:var(--ink); text-decoration:none; }
header.v4-top nav a:hover { color:var(--blue); }
@media (max-width:720px) { header.v4-top nav { display:none; } }

.lesson.exam { background:#fff8f2; border-radius:8px; } .lesson a { color:var(--blue); }

.opt.is-right { border-color:#2e8b57; background:#eef8f1; }
.opt.is-wrong { border-color:#c0392b; background:#fdf0ee; }
.fb { margin-top:10px; padding:10px 14px; border-radius:10px; font-size:14px; line-height:1.8; }
.fb-ok { background:#eef8f1; color:#1d5f3a; }
.fb-bad { background:#fdf0ee; color:#8a2a20; }
.fb .why { margin-top:4px; color:var(--ink,#334); }

.secret.link{font-size:13px;word-break:break-all;letter-spacing:0;user-select:all}
.v4-prog { display:flex; flex-direction:column; }
.v4-prog .morebtn { margin-top:auto; align-self:center; display:inline-block; padding:8px 18px; border-radius:20px; background:var(--soft); color:var(--blue); font-weight:800; font-size:14px; text-decoration:none; border:1px solid var(--line); }
.v4-prog p { margin-bottom:16px; }
.v4-prog .morebtn:hover, .v4-prog .morebtn:focus-visible { background:var(--blue); color:#fff; outline:none; }
.prog-page .v4-wrap { max-width:760px; }
.prog-head { display:flex; align-items:center; gap:16px; margin:18px 0 8px; }
.prog-head img { width:72px; height:72px; object-fit:contain; }
.prog-head h2 { font-size:30px; color:var(--blue); margin:0; }
.prog-intro { font-size:17px; line-height:1.9; }
.prog-page h3 { color:var(--blue); margin:22px 0 8px; }
.prog-list { padding-inline-start:22px; line-height:2; font-size:16px; }

/* v6 homepage polish */
header.v4-top .brand img { width:auto; height:72px; border-radius:0; }
header.v4-top .topbar { padding-top:8px; padding-bottom:8px; }
.v4-hero .heart-frame { padding:30px 46px; }
.v4-hero img.logo { width:auto; height:190px; border-radius:0; }
.v4-hero .tag { font-size:24px; margin-top:4px; }
.v4-hero p.lead2 { font-size:19px; font-weight:800; color:var(--blue-dark); line-height:1.9; margin-top:10px; }
.v4-social { display:flex; gap:14px; align-items:center; justify-content:center; flex-wrap:wrap; margin-top:14px; font-size:14px; font-weight:700; color:var(--ink2); }
.v4-social a { color:var(--blue); text-decoration:none; direction:ltr; background:#fff; border:1px solid var(--line); border-radius:999px; padding:4px 14px; }
.v4-social a:hover { background:var(--soft); }
.v4-social.light { color:#bcd9e8; margin:12px 0 6px; }
.v4-social.light a { background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.25); color:#fff; }
.v4-about .side .logos img { width:auto; height:100px; }
.v4-about .side .logos img:first-child { border-radius:0; }
.v4-sec-head h2.big { font-size:46px; font-weight:900; color:var(--blue); margin:0 0 6px; position:relative; display:inline-block; padding-bottom:10px; }
.v4-sec-head h2.big::after { content:""; position:absolute; inset-inline:25% ; bottom:0; height:5px; border-radius:5px; background:linear-gradient(90deg,var(--orange),var(--green)); }
.v4-prog h3 .wm { height:44px; width:auto; max-width:100%; object-fit:contain; vertical-align:middle; }
footer.v4 .f-brand img { width:auto; height:64px; background:#fff; border-radius:14px; padding:6px 12px; }
@media (max-width:720px) { .v4-hero img.logo { height:140px; } .v4-sec-head h2.big { font-size:36px; } header.v4-top .brand img { height:56px; } .v4-hero .tag { font-size:19px; } }
/* programme page extras */
.prog-head img.wm { height:90px; width:auto; max-width:100%; object-fit:contain; }
.prog-lectures { list-style:none; padding:0; margin:0 0 14px; display:grid; gap:8px; }
.prog-lectures li { background:#fff; border:1px solid var(--line); border-radius:12px; padding:10px 14px; display:flex; gap:12px; align-items:center; }
.prog-lectures .n { background:var(--blue); color:#fff; border-radius:50%; width:30px; height:30px; flex:none; display:grid; place-content:center; font-weight:800; font-size:14px; }
.prog-lectures a { color:var(--blue-dark); font-weight:700; text-decoration:none; }
.prog-lectures a:hover { text-decoration:underline; }
.prog-note { background:var(--soft2); border:1.5px dashed var(--orange); border-radius:12px; padding:10px 14px; font-size:13.5px; color:var(--orange-deep); margin:10px 0; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.v4-hero .tag svg.heart{vertical-align:-3px;margin-inline-start:4px}

.v4-about .side .logos a{display:inline-flex;line-height:0}
.v4-about .side .logos a:focus-visible{outline:3px solid var(--orange);outline-offset:4px;border-radius:8px}

.tl{margin:18px 0}
.tl-row{display:flex;flex-wrap:wrap;gap:10px 0;align-items:center;margin:10px 0 12px}
.tl-node{background:none;border:0;padding:4px 0;display:flex;align-items:center;cursor:pointer;font:inherit}
.tl-node:not(:last-child)::after{content:"";display:block;width:18px;height:3px;background:var(--line);margin:0 2px}
.tl-dot{width:38px;height:38px;border-radius:50%;background:#fff;border:2px solid var(--blue);color:var(--blue-dark);display:grid;place-content:center;font-weight:800;font-size:15px;transition:.15s}
.tl-node:hover .tl-dot,.tl-node.on .tl-dot,.tl-node:focus-visible .tl-dot{background:var(--blue);color:#fff;transform:scale(1.1)}
.tl-node:focus-visible{outline:3px solid var(--orange);outline-offset:2px;border-radius:20px}
.tl-panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;box-shadow:0 8px 24px rgba(18,149,216,.1)}
.tl-panel strong{color:var(--blue-dark);font-size:17px}
.tl-panel p{margin:6px 0;color:var(--ink2)}
.tl-panel ul{margin:6px 18px 8px;padding:0}
.tl-el{display:flex;flex-wrap:wrap;gap:6px}
.tl-el span{background:#eef7fd;border-radius:999px;padding:3px 10px;font-size:13px;color:var(--blue-dark)}
.prog-sessions{margin:18px 0;font-weight:700;color:var(--blue-dark)}
@media (max-width:560px){.tl-dot{width:34px;height:34px}.tl-node:not(:last-child)::after{width:8px}}

.v4-social a.soc{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:#fff;border:1px solid var(--line);color:var(--blue);padding:0}
.v4-social a.soc.fb{color:#1877f2}.v4-social a.soc.ig{color:#d6249f}.v4-social a.soc.yt{color:#e00}.v4-social a.soc.tt{color:#111}.v4-social a.soc.tg{color:#229ed9}
.v4-social a.soc:hover{transform:translateY(-2px);box-shadow:0 6px 14px rgba(0,0,0,.12)}
.v4-social a.soc:focus-visible{outline:3px solid var(--orange);outline-offset:3px}

.prog-apply{margin:22px 0}.prog-apply .btn{display:inline-block}

.vid-box{margin:22px 0}.vid-list{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:8px}
.vid-item{width:100%;display:flex;gap:10px;align-items:center;text-align:start;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px;font:inherit;color:var(--ink2);cursor:pointer}
.vid-item:hover{border-color:var(--blue-dark)}.vid-n{flex:none;min-width:52px;text-align:center;background:var(--blue-dark);color:#fff;border-radius:999px;padding:2px 10px;font-weight:700;font-size:14px}
.vid-player strong{display:block;margin-bottom:8px;color:var(--blue-dark)}.vid-player iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:12px;background:#000}

.ser-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.ser-card{border:1px solid var(--line);border-radius:14px;background:#fff;padding:12px 16px}
.ser-head{display:flex;align-items:center;gap:12px}
.ser-mark{width:44px;height:44px;flex:none}
.ser-name{font-weight:800;font-size:19px;color:var(--blue-dark);text-decoration:none}
.ser-tg{margin-inline-start:auto;border:0;background:var(--soft);color:var(--blue);border-radius:999px;width:34px;height:34px;font-size:16px;cursor:pointer;transition:transform .2s}
.ser-drop{display:none;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.ser-drop p{margin:6px 0}
.ser-drop a{color:var(--blue);font-weight:700;text-decoration:none}
.ser-drop a:hover,.ser-drop a:focus{text-decoration:underline}
.ser-card:hover .ser-drop,.ser-card:focus-within .ser-drop,.ser-card.open .ser-drop{display:block}
.ser-card:hover .ser-tg,.ser-card.open .ser-tg{transform:rotate(180deg)}
.sem-entry{border:1px solid var(--line);border-radius:14px;background:#fff;padding:16px;margin-bottom:14px}
.sem-entry h4{margin:0 0 10px;color:var(--blue-dark);font-size:18px}
.sem-entry p{line-height:1.9;margin:8px 0}
.sem-entry iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:12px;background:#000}
.sem-entry a{color:var(--blue);font-weight:700;text-decoration:none}
.v4-prog h3 .wm-lg { height:96px; }
.v4-prog h3 { min-height:44px; display:flex; align-items:center; justify-content:center; }
header.v4-top .btn-contact { background:#fff; color:var(--blue); border:2px solid var(--blue); }
header.v4-top .btn-contact:hover { background:var(--blue); color:#fff; }
@media (max-width:480px) { header.v4-top .topbar { gap:8px; } header.v4-top .btn { padding:9px 14px; font-size:14px; } }

.act-status{display:inline-block;margin:0 0 6px;padding:3px 12px;border-radius:999px;background:#eef7e3;color:#4f7f1b;font-size:13px;font-weight:700}.act-img{display:block;width:100%;max-width:640px;height:auto;margin:10px auto;border-radius:12px;border:1px solid var(--line)}
.act-gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:12px 0}.act-gal img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;display:block}.act-vids{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;margin:12px 0}.act-vids video{width:100%;border-radius:10px;background:#000;aspect-ratio:16/9}
footer.v4 .f-brand img { height:110px; padding:8px 16px; }
@media (max-width:720px){ footer.v4 .f-brand img { height:96px; } }
.login-note{background:#fff7e6;border:1px solid #f0c36b;border-radius:10px;padding:10px 12px;margin:0 0 12px;line-height:1.7}

.cert-wrap{margin:12px 0;max-width:900px}
.cert{position:relative;container-type:inline-size;overflow:hidden;background:#fff;border:1px solid #d9e4ee;border-radius:10px;line-height:1.4;text-align:center;color:#1d2b3a;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.cert img{position:absolute;display:block;mix-blend-mode:multiply}
.cert-proto{position:absolute;z-index:3;left:50%;transform:translateX(-50%);color:#c0392b;font-weight:700;border:1.5px dashed #c0392b;background:#fff;padding:0 2cqw;border-radius:99px;font-size:1.9cqw;white-space:nowrap}
.cert-no{position:absolute;z-index:3;font-size:1.3cqw;color:#6b7b8a}
.cert-grad{aspect-ratio:1280/904}.cert-grad>*{position:absolute}.cert-grad .cert-proto{top:1.2%}
.cg-ribbon{left:3.5%;top:0;width:13.3%}.cg-tr{left:76.2%;top:3.9%;width:20.7%}.cg-bl{left:2.7%;top:67.5%;width:20.7%}.cg-sw{left:70.7%;top:42%;width:29.3%}.cg-title{left:33.2%;top:6.1%;width:32.8%}
.cert-grad .cg-congrats{left:20%;right:20%;top:29.5%;font-size:2.7cqw}
.cert-grad .cg-name{left:15%;right:15%;top:35.5%;font-size:6.2cqw;font-weight:700;color:#1d4a73;line-height:1.3}
.cg-rule{left:19%;right:19%;top:51.5%;border-top:2px solid #c9a24a}
.cert-grad .cg-body{left:14%;right:14%;top:57%;font-size:2.7cqw}.cert-grad .cg-body.s{top:63.5%;font-size:2.5cqw;line-height:1.55}
.cg-datel,.cg-sigl{top:75.5%;font-size:1.9cqw;border-bottom:1px solid #c9a24a;padding-bottom:.4cqw}
.cg-datel{left:64%;width:20%}.cg-sigl{left:17%;width:24%}
.cg-date{left:60%;width:28%;top:82%;font-size:2.2cqw}.cg-sig{left:17%;width:24%;top:82%;font-size:1.5cqw;color:#6b7b8a}
.cg-logo{left:41%;top:79.5%;width:17.5%;mix-blend-mode:normal!important}.cert-grad .cert-no{left:41%;width:18%;top:93.5%}
.cert-read{aspect-ratio:1/1;background:linear-gradient(135deg,#fbf3e2,#f4e6c8);border:0;box-shadow:inset 0 0 0 1.2cqw #12305a,inset 0 0 0 1.6cqw #c9a24a,inset 0 0 0 2.6cqw #fbf3e2,inset 0 0 0 2.9cqw #c9a24a}
.cert-read>*{position:absolute;left:12%;right:12%}.cert-read .cert-proto{top:4.2%;left:50%;right:auto}
.cr-logo{left:auto!important;right:6%!important;top:5%;width:11%;mix-blend-mode:normal!important}
.cr-title{top:17%;font-size:8cqw;font-weight:800;color:#12305a;line-height:1.2}.cr-sub{top:30%;font-size:2.8cqw;color:#8a6a1f}
.cr-name{top:36%;font-size:7cqw;font-weight:700;border:1.5px solid #c9a24a;background:#fff8e8;padding:1.6cqw 0;border-radius:1.4cqw;left:14%;right:14%;line-height:1.3}
.cr-line{top:53.6%;font-size:3cqw}.cr-line.s{top:70%;font-size:2.6cqw}.cr-book{top:58.4%;font-size:7.5cqw;font-weight:800;color:#8a5a12;line-height:1.3}
.cr-dua{top:78%;font-size:2.7cqw;line-height:1.6;left:16%;right:16%}.cr-date{top:90%;font-size:2cqw;color:#6b7b8a}.cert-read .cert-no{left:6%;right:auto;top:92.5%}
.cert-sig{display:none}
.cert-code{position:absolute;z-index:3;font-size:1.9cqw;color:#44566a}
.cert-grad .cert-code{left:30%;right:30%;top:52.4%;text-align:center;font-size:1.8cqw}
.cert-read .cert-code{left:30%!important;right:30%!important;top:49%;text-align:center}
@media print{@page{size:landscape;margin:8mm}header.top,.demo,.tabs,.no-print,h2,h3,.muted,.card>.muted{display:none!important}.cert-wrap{max-width:255mm;margin:0 auto;break-inside:avoid;page-break-after:always}.cert-wrap:has(.cert-read){max-width:180mm}.cert-wrap:last-of-type{page-break-after:auto}.cert{border-color:#999}}
.listen{margin:.6rem 0}
.linklike{background:none;border:0;padding:0;color:inherit;font:inherit;text-decoration:underline;cursor:pointer;text-align:start}
input[type=radio], input[type=checkbox] { width:20px; min-height:20px; height:20px; padding:0; flex:none; accent-color:var(--blue); }
.row > input:not([type=radio]):not([type=checkbox]):not([type=number]) { flex:1 1 220px; min-width:0; }
.row { margin:6px 0; }
html{scroll-padding-top:100px}

header.top{justify-content:flex-end}
.news-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.news-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:8px;text-align:start}
.news-card.pinned{border-color:var(--orange)}
.news-card img.news-thumb{width:100%;aspect-ratio:4/3;object-fit:contain;background:#f4f1ea;border-radius:12px}
.news-card h3{margin:0;font-size:18px;color:var(--ink)}
.news-card p{margin:0;color:var(--ink2);font-size:15px}
.news-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:13px;color:var(--ink2)}
.news-kind{background:#eef7e2;color:#4f7d1b;border-radius:999px;padding:2px 10px;font-weight:700}
.news-pin{background:#fdf0e3;color:#b8620f;border-radius:999px;padding:2px 10px;font-weight:700}
.news-card .btn{align-self:flex-start;margin-top:auto}
[hidden]{display:none!important}
header.v4-top nav { gap:13px; font-size:14px; }
header.v4-top nav a { white-space:nowrap; }
header.v4-top .btn { white-space:nowrap; padding-inline:16px; }
button.locked{opacity:.55;cursor:not-allowed}

.news-sum{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.news-modal{position:fixed;inset:0;z-index:1000;background:rgba(20,20,20,.6);display:flex;align-items:flex-start;justify-content:center;overflow-y:auto;padding:16px}
.news-sheet{background:#fff;border-radius:18px;max-width:720px;width:100%;padding:18px;display:flex;flex-direction:column;gap:12px;margin:auto}
.news-sheet h3{margin:0;font-size:22px}
.news-full{width:100%;height:auto;border-radius:12px;display:block}
.news-body{white-space:pre-wrap;line-height:1.9;font-size:17px;color:var(--ink)}
.news-x{align-self:flex-start}

.news-slider{display:block}
.news-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:18px;direction:rtl}
.news-track::-webkit-scrollbar{display:none}
.news-slide{flex:0 0 100%;scroll-snap-align:start;box-sizing:border-box;background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:center;text-align:start}
.news-slide.pinned{border-color:var(--orange)}
.news-imgbtn{border:0;background:#f4f1ea;padding:0;border-radius:14px;cursor:pointer;display:block;width:100%}
.news-slide img.news-thumb{width:100%;height:auto;max-height:440px;aspect-ratio:auto;object-fit:contain;background:#f4f1ea;border-radius:14px;display:block}
.news-text{display:flex;flex-direction:column;gap:10px}
.news-slide h3{margin:0;font-size:24px;color:var(--ink)}
.news-slide .news-sum{-webkit-line-clamp:6;font-size:16px;color:var(--ink2);margin:0}
.news-ctl{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:12px}
.news-dots{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.news-dot{width:12px;height:12px;min-width:12px;padding:0;border-radius:50%;border:2px solid var(--blue,#1596d6);background:#fff;cursor:pointer}
.news-dot.on{background:var(--blue,#1596d6)}
.news-arrow{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:#fff;font-size:26px;line-height:1;cursor:pointer;color:var(--ink)}
@media (max-width:720px){.news-slide{grid-template-columns:1fr;gap:12px}.news-slide h3{font-size:20px}}
@media (prefers-reduced-motion:reduce){.news-track{scroll-behavior:auto}}
.news-dots{align-items:center}
.news-dot{width:12px;height:12px;min-width:12px;min-height:12px;max-height:12px;box-sizing:border-box;padding:0;flex:0 0 12px}
.news-arrow{min-width:44px;min-height:44px;padding:0}
.news-slide img.news-thumb{max-height:340px}
.news-slide h3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.news-track{align-items:flex-start}
.news-slide{align-self:flex-start}
@media (max-width:720px){.news-slide img.news-thumb{max-height:300px}.news-slide h3{-webkit-line-clamp:3}}

nav.tabs .site-link{display:inline-block;background:#fff;color:var(--blue);border:1px solid var(--blue);border-radius:8px;padding:8px 14px;text-decoration:none;font-weight:600;margin-inline-start:auto}
nav.tabs .site-link:hover{background:var(--blue);color:#fff}

/* v-next: mobile menu button for tab bars */
nav.tabs .menu-btn{display:none}
@media (max-width:720px){nav.tabs .menu-btn{display:block;width:100%;text-align:start}nav.tabs:not(.open)>button:not(.menu-btn),nav.tabs:not(.open)>a{display:none}nav.tabs.open>button,nav.tabs.open>a{flex:1 1 45%}}
@media print{nav.tabs .menu-btn{display:none!important}}

#stg-banner{position:sticky;top:0;z-index:99999;background:#b45309;color:#fff;text-align:center;padding:6px 10px;font:600 13px/1.4 system-ui,sans-serif}
