/* NotesPunjab MCQ Engine — v3.8.7 mobile-readability design. Self-hosted fonts (SIL OFL). */
@font-face{font-family:"NP Noto Sans";src:url(fonts/noto-sans-latin-400-normal.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"NP Noto Sans";src:url(fonts/noto-sans-latin-600-normal.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"NP Noto Sans";src:url(fonts/noto-sans-latin-700-normal.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"NP Nastaliq";src:url(fonts/noto-nastaliq-urdu-arabic-400-normal.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:"NP Nastaliq";src:url(fonts/noto-nastaliq-urdu-arabic-700-normal.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFF}

.npmcq{--np-font:"NP Noto Sans","Noto Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;--np-blue:#0f3d7a;--np-text:#0b1f33;box-sizing:border-box;font-family:var(--np-font);font-size:18px;font-weight:400;line-height:1.5;max-width:760px;margin:0 auto;color:var(--np-text);-webkit-text-size-adjust:100%;text-rendering:optimizeLegibility}
.npmcq *{box-sizing:border-box}
/* Buttons do not inherit fonts by default: force the engine font everywhere. */
.npmcq button,.npmcq p,.npmcq h1,.npmcq div,.npmcq span,.npmcq b,.npmcq strong{font-family:inherit;letter-spacing:normal;text-transform:none}

/* Navigation screens */
.npmcq-nav{padding:16px 14px 24px}
.npmcq-brand{text-align:center;margin:0 0 18px}
.npmcq-site{font-size:30px;font-weight:700;color:var(--np-blue);line-height:1.2}
.npmcq-tagline{margin-top:4px;color:#33506e;font-size:16px;font-weight:600}
.npmcq-nav h1{text-align:center;color:var(--np-blue);font-size:28px;font-weight:700;line-height:1.3;margin:14px 0 18px}
.npmcq-cards{display:grid;gap:14px}
.npmcq-cards button,.npmcq-ready button,.npmcq-result button,.npmcq-restart{width:100%;min-height:66px;border:2px solid #1f5aa6;border-radius:16px;background:linear-gradient(180deg,#ffffff,#e8f1ff);box-shadow:0 5px 0 #0f3d7a,0 8px 14px #0f3d7a26;font-size:22px;font-weight:700;line-height:1.35;padding:14px 16px;color:var(--np-blue);cursor:pointer;touch-action:manipulation;margin-bottom:4px;transition:transform .06s}
.npmcq-cards button:active,.npmcq-ready button:active,.npmcq-result button:active,.npmcq-restart:active,.npmcq-board:active{transform:translateY(4px);box-shadow:0 1px 0 #0f3d7a}
.npmcq-options button:active,.npmcq-pressed{transform:translateY(6px);box-shadow:0 0 0 var(--od,#0003)!important}
.npmcq-cards button:disabled{opacity:.5;cursor:not-allowed}
.npmcq-back{border:0;background:transparent;color:#1f5aa6;font-weight:700;font-size:18px;padding:10px 2px;cursor:pointer;min-height:44px}
.npmcq-ready{text-align:center;background:#f6faff;border:2px solid #dbe8f7;border-radius:16px;padding:20px 16px}
.npmcq-ready p{margin:6px 0 14px;font-size:20px;font-weight:600;line-height:1.5;color:var(--np-text)}
.npmcq-ready button{margin-top:10px;background:linear-gradient(180deg,#0aa35a,#067a42);color:#fff;border:0;box-shadow:0 6px 0 #045530,0 10px 18px #0003;font-size:24px;text-shadow:0 1px 2px #0004}
.npmcq-ready button:active{box-shadow:0 1px 0 #045530}

/* Home: hero + colourful 3D board buttons */
.npmcq-hero{background:linear-gradient(180deg,#0f3d7a,#1f5aa6);color:#fff;text-align:center;padding:20px 14px 24px;border-radius:20px;margin:0 0 6px}
.npmcq .npmcq-hero h2{font-size:30px;font-weight:700;line-height:1.25;margin:0;color:#fff}
.npmcq-hero p{font-size:18px;font-weight:600;margin:6px 0 0;color:#fff}
.npmcq-chips{display:flex;justify-content:center;gap:8px;margin-top:14px;flex-wrap:wrap}
.npmcq-chips span{background:#ffffff26;border:1px solid #ffffff66;border-radius:999px;padding:6px 12px;font-size:16px;font-weight:600}
.npmcq-board{display:block;width:100%;border:0;border-radius:16px;color:#fff;font-weight:700;cursor:pointer;touch-action:manipulation;text-shadow:0 1px 2px #0005;background:linear-gradient(180deg,var(--c1),var(--c2));box-shadow:0 5px 0 var(--d),0 8px 14px #0003;transition:transform .06s;overflow-wrap:anywhere;line-height:1.25}
.npmcq-board small{display:block;font-size:15px;font-weight:600;margin-top:2px;color:#fffe}
.npmcq-board:active{box-shadow:0 1px 0 var(--d)}
.npmcq-fed{--c1:#0aa35a;--c2:#067a42;--d:#045530;font-size:28px;padding:20px 16px 18px;margin-bottom:6px}
.npmcq-group{font-size:18px;font-weight:700;color:#33506e;margin:18px 2px 12px}
.npmcq-board-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px 10px}
.npmcq-board-grid .npmcq-board{font-size:18px;padding:16px 2px 14px;min-height:76px}
.npmcq-c1{--c1:#ff7a18;--c2:#e85d04;--d:#9c3d00}.npmcq-c2{--c1:#e63946;--c2:#c1121f;--d:#7d0c14}.npmcq-c3{--c1:#7b2ff7;--c2:#5a189a;--d:#3c0f68}
.npmcq-c4{--c1:#00a6fb;--c2:#0582ca;--d:#034a78}.npmcq-c5{--c1:#f72585;--c2:#c9186c;--d:#860f47}.npmcq-c6{--c1:#2ec4b6;--c2:#1a9e92;--d:#0d6159}
.npmcq-c7{--c1:#ffb703;--c2:#fb8500;--d:#a35600}.npmcq-c8{--c1:#3a86ff;--c2:#2667d9;--d:#153f8a}.npmcq-c9{--c1:#43aa8b;--c2:#2d8a6e;--d:#185443}
.npmcq-soon{text-align:center;font-size:20px;font-weight:600;color:#33506e;background:#fff;border:2px dashed #c9dcf3;border-radius:16px;padding:28px 16px}

/* Countdown */
.npmcq-count{min-height:60vh;display:grid;place-items:center;font-size:110px;font-weight:700;background:#000;color:#ffdf00;border-radius:16px}

/* Active test — professional exam style */
.npmcq-test{background:linear-gradient(160deg,#1b1464 0%,#2b1b7a 45%,#0f3d7a 100%);color:#fff;padding:16px 14px 20px;border-radius:20px;border:4px solid #ffdf00;box-shadow:0 0 0 3px #1b146455,0 12px 30px #0005;margin:0 8px}
.npmcq-bar{display:flex;justify-content:space-between;gap:12px;align-items:center;color:#ffdf00;font-size:17px;font-weight:600;letter-spacing:.2px}
.npmcq-bar strong{font-weight:600}
.npmcq-bar span{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:#e11d2a;border:3px solid #ffffff;box-shadow:0 0 0 4px #e11d2a55;color:#fff;font-size:21px;font-weight:700;font-variant-numeric:tabular-nums;padding:0}
.npmcq-test::before{content:"";display:block}
.npmcq-question{font-size:24px;font-weight:700;line-height:1.5;margin:16px 0 32px;overflow-wrap:anywhere;color:#fff;padding-top:14px;border-top:1px solid #ffffff33}
.npmcq-options{display:grid;gap:10px}
.npmcq-options button{display:flex;align-items:center;gap:14px;width:100%;min-height:60px;text-align:start;border:2.5px solid var(--oc,#ffffff70);box-shadow:0 6px 0 var(--od,#0003);border-radius:12px;background:#0d1240b3;color:#ffffff;padding:12px 14px;font-size:22px;font-weight:700;text-shadow:0 1px 2px #0006;line-height:1.45;cursor:pointer;touch-action:manipulation;overflow-wrap:anywhere;transition:transform .07s,background .1s,box-shadow .07s;margin-bottom:6px}
@media(hover:hover){.npmcq-options button:hover{border-color:#ffdf00}}
.npmcq-options button:disabled{cursor:default}
.npmcq-options b{flex:0 0 auto;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--oc,#ffdf00);color:#fff;font-size:19px;font-weight:700;text-shadow:0 1px 2px #0005}
.npmcq-options button:nth-child(1){--oc:#00b4ff;--od:#0077aa}.npmcq-options button:nth-child(2){--oc:#22c55e;--od:#15803d}.npmcq-options button:nth-child(3){--oc:#ff8a00;--od:#b35f00}.npmcq-options button:nth-child(4){--oc:#ff3d8b;--od:#b0105a}
.npmcq-pressed{background:var(--oc,#ffdf00)!important;color:#fff!important;border-color:#fff!important;transform:translateY(6px)!important}
.npmcq-pressed b{background:#fff!important;color:var(--od,#1b1464)!important;text-shadow:none}
.npmcq-options button:disabled:not(.npmcq-pressed){opacity:.55}
.npmcq-ad{display:none}
.npmcq-ad.npmcq-ad-active{display:block;position:relative;min-height:100px;max-height:280px;overflow:hidden;background:#e9eef5;border-radius:10px;text-align:center}
.npmcq-ad.npmcq-ad-active::before{content:"Advertisement";position:absolute;top:4px;left:0;right:0;font-size:11px;color:#6b7c93;letter-spacing:.5px;pointer-events:none}
.npmcq-ad-top.npmcq-ad-active{margin:0 0 26px}
.npmcq-ad-bottom.npmcq-ad-active{margin:30px 0 0}

/* Result */
.npmcq-result{text-align:center;padding:24px 16px}
.npmcq-result h1{color:var(--np-blue);font-size:30px;font-weight:700;margin:0 0 8px}
.npmcq-score{font-size:64px;font-weight:700;margin:12px 0;color:var(--np-text);line-height:1.1}
.npmcq-breakdown{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:6px 0 24px}
.npmcq-stat{border-radius:14px;padding:10px 2px;font-size:15px;font-weight:700;color:#fff;line-height:1.3}
.npmcq-stat b{display:block;font-size:30px}
.npmcq-ok{background:#0a9150}.npmcq-bad{background:#d62839}.npmcq-skip{background:#6b7c93}
.npmcq-result button{display:block;margin:12px 0}
.npmcq-error{padding:18px 16px;color:#a00;font-weight:700;font-size:19px}
.npmcq-restart{margin:0 16px;width:calc(100% - 32px)}

/* Phones */
@media(max-width:480px){
 .npmcq{font-size:17px}
 .npmcq-nav{padding:12px 10px 20px}
 .npmcq-site{font-size:26px}
 .npmcq-nav h1{font-size:25px}
 .npmcq-board-grid .npmcq-board{font-size:16px}
 .npmcq .npmcq-hero h2{font-size:27px}
 .npmcq-hero p{font-size:16px}
 .npmcq-chips span{font-size:15px}
 .npmcq-cards button,.npmcq-ready button,.npmcq-result button{font-size:21px}
 .npmcq-test{border-radius:18px;padding:14px 10px 16px;margin:0 6px}
 .npmcq-question{font-size:23px}
 .npmcq-options button{font-size:22px;min-height:64px;padding:12px 12px}
 .npmcq-count{min-height:70vh;border-radius:0}
}

/* Urdu / RTL */
.npmcq-question,.npmcq-options span{unicode-bidi:plaintext}
html[dir=rtl] .npmcq,.npmcq[dir=rtl]{text-align:right}
.npmcq[dir=rtl] .npmcq-bar{direction:rtl}
.npmcq[dir=rtl] .npmcq-options button{text-align:right;direction:rtl}
.npmcq[dir=rtl] .npmcq-question,.npmcq[dir=rtl] .npmcq-options span{direction:rtl}
.npmcq[dir=rtl] .npmcq-options b{direction:ltr;unicode-bidi:isolate}
.npmcq[dir=rtl],.npmcq :lang(ur){font-family:"NP Nastaliq","Noto Nastaliq Urdu",var(--np-font)}
.npmcq[dir=rtl] .npmcq-question,.npmcq[dir=rtl] .npmcq-options span{line-height:2.2;font-weight:400}
.npmcq[dir=rtl] .npmcq-site,.npmcq[dir=rtl] .npmcq-tagline,.npmcq[dir=rtl] .npmcq-bar,.npmcq[dir=rtl] .npmcq-options b{font-family:var(--np-font)}

/* Local MathJax SVG output: formulas are isolated from Urdu shaping. */
.npmcq mjx-container{font-family:initial;direction:ltr;unicode-bidi:isolate;max-width:100%}
.npmcq mjx-container[display="true"]{overflow-x:auto;overflow-y:hidden;padding:.2em 0;scrollbar-width:thin}
.npmcq-question mjx-container,.npmcq-options mjx-container{line-height:normal}
.npmcq-options span mjx-container{display:inline-block;vertical-align:middle}

/* Never flash raw TeX while the local renderer is loading. */
.npmcq-math-pending .npmcq-question,.npmcq-math-pending .npmcq-options{visibility:hidden}

/* Standalone page template (engine page without theme clutter) */
body.npmcq-standalone{margin:0;background:#f3f7fc}
.npmcq-page-header{background:#0f3d7a;color:#fff;padding:12px 16px}
.npmcq-page-header a{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;max-width:760px;margin:0 auto;font-family:"NP Noto Sans","Noto Sans",system-ui,sans-serif;font-size:22px;font-weight:700}
.npmcq-page-header .npmcq-logo{width:38px;height:38px;border-radius:10px;background:#ffdf00;color:#0f3d7a;display:grid;place-items:center;font-size:20px;flex:0 0 auto}
.npmcq-page-main{padding:34px 0 20px}
.npmcq-page-footer{text-align:center;padding:18px 16px 26px;border-top:1px solid #dbe6f3;font-family:"NP Noto Sans","Noto Sans",system-ui,sans-serif;font-size:16px;color:#33506e}
.npmcq-page-footer a{color:#1f5aa6;font-weight:600;margin:0 8px;text-decoration:none}
.npmcq-page-footer p{margin:8px 0 0}

/* Desktop / tablet: use the width — no wasted side space */
@media(min-width:900px){
 .npmcq{max-width:1100px;padding:0 24px}
 .npmcq-page-header a{max-width:1100px;padding:0 24px}
 .npmcq-page-main{padding:40px 0 24px}
 .npmcq-test{margin:0;padding:24px 28px 28px}
 .npmcq-question{font-size:32px;margin:20px 0 36px}
 .npmcq-options{grid-template-columns:1fr 1fr;gap:16px}
 .npmcq-options button{min-height:80px;font-size:24px}
 .npmcq-hero{padding:30px 24px 32px}
 .npmcq .npmcq-hero h2{font-size:38px}
 .npmcq-hero p{font-size:20px}
 .npmcq-nav h1{font-size:32px;margin:26px 0 22px}
 .npmcq-fed{font-size:32px;padding:26px 16px 22px}
 .npmcq-board-grid{gap:20px 18px}
 .npmcq-board-grid .npmcq-board{font-size:24px;min-height:96px}
 .npmcq-board small{font-size:17px}
 .npmcq-cards{grid-template-columns:1fr 1fr;gap:18px}
 .npmcq-ready,.npmcq-result{max-width:760px;margin-left:auto;margin-right:auto}
}

/* Side ad columns (large screens only; never during an active test) */
.npmcq-side{display:none}
@media(min-width:1280px){
 .npmcq-page-body{display:grid;grid-template-columns:160px minmax(0,1100px) 160px;gap:28px;justify-content:center;align-items:start;padding:0 20px}
 .npmcq-side{display:block;position:sticky;top:40px;margin-top:40px;min-height:600px}
 .npmcq-side.npmcq-ad-active{background:#e9eef5;border-radius:10px;position:sticky}
 .npmcq-side.npmcq-ad-active::before{content:"Advertisement";display:block;text-align:center;font-size:11px;color:#6b7c93;padding-top:6px;font-family:"NP Noto Sans",sans-serif}
 .npmcq-testing .npmcq-side{visibility:hidden}
 .npmcq-page-body .npmcq{padding:0}
}

/* Result: one big "Another Test" button + floating Main Menu (bottom-right) */
.npmcq-result .npmcq-next{background:linear-gradient(180deg,#0aa35a,#067a42);color:#fff;border:0;box-shadow:0 6px 0 #045530,0 10px 18px #0003;font-size:24px;text-shadow:0 1px 2px #0004;min-height:78px}
.npmcq-result .npmcq-next small{display:block;font-size:15px;font-weight:600;opacity:.92;margin-top:2px}
.npmcq-result .npmcq-next:active{box-shadow:0 1px 0 #045530}
.npmcq-home-fab{position:fixed;right:14px;bottom:14px;z-index:50;display:flex;align-items:center;gap:8px;background:linear-gradient(180deg,#2667d9,#0f3d7a);color:#fff;border:2px solid #fff;border-radius:999px;padding:12px 20px;font-family:var(--np-font);font-size:18px;font-weight:700;line-height:1.2;box-shadow:0 4px 0 #0a2a55,0 8px 18px #0000004d;cursor:pointer;touch-action:manipulation}
.npmcq-home-fab span{font-size:22px;line-height:1}
.npmcq-home-fab[lang=ur]{font-family:"NP Nastaliq","Noto Nastaliq Urdu",var(--np-font);font-weight:400;line-height:1.9;padding:6px 20px}
.npmcq-home-fab:active{transform:translateY(3px);box-shadow:0 1px 0 #0a2a55}
.npmcq-result,.npmcq-nav{padding-bottom:96px}

/* Paper recheck */
.npmcq-result .npmcq-recheck{margin-top:16px;background:linear-gradient(180deg,#ffd43b,#f5b700);color:#3a2a00;border:0;box-shadow:0 6px 0 #a67c00,0 10px 18px #0002;font-size:22px}
.npmcq-result .npmcq-recheck small{display:block;font-size:15px;font-weight:600;margin-top:2px}
.npmcq-result .npmcq-recheck:active{box-shadow:0 1px 0 #a67c00}
.npmcq-review{padding:18px 12px 110px}
.npmcq-review h1{text-align:center;color:var(--np-blue);font-size:28px;font-weight:700;margin:0 0 12px}
.npmcq-rv-sum{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.npmcq-rv-sum span{border-radius:999px;padding:6px 14px;font-size:16px;font-weight:700;color:#fff}
.npmcq-rv-sum .ok{background:#0a9150}.npmcq-rv-sum .bad{background:#d62839}.npmcq-rv-sum .skip{background:#6b7c93}
.npmcq-rv{background:#fff;border-radius:16px;padding:14px;margin:0 0 16px;border:2px solid #dbe6f3;border-left:8px solid #6b7c93;box-shadow:0 3px 10px #0000000f}
.npmcq-rv-correct{border-left-color:#0a9150}.npmcq-rv-wrong{border-left-color:#d62839}
.npmcq-rv-head{display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:16px;margin-bottom:6px}
.npmcq-rv-head span{color:var(--np-blue)}
.npmcq-rv-head em{font-style:normal;font-size:15px;padding:3px 10px;border-radius:999px;color:#fff;background:#6b7c93}
.npmcq-rv-correct .npmcq-rv-head em{background:#0a9150}.npmcq-rv-wrong .npmcq-rv-head em{background:#d62839}
.npmcq-rv-q{font-size:20px;font-weight:700;line-height:1.45;margin:4px 0 12px;color:var(--np-text);overflow-wrap:anywhere}
.npmcq-rv-opts{display:grid;gap:8px}
.npmcq-rv-opt{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:2px solid #e3eaf3;border-radius:12px;padding:9px 12px;font-size:18px;font-weight:600;color:var(--np-text);background:#f8fafd}
.npmcq-rv-opt b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#dbe6f3;color:var(--np-blue);font-size:16px;flex:0 0 auto}
.npmcq-rv-opt span{flex:1 1 150px;overflow-wrap:anywhere}
.npmcq-rv-opt i{font-style:normal;font-size:13px;font-weight:700;padding:2px 8px;border-radius:999px;color:#fff}
.npmcq-rv-opt.is-correct{background:#e3f7ec;border-color:#0a9150}.npmcq-rv-opt.is-correct b{background:#0a9150;color:#fff}.npmcq-rv-opt.is-correct i{background:#0a9150}
.npmcq-rv-opt.is-wrong{background:#fde8ea;border-color:#d62839}.npmcq-rv-opt.is-wrong b{background:#d62839;color:#fff}.npmcq-rv-opt.is-wrong i{background:#d62839}
.npmcq-review .npmcq-next{width:100%;min-height:78px;border-radius:16px;font-weight:700;cursor:pointer;background:linear-gradient(180deg,#0aa35a,#067a42);color:#fff;border:0;box-shadow:0 6px 0 #045530,0 10px 18px #0003;font-size:24px;margin-top:8px}
.npmcq-review .npmcq-next small{display:block;font-size:15px;font-weight:600}
@media(min-width:900px){.npmcq-review{max-width:860px;margin:0 auto}}

.npmcq-result .npmcq-repeat,.npmcq-review .npmcq-repeat{width:100%;min-height:74px;border-radius:16px;font-weight:700;cursor:pointer;background:linear-gradient(180deg,#3a86ff,#2667d9);color:#fff;border:0;box-shadow:0 6px 0 #153f8a,0 10px 18px #0003;font-size:23px;text-shadow:0 1px 2px #0004;margin:0 0 16px}
.npmcq-repeat small{display:block;font-size:15px;font-weight:600;opacity:.92;margin-top:2px}
.npmcq-repeat:active{transform:translateY(4px);box-shadow:0 1px 0 #153f8a}
.npmcq-result .npmcq-next{margin:0}
/* v3.9.0 — Urdu medium: larger math, readable Paper Recheck */
.npmcq[dir=rtl] mjx-container{font-size:115%}
.npmcq[dir=rtl] .npmcq-rv{border-left-width:2px;border-right:8px solid #6b7c93}
.npmcq[dir=rtl] .npmcq-rv-correct{border-right-color:#0a9150}.npmcq[dir=rtl] .npmcq-rv-wrong{border-right-color:#d62839}
.npmcq[dir=rtl] .npmcq-rv-head{margin-bottom:12px;line-height:2}
.npmcq[dir=rtl] .npmcq-rv-head em{line-height:1.9;padding:0 12px}
.npmcq[dir=rtl] .npmcq-rv-q{line-height:2.3;font-weight:400;padding-top:6px;margin:8px 0 14px;direction:rtl}
.npmcq[dir=rtl] .npmcq-rv-opt{direction:rtl;padding:6px 12px}
.npmcq[dir=rtl] .npmcq-rv-opt span{line-height:2.2;font-weight:400}
.npmcq[dir=rtl] .npmcq-rv-opt b{font-family:var(--np-font)}
.npmcq[dir=rtl] .npmcq-rv-opt i{line-height:1.9;padding:0 10px}
.npmcq[dir=rtl] .npmcq-rv-sum span{line-height:1.9;padding:2px 14px}
.npmcq[dir=rtl] .npmcq-stat,.npmcq[dir=rtl] .npmcq-result button,.npmcq[dir=rtl] .npmcq-review button{line-height:1.9}
.npmcq[dir=rtl] .npmcq-result small,.npmcq[dir=rtl] .npmcq-review small{line-height:1.9}
.npmcq[dir=rtl] .npmcq-score{direction:ltr;unicode-bidi:isolate}
.npmcq[dir=rtl] .npmcq-rv,.npmcq[dir=rtl] .npmcq-rv-correct,.npmcq[dir=rtl] .npmcq-rv-wrong{border-left-color:#dbe6f3}
/* v3.9.2 — Install App button (shown only when the browser offers installation) */
.npmcq-install{display:inline-flex;align-items:center;gap:8px;margin:6px auto 4px;padding:12px 22px;border:0;border-radius:999px;background:#ffdf00;color:#0f3d7a;font-family:var(--np-font,system-ui);font-size:18px;font-weight:700;box-shadow:0 4px 0 #b39c00;cursor:pointer}.npmcq-install[hidden]{display:none}.npmcq-install:active{transform:translateY(3px);box-shadow:0 1px 0 #b39c00}
/* v4.0.0: main-site link + Get App help */
.npmcq-page-footer a.npmcq-mainsite{display:block;margin:4px auto 12px;font-size:17px;font-weight:700;color:#0f3d7a}
.npmcq-install{margin-top:4px}
.npmcq-install-help{max-width:420px;margin:10px auto 0;padding:10px 14px;border-radius:12px;background:#fff8cc;color:#0b1f33;font-size:16px;line-height:1.5}
.npmcq-install-help[hidden]{display:none}
/* Nothing below the MCQ card during an active test; room for the Main Menu button elsewhere */
body.npmcq-testing .npmcq-page-footer{display:none}
.npmcq-page-footer{padding-bottom:92px}
.npmcq-logo-img{width:36px;height:36px;border-radius:9px;display:inline-block;vertical-align:middle;flex:0 0 auto}
.npmcq-rv-page{display:inline-block;margin:2px 0 8px;padding:3px 10px;border-radius:999px;background:#eef4ff;color:#1f4f8f;font-size:14px;font-weight:600}
/* v4.1.0 SEO pages */
.npmcq-seo{padding:0 16px}
.npmcq-seo h1{font-size:28px;line-height:1.3;color:#0f3d7a;margin:6px 0 12px}
.npmcq-seo h1 .npmcq-ur{display:block;font-family:"NP Nastaliq","Noto Nastaliq Urdu",serif;font-size:24px;line-height:2;font-weight:400;margin-top:4px}
.npmcq-seo h2{font-size:22px;color:#0f3d7a;margin:26px 0 10px}
.npmcq-seo h3{font-size:18px;margin:14px 0 6px}
.npmcq-crumbs{font-size:15px;color:#4a5f78;margin:4px 0 10px}.npmcq-crumbs a{color:#1f5aa6;text-decoration:none}
.npmcq-lead{font-size:18px;line-height:1.6}
.npmcq-stats{display:flex;flex-wrap:wrap;gap:8px}.npmcq-stats span{background:#eef4ff;color:#0f3d7a;border-radius:999px;padding:4px 14px;font-weight:700;font-size:16px}
.npmcq-chlist{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.npmcq-chlist a{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:14px 16px;border:2px solid #cfe0f5;border-radius:14px;background:#fff;color:#0b1f33;text-decoration:none;box-shadow:0 3px 0 #cfe0f5}
.npmcq-chlist a:active{transform:translateY(2px);box-shadow:0 1px 0 #cfe0f5}
.npmcq-chlist b{color:#0f3d7a}.npmcq-chlist small{margin-left:auto;color:#4a5f78;font-size:15px}
.npmcq-chlist [lang=ur]{font-family:"NP Nastaliq","Noto Nastaliq Urdu",serif;line-height:2}
.npmcq-cta{display:inline-block;margin:10px 0;padding:14px 26px;border-radius:14px;background:linear-gradient(#18a957,#0d8a43);color:#fff;font-weight:800;font-size:19px;text-decoration:none;box-shadow:0 5px 0 #0a6a33}
.npmcq-cta:active{transform:translateY(3px);box-shadow:0 2px 0 #0a6a33}
.npmcq-sample{background:#fff;border:1px solid #dbe6f3;border-radius:14px;padding:14px 16px;margin:0 0 14px}
.npmcq-sq{font-weight:600;margin:0 0 8px}
.npmcq-sopts{list-style:none;padding:0;margin:0 0 8px;display:grid;gap:6px}
.npmcq-sopts li{display:flex;gap:10px;align-items:baseline}
.npmcq-sopts b{display:inline-grid;place-items:center;min-width:28px;height:28px;border-radius:50%;background:#eef4ff;color:#0f3d7a;font-size:15px;direction:ltr;unicode-bidi:isolate}
.npmcq-samples[dir=rtl]{font-family:"NP Nastaliq","Noto Nastaliq Urdu",serif;line-height:2.2;text-align:right}
.npmcq-samples[dir=rtl] .npmcq-sopts b,.npmcq-samples[dir=rtl] summary{font-family:var(--np-font)}
.npmcq-sample details summary{cursor:pointer;color:#1f5aa6;font-weight:700}
.npmcq-sans{margin:6px 0 0;color:#0a7a3d;font-weight:600}
.npmcq-pn{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;margin:16px 0}.npmcq-pn a{color:#1f5aa6;font-weight:700;text-decoration:none}
.npmcq-seo mjx-container{max-width:100%;overflow-x:auto;overflow-y:hidden}
.npmcq-dir{max-width:760px;margin:30px auto 0;padding:0 16px;font-family:var(--np-font,"NP Noto Sans",system-ui,sans-serif)}
.npmcq-dir h2{font-size:20px;color:#0f3d7a}.npmcq-dir details{background:#fff;border:1px solid #dbe6f3;border-radius:12px;padding:10px 14px;margin:0 0 10px}
.npmcq-dir summary{font-weight:700;color:#0f3d7a;cursor:pointer;font-size:18px}.npmcq-dir ul{margin:4px 0 8px;padding-left:20px}.npmcq-dir a{color:#1f5aa6}
body.npmcq-testing .npmcq-dir{display:none}
.npmcq-seo h1,.npmcq-seo h2,.npmcq-seo h3,.npmcq-dir h2,.npmcq-dir h3{font-family:var(--np-font);font-weight:800;letter-spacing:0}
.npmcq-seo h1{font-weight:800}
.npmcq-seo a.npmcq-cta,.npmcq-seo .npmcq-chlist a{text-decoration:none!important}
.npmcq-seo a.npmcq-cta{color:#fff!important}
/* ===================== v4.2 design: all screen sizes ===================== */
.npmcq,.npmcq *{box-sizing:border-box}
.npmcq h1,.npmcq h2,.npmcq h3,.npmcq button,.npmcq-page-header,.npmcq-page-footer{font-family:var(--np-font,"NP Noto Sans","Noto Sans",system-ui,sans-serif)}
#npmcq-app{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.npmcq{max-width:1180px}
/* page frame: side ad columns exist only when side ads are switched on */
.npmcq-side{display:none!important}
.npmcq-page-body{display:block;padding:0 16px}
@media(min-width:1280px){.npmcq-page-body:has(.npmcq-side.npmcq-ad-active){display:grid;grid-template-columns:160px minmax(0,1180px) 160px;gap:28px;justify-content:center}.npmcq-page-body .npmcq-side.npmcq-ad-active{display:block!important;visibility:visible}}
.npmcq-page-main{padding:22px 0 10px}
/* header */
.npmcq-page-header{background:linear-gradient(90deg,#0b2f63,#14549e);padding:10px 16px;box-shadow:0 2px 10px #0b2f6333}
.npmcq-page-header a{max-width:1180px;margin:0 auto;font-size:21px;gap:12px}
.npmcq-page-header a::after{content:"Free MCQ Tests · Class 9–12";margin-left:auto;font-size:14px;font-weight:600;color:#cfe0ff;display:none}
@media(min-width:760px){.npmcq-page-header a::after{display:block}}
/* hero */
.npmcq-hero{position:relative;overflow:hidden;background:radial-gradient(circle at 92% 8%,#ffffff1f 0 90px,transparent 91px),radial-gradient(circle at 4% 115%,#ffffff17 0 120px,transparent 121px),linear-gradient(135deg,#0b2f63 0%,#1f5aa6 55%,#2f7be0 100%);border-radius:22px;padding:24px 16px 22px;box-shadow:0 10px 26px #0b2f6333}
.npmcq .npmcq-hero h2{font-size:30px;font-weight:800;letter-spacing:-.3px}
.npmcq-hero p{opacity:.95}
.npmcq-chips span{background:#ffffff1f;border-color:#ffffff55;font-size:15px}
/* headings */
.npmcq-nav h1{font-weight:800;margin:10px 0 6px}
.npmcq-sub{text-align:center;margin:0 0 16px;color:#4a6382;font-weight:600;font-size:16px}
/* boards */
.npmcq-boards{display:grid;gap:14px}
.npmcq-group{margin:4px 2px 10px}
@media(min-width:1024px){.npmcq-boards{grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:22px;align-items:stretch}.npmcq-fedcol{display:flex;flex-direction:column}.npmcq-fedcol .npmcq-board{flex:1;display:flex;flex-direction:column;justify-content:center;font-size:34px;min-height:260px}.npmcq-fedcol .npmcq-board small{font-size:18px}.npmcq-puncol .npmcq-group{margin-top:0}}
/* generic card grids */
.npmcq-cards{grid-template-columns:1fr}
@media(min-width:640px){.npmcq-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1024px){.npmcq-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* classes */
.npmcq-cards.npmcq-classes{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:1024px){.npmcq-cards.npmcq-classes{grid-template-columns:repeat(4,minmax(0,1fr))}}
.npmcq-cards button.npmcq-cls{min-height:118px;border:0;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-shadow:0 1px 2px #0005;--d:#0b2f63;background:linear-gradient(160deg,var(--a),var(--b));box-shadow:0 6px 0 var(--d),0 10px 18px #0002}
.npmcq-cls b{font-size:38px;line-height:1.05}.npmcq-cls span{font-size:17px;font-weight:600;opacity:.95}
.npmcq-cls0{--a:#ff8a3d;--b:#e85d04;--d:#a33f00!important}.npmcq-cls1{--a:#4f8cff;--b:#2357d6;--d:#163c96!important}.npmcq-cls2{--a:#a66bff;--b:#7b3fe4;--d:#5320a8!important}.npmcq-cls3{--a:#22c08a;--b:#0d9a63;--d:#076b44!important}
.npmcq-cards button.npmcq-cls:active{box-shadow:0 1px 0 var(--d)}
/* subjects */
.npmcq-cards.npmcq-subjects{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(min-width:760px){.npmcq-cards.npmcq-subjects{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1100px){.npmcq-cards.npmcq-subjects{grid-template-columns:repeat(4,minmax(0,1fr))}}
.npmcq-cards button.npmcq-subj{min-height:96px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:12px 8px;font-size:18px;line-height:1.2}
.npmcq-subj i{font-style:normal;font-size:32px;line-height:1;filter:drop-shadow(0 2px 2px #0002)}
/* chapters */
.npmcq-cards.npmcq-chapters{gap:12px}
.npmcq-cards button.npmcq-ch{display:flex;align-items:center;gap:14px;text-align:left;padding:12px 16px;min-height:74px;font-size:18px;line-height:1.35}
.npmcq-chno{flex:0 0 auto;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:linear-gradient(180deg,#2f7be0,#0f3d7a);color:#fff;font-size:18px;font-weight:800;direction:ltr;unicode-bidi:isolate}
.npmcq-cht{flex:1;min-width:0}
.npmcq-cht[lang=ur]{font-family:"NP Nastaliq","Noto Nastaliq Urdu",serif;font-weight:400;line-height:2;font-size:20px;text-align:right}
.npmcq-cht small{display:block;font-size:14px;font-weight:600;color:#6b5600}
.npmcq-cards button.npmcq-whole{background:linear-gradient(180deg,#fff7d1,#ffe58a);border-color:#d9a900;box-shadow:0 5px 0 #a67c00,0 8px 16px #0002}
.npmcq-whole .npmcq-chno{background:linear-gradient(180deg,#ffcf33,#e0a800);color:#5a4200}
.npmcq-ready-ch [lang=ur]{font-family:"NP Nastaliq","Noto Nastaliq Urdu",serif;font-weight:400}
/* ready / result / review widths */
.npmcq-ready{max-width:620px;margin:0 auto;background:#fff;box-shadow:0 8px 24px #0b2f6314}
.npmcq-result{max-width:640px;margin:0 auto}
.npmcq-review{max-width:880px;margin:0 auto}
.npmcq-test{max-width:960px;margin-left:auto;margin-right:auto}
/* countdown */
.npmcq-count{min-height:58vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:transparent;border-radius:0;font-size:inherit}
.npmcq-ring{width:200px;height:200px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#3d2a9c,#1a1150 70%);border:8px solid #ffdf00;box-shadow:0 0 0 10px #ffdf0033,0 16px 40px #1a115055}
.npmcq-ring span{font-size:104px;font-weight:800;color:#ffdf00;line-height:1}
.npmcq-count p{margin:0;font-size:22px;font-weight:700;color:#0f3d7a}
.npmcq-pop{animation:npmcqpop .45s ease-out}@keyframes npmcqpop{0%{transform:scale(.7);opacity:.3}100%{transform:scale(1);opacity:1}}
@media (prefers-reduced-motion:reduce){.npmcq-pop{animation:none}}
/* Main Menu: in the page flow at the bottom-right, never covering content */
.npmcq-home-fab{position:static;margin:26px 0 0 auto;width:max-content;box-shadow:0 4px 0 #0a2a55}
.npmcq[dir=rtl] .npmcq-home-fab{margin:26px auto 0 0}
.npmcq-result,.npmcq-nav{padding-bottom:20px}
.npmcq-page-footer{padding-bottom:28px}
/* directory: home page only */
body.npmcq-inner .npmcq-dir{display:none}
.npmcq-dir{max-width:1180px}
@media(min-width:900px){.npmcq-dir{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}.npmcq-dir h2{grid-column:1/-1;margin:0}.npmcq-dir details{margin:0}body.npmcq-inner .npmcq-dir{display:none}}
/* footer */
.npmcq-page-footer{background:#fff;margin-top:26px}
.npmcq-seo{max-width:1000px;padding:0 4px}
@media(min-width:900px){.npmcq-seo .npmcq-chlist{grid-template-columns:1fr 1fr}.npmcq-samples{display:grid;grid-template-columns:1fr 1fr;gap:14px}.npmcq-sample{margin:0}}
.npmcq-info{max-width:820px;font-size:18px;line-height:1.7}
.npmcq-info h1{font-size:32px;color:#0f3d7a;margin:6px 0 16px}
.npmcq-info h2{font-size:22px;color:#0f3d7a;margin:26px 0 8px}
.npmcq-info a{color:#1f5aa6}
.npmcq-info ul{padding-left:22px}

.npmcq-fedcol .npmcq-board{width:100%}
@media(max-width:420px){.npmcq-page-body{padding:0 6px}.npmcq-nav{padding-left:6px;padding-right:6px}.npmcq-board-grid{gap:10px 8px}.npmcq-board-grid .npmcq-board{font-size:15px;padding:14px 1px 12px;letter-spacing:-.2px}.npmcq-board-grid .npmcq-board small{font-size:13px}}
.npmcq-result .npmcq-home-fab,.npmcq-review .npmcq-home-fab,.npmcq-nav .npmcq-home-fab{margin-top:22px}
@media(min-width:900px){.npmcq .npmcq-hero h2{font-size:40px}.npmcq-hero{padding:34px 24px 30px}}
.npmcq .npmcq-home-fab{display:flex!important;width:max-content!important;min-height:0!important;margin:22px 0 0 auto!important;padding:10px 18px!important;background:linear-gradient(180deg,#2667d9,#0f3d7a)!important;color:#fff!important;border:2px solid #fff!important;border-radius:999px!important;font-size:17px!important;font-weight:700!important;box-shadow:0 4px 0 #0a2a55!important;text-shadow:none!important}
.npmcq[dir=rtl] .npmcq-home-fab{margin:22px auto 0 0!important}
.npmcq .npmcq-home-fab[lang=ur]{padding:4px 18px!important;line-height:1.9!important}
/* v4.3: ads never clipped (they keep their safe gap from the test), keyboard focus, notes */
.npmcq-ad.npmcq-ad-active{max-height:none;overflow:visible}
.npmcq button:focus-visible,.npmcq a:focus-visible,.npmcq-page-footer a:focus-visible,.npmcq-install:focus-visible{outline:4px solid #ffb703;outline-offset:3px}
.npmcq-note{font-size:15px;color:#4a6382;margin:-4px 0 12px}
/* v4.3: side ads never show during an active test, even when an ad is loaded (beats every other side-ad rule) */
body.npmcq-testing .npmcq-page-body .npmcq-side,body.npmcq-testing .npmcq-page-body .npmcq-side *,body.npmcq-testing .npmcq-side.npmcq-ad-active,body.npmcq-testing .npmcq-side.npmcq-ad-active *{visibility:hidden!important;pointer-events:none!important}

/* v4.3.2 quiet waiting spinner (no text) */
.npmcq-wait{position:fixed;left:50%;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px;z-index:99999;pointer-events:none}.npmcq-wait span{display:block;width:100%;height:100%;box-sizing:border-box;border-radius:50%;border:4px solid rgba(30,64,175,.18);border-top-color:#1e40af;animation:npmcqspin .8s linear infinite}@keyframes npmcqspin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.npmcq-wait span{animation-duration:2.4s}}
