*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:#17264a;background:#fff;font-family:"DM Sans","Noto Sans Sinhala","Noto Sans Tamil",sans-serif;font-size:15px;line-height:1.65}a{color:inherit;text-decoration:none}.container{width:min(1160px,calc(100% - 48px));margin-inline:auto}.icon{width:20px;height:20px;display:inline-block;vertical-align:middle;flex:none}.site-header{height:82px;background:#fff;position:sticky;top:0;z-index:50;border-bottom:1px solid #e6e7f4}.nav-wrap{height:100%;display:flex;align-items:center;justify-content:space-between}.brand{display:inline-flex;align-items:center;gap:10px}.brand-mark{width:42px;height:42px;border-radius:13px;background:#eeedff;color:#5b55dc;display:grid;place-items:center}.brand-mark .icon{width:24px;height:24px}.brand-copy{display:flex;flex-direction:column;line-height:1.05}.brand-copy strong{font-size:21px;letter-spacing:-.8px;color:#17264a}.brand-copy strong span{color:#625ce2}.brand-copy small{font-size:11px;letter-spacing:2.6px;font-weight:800;color:#84958e;margin-top:5px}.main-nav{display:flex;align-items:center;gap:28px;font-size:15px;font-weight:600;color:#536080}.main-nav>a{transition:color .2s}.main-nav>a:hover,.main-nav>a.active{color:#5b55dc}.nav-actions{display:flex;align-items:center;gap:20px;margin-left:8px}.login-link{color:#24483d}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:13px 19px;border-radius:9px;font-size:15px;font-weight:700;transition:transform .2s,background .2s;white-space:nowrap}.btn:hover{transform:translateY(-2px)}.btn-primary{background:#5b55dc;color:#fff;box-shadow:0 7px 18px #5b55dc24}.btn-primary:hover{background:#4944c8}.btn-small{padding:10px 14px}.btn-small .icon{width:15px;height:15px}.btn-light{background:#fff;color:#4644c7}.btn-outline-light{border:1px solid #ffffff75;color:#fff;background:#ffffff0b}.mobile-toggle{display:none;border:1px solid #e0e9e4;background:#fff;border-radius:9px;padding:9px;color:#174c3b}.hero{position:relative;overflow:hidden;background:#3938b8;color:#fff;padding:82px 0 25px}.hero:before{content:"";position:absolute;width:650px;height:650px;border:1px solid #ffffff0b;border-radius:50%;right:-150px;top:-300px;box-shadow:0 0 0 65px #ffffff06,0 0 0 130px #ffffff04}.hero-pattern{position:absolute;inset:0;background-image:radial-gradient(#ffffff13 1px,transparent 1px);background-size:24px 24px;opacity:.35;mask-image:linear-gradient(90deg,transparent,#000)}.hero-grid{position:relative;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:50px;min-height:410px}.eyebrow,.section-kicker{font-size:12px;letter-spacing:2px;font-weight:800;color:#c9c7ff}.eyebrow{display:flex;align-items:center;gap:9px}.eyebrow-dot{width:7px;height:7px;border-radius:50%;background:#aaa5ff;box-shadow:0 0 0 5px #aaa5ff1c}.hero h1{font-size:clamp(38px,5vw,61px);line-height:1.08;letter-spacing:-2.8px;margin:22px 0 18px;font-weight:800}.hero h1 em,.section-heading h2 em,.paper-copy h2 em,.practice-copy h2 em,.cta-inner h2 em{font-style:normal;color:#c9c7ff}.hero-lead{max-width:550px;color:#c3d8ce;font-size:17.5px;line-height:1.8;margin:0}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.hero-trust{display:flex;gap:22px;flex-wrap:wrap;margin-top:28px;color:#c1d9ce;font-size:13px}.hero-trust span{display:flex;align-items:center;gap:7px}.hero-trust .icon{width:15px;height:15px;color:#c9c7ff}.hero-visual{position:relative;min-height:390px;display:grid;place-items:center}.visual-glow{position:absolute;width:330px;height:330px;border-radius:50%;background:#706af026;filter:blur(35px)}.study-card{position:relative;width:min(355px,90%);padding:24px;border:1px solid #ffffff26;border-radius:19px;background:linear-gradient(145deg,#fff,#f4f5fc);color:#17264a;box-shadow:0 25px 70px #061c1666;transform:rotate(2deg)}.study-card-top{display:flex;align-items:center;gap:9px}.mini-icon{width:31px;height:31px;border-radius:9px;background:#efeeff;color:#5b55dc;display:grid;place-items:center}.mini-icon .icon{width:17px}.card-label{font-size:11px;font-weight:800;letter-spacing:1.3px;color:#799087}.status-dot{width:7px;height:7px;border-radius:50%;background:#716bf0;margin-left:auto}.study-title{font-size:23px;font-weight:800;margin-top:20px;letter-spacing:-.7px}.study-subtitle{font-size:13px;color:#818ba6}.study-progress{height:7px;border-radius:20px;background:#e7e8f5;margin-top:22px;overflow:hidden}.study-progress span{display:block;height:100%;background:#716bf0;border-radius:20px}.progress-caption{display:flex;justify-content:space-between;font-size:11px;color:#818ba6;margin-top:7px}.progress-caption strong{color:#5b55dc}.study-divider{height:1px;background:#e7e8f5;margin:19px 0 8px}.study-row{display:flex;align-items:center;gap:11px;padding:10px 0}.round-icon{width:36px;height:36px;border-radius:11px;display:grid;place-items:center}.round-icon .icon{width:18px}.round-icon.purple{background:#f0ebfb;color:#7963b8}.round-icon.yellow{background:#fff4dc;color:#ba8a2f}.study-row b,.study-row small{display:block}.study-row b{font-size:13px}.study-row small{font-size:11px;color:#818ba6}.row-arrow{margin-left:auto;color:#9aaba2}.floating-note{position:absolute;display:flex;align-items:center;gap:10px;background:#fff;color:#27335a;border-radius:12px;padding:11px 14px;box-shadow:0 12px 35px #051e1740}.floating-note .note-icon{width:32px;height:32px;border-radius:9px;background:#f1edff;color:#8067bc;display:grid;place-items:center}.floating-note .note-icon.green{background:#e5f5eb;color:#625ce2}.floating-note .icon{width:17px}.floating-note b,.floating-note small{display:block}.floating-note b{font-size:12px}.floating-note small{font-size:11px;color:#818ba6}.note-top{top:30px;right:-2px}.note-bottom{bottom:30px;left:-15px}.hero-bottom{display:flex;align-items:center;gap:14px;margin-top:35px;color:#82a99a;font-size:11px;letter-spacing:1.7px;font-weight:800}.hero-bottom-line{height:1px;width:55px;background:#4d7a68}.quick-strip{background:#f4f5fc;border-bottom:1px solid #e8e9f5}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);padding:22px 0;gap:15px}.quick-grid>div{display:flex;align-items:center;gap:12px;padding-left:22px;border-left:1px solid #e5e6f4}.quick-grid>div:first-child{border-left:0;padding-left:0}.quick-icon{width:39px;height:39px;border-radius:12px;background:#efeeff;color:#21825d;display:grid;place-items:center}.quick-icon .icon{width:19px}.quick-grid b,.quick-grid small{display:block}.quick-grid b{font-size:14px}.quick-grid small{font-size:12px;color:#818ba6}.section{padding:86px 0}.section-white{background:#fff}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:35px;margin-bottom:34px}.section-kicker{color:#655fe5}.section-heading h2,.paper-copy h2,.practice-copy h2,.cta-inner h2{font-size:clamp(30px,3.6vw,43px);line-height:1.15;letter-spacing:-1.7px;margin:10px 0 0;color:#17264a}.section-heading h2 em,.paper-copy h2 em,.practice-copy h2 em{color:#655fe5}.section-heading>p{max-width:365px;color:#707a98;font-size:15px;margin:0 0 4px;line-height:1.8}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.feature-card{padding:23px 20px 20px;border:1px solid #e6e7f4;border-radius:14px;transition:transform .2s,box-shadow .2s}.feature-card:hover{transform:translateY(-4px);box-shadow:0 15px 35px #173d3010}.feature-icon{width:45px;height:45px;border-radius:13px;background:#efeeff;color:#5b55dc;display:grid;place-items:center;margin-bottom:20px}.feature-icon .icon{width:22px;height:22px}.feature-tag{font-size:11px;color:#655fe5;background:#f1f0ff;padding:5px 8px;border-radius:20px;font-weight:700}.feature-card h3{font-size:17.5px;margin:13px 0 7px;letter-spacing:-.3px}.feature-card p{font-size:13px;line-height:1.8;color:#707a98;min-height:59px;margin:0 0 15px}.text-link{font-size:12px;font-weight:800;color:#5b55dc;display:inline-flex;gap:7px;align-items:center}.text-link .icon{width:14px}.paper-section{background:#f4f5fc}.paper-grid{display:grid;grid-template-columns:.75fr 1.25fr;align-items:center;gap:65px}.paper-copy p,.practice-copy>p{font-size:15px;line-height:1.9;color:#707a98;margin:17px 0 24px;max-width:410px}.year-panel{background:#fff;border:1px solid #e5e6f4;border-radius:17px;padding:24px;box-shadow:0 18px 50px #143b2b0b}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.panel-heading b,.panel-heading small{display:block}.panel-heading b{font-size:15.5px}.panel-heading small{font-size:12px;color:#82948a}.panel-icon{width:40px;height:40px;background:#efeeff;color:#655fe5;border-radius:12px;display:grid;place-items:center}.year-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.year-item{display:flex;align-items:center;justify-content:space-between;padding:11px 10px;border:1px solid #e7e8f5;border-radius:8px;font-size:14px;font-weight:700;transition:.2s}.year-item:hover{border-color:#aaa5ff;background:#f6f5ff;color:#5b55dc}.year-item .icon{width:13px;height:13px;color:#91a59a}.panel-foot{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #e9e9f5;padding-top:15px;margin-top:18px;color:#707a98;font-size:11px}.panel-foot span{display:flex;align-items:center;gap:6px}.panel-foot .icon{width:14px}.province-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.province-card{position:relative;display:grid;grid-template-columns:36px 1fr;column-gap:12px;align-items:center;padding:17px;border:1px solid #e5e6f4;border-radius:12px;transition:.2s}.province-card:hover{border-color:#8ac9a9;background:#f8fcf9;transform:translateY(-2px)}.province-number{grid-row:span 2;color:#9bb0a4;font-size:13px;font-weight:800}.province-symbol{position:absolute;right:15px;top:16px;color:#29966c}.province-symbol .icon{width:17px}.province-card b{font-size:14px}.province-card small{font-size:12px;color:#818ba6;display:flex;align-items:center;gap:5px}.province-card small .icon{width:12px}.practice-section{background:#3938b8;color:#fff;overflow:hidden}.practice-grid{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:75px}.practice-visual{position:relative;min-height:340px;display:grid;place-items:center}.practice-sheet{width:min(360px,90%);background:#fff;border-radius:15px;padding:24px;color:#17264a;box-shadow:0 25px 65px #071e185c;transform:rotate(-3deg)}.sheet-top{display:flex;justify-content:space-between;font-size:11px;letter-spacing:1.4px;font-weight:800;color:#6b8176}.sheet-pill{background:#eaf5ed;color:#20835d;padding:4px 8px;border-radius:20px;font-size:10px}.sheet-question{font-size:17.5px;font-weight:800;line-height:1.5;margin:22px 0 15px}.sheet-option{display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid #e9e9f5;border-radius:8px;font-size:13px;margin-top:8px}.sheet-option i{font-style:normal;width:22px;height:22px;border-radius:6px;background:#f0f4f1;display:grid;place-items:center;font-size:11px;font-weight:800}.sheet-option.selected{border-color:#74bd98;background:#f3f2ff;color:#187a55}.sheet-option.selected i{background:#625ce2;color:#fff}.sheet-option.selected span{margin-left:auto;color:#625ce2}.sheet-option.selected span .icon{width:16px}.sheet-sheet-foot{display:flex;justify-content:space-between;border-top:1px solid #e9e9f5;padding-top:13px;margin-top:17px;color:#83948b;font-size:10px}.sheet-sheet-foot span:first-child{display:flex;align-items:center;gap:5px}.sheet-sheet-foot .icon{width:13px}.practice-sticker{position:absolute;bottom:15px;right:-2px;display:flex;align-items:center;gap:10px;padding:12px 15px;background:#fff;border-radius:12px;color:#27335a;box-shadow:0 12px 35px #061c1650}.practice-sticker>.icon{width:30px;height:30px;color:#26936b}.practice-sticker b,.practice-sticker small{display:block}.practice-sticker b{font-size:12px}.practice-sticker small{font-size:11px;color:#809188}.practice-copy h2{color:#fff}.practice-copy>p{color:#c1d6cb}.practice-points{display:grid;gap:12px;margin:22px 0 27px}.practice-points span{display:flex;align-items:center;gap:9px;color:#d5e6dc;font-size:13px}.practice-points .icon{width:16px;height:16px;color:#80d2aa}.cta-section{padding:60px 0;background:#eaf5ee}.cta-inner{display:flex;align-items:center;justify-content:space-between;gap:30px}.cta-inner h2{margin-top:8px}.cta-inner p{color:#72867b;font-size:14px;margin:10px 0 0}.site-footer{background:#24245f;color:#e7e7ff;padding:38px 0 20px}.footer-main{display:flex;align-items:center;gap:35px;padding-bottom:28px}.brand-footer .brand-mark{background:#3534a5;color:#d4d1ff}.brand-footer .brand-copy strong{color:#fff}.brand-footer .brand-copy small{color:#9bb5a8}.footer-main>p{font-size:12px;color:#b9b9e8;max-width:300px;margin:0}.footer-links{margin-left:auto;display:flex;gap:18px;flex-wrap:wrap;font-size:12px;color:#d1d1f3}.footer-links a:hover{color:#c9c7ff}.footer-bottom{border-top:1px solid #ffffff1a;padding-top:17px;display:flex;justify-content:space-between;color:#aaa9dc;font-size:11px}.section-heading h2 em,.cta-inner h2 em{color:#23946b}.cta-inner h2 em{color:#23946b}
@media(max-width:1000px){.main-nav{gap:16px}.hero-grid{gap:20px}.feature-grid{grid-template-columns:repeat(2,1fr)}.paper-grid{gap:35px}.practice-grid{gap:35px}.quick-grid>div{padding-left:12px}.quick-grid small{font-size:11px}}
@media(max-width:760px){.container{width:min(100% - 34px,560px)}.site-header{height:70px}.mobile-toggle{display:grid;place-items:center}.mobile-toggle .icon{width:22px;height:22px}.main-nav{display:none;position:absolute;top:69px;left:0;right:0;background:#fff;border-bottom:1px solid #e6e7f4;padding:16px 22px 22px;box-shadow:0 18px 25px #143b3010;align-items:stretch;gap:0}.main-nav.is-open{display:flex;flex-direction:column}.main-nav>a{padding:12px 4px;border-bottom:1px solid #f0f3f1}.nav-actions{margin:12px 0 0;justify-content:space-between}.hero{padding:58px 0 22px}.hero-grid{grid-template-columns:1fr;gap:10px}.hero h1{font-size:43px;letter-spacing:-2px}.hero-lead{font-size:15.5px}.hero-visual{min-height:340px;margin-top:5px}.study-card{width:min(340px,85%)}.note-top{right:0;top:12px}.note-bottom{left:0;bottom:10px}.hero-bottom{margin-top:20px;font-size:10px}.quick-grid{grid-template-columns:repeat(2,1fr);gap:17px 10px;padding:18px 0}.quick-grid>div{border:0;padding-left:0}.quick-icon{width:34px;height:34px}.section{padding:62px 0}.section-heading{display:block;margin-bottom:25px}.section-heading h2,.paper-copy h2,.practice-copy h2,.cta-inner h2{font-size:34px}.section-heading>p{margin-top:13px}.feature-grid{gap:11px}.feature-card{padding:17px 14px}.feature-card h3{font-size:15.5px}.feature-card p{font-size:12px;min-height:75px}.feature-tag{font-size:10px}.paper-grid,.practice-grid{grid-template-columns:1fr;gap:30px}.paper-copy p,.practice-copy>p{font-size:14px}.year-panel{padding:17px}.year-grid{gap:7px}.year-item{padding:9px 7px;font-size:12px}.panel-foot{font-size:10px}.province-grid{grid-template-columns:repeat(2,1fr);gap:9px}.province-card{padding:14px 10px;grid-template-columns:25px 1fr}.province-card b{font-size:12px}.province-card small{font-size:11px}.province-symbol{right:9px;top:11px}.practice-visual{min-height:300px}.practice-sheet{width:min(340px,88%)}.practice-sticker{right:0;bottom:3px}.cta-inner{display:block}.cta-inner .btn{margin-top:22px}.footer-main{align-items:flex-start;flex-wrap:wrap;gap:18px}.footer-main>p{max-width:calc(100% - 160px)}.footer-links{margin:0;width:100%;gap:15px}.footer-bottom{gap:10px;flex-direction:column}}
@media(max-width:390px){.hero h1{font-size:37px}.hero-actions{flex-direction:column;align-items:stretch}.hero-actions .btn{width:100%}.quick-grid b{font-size:13px}.quick-grid small{font-size:10px}.feature-grid{grid-template-columns:1fr}.feature-card p{min-height:0}.province-grid{grid-template-columns:1fr}.year-grid{grid-template-columns:repeat(2,1fr)}.panel-foot{flex-direction:column}}


/* ExamPath global readability and shared theme update */
:root{--ep-green-950:#3938b8;--ep-green-800:#4644c7;--ep-green-600:#5b55dc;--ep-green-500:#625ce2;--ep-green-100:#efeeff;--ep-bg:#f4f5fc;--ep-text:#17264a;--ep-muted:#687d73}
html{font-size:16px}
body{font-size:16px;line-height:1.7;color:var(--ep-text)}
.main-nav{font-size:15px}
.btn{font-size:15px}
.login-link{font-size:15px}
.hero-lead{font-size:17px}
.hero-trust{font-size:13px}
.section-heading>p,.paper-copy p,.practice-copy>p{font-size:15px}
.feature-card p{font-size:13px}
.feature-card h3{font-size:18px}
.text-link{font-size:12px}
.year-item{font-size:14px}
.province-card b{font-size:14px}
.province-card small{font-size:12px}
.quick-grid b{font-size:14px}
.quick-grid small{font-size:12px}
@media(max-width:700px){body{font-size:16px}.container{width:min(100% - 32px,1160px)}.hero h1{letter-spacing:-1.5px}}

/* MCQBay brand identity and reference palette */
:root{--mcq-indigo:#3938b8;--mcq-violet:#6b65ed;--mcq-lavender:#8179f1;--mcq-bg:#f4f5fc;--mcq-ink:#14213d;--mcq-line:#e3e6f3}
body{background:var(--mcq-bg);color:var(--mcq-ink)}
.brand-logo{display:block;width:clamp(150px,17vw,205px);height:auto;max-height:58px;object-fit:contain}
.brand-footer .brand-logo{width:180px;max-height:52px}
.btn-primary{background:linear-gradient(110deg,var(--mcq-indigo),var(--mcq-violet));box-shadow:0 8px 20px #514bd52b}
.btn-primary:hover{background:var(--mcq-indigo)}
.feature-card,.year-panel,.province-card{border-color:var(--mcq-line)}
@media(max-width:760px){.brand-logo{width:155px;max-height:48px}}


/* MCQBay final brand override — purple/indigo reference palette */
:root{--mcq-indigo:#4542c8;--mcq-violet:#6963e8;--mcq-lavender:#817af2;--mcq-bg:#f1f2fa;--mcq-ink:#17213d;--mcq-muted:#68738e;--mcq-line:#e1e5f2}
body{background:var(--mcq-bg);color:var(--mcq-ink)}
.site-header{background:#fff;border-bottom-color:var(--mcq-line)}
.main-nav>a:hover,.main-nav>a.active,.login-link,.text-link,.feature-tag{color:var(--mcq-indigo)}
.brand-mark,.mini-icon,.panel-icon,.quick-icon{background:#efeeff;color:var(--mcq-violet)}
.btn-primary{background:linear-gradient(105deg,var(--mcq-indigo),var(--mcq-violet));box-shadow:0 8px 20px #514bd52b}
.btn-primary:hover{background:var(--mcq-indigo)}
.hero,.practice-section{background:linear-gradient(135deg,#3938b8 0%,#5d59df 58%,#8178ed 100%)}
.hero-lead,.hero-trust,.practice-copy>p{color:#e4e3ff}
.hero h1 em,.section-heading h2 em,.paper-copy h2 em,.practice-copy h2 em,.cta-inner h2 em{color:#817af2}
.quick-strip,.paper-section{background:#f1f2fa}
.feature-card,.year-panel,.province-card{border-color:var(--mcq-line)}
.feature-card:hover,.province-card:hover{border-color:#aaa5ff;background:#f8f7ff}
.cta-section{background:#efeeff}.cta-inner h2 em{color:var(--mcq-indigo)}
.site-footer{background:#24245f}
.brand-logo{display:block;width:clamp(155px,18vw,220px);height:auto;max-height:62px;object-fit:contain}
.brand-footer .brand-logo{width:185px;max-height:54px}
@media(max-width:760px){.brand-logo{width:160px;max-height:50px}}

/* MCQBay shared account/admin page compatibility layer */
.top{min-height:78px;background:#fff;border-bottom:1px solid #e7e8f4;display:flex;align-items:center;justify-content:space-between;padding:12px max(24px,calc((100% - 1160px)/2));gap:24px;flex-wrap:wrap}
.top>a{display:flex;align-items:center}.top .logo{display:block;width:190px;height:auto;max-height:58px;object-fit:contain}
.top nav{display:flex;align-items:center;gap:22px;flex-wrap:wrap}.top nav a{font-weight:700;color:#293454}.top nav a:hover{color:#5b55dc}
.wrap{width:min(1160px,calc(100% - 40px));min-height:58vh;margin:42px auto 64px}
.form,.auth-card{width:min(100%,560px);margin:30px auto;background:#fff;border:1px solid #e4e6f3;border-radius:20px;padding:34px;box-shadow:0 18px 50px #20245a12}
.form h1,.auth-card h1{font-size:clamp(28px,4vw,38px);line-height:1.2;color:#17264a;margin:0 0 24px}
.field{display:grid;gap:8px;margin:17px 0}.field label{font-size:16px;font-weight:700;color:#263451}
.field input,.field select,.field textarea,.form input:not([type=hidden]),.form select{width:100%;min-height:48px;padding:11px 14px;border:1px solid #d9dced;border-radius:10px;background:#fff;font:inherit;color:#17264a}
.form button,.auth-card button{border:0;cursor:pointer;background:#35b94a;color:#fff;border-radius:10px;padding:13px 22px;font:700 16px inherit}
.form button:hover,.auth-card button:hover{filter:brightness(.95)}
.alert{background:#fff2f0;color:#a12b25;border:1px solid #ffd4cf;padding:12px 15px;border-radius:10px;margin:14px 0}
footer{background:#15151b;color:#fff;padding:34px max(24px,calc((100% - 1160px)/2));margin-top:0;display:grid;gap:10px}
footer p{color:#d3d4df;margin:0}footer a{color:#dddafa;text-decoration:underline}footer small{color:#aaaab8;margin-top:8px}
.auth-shell{padding:35px 0}.auth-card .section-kicker{color:#625ce2}
@media(max-width:700px){.top{padding:14px 18px}.top nav{gap:12px}.wrap{width:calc(100% - 28px);margin:24px auto 40px}.form,.auth-card{padding:23px 18px}}


/* MCQBay unified account pages + shared footer: build 20261107-02 */
html{font-size:15px}
body{font-family:"DM Sans",Arial,sans-serif;font-size:15px;line-height:1.55;color:#17264a;background:#f3f4fa}
p,li,label,input,select,textarea,button{font-size:15px}
.top{background:#fff;min-height:72px;box-shadow:0 2px 14px rgba(28,35,75,.06);border-bottom:1px solid #e6e7f4}
.top-inner{width:min(1160px,calc(100% - 48px));min-height:72px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:24px}
.top .logo{display:block;width:175px;height:auto;max-height:52px;object-fit:contain}
.top nav{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.top nav a{font-size:14px;font-weight:700;color:#263454;text-decoration:none}
.top nav a.btn{padding:10px 18px;border-radius:9px;color:#fff}
.top nav a.green{background:#35b94a}
.top nav a.purple{background:#5145c5}
.wrap{width:min(1160px,calc(100% - 48px));min-height:calc(100vh - 245px);margin:34px auto 48px}
.auth-shell{padding:26px 0 38px}
.auth-card{width:min(100%,560px);margin:0 auto;background:#fff;border:1px solid #e4e6f3;border-radius:18px;padding:30px 34px;box-shadow:0 14px 38px rgba(32,36,90,.07)}
.auth-card h1,.form h1{font-size:27px;line-height:1.25;letter-spacing:-.6px;color:#17264a;margin:0 0 22px}
.auth-card .form,.wrap>.form{width:100%;max-width:none;margin:0;background:transparent;border:0;border-radius:0;padding:0;box-shadow:none}
.field{display:flex;flex-direction:column;gap:5px;margin:0 0 14px}
.field label{font-size:14px;font-weight:700;color:#263454}
.field input,.field select,.field textarea{width:100%;min-height:43px;padding:9px 12px;border:1px solid #d9deed;border-radius:8px;background:#fff;color:#17264a;font:400 15px "DM Sans",Arial,sans-serif}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:#625ce2;box-shadow:0 0 0 3px rgba(98,92,226,.12)}
.auth-card button,.form button{min-height:42px;padding:10px 20px;border:0;border-radius:9px;background:#35b94a;color:#fff;font:700 14px "DM Sans",Arial,sans-serif;cursor:pointer}
.auth-card .section-kicker{font-size:11px;letter-spacing:1.8px;color:#625ce2;font-weight:800}
.auth-card p,.form p{font-size:14px;color:#687493}
.alert{padding:12px 15px;border-radius:9px;background:#fff4e5;border:1px solid #f4d8ad;color:#85500e;margin:0 0 16px;font-size:14px}

/* Both the original homepage footer and account-page footer use the same near-black finish. */
.site-footer,.shared-footer,footer{background:#15151b!important;color:#f5f5fa!important}
.site-footer{padding:38px 0 20px!important}
.site-footer a,.shared-footer a,footer a{color:#e7e7f5!important;text-decoration:none}
.site-footer a:hover,.shared-footer a:hover,footer a:hover{color:#8b85ff!important}
.site-footer p,.shared-footer p,footer p{color:#c8cad7;font-size:14px}
.site-footer .footer-main{display:flex;align-items:flex-start;justify-content:space-between;gap:28px}
.site-footer .footer-links{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.site-footer .footer-bottom{display:flex;justify-content:space-between;gap:16px;border-top:1px solid #ffffff20;margin-top:24px;padding-top:16px;color:#b9bac7;font-size:12px}
.shared-footer{padding:30px 0 22px;margin-top:0}
.shared-footer-inner{width:min(1160px,calc(100% - 48px));margin:0 auto}
.shared-footer-inner>div b{font-size:17px;color:#fff}
.shared-footer-inner nav{display:flex;gap:18px;align-items:center;margin-top:12px}
.shared-footer-inner nav a{font-size:14px}
.shared-footer-inner small{display:block;margin-top:18px;color:#b9bac7;font-size:12px}
@media(max-width:700px){
 .top-inner{width:calc(100% - 28px);align-items:center;gap:12px;flex-wrap:wrap;padding:8px 0}
 .top .logo{width:145px}
 .top nav{gap:10px}
 .top nav a{font-size:13px}
 .wrap{width:calc(100% - 28px);margin:22px auto 32px}
 .auth-card{padding:24px 20px}
 .auth-card h1,.form h1{font-size:24px}
 .site-footer .footer-main,.site-footer .footer-bottom{display:flex;flex-direction:column;align-items:flex-start}
 .site-footer .footer-links{gap:14px}
}

/* MCQBay shared account and navigation refinement */
.main-nav>a,.shared-footer nav a{text-transform:uppercase;letter-spacing:.45px}
.logo{display:block;max-width:185px;max-height:52px;object-fit:contain}
.btn-green{background:#239b68;color:#fff}
.btn-green:hover{background:#188354}
.admin-login-link{font-size:12px;font-weight:800;color:#59617b;letter-spacing:.5px}
.auth-layout{width:min(1060px,calc(100% - 36px));margin:52px auto 64px;display:grid;grid-template-columns:1fr 1fr;min-height:570px;border-radius:22px;overflow:hidden;box-shadow:0 24px 70px rgba(24,31,72,.12);background:#fff}
.auth-story{background:linear-gradient(145deg,#3938b8,#5b55dc);color:#fff;padding:clamp(32px,5vw,62px);display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}
.auth-story:after{content:"";position:absolute;width:390px;height:390px;border:1px solid #ffffff20;border-radius:50%;right:-170px;bottom:-170px;box-shadow:0 0 0 45px #ffffff0a,0 0 0 90px #ffffff08}
.auth-eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:#d5d3ff}
.auth-story h1{font-size:clamp(31px,4vw,48px);line-height:1.12;letter-spacing:-1.8px;margin:20px 0}
.auth-story h1 em{font-style:normal;color:#c9c7ff}
.auth-story p{font-size:15px;line-height:1.8;color:#e0dfff;max-width:410px}
.auth-benefits{display:grid;gap:15px;margin-top:30px;font-size:11px;letter-spacing:.7px;font-weight:800;color:#f3f2ff}
.auth-panel{padding:clamp(28px,4vw,55px);display:flex;flex-direction:column;justify-content:center;background:#fff}
.auth-panel h2{font-size:25px;line-height:1.2;color:#17264a;margin:12px 0 8px;letter-spacing:-.7px}
.auth-muted{font-size:13px;color:#7a829a;margin:0 0 20px}
.auth-panel .form{width:100%;max-width:none;padding:0;border:0;box-shadow:none}
.auth-panel .field{margin:0 0 17px}
.auth-panel .field label{font-size:11px;letter-spacing:.55px;font-weight:800;color:#46516f}
.auth-panel input{min-height:48px;border:1px solid #e1e4f0;border-radius:9px;padding:12px 14px;font-size:14px}
.auth-submit{width:100%;border:0;min-height:48px;cursor:pointer;margin-top:5px}
.auth-links,.auth-register{font-size:11px;color:#69738f;text-align:center;margin:16px 0 0}
.auth-links a,.auth-register a{font-weight:800;color:#5953d7}
.shared-footer{background:#090909!important;color:#fff!important;padding:38px 0!important;margin-top:0}
.shared-footer p,.shared-footer small{color:#b8b8b8!important}
.shared-footer nav a{color:#fff!important}
@media(max-width:760px){.auth-layout{grid-template-columns:1fr;margin:24px auto 38px}.auth-story{padding:30px;min-height:280px}.auth-story h1{font-size:34px}.auth-panel{padding:30px 24px}.main-nav{gap:10px;flex-wrap:wrap;justify-content:flex-end}.main-nav .btn{font-size:11px;padding:9px 10px}.logo{max-width:140px;max-height:44px}}


/* MCQBay navigation refinements: green hover, compact student login, green register */
:root{--mcq-green:#15965f;--mcq-green-dark:#107a4d}
.main-nav>a:not(.btn):hover,.main-nav>a:not(.btn):focus-visible,.main-nav>a.active{color:var(--mcq-green)!important}
.btn-login{background:#f2f3ff;color:#4945bf;border:1px solid #e1e2fb;box-shadow:none;gap:7px;padding:9px 12px;font-size:11px;font-weight:800;letter-spacing:.15px}
.btn-login:hover{background:#e9f7ef;color:var(--mcq-green-dark);border-color:#bfe7d1}
.nav-login-icon{width:15px;height:15px;display:block;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.btn-green{background:var(--mcq-green);color:#fff;box-shadow:0 7px 16px #15965f24}
.btn-green:hover{background:var(--mcq-green-dark);color:#fff}
@media(max-width:760px){.btn-login{justify-content:center;font-size:11px}.main-nav>a.btn{margin-top:5px}}

/* Public navigation refinements: compact student login; registration CTA on homepage only */
.nav-login-link{display:inline-flex;align-items:center;gap:5px;padding:7px 4px;color:#59617b;font-size:10px;font-weight:700;letter-spacing:.25px;line-height:1;text-decoration:none;white-space:nowrap}
.nav-login-link:hover,.nav-login-link:focus-visible{color:var(--mcq-green-dark)}
.nav-login-icon{width:14px;height:14px;display:block;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.home-register-btn{background:var(--mcq-green);color:#fff;border:1px solid var(--mcq-green);font-size:11px;padding:9px 15px}
.home-register-btn:hover{background:var(--mcq-green-dark);border-color:var(--mcq-green-dark);color:#fff}
@media(max-width:760px){.nav-login-link{font-size:9px;gap:4px}.nav-login-icon{width:13px;height:13px}.home-register-btn{padding:8px 10px}}


/* Navigation hover accent is green only on login and registration pages */
.main-nav.auth-page-nav>a:hover,
.main-nav.auth-page-nav>a:focus-visible,
.main-nav.auth-page-nav>a.active{color:#28a745!important}

/* Paper upload admin module */
.admin-page{max-width:1180px;margin:30px auto}
.admin-page .page-heading{margin-bottom:22px}
.admin-page .page-heading p{color:#68718a;margin-top:6px}
.admin-page .card{margin:0 0 26px;padding:24px}
.admin-page .card h2{margin:0 0 20px;font-size:20px}
.admin-page .field small{display:block;color:#68718a;margin-top:6px}
.admin-page .table-wrap{overflow-x:auto}
.admin-page table{width:100%;border-collapse:collapse}
.admin-page th,.admin-page td{padding:11px 12px;text-align:left;border-bottom:1px solid #e8eaf1;white-space:nowrap}
.admin-page th{font-size:12px;color:#59627a;text-transform:uppercase}
.admin-page .status-pill{display:inline-block;padding:4px 9px;border-radius:20px;background:#fff4d9;color:#8a5b00;font-size:12px;font-weight:700}
.admin-page [hidden]{display:none!important}

/* PDF processing and extracted-page review */
.admin-page .extracted-page{padding:18px 0;border-top:1px solid #e8eaf1}
.admin-page .page-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.admin-page .extracted-page textarea{width:100%;min-height:180px;margin-bottom:10px;font-family:ui-monospace,monospace;font-size:13px;line-height:1.5}
/* MCQBay two-workflow navigation icon + label alignment */
.main-nav>a{display:inline-flex;align-items:center;gap:7px}.main-nav>a .icon{width:16px;height:16px;flex:none}.shared-footer nav a{display:inline-flex;align-items:center;gap:7px}


/* Homepage additions: icon-led feature cards, paper finder and live content cards */
.brand-logo{display:block;width:210px;height:auto;max-height:60px;object-fit:contain}
.main-nav .nav-item{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.main-nav .nav-item .icon{width:16px;height:16px}
.main-nav .login-link{display:inline-flex;align-items:center;gap:7px}
.main-nav .btn-small{gap:7px}
.home-tools{background:#f5f7fc;padding:18px 0 24px}
.home-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.home-feature{display:flex;align-items:center;gap:12px;min-height:88px;padding:15px 16px;background:#fff;border:1px solid #e1e6f0;border-radius:15px;box-shadow:0 7px 20px #1c31500a;transition:.2s}
.home-feature:hover{transform:translateY(-2px);border-color:#c8c6f5;box-shadow:0 10px 25px #1c315012}
.home-feature-icon{width:44px;height:44px;display:grid;place-items:center;flex:none;border-radius:12px;background:#efeeff;color:#5b55dc}
.home-feature-icon .icon{width:22px;height:22px}
.home-feature-icon.red{background:#fff1ef;color:#d9473e}
.home-feature-icon.green{background:#edf7ef;color:#268344}
.home-feature b,.home-feature small{display:block}
.home-feature b{font-size:13px;color:#1b2c4d;line-height:1.35}
.home-feature small{font-size:10.5px;color:#75829a;line-height:1.45;margin-top:4px}
.home-paper-search{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr auto;gap:9px;align-items:center;margin-top:22px;background:#172e54;border-radius:15px;padding:12px}
.home-search-title{display:flex;align-items:center;gap:9px;color:#fff;font-size:13px;padding:0 8px}
.home-search-title .icon{width:19px;height:19px;color:#c9c7ff}
.home-paper-search label{display:block;min-width:0;background:#fff;border:1px solid #dce2ed;border-radius:9px;padding:6px 10px}
.home-paper-search label span{display:block;font-size:9px;font-weight:800;color:#7d879b;margin-bottom:2px}
.home-paper-search select{width:100%;border:0;outline:0;background:#fff;color:#1d2e4e;font-size:12px}
.home-paper-search button{display:flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:9px;background:#5b55dc;color:#fff;padding:13px 17px;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap}
.home-paper-search button:hover{background:#4944c8}
.home-popular{padding-top:54px;padding-bottom:45px;background:#fff}
.home-section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}
.home-section-heading h2{font-size:22px;line-height:1.2;margin:0;color:#17264a;letter-spacing:-.6px}
.home-section-heading>a{display:flex;align-items:center;gap:6px;color:#27834a;font-size:12px;font-weight:800}
.home-section-heading>a .icon{width:15px;height:15px}
.home-popular-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:14px}
.home-paper-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.home-paper-card{min-width:0;background:#fff;border:1px solid #e1e6f0;border-radius:14px;padding:13px;box-shadow:0 7px 18px #1c31500a}
.home-paper-meta{display:flex;justify-content:space-between;gap:5px;margin-bottom:13px}
.home-paper-meta span{font-size:9px;font-weight:800;color:#526785;background:#edf2f9;border-radius:20px;padding:4px 7px}
.home-paper-info{display:flex;align-items:center;gap:9px;min-height:54px}
.home-paper-icon{width:38px;height:38px;display:grid;place-items:center;flex:none;border-radius:10px;background:#eef2fc;color:#315fa7}
.home-paper-icon .icon{width:21px;height:21px}
.home-paper-info b,.home-paper-info small{display:block;overflow-wrap:anywhere}
.home-paper-info b{font-size:14px;color:#17264a}
.home-paper-info small{font-size:11px;line-height:1.45;color:#77849b;margin-top:4px}
.home-paper-actions{display:flex;justify-content:space-between;gap:7px;border-top:1px solid #edf0f5;margin-top:11px;padding-top:10px}
.home-paper-actions a{display:flex;align-items:center;gap:4px;font-size:10px;font-weight:800;white-space:nowrap}
.home-paper-actions .icon{width:13px;height:13px}
.paper-view,.paper-download{padding:7px 12px;border-radius:7px;justify-content:center;flex:1}.paper-view{color:#315fa7;background:#eef3fb}.paper-download{color:#fff;background:#27834a}
.home-progress-card{background:#f0f4fb;border:1px solid #e0e8f3;border-radius:15px;padding:20px;display:flex;flex-direction:column;justify-content:center}
.home-progress-icon{color:#315fa7}
.home-progress-icon .icon{width:37px;height:37px}
.home-progress-card h3{font-size:17px;line-height:1.25;color:#17264a;margin:10px 0 7px}
.home-progress-card p{font-size:11px;line-height:1.55;color:#728098;margin:0 0 15px}
.home-progress-card>a{display:flex;justify-content:center;align-items:center;gap:7px;border-radius:8px;background:#27834a;color:#fff;padding:10px 12px;font-size:11px;font-weight:800}
.home-progress-card>a .icon{width:14px;height:14px}
.home-subjects{padding-top:35px;padding-bottom:55px}
.home-subject-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px}
.home-subject-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:82px;padding:12px 8px;background:#fff;border:1px solid #e1e6f0;border-radius:13px;transition:.2s}
.home-subject-card:hover{border-color:#aaa5ff;background:#fafaff;transform:translateY(-2px)}
.home-subject-card>span{color:#315fa7}
.home-subject-card .icon{width:23px;height:23px}
.home-subject-card b{font-size:11px;color:#243653;text-align:center}
.home-empty{grid-column:1/-1;padding:20px;background:#f7f8fc;border:1px dashed #d5dceb;border-radius:12px;color:#748198;font-size:12px}
@media(max-width:1050px){
 .home-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-paper-search{grid-template-columns:1fr 1fr 1fr}
 .home-search-title{grid-column:1/-1}
 .home-popular-layout{grid-template-columns:1fr 220px}
 .home-paper-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 .main-nav.is-open{display:flex;position:absolute;top:69px;left:0;right:0;background:#fff;border-bottom:1px solid #e6e7f4;padding:13px 22px 20px;box-shadow:0 18px 25px #143b3010;align-items:stretch;gap:0;flex-direction:column}
 .main-nav.is-open>a{padding:11px 3px;border-bottom:1px solid #f0f1f6}
 .main-nav.is-open .nav-actions{display:flex;align-items:center;justify-content:space-between;margin:12px 0 0;gap:12px}
 .main-nav .nav-item{font-size:14px}
 .home-feature-grid{gap:8px}
 .home-feature{padding:11px;gap:9px;min-height:78px}
 .home-feature-icon{width:36px;height:36px}
 .home-feature-icon .icon{width:19px;height:19px}
 .home-feature b{font-size:11px}
 .home-feature small{font-size:9px}
 .home-paper-search{grid-template-columns:1fr 1fr;padding:10px}
 .home-search-title{grid-column:1/-1;font-size:12px;padding:3px}
 .home-paper-search button{grid-column:1/-1}
 .home-popular{padding-top:38px;padding-bottom:32px}
 .home-popular-layout{grid-template-columns:1fr}
 .home-paper-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .home-paper-card{padding:10px}
 .home-progress-card{padding:16px}
 .home-subject-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .home-section-heading h2{font-size:19px}
}
@media(max-width:390px){
 .home-feature-grid{grid-template-columns:1fr}
 .home-paper-grid{grid-template-columns:1fr}
 .home-subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* MCQBay homepage sections — missing component styles restored */
.home-tools{background:#f4f5fc;padding:20px 0 24px}
.home-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}
.home-feature{min-width:0;display:flex;align-items:center;gap:13px;padding:16px 17px;background:#fff;border:1px solid #e2e6f1;border-radius:15px;box-shadow:0 5px 18px rgba(25,38,77,.045);transition:transform .18s,box-shadow .18s}
.home-feature:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(25,38,77,.08)}
.home-feature-icon{width:44px;height:44px;flex:0 0 44px;border-radius:12px;background:#edf3fc;color:#2463b5;display:grid;place-items:center}
.home-feature-icon .icon{width:22px;height:22px}
.home-feature-icon.red{background:#fff0ef;color:#d9433b}
.home-feature-icon.green{background:#edf7ef;color:#27843b}
.home-feature b,.home-feature small{display:block}
.home-feature b{font-size:14px;line-height:1.35;color:#17264a;margin-bottom:3px}
.home-feature small{font-size:11px;line-height:1.45;color:#718097}
.home-paper-search{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr auto;gap:10px;align-items:center;padding:13px 15px;background:#142e53;border-radius:15px}
.home-search-title{display:flex;align-items:center;gap:9px;color:#fff;font-size:14px}
.home-search-title .icon{width:19px;color:#b9cbe2}
.home-paper-search label{display:grid;gap:4px;min-width:0;padding:7px 11px;background:#fff;border:1px solid #dce4ef;border-radius:10px}
.home-paper-search label span{font-size:10px;font-weight:700;color:#78869b}
.home-paper-search select{width:100%;min-width:0;border:0;outline:0;background:#fff;color:#17264a;font-size:12px}
.home-paper-search button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:45px;padding:10px 17px;border:0;border-radius:10px;background:#fff;color:#17264a;font-size:12px;font-weight:800;cursor:pointer}
.home-paper-search button:hover{background:#edf3fc}
.home-popular{padding-top:43px;padding-bottom:46px;background:#fff}
.home-section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:17px}
.home-section-heading h2{margin:0;color:#17264a;font-size:23px;letter-spacing:-.7px}
.home-section-heading>a{display:inline-flex;align-items:center;gap:6px;color:#27843b;font-size:12px;font-weight:800;white-space:nowrap}
.home-section-heading>a .icon{width:15px;height:15px}
.home-popular-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:16px;align-items:stretch}
.home-paper-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.home-paper-card{min-width:0;padding:14px 13px;background:#fff;border:1px solid #e1e7f0;border-radius:15px;box-shadow:0 5px 17px rgba(25,38,77,.045)}
.home-paper-meta{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:14px}
.home-paper-meta span{padding:4px 8px;border-radius:20px;background:#edf3fa;color:#45617e;font-size:10px;font-weight:800}
.home-paper-info{display:flex;align-items:center;gap:9px;min-height:52px;min-width:0}
.home-paper-icon{width:39px;height:39px;flex:0 0 39px;display:grid;place-items:center;border-radius:11px;background:#edf3fc;color:#2463b5}
.home-paper-icon .icon{width:22px;height:22px}
.home-paper-info>b,.home-paper-info span:last-child{min-width:0}
.home-paper-info b,.home-paper-info small{display:block}
.home-paper-info b{font-size:13px;line-height:1.35;color:#17264a}
.home-paper-info small{margin-top:4px;font-size:10px;line-height:1.35;color:#718097;overflow-wrap:anywhere}
.home-paper-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid #edf0f5}
.home-paper-actions a{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:800}
.home-paper-actions .icon{width:14px;height:14px}
.home-paper-actions .paper-pdf{color:#d9433b}
.home-paper-actions .paper-practice{color:#27843b}
.home-empty{grid-column:1/-1;padding:22px;background:#f7f9fc;border:1px dashed #d8e0eb;border-radius:12px;color:#718097;font-size:12px}
.home-progress-card{display:flex;flex-direction:column;justify-content:center;padding:22px;background:#edf3fa;border:1px solid #e0e9f3;border-radius:16px}
.home-progress-icon{display:inline-flex;color:#2463b5;margin-bottom:10px}
.home-progress-icon .icon{width:40px;height:40px}
.home-progress-card h3{margin:0 0 8px;color:#17264a;font-size:19px;line-height:1.25}
.home-progress-card p{margin:0 0 17px;color:#718097;font-size:12px;line-height:1.6}
.home-progress-card>a{display:flex;align-items:center;justify-content:center;gap:7px;padding:11px 12px;background:#27843b;color:#fff;border-radius:9px;font-size:12px;font-weight:800}
.home-progress-card>a:hover{background:#176d2d}
.home-progress-card>a .icon{width:15px;height:15px}
.home-subjects{padding-top:42px;padding-bottom:48px}
.home-subject-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.home-subject-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:88px;padding:14px 9px;background:#fff;border:1px solid #e1e7f0;border-radius:13px;transition:border-color .18s,transform .18s}
.home-subject-card:hover{border-color:#9bb6d5;transform:translateY(-2px)}
.home-subject-card>span{display:grid;place-items:center;color:#2463b5}
.home-subject-card .icon{width:24px;height:24px}
.home-subject-card b{font-size:12px;color:#17264a;text-align:center}
@media(max-width:1050px){
 .home-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-paper-search{grid-template-columns:repeat(3,minmax(0,1fr))}
 .home-search-title{grid-column:1/-1}
 .home-popular-layout{grid-template-columns:minmax(0,1fr) 230px}
 .home-paper-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-subject-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
 .home-tools{padding:15px 0 20px}
 .home-feature-grid{gap:9px}
 .home-feature{padding:12px 10px;gap:9px}
 .home-feature-icon{width:36px;height:36px;flex-basis:36px}
 .home-feature-icon .icon{width:19px;height:19px}
 .home-feature b{font-size:11px}
 .home-feature small{font-size:9px}
 .home-paper-search{grid-template-columns:1fr 1fr;padding:11px;gap:8px}
 .home-search-title{grid-column:1/-1;font-size:12px}
 .home-paper-search button{grid-column:1/-1}
 .home-popular{padding-top:30px;padding-bottom:32px}
 .home-section-heading h2{font-size:20px}
 .home-popular-layout{grid-template-columns:1fr}
 .home-paper-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .home-paper-card{padding:11px 10px}
 .home-paper-info{gap:7px}
 .home-paper-icon{width:34px;height:34px;flex-basis:34px}
 .home-paper-info b{font-size:11px}
 .home-paper-info small{font-size:9px}
 .home-paper-actions a{font-size:10px}
 .home-progress-card{padding:18px}
 .home-subjects{padding-top:30px;padding-bottom:35px}
 .home-subject-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .home-subject-card{min-height:76px}
}
@media(max-width:390px){
 .home-feature-grid,.home-paper-grid{grid-template-columns:1fr}
 .home-subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-section-heading{align-items:flex-start}
}


/* Header navigation refinement: icons only on authentication actions */
.main-nav>.nav-item{gap:0}
.main-nav>.nav-item>.icon{display:none}
.main-nav .nav-actions .login-link .icon,
.main-nav .nav-actions .btn-small .icon{display:inline-block;width:16px;height:16px}
.main-nav .nav-actions .btn-primary{background:#27843b;color:#fff;box-shadow:0 7px 18px rgba(39,132,59,.16)}
.main-nav .nav-actions .btn-primary:hover{background:#176d2d}
.main-nav .nav-actions .login-link{color:#4d43c8}
.main-nav .nav-actions .login-link:hover{color:#27843b}


/* MCQBay student area refresh — cards, subject tiles, profile settings */
.student-dashboard,.mcq-subject-page,.profile-page,.library-page{max-width:1180px;margin:34px auto 58px;padding:0 22px}
.dash-eyebrow{display:inline-flex;align-items:center;gap:7px;color:#27843b;font-size:10px;font-weight:800;letter-spacing:1.25px}
.dash-eyebrow .icon{width:15px;height:15px}
.student-welcome,.profile-page-heading,.mcq-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.student-welcome h1,.profile-page-heading h1,.mcq-page-heading h1{margin:7px 0 5px;color:#17264a;font-size:clamp(26px,4vw,35px);letter-spacing:-1px}
.student-welcome p,.profile-page-heading p,.mcq-page-heading p{margin:0;color:#718097;font-size:14px}
.dash-profile-btn,.profile-back{display:inline-flex;align-items:center;gap:8px;padding:11px 15px;border:1px solid #dce5ef;border-radius:10px;background:#fff;color:#214a78;font-size:12px;font-weight:800;white-space:nowrap}
.dash-profile-btn .icon,.profile-back .icon{width:16px;height:16px}
.student-profile-card{display:flex;align-items:center;gap:17px;padding:21px 23px;margin-bottom:30px;background:linear-gradient(110deg,#fff,#f5f8fc);border:1px solid #e2e9f1;border-radius:17px;box-shadow:0 8px 24px rgba(20,43,77,.045)}
.profile-avatar{width:54px;height:54px;flex:0 0 54px;border-radius:16px;display:grid;place-items:center;background:#eaf1fb;color:#2463a8}
.profile-avatar .icon{width:27px;height:27px}
.profile-details{min-width:0;flex:1}
.dash-label{font-size:10px;font-weight:800;letter-spacing:1.1px;color:#8a96a8}
.profile-details h2{margin:4px 0 5px;color:#17264a;font-size:18px}
.profile-details p{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0;color:#65758c;font-size:12px}
.profile-details p .icon{width:14px;height:14px;color:#52769c}
.profile-sep{color:#c1cbd7}
.profile-tags,.profile-summary-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.profile-tags span,.profile-summary-tags span{padding:5px 9px;border-radius:20px;background:#eef3f9;color:#45617e;font-size:10px;font-weight:800}
.profile-edit-link{display:inline-flex;align-items:center;gap:6px;color:#27843b;font-size:12px;font-weight:800;white-space:nowrap}
.profile-edit-link .icon{width:15px}
.dash-section-head{margin:0 0 14px}.dash-section-head h2{margin:5px 0 0;color:#17264a;font-size:21px}
.student-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.student-action-card{display:flex;gap:14px;min-width:0;padding:19px;background:#fff;border:1px solid #e3e9f1;border-radius:16px;box-shadow:0 7px 22px rgba(20,43,77,.04);transition:.18s}
.student-action-card:hover{transform:translateY(-3px);border-color:#c7d7e8;box-shadow:0 12px 28px rgba(20,43,77,.08)}
.action-icon{width:46px;height:46px;flex:0 0 46px;border-radius:13px;display:grid;place-items:center}
.action-icon .icon{width:23px;height:23px}.action-icon.blue{background:#edf3fc;color:#2863a5}.action-icon.green{background:#edf7ef;color:#27843b}.action-icon.violet{background:#f1efff;color:#665bd1}
.action-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.action-copy b{color:#17264a;font-size:14px}.action-copy small{margin-top:6px;color:#718097;font-size:11px;line-height:1.55}
.action-copy em{display:inline-flex;align-items:center;gap:5px;margin-top:13px;color:#27843b;font-size:11px;font-style:normal;font-weight:800}.action-copy em .icon{width:14px;height:14px}
.mcq-page-heading{padding:24px 26px;background:linear-gradient(115deg,#f3f7fc,#edf3fa);border:1px solid #e2eaf3;border-radius:18px}
.mcq-heading-mark{width:58px;height:58px;display:grid;place-items:center;border-radius:17px;background:#fff;color:#2763a7;box-shadow:0 6px 18px rgba(20,43,77,.06)}
.mcq-heading-mark .icon{width:30px;height:30px}
.mcq-filter-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 17px}
.mcq-filter-bar label{display:flex;align-items:center;gap:9px;width:min(100%,430px);padding:0 13px;height:44px;border:1px solid #dce5ef;border-radius:11px;background:#fff;color:#718097}
.mcq-filter-bar label .icon{width:17px;height:17px}.mcq-filter-bar input{width:100%;border:0;outline:0;color:#17264a;font-size:13px}.mcq-filter-bar>span{color:#8793a5;font-size:11px}
.mcq-subject-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.mcq-subject-card{display:flex;align-items:center;gap:14px;padding:17px;background:#fff;border:1px solid #e2e8f0;border-radius:15px;box-shadow:0 6px 18px rgba(20,43,77,.035);transition:.18s}
.mcq-subject-card:hover{transform:translateY(-2px);border-color:#bfd1e4;box-shadow:0 10px 25px rgba(20,43,77,.07)}
.mcq-subject-icon{width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;border-radius:14px;background:#edf3fb;color:#2763a7;overflow:hidden}
.mcq-subject-icon img{width:100%;height:100%;object-fit:contain;padding:7px}
.subject-svg{width:25px;height:25px}
.mcq-subject-content{display:flex;flex-direction:column;min-width:0}
.mcq-subject-content small{font-size:9px;letter-spacing:.9px;font-weight:800;color:#8a96a8}
.mcq-subject-content b{margin-top:4px;color:#17264a;font-size:14px}
.mcq-subject-content em{display:inline-flex;align-items:center;gap:5px;margin-top:8px;color:#27843b;font-size:11px;font-style:normal;font-weight:800}
.mcq-subject-content em .icon{width:14px;height:14px}
.mcq-empty{padding:45px 20px;text-align:center;background:#fff;border:1px dashed #d5dfeb;border-radius:15px;color:#718097}
.mcq-empty>.icon{width:34px;height:34px;color:#7c9abb}.mcq-empty h3{color:#17264a}
.profile-page-heading{margin-bottom:20px}.profile-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:17px;align-items:start}
.profile-summary,.profile-form-card{background:#fff;border:1px solid #e2e8f0;border-radius:17px;box-shadow:0 7px 22px rgba(20,43,77,.045)}
.profile-summary{padding:24px;text-align:center}.profile-avatar.large{width:68px;height:68px;margin:0 auto 12px;border-radius:21px}.profile-avatar.large .icon{width:32px;height:32px}
.profile-summary h2{margin:0;color:#17264a;font-size:17px}.profile-summary>p{margin:6px 0;color:#718097;font-size:11px;overflow-wrap:anywhere}
.profile-summary-tags{justify-content:center}.profile-summary-note{display:flex;justify-content:center;align-items:center;gap:7px;margin-top:22px;padding-top:15px;border-top:1px solid #edf0f5;color:#75849a;font-size:10px}.profile-summary-note .icon{width:15px;color:#27843b}
.profile-forms{display:grid;gap:16px}.profile-form-card{padding:22px}
.profile-form-title{display:flex;align-items:center;gap:11px;margin-bottom:19px;color:#2763a7}.profile-form-title>.icon{width:23px;height:23px}
.profile-form-title span{display:flex;flex-direction:column;gap:3px}.profile-form-title b{color:#17264a;font-size:16px}.profile-form-title small{color:#8290a3;font-size:11px}
.profile-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.profile-form-grid label{display:grid;gap:6px;color:#40536d;font-size:11px;font-weight:800}
.profile-form-grid label.full{grid-column:1/-1}
.profile-form-grid input,.profile-form-grid select{width:100%;height:43px;box-sizing:border-box;padding:9px 11px;border:1px solid #dce4ed;border-radius:9px;background:#fff;color:#17264a;font:inherit;font-size:13px}
.profile-form-grid input:focus,.profile-form-grid select:focus{outline:0;border-color:#6a9acb;box-shadow:0 0 0 3px rgba(39,99,167,.09)}
.profile-form-grid input:disabled{background:#f4f6f9;color:#8390a1}
.profile-form-grid label small{font-size:10px;font-weight:500;color:#8a96a8}
.profile-save{display:inline-flex;align-items:center;gap:8px;margin-top:17px;padding:11px 16px;border:0;border-radius:9px;background:#27843b;color:#fff;font-size:12px;font-weight:800;cursor:pointer}
.profile-save:hover{background:#176d2d}.profile-save .icon{width:16px;height:16px}
.profile-alert{padding:12px 15px;margin-bottom:14px;border-radius:10px;font-size:12px}.profile-alert.error{background:#fff0f0;color:#a52f2f}.profile-alert.success{background:#edf8ef;color:#24763a}
@media(max-width:850px){.student-action-grid{grid-template-columns:1fr 1fr}.mcq-subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-layout{grid-template-columns:1fr}.profile-summary{display:grid;grid-template-columns:auto 1fr;column-gap:14px;text-align:left;align-items:center}.profile-summary .profile-avatar{grid-row:span 3;margin:0}.profile-summary-tags{justify-content:flex-start}.profile-summary-note{grid-column:1/-1}}
@media(max-width:600px){.student-dashboard,.mcq-subject-page,.profile-page,.library-page{margin:22px auto 38px;padding:0 14px}.student-welcome,.profile-page-heading{align-items:flex-start;flex-direction:column}.student-profile-card{align-items:flex-start;flex-wrap:wrap;padding:17px}.profile-edit-link{margin-left:70px}.student-action-grid,.mcq-subject-grid{grid-template-columns:1fr}.mcq-page-heading{padding:18px}.mcq-heading-mark{display:none}.mcq-filter-bar{align-items:flex-start;flex-direction:column}.profile-form-card{padding:17px}.profile-form-grid{grid-template-columns:1fr}.profile-form-grid label.full{grid-column:auto}}

/* Library page modern filter and result cards */
.library-page{max-width:1180px;margin:34px auto 58px;padding:0 22px}
.library-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px;padding:22px 25px;background:linear-gradient(115deg,#f2f6fb,#edf3fa);border:1px solid #e2eaf3;border-radius:17px}
.library-heading h1{margin:7px 0 5px;color:#17264a;font-size:clamp(26px,4vw,35px);letter-spacing:-1px}
.library-heading p{margin:0;color:#718097;font-size:13px}
.library-heading-icon{width:58px;height:58px;display:grid;place-items:center;background:#fff;color:#2863a5;border-radius:16px}
.library-heading-icon .icon{width:29px;height:29px}
.library-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:17px}
.library-category{display:flex;align-items:center;gap:12px;padding:15px;background:#fff;border:1px solid #e1e8f0;border-radius:14px;box-shadow:0 5px 16px rgba(20,43,77,.035)}
.library-category.selected{border-color:#8bb1d5;box-shadow:0 0 0 2px rgba(39,99,167,.08)}
.lib-cat-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;flex:none}
.lib-cat-icon .icon{width:22px;height:22px}
.lib-cat-icon.blue{background:#edf3fb;color:#2863a5}.lib-cat-icon.purple{background:#f1efff;color:#685dd0}.lib-cat-icon.green{background:#edf7ef;color:#27843b}
.library-category b,.library-category small{display:block}.library-category b{font-size:12px;color:#17264a}.library-category small{margin-top:4px;font-size:10px;color:#7c899c}
.library-filter-card{padding:20px;background:#fff;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 7px 22px rgba(20,43,77,.04)}
.library-filter-title{display:flex;align-items:center;gap:10px;margin-bottom:16px;color:#2863a5}
.library-filter-title>.icon{width:23px;height:23px}.library-filter-title span{display:flex;flex-direction:column;gap:3px}
.library-filter-title b{color:#17264a;font-size:14px}.library-filter-title small{color:#8390a2;font-size:10px}
.library-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.library-filter-grid label{display:grid;gap:6px;color:#40536d;font-size:11px;font-weight:800}
.library-filter-grid label.wide{grid-column:span 2}
.library-filter-grid input,.library-filter-grid select{height:42px;min-width:0;width:100%;box-sizing:border-box;border:1px solid #dce4ed;border-radius:9px;padding:8px 10px;background:#fff;color:#17264a;font:inherit;font-size:12px}
.library-search-btn{display:inline-flex;align-items:center;gap:8px;margin-top:14px;padding:11px 16px;border:0;border-radius:9px;background:#27843b;color:#fff;font-size:12px;font-weight:800;cursor:pointer}
.library-search-btn:hover{background:#176d2d}.library-search-btn .icon{width:16px;height:16px}
.library-results-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:26px 0 13px}
.library-results-head h2{margin:4px 0 0;color:#17264a;font-size:20px}
.library-results-head>span{color:#8290a3;font-size:10px;font-weight:800;letter-spacing:.7px}
.library-results-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.library-paper-card{padding:17px;background:#fff;border:1px solid #e2e8f0;border-radius:15px;box-shadow:0 6px 18px rgba(20,43,77,.035)}
.library-paper-top{display:flex;align-items:center;justify-content:space-between}
.lib-cat-badge{padding:5px 9px;border-radius:20px;background:#edf3fb;color:#365c86;font-size:9px;font-weight:800}
.lib-cat-badge.school{background:#f1efff;color:#6558c7}.lib-cat-badge.supportive{background:#edf7ef;color:#27843b}
.library-file-icon{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;background:#f0f5fb;color:#2863a5}
.library-file-icon .icon{width:19px;height:19px}
.library-paper-card h3{margin:13px 0 6px;color:#17264a;font-size:14px;line-height:1.4}
.library-paper-card p{margin:0;color:#7a889c;font-size:10px}
.library-paper-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:15px;padding-top:12px;border-top:1px solid #edf0f5}
.library-paper-bottom>span{font-size:10px;color:#8190a4;font-weight:800}
.library-paper-bottom a{display:inline-flex;align-items:center;gap:6px;color:#27843b;font-size:11px;font-weight:800}
.library-paper-bottom a .icon{width:14px;height:14px}
.library-no-results{grid-column:1/-1;padding:38px 20px;text-align:center;background:#fff;border:1px dashed #d7e1ec;border-radius:15px;color:#718097}
.library-no-results>.icon{width:30px;height:30px;color:#7d9cbd}.library-no-results h3{margin:9px 0 5px;color:#17264a}.library-no-results p{margin:0;font-size:12px}
@media(max-width:850px){.library-category-grid{grid-template-columns:1fr}.library-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.library-page{margin:22px auto 38px;padding:0 14px}.library-heading{padding:18px}.library-heading-icon{display:none}.library-filter-card{padding:15px}.library-filter-grid{grid-template-columns:1fr}.library-filter-grid label.wide{grid-column:auto}.library-results-grid{grid-template-columns:1fr}.library-results-head{align-items:flex-start;flex-direction:column}}
/* Subject admin upload controls */
.subject-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.subject-form>.sub-btn{min-height:44px}
.subject-form input[type=file]{height:auto!important;padding:9px!important;font-size:11px!important}

/* Homepage subject icons: use the custom image uploaded in Admin > Subjects. */
.home-subject-card .home-subject-icon{display:grid;place-items:center;width:38px;height:38px;color:#2463b5;flex:none}
.home-subject-card .home-subject-icon img{display:block;width:32px;height:32px;max-width:100%;max-height:100%;object-fit:contain}
.home-subject-card .home-subject-icon .icon{width:28px;height:28px}


/* Homepage uploaded subject icons: constrain image dimensions like the subject listing. */
.home-subject-card > .home-subject-icon{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 40px !important;
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  min-height:40px !important;
  max-width:40px !important;
  max-height:40px !important;
  overflow:hidden !important;
}
.home-subject-card > .home-subject-icon > img{
  display:block !important;
  width:32px !important;
  height:32px !important;
  min-width:32px !important;
  min-height:32px !important;
  max-width:32px !important;
  max-height:32px !important;
  object-fit:contain !important;
  object-position:center !important;
  flex:none !important;
}


/* MCQBay subject language buttons — scoped styles only */
.mcq-subject-card-language{
  align-items:center;
}
.mcq-subject-card-language .mcq-subject-content{
  flex:1;
  gap:0;
}
.mcq-language-label{
  display:block;
  margin-top:7px;
  color:#718097;
  font-size:9px;
  font-weight:800;
  letter-spacing:.7px;
  line-height:1.2;
}
.mcq-language-options{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  margin-top:7px;
}
.mcq-language-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:5px 10px;
  border:1px solid #dce5f0;
  border-radius:8px;
  background:#f7f9fc;
  color:#253d5c;
  font-family:inherit;
  font-size:11px;
  font-weight:700;
  line-height:1.2;
  text-decoration:none;
  white-space:nowrap;
  box-sizing:border-box;
}
a.mcq-language-button:hover,
a.mcq-language-button:focus-visible{
  background:#eaf3ff;
  border-color:#9dbce0;
  color:#174f91;
  outline:none;
}
.mcq-language-button.is-disabled{
  opacity:.48;
  cursor:not-allowed;
  background:#f3f5f8;
  color:#718097;
}
@media(max-width:600px){
  .mcq-language-options{gap:5px}
  .mcq-language-button{padding:5px 9px}
}

/* MCQBay targeted header and homepage footer repair — 2026-11-10 */
/* Desktop: never show the mobile menu toggle. */
.mobile-menu-toggle{display:none!important}
@media(max-width:760px){
  .mobile-menu-toggle{
    display:flex!important;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:4px;
    width:42px;
    height:42px;
    padding:9px;
    border:1px solid #e1e5f2;
    border-radius:9px;
    background:#fff;
    color:#17264a;
    cursor:pointer;
    flex:none;
  }
  .mobile-menu-toggle span{
    display:block;
    width:19px;
    height:2px;
    border-radius:2px;
    background:currentColor;
  }
  .site-header .main-nav{display:none}
  .site-header .main-nav.mobile-menu-open{
    display:flex;
    flex-direction:column;
    position:absolute;
    top:69px;
    left:0;
    right:0;
    z-index:60;
    padding:14px 22px 20px;
    background:#fff;
    border-bottom:1px solid #e6e7f4;
    box-shadow:0 18px 25px rgba(20,35,70,.10);
    align-items:stretch;
    gap:0;
  }
  .site-header .main-nav.mobile-menu-open>a{
    display:flex;
    padding:11px 3px;
    border-bottom:1px solid #f0f1f6;
  }
  .site-header .main-nav.mobile-menu-open .nav-actions{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:12px 0 0;
    gap:12px;
  }
}

/* Homepage footer: restore compact logo, social links and disclaimer layout. */
.homepage-shared-footer{
  background:#090909!important;
  color:#f5f5fa!important;
  padding:36px 0 20px!important;
}
.homepage-footer-main{
  display:grid!important;
  grid-template-columns:185px minmax(0,1fr);
  align-items:start!important;
  gap:28px!important;
  padding-bottom:26px!important;
}
.homepage-footer-brand{min-width:0;display:flex;flex-direction:column;gap:22px}
.homepage-footer-brand .brand-footer{display:inline-flex;align-items:center}
.homepage-footer-brand .brand-logo{
  display:block;
  width:185px;
  max-width:100%;
  height:auto;
  max-height:54px;
  object-fit:contain;
}
.homepage-social-links{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
}
.homepage-social-links .footer-social-link{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:28px;
  color:#f0f0f5!important;
  font-size:13px;
  line-height:1.4;
  text-decoration:none!important;
}
.homepage-social-links .footer-social-link svg{
  display:block;
  width:22px!important;
  height:22px!important;
  max-width:22px;
  max-height:22px;
  flex:0 0 22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
}
.homepage-social-links .footer-social-link svg *{
  vector-effect:non-scaling-stroke;
}
.homepage-social-links .footer-social-link:hover{color:#8b85ff!important}
.homepage-social-links .footer-social-pending{opacity:.75}
.homepage-footer-right{min-width:0}
.homepage-footer-links{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 18px;
  margin:2px 0 14px;
}
.homepage-footer-links a{
  color:#f0f0f5!important;
  font-size:12px;
  font-weight:600;
  text-decoration:none!important;
}
.homepage-footer-links a:hover{color:#aaa5ff!important}
.homepage-footer-disclaimer strong{
  display:block;
  margin:0 0 5px;
  color:#fff;
  font-size:13px;
}
.homepage-footer-disclaimer p{
  margin:0 0 5px;
  color:#c8cad7!important;
  font-size:12px!important;
  line-height:1.65;
}
.homepage-footer-disclaimer>a{
  display:inline-block;
  margin-top:2px;
  color:#fff!important;
  font-size:12px;
  font-weight:700;
  text-decoration:none!important;
}
.homepage-footer-disclaimer>a:hover{color:#aaa5ff!important}
.homepage-shared-footer .footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  border-top:1px solid rgba(255,255,255,.14);
  padding-top:16px;
  color:#b9bac7;
  font-size:11px;
}
.homepage-shared-footer .footer-heart-char{color:#f2a4b4}
@media(max-width:760px){
  .homepage-footer-main{
    grid-template-columns:1fr;
    gap:22px!important;
  }
  .homepage-footer-brand{gap:15px}
  .homepage-footer-brand .brand-logo{width:165px;max-height:50px}
  .homepage-social-links{flex-direction:row;flex-wrap:wrap;gap:12px 18px}
  .homepage-footer-links{gap:10px 14px}
  .homepage-shared-footer .footer-bottom{flex-direction:column;align-items:flex-start}
}



/* MCQBay homepage footer refinement — disclaimer panel and menu alignment */
.homepage-footer-right{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  min-width:0;
}
.homepage-footer-links{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:wrap!important;
  gap:10px 22px!important;
  min-height:28px;
  margin:0 0 16px!important;
  padding:0 0 13px;
  border-bottom:1px solid rgba(255,255,255,.16);
}
.homepage-footer-links a{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  line-height:1.35;
  white-space:nowrap;
}
.homepage-footer-disclaimer{
  display:block;
  width:100%;
  padding:17px 19px 16px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:10px;
  background:rgba(255,255,255,.055);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}
.homepage-footer-disclaimer strong{
  margin:0 0 8px;
  font-size:13px;
  line-height:1.4;
  letter-spacing:.2px;
}
.homepage-footer-disclaimer p{
  margin:0 0 7px;
  font-size:12px!important;
  line-height:1.65!important;
}
.homepage-footer-disclaimer>a{
  margin-top:4px;
  line-height:1.5;
}
.homepage-shared-footer .footer-bottom{
  align-items:center!important;
}
@media(max-width:760px){
  .homepage-footer-links{
    justify-content:flex-start!important;
    gap:9px 15px!important;
    padding-bottom:11px;
    margin-bottom:13px!important;
  }
  .homepage-footer-disclaimer{
    padding:14px 15px;
  }
  .homepage-shared-footer .footer-bottom{
    align-items:flex-start!important;
  }
}


/* MCQBay homepage footer: place the disclaimer in the right column beside the brand. */
@media (min-width:761px){
  .homepage-shared-footer .homepage-footer-main{
    display:grid!important;
    grid-template-columns:290px minmax(0,1fr)!important;
    grid-template-rows:auto!important;
    align-items:start!important;
    column-gap:28px!important;
    row-gap:0!important;
  }
  .homepage-shared-footer .homepage-footer-brand{
    grid-column:1!important;
    grid-row:1!important;
    min-width:0!important;
  }
  .homepage-shared-footer .homepage-footer-right{
    grid-column:2!important;
    grid-row:1!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-self:stretch!important;
    width:100%!important;
    min-width:0!important;
  }
  .homepage-shared-footer .homepage-footer-links{
    justify-content:flex-end!important;
    margin:0 0 13px!important;
    padding:0 0 11px!important;
  }
  .homepage-shared-footer .homepage-footer-disclaimer{
    display:block!important;
    position:static!important;
    grid-column:auto!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:12px 16px!important;
    border:1px solid rgba(255,255,255,.22)!important;
    border-radius:9px!important;
    background:rgba(255,255,255,.045)!important;
    box-shadow:none!important;
  }
}
@media(max-width:760px){
  .homepage-shared-footer .homepage-footer-main{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:20px!important;
  }
  .homepage-shared-footer .homepage-footer-brand,
  .homepage-shared-footer .homepage-footer-right{
    grid-column:1!important;
    grid-row:auto!important;
    width:100%!important;
  }
  .homepage-shared-footer .homepage-footer-links{
    justify-content:flex-start!important;
  }
  .homepage-shared-footer .homepage-footer-disclaimer{
    width:100%!important;
    margin:0!important;
  }
}


/* MCQBay global shared footer: same layout on homepage and all public pages */
.homepage-shared-footer {
  display:block;
  width:100%;
  background:#08090c;
  color:#f4f4f5;
  padding:30px 0 20px;
}
.homepage-shared-footer .homepage-footer-main {
  display:grid!important;
  grid-template-columns:290px minmax(0,1fr)!important;
  align-items:start!important;
  column-gap:28px!important;
  row-gap:0!important;
  padding-bottom:24px!important;
}
.homepage-shared-footer .homepage-footer-brand,
.homepage-shared-footer .homepage-footer-right {
  min-width:0;
  width:100%;
}
.homepage-shared-footer .homepage-footer-brand {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:14px;
}
.homepage-shared-footer .homepage-footer-brand .brand-logo {
  display:block;
  width:180px;
  max-width:100%;
  height:auto;
  object-fit:contain;
}
.homepage-shared-footer .homepage-social-links {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
}
.homepage-shared-footer .footer-social-link {
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:28px;
  color:#f4f4f5!important;
  font-size:13px;
  line-height:1.4;
  text-decoration:none!important;
}
.homepage-shared-footer .footer-social-link .social-brand-icon {
  display:block;
  width:21px!important;
  height:21px!important;
  flex:0 0 21px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
}
.homepage-shared-footer .footer-social-link--whatsapp .social-brand-icon,
.homepage-shared-footer .social-brand-icon-whatsapp { color:#25D366!important; }
.homepage-shared-footer .footer-social-link--telegram .social-brand-icon,
.homepage-shared-footer .social-brand-icon-telegram { color:#229ED9!important; }
.homepage-shared-footer .homepage-footer-right {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:22px;
}
.homepage-shared-footer .homepage-footer-links {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  flex-wrap:wrap;
  gap:10px 20px;
  margin:0;
  padding:0 0 14px;
  border-bottom:1px solid rgba(255,255,255,.14);
}
.homepage-shared-footer .homepage-footer-links a {
  color:#fff!important;
  font-size:12px;
  font-weight:700;
  text-decoration:none;
}
.homepage-shared-footer .homepage-footer-links a:hover { color:#aaa5ff!important; }
.homepage-shared-footer .homepage-footer-disclaimer {
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:14px 17px!important;
  border:1px solid #ef4444!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.035)!important;
  color:#f4f4f5;
  box-shadow:none!important;
}
.homepage-shared-footer .homepage-footer-disclaimer strong {
  display:block;
  margin:0 0 8px;
  color:#ff7777!important;
  font-size:13px;
}
.homepage-shared-footer .homepage-footer-disclaimer p {
  margin:0 0 8px;
  color:#e5e7eb!important;
  font-size:12px;
  line-height:1.65;
}
.homepage-shared-footer .homepage-footer-disclaimer a {
  color:#ff7777!important;
  font-size:12px;
  font-weight:700;
}
.homepage-shared-footer .footer-bottom {
  display:flex;
  justify-content:space-between;
  gap:14px;
  border-top:1px solid rgba(255,255,255,.14);
  margin-top:0;
  padding-top:15px;
  color:#b9bac7;
  font-size:11px;
}
@media(max-width:760px) {
  .homepage-shared-footer .homepage-footer-main {
    grid-template-columns:minmax(0,1fr)!important;
    gap:22px!important;
  }
  .homepage-shared-footer .homepage-footer-right { gap:16px; }
  .homepage-shared-footer .homepage-footer-links { justify-content:flex-start; }
  .homepage-shared-footer .footer-bottom {
    flex-direction:column;
    align-items:flex-start;
  }
}

/* MCQ practice: examination level selection */
.mcq-level-intro{margin:30px 0 17px;text-align:center}.mcq-level-intro>span{font-size:10px;letter-spacing:1.3px;font-weight:800;color:#27843b}.mcq-level-intro h2{margin:8px 0 6px;color:#17264a;font-size:clamp(20px,3vw,26px)}.mcq-level-intro p{margin:0;color:#718097;font-size:13px}.mcq-level-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:900px;margin:24px auto 45px}.mcq-level-card{display:flex;align-items:center;gap:19px;min-height:150px;padding:25px;background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 8px 24px rgba(20,43,77,.045);text-decoration:none;transition:transform .18s,border-color .18s,box-shadow .18s}.mcq-level-card:hover{transform:translateY(-3px);border-color:#b9d3c0;box-shadow:0 13px 30px rgba(20,43,77,.08)}.mcq-level-symbol{width:76px;height:76px;flex:0 0 76px;display:grid;place-items:center;border-radius:20px;background:#edf7ef;color:#27843b;font-size:25px;font-weight:900;letter-spacing:-1px}.mcq-level-al .mcq-level-symbol{background:#edf3fb;color:#2763a7}.mcq-level-copy{display:flex;flex-direction:column;gap:6px;min-width:0}.mcq-level-copy small{font-size:9px;letter-spacing:.7px;color:#8a96a8;font-weight:800}.mcq-level-copy b{font-size:18px;color:#17264a}.mcq-level-copy em{display:flex;align-items:center;gap:6px;margin-top:7px;color:#27843b;font-size:12px;font-style:normal;font-weight:800}.mcq-level-copy em .icon{width:15px;height:15px}.mcq-level-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 17px}.mcq-level-toolbar a{display:inline-flex;align-items:center;gap:7px;color:#27843b;text-decoration:none;font-size:12px;font-weight:800}.mcq-level-toolbar a .icon{width:16px;height:16px}.mcq-level-toolbar>span{color:#8491a4;font-size:10px;font-weight:800;letter-spacing:1px}
@media(max-width:600px){.mcq-level-grid{grid-template-columns:1fr;gap:12px;margin:18px auto 32px}.mcq-level-card{min-height:120px;padding:18px;gap:14px}.mcq-level-symbol{width:62px;height:62px;flex-basis:62px;border-radius:16px;font-size:21px}.mcq-level-copy b{font-size:16px}.mcq-level-toolbar{align-items:flex-start;flex-direction:column}}

/* MCQBay A/L stream selection */
.mcq-stream-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;max-width:980px;margin:22px auto 44px}
.mcq-stream-card{display:flex;align-items:center;gap:16px;min-height:118px;padding:20px;background:#fff;border:1px solid #e3e9f0;border-radius:17px;text-decoration:none;box-shadow:0 8px 24px rgba(20,43,77,.045);transition:transform .18s,border-color .18s,box-shadow .18s}
.mcq-stream-card:hover{transform:translateY(-3px);border-color:#b9d3c0;box-shadow:0 13px 30px rgba(20,43,77,.08)}
.mcq-stream-icon{width:54px;height:54px;flex:0 0 54px;display:grid;place-items:center;border-radius:15px;background:#edf7ef;color:#27843b}
.mcq-stream-icon .subject-svg{width:26px;height:26px}
.mcq-stream-copy{display:flex;flex-direction:column;gap:6px;min-width:0}
.mcq-stream-copy b{font-size:16px;color:#17264a}
.mcq-stream-copy small{font-size:11px;line-height:1.5;color:#77849a}
.mcq-stream-copy em{display:flex;align-items:center;gap:6px;margin-top:3px;color:#27843b;font-size:11px;font-style:normal;font-weight:800}
.mcq-stream-copy em .icon{width:14px;height:14px}
.mcq-stream-common{grid-column:1/-1;background:#fbfcff}
.mcq-stream-common .mcq-stream-icon{background:#eef3fb;color:#2763a7}
@media(max-width:600px){.mcq-stream-grid{grid-template-columns:1fr;gap:11px;margin:17px auto 32px}.mcq-stream-card{min-height:104px;padding:16px}.mcq-stream-common{grid-column:auto}}


/* MCQBay O/L subject category selection */
.mcq-ol-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;max-width:980px;margin:22px auto 44px}
.mcq-ol-category-card{display:flex;align-items:center;gap:16px;min-height:118px;padding:20px;background:#fff;border:1px solid #e3e9f0;border-radius:17px;text-decoration:none;box-shadow:0 8px 24px rgba(20,43,77,.045);transition:transform .18s,border-color .18s,box-shadow .18s}
.mcq-ol-category-card:hover{transform:translateY(-3px);border-color:#b9d3c0;box-shadow:0 13px 30px rgba(20,43,77,.08)}
.mcq-ol-category-icon{width:54px;height:54px;flex:0 0 54px;display:grid;place-items:center;border-radius:15px;background:#edf7ef;color:#27843b}
.mcq-ol-category-icon .subject-svg{width:26px;height:26px}
.mcq-ol-category-copy{display:flex;flex-direction:column;gap:6px;min-width:0}
.mcq-ol-category-copy b{font-size:16px;color:#17264a}
.mcq-ol-category-copy small{font-size:11px;line-height:1.5;color:#77849a}
.mcq-ol-category-copy em{display:flex;align-items:center;gap:6px;margin-top:3px;color:#27843b;font-size:11px;font-style:normal;font-weight:800}
.mcq-ol-category-copy em .icon{width:14px;height:14px}
.mcq-ol-category-religion .mcq-ol-category-icon{background:#f4f0fb;color:#7654a5}
.mcq-ol-category-category2 .mcq-ol-category-icon{background:#fff4e9;color:#b86b27}
.mcq-ol-category-category3 .mcq-ol-category-icon{background:#edf3fb;color:#2763a7}
@media(max-width:600px){.mcq-ol-category-grid{grid-template-columns:1fr;gap:11px;margin:17px auto 32px}.mcq-ol-category-card{min-height:104px;padding:16px}}


/* MCQBay O/L official subject groups — all visible on one page */
.mcq-ol-all-groups{display:grid;gap:24px;margin:22px 0 46px}
.mcq-ol-subject-group{padding:20px;background:#fff;border:1px solid #e2e8f0;border-radius:17px;box-shadow:0 7px 22px rgba(20,43,77,.035)}
.mcq-ol-group-heading{display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:0 0 14px;border-bottom:1px solid #edf1f5}
.mcq-ol-group-icon{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border-radius:13px;background:#edf7ef;color:#27843b}
.mcq-ol-group-icon .subject-svg{width:23px;height:23px}
.mcq-ol-group-heading h3{margin:0;color:#17264a;font-size:17px}
.mcq-ol-group-heading p{margin:4px 0 0;color:#7b899d;font-size:11px}
.mcq-ol-group-orange .mcq-ol-group-icon{background:#fff4e9;color:#b86b27}
.mcq-ol-group-purple .mcq-ol-group-icon{background:#f1efff;color:#665bd1}
.mcq-ol-group-blue .mcq-ol-group-icon{background:#edf3fb;color:#2763a7}
.mcq-ol-official-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.mcq-ol-official-card{min-width:0;padding:13px;border-radius:12px;box-shadow:none}
.mcq-ol-official-card .mcq-subject-icon{width:40px;height:40px;flex-basis:40px}
.mcq-ol-official-card .mcq-subject-content b{font-size:13px;line-height:1.35}
.mcq-ol-official-card .mcq-subject-content small{font-size:9px;letter-spacing:.5px}
.mcq-ol-official-card[hidden],.mcq-ol-subject-group[hidden]{display:none!important}
@media(min-width:1050px){.mcq-ol-official-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.mcq-ol-all-groups{gap:15px;margin-top:16px}.mcq-ol-subject-group{padding:14px}.mcq-ol-official-grid{grid-template-columns:1fr}.mcq-ol-official-card{padding:12px}.mcq-ol-group-heading h3{font-size:15px}}


/* Multilingual MCQ subject cards and distinct language buttons */
.mcq-ol-official-card{align-items:flex-start!important;}
.mcq-ol-official-card .mcq-subject-icon{align-self:flex-start!important;margin-top:24px!important;}
.mcq-ol-official-card .mcq-subject-content{align-items:flex-start;gap:0;}
.mcq-ol-official-card .mcq-official-subject-number{color:#27843b!important;font-weight:800!important;letter-spacing:.65px;}
.mcq-ol-official-card .mcq-subject-content>b{margin-top:4px;}
.mcq-subject-local-name{display:block;margin-top:3px;color:#52627a;font-size:10px;line-height:1.4;font-weight:500;overflow-wrap:anywhere;}
.mcq-subject-tamil{margin-top:1px;}
.mcq-language-button.mcq-language-sinhala{background:#e7f5eb;border-color:#b8dfc3;color:#18753a;}
.mcq-language-button.mcq-language-english{background:#eaf1ff;border-color:#c3d4f7;color:#2459a6;}
.mcq-language-button.mcq-language-tamil{background:#fff2e6;border-color:#f0d0ad;color:#a45a16;}
.mcq-language-button.mcq-language-sinhala:hover,.mcq-language-button.mcq-language-sinhala:focus-visible{background:#d7eddf;border-color:#8fc9a0;color:#12612f;}
.mcq-language-button.mcq-language-english:hover,.mcq-language-button.mcq-language-english:focus-visible{background:#dce8ff;border-color:#9db8ef;color:#17488c;}
.mcq-language-button.mcq-language-tamil:hover,.mcq-language-button.mcq-language-tamil:focus-visible{background:#ffe7d0;border-color:#e8b981;color:#87470e;}
.mcq-language-button.is-disabled{background:#f1f3f6!important;border-color:#e2e6ec!important;color:#9aa4b2!important;opacity:.72;}
@media(max-width:600px){.mcq-ol-official-card .mcq-subject-icon{margin-top:22px!important}.mcq-subject-local-name{font-size:9px}}


/* O/L official group headings: English, Sinhala and Tamil */
.mcq-ol-group-heading-text{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:2px}
.mcq-ol-group-heading-text h3{margin:0 0 2px!important}
.mcq-ol-group-local-name{display:block;width:100%;flex:0 0 100%;color:#52627a;font-size:10px;line-height:1.4;font-weight:500}
.mcq-ol-group-tamil{font-family:inherit}
.mcq-ol-group-heading-text p{margin:5px 0 0!important}
@media(max-width:600px){.mcq-ol-group-local-name{font-size:9px}}


/* MCQBay O/L multilingual typography - explicit final overrides */
.mcq-ol-official-card .mcq-subject-content > b{font-size:13px!important;line-height:1.35!important;}
.mcq-ol-official-card .mcq-subject-content > .mcq-subject-local-name{font-size:12px!important;line-height:1.35!important;}
.mcq-ol-group-heading .mcq-ol-group-heading-text > h3{font-size:16px!important;line-height:1.35!important;}
.mcq-ol-group-heading .mcq-ol-group-local-name{font-size:12px!important;line-height:1.35!important;}
@media(max-width:600px){
  .mcq-ol-official-card .mcq-subject-content > .mcq-subject-local-name{font-size:10px!important;line-height:1.3!important;}
  .mcq-ol-group-heading .mcq-ol-group-local-name{font-size:10px!important;line-height:1.3!important;}
}


/* O/L popular subject quick-access section */
.mcq-ol-popular{margin:0 0 24px;padding:18px 20px;background:#fff;border:1px solid #dce5f2;border-radius:16px}
.mcq-ol-popular-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 14px}
.mcq-ol-popular-heading h3{margin:0;color:#102b50;font-size:17px;font-weight:700}
.mcq-ol-popular-heading>span{color:#71829a;font-size:12px}
.mcq-ol-popular-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.mcq-ol-popular-card{display:flex;align-items:center;gap:10px;min-height:58px;padding:10px 12px;border:1px solid #dce5f2;border-radius:11px;background:#fff;text-decoration:none!important;transition:border-color .18s,background .18s,transform .18s}
.mcq-ol-popular-card:hover{border-color:#8db9e9;background:#f7fbff;transform:translateY(-1px)}
.mcq-ol-popular-icon{display:flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border-radius:9px;background:#edf4fd;color:#2768b8}
.mcq-ol-popular-icon .subject-svg{width:19px;height:19px}
.mcq-ol-popular-name{flex:1;color:#102b50;font-size:13px;font-weight:600;line-height:1.3}
.mcq-ol-popular-card small{color:#27843b;font-size:9px;white-space:nowrap}
#subjectGrid .mcq-ol-official-card{scroll-margin-top:110px}
@media(max-width:900px){.mcq-ol-popular-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.mcq-ol-popular{padding:14px;margin-bottom:18px}.mcq-ol-popular-heading{display:block}.mcq-ol-popular-heading>span{display:block;margin-top:4px}.mcq-ol-popular-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mcq-ol-popular-card{padding:9px;gap:7px;min-height:54px}.mcq-ol-popular-name{font-size:11px}.mcq-ol-popular-card small{font-size:8px}}

/* MCQBay navigation icons and homepage subject-section spacing */
.main-nav>a{display:inline-flex;align-items:center;gap:9px}
.main-nav>a .icon,.main-nav>a svg{width:16px;height:16px;flex:0 0 16px;stroke:currentColor}
.main-nav>a span{display:inline-block}
.home-subjects .home-al-heading{margin-top:40px!important;padding-top:0!important}
.home-subjects .home-section-heading.home-al-heading{margin-bottom:18px}
.mcq-ol-official-card .mcq-subject-icon img{width:100%;height:100%;object-fit:contain;display:block}

/* Static homepage feature blocks: intentionally non-clickable */
.home-feature-grid .home-feature{cursor:default;text-decoration:none}
.home-feature-grid .home-feature:hover{transform:none;border-color:#e1e6f0;box-shadow:0 7px 20px #1c31500a}
@media(max-width:900px){.home-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.home-feature-grid{grid-template-columns:1fr}}

/* A/L subject cards: multilingual names and always-visible browse action */
.mcq-subject-local-name{display:block;margin-top:3px;color:#66758d;font-size:11px;line-height:1.55;font-weight:500}
.mcq-subject-browse-link{display:inline-flex!important;align-items:center;gap:6px;width:max-content;max-width:100%;margin-top:8px;padding:6px 11px;border-radius:7px;background:#edf3fb;color:#245b9b!important;font-size:12px;font-weight:700;line-height:1.35;text-decoration:none!important}
.mcq-subject-browse-link:hover{background:#e0ebfa;color:#17477f!important}
.mcq-subject-browse-link .icon{width:14px;height:14px}
.mcq-subject-content{min-width:0}

/* Main menu icon alignment matching reference B1 */
.main-nav>.nav-item{gap:10px!important}
.main-nav>.nav-item>.icon{display:inline-block!important;visibility:visible!important;opacity:1!important;flex:0 0 16px;width:16px;height:16px}

/* Slightly larger typography across both O/L and A/L subject cards */
.mcq-subject-content small{font-size:10px}
.mcq-subject-content b{font-size:16px;line-height:1.4}
.mcq-subject-local-name{font-size:12px;line-height:1.6}
.mcq-subject-browse-link{font-size:13px;padding:7px 12px}

/* MCQBay consistency: shared O/L and A/L subject typography and site header logo sizing */
.mcq-al-all-groups .mcq-ol-official-card .mcq-subject-content>b,
.mcq-ol-all-groups .mcq-ol-official-card .mcq-subject-content>b{font-size:15px!important;line-height:1.4!important}
.mcq-al-all-groups .mcq-ol-official-card .mcq-subject-content>.mcq-subject-local-name,
.mcq-ol-all-groups .mcq-ol-official-card .mcq-subject-content>.mcq-subject-local-name{font-size:12px!important;line-height:1.45!important}
.mcq-al-all-groups .mcq-ol-official-card .mcq-subject-content>.mcq-subject-browse-link,
.mcq-ol-all-groups .mcq-ol-official-card .mcq-subject-content>.mcq-subject-browse-link{font-size:13px!important}
.mcq-al-all-groups .mcq-ol-official-card .mcq-subject-content>small,
.mcq-ol-all-groups .mcq-ol-official-card .mcq-subject-content>small{font-size:10px!important}
.site-header .brand-logo,.site-header .logo,header .brand-logo,header .logo,.top .logo{display:block;width:180px!important;height:52px!important;max-width:180px!important;max-height:52px!important;object-fit:contain!important;object-position:left center!important}
@media(max-width:760px){.site-header .brand-logo,.site-header .logo,header .brand-logo,header .logo,.top .logo{width:155px!important;height:46px!important;max-width:155px!important;max-height:46px!important}}


/* Final O/L and A/L consistency: three-column cards, matching multilingual typography and stable header logo */
.mcq-ol-official-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px!important}
.mcq-ol-official-card .mcq-subject-content>.mcq-subject-local-name{display:block!important;font-size:12px!important;line-height:1.4!important;font-weight:500!important;margin-top:3px!important}
.mcq-ol-official-card .mcq-subject-content>b{font-size:15px!important;line-height:1.4!important}
.mcq-ol-official-card .mcq-subject-content>small{font-size:10px!important}
.mcq-ol-official-card .mcq-subject-content>.mcq-subject-browse-link{font-size:13px!important}
@media(max-width:900px){.mcq-ol-official-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){.mcq-ol-official-grid{grid-template-columns:1fr!important}.mcq-ol-official-card .mcq-subject-content>.mcq-subject-local-name{font-size:10px!important;line-height:1.3!important}}
/* Keep the header logo identical on the homepage and inner pages; exclude footer logos. */
header .brand-logo,header img.logo,.site-header .brand-logo,.site-header img.logo,.top>a img.logo{width:180px!important;height:52px!important;max-width:180px!important;max-height:52px!important;object-fit:contain!important;object-position:left center!important;flex:0 0 180px!important}
@media(max-width:760px){header .brand-logo,header img.logo,.site-header .brand-logo,.site-header img.logo,.top>a img.logo{width:155px!important;height:46px!important;max-width:155px!important;max-height:46px!important;flex-basis:155px!important}}


/* Final shared header brand sizing: homepage uses .brand-logo, inner pages use .logo. */
.site-header .nav-wrap > .brand {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 205px !important;
  width: 205px !important;
  max-width: 205px !important;
}
.site-header .nav-wrap > .brand > img.brand-logo,
.site-header .nav-wrap > .brand > img.logo {
  display: block !important;
  width: 205px !important;
  height: 58px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  max-height: 58px !important;
  object-fit: contain !important;
  object-position: left center !important;
  flex: 0 0 205px !important;
}
@media (max-width: 760px) {
  .site-header .nav-wrap > .brand {
    flex: 0 0 155px !important;
    width: 155px !important;
    max-width: 155px !important;
  }
  .site-header .nav-wrap > .brand > img.brand-logo,
  .site-header .nav-wrap > .brand > img.logo {
    width: 155px !important;
    height: 46px !important;
    min-width: 155px !important;
    max-width: 155px !important;
    max-height: 46px !important;
    flex-basis: 155px !important;
  }
  .site-header .nav-wrap {
    width: calc(100% - 28px) !important;
    min-width: 0 !important;
  }
  .site-header .main-nav {
    max-width: 100% !important;
  }
}

/* Subject paper / marking-scheme action buttons */
.library-paper-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:14px}
.library-paper-actions a{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:9px 12px;border-radius:9px;background:#edf3fb;color:#245b9b;font-size:12px;font-weight:800;text-decoration:none;line-height:1.35}
.library-paper-actions a:hover{background:#e0ebfa;color:#17477f}
.library-paper-actions .icon{width:15px;height:15px;flex:none}
@media(max-width:600px){.library-paper-actions a{width:100%;justify-content:center}}
