/* MCQ Sewa Pro — website (header, mega menu, drawer, search, home, footer). Prefix: mcqw- */

/* ---------- page base (home shell has no theme CSS) ---------- */
body.mcqw-shell { margin: 0; background: var(--bg); font-family: var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; }
body.mcqw-shell *, .mcqw *, .mcqw-home * { box-sizing: border-box; }
html.mcqw-lock, html.mcqw-lock body { overflow: hidden; }
.mcqw-main { min-height: 50vh; }
/* The header wrapper must not be the sticky container, or the header scrolls away with it. */
#mcqw-top.mcqw { display: contents; }
.mcqw-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.mcqw a:focus-visible, .mcqw button:focus-visible, .mcqw-home a:focus-visible, .mcqw-home button:focus-visible, .mcqw-home input:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 8px; }

/* Theme header/footer hidden when our chrome is used sitewide */
body.mcqw-hide-theme .site-header, body.mcqw-hide-theme #masthead, body.mcqw-hide-theme .main-navigation:not(.mcqw-nav),
body.mcqw-hide-theme .elementor-location-header, body.mcqw-hide-theme .elementor-location-footer, body.mcqw-hide-theme .top-bar,
body.mcqw-hide-theme .site-footer, body.mcqw-hide-theme #colophon, body.mcqw-hide-theme .site-info, body.mcqw-hide-theme .footer-widgets,
body.mcqw-hide-theme #mobile-header, body.mcqw-hide-theme .ast-mobile-header-wrap, body.mcqw-hide-theme #ast-desktop-header { display: none !important; }

/* ---------- notice bar ---------- */
.mcqw-notice { background: var(--navy); color: #e2e8f0; font-size: 14px; }
.mcqw-notice .mcqw-wrap { display: flex; align-items: center; gap: 10px; min-height: 38px; }
.mcqw-notice-tag { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; background: color-mix(in srgb, var(--hero-3) 22%, transparent); color: #7dd3fc; font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.mcqw-notice-msgs { position: relative; flex: 1; min-width: 0; height: 22px; overflow: hidden; }
.mcqw-notice-msg { position: absolute; inset: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; line-height: 22px; }
.mcqw-notice-msg.is-on { opacity: 1; transform: none; }
.mcqw .mcqw-notice-msg a { color: #fff; font-weight: 600; }
.mcqw-notice-x { flex: 0 0 auto; background: transparent; border: 0; color: #94a3b8; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.mcqw-notice-x:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* ---------- header ---------- */
.mcqw-header { position: sticky; top: 0; z-index: 900; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.admin-bar .mcqw-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mcqw-header { top: 0; } }
.mcqw-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(15, 23, 42, .4); }
.mcqw-bar { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.mcqw-logo { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; color: var(--ink) !important; text-decoration: none !important; }
.mcqw-logo-img { display: block; width: auto; max-width: 180px; object-fit: contain; }
.mcqw-logo-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--hero-1), var(--hero-2) 60%, var(--hero-3)); box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--brand) 70%, transparent); }
.mcqw-logo-text { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.mcqw-logo-light, .mcqw-logo-light .mcqw-logo-text { color: #fff !important; }

.mcqw-nav { display: none; flex: 1; min-width: 0; }
.mcqw-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.mcqw-nav-item { position: relative; }
.mcqw-nav-item > a { display: inline-flex; align-items: center; gap: 5px; padding: 9px 11px; border-radius: 10px; color: var(--ink2) !important; font-weight: 600; font-size: 15px; white-space: nowrap; text-decoration: none !important; }
.mcqw-nav-item > a:hover, .mcqw-nav-item.is-open > a { background: var(--brand-50); color: var(--brand) !important; }
.mcqw-nav-item > a svg:last-child { opacity: .6; transition: transform .2s; }
.mcqw-nav-item.is-open > a svg:last-child { transform: rotate(180deg); }
.mcqw-dd { position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px -20px rgba(15, 23, 42, .35); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.mcqw-dd::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.mcqw-nav-item.is-open .mcqw-dd { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .mcqw-nav-item:hover .mcqw-dd { opacity: 1; visibility: visible; transform: none; } .mcqw-nav-item:hover > a svg:last-child { transform: rotate(180deg); } }
.mcqw-dd-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 8px 10px; border-bottom: 1px solid var(--line2); margin-bottom: 6px; }
.mcqw-dd-head b { font-size: 14px; }
.mcqw .mcqw-dd-head a { font-size: 13px; font-weight: 700; white-space: nowrap; }
.mcqw-dd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 62vh; overflow: auto; }
.mcqw-dd-list.is-cols { grid-template-columns: 1fr 1fr; width: 520px; }
.mcqw-dd-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink2) !important; font-size: 14px; font-weight: 500; text-decoration: none !important; }
.mcqw-dd-list a:hover { background: var(--brand-50); color: var(--brand) !important; }
.mcqw-dd-list em, .mcqw-drawer-menu em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--line2); border-radius: 999px; padding: 1px 8px; }

.mcqw-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.mcqw-icon-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--ink2) !important; display: grid; place-items: center; cursor: pointer; text-decoration: none !important; padding: 0; }
.mcqw-icon-btn:hover { background: var(--line2); }
.mcqw-bell em { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font: 700 11px/18px var(--font); font-style: normal; text-align: center; box-shadow: 0 0 0 2px #fff; }
.mcqw-avatar { display: block; flex: 0 0 auto; }
.mcqw-avatar img { width: 36px; height: 36px; border-radius: 50%; display: block; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand-100); }
.mcqw .mcqw-cta, .mcqw .mcqw-login { display: none; min-height: 40px; padding: 0 14px; }
.mcqw-burger { display: grid; }

/* ---------- search overlay ---------- */
.mcqw-search { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 23, 42, .55); backdrop-filter: blur(4px); padding: 70px 16px 16px; display: flex; justify-content: center; align-items: flex-start; }
.mcqw-search[hidden] { display: none; }
.mcqw-search-box { width: 100%; max-width: 640px; background: #fff; border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); overflow: hidden; }
.mcqw-search-row { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.mcqw .mcqw-search-row input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 17px; padding: 10px 0; background: transparent; box-shadow: none; }
.mcqw-search-results { max-height: 55vh; overflow: auto; padding: 6px; }
.mcqw-search-hint { color: var(--muted); padding: 18px 12px; text-align: center; font-size: 14px; margin: 0; }
.mcqw-hit { display: grid; gap: 1px; padding: 9px 12px 9px 14px; border-radius: 10px; color: var(--ink) !important; text-decoration: none !important; position: relative; }
.mcqw-hit::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--line); }
.mcqw-hit.is-cat::before { background: var(--brand); }
.mcqw-hit.is-exam::before { background: #f59e0b; }
.mcqw-hit.is-quiz::before { background: var(--ok); }
.mcqw-hit:hover, .mcqw-hit:focus, .mcqw-hit.is-cur { background: var(--brand-50); outline: none; }
.mcqw-hit b { font-weight: 600; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.mcqw-hit small { color: var(--muted); font-size: 12.5px; }
.mcqw-hit mark, .mcqw-search-page mark { background: #fef08a; color: inherit; border-radius: 3px; padding: 0 1px; }
.mcqw-drop-sum { padding: 8px 12px 4px; font-size: 12.5px; color: var(--muted); }
.mcqw-drop-group { padding: 4px 0; border-top: 1px solid var(--line2); }
.mcqw-drop-group:first-of-type { border-top: 0; }
.mcqw-drop-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 12px 4px; font-size: 12px; font-weight: 800; color: var(--ink2); text-transform: none; }
.mcqw-drop-head em { font-style: normal; font-weight: 700; background: var(--line2); color: var(--muted); border-radius: 999px; padding: 0 7px; margin-left: 4px; }
.mcqw .mcqw-drop-head a, .mcqw-home .mcqw-drop-head a { font-size: 12px; font-weight: 700; color: var(--brand); }
.mcqw .mcqw-drop-all, .mcqw-home .mcqw-drop-all { display: block; margin: 4px; padding: 11px 12px; border-radius: 10px; background: var(--brand-50); color: var(--brand) !important; font-weight: 700; font-size: 14px; text-align: center; text-decoration: none !important; }
.mcqw-drop-all.is-cur, .mcqw-drop-all:hover { background: var(--brand-100); }
.mcqw-search-row.is-busy::after, .mcqw-hero-search.is-busy::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--brand); animation: mcqwSpin .7s linear infinite; flex: 0 0 auto; order: 2; }
.mcqw-hero-search.is-busy::after { position: absolute; right: 130px; top: 50%; margin-top: -9px; }
@keyframes mcqwSpin { to { transform: rotate(360deg); } }

/* ---------- mobile drawer ---------- */
.mcqw-drawer { position: fixed; inset: 0; z-index: 1001; }
.mcqw-drawer[hidden] { display: none; }
.mcqw-drawer-scrim { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); animation: mcqwFade .2s; }
.mcqw-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: #fff; display: flex; flex-direction: column; box-shadow: -20px 0 40px -20px rgba(0, 0, 0, .4); animation: mcqwSlide .22s ease-out; }
@keyframes mcqwSlide { from { transform: translateX(100%); } }
@keyframes mcqwFade { from { opacity: 0; } }
.mcqw-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); }
.mcqw-drawer-user { display: flex; align-items: center; gap: 12px; margin: 12px; padding: 12px; border-radius: 14px; background: var(--brand-50); color: var(--ink) !important; text-decoration: none !important; }
.mcqw-drawer-user img { border-radius: 50%; }
.mcqw-drawer-user b { display: block; }
.mcqw-drawer-user small { color: var(--brand); font-weight: 700; }
.mcqw-drawer-menu { list-style: none; margin: 0; padding: 8px; overflow: auto; flex: 1; }
.mcqw-drawer-menu > li > a, .mcqw-acc { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 13px 12px; border-radius: 12px; background: transparent; border: 0; color: var(--ink) !important; font: 600 16px/1.3 var(--font); text-align: left; cursor: pointer; text-decoration: none !important; }
.mcqw-drawer-menu > li > a:hover, .mcqw-acc:hover { background: var(--line2); }
.mcqw-acc svg { transition: transform .2s; color: var(--muted); }
.mcqw-acc[aria-expanded="true"] svg { transform: rotate(180deg); }
.mcqw-acc-list { list-style: none; margin: 0 0 6px 12px; padding: 0 0 0 10px; border-left: 2px solid var(--brand-100); }
.mcqw-acc-list a { display: flex; justify-content: space-between; gap: 10px; padding: 10px; border-radius: 10px; color: var(--ink2) !important; font-size: 15px; text-decoration: none !important; }
.mcqw-acc-list a:hover { background: var(--brand-50); }
.mcqw-drawer-foot { padding: 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }

/* ---------- home ---------- */
.mcqw-home { padding: 16px 0 8px; }
.mcqw-hero { margin: 0 0 16px; }
.mcqw-hero h1 { color: var(--hero-ink) !important; font-size: 25px; font-weight: 800; margin: 10px 0 8px; max-width: 760px; }
.mcqw-hero p { color: var(--hero-ink-soft) !important; max-width: 680px; font-size: 15.5px; }
.mcqw-hero .mcqs-hero-kicker { color: var(--hero-ink) !important; }
.mcqw-hero-search { position: relative; display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 16px; padding: 5px 5px 5px 14px; margin: 18px 0 14px; max-width: 620px; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .55); }
.mcqw-hero-search > span { color: var(--muted); display: grid; }
.mcqs .mcqw-hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 10px 4px; box-shadow: none; }
.mcqw-hero-search .mcqs-btn { min-height: 44px; background: var(--brand) !important; color: var(--btn-text) !important; border: 0 !important; border-radius: 12px; }
.mcqw-hero-search .mcqs-btn:hover { background: var(--brand-600) !important; }
/* Dropdown is white: undo the hero's forced white text inside it (the reason results looked empty). */
.mcqw-drop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50; background: #fff; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 28px 56px -24px rgba(15, 23, 42, .55); padding: 4px; max-height: min(460px, 65vh); overflow: auto; text-align: left; overscroll-behavior: contain; }
.mcqs-hero .mcqw-drop, .mcqs-hero .mcqw-drop * { color: var(--ink) !important; text-shadow: none; }
.mcqs-hero .mcqw-drop small, .mcqs-hero .mcqw-drop .mcqw-drop-sum, .mcqs-hero .mcqw-drop .mcqw-search-hint, .mcqs-hero .mcqw-drop .mcqw-drop-head em { color: var(--muted) !important; }
.mcqs-hero .mcqw-drop .mcqw-drop-head a, .mcqs-hero .mcqw-drop .mcqw-drop-all { color: var(--brand) !important; }
.mcqs-hero .mcqw-drop p { max-width: none; font-size: 14px; }
.mcqw-hero-search input::placeholder { color: #94a3b8; opacity: 1; }
.mcqw-hero .mcqs-hero-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0; }
.mcqw-hero .mcqs-hero-cta .mcqs-btn { width: auto; flex: 1 1 200px; padding: 0 22px; }
@media (min-width: 600px) { .mcqw-hero .mcqs-hero-cta .mcqs-btn { flex: 0 0 auto; } }
.mcqw-hero-stats { align-self: center; max-width: 420px; }
.mcqw-hero-stats b { color: var(--hero-ink) !important; }
.mcqw-hero-stats span { color: var(--hero-ink-soft) !important; }

.mcqw-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; margin: 0 0 16px; box-shadow: 0 10px 24px -20px rgba(15, 23, 42, .4); }
.mcqw-strip-guest > div { flex: 1 1 260px; display: grid; }
.mcqw-strip-guest span, .mcqw-strip-hi small { color: var(--muted); font-size: 13px; }
.mcqw-strip-hi { display: flex; align-items: center; gap: 10px; }
.mcqw-strip-hi img { border-radius: 50%; }
.mcqw-strip-hi span { display: grid; line-height: 1.25; }
.mcqw-strip-items { display: flex; gap: 8px; flex: 1; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.mcqw-strip-items::-webkit-scrollbar { display: none; }
.mcqw-chip { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; padding: 8px 14px 8px 10px; border-radius: 14px; background: var(--line2); color: var(--ink) !important; text-decoration: none !important; }
.mcqw-chip > svg { color: var(--brand); }
.mcqw-chip span { display: grid; line-height: 1.2; }
.mcqw-chip small { color: var(--muted); font-size: 12px; }
.mcqw-chip b { font-size: 14px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcqw-chip i { font-style: normal; font-size: 12px; color: var(--brand); font-weight: 700; }
.mcqw-chip:hover { background: var(--brand-50); }
.mcqw-chip.is-go { background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); color: #fff !important; }
.mcqw-chip.is-go > svg, .mcqw-chip.is-go small, .mcqw-chip.is-go i { color: rgba(255, 255, 255, .85); }

.mcqw-quick { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.mcqw-quick-label { flex: 0 0 auto; font-size: 13px; font-weight: 800; color: var(--muted); }
.mcqw-quick-track { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; scroll-snap-type: x proximity; }
.mcqw-quick-track::-webkit-scrollbar { display: none; }
.mcqw .mcqw-quick-track a, .mcqw-home .mcqw-quick-track a { flex: 0 0 auto; scroll-snap-align: start; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.mcqw-home .mcqw-quick-track a:hover { border-color: var(--brand); color: var(--brand); }

.mcqw-section { margin: 0 0 26px; scroll-margin-top: 80px; }
.mcqw-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.mcqw-sec-head h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; }
.mcqw-sec-head h2 svg { color: var(--brand); }
.mcqw-home .mcqw-sec-head > a { font-weight: 700; font-size: 14px; }

.mcqw-cats { display: grid; gap: 14px; }
.mcqw-cat { --c: var(--brand); display: flex; flex-direction: column; padding: 0; overflow: hidden; border-top: 4px solid var(--c); scroll-margin-top: 80px; }
.mcqw-cat header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 16px 16px 10px; }
.mcqw-cat-head { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.mcqw-cat-head > div { min-width: 0; }
.mcqw-cat h3 { font-size: 18px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.mcqw-cat-emoji { flex: 0 0 auto; }
.mcqw-home .mcqw-cat-more { display: block; width: calc(100% - 20px); margin: 6px 10px 0; padding: 8px; border: 1px dashed var(--line); border-radius: 10px; background: transparent; color: var(--c) !important; font: 700 13.5px var(--font); cursor: pointer; }
.mcqw-home .mcqw-cat-more:hover { background: color-mix(in srgb, var(--c) 6%, #fff); }
.mcqw-home .mcqw-cat li a span { min-width: 0; overflow-wrap: anywhere; }
.mcqw-home .mcqw-cat h3 a { color: var(--ink); }
.mcqw-cat-emoji { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; background: color-mix(in srgb, var(--c) 12%, #fff); }
.mcqw-cat p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.mcqw-cat-count { flex: 0 0 auto; font-size: 12px; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); padding: 3px 9px; border-radius: 999px; }
.mcqw-cat ul { list-style: none; padding: 0 10px; margin: 0; flex: 1; }
.mcqw-home .mcqw-cat li a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 8px; border-bottom: 1px dashed var(--line); color: var(--ink2); font-size: 14.5px; font-weight: 500; }
.mcqw-cat li:last-child a { border-bottom: 0; }
.mcqw-home .mcqw-cat li a:hover { color: var(--c); }
.mcqw-cat li em { font-style: normal; font-size: 12px; color: var(--muted); }
.mcqw-home .mcqw-cat-all { display: block; margin: 10px 12px 12px; text-align: center; padding: 11px; border-radius: 12px; background: var(--c); color: #fff !important; font-weight: 700; font-size: 14.5px; }
.mcqw-home .mcqw-cat-all:hover { filter: brightness(.94); }

.mcqw-tests { display: grid; gap: 12px; }
.mcqw-test { display: flex; flex-direction: column; gap: 6px; padding: 16px; color: var(--ink) !important; transition: transform .15s, box-shadow .15s; }
.mcqw-test:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -22px rgba(15, 23, 42, .5); }
.mcqw-test .mcqs-tag { align-self: flex-start; }
.mcqw-test h3 { font-size: 16.5px; font-weight: 800; }
.mcqw-test p { color: var(--muted); font-size: 13px; }
.mcqw-test-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--ink2); margin: 2px 0 6px; }
.mcqw-test-meta span { display: inline-flex; align-items: center; gap: 4px; }
.mcqw-test-meta svg { color: var(--muted); }
.mcqw-test-go { margin-top: auto; font-weight: 800; color: var(--brand); font-size: 14px; }
.mcqw-mini-cd { margin-top: auto; }
.mcqw-mini-cd b { font-size: 16px; }

.mcqw-tabs { display: inline-flex; background: var(--line2); border-radius: 12px; padding: 4px; gap: 2px; }
.mcqw-tabs button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font: 700 14px var(--font); color: var(--muted); cursor: pointer; }
.mcqw-tabs button.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 6px -2px rgba(15, 23, 42, .2); }
.mcqw-sets { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mcqw-home .mcqw-sets a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.mcqw-home .mcqw-sets a:hover { border-color: var(--brand); }
.mcqw-sets a > svg { color: var(--faint); flex: 0 0 auto; }
.mcqw-set-n { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font: 800 13px var(--mono); }
.mcqw-set-t { flex: 1; min-width: 0; display: grid; }
.mcqw-set-t b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcqw-set-t small { color: var(--muted); font-size: 12.5px; }

.mcqw-why { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.mcqw-why .mcqs-card { padding: 16px; }
.mcqw-why i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 10px; }
.mcqw-why b { display: block; font-size: 16px; margin-bottom: 4px; }
.mcqw-why p { color: var(--muted); font-size: 14px; }

.mcqw-toppers { padding: 14px 16px; }
.mcqw-toppers-exam { color: var(--muted); font-size: 14px; margin-bottom: 8px !important; }
.mcqw-home .mcqw-toppers-exam a { font-weight: 700; }
.mcqw-toppers ol { list-style: none; padding: 0; display: grid; gap: 6px; }
.mcqw-toppers li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #f8fafc; }
.mcqw-toppers li img, .mcqw-av0 { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; }
.mcqw-av0 { display: grid; place-items: center; background: var(--brand-100); color: var(--brand); font-weight: 800; }
.mcqw-toppers li b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcqw-toppers li em { font-style: normal; font-weight: 800; color: var(--ink); }
.mcqw-toppers li em small { color: var(--muted); font-weight: 600; }
.mcqw-rank { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--line); color: var(--ink2); flex: 0 0 auto; }
.mcqw-rank.r1 { background: #fde68a; color: #92400e; }
.mcqw-rank.r2 { background: #e2e8f0; color: #334155; }
.mcqw-rank.r3 { background: #fed7aa; color: #9a3412; }

.mcqw-learn { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.mcqw-home .mcqw-learn a { padding: 14px 16px; color: var(--ink); display: grid; gap: 4px; }
.mcqw-learn small { color: var(--muted); font-size: 12.5px; }
.mcqw-learn b { font-weight: 700; font-size: 15px; line-height: 1.4; }

.mcqw-join { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px; border-radius: 20px; margin: 0 0 26px; color: #fff; background: linear-gradient(135deg, var(--hero-1), var(--hero-2) 60%, var(--hero-3)); }
.mcqw-join > div:first-child { display: grid; gap: 2px; }
.mcqw-join b { font-size: 18px; }
.mcqw-join span { color: rgba(255, 255, 255, .85); font-size: 14px; }
.mcqw-join-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- footer ---------- */
.mcqw-footer { background: var(--navy); color: #cbd5e1; margin-top: 24px; padding: 36px 0 0; font-size: 14.5px; }
.mcqw-foot-grid { display: grid; gap: 26px; }
.mcqw-foot-brand p { margin: 12px 0 14px; color: #94a3b8; max-width: 360px; }
.mcqs.mcqw-footer h4 { color: #fff; font-size: 15px; font-weight: 800; margin: 0 0 12px; }
.mcqw-footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.mcqs.mcqw-footer a { color: #cbd5e1; }
.mcqs.mcqw-footer a:hover { color: #fff; }
.mcqw-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.mcqs.mcqw-footer .mcqw-socials a { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; font-size: 13px; }
.mcqw-foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 30px; padding-top: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .08); color: #94a3b8; font-size: 13px; }

/* ---------- responsive ---------- */
@media (min-width: 600px) {
    .mcqw-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mcqw-tests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mcqw-foot-grid { grid-template-columns: 1fr 1fr; }
    .mcqw .mcqw-cta { display: inline-flex; }
    .mcqw-hero h1 { font-size: 30px; }
}
@media (min-width: 900px) {
    .mcqw-wrap { padding: 0 24px; }
    .mcqw-sets { grid-template-columns: 1fr 1fr; }
    .mcqw-foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
    .mcqw-strip { padding: 12px 16px; }
}
@media (min-width: 1100px) {
    .mcqw-nav { display: block; }
    .mcqw-burger { display: none; }
    .mcqw .mcqw-login { display: inline-flex; }
    .mcqw-bar { min-height: 68px; gap: 18px; }
    .mcqw-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mcqw-tests { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mcqw-hero h1 { font-size: 36px; }
    .mcqw-home { padding-top: 22px; }
}
@media (max-width: 420px) {
    .mcqw-hero-search .mcqs-btn { padding: 0 12px; }
    .mcqw-hero .mcqs-hero-cta .mcqs-btn { flex: 1 1 100%; }
    .mcqw-logo-text { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    .mcqw *, .mcqw-home * { transition: none !important; animation: none !important; }
}

/* ---------- v4.6: centred hero, quick-access highlight, search page, overflow guards ---------- */
.mcqw-hero.is-center { text-align: center; justify-items: center; grid-template-columns: 1fr !important; }
.mcqw-hero.is-center .mcqw-hero-main { display: flex; flex-direction: column; align-items: center; }
.mcqw-hero.is-center h1, .mcqw-hero.is-center p { margin-left: auto; margin-right: auto; }
.mcqw-hero.is-center .mcqw-hero-search { width: 100%; margin-left: auto; margin-right: auto; }
.mcqw-hero.is-center .mcqs-hero-cta { justify-content: center; }
.mcqw-hero.is-center .mcqw-hero-stats { width: 100%; }
.mcqw-hero-main { min-width: 0; }
.mcqw-home .mcqw-quick-track a { display: inline-flex; align-items: center; gap: 6px; }
.mcqw-home .mcqw-quick-track a.is-hot { background: #fff7ed; border-color: #fdba74; color: #c2410c; }
.mcqw-quick-track { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); padding-right: 40px; }

.mcqw-hero-sm h1 { font-size: 24px !important; }
.mcqw-search-sum { margin-top: 12px !important; font-size: 14.5px; }
.mcqw-search-sum b { color: var(--hero-ink) !important; }
.mcqw-stabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 18px; padding: 2px; }
.mcqw-stabs::-webkit-scrollbar { display: none; }
.mcqw-home .mcqw-stabs a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink2); font-weight: 700; font-size: 14px; }
.mcqw-home .mcqw-stabs a.is-active { background: var(--brand); border-color: var(--brand); color: var(--btn-text); }
.mcqw-stabs em { font-style: normal; font-size: 12px; background: rgba(15, 23, 42, .07); border-radius: 999px; padding: 0 7px; }
.mcqw-stabs a.is-active em { background: rgba(255, 255, 255, .22); }
.mcqw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mcqw-chips .mcqw-chip { background: #fff; border: 1px solid var(--line); max-width: 100%; }
.mcqw-chips .mcqw-chip b { white-space: normal; max-width: none; }
.mcqw-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mcqw-home .mcqw-results a { display: grid; gap: 4px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.mcqw-home .mcqw-results a:hover { border-color: var(--brand); }
.mcqw-results b { font-size: 16px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.mcqw-results p { color: var(--ink2); font-size: 14px; overflow-wrap: anywhere; }
.mcqw-results small { color: var(--muted); font-size: 12.5px; }
.mcqw-sec-head h2 small { font-size: 14px; color: var(--muted); font-weight: 600; }
.mcqw-pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 16px 0 0; flex-wrap: wrap; }
.mcqw-home .mcqw-pager a { padding: 9px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 700; }
.mcqw-pager span { color: var(--muted); font-size: 14px; }
.mcqw-empty { padding: 16px 18px; margin-bottom: 14px; }
.mcqw-empty ul { margin: 8px 0 0 18px !important; color: var(--ink2); }

/* Long words, URLs, emails and English titles must never push the page sideways on phones. */
.mcqw-home :where(h1, h2, h3, h4, p, li, b, strong, small, span, a, em), .mcqw :where(p, li, b, span, a) { overflow-wrap: anywhere; }
.mcqw-home :where(.mcqs-card, .mcqw-section, .mcqw-strip > *, .mcqw-tests > *, .mcqw-cats > *) { min-width: 0; }
.mcqw-home img, .mcqw-home iframe, .mcqw-home video, .mcqw-home table { max-width: 100%; }
@media (max-width: 600px) {
    .mcqw-hero-search { flex-wrap: nowrap; padding-left: 10px; }
    .mcqw-hero-search.is-busy::after { right: 112px; }
    .mcqw-sec-head h2 { font-size: 18px; }
    .mcqw-drop { position: fixed; left: 10px; right: 10px; top: auto; margin-top: 8px; }
    .mcqw-hero-search .mcqw-drop { position: absolute; left: -6px; right: -6px; }
}

/* Hero must not clip the live-search dropdown: decorative glows move into the background. */
.mcqs-hero.mcqw-hero { overflow: visible; z-index: 20; background:
    radial-gradient(circle at 92% -20%, rgba(255, 255, 255, .20), transparent 38%),
    radial-gradient(circle at -5% 115%, rgba(255, 255, 255, .10), transparent 32%),
    linear-gradient(135deg, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%); }
.mcqs-hero.mcqw-hero::before, .mcqs-hero.mcqw-hero::after { display: none; }

/* =====================================================================
   v4.7 — Classic home (the www.mcqsewa.com look) + front-end editor
   ===================================================================== */
.mcqw-home { --navy: #0a194e; --royal: #0066ff; --orange: #ff6200; --gold: #ffb800; }
.mcqw-chero { max-width: 1440px; margin: 0 auto; color: #fff; text-align: center; border-bottom: 4px solid var(--orange); position: relative; z-index: 20;
    background: radial-gradient(circle at 85% -30%, rgba(255, 255, 255, .10), transparent 45%), linear-gradient(135deg, var(--hero-1, #0a194e), var(--hero-2, #0a194e) 60%, var(--hero-3, #0d2266)); }
.mcqw-home .mcqw-chero { --hero-ink: #fff; }
.mcqw-chero-in { max-width: 1180px; margin: 0 auto; padding: 34px 16px 22px; }
.mcqw-ckicker { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); padding: 6px 16px; border-radius: 30px; font-size: 11.5px; font-weight: 800; letter-spacing: .8px; color: #fff; text-transform: uppercase; max-width: 100%; }
.mcqw-ckicker i { width: 9px; height: 9px; border-radius: 50%; background: #ffdf00; flex: 0 0 auto; box-shadow: 0 0 0 0 rgba(255, 223, 0, .7); animation: mcqwPulse 1.6s infinite; }
@keyframes mcqwPulse { 70% { box-shadow: 0 0 0 8px rgba(255, 223, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 223, 0, 0); } }
.mcqw-home .mcqw-chero h1 { color: #fff !important; font-size: 26px; font-weight: 900; letter-spacing: -.5px; line-height: 1.25; margin: 14px auto 10px; max-width: 900px; }
.mcqw-gold { color: var(--gold) !important; }
.mcqw-home .mcqw-csub { color: #cbd5e1 !important; font-size: 14.5px; line-height: 1.65; max-width: 780px; margin: 0 auto 20px; }
.mcqw-csearch { position: relative; max-width: 680px; margin: 0 auto 18px; background: #fff; border-radius: 40px; display: flex; align-items: center; padding: 6px 6px 6px 18px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55), 0 0 0 4px rgba(255, 255, 255, .12); text-align: left; }
.mcqw-csearch-ico { color: #94a3b8; display: grid; flex: 0 0 auto; }
.mcqw-home .mcqw-csearch input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent; padding: 11px 10px; font-size: 15px; color: #0f172a !important; box-shadow: none !important; }
.mcqw-csearch input::placeholder { color: #64748b; opacity: 1; }
.mcqw-csearch-btn { flex: 0 0 auto; background: var(--navy); color: #fff; border: 0; border-radius: 30px; padding: 10px 18px; font: 800 13px var(--font); cursor: pointer; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.mcqw-csearch-btn:hover { background: var(--royal); }
.mcqw-csearch.is-busy::after { right: 118px; }
.mcqw-csearch .mcqw-drop { top: calc(100% + 10px); }
.mcqw-chero .mcqw-drop, .mcqw-chero .mcqw-drop * { color: var(--ink) !important; }
.mcqw-chero .mcqw-drop small, .mcqw-chero .mcqw-drop .mcqw-drop-sum, .mcqw-chero .mcqw-drop .mcqw-search-hint { color: var(--muted) !important; }
.mcqw-chero .mcqw-drop .mcqw-drop-head a, .mcqw-chero .mcqw-drop .mcqw-drop-all { color: var(--brand) !important; }
.mcqw-cquick-head { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 4px auto 8px; padding: 0 4px; font-size: 12.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #fff; }
.mcqw-swipe { color: #ffdf00; animation: mcqwNudge 2.4s ease-in-out infinite; }
@keyframes mcqwNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
.mcqw-ccaps { display: flex; gap: 10px; max-width: 1100px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; padding: 4px 70px 6px 2px; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 80px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 80px), transparent); }
.mcqw-ccaps::-webkit-scrollbar { display: none; }
.mcqw-home .mcqw-cap { flex: 0 0 auto; scroll-snap-align: start; background: rgba(255, 255, 255, .14); color: #fff !important; border: 1px solid rgba(255, 255, 255, .28); padding: 8px 18px; border-radius: 24px; font: 700 13.5px var(--font); white-space: nowrap; cursor: pointer; text-decoration: none !important; transition: background .18s, border-color .18s, transform .18s; }
.mcqw-home .mcqw-cap:hover { background: rgba(255, 255, 255, .24); transform: translateY(-1px); }
.mcqw-home .mcqw-cap.is-active { background: var(--orange); border-color: var(--orange); box-shadow: 0 6px 16px -6px rgba(255, 98, 0, .8); }
.mcqw-home .mcqw-cap.is-hot { border-color: #fdba74; }
.mcqw-adminbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 1100px; margin: 16px auto 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px dashed rgba(255, 255, 255, .3); font-size: 12.5px; text-align: left; color: #e2e8f0; }
.mcqw-adminbar b { background: #10b981; color: #fff; font-size: 10.5px; padding: 2px 8px; border-radius: 6px; margin-right: 6px; letter-spacing: .3px; }
.mcqw-adminbar-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.mcqw-home .mcqw-adminbar button, .mcqw-home .mcqw-adminbar a { background: var(--orange); color: #fff !important; border: 0; border-radius: 8px; padding: 7px 12px; font: 800 12.5px var(--font); cursor: pointer; text-decoration: none !important; }
.mcqw-home .mcqw-adminbar a { background: rgba(255, 255, 255, .16); }

.mcqw-cwrap { max-width: 1412px; padding-top: 26px; }
.mcqw-csection { margin: 0 0 30px; }
.mcqw-cgrid { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; transition: opacity .2s; }
.mcqw-cgrid.is-busy { opacity: .55; pointer-events: none; }
.mcqw-ccard { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 14px rgba(10, 25, 78, .05); transition: transform .2s, box-shadow .2s, outline-color .3s; scroll-margin-top: 90px; outline: 2px solid transparent; outline-offset: 2px; min-width: 0; }
.mcqw-ccard:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(10, 25, 78, .09); }
.mcqw-ccard.is-flash { outline-color: var(--orange); }
.mcqw-ccard-head { background: #f1f5f9; border-bottom: 1px solid #e2e8f0; border-left: 5px solid var(--royal); }
.mcqw-ccard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 14px 16px 12px; }
.mcqw-ccard-main { min-width: 0; }
.mcqw-home .mcqw-ccard h3 { font-size: 17px; font-weight: 800; color: var(--navy); line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.mcqw-home .mcqw-ccard h3 a { color: var(--navy) !important; }
.mcqw-home .mcqw-ccard h3 a:hover { color: var(--royal) !important; }
.mcqw-home .mcqw-ccard-main p { font-size: 12.5px; color: #64748b; margin: 4px 0 0; line-height: 1.45; }
.mcqw-home .mcqw-openall { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; background: var(--c); color: #fff !important; padding: 6px 13px; border-radius: 20px; font-size: 12px; font-weight: 800; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); text-decoration: none !important; transition: transform .15s, filter .15s; }
.mcqw-home .mcqw-openall:hover { transform: translateY(-1px); filter: brightness(1.08); }
.mcqw-openall-arr { font-size: 13px; }
.mcqw-clist { list-style: none; margin: 0 !important; padding: 0 !important; flex: 1; }
.mcqw-clist li { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #e2e8f0; transition: background .15s; }
.mcqw-clist li:last-child { border-bottom: 0; }
.mcqw-clist li:hover { background: #fff7ed; }
.mcqw-home .mcqw-clist a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 11px 18px; color: #0f172a !important; font-size: 14.5px; font-weight: 600; text-decoration: none !important; }
.mcqw-home .mcqw-clist li:hover a { color: var(--orange) !important; }
.mcqw-cdot { font-size: 12px; color: var(--royal); flex: 0 0 auto; }
.mcqw-ct { min-width: 0; overflow-wrap: anywhere; }
.mcqw-cbadge { flex: 0 0 auto; background: #e0f2fe; color: #0284c7; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.mcqw-cbadge.is-new { background: #fef3c7; color: #d97706; border: 1px solid #fde68a; }
.mcqw-cempty { padding: 14px 18px; color: #94a3b8; font-size: 13px; }
.mcqw-cempty-grid { padding: 30px; text-align: center; border: 2px dashed #cbd5e1; border-radius: 14px; color: #64748b; }
.mcqw-home .mcqw-ccard .mcqw-cat-more { --c: var(--royal); margin: 8px 12px 12px; width: calc(100% - 24px); }
.mcqw-filterbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 16px; margin: 0 0 18px; font-size: 13px; color: #92400e; }
.mcqw-home .mcqw-filterbar button { background: #fff; border: 1px solid #fcd34d; color: #92400e; border-radius: 8px; padding: 6px 12px; font: 700 12.5px var(--font); cursor: pointer; }
.mcqw-cnomatch { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 30px 18px; background: #fff; border: 2px dashed #cbd5e1; border-radius: 14px; }
.mcqw-cnomatch b { color: var(--navy); font-size: 16px; }
.mcqw-cnomatch span { color: #64748b; font-size: 13px; }
.mcqw-home .mcqw-cnomatch a { background: var(--navy); color: #fff !important; padding: 9px 16px; border-radius: 20px; font-weight: 800; font-size: 13px; }

/* admin controls (only rendered for admins) */
.mcqw-prio { display: inline-block; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--navy); border-radius: 6px; padding: 1px 7px; margin-bottom: 5px; }
.mcqw-edstrip { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 12px 8px 16px; border-top: 1px dashed #cbd5e1; background: #eef2f7; }
.mcqw-edstrip span { display: flex; align-items: center; gap: 4px; }
.mcqw-edstrip small { font-size: 11.5px; color: #64748b; font-weight: 700; margin-right: 2px; }
.mcqw-home .mcqw-edstrip button, .mcqw-home .mcqw-edi button { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 7px; border: 1px solid #cbd5e1; background: #fff; color: var(--navy); cursor: pointer; font: 800 12px var(--font); }
.mcqw-home .mcqw-edstrip button:hover, .mcqw-home .mcqw-edi button:hover { border-color: var(--royal); color: var(--royal); }
.mcqw-home .mcqw-edstrip .is-plus { background: #10b981; border-color: #10b981; color: #fff; padding: 0 10px; }
.mcqw-home .mcqw-edstrip .is-del, .mcqw-home .mcqw-edi .is-del { color: #dc2626; }
.mcqw-home .mcqw-edi .is-show { color: #059669; }
.mcqw-edi { display: flex; gap: 3px; padding-right: 10px; flex: 0 0 auto; }
.mcqw-clist li.is-hidden { background: repeating-linear-gradient(45deg, #f8fafc 0 8px, #f1f5f9 8px 16px); }
.mcqw-clist li.is-hidden a { opacity: .45; text-decoration: line-through !important; }

/* editor modal */
.mcqw-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 25, 78, .55); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 40px 14px; overflow-y: auto; }
.mcqw-modal[hidden] { display: none; }
.mcqw-modal-card { width: 100%; max-width: 560px; background: #fff; border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); font-family: var(--font); color: #0f172a; }
.mcqw-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #e2e8f0; }
.mcqw-modal-head h3 { margin: 0; font-size: 17px; color: var(--navy, #0a194e); }
.mcqw-modal-head button { border: 0; background: #f1f5f9; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.mcqw-modal form { padding: 14px 18px 18px; display: grid; gap: 12px; }
.mcqw-f { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: #334155; min-width: 0; }
.mcqw-f small { font-weight: 500; color: #64748b; font-size: 11.5px; }
.mcqw-f input, .mcqw-f select, .mcqw-f textarea { width: 100%; box-sizing: border-box; border: 1px solid #cbd5e1; border-radius: 9px; padding: 9px 11px; font: 500 15px var(--font); color: #0f172a; background: #fff; }
.mcqw-f input:focus, .mcqw-f select:focus, .mcqw-f textarea:focus { outline: 0; border-color: var(--royal, #0066ff); box-shadow: 0 0 0 3px rgba(0, 102, 255, .15); }
.mcqw-f input[type="color"] { width: 46px; height: 38px; padding: 2px; }
.mcqw-fgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mcqw-fset { border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px 12px; display: grid; gap: 10px; margin: 0; background: #f8fafc; }
.mcqw-fset legend { font-weight: 800; font-size: 13px; color: var(--navy, #0a194e); padding: 0 6px; }
.mcqw-pills { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.mcqw-pills button { border: 1px solid #e2e8f0; background: #fff; border-radius: 7px; padding: 3px 8px; cursor: pointer; font: 600 12.5px var(--font); }
.mcqw-pills button.is-sw { border-left: 14px solid var(--sw); }
.mcqw-fcheck { display: flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 600; }
.mcqw-fnote { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; border-radius: 10px; padding: 9px 12px; font-size: 13px; margin: 0; }
.mcqw-modal-err { background: #fef2f2; color: #b91c1c; border-radius: 9px; padding: 8px 12px; font-size: 13px; margin: 0; }
.mcqw-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.mcqw-modal-foot button { border: 0; border-radius: 10px; padding: 10px 16px; font: 800 14px var(--font); cursor: pointer; }
.mcqw-modal-foot .is-cancel { background: #f1f5f9; color: #334155; }
.mcqw-modal-foot .is-save { background: var(--royal, #0066ff); color: #fff; }
.mcqw-modal-foot .is-save:disabled { opacity: .6; }
.mcqw-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; z-index: 2100; background: #0f172a; color: #fff; padding: 11px 18px; border-radius: 12px; font: 600 14px var(--font); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100% - 32px); }
.mcqw-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.mcqw-toast.is-bad { background: #b91c1c; }

@media (min-width: 700px) {
    .mcqw-cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mcqw-home .mcqw-chero h1 { font-size: 33px; }
    .mcqw-chero-in { padding: 40px 24px 26px; }
}
@media (min-width: 1100px) {
    .mcqw-cgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mcqw-home .mcqw-chero h1 { font-size: 40px; }
}
@media (max-width: 600px) {
    .mcqw-chero-in { padding: 24px 12px 16px; }
    .mcqw-ckicker { font-size: 10px; letter-spacing: .4px; padding: 5px 12px; }
    .mcqw-home .mcqw-csub { font-size: 13.5px; }
    .mcqw-csearch { padding-left: 12px; }
    .mcqw-csearch-btn { padding: 10px 12px; }
    .mcqw-csearch.is-busy::after { right: 104px; }
    .mcqw-ccard-top { flex-direction: column; }
    .mcqw-home .mcqw-openall { align-self: flex-start; }
    .mcqw-home .mcqw-clist a { padding: 11px 14px; font-size: 14px; }
    .mcqw-cwrap { padding-left: 10px; padding-right: 10px; }
    .mcqw-edi { padding-right: 6px; }
    .mcqw-home .mcqw-edi button { min-width: 26px; height: 26px; }
}

/* =====================================================================
   v4.8 — tests section, coloured section bands, avatar menu, polish
   ===================================================================== */
body.mcqw-shell { background: #f4f7fc; }
.mcqw-hico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: 19px; line-height: 1; flex: 0 0 auto; background: #eff6ff; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .04); }
.mcqw-hico.is-red { background: #fee2e2; } .mcqw-hico.is-orange { background: #ffedd5; } .mcqw-hico.is-violet { background: #ede9fe; }
.mcqw-hico.is-gold { background: #fef3c7; } .mcqw-hico.is-amber { background: #fef9c3; } .mcqw-hico.is-teal { background: #ccfbf1; } .mcqw-hico.is-blue { background: #dbeafe; }
.mcqw-sec-head h2 { gap: 10px; }
.mcqw-band { position: relative; padding: 22px 18px 24px; border-radius: 22px; border: 1px solid #e6ecf5; }
.mcqw-band-tests { background: linear-gradient(180deg, #ffffff 0%, #f0f6ff 100%); box-shadow: 0 10px 30px -24px rgba(10, 25, 78, .45); }
.mcqw-band-why { background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%); border-color: #e4e2fb; }
.mcqw-band-pkg { background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%); border-color: #fde9c3; }

/* test filters */
.mcqw-tfilters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; margin: 0 0 16px; }
.mcqw-tfilters::-webkit-scrollbar { display: none; }
.mcqw-home .mcqw-tfilters button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid #dbe3ef; background: #fff; color: #334155; font: 700 14px var(--font); cursor: pointer; transition: all .15s; }
.mcqw-home .mcqw-tfilters button em { font-style: normal; font-size: 12px; background: #f1f5f9; color: #475569; border-radius: 999px; padding: 0 7px; }
.mcqw-home .mcqw-tfilters button:hover { border-color: var(--royal, #0066ff); }
.mcqw-home .mcqw-tfilters button.is-active { background: var(--navy, #0a194e); border-color: var(--navy, #0a194e); color: #fff; }
.mcqw-home .mcqw-tfilters button.is-active em { background: rgba(255, 255, 255, .2); color: #fff; }
.mcqw-home .mcqw-tfilters button.has-live:not(.is-active) { border-color: #fecaca; color: #b91c1c; }

/* test cards */
.mcqw-tgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.mcqw-tcard { --tc: #2563eb; --tbg: #eff6ff; position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; min-width: 0; }
.mcqw-tcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tc); }
.mcqw-tcard:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(10, 25, 78, .45); border-color: color-mix(in srgb, var(--tc) 35%, #e2e8f0); }
.mcqw-tcard.is-live { --tc: #dc2626; --tbg: #fef2f2; }
.mcqw-tcard.is-soon { --tc: #d97706; --tbg: #fffbeb; }
.mcqw-tcard.is-free { --tc: #059669; --tbg: #ecfdf5; }
.mcqw-tcard.is-pro { --tc: #b45309; --tbg: #fffbeb; background: linear-gradient(180deg, #fffdf6 0%, #ffffff 40%); }
.mcqw-tcard.is-pro::before { background: linear-gradient(90deg, #f59e0b, #fbbf24, #d97706); }
.mcqw-tchips { display: flex; flex-wrap: wrap; gap: 6px; }
.mcqw-tchip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: .2px; white-space: nowrap; }
.mcqw-tchip.is-live { background: #dc2626; color: #fff; }
.mcqw-tchip.is-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: mcqwBlink 1.1s infinite; }
@keyframes mcqwBlink { 50% { opacity: .25; } }
.mcqw-tchip.is-soon { background: #fef3c7; color: #92400e; }
.mcqw-tchip.is-free { background: #d1fae5; color: #065f46; }
.mcqw-tchip.is-pro { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #78350f; box-shadow: 0 2px 8px -3px rgba(217, 119, 6, .6); }
.mcqw-tchip.is-ok { background: #e0f2fe; color: #075985; }
.mcqw-tchip.is-star { background: #ede9fe; color: #5b21b6; }
.mcqw-home .mcqw-tcard h3 { font-size: 16.5px; font-weight: 800; line-height: 1.35; margin: 2px 0 0; }
.mcqw-home .mcqw-tcard h3 a { color: #0f172a !important; }
.mcqw-home .mcqw-tcard h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.mcqw-home .mcqw-tcard h3 a:hover { color: var(--tc) !important; }
.mcqw-tcat { color: #64748b; font-size: 13px; margin: 0 !important; }
.mcqw-tmeta { list-style: none; margin: 2px 0 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 6px; }
.mcqw-tmeta li { background: var(--tbg); border-radius: 8px; padding: 3px 8px; font-size: 12.5px; color: #334155; }
.mcqw-tmeta b { color: #0f172a; }
.mcqw-twhen { font-size: 13px; font-weight: 700; color: #92400e; }
.mcqw-twhen.is-live { color: #b91c1c; }
.mcqw-tcard .mcqw-mini-cd { margin-top: 2px; }
.mcqw-tcard .mcqs-countdown div { background: #1e293b; }
.mcqw-tfoot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.mcqw-tprice { display: grid; line-height: 1.1; }
.mcqw-tprice small { font-size: 11px; color: #92400e; font-weight: 700; }
.mcqw-tprice b { font-size: 18px; color: #78350f; }
.mcqw-home .mcqw-tbtn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 11px; background: var(--tc); color: #fff !important; font-weight: 800; font-size: 13.5px; text-decoration: none !important; white-space: nowrap; box-shadow: 0 6px 14px -8px var(--tc); transition: filter .15s, transform .15s; }
.mcqw-home .mcqw-tbtn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.mcqw-home .mcqw-tbtn.is-pro { background: linear-gradient(135deg, #f59e0b, #d97706); }
.mcqw-tempty { text-align: center; color: #64748b; padding: 24px; }
.mcqw-tnote { margin: 14px 0 0 !important; padding: 10px 14px; border-radius: 12px; background: #eff6ff; color: #1e3a8a; font-size: 13.5px; }
.mcqw-home .mcqw-tnote a { font-weight: 800; }

/* popular sets numbers, why, toppers, learn */
.mcqw-set-n { position: relative; }
.mcqw-set-n.t0 { background: #dbeafe; color: #1d4ed8; } .mcqw-set-n.t1 { background: #dcfce7; color: #15803d; }
.mcqw-set-n.t2 { background: #ffedd5; color: #c2410c; } .mcqw-set-n.t3 { background: #ede9fe; color: #6d28d9; }
.mcqw-set-n i { position: absolute; top: -9px; right: -7px; font-size: 13px; font-style: normal; }
.mcqw-home .mcqw-sets a:hover .mcqw-set-t b { color: var(--brand); }
.mcqw-why .mcqs-card { border: 0; box-shadow: 0 8px 24px -18px rgba(10, 25, 78, .5); }
.mcqw-why i { font-size: 22px; font-style: normal; }
.mcqw-why .is-blue i { background: #dbeafe; } .mcqw-why .is-green i { background: #dcfce7; } .mcqw-why .is-orange i { background: #ffedd5; } .mcqw-why .is-violet i { background: #ede9fe; }
.mcqw-toppers { border-top: 4px solid #f59e0b; }
.mcqw-toppers li.r1 { background: #fffbeb; } .mcqw-toppers li.r2 { background: #f8fafc; } .mcqw-toppers li.r3 { background: #fff7ed; }
.mcqw-rank.r1, .mcqw-rank.r2, .mcqw-rank.r3 { background: transparent; font-size: 20px; }
.mcqw-learn .mcqs-card { position: relative; padding-left: 52px !important; border-left: 3px solid #14b8a6; }
.mcqw-learn-ico { position: absolute; left: 14px; top: 14px; font-size: 22px; }
.mcqw-strip { background: linear-gradient(90deg, #ffffff 0%, #f5f9ff 100%); }
.mcqw-strip-guest { border-left: 4px solid var(--orange, #ff6200); }

/* header: account menu + join button */
.mcqw .mcqw-join-btn { display: none; min-height: 40px; padding: 0 14px; }
@media (min-width: 1100px) { .mcqw .mcqw-join-btn { display: inline-flex; } }
.mcqw-um { position: relative; }
.mcqw-home button.mcqw-avatar, .mcqw button.mcqw-avatar { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 3px 3px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; cursor: pointer; color: #475569; }
.mcqw button.mcqw-avatar:hover, .mcqw button.mcqw-avatar[aria-expanded="true"] { border-color: var(--brand); }
.mcqw-um-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 250px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 24px 48px -20px rgba(15, 23, 42, .4); padding: 6px; z-index: 950; }
.mcqw-um-head { display: flex; gap: 10px; align-items: center; padding: 10px; border-bottom: 1px solid #eef2f7; margin-bottom: 4px; }
.mcqw-um-head img { border-radius: 50%; }
.mcqw-um-head span { display: grid; min-width: 0; }
.mcqw-um-head b { font-size: 14.5px; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcqw-um-head small { font-size: 12px; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcqw .mcqw-um-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: #334155 !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.mcqw .mcqw-um-menu a:hover, .mcqw .mcqw-um-menu a:focus { background: #eff6ff; color: var(--brand) !important; outline: none; }
.mcqw .mcqw-um-menu a svg { color: #94a3b8; }
.mcqw .mcqw-um-menu a.is-out { color: #b91c1c !important; border-top: 1px solid #eef2f7; margin-top: 4px; border-radius: 0 0 10px 10px; }
.mcqw .mcqw-um-menu a.is-out svg { color: #ef4444; }
@media (max-width: 600px) {
    .mcqw-band { padding: 16px 12px 18px; border-radius: 18px; margin-left: -2px; margin-right: -2px; }
    .mcqw-hico { width: 34px; height: 34px; font-size: 17px; }
    .mcqw-tgrid { grid-template-columns: 1fr; }
    .mcqw-tfoot { flex-wrap: wrap; }
    .mcqw-um-menu { position: fixed; left: 10px; right: 10px; top: 64px; width: auto; }
}
@media (max-width: 600px) {
    .mcqw-why { grid-template-columns: 1fr 1fr; gap: 10px; }
    .mcqw-why .mcqs-card { padding: 12px; }
    .mcqw-why i { width: 38px; height: 38px; margin-bottom: 8px; font-size: 19px; }
    .mcqw-why b { font-size: 14.5px; }
    .mcqw-why p { font-size: 12.5px; }
}

/* v4.9 — every category card the same size: N rows visible, the rest scroll inside the card */
.mcqw-cgrid { align-items: stretch; }
.mcqw-ccard { height: 100%; position: relative; }
.mcqw-ccard-top { min-height: 92px; }
.mcqw-home .mcqw-ccard h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcqw-home .mcqw-ccard-main p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcqw-clist { height: calc(var(--rows, 6) * 45px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; flex: 0 0 auto; }
.mcqw-clist::-webkit-scrollbar { width: 6px; }
.mcqw-clist::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }
.mcqw-clist li { min-height: 45px; }
.mcqw-home .mcqw-clist a { padding-top: 10px; padding-bottom: 10px; }
.mcqw-home .mcqw-ct { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcqw-cscroll { display: none; position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 0 7px; text-align: center; font-size: 11.5px; font-weight: 800; color: var(--royal, #0066ff); background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 60%); pointer-events: none; border-radius: 0 0 14px 14px; }
.mcqw-ccard.has-scroll .mcqw-cscroll { display: block; }
.mcqw-ccard.is-end .mcqw-cscroll { display: none; }
.mcqw-cempty { height: 100%; display: flex; align-items: center; }
@media (max-width: 600px) { .mcqw-clist { height: calc(var(--rows, 6) * 44px); } .mcqw-ccard-top { min-height: 0; } }

/* v4.9 — ringing bell, menu emoji, "थप" overflow menu */
.mcqw-notice { background: #061033; }
.mcqw-notice-tag { background: #ff6200; color: #fff; }
.mcqw-bell-ring { display: inline-block; transform-origin: 50% 0; filter: drop-shadow(0 0 4px rgba(255, 215, 0, .7)); }
.mcqw-bell-ring.is-ring { animation: mcqwRing 1.6s ease-in-out 2; }
@keyframes mcqwRing { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(18deg); } 20% { transform: rotate(-16deg); } 30% { transform: rotate(14deg); } 40% { transform: rotate(-10deg); } 50% { transform: rotate(6deg); } 60% { transform: rotate(-3deg); } 70% { transform: rotate(0); } }
.mcqw-mi { font-size: 15px; line-height: 1; }
.mcqw-nav { overflow: hidden; }
.mcqw-nav:hover, .mcqw-nav:focus-within { overflow: visible; }
.mcqw-nav > ul { flex-wrap: nowrap; }
.mcqw-dd-more { left: auto; right: 0; min-width: 240px; }
.mcqw-dd-more .mcqw-nav-item { position: static; }
.mcqw-dd-more .mcqw-nav-item > a { display: flex; width: 100%; padding: 9px 10px; }
.mcqw-dd-more .mcqw-nav-item .mcqw-dd { display: none; }
.mcqw-dd-more .mcqw-nav-item > a svg:last-child { display: none; }
.mcqw-dd-list li.is-special a { background: #fff7ed; color: #c2410c !important; }
@media (prefers-reduced-motion: reduce) { .mcqw-bell-ring.is-ring { animation: none; } }
.mcqw-nav:has(.is-open) { overflow: visible; }
.mcqw-dd-more .mcqw-nav-item > a { justify-content: flex-start; gap: 8px; }

/* v5.0 — card lists scroll only after hover intent (see site.js); subtle cue when armed. */
.mcqw-ccard .mcqw-clist { transition: box-shadow .2s; }
.mcqw-ccard.is-armed.has-scroll .mcqw-clist { box-shadow: inset 0 0 0 2px rgba(249, 115, 22, .35); }
