:root{
  --blue:#1269b0;
  --blue-dark:#082f68;
  --blue-deep:#061f46;
  --blue-light:#edf5fc;

  --gold:#d6a33d;
  --gold-light:#f4dfad;

  --silver:#d7dee7;
  --silver-light:#f4f6f9;

  --text:#17324f;
  --muted:#66788d;
  --white:#ffffff;
  --background:#f6f8fb;
  --border:#dce5ef;

  --shadow:0 10px 32px rgba(7,47,104,.08);
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:var(--background);
  color:var(--text);
}

/* HEADER */

header{
  min-height:104px;
  padding:12px 5%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:var(--white);
  border-bottom:1px solid var(--border);
  box-shadow:0 2px 12px rgba(7,47,104,.05);
  position:relative;
  z-index:100;
}

.logo img{
  height:80px;
  width:auto;
  display:block;
}

.gold-3d{
  font-size:48px;
  font-weight:900;
  letter-spacing:-0.7px;
  line-height:1.05;
  margin:0 0 12px;
  display:inline-block;

  background:linear-gradient(
    180deg,
    #fff9d8 0%,
    #fff0a0 15%,
    #ffd75a 33%,
    #f5b820 52%,
    #c97a00 70%,
    #8f5200 84%,
    #f8c849 100%
  );

  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;

  -webkit-text-stroke:.5px #f9e18a;

  text-shadow:
    0 1px 0 #fff7c4,
    0 2px 0 #e8b935,
    0 3px 0 #ba7500,
    0 4px 0 #814800,
    1px 1px 0 #fff2a8,
    0 6px 12px rgba(0,0,0,.28);
}
nav{
  display:flex;
  align-items:center;
  gap:30px;
}

nav > a,
.nav-item > a{
  color:var(--blue-dark);
  text-decoration:none;
  font-weight:700;
  font-size:15px;
  transition:.2s ease;
}

nav > a:hover,
.nav-item > a:hover{
  color:var(--gold);
}

/* QBANK DROPDOWN */

.nav-item{
  position:relative;
}

.nav-item::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:12px;
}

.dropdown{
  display:none;
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);
  width:280px;
  padding:10px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:0 16px 38px rgba(7,47,104,.15);
}

.nav-item:hover .dropdown{
  display:block;
}

.dropdown-title{
  display:block;
  padding:10px 12px 5px;
  color:var(--gold);
  font-size:12px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.dropdown a{
  display:block;
  padding:10px 12px;
  border-radius:8px;
  color:var(--blue-dark);
  text-decoration:none;
  font-weight:600;
}

.dropdown a:hover{
  background:var(--blue-light);
  color:var(--blue);
}

.dropdown-divider{
  height:1px;
  background:var(--border);
  margin:8px 4px;
}

/* HERO */

.hero{
  min-height:440px;
  padding:82px 5% 72px;
  background:
    radial-gradient(circle at 80% 20%,rgba(214,163,61,.18),transparent 28%),
    linear-gradient(135deg,#eaf3fc 0%,#ffffff 52%,#faf5e7 100%);
  position:relative;
  overflow:hidden;
}

.hero::after{
  content:"";
  position:absolute;
  right:-130px;
  bottom:-180px;
  width:460px;
  height:460px;
  border-radius:50%;
  border:80px solid rgba(18,105,176,.035);
}

.hero-content{
  max-width:950px;
  position:relative;
  z-index:2;
}

.eyebrow{
  display:inline-block;
  margin-bottom:14px;
  color:var(--gold);
  font-weight:800;
  font-size:13px;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.hero{
  min-height:440px;
  padding:82px 5% 72px;
  display:flex;
  align-items:center;
  position:relative;
  overflow:hidden;

  background:
    linear-gradient(
      90deg,
      rgba(245,249,255,.97) 0%,
      rgba(245,249,255,.94) 34%,
      rgba(245,249,255,.78) 52%,
      rgba(255,255,255,.28) 72%,
      rgba(255,255,255,.05) 100%
    ),
    url('../images/hero-background.png') center center / cover no-repeat;
}

.hero p{
  max-width:620px;
  margin:0 0 32px;
  color:#405873;
  font-size:20px;
  line-height:1.65;
}

.actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.btn{
  display:inline-block;
  padding:15px 24px;
  border-radius:10px;
  text-decoration:none;
  font-weight:800;
  transition:.2s ease;
}

.btn-primary{
  color:#fff;
  background:linear-gradient(135deg,var(--blue-dark),var(--blue));
  border:1px solid var(--blue);
  box-shadow:0 10px 22px rgba(18,105,176,.18);
}

.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(18,105,176,.25);
}

.btn-secondary{
  color:var(--blue-dark);
  background:#fff;
  border:1px solid #abc2db;
}

.btn-secondary:hover{
  color:var(--gold);
  border-color:var(--gold);
}

/* MAIN SECTIONS */

.section{
  max-width:1500px;
  margin:auto;
  padding:52px 5%;
}

.section-heading{
  margin-bottom:24px;
}

.section-heading h2{
  margin:0 0 7px;
  color:var(--blue-dark);
  font-size:32px;
}

.section-heading p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
}

.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}

.card{
  padding:26px;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:17px;
  box-shadow:var(--shadow);
  transition:.2s ease;
}

.card:hover{
  transform:translateY(-3px);
  border-color:#bdd1e6;
  box-shadow:0 16px 36px rgba(7,47,104,.11);
}

.card-icon{
  width:52px;
  height:52px;
  margin-bottom:17px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:var(--blue-light);
  overflow:hidden;
  flex-shrink:0;
}

.card-icon img{
  width:40px !important;
  height:40px !important;
  max-width:40px !important;
  max-height:40px !important;
  object-fit:contain;
  display:block;
}

.card h3{
  margin:0 0 9px;
  color:var(--blue-dark);
  font-size:21px;
}

.card p{
  margin:0;
  color:var(--muted);
  line-height:1.55;
}

.stat{
  margin:5px 0 4px;
  color:var(--blue);
  font-size:34px;
  font-weight:900;
}

/* QBANK SECTION */

.qbank-section{
  background:linear-gradient(135deg,var(--blue-deep),var(--blue-dark));
  color:#fff;
  margin-top:20px;
}

.qbank-inner{
  max-width:1500px;
  margin:auto;
  padding:58px 5%;
}

.qbank-inner h2{
  margin:0 0 8px;
  font-size:34px;
}

.qbank-intro{
  margin:0 0 30px;
  color:#ccdaea;
  font-size:17px;
}

.qbank-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
}

.qbank-family{
  padding:28px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:18px;
  background:rgba(255,255,255,.07);
}

.qbank-family h3{
  margin:0 0 18px;
  color:var(--gold-light);
  font-size:24px;
}

.exam-links{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.exam-link{
  padding:14px 10px;
  border-radius:10px;
  background:#fff;
  color:var(--blue-dark);
  text-align:center;
  text-decoration:none;
  font-weight:800;
}

.exam-link:hover{
  background:var(--gold-light);
}

/* FOOTER */

footer{
  padding:30px 5%;
  background:#041a3a;
  border-top:3px solid var(--gold);
  color:#d8e2ee;
  text-align:center;
  font-size:14px;
}

/* MOBILE */

@media(max-width:900px){

  header{
    min-height:86px;
  }

  .logo img{
    height:62px;
  }

  nav{
    display:none;
  }

  .hero{
    padding:55px 6% 52px;
  }

  .hero h1{
    font-size:42px;
  }

  .hero p{
    font-size:18px;
  }

  .section{
    padding:42px 6%;
  }

  .grid{
    grid-template-columns:1fr;
  }

  .qbank-grid{
    grid-template-columns:1fr;
  }

  .exam-links{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   DOCTORIAM QBANK BUILDER
   ========================================================= */

.qbank-builder {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 28px 70px;
}

.qbank-builder .builder-header {
  margin-bottom: 34px;
  text-align: center;
}

.qbank-builder .builder-header .eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #c99522;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
}

.qbank-builder .builder-header h1 {
  margin: 0 0 12px;
  color: #062650;
  font-size: 38px;
  line-height: 1.15;
}

.qbank-builder .builder-header p {
  max-width: 700px;
  margin: 0 auto;
  color: #5c6b7c;
  font-size: 16px;
  line-height: 1.7;
}


/* Main builder cards */

.qbank-builder .builder-panel {
  position: relative;
  display: flex;
  gap: 24px;
  margin-bottom: 22px;
  padding: 28px 30px;
  background: #ffffff;
  border: 1px solid #dce4ee;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(5, 35, 75, 0.07);
}

.qbank-builder .builder-step {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #062650;
  border: 3px solid #d6a437;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(6, 38, 80, 0.18);
}

.qbank-builder .builder-content {
  flex: 1;
  min-width: 0;
}

.qbank-builder .builder-content h2 {
  margin: 2px 0 7px;
  color: #062650;
  font-size: 23px;
}

.qbank-builder .builder-content > p {
  margin: 0 0 20px;
  color: #657386;
  font-size: 14px;
  line-height: 1.6;
}


/* Exam selection */

.qbank-builder .exam-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.qbank-builder .exam-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px 22px;
  text-align: left;
  background: #f8fafc;
  border: 2px solid #d9e1eb;
  border-radius: 12px;
  color: #173554;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qbank-builder .exam-card strong {
  color: #062650;
  font-size: 17px;
}

.qbank-builder .exam-card span {
  color: #6a7787;
  font-size: 13px;
  line-height: 1.45;
}

.qbank-builder .exam-card:hover {
  transform: translateY(-2px);
  border-color: #d6a437;
  box-shadow: 0 6px 16px rgba(6, 38, 80, 0.10);
}

.qbank-builder .exam-card.active {
  background: #f7fbff;
  border-color: #d6a437;
  box-shadow: inset 4px 0 0 #062650;
}


/* Question status */

.qbank-builder .status-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.qbank-builder .status-card {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 16px;
  text-align: left;
  background: #f8fafc;
  border: 2px solid #dce4ed;
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qbank-builder .status-card strong {
  color: #062650;
  font-size: 15px;
}

.qbank-builder .status-card span {
  color: #6a7787;
  font-size: 12px;
  line-height: 1.4;
}

.qbank-builder .status-card:hover {
  border-color: #d6a437;
  transform: translateY(-2px);
}

.qbank-builder .status-card.active {
  background: #062650;
  border-color: #d6a437;
}

.qbank-builder .status-card.active strong,
.qbank-builder .status-card.active span {
  color: #ffffff;
}


/* Systems / subjects */

.qbank-builder .system-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.qbank-builder .system-chip {
  padding: 10px 16px;
  background: #f8fafc;
  border: 1px solid #cfd9e5;
  border-radius: 999px;
  color: #173554;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qbank-builder .system-chip:hover {
  border-color: #d6a437;
  background: #fffaf0;
}

.qbank-builder .system-chip.active {
  background: #062650;
  border-color: #d6a437;
  color: #ffffff;
}


/* Mobile */

@media (max-width: 800px) {

  .qbank-builder {
    padding: 32px 16px 50px;
  }

  .qbank-builder .builder-header h1 {
    font-size: 31px;
  }

  .qbank-builder .builder-panel {
    padding: 22px 18px;
    gap: 16px;
  }

  .qbank-builder .exam-options {
    grid-template-columns: 1fr;
  }

  .qbank-builder .status-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {

  .qbank-builder .builder-panel {
    display: block;
  }

  .qbank-builder .builder-step {
    margin-bottom: 16px;
  }

  .qbank-builder .status-options {
    grid-template-columns: 1fr;
  }
}
/* Compact two-column Qbank steps */
.qbank-builder .builder-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.qbank-builder .builder-two-column .builder-panel {
  margin-bottom: 0;
  padding: 20px 22px;
}

.qbank-builder .compact-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
}

.qbank-builder .compact-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.qbank-builder .compact-checks input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #062b59;
  cursor: pointer;
}

@media (max-width: 760px) {
  .qbank-builder .builder-two-column {
    grid-template-columns: 1fr;
  }
}
.qbank-builder .quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.qbank-builder .quiz-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
}

.qbank-builder .quiz-toggle input {
  margin: 0;
  flex: 0 0 auto;
}

.qbank-builder .quiz-toggle span {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.qbank-builder .quiz-toggle small {
  font-size: 12px;
  font-weight: 400;
}
/* DoctorIam START button */
.qbank-builder .start-block-btn {
  min-width: 150px;
  padding: 12px 30px;
  border: 2px solid #d89b18;
  border-radius: 10px;
  background: linear-gradient(135deg, #f7d36a 0%, #d99a18 48%, #f4c84e 100%);
  color: #062b59;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(6, 43, 89, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.qbank-builder .start-block-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(6, 43, 89, 0.25);
}

.qbank-builder .start-block-btn:active {
  transform: translateY(0);
}
/* Qbank Block Name */
.qbank-builder .block-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 8px;
}

.qbank-builder .block-name-wrap label {
  font-weight: 600;
  white-space: nowrap;
}

.qbank-builder #block-name {
  width: 100%;
  max-width: 300px;
  padding: 7px 9px;
  border: 1px solid #b9c9dc;
  border-radius: 6px;
  font: inherit;
}

/* =========================================================
   DoctorIam Practice / Exam Interface
   ========================================================= */

.exam-workspace {
  display: flex;
  min-height: calc(100vh - 145px);
  background: #eef2f6;
  color: #172536;
}

/* LEFT QUESTION NAVIGATOR */

.exam-sidebar {
  width: 92px;
  flex: 0 0 92px;
  background: #f7f8fa;
  border-right: 1px solid #b9c5d2;
  display: flex;
  flex-direction: column;
}

.exam-sidebar-title {
  padding: 10px 7px;
  background: #062b59;
  color: #fff;
  text-align: center;
  font-size: 11px;
  line-height: 1.3;
}

.exam-sidebar-title strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exam-sidebar-title span {
  display: block;
  margin-top: 4px;
  opacity: 0.85;
  font-size: 10px;
}

.question-nav {
  flex: 1;
  overflow-y: auto;
}

.question-nav button {
  display: block;
  width: 100%;
  min-height: 34px;
  border: 0;
  border-bottom: 1px solid #d8dee6;
  background: #fff;
  color: #26384d;
  font-weight: 700;
  cursor: pointer;
}

.question-nav button:nth-child(odd) {
  background: #edf0f3;
}

.question-nav button.active {
  background: #0b4f8a;
  color: #fff;
}

.question-nav button.marked::before {
  content: "★ ";
  color: #d89b18;
}

.exit-block-btn {
  margin: 8px;
  padding: 8px 4px;
  border: 1px solid #aab6c4;
  border-radius: 5px;
  background: #fff;
  color: #27394d;
  font-weight: 700;
  cursor: pointer;
}

/* MAIN EXAM AREA */

.exam-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.exam-toolbar {
  min-height: 48px;
  padding: 6px 14px;
  background: linear-gradient(180deg, #0b4f8a 0%, #073c70 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 3px solid #d8a325;
}

.exam-info {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  font-size: 13px;
}

.exam-tools {
  display: flex;
  align-items: center;
  gap: 5px;
}

.exam-tools button {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.exam-tools button:hover,
.exam-tools button.active {
  background: #fff;
  color: #073c70;
}

.exam-content {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.question-area {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 20px 28px 40px;
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 15px;
  color: #66788b;
  font-size: 12px;
  font-weight: 700;
}

.question-card {
  max-width: 1000px;
  margin: 0 auto;
}

.question-stem {
  font-size: 17px;
  line-height: 1.65;
  color: #172536;
  margin-bottom: 22px;
  user-select: text;
}

/* ANSWER CHOICES */

.answer-choices {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.answer-choice {
  position: relative;
  border: 1px solid #d4dce5;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.answer-choice:hover {
  border-color: #8aa9c8;
}

.answer-choice-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  cursor: pointer;
}

.answer-choice input[type="radio"] {
  margin-top: 4px;
  accent-color: #0b4f8a;
}

.answer-letter {
  min-width: 20px;
  font-weight: 800;
  color: #0b4f8a;
}

.answer-text {
  flex: 1;
  line-height: 1.5;
}

.answer-choice.eliminated .answer-text {
  text-decoration: line-through;
  opacity: 0.48;
}

.answer-choice.eliminated {
  background: #f6f7f8;
}

.eliminate-choice {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #8794a3;
  font-size: 16px;
  cursor: pointer;
}

.answer-choice.selected {
  border-color: #0b4f8a;
  box-shadow: inset 3px 0 0 #0b4f8a;
}

.answer-choice.correct {
  border-color: #24854a;
  background: #f1fbf5;
}

.answer-choice.incorrect {
  border-color: #bd3d3d;
  background: #fff5f5;
}

/* TUTOR EXPLANATIONS */

.choice-explanation {
  padding: 10px 14px 12px 44px;
  border-top: 1px solid #dfe5eb;
  background: #f8fafc;
  font-size: 14px;
  line-height: 1.55;
}

.tutor-feedback {
  margin-top: 18px;
}

.diagnosis-summary {
  padding: 14px 16px;
  border-left: 4px solid #d8a325;
  background: #fff9e8;
  line-height: 1.55;
}

.learning-point {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 4px solid #0b4f8a;
  background: #eef6ff;
  line-height: 1.55;
}

#toggle-all-explanations {
  margin-top: 12px;
  border: 1px solid #0b4f8a;
  border-radius: 5px;
  background: #fff;
  color: #0b4f8a;
  padding: 8px 13px;
  font-weight: 800;
  cursor: pointer;
}

/* QUESTION CONTROLS */

.question-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.question-controls button {
  padding: 9px 18px;
  border: 1px solid #9cabb9;
  border-radius: 5px;
  background: #fff;
  color: #23364a;
  font-weight: 800;
  cursor: pointer;
}

.question-controls .submit-answer-btn {
  border-color: #d89b18;
  background: linear-gradient(135deg, #f7d36a, #d99a18);
  color: #062b59;
}

/* RIGHT TOOL PANEL */

.tool-panel {
  width: 360px;
  flex: 0 0 360px;
  border-left: 1px solid #b9c5d2;
  background: #f7f9fb;
  overflow-y: auto;
}

.tool-panel-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 12px;
  background: #e5e9ee;
  border-bottom: 1px solid #c5ced8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-panel-header button {
  border: 0;
  background: transparent;
  color: #29425c;
  font-weight: 800;
  cursor: pointer;
}

.tool-panel-content {
  padding: 14px;
}

/* BOTTOM EXAM BAR */

.exam-footerbar {
  min-height: 52px;
  padding: 6px 12px;
  background: #e7ebef;
  border-top: 1px solid #b8c2cd;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.timer-area {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}

.timer-area strong {
  font-size: 18px;
  color: #073c70;
}

.exam-navigation {
  display: flex;
  gap: 7px;
}

.exam-navigation button,
#end-block {
  border: 1px solid #9aa8b7;
  border-radius: 4px;
  background: #fff;
  color: #27394d;
  padding: 7px 13px;
  font-weight: 800;
  cursor: pointer;
}

#end-block {
  justify-self: end;
  border-color: #8c2f2f;
  color: #8c2f2f;
}

/* Highlight used by question-text highlighting */
.study-highlight {
  background: #fff29a;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .exam-sidebar {
    width: 66px;
    flex-basis: 66px;
  }

  .exam-tools {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .tool-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 20;
    width: min(360px, 90vw);
  }

  .question-area {
    padding: 16px;
  }
}

/* ---------- End Block Modal ---------- */

.end-block-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 24, 50, 0.62);
}

.end-block-modal[hidden] {
  display: none;
}

.end-block-dialog {
  width: min(520px, 100%);
  padding: 30px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.end-block-dialog h2 {
  margin: 0 0 12px;
  color: #062b59;
  font-size: 1.55rem;
}

.end-block-dialog p {
  margin: 0 0 24px;
  color: #475569;
  line-height: 1.6;
}

.end-block-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.end-block-actions button {
  padding: 11px 17px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

#cancel-end-block {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
}

#review-unanswered {
  border: 1px solid #0b5cab;
  background: #0b5cab;
  color: #ffffff;
}

#confirm-end-block {
  border: 1px solid #d89b18;
  background: #f2bd3f;
  color: #062b59;
}

.exam-navigation button:disabled {
  background: #e9edf1;
  color: #8a96a3;
  border-color: #c7d0d9;
  cursor: not-allowed;
  opacity: 0.75;
}

/* HERO MARKETING TRUST STRIP */

.trust-strip{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 11px;
  margin-top:20px;
  margin-bottom:6px;
  color:var(--blue-dark);
  font-size:13px;
  font-weight:700;
  line-height:1.5;
}

.gold-star{
  display:inline-block;
  font-size:16px;
  font-weight:900;

  background:linear-gradient(
    180deg,
    #fff4b0 0%,
    #f8d45d 20%,
    #d79a16 45%,
    #fff1a0 66%,
    #b77700 100%
  );

  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;

  filter:drop-shadow(0 1px 0 #875500)
         drop-shadow(0 2px 1px rgba(70,45,0,.22));
}

.trust-list{
  margin-top:16px;
  margin-bottom:8px;
  display:grid;
  grid-template-columns:repeat(2, max-content);
  gap:7px 26px;
  color:var(--blue-dark);
  font-size:13px;
  font-weight:700;
  line-height:1.45;
}

.trust-list > div{
  display:flex;
  align-items:center;
  gap:7px;
}

.trust-list{
  margin-top:10px;
  margin-bottom:18px;
}
