/* ═══════════════════════════════════════════════════════════════
   Scholar Naija — cbt.css
   Interactive Computer-Based Testing Simulation Suite
   Theme: Deep Executive Slate, Electric Sapphire Blue, Modern Metrics
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg-core:       #0F172A; /* Slate 900 */
  --bg-canvas:     #F8FAFC; /* Slate 50 */
  --bg-card:       #FFFFFF;
  
  --text-primary:  #1E293B; /* Slate 800 */
  --text-muted:    #64748B; /* Slate 500 */
  --text-inverse:  #F8FAFC;

  --clr-blue:      #2563EB; /* Sapphire Primary */
  --clr-blue-glow: rgba(37, 99, 235, 0.1);
  --clr-amber:     #D97706; /* Warning Flag */
  --clr-red:       #DC2626; /* Danger Submit */
  --clr-green:     #16A34A; /* Success */

  --border-light:  #E2E8F0;
  --font-sans:     'Inter', system-ui, sans-serif;
  --font-display:  'Space Grotesk', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-pill:   9999px;
  --shadow-sm:     0 4px 6px -1px rgba(0,0,0,0.05);
  --shadow-lg:     0 20px 25px -5px rgba(0,0,0,0.1);
  
  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── BASE STRUCTURAL DECORATION ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }

/* ── HEADER CONFIG ── */
.cbt-header {
  background-color: var(--bg-core);
  color: var(--text-inverse);
  height: 70px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky; top: 0; z-index: 100;
}
.cbt-header__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.cbt-logo {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
}
.cbt-logo span { color: var(--clr-blue); }
.cbt-badge {
  font-family: var(--font-mono); font-size: 0.7rem; background: rgba(255,255,255,0.1);
  padding: 2px 8px; border-radius: var(--radius-pill); margin-left: 8px; vertical-align: middle;
}
.cbt-meta-author { font-size: 0.85rem; color: var(--text-muted); }
.cbt-meta-author span { color: var(--text-inverse); font-weight: 600; }

/* ── MAIN CONTAINER LAYOUT ── */
.cbt-container {
  max-width: 1200px; margin: 40px auto; padding: 0 24px;
  min-height: calc(100vh - 220px);
}
.cbt-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 40px;
}

/* ── AD BANNER WRAPPERS ── */
.cbt-ad-banner { margin-bottom: 32px; background: rgba(0,0,0,0.02); border-radius: var(--radius-md); overflow: hidden; min-height: 90px; }
.cbt-ad-inline { margin-top: 24px; background: rgba(0,0,0,0.01); border-radius: var(--radius-md); min-height: 150px; }

/* ── SETUP FORM PANEL ── */
.cbt-panel-setup__header { text-align: center; margin-bottom: 40px; }
.cbt-panel-setup__header h1 { font-family: var(--font-display); font-size: 2rem; color: var(--bg-core); margin-bottom: 8px; }
.cbt-panel-setup__header p { color: var(--text-muted); }

.cbt-form { max-width: 600px; margin: 0 auto; }
.cbt-form__group { margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.cbt-form__group label { font-size: 0.875rem; font-weight: 600; color: var(--bg-core); text-transform: uppercase; letter-spacing: 0.05em; }
.cbt-control {
  width: 100%; padding: 14px 16px; border: 1px solid var(--border-light);
  border-radius: var(--radius-md); font-family: var(--font-sans); font-size: 1rem;
  background-color: var(--bg-canvas); color: var(--text-primary); transition: var(--transition);
}
.cbt-control:focus { outline: none; border-color: var(--clr-blue); box-shadow: 0 0 0 4px var(--clr-blue-glow); }
.cbt-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── BUTTON STYLINGS ── */
.cbt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: var(--radius-md); font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: var(--transition); border: none; font-family: var(--font-sans);
}
.cbt-btn--primary { background: var(--clr-blue); color: #fff; width: 100%; margin-top: 12px; }
.cbt-btn--primary:hover { background: #1d4ed8; transform: translateY(-1px); }
.cbt-btn--secondary { background: var(--bg-canvas); color: var(--text-primary); border: 1px solid var(--border-light); }
.cbt-btn--secondary:hover { background: var(--border-light); }
.cbt-btn--warning { background: transparent; color: var(--clr-amber); border: 2px solid var(--clr-amber); }
.cbt-btn--warning:hover { background: var(--clr-amber); color: white; }
.cbt-btn--danger { background: var(--clr-red); color: white; }
.cbt-btn--danger:hover { background: #b91c1c; }
.cbt-btn--block { width: 100%; display: flex; }

/* ── INTERACTIVE WORKSPACE GRID ── */
.cbt-workspace { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.cbt-qcard { padding: 32px; position: relative; }
.cbt-qcard__header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-light); padding-bottom: 16px; margin-bottom: 24px; }
.cbt-qcard__index { font-family: var(--font-mono); font-weight: 600; color: var(--text-muted); }
.cbt-qcard__flag-indicator { font-size: 0.85rem; color: var(--clr-amber); font-weight: 700; background: #FEF3C7; padding: 4px 12px; border-radius: var(--radius-pill); }
.cbt-qcard__text { font-size: 1.25rem; font-weight: 500; color: var(--bg-core); margin-bottom: 32px; line-height: 1.6; }

/* Option Cards Custom Config */
.cbt-options { display: flex; flex-direction: column; gap: 14px; }
.cbt-option {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  border: 1px solid var(--border-light); border-radius: var(--radius-md);
  cursor: pointer; transition: var(--transition); background: var(--bg-canvas);
}
.cbt-option:hover { border-color: var(--text-muted); background: #FFF; }
.cbt-option--selected { border-color: var(--clr-blue); background-color: #EFF6FF; box-shadow: 0 0 0 1px var(--clr-blue); }

.cbt-option__prefix {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-mono);
  background: #FFF; color: var(--text-muted); transition: var(--transition);
}
.cbt-option--selected .cbt-option__prefix { background: var(--clr-blue); border-color: var(--clr-blue); color: white; }
.cbt-option__text { font-size: 1.05rem; font-weight: 500; }

.cbt-qcard__footer { display: flex; justify-content: space-between; border-top: 1px solid var(--border-light); margin-top: 32px; padding-top: 24px; }

/* ── SIDEBAR TRACKING GRAPHICS ── */
.cbt-workspace__sidebar { display: flex; flex-direction: column; gap: 24px; }
.cbt-status-card { padding: 24px; text-align: center; }
.cbt-timer__label { display: block; font-size: 0.75rem; text-transform: uppercase; font-weight: 600; letter-spacing: 0.1em; color: var(--text-muted); }
.cbt-timer__clock { font-family: var(--font-mono); font-size: 2.25rem; font-weight: 600; color: var(--bg-core); display: block; margin: 4px 0 12px; }
.cbt-status-meta { display: flex; justify-content: center; gap: 16px; font-size: 0.85rem; border-top: 1px solid var(--border-light); padding-top: 12px; }
.cbt-sm-item { display: flex; align-items: center; gap: 6px; color: var(--text-muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--answered { background-color: var(--clr-blue); }
.dot--flagged { background-color: var(--clr-amber); }

.cbt-nav-card { padding: 24px; }
.cbt-nav-card h3 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 16px; color: var(--bg-core); }
.cbt-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 24px; max-height: 220px; overflow-y: auto; padding-right: 4px; }

/* Grid Navigation Buttons Matrix */
.cbt-grid__btn {
  aspect-ratio: 1; border: 1px solid var(--border-light); background: var(--bg-canvas);
  border-radius: var(--radius-md); font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition);
}
.cbt-grid__btn:hover { border-color: var(--text-primary); }
.cbt-grid__btn--active { border-color: var(--bg-core) !important; box-shadow: inset 0 0 0 2px var(--bg-core); }
.cbt-grid__btn--answered { background-color: var(--clr-blue); color: white; border-color: var(--clr-blue); }
.cbt-grid__btn--flagged { background-color: var(--clr-amber); color: white; border-color: var(--clr-amber); }

/* ── METRICS RESULTS DASHBOARD ── */
.cbt-panel-results { text-align: center; max-width: 700px; margin: 0 auto; }
.cbt-panel-results__header h2 { font-family: var(--font-display); font-size: 1.75rem; margin-bottom: 6px; }
.cbt-panel-results__header p { color: var(--text-muted); margin-bottom: 32px; }
.cbt-metrics-scorebox { display: flex; align-items: center; justify-content: center; gap: 48px; margin-bottom: 40px; flex-wrap: wrap; }

.cbt-radial-score {
  width: 140px; height: 140px; border-radius: 50%; border: 8px solid var(--clr-blue-glow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg-canvas);
}
.cbt-radial-score__value { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; color: var(--clr-blue); line-height: 1; }
.cbt-radial-score__label { font-size: 0.7rem; text-transform: uppercase; font-weight: 600; color: var(--text-muted); margin-top: 4px; }

.cbt-metrics-breakdown { display: flex; flex-direction: column; gap: 10px; min-width: 260px; text-align: left; }
.cbt-mb-row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border-light); padding-bottom: 6px; font-size: 1rem; }
.cbt-mb-row strong { font-family: var(--font-mono); }
.text-success { color: var(--clr-green); }
.text-danger { color: var(--clr-red); }
.cbt-panel-results__actions { margin-top: 32px; }

/* ── FOOTER FRAME WORK ── */
.cbt-footer { text-align: center; padding: 40px 24px; color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid var(--border-light); margin-top: 60px; }
.cbt-footer__branding { font-size: 0.8rem; margin-top: 4px; }
.cbt-footer__branding b { color: gold; }

/* ── RESPONSIVE GRID OVERRIDES ── */
@media (max-width: 900px) {
  .cbt-workspace { grid-template-columns: 1fr; }
  .cbt-workspace__sidebar { order: -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .cbt-status-card { display: flex; flex-direction: column; justify-content: center; }
  .cbt-timer__clock { margin-bottom: 0; }
  .cbt-status-meta { display: none; }
  .cbt-nav-card h3 { display: none; }
  .cbt-grid { grid-template-columns: repeat(10, 1fr); max-height: none; margin-bottom: 12px; }
  .cbt-btn--block { display: inline-flex; }
}
@media (max-width: 600px) {
  .cbt-form__row { grid-template-columns: 1fr; gap: 0; }
  .cbt-workspace__sidebar { grid-template-columns: 1fr; }
  .cbt-grid { grid-template-columns: repeat(5, 1fr); }
  .cbt-metrics-scorebox { flex-direction: column; gap: 24px; }
}

/* Footer */


.cbt-footer{
  background-color: #111827 ;
}

.cbt-footer a {
  text-decoration: none;
  color: #FEF3C7;
  margin: 10px;
  opacity: .8;
  border-radius: 14px;
  padding: 10px 15px;
}

.footer-links :hover{
  opacity: 1;
  background-color: #16A34A;
}

/*  STRATEGY GUIDE DEEP CONTENT EDITORIAL BLOCK */
.cbt-guide-article {
  margin-top: 40px;
  text-align: left;
}

.article-divider {
  border-top: 2px dashed #E2E8F0;
  margin-bottom: 32px;
}

.cbt-guide-article h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0F172A;
}

.cbt-guide-article h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  color: #0284C7;
}

.cbt-guide-article p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 16px;
}

.cbt-guide-article ul {
  margin-left: 20px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #475569;
}

.cbt-guide-article li {
  margin-bottom: 8px;
  line-height: 1.5;
}