.study-qbank-page [hidden] { display: none !important; }
.study-qbank-page .study-app-hero { padding: 22px 0 12px; }
.study-qbank-page .study-back-link { margin-bottom: 18px; }
.study-qbank-page .study-app-hero-grid { display: block; margin-top: 12px; }
.study-qbank-page .study-app-hero h1 { margin: 6px 0; font-size: clamp(1.65rem, 5vw, 2.4rem); }
.study-qbank-page .study-app-hero-copy > p:last-child { margin-bottom: 0; font-size: .95rem; }
.study-qbank-page .study-app-eyebrow { display: none; }
.study-qbank-page .study-library-section { display: flex; flex-direction: column; padding-top: 18px; gap: 16px; }
.study-qbank-page .study-library-heading { order: 2; justify-content: center; align-items: center; gap: 14px; margin: 0; }
.study-qbank-page .study-library-heading > div { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.study-qbank-page .study-library-heading h2 { font-size: 1.1rem; }
.study-qbank-page .study-library-heading .study-secondary-action { font-size: .75rem; }
.study-qbank-page .study-library-tabs { overflow-x: auto; overflow-y: hidden; align-items: center; overscroll-behavior-x: contain; touch-action: pan-x; white-space: nowrap; scrollbar-width: thin; }
.study-qbank-page .study-library-tabs button { flex: 0 0 auto; white-space: nowrap; min-height: 48px; }
.study-qbank-page .study-library-tabs button::after { bottom: 0; }
.study-qbank-page .study-library-panel { padding: 16px; }
.study-qbank-page .study-content-grid { width: 100%; padding: 0; margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); }
.qbank-collection { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 18px; min-width: 0; padding: 24px; border: 1px solid var(--study-line); border-radius: 18px; background: var(--study-surface); color: var(--study-ink); overflow: hidden; }
.qbank-university-collection { border-color: color-mix(in srgb, var(--study-accent) 26%, var(--study-line)); background: radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--study-accent) 11%, transparent), transparent 62%), var(--study-surface); box-shadow: 0 12px 32px color-mix(in srgb, var(--study-ink) 5%, transparent); }
.qbank-university-collection::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--study-accent), color-mix(in srgb, var(--study-accent) 20%, transparent)); }
.qbank-collection-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qbank-university-emblem { display: grid; place-items: center; width: 54px; height: 54px; flex: 0 0 54px; border: 1px solid color-mix(in srgb, var(--study-accent) 35%, transparent); border-radius: 16px; background: linear-gradient(145deg, color-mix(in srgb, var(--study-accent) 18%, var(--study-surface)), color-mix(in srgb, var(--study-accent) 5%, var(--study-surface))); color: var(--study-accent); }
.qbank-university-emblem > span { font-size: 31px; }
.qbank-official-label { display: inline-flex; align-items: center; gap: 5px; color: var(--study-copy); font-size: .67rem; font-weight: 650; }
.qbank-official-label > span { color: var(--study-accent); font-size: 17px; }
.qbank-collection-kicker { display: block; width: fit-content; margin-bottom: 5px; color: var(--study-accent); font-size: .66rem; font-weight: 800; letter-spacing: .15em; }
.qbank-collection h3 { max-width: 500px; margin: 0; color: var(--study-ink); font-size: clamp(1.18rem, 2vw, 1.5rem); line-height: 1.38; letter-spacing: -.025em; }
.qbank-collection p { margin: 0; color: var(--study-copy); font-size: .8rem; line-height: 1.7; }
.qbank-collection-copy p { margin-top: 8px; }
.qbank-collection .qbank-collection-formats { font-size: .7rem; font-weight: 600; letter-spacing: .015em; color: var(--study-copy); text-align: start; }
.qbank-collection-benefits { display: flex; align-items: center; gap: 9px 15px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--study-line); }
.qbank-collection-benefits > span { display: inline-flex; align-items: center; gap: 5px; color: var(--study-copy); font-size: .7rem; }
.qbank-collection-benefits .material-symbols-outlined { font-size: 17px; }
.qbank-pro-wordmark { display: inline-block; color: var(--study-ink); font-size: .65rem; font-weight: 850; letter-spacing: -.025em; }
.qbank-pro-wordmark > span { color: var(--study-accent); }
.qbank-collection-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 0; }
.qbank-collection-footer a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 12px; border: 1px solid var(--study-line); border-radius: 12px; color: var(--study-ink); font-size: .74rem; font-weight: 750; line-height: 1.35; text-decoration: none !important; transition: background .16s, border-color .16s, box-shadow .16s; }
.qbank-collection-footer .material-symbols-outlined { font-size: 18px; flex-shrink: 0; }
.qbank-collection-footer .qbank-collection-open { border-color: transparent; background: var(--study-accent); color: #fff; box-shadow: 0 5px 14px color-mix(in srgb, var(--study-accent) 18%, transparent); }
.qbank-collection-footer .qbank-collection-open:hover { background: var(--study-accent-deep); box-shadow: 0 7px 18px color-mix(in srgb, var(--study-accent) 26%, transparent); }
.qbank-collection-footer .qbank-collection-subscribe { background: var(--study-surface-soft); }
.qbank-collection-footer .qbank-collection-subscribe:hover { border-color: var(--study-accent); background: color-mix(in srgb, var(--study-accent) 6%, var(--study-surface)); }
.qbank-collection-footer .qbank-collection-subscribe.is-active { color: #16834f; border-color: color-mix(in srgb, #16834f 30%, var(--study-line)); background: color-mix(in srgb, #16834f 9%, var(--study-surface)); }
[data-theme="dark"] .qbank-collection-footer .qbank-collection-subscribe.is-active { color: #79dfad; border-color: #285d48; background: #142f29; }
.qbank-collection-footer a:focus-visible { outline: 3px solid var(--study-accent); outline-offset: 3px; }
.qbank-collection[aria-disabled="true"] { opacity: .6; border-style: dashed; cursor: default; }
.qbank-collection[aria-disabled="true"] > .material-symbols-outlined { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--study-surface-soft); color: var(--study-copy); }
.qbank-coming-soon { align-self: start; font-size: .7rem; padding: 5px 10px; border-radius: 100px; background: var(--study-surface-soft); color: var(--study-copy); }
.qbank-country-directory { grid-column: 1 / -1; min-width: 0; }
.qbank-country-picker { margin-bottom: 24px; }
.qbank-country-picker > p { display: flex; align-items: center; gap: 7px; margin: 0 0 12px; color: var(--study-copy); font-size: .78rem; font-weight: 700; }
.qbank-country-picker > p .material-symbols-outlined { font-size: 19px; color: var(--study-accent); }
.qbank-country-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.qbank-country-tabs button { --country-accent: #32765a; position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 78px; padding: 14px; border: 1px solid var(--study-line); border-radius: 15px; background: var(--study-surface); color: var(--study-ink); font: inherit; font-size: .8rem; font-weight: 700; line-height: 1.4; text-align: start; cursor: pointer; transition: border-color .16s, background .16s, box-shadow .16s; }
.qbank-country-tabs button[data-qbank-country="sd"] { --country-accent: #27865b; --country-stripe: linear-gradient(90deg, #d12832 0 33%, #e6e8eb 33% 66%, #202830 66%); }
.qbank-country-tabs button[data-qbank-country="sa"] { --country-accent: #1a8351; --country-stripe: linear-gradient(90deg, #006c35, #329667); }
.qbank-country-tabs button[data-qbank-country="eg"] { --country-accent: #a67b2c; --country-stripe: linear-gradient(90deg, #ce2936 0 33%, #e6e8eb 33% 66%, #202830 66%); }
.qbank-country-tabs button[data-qbank-country="us"] { --country-accent: #596ea7; --country-stripe: linear-gradient(90deg, #b22234, #e6e8eb 50%, #3c3b6e); }
.qbank-country-tabs button[data-qbank-country="gb"] { --country-accent: #596ea7; --country-stripe: linear-gradient(90deg, #012169, #e6e8eb 50%, #c8102e); }
.qbank-country-tabs button::after { content: ""; position: absolute; inset: auto 14px -1px; height: 3px; border-radius: 3px; background: var(--country-stripe); opacity: 0; }
.qbank-country-tabs button:hover { border-color: color-mix(in srgb, var(--country-accent) 55%, var(--study-line)); background: color-mix(in srgb, var(--country-accent) 5%, var(--study-surface)); }
.qbank-country-tabs button[aria-selected="true"] { background: color-mix(in srgb, var(--country-accent) 9%, var(--study-surface)); border-color: color-mix(in srgb, var(--country-accent) 65%, var(--study-line)); box-shadow: 0 5px 18px color-mix(in srgb, var(--country-accent) 9%, transparent); }
.qbank-country-tabs button[aria-selected="true"]::after { opacity: 1; }
.qbank-country-flag { flex: 0 0 40px; display: grid; place-items: center; width: 40px; height: 28px; overflow: hidden; border: 1px solid #0002; border-radius: 5px; background: #fff; box-shadow: 0 2px 5px #0001; }
.qbank-country-flag img { display: block; width: 100%; height: 100%; object-fit: contain; }
.qbank-country-name { flex: 1 1 auto; min-width: 0; }
.qbank-country-selected { display: none; position: absolute; inset-block-start: 5px; inset-inline-end: 6px; color: var(--country-accent); font-size: 13px; }
.qbank-country-tabs button[aria-selected="true"] .qbank-country-selected { display: block; }
.qbank-country-tabs button:focus-visible, .qbank-country-panel:focus-visible { outline: 3px solid var(--study-accent); outline-offset: 3px; }
.qbank-country-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 18px; min-width: 0; border-radius: 18px; }
.qbank-national-reviewed { display: grid; gap: 4px; }
.qbank-collection .qbank-reviewed-count { display: flex; align-items: baseline; gap: 6px; color: var(--study-copy); font-size: .78rem; }
.qbank-reviewed-count strong { color: var(--study-ink); font-size: 1.05rem; font-weight: 800; }
.qbank-collection .qbank-reviewed-breakdown { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .72rem; }
.qbank-reviewed-breakdown > span { display: inline-flex; align-items: baseline; gap: 4px; }
.qbank-reviewed-breakdown strong { color: var(--study-ink); font-weight: 700; }
.qbank-national-offer { padding: 17px 18px; border: 1px solid color-mix(in srgb, var(--study-accent) 18%, var(--study-line)); border-radius: 14px; background: linear-gradient(120deg, color-mix(in srgb, var(--study-accent) 7%, var(--study-surface)), var(--study-surface)); }
.qbank-national-price { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.qbank-national-price-values { display: inline-flex; align-items: baseline; gap: 12px; }
.qbank-national-price-values > strong { color: var(--study-ink); font-size: 1.8rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.2; }
.qbank-national-price-values > strong span { margin-inline-start: 3px; color: var(--study-copy); font-size: .7rem; font-weight: 700; letter-spacing: .04em; }
.qbank-national-price-values > del { color: var(--study-copy); font-size: .78rem; font-weight: 600; text-decoration-thickness: 1px; }
.qbank-national-discount { padding: 4px 8px; border-radius: 100px; background: color-mix(in srgb, var(--study-accent) 12%, var(--study-surface)); color: var(--study-accent); font-size: .69rem; font-weight: 750; }
.qbank-country-empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 24px; border: 1px dashed var(--study-line); border-radius: 18px; color: var(--study-copy); }
.qbank-country-empty p { margin: 0; font-size: .85rem; line-height: 1.7; }
.qbank-country-empty > .material-symbols-outlined { flex: 0 0 auto; color: var(--study-accent); }
@media (max-width: 900px) { .qbank-country-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .qbank-country-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .qbank-country-tabs button { min-height: 70px; padding: 11px; } }
html[dir="rtl"] .qbank-collection h3 { letter-spacing: 0; }
html[dir="rtl"] .qbank-national-collection .qbank-collection-kicker { letter-spacing: 0; }
html[dir="rtl"] .qbank-collection-formats { text-align: end; }
@media (max-width: 540px) {
  .study-qbank-page .study-library-heading { flex-wrap: wrap; }
  .study-qbank-page .study-library-tabs button { font-size: .73rem; padding-inline: 10px; }
  .study-qbank-page .study-library-panel { padding: 14px; }
  .qbank-collection { padding: 19px; gap: 15px; }
  .qbank-collection h3 { font-size: 1.16rem; }
  .qbank-collection-footer a { font-size: .72rem; padding-inline: 8px; }
  .qbank-university-emblem { width: 48px; height: 48px; flex-basis: 48px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .qbank-collection-footer a, .qbank-country-tabs button { transition: none; } }

.study-national-chooser .study-app-hero { padding-block: 28px 12px; }
.study-national-chooser .study-back-link { margin-bottom: 20px; }
.study-national-chooser .study-library-section { padding-block: 20px 48px; }
.study-national-chooser .qbank-country-panel { margin-top: 22px; }
.study-national-chooser .qbank-national-footer { grid-template-columns: 1fr; margin-top: auto; }
.qbank-national-bundle-summary { display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center; padding: 22px; border: 1px solid var(--study-line); border-radius: 18px; background: var(--study-surface); }
.qbank-national-bundle-summary .qbank-national-price { justify-content: start; gap: 18px; }
.qbank-national-bundle-summary .qbank-national-price > span:last-child, .qbank-national-bundle-summary p { color: var(--study-copy); font-size: .8rem; }
.qbank-national-bundle-summary p { margin: 0; line-height: 1.7; }
.qbank-national-bundle-summary > a { grid-column: 2; grid-row: 1 / 3; display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 46px; padding: 12px 18px; border: 1px solid var(--study-line); border-radius: 12px; background: var(--study-surface-soft); color: var(--study-ink); text-decoration: none; font-weight: 700; font-size: .8rem; }
.qbank-national-bundle-summary > a.is-active { color: #16834f; border-color: #16834f; }
[data-theme="dark"] .qbank-national-bundle-summary > a.is-active { color: #79dfad; border-color: #285d48; }
.qbank-national-bundle-summary > a:focus-visible { outline: 3px solid var(--study-accent); outline-offset: 3px; }
@media (max-width: 540px) { .qbank-national-bundle-summary { grid-template-columns: 1fr; padding: 18px; } .qbank-national-bundle-summary > a { grid-column: auto; grid-row: auto; } }
