/* ==========================================================================
   BD Academic — Question Bank & Exam
   Every rule is scoped under .bdaqb so the theme, the dictionary section and
   ordinary posts are never restyled by this plugin.
   ========================================================================== */

.bdaqb-shell{max-width:1180px;margin:0 auto;padding:26px 18px 44px}

.bdaqb{
  --bq-bg:transparent; --bq-panel:#ffffff; --bq-panel-2:#f7f9fb; --bq-panel-3:#eef2f6;
  --bq-border:#e2e8f0; --bq-text:#131a26; --bq-muted:#5c6675; --bq-dim:#8b95a5;
  --bq-accent:#0d9f5f; --bq-accent-ink:#ffffff; --bq-accent-soft:rgba(13,159,95,.12);
  --bq-blue:#1d7ac2; --bq-amber:#f5a524; --bq-red:#ef4444;
  --bq-radius:12px; --bq-radius-sm:9px;
  color:var(--bq-text);
  font-size:15.5px; line-height:1.75;
}
.bdaqb[data-bqtheme="dark"],
.bdaqb-shell[data-bqtheme="dark"] .bdaqb{
  --bq-bg:#0d1015; --bq-panel:#161a21; --bq-panel-2:#1c2029; --bq-panel-3:#232833;
  --bq-border:#242a35; --bq-text:#e7eaf0; --bq-muted:#98a2b3; --bq-dim:#6b7484;
  --bq-accent:#12b76a; --bq-accent-ink:#07301d; --bq-accent-soft:rgba(18,183,106,.14);
}
.bdaqb-shell[data-bqtheme="dark"]{background:#0d1015;max-width:none;padding:26px 18px 44px}
.bdaqb-shell[data-bqtheme="dark"] .bdaqb{max-width:1180px;margin:0 auto}

.bdaqb *{box-sizing:border-box}
.bdaqb a{text-decoration:none}
.bdaqb .bq-ic{width:18px;height:18px;flex:0 0 auto;vertical-align:-3px}
.bdaqb .bq-muted{color:var(--bq-muted)}
.bdaqb .bq-dim{color:var(--bq-dim)}
.bdaqb .bq-small{font-size:13px}
.bdaqb .bq-mt{margin-top:20px}
.bdaqb .bq-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.bdaqb .bq-spacer{flex:1}

/* ------------------------------------------------------------------ header */
.bdaqb .bq-topnav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  border-bottom:1px solid var(--bq-border);padding-bottom:12px;margin-bottom:20px}
.bdaqb .bq-topnav > a{padding:7px 13px;border-radius:999px;color:var(--bq-muted);font-size:14.5px;font-weight:600}
.bdaqb .bq-topnav > a:hover{color:var(--bq-accent);background:var(--bq-accent-soft)}
.bdaqb .bq-topnav > a.on{background:var(--bq-accent);color:var(--bq-accent-ink)}
.bdaqb .bq-search{display:flex;margin-left:auto;gap:0}
.bdaqb .bq-search input{border:1px solid var(--bq-border);background:var(--bq-panel);color:var(--bq-text);
  border-radius:999px 0 0 999px;padding:8px 15px;font-size:14px;min-width:190px;font-family:inherit}
.bdaqb .bq-search button{border:1px solid var(--bq-accent);background:var(--bq-accent);color:var(--bq-accent-ink);
  border-radius:0 999px 999px 0;padding:8px 15px;cursor:pointer;line-height:1}
.bdaqb .bq-search.big{margin:0}
.bdaqb .bq-search.big input{flex:1;min-width:0;padding:12px 18px}

.bdaqb .bq-crumbs{display:flex;gap:7px;flex-wrap:wrap;align-items:center;color:var(--bq-dim);font-size:13.5px;margin-bottom:8px}
.bdaqb .bq-crumbs a{color:var(--bq-muted)}
.bdaqb .bq-crumbs a:hover{color:var(--bq-accent)}
.bdaqb .bq-crumbs b{color:var(--bq-text);font-weight:600}

.bdaqb .bq-h1{font-size:26px;line-height:1.35;margin:6px 0 18px}
.bdaqb .bq-hero{margin-bottom:22px}
.bdaqb .bq-hero h1{font-size:29px;margin:0 0 6px;letter-spacing:-.3px}
.bdaqb .bq-hero p{margin:0;color:var(--bq-muted)}
.bdaqb .bq-more{color:var(--bq-accent);font-weight:600;font-size:14px}

/* ------------------------------------------------------------------- cards */
.bdaqb .bq-card{background:var(--bq-panel);border:1px solid var(--bq-border);
  border-radius:var(--bq-radius);padding:18px;margin-bottom:16px}
.bdaqb .bq-card-head{display:flex;align-items:center;gap:10px;margin:0 0 14px}
.bdaqb .bq-card-head h2,.bdaqb .bq-card-head h3{margin:0;font-size:17px}

.bdaqb .bq-grid{display:grid;gap:14px;margin-bottom:18px}
.bdaqb .bq-g2{grid-template-columns:repeat(2,1fr)}
.bdaqb .bq-g3{grid-template-columns:repeat(3,1fr)}

.bdaqb .bq-tile{display:block;background:var(--bq-panel);border:1px solid var(--bq-border);
  border-radius:var(--bq-radius);padding:16px;color:inherit;transition:border-color .15s,transform .15s}
.bdaqb .bq-tile:hover{border-color:var(--bq-accent);transform:translateY(-2px);color:inherit}
.bdaqb .bq-tile h3{margin:0 0 4px;font-size:17px;line-height:1.4}
.bdaqb .bq-tile p{margin:0;color:var(--bq-muted);font-size:13.5px}
.bdaqb .bq-meta{margin-top:11px;display:flex;gap:7px;flex-wrap:wrap}
.bdaqb .bq-chip{background:var(--bq-panel-3);color:var(--bq-muted);border-radius:999px;padding:3px 11px;font-size:12.5px}

/* --------------------------------------------------------------- questions */
.bdaqb .bq-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 14px;border-bottom:1px solid var(--bq-border);padding-bottom:10px}
.bdaqb .bq-tabs a{padding:7px 14px;border-radius:999px;font-size:14px;color:var(--bq-muted);border:1px solid var(--bq-border)}
.bdaqb .bq-tabs a.on{background:var(--bq-accent);border-color:var(--bq-accent);color:var(--bq-accent-ink);font-weight:600}

.bdaqb .bq-qcard{background:var(--bq-panel);border:1px solid var(--bq-border);
  border-radius:var(--bq-radius);padding:16px 18px;margin-bottom:12px}
.bdaqb .bq-qcard.is-right{border-left:3px solid var(--bq-accent)}
.bdaqb .bq-qcard.is-wrong{border-left:3px solid var(--bq-red)}
.bdaqb .bq-qcard.is-skipped{border-left:3px solid var(--bq-amber)}
.bdaqb .bq-qtext{font-size:16px;line-height:1.8;margin:0 0 12px}
.bdaqb .bq-qnum{color:var(--bq-accent);font-weight:700;margin-right:4px}
.bdaqb .bq-stem{background:var(--bq-panel-2);border-left:3px solid var(--bq-accent);border-radius:9px;
  padding:12px 14px;margin-bottom:12px;line-height:1.85}

.bdaqb .bq-opts{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}
.bdaqb .bq-opt{display:flex;align-items:flex-start;gap:9px;background:var(--bq-panel-2);
  border:1px solid var(--bq-border);border-radius:9px;padding:9px 12px;font-size:15px;margin:0}
.bdaqb label.bq-opt{cursor:pointer}
.bdaqb label.bq-opt:hover{border-color:var(--bq-accent)}
.bdaqb .bq-key{width:23px;height:23px;border-radius:50%;border:1px solid var(--bq-border);
  display:grid;place-items:center;font-size:12px;color:var(--bq-muted);flex:0 0 auto;margin-top:2px}
.bdaqb .bq-opt input{display:none}
.bdaqb .bq-opt.sel{border-color:var(--bq-accent);background:var(--bq-accent-soft)}
.bdaqb .bq-opt.sel .bq-key{background:var(--bq-accent);color:var(--bq-accent-ink);border-color:var(--bq-accent)}
.bdaqb .bq-opt.right{border-color:var(--bq-accent);background:var(--bq-accent-soft)}
.bdaqb .bq-opt.right .bq-key{background:var(--bq-accent);color:var(--bq-accent-ink);border-color:var(--bq-accent)}
.bdaqb .bq-opt.wrong{border-color:var(--bq-red);background:rgba(239,68,68,.1)}
.bdaqb .bq-opt.wrong .bq-key{background:var(--bq-red);color:#fff;border-color:var(--bq-red)}

.bdaqb .bq-qfoot{display:flex;align-items:center;gap:14px;margin-top:12px;padding-top:11px;
  border-top:1px solid var(--bq-border);font-size:13px;flex-wrap:wrap}
.bdaqb .bq-reveal{background:none;border:0;color:var(--bq-accent);font:inherit;font-size:14px;
  cursor:pointer;display:inline-flex;align-items:center;gap:5px;padding:0}
.bdaqb .bq-answer{display:none;margin-top:12px;background:var(--bq-panel-2);border:1px dashed var(--bq-border);
  border-radius:9px;padding:12px 14px;line-height:1.85}
.bdaqb .bq-answer.open{display:block}
.bdaqb .bq-answer b{color:var(--bq-accent)}
.bdaqb .bq-expl{margin-top:8px;color:var(--bq-muted)}
.bdaqb .bq-subq{margin-top:9px;padding-left:14px;border-left:2px solid var(--bq-border)}
.bdaqb .bq-lbl{color:var(--bq-accent);font-weight:700;margin-right:4px}
.bdaqb .bq-note{color:var(--bq-muted);font-size:14px;margin:14px 0}

/* ------------------------------------------------------------------- exams */
.bdaqb .bq-examhead h2{margin:0 0 2px;font-size:22px}
.bdaqb .bq-exammeta{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0}
.bdaqb .bq-m{display:inline-flex;align-items:center;gap:7px;background:var(--bq-panel-2);
  border:1px solid var(--bq-border);border-radius:9px;padding:7px 12px;font-size:13.5px;color:var(--bq-muted)}
.bdaqb .bq-m b{color:var(--bq-text)}
.bdaqb .bq-rules{margin:0;padding-left:20px;color:var(--bq-muted)}
.bdaqb .bq-rules li{margin-bottom:6px}
.bdaqb .bq-startform{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin-top:6px}
.bdaqb .bq-field{display:block;font-size:13.5px;color:var(--bq-muted)}
.bdaqb .bq-field span{display:block;margin-bottom:5px}
.bdaqb .bq-field input:not([type=checkbox]):not([type=radio]){background:var(--bq-panel-2);
  border:1px solid var(--bq-border);color:var(--bq-text);border-radius:9px;padding:9px 12px;
  font-size:15px;font-family:inherit;min-width:220px}

.bdaqb .bq-btn{display:inline-flex;align-items:center;gap:7px;background:var(--bq-accent);
  color:var(--bq-accent-ink);border:1px solid transparent;padding:10px 18px;border-radius:9px;
  font-size:15px;font-weight:600;cursor:pointer;font-family:inherit;text-decoration:none}
.bdaqb .bq-btn:hover{filter:brightness(1.07);color:var(--bq-accent-ink)}
.bdaqb .bq-btn.ghost{background:transparent;border-color:var(--bq-border);color:var(--bq-text)}
.bdaqb .bq-btn.ghost:hover{border-color:var(--bq-accent);color:var(--bq-accent)}
.bdaqb .bq-btn.sm{padding:7px 13px;font-size:14px}

.bdaqb .bq-alert{border-radius:var(--bq-radius-sm);padding:11px 15px;margin-bottom:14px;font-size:14.5px;
  background:var(--bq-accent-soft);color:var(--bq-accent);border:1px solid var(--bq-accent)}
.bdaqb .bq-alert.err{background:rgba(239,68,68,.1);color:#d13b3b;border-color:var(--bq-red)}

/* exam-taking mode */
.bdaqb .bq-exammode{padding-bottom:78px}
.bdaqb .bq-qbar{position:fixed;left:0;right:0;bottom:0;background:var(--bq-accent);color:var(--bq-accent-ink);
  display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 22px;z-index:900;font-weight:600}
.bdaqb .bq-qbar .bq-btn{background:rgba(0,0,0,.22);color:#fff;border:0}
.bdaqb .bq-timer{font-variant-numeric:tabular-nums;font-size:16px}

/* ------------------------------------------------------------------ result */
.bdaqb .bq-score{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:16px 0}
.bdaqb .bq-s{border-radius:10px;padding:12px 15px;color:#fff}
.bdaqb .bq-s .bq-k{font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;opacity:.92}
.bdaqb .bq-s .bq-v{font-size:20px;font-weight:700}
.bdaqb .bq-s.marks{background:#12805a}
.bdaqb .bq-s.acc{background:#1d7ac2}
.bdaqb .bq-s.time{background:#2b6f9c}
.bdaqb .bq-s.neg{background:#b6373a}
.bdaqb .bq-legend{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.bdaqb .bq-l{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--bq-muted);
  border:1px solid var(--bq-border);border-radius:999px;padding:4px 12px}
.bdaqb .bq-dot{width:8px;height:8px;border-radius:50%;display:inline-block}
.bdaqb .bq-dot.g{background:var(--bq-accent)}
.bdaqb .bq-dot.r{background:var(--bq-red)}
.bdaqb .bq-dot.y{background:var(--bq-amber)}

/* ------------------------------------------------------- tables and pager */
.bdaqb .bq-tablewrap{overflow-x:auto}
.bdaqb .bq-table{width:100%;border-collapse:collapse;font-size:14.5px}
.bdaqb .bq-table th,.bdaqb .bq-table td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--bq-border)}
.bdaqb .bq-table th{color:var(--bq-muted);font-size:13px;font-weight:600}

.bdaqb .bq-pager{display:flex;gap:6px;justify-content:center;margin:22px 0 6px;flex-wrap:wrap}
.bdaqb .bq-pg{min-width:35px;height:35px;display:grid;place-items:center;border:1px solid var(--bq-border);
  border-radius:9px;color:var(--bq-muted);font-size:14px;padding:0 9px}
.bdaqb .bq-pg:hover{border-color:var(--bq-accent);color:var(--bq-accent)}
.bdaqb .bq-pg.on{background:var(--bq-accent);border-color:var(--bq-accent);color:var(--bq-accent-ink);font-weight:600}
.bdaqb .bq-pg.dots{border:0}

.bdaqb .bq-empty{text-align:center;padding:46px 20px;color:var(--bq-muted);
  border:1px dashed var(--bq-border);border-radius:var(--bq-radius)}
.bdaqb .bq-empty h3{margin:0 0 6px;color:var(--bq-text);font-size:18px}

/* ------------------------------------------------------------ linked posts */
.bdaqb .bq-linklist{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.bdaqb .bq-linklist a{display:flex;align-items:center;gap:9px;padding:9px 12px;border-radius:9px;
  background:var(--bq-panel-2);color:var(--bq-text);font-size:14.5px}
.bdaqb .bq-linklist a:hover{background:var(--bq-accent-soft);color:var(--bq-accent)}

/* box injected at the end of a linked post — deliberately quiet */
.bq-postbox{margin:30px 0 10px;border:1px solid #e2e8f0;border-left:4px solid #0d9f5f;
  border-radius:10px;background:#f7fbf9;padding:16px 18px;font-size:15px;line-height:1.7}
.bq-postbox strong{color:#0d9f5f}
.bq-postbox-btns{margin-top:12px;display:flex;gap:9px;flex-wrap:wrap}
.bq-postbox .bq-btn{display:inline-flex;align-items:center;gap:6px;background:#0d9f5f;color:#fff;
  border-radius:9px;padding:8px 15px;font-size:14px;font-weight:600;text-decoration:none}
.bq-postbox .bq-btn.ghost{background:transparent;color:#0d9f5f;border:1px solid #0d9f5f}

/* -------------------------------------------------------------- responsive */
@media (max-width:900px){
  .bdaqb .bq-g3{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  .bdaqb .bq-g2,.bdaqb .bq-g3{grid-template-columns:1fr}
  .bdaqb .bq-opts{grid-template-columns:1fr}
  .bdaqb .bq-score{grid-template-columns:repeat(2,1fr)}
  .bdaqb .bq-search{margin-left:0;width:100%}
  .bdaqb .bq-search input{flex:1;min-width:0}
  .bdaqb .bq-qbar{padding:10px 14px;gap:8px}
  .bdaqb .bq-h1{font-size:22px}
}
@media (prefers-reduced-motion:reduce){
  .bdaqb *{transition:none!important;animation:none!important}
}

.bdaqb .bq-scopeacts{display:flex;gap:9px;flex-wrap:wrap;margin:16px 0 4px}

/* ==========================================================================
   Job / Admission section pages
   ========================================================================== */
.bdaqb .bq-trackhero{text-align:center;padding:6px 0 22px;border-bottom:1px solid var(--bq-border);margin-bottom:20px}
.bdaqb .bq-trackhero h1{font-size:clamp(28px,4vw,40px);margin:0 0 4px;letter-spacing:-.4px}
.bdaqb .bq-tracksub{color:var(--bq-muted);margin:0 0 16px;font-size:16px}
.bdaqb .bq-trackpills{display:flex;gap:9px;flex-wrap:wrap;justify-content:center}
.bdaqb .bq-tpill{border-radius:999px;padding:9px 20px;font-size:14.5px;font-weight:600;text-decoration:none;white-space:nowrap}
.bdaqb .bq-tpill.dark{background:var(--bq-accent);color:#fff}
.bdaqb .bq-tpill.dark2{background:#0b6b45;color:#fff}
.bdaqb .bq-tpill.outline{border:1.5px solid var(--bq-accent);color:var(--bq-accent)}
.bdaqb .bq-tpill.outline:hover{background:var(--bq-accent);color:#fff}

.bdaqb .bq-trackTabs{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-bottom:14px}
.bdaqb .bq-trackTabs a{border:1px solid var(--bq-border);border-radius:999px;padding:10px 22px;
  font-size:14.5px;color:var(--bq-muted);text-decoration:none}
.bdaqb .bq-trackTabs a:hover{border-color:var(--bq-accent);color:var(--bq-accent)}
.bdaqb .bq-trackTabs a.on{background:#2563eb;border-color:#2563eb;color:#fff;font-weight:600}

.bdaqb .bq-tracksearch input{width:100%;border:1px solid var(--bq-border);border-radius:999px;
  padding:14px 22px;font-size:15.5px;font-family:inherit;background:var(--bq-panel);color:var(--bq-text);margin-bottom:20px}
.bdaqb .bq-tracksearch input:focus{outline:2px solid var(--bq-accent);outline-offset:-2px}

.bdaqb .bq-tracksec{font-size:20px;margin:22px 0 14px}
.bdaqb .bq-tracksec span{display:block;font-size:13.5px;color:var(--bq-dim);font-weight:400;margin-top:2px}

.bdaqb .bq-setlist,.bdaqb .bq-orglist,.bdaqb .bq-subjlist{display:grid;gap:10px}
.bdaqb .bq-setrow,.bdaqb .bq-orgcard,.bdaqb .bq-subjcard{background:var(--bq-panel);border:1px solid var(--bq-border);
  border-left:4px solid var(--bq-accent);border-radius:12px;padding:16px 18px}
.bdaqb .bq-setrow.is-hidden,.bdaqb .bq-orgcard.is-hidden,.bdaqb .bq-subjcard.is-hidden{display:none}
.bdaqb .bq-settitle{display:block;font-size:16.5px;font-weight:600;line-height:1.55;color:inherit;
  text-decoration:none;margin-bottom:11px}
.bdaqb .bq-settitle:hover{color:var(--bq-accent)}
.bdaqb .bq-setmeta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.bdaqb .bq-setacts{margin-left:auto;display:flex;align-items:center;gap:9px}
.bdaqb .bq-pdf{color:var(--bq-muted);text-decoration:none;font-size:13px;border:1px solid var(--bq-border);
  border-radius:7px;padding:5px 10px}
.bdaqb .bq-pdf:hover{border-color:var(--bq-accent);color:var(--bq-accent)}
.bdaqb .bq-statchip{background:var(--bq-panel-2);border-radius:8px;padding:6px 13px;font-size:12.5px;
  color:var(--bq-muted);white-space:nowrap}
.bdaqb .bq-statchip b{color:var(--bq-accent);font-weight:700}
.bdaqb .bq-act{border:1px solid var(--bq-border);border-radius:9px;padding:7px 14px;font-size:13.5px;
  text-decoration:none;color:var(--bq-muted);white-space:nowrap}
.bdaqb .bq-act:hover{border-color:var(--bq-accent);color:var(--bq-accent)}
.bdaqb .bq-act.primary{background:var(--bq-accent);border-color:var(--bq-accent);color:#fff;font-weight:600}
.bdaqb .bq-act.primary:hover{filter:brightness(1.08);color:#fff}

.bdaqb .bq-orghead{display:flex;align-items:center;gap:13px;text-decoration:none;color:inherit;margin-bottom:11px}
.bdaqb .bq-orglogo{width:44px;height:44px;border-radius:10px;object-fit:contain;background:var(--bq-panel-2);flex:0 0 auto}
.bdaqb .bq-orglogo.blank{display:grid;place-items:center;font-size:19px;font-weight:700;color:var(--bq-accent)}
.bdaqb .bq-orgname{font-size:17px;font-weight:600}
.bdaqb .bq-orghead:hover .bq-orgname{color:var(--bq-accent)}
.bdaqb .bq-orgstats{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.bdaqb .bq-subjname{display:block;font-size:17px;font-weight:600;color:inherit;text-decoration:none;margin-bottom:10px}
.bdaqb .bq-subjname:hover{color:var(--bq-accent)}
.bdaqb .bq-subjacts{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px dashed var(--bq-border)}
.bdaqb .bq-nores{text-align:center;color:var(--bq-muted);padding:26px 0}

@media (max-width:600px){
  .bdaqb .bq-setacts{margin-left:0;width:100%;padding-top:8px}
  .bdaqb .bq-trackTabs a{padding:9px 16px;font-size:13.5px}
}

/* ==========================================================================
   The same light tints on the bank's own card lists, so the section pages
   match the home page rather than reverting to plain white.
   ========================================================================== */
.bdaqb{
  --bqt-1:#fce7f0; --bqt-1b:#f2c6d9;
  --bqt-2:#e3f5ea; --bqt-2b:#bfe4cd;
  --bqt-3:#e4eefb; --bqt-3b:#c3d8f2;
  --bqt-4:#fdf3dc; --bqt-4b:#f0dcae;
  --bqt-5:#efe7fb; --bqt-5b:#d6c8ef;
  --bqt-6:#e0f2f4; --bqt-6b:#bcdfe3;
}
.bdaqb .bq-tile:nth-child(6n+1),
.bdaqb .bq-orgcard:nth-child(6n+1),
.bdaqb .bq-subjcard:nth-child(6n+1){background:var(--bqt-1);border-color:var(--bqt-1b)}
.bdaqb .bq-tile:nth-child(6n+2),
.bdaqb .bq-orgcard:nth-child(6n+2),
.bdaqb .bq-subjcard:nth-child(6n+2){background:var(--bqt-2);border-color:var(--bqt-2b)}
.bdaqb .bq-tile:nth-child(6n+3),
.bdaqb .bq-orgcard:nth-child(6n+3),
.bdaqb .bq-subjcard:nth-child(6n+3){background:var(--bqt-3);border-color:var(--bqt-3b)}
.bdaqb .bq-tile:nth-child(6n+4),
.bdaqb .bq-orgcard:nth-child(6n+4),
.bdaqb .bq-subjcard:nth-child(6n+4){background:var(--bqt-4);border-color:var(--bqt-4b)}
.bdaqb .bq-tile:nth-child(6n+5),
.bdaqb .bq-orgcard:nth-child(6n+5),
.bdaqb .bq-subjcard:nth-child(6n+5){background:var(--bqt-5);border-color:var(--bqt-5b)}
.bdaqb .bq-tile:nth-child(6n+6),
.bdaqb .bq-orgcard:nth-child(6n+6),
.bdaqb .bq-subjcard:nth-child(6n+6){background:var(--bqt-6);border-color:var(--bqt-6b)}

/* keep the chips inside a tinted card legible */
.bdaqb .bq-orgcard .bq-statchip,
.bdaqb .bq-subjcard .bq-statchip{background:rgba(255,255,255,.72)}

/* the dark section keeps its own colours */
.bdaqb-home .bqh-dark .bqh-boardrow{background:transparent}

/* ==========================================================================
   Second layer — class pages, and the two-column variant for the
   admission and job sections
   ========================================================================== */
.bdaqb .bq2-h1{font-size:clamp(24px,3.4vw,32px);text-align:center;margin:6px 0 18px;line-height:1.35}
.bdaqb .bq2-h2{font-size:clamp(19px,2.4vw,23px);margin:26px 0 14px}
.bdaqb .bq2-note{color:var(--bq-muted)}

/* the counted pills under the heading */
.bdaqb .bq2-stats{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin:0 0 30px}
.bdaqb .bq2-stat{position:relative;display:inline-flex;align-items:center;gap:9px;
  background:#fff;border:1px solid var(--bq-border);border-radius:999px;padding:11px 22px;
  font-size:15.5px;color:#000;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.bdaqb .bq2-stat .bq-ic{width:19px;height:19px;color:var(--bq-accent)}
.bdaqb .bq2-dot{position:absolute;top:-3px;right:-3px;width:11px;height:11px;border-radius:50%;
  background:var(--bq-accent);border:2px solid #fff}

/* one block per subject, with the left rule from the drawing */
.bdaqb .bq2-subjects{display:grid;gap:22px}
.bdaqb .bq2-subject{border-left:4px solid #c9cfd6;padding:2px 0 6px 16px}
.bdaqb .bq2-subject h3{margin:0 0 10px;font-size:20px;line-height:1.4}
.bdaqb .bq2-subject h3 a{color:inherit;text-decoration:none}
.bdaqb .bq2-subject h3 a:hover{color:var(--bq-accent)}
.bdaqb .bq2-pills{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:12px}
.bdaqb .bq2-pill{display:inline-flex;align-items:center;gap:7px;background:#fff;
  border:1px solid var(--bq-border);border-radius:999px;padding:7px 16px;font-size:14px;color:#000}
.bdaqb .bq2-pill .bq-ic{width:16px;height:16px;color:var(--bq-muted)}
.bdaqb .bq2-acts{display:flex;gap:11px;flex-wrap:wrap}
.bdaqb .bq2-btn{background:var(--bq-accent);color:#fff;border-radius:999px;padding:10px 26px;
  font-size:15px;font-weight:600;text-decoration:none;box-shadow:0 2px 6px rgba(0,0,0,.12)}
.bdaqb .bq2-btn:hover{filter:brightness(1.08);color:#fff}

/* the admission / job variant: two columns side by side */
.bdaqb .bq2-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:34px;align-items:start}
.bdaqb .bq2-two .bq2-h2{margin-top:0}
.bdaqb .bq2-orglist{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.bdaqb .bq2-orglist a{display:block;border-left:4px solid #c9cfd6;padding:2px 0 4px 16px;
  text-decoration:none;color:inherit}
.bdaqb .bq2-orglist a:hover .bq2-orgname{color:var(--bq-accent)}
.bdaqb .bq2-orgname{display:block;font-size:18px;line-height:1.45}
.bdaqb .bq2-orgmeta{display:block;font-size:12.5px;color:var(--bq-muted);margin-top:3px}

@media (max-width:820px){
  .bdaqb .bq2-two{grid-template-columns:1fr;gap:10px}
}
@media (max-width:560px){
  .bdaqb .bq2-stats{gap:9px}
  .bdaqb .bq2-stat{padding:9px 16px;font-size:14px}
  .bdaqb .bq2-btn{padding:9px 20px;font-size:14px}
  .bdaqb .bq2-pill{font-size:13px;padding:6px 13px}
}

/* ==========================================================================
   প্রশ্ন তৈরি — role chooser, the teacher's two routes, the question picker
   ========================================================================== */
.bdaqb .bq-center{text-align:center}

.bdaqb .bq-rolegrid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin:24px 0}
.bdaqb .bq-role{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;
  background:var(--bq-panel);border:1.5px solid var(--bq-border);border-radius:16px;padding:30px 24px;
  text-decoration:none;color:inherit;transition:border-color .15s,transform .15s}
.bdaqb .bq-role:hover{border-color:var(--bq-accent);transform:translateY(-2px);color:inherit}
.bdaqb .bq-roleicon{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;
  background:var(--bq-accent-soft);color:var(--bq-accent)}
.bdaqb .bq-roleicon .bq-ic{width:28px;height:28px}
.bdaqb .bq-role strong{font-size:19px;line-height:1.45}
.bdaqb .bq-role em{font-style:normal;font-size:14px;line-height:1.7;color:var(--bq-muted)}

.bdaqb .bq-twobtn{display:flex;gap:12px;flex-wrap:wrap;width:100%;margin-top:4px}
.bdaqb .bq-twobtn .bq-btn{flex:1 1 240px;justify-content:center;text-align:center}

.bdaqb .bq-pickrow{display:flex;align-items:flex-start;gap:12px;background:var(--bq-panel);
  border:1px solid var(--bq-border);border-radius:10px;padding:13px 16px;margin-bottom:8px;cursor:pointer}
.bdaqb .bq-pickrow:hover{border-color:var(--bq-accent)}
.bdaqb .bq-pickrow input{margin-top:5px;width:18px;height:18px;flex:0 0 auto;accent-color:var(--bq-accent)}
.bdaqb .bq-pickrow:has(input:checked){border-color:var(--bq-accent);background:var(--bq-accent-soft)}
.bdaqb .bq-pickno{color:var(--bq-accent);font-weight:700;flex:0 0 auto}
.bdaqb .bq-picktext{line-height:1.7}
.bdaqb .bq-picktext em{display:block;font-style:normal;font-size:13px;color:var(--bq-muted);margin-top:4px}
.bdaqb .bq-pickbar{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;
  gap:14px;background:var(--bq-accent);color:#fff;border-radius:12px;padding:13px 20px;margin-top:14px;font-weight:600}
.bdaqb .bq-pickbar .bq-btn{background:rgba(0,0,0,.22);border:0;color:#fff}

@media (max-width:640px){
  .bdaqb .bq-rolegrid{grid-template-columns:1fr}
}
.bdaqb .bq-field.wide{flex:1 1 100%}
.bdaqb .bq-field.wide input:not([type=checkbox]):not([type=radio]){width:100%}

/* multi-select chapter list on the builder */
.bdaqb .bq-field.wide > span em{font-style:normal;color:var(--bq-dim);font-size:13px}
.bdaqb .bq-chapterbox{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px;
  max-height:270px;overflow-y:auto;border:1px solid var(--bq-border);border-radius:10px;padding:12px;
  background:var(--bq-panel-2)}
.bdaqb .bq-chapter{display:flex;align-items:center;gap:9px;background:var(--bq-panel);
  border:1px solid var(--bq-border);border-radius:8px;padding:9px 12px;cursor:pointer;font-size:14.5px}
.bdaqb .bq-chapter:hover{border-color:var(--bq-accent)}
.bdaqb .bq-chapter input{width:18px;height:18px;min-width:0;padding:0;margin:0;flex:0 0 auto;
  accent-color:var(--bq-accent)}
.bdaqb .bq-chapter span{display:inline-block;margin:0;flex:1;min-width:0;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.bdaqb .bq-chapter b{font-size:12px;color:var(--bq-muted);font-weight:600}
.bdaqb .bq-chapter.all{grid-column:1/-1;background:var(--bq-accent-soft);border-color:var(--bq-accent)}
.bdaqb .bq-chapter:has(input:checked){border-color:var(--bq-accent);background:var(--bq-accent-soft)}

/* chapter groups inside the teacher's question picker */
.bdaqb .bq-pickgroup{margin-bottom:22px}
.bdaqb .bq-pickhead{display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  background:var(--bq-panel-2);border:1px solid var(--bq-border);border-left:4px solid var(--bq-accent);
  border-radius:10px;padding:11px 15px;margin-bottom:9px;position:sticky;top:0;z-index:2}
.bdaqb .bq-pickhead h3{margin:0;font-size:17px;flex:1;min-width:0}
.bdaqb .bq-pickall{display:inline-flex;align-items:center;gap:7px;cursor:pointer;font-size:13.5px;
  color:var(--bq-muted);white-space:nowrap}
.bdaqb .bq-pickall input{width:18px;height:18px;min-width:0;padding:0;margin:0;accent-color:var(--bq-accent)}
.bdaqb .bq-pickcount{font-size:12.5px;color:var(--bq-muted);white-space:nowrap}
.bdaqb .bq-pickcount b{color:var(--bq-accent)}

@media (max-width:560px){
  .bdaqb .bq-pickhead{gap:8px;padding:10px 12px}
  .bdaqb .bq-pickhead h3{font-size:15.5px;flex:1 1 100%;order:3}
}

/* ==========================================================================
   Tick boxes are never sized by the text-field rules
   --------------------------------------------------------------------------
   This has gone wrong twice: a rule written for text inputs (min-width, then
   width:100%) outranked the chapter list and stretched every checkbox across
   its row, leaving the chapter name with no width to show in. The attribute
   selector below outranks any .bq-field rule, so a future field rule cannot
   reach these again.
   ========================================================================== */
.bdaqb input[type=checkbox],
.bdaqb input[type=radio]{
  /* An invariant, not a preference: a tick box is 18px. Twice a rule written
     for text fields has outranked the chapter list and stretched these across
     their row, hiding the chapter names. !important is deliberate here — it
     stops a third recurrence regardless of what selector is added later. */
  width:18px!important;
  min-width:18px!important;
  max-width:18px!important;
  height:18px!important;
  padding:0!important;
  margin:0;
  flex:0 0 auto;
  accent-color:var(--bq-accent);
}

/* the chapter picker's own wrapper, no longer a .bq-field */
.bdaqb .bq-chapterfield{flex:1 1 100%;width:100%}
.bdaqb .bq-chapterlabel{display:block;margin-bottom:6px;font-size:13.5px;color:var(--bq-muted)}
.bdaqb .bq-chapterlabel em{font-style:normal;color:var(--bq-dim);font-size:13px}
.bdaqb .bq-chapterbox{max-width:100%;overflow-x:hidden}
.bdaqb .bq-chapter{min-width:0}
.bdaqb .bq-chapter span{display:block;flex:1 1 auto;min-width:0;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;margin:0}
.bdaqb .bq-chapter b{flex:0 0 auto;margin-left:4px}

/* ==========================================================================
   Browse views — the paginated pages behind the three count pills
   ========================================================================== */
.bdaqb .bq2-stat.is-on{background:var(--bq-accent);border-color:var(--bq-accent);color:#fff}
.bdaqb .bq2-stat.is-on .bq-ic{color:#fff}
.bdaqb .bq2-stat.is-on .bq2-dot{background:#fff;border-color:var(--bq-accent)}
.bdaqb a.bq2-stat{text-decoration:none;transition:border-color .15s,transform .15s}
.bdaqb a.bq2-stat:hover{border-color:var(--bq-accent);transform:translateY(-1px)}
.bdaqb a.bq2-pill{text-decoration:none}
.bdaqb a.bq2-pill:hover{border-color:var(--bq-accent);color:var(--bq-accent)}

.bdaqb .bq-browse{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:30px;align-items:start}
.bdaqb .bq-browse-main{min-width:0}
.bdaqb .bq-browse-meta{color:var(--bq-muted);font-size:13.5px;margin:0 0 14px}
.bdaqb .bq-browse-single{display:inline-block;margin-top:10px;font-size:13.5px;font-weight:600;
  color:var(--bq-accent);text-decoration:none}
.bdaqb .bq-browse-single:hover{text-decoration:underline}

.bdaqb .bq-browse-side{position:sticky;top:16px;border-left:1px solid var(--bq-border);padding-left:20px}
.bdaqb .bq-browse-side h2{font-size:14px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--bq-muted);margin:0 0 12px}
.bdaqb .bq-browse-side h3{font-size:15px;margin:16px 0 7px}
.bdaqb .bq-browse-side h3 a{color:inherit;text-decoration:none}
.bdaqb .bq-browse-side h3 a:hover{color:var(--bq-accent)}
.bdaqb .bq-browse-side ul{list-style:none;margin:0;padding:0;display:grid;gap:3px}
.bdaqb .bq-browse-side li a{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:8px;
  font-size:14px;color:var(--bq-muted);text-decoration:none}
.bdaqb .bq-browse-side li a:hover{background:var(--bq-panel-2);color:var(--bq-accent)}
.bdaqb .bq-browse-side li a b{margin-left:auto;font-size:12px;font-weight:600;color:var(--bq-dim)}
.bdaqb .bq-browse-side li.on a{background:var(--bq-accent-soft);color:var(--bq-accent);font-weight:600}

@media (max-width:900px){
  .bdaqb .bq-browse{grid-template-columns:1fr;gap:22px}
  .bdaqb .bq-browse-side{position:static;border-left:0;border-top:1px solid var(--bq-border);
    padding-left:0;padding-top:18px}
  .bdaqb .bq-browse-side ul{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
}

/* ==========================================================================
   Cross-links under a generated question post
   ========================================================================== */
.bdaqb-relwrap{margin-top:34px}
.bdaqb .bdaqb-rel{margin-top:26px;padding-top:20px;border-top:1px solid var(--bq-border)}
.bdaqb .bdaqb-rel h3{font-size:15px;letter-spacing:.02em;margin:0 0 12px;color:var(--bq-text)}

.bdaqb .bdaqb-relchips{display:flex;gap:8px;flex-wrap:wrap}
.bdaqb .bdaqb-relchips a{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--bq-border);
  border-radius:999px;padding:7px 15px;font-size:14px;color:var(--bq-muted);text-decoration:none}
.bdaqb .bdaqb-relchips a:hover{border-color:var(--bq-accent);color:var(--bq-accent)}
.bdaqb .bdaqb-relchips a.on{background:var(--bq-accent);border-color:var(--bq-accent);color:#fff;font-weight:600}
.bdaqb .bdaqb-relchips a b{font-size:12px;font-weight:600;opacity:.75}

.bdaqb .bdaqb-relmore{margin:0;padding-left:22px;columns:2;column-gap:28px}
.bdaqb .bdaqb-relmore li{break-inside:avoid;margin-bottom:7px;line-height:1.6}
.bdaqb .bdaqb-relmore a{color:var(--bq-text);text-decoration:none;font-size:14.5px}
.bdaqb .bdaqb-relmore a:hover{color:var(--bq-accent);text-decoration:underline}
.bdaqb .bdaqb-relall{margin:14px 0 0}
.bdaqb .bdaqb-relall a{color:var(--bq-accent);font-weight:600;font-size:14.5px;text-decoration:none}

@media (max-width:640px){
  .bdaqb .bdaqb-relmore{columns:1}
}
