/*! MCQ Sewa Pro — category / tag pages, quiz posts and sidebar (module: archive). */
.mcqw-arch { --navy: #0a194e; --royal: #0066ff; --orange: #ff6200; --gold: #ffb800; --ink: #0f172a; --muted: #64748b; --line: #e2e8f0; color: var(--ink); }

/* hero */
.mcqw-arch-hero { background: radial-gradient(900px 300px at 85% -40%, rgba(0, 102, 255, .55), transparent 60%), linear-gradient(135deg, #0a194e 0%, #10287a 60%, #0a194e 100%); color: #fff; border-bottom: 4px solid var(--orange); padding: 18px 0 26px; }
.mcqw-arch-hero h1 { color: #fff !important; font-size: clamp(22px, 3.4vw, 34px); font-weight: 800; line-height: 1.3; margin: 10px 0 8px; overflow-wrap: anywhere; display: flex; align-items: center; gap: 10px; }
.mcqw-arch-hero p { color: #cbd5e1; margin: 0 0 12px; max-width: 760px; font-size: 15px; line-height: 1.6; }
.mcqw-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; }
.mcqw-crumbs li { display: inline-flex; align-items: center; color: #cbd5e1; min-width: 0; }
.mcqw-crumbs li + li::before { content: "›"; margin: 0 8px; color: #64748b; }
.mcqw-crumbs a { color: #e2e8f0 !important; text-decoration: none !important; }
.mcqw-crumbs a:hover { color: var(--gold) !important; }
.mcqw-crumbs span { color: var(--gold); font-weight: 700; max-width: 52ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcqw-arch-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.mcqw-arch-stats span { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.mcqw-arch-stats b { color: var(--gold); }
.mcqw-arch-subs { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.mcqw-arch-subs a { flex: 0 0 auto; background: #fff; color: var(--navy) !important; border-radius: 99px; padding: 7px 14px; font-weight: 700; font-size: 13.5px; text-decoration: none !important; display: inline-flex; gap: 8px; align-items: center; }
.mcqw-arch-subs a b { background: #fff1e6; color: var(--orange); border-radius: 99px; padding: 0 7px; font-size: 12px; }
.mcqw-arch-subs a:hover { background: var(--gold); }
.mcqw-post-cat { display: inline-flex; background: var(--orange); color: #fff !important; border-radius: 99px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; text-decoration: none !important; margin-top: 12px; }
.mcqw-live-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: mcqwPulse 2s infinite; }
@keyframes mcqwPulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* layout */
.mcqw-arch-grid { display: grid; gap: 24px; padding-top: 20px; padding-bottom: 28px; }
.mcqw-arch-grid.has-side { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.mcqw-arch-main { min-width: 0; }
@media (max-width: 960px) { .mcqw-arch-grid.has-side { grid-template-columns: minmax(0, 1fr); } }

/* random card */
.mcqw-random { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(120deg, #fff7ed, #fffbeb); border: 1px solid #fed7aa; border-left: 5px solid var(--orange); border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; }
.mcqw-random span { display: inline-block; font-size: 12px; font-weight: 800; color: var(--orange); letter-spacing: .03em; }
.mcqw-random b { display: block; font-size: 16.5px; margin: 2px 0; color: var(--navy); }
.mcqw-random small { color: var(--muted); }
.mcqw-random .mcqs-btn { flex: 0 0 auto; width: auto; }
@media (max-width: 640px) { .mcqw-random { flex-direction: column; align-items: stretch; } .mcqw-random .mcqs-btn { width: 100%; } }

.mcqw-arch-find { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; margin-bottom: 14px; color: var(--muted); }
.mcqw-arch-find:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 98, 0, .14); }
.mcqw-arch-find input { flex: 1; min-width: 0; border: 0 !important; outline: 0 !important; box-shadow: none !important; padding: 11px 0 !important; font-size: 14.5px; background: transparent !important; }

/* set cards */
.mcqw-sets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 680px) { .mcqw-sets { grid-template-columns: minmax(0, 1fr); } }
.mcqw-set a { display: flex; align-items: center; gap: 12px; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none !important; color: var(--ink) !important; transition: border-color .15s, box-shadow .15s, transform .15s; box-sizing: border-box; }
.mcqw-set a:hover { border-color: var(--orange); box-shadow: 0 10px 24px -14px rgba(255, 98, 0, .55); transform: translateY(-1px); }
.mcqw-set-no { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, var(--navy), #1e3a8a); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; font-size: 20px; }
.mcqw-set-no small { font-size: 10px; color: #cbd5e1; font-weight: 600; }
.mcqw-set-no b { font-size: 18px; color: var(--gold); }
.mcqw-set-body { flex: 1; min-width: 0; }
.mcqw-set-body h3 { margin: 0 0 4px !important; font-size: 15px !important; font-weight: 700; line-height: 1.4; color: var(--ink) !important; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcqw-set-body small { color: var(--muted); font-size: 12.5px; }
.mcqw-set-go { flex: 0 0 auto; background: #fff1e6; color: var(--orange); border-radius: 99px; padding: 6px 11px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.mcqw-set a:hover .mcqw-set-go { background: var(--orange); color: #fff; }
.mcqw-new { font-style: normal; background: #dcfce7; color: #166534; border-radius: 6px; padding: 1px 6px; font-size: 11px; font-weight: 800; vertical-align: middle; }
.mcqw-set[hidden] { display: none; }
.mcqw-sets.is-compact .mcqw-set-go { display: none; }
.mcqw-arch-none { text-align: center; color: var(--muted); padding: 20px; }
.mcqw-more { text-align: center; margin: 18px 0 6px; }
.mcqw-more .mcqs-btn { width: auto; min-width: 260px; }
.mcqw-more .mcqs-btn[disabled] { opacity: .6; }
.mcqw-pager { text-align: center; margin: 14px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.mcqw-pager .page-numbers { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink) !important; text-decoration: none !important; font-weight: 700; font-size: 14px; }
.mcqw-pager .page-numbers.current { background: var(--navy); color: #fff !important; border-color: var(--navy); }
.mcqw-js .mcqw-pager.has-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* prev / current / next */
.mcqw-snavs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 22px 0; }
.mcqw-snav { display: flex; flex-direction: column; gap: 3px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none !important; color: var(--ink) !important; min-width: 0; }
.mcqw-snav small { color: var(--muted); font-size: 12px; font-weight: 700; }
.mcqw-snav b { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcqw-snav i { font-style: normal; font-size: 12px; color: var(--royal); font-weight: 700; }
.mcqw-snav.is-next { text-align: right; }
a.mcqw-snav:hover { border-color: var(--orange); }
.mcqw-snav.is-cur { background: linear-gradient(135deg, #eff6ff, #fff); border-color: #bfdbfe; text-align: center; align-items: center; }
.mcqw-snav.is-off { opacity: .6; }
@media (max-width: 680px) { .mcqw-snavs { grid-template-columns: 1fr 1fr; } .mcqw-snav.is-cur { grid-column: 1 / -1; order: -1; } }

/* post */
.mcqw-article { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: 16px; padding: clamp(16px, 3vw, 28px); font-size: 16.5px; line-height: 1.8; overflow-wrap: anywhere; }
.mcqw-article > :first-child { margin-top: 0; }
.mcqw-article img, .mcqw-article iframe, .mcqw-article video { max-width: 100%; height: auto; border-radius: 10px; }
.mcqw-article table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.mcqw-article th, .mcqw-article td { border: 1px solid var(--line); padding: 8px 10px; }
.mcqw-article h2, .mcqw-article h3 { color: var(--navy); line-height: 1.4; margin: 1.4em 0 .5em; }
.mcqw-article a { color: var(--royal); }
.mcqw-article blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--gold); background: #fffbeb; border-radius: 0 10px 10px 0; }
.mcqw-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0; }
.mcqw-share b { font-size: 14px; margin-right: 4px; }
.mcqw-share a, .mcqw-share button { border: 0; border-radius: 99px; padding: 7px 14px; font: 700 13px inherit; color: #fff !important; text-decoration: none !important; cursor: pointer; }
.mcqw-share .is-fb { background: #1877f2; } .mcqw-share .is-wa { background: #16a34a; } .mcqw-share .is-tg { background: #229ed9; }
.mcqw-share button { background: #e2e8f0; color: var(--ink) !important; }
.mcqw-related h2 { font-size: 19px; margin: 6px 0 12px; color: var(--navy); }
.mcqw-related > .mcqs-btn { margin-top: 12px; width: auto; }
.mcqw-comments { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }

/* sidebar */
.mcqw-side { position: sticky; top: 84px; }
@media (max-width: 960px) { .mcqw-side { position: static; } }
.mcqw-side-in { display: flex; flex-direction: column; gap: 14px; }
.mcqw-wid { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.mcqw-wid h3 { margin: 0 0 8px !important; font-size: 15px !important; color: var(--navy) !important; }
.mcqw-wid-search { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; color: var(--muted); }
.mcqw-wid-search input { flex: 1; min-width: 0; border: 0 !important; outline: 0 !important; box-shadow: none !important; padding: 8px 0 !important; background: transparent !important; font-size: 14px; }
.mcqw-wid-search .mcqs-btn { width: auto; padding: 8px 14px; }
.mcqw-wid-join, .mcqw-wid-pro { text-align: center; }
.mcqw-wid-join { background: linear-gradient(135deg, #e0f2fe, #fff); border-color: #bae6fd; }
.mcqw-wid-pro { background: linear-gradient(135deg, #0a194e, #1e3a8a); color: #fff; border: 0; }
.mcqw-wid-pro.is-free { background: linear-gradient(135deg, #fff7ed, #fff); color: var(--ink); border: 1px solid #fed7aa; }
.mcqw-wid-join > span, .mcqw-wid-pro > span { font-size: 28px; display: block; }
.mcqw-wid-join b, .mcqw-wid-pro b { display: block; font-size: 15.5px; margin: 4px 0; }
.mcqw-wid-pro:not(.is-free) b { color: var(--gold); }
.mcqw-wid-join p, .mcqw-wid-pro p { margin: 0 0 10px; font-size: 13.5px; opacity: .85; }
.mcqw-wid-join .mcqs-btn { background: #229ed9; color: #fff; border: 0; }
.mcqw-wtabs { display: flex; gap: 6px; margin-bottom: 8px; background: #f1f5f9; border-radius: 10px; padding: 4px; }
.mcqw-wtabs button { flex: 1; border: 0; background: transparent; border-radius: 8px; padding: 7px; font: 700 13px inherit; color: var(--muted); cursor: pointer; }
.mcqw-wtabs button.is-on { background: #fff; color: var(--orange); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.mcqw-wid ol, .mcqw-wid ul { list-style: none; margin: 0 !important; padding: 0 !important; }
.mcqw-wid ol li a { display: flex; align-items: flex-start; gap: 9px; padding: 8px 4px; border-bottom: 1px solid #f1f5f9; text-decoration: none !important; color: var(--ink) !important; font-size: 13.5px; line-height: 1.45; }
.mcqw-wid ol li:last-child a { border-bottom: 0; }
.mcqw-wid ol li a:hover span { color: var(--orange); }
.mcqw-wid ol i { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; background: #f1f5f9; color: var(--navy); font: 800 11.5px/22px inherit; text-align: center; }
.mcqw-wid ol li:nth-child(-n+3) i { background: var(--orange); color: #fff; }
.mcqw-wid ol span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mcqw-wid ol small { flex: 0 0 auto; color: var(--muted); font-size: 11.5px; }
.mcqw-wid-cats li a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 4px; border-bottom: 1px dashed #e2e8f0; color: var(--ink) !important; text-decoration: none !important; font-size: 14px; }
.mcqw-wid-cats li a b { background: #f1f5f9; color: var(--navy); border-radius: 99px; padding: 0 8px; font-size: 12px; }
.mcqw-wid-cats li.is-cur a, .mcqw-wid-cats li a:hover { color: var(--orange) !important; }

/* quiz page ([mcqsewa_quiz]) inside the post column: no full-width break-out next to the sidebar */
.mcqw-article .mcqs-quizpage, .mcqw-article .mcqs-quizpage.mcqs-qp-wide { width: auto !important; max-width: none !important; margin: 0 !important; transform: none !important; }
.mcqw-article:has(.mcqs-quizpage) { border-left-width: 1px; padding: clamp(10px, 2vw, 18px); }
.mcqw-article .mcqs-admin-note { margin-top: 0; }
