: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;
}

/* =========================================================
   LIVE RESULTS / SESSION ANALYSIS
   ========================================================= */

.results-page{
  width:min(1180px, 92%);
  margin:0 auto;
  padding:54px 0 80px;
}

.results-hero{
  margin-bottom:30px;
}

.results-hero h1{
  margin:8px 0 8px;
  color:var(--blue-dark);
  font-size:38px;
}

.results-hero p{
  margin:0;
  color:#64748b;
}

.results-message{
  padding:22px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  color:var(--blue-dark);
}

.results-error{
  border-color:#d9aaaa;
  color:#8c2f2f;
}

.results-summary-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:16px;
  margin-bottom:34px;
}

.result-stat-card{
  padding:22px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 28px rgba(7,47,104,.07);
}

.result-stat-card span{
  display:block;
  margin-bottom:8px;
  color:#64748b;
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.result-stat-card strong{
  color:var(--blue-dark);
  font-size:31px;
}

.results-section{
  margin-top:20px;
}

.results-section-heading{
  margin-bottom:18px;
}

.results-section-heading h2{
  margin:0 0 5px;
  color:var(--blue-dark);
}

.results-section-heading p{
  margin:0;
  color:#64748b;
}

.review-card{
  margin-bottom:18px;
  padding:24px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 24px rgba(7,47,104,.05);
}

.review-card.correct{
  border-left:5px solid #2e8b57;
}

.review-card.incorrect{
  border-left:5px solid #b64242;
}

.review-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:15px;
  font-size:12px;
  font-weight:800;
  color:#64748b;
}

.review-badge{
  padding:5px 8px;
  border-radius:999px;
  background:#eef3f8;
}

.review-card h3{
  margin:0 0 12px;
  color:var(--blue-dark);
  line-height:1.45;
}

.review-lead{
  margin:0 0 17px;
  font-weight:700;
  color:#27394d;
}

.review-answer{
  margin:8px 0;
}

.review-answer strong{
  color:var(--blue-dark);
}

.review-explanation{
  margin-top:18px;
  padding-top:17px;
  border-top:1px solid var(--border);
}

.review-explanation h4{
  margin:14px 0 5px;
  color:var(--blue-dark);
}

.review-explanation p{
  margin:0;
  line-height:1.6;
  color:#405268;
}

@media (max-width:800px){
  .results-summary-grid{
    grid-template-columns:repeat(2, 1fr);
  }
}

@media (max-width:500px){
  .results-summary-grid{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   AUTHENTICATION
   ========================================================= */

.auth-header{
  min-height:104px;
}

.auth-page{
  min-height:calc(100vh - 104px);
  padding:70px 20px;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  background:
    radial-gradient(circle at 15% 20%,rgba(18,105,176,.10),transparent 30%),
    radial-gradient(circle at 85% 15%,rgba(214,163,61,.14),transparent 28%),
    var(--background);
}

.auth-card{
  width:100%;
  max-width:480px;
  padding:42px;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:0 18px 48px rgba(7,47,104,.12);
}

.auth-heading{
  margin-bottom:30px;
}

.auth-heading .eyebrow{
  display:block;
  margin-bottom:10px;
  color:var(--gold);
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
}

.auth-heading h1{
  margin:0 0 10px;
  color:var(--blue-dark);
  font-size:32px;
  line-height:1.2;
}

.auth-heading p{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
}

.auth-form{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.form-group{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.form-group label{
  color:var(--blue-dark);
  font-size:14px;
  font-weight:700;
}

.form-group input{
  width:100%;
  min-height:50px;
  padding:12px 14px;
  color:var(--text);
  background:#fff;
  border:1px solid #b9c9da;
  border-radius:10px;
  outline:none;
  font:inherit;
  transition:border-color .2s ease, box-shadow .2s ease;
}

.form-group input:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 4px rgba(18,105,176,.10);
}

.auth-message{
  display:none;
  padding:12px 14px;
  border-radius:9px;
  font-size:14px;
  line-height:1.45;
}

.auth-message.error{
  display:block;
  color:#8a1f2d;
  background:#fff0f2;
  border:1px solid #efc3ca;
}

.auth-message.success{
  display:block;
  color:#17643a;
  background:#eefaf3;
  border:1px solid #b9e2c9;
}

.auth-submit{
  width:100%;
  min-height:52px;
  border-radius:10px;
  cursor:pointer;
  font:inherit;
}

.auth-submit:disabled{
  cursor:wait;
  opacity:.7;
  transform:none;
}

.auth-footer{
  margin-top:26px;
  padding-top:22px;
  border-top:1px solid var(--border);
  text-align:center;
  color:var(--muted);
  font-size:14px;
}

.auth-footer p{
  margin:0;
}

.auth-footer span{
  color:var(--blue-dark);
  font-weight:700;
}

@media (max-width:600px){

  .auth-page{
    padding:38px 16px;
  }

  .auth-card{
    padding:30px 22px;
    border-radius:14px;
  }

  .auth-heading h1{
    font-size:27px;
  }

}

/* =========================================================
   AUTHENTICATED USER MENU
   ========================================================= */

.user-menu{
  position:relative;
}

.user-menu-button{
  display:flex;
  align-items:center;
  gap:7px;
  padding:10px 14px;
  color:var(--blue-dark);
  background:var(--blue-light);
  border:1px solid #c9d9e9;
  border-radius:10px;
  font:inherit;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
  transition:.2s ease;
}

.user-menu-button:hover,
.user-menu-button[aria-expanded="true"]{
  color:var(--blue);
  border-color:var(--blue);
  background:#fff;
}

.user-menu-dropdown{
  display:none;
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width:190px;
  padding:8px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:0 16px 38px rgba(7,47,104,.15);
  z-index:200;
}

.user-menu.open .user-menu-dropdown{
  display:block;
}

.user-menu-dropdown a,
.user-menu-dropdown button{
  display:block;
  width:100%;
  padding:11px 12px;
  color:var(--blue-dark);
  background:transparent;
  border:0;
  border-radius:8px;
  text-align:left;
  text-decoration:none;
  font:inherit;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}

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

#sign-out-button{
  margin-top:4px;
  padding-top:12px;
  border-top:1px solid var(--border);
  border-radius:0 0 8px 8px;
}

@media (max-width:800px){

  header{
    flex-wrap:wrap;
  }

  nav{
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:16px;
  }

}

/* =========================================================
   DOCTORIAM GOLD SIGN IN BUTTON
   ========================================================= */

nav .signin-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:92px;
  padding:10px 18px;
  margin-left:4px;
  border:1px solid #b98420;
  border-radius:10px;
  background:linear-gradient(
    135deg,
    #f7e6a8 0%,
    #d6a33d 28%,
    #f3d77a 50%,
    #c88d22 72%,
    #e8c35e 100%
  );
  color:#5b3a05;
  font-size:13px;
  font-weight:900;
  letter-spacing:.7px;
  text-decoration:none;
  text-shadow:0 1px 0 rgba(255,255,255,.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.65),
    0 4px 12px rgba(164,112,19,.20);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

nav .signin-button:hover{
  color:#442b03;
  transform:translateY(-1px);
  filter:brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.8),
    0 6px 16px rgba(164,112,19,.28);
}

nav .signin-button:active{
  transform:translateY(0);
  box-shadow:
    inset 0 2px 4px rgba(92,58,5,.16),
    0 2px 7px rgba(164,112,19,.18);
}

/* Respect the HTML hidden attribute */
[hidden] {
  display: none !important;
}

/* Password show/hide control */
.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.password-toggle:hover {
  transform: translateY(-50%) scale(1.08);
}

.password-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Login password recovery link */
.forgot-password-link {
  margin-top: -8px;
  margin-bottom: 14px;
  text-align: right;
  font-size: 14px;
}

.forgot-password-link a {
  font-weight: 600;
  text-decoration: none;
}

.forgot-password-link a:hover {
  text-decoration: underline;
}


/* =========================================================
   DOCTORIAM PRACTICE UX V2
   ========================================================= */

.question-difficulty {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 7px;
  border: 1px solid #d7dee7;
  border-radius: 10px;
  background: #f7f9fb;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.answer-choice.eliminated .answer-text {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  opacity: .48;
}

.answer-choice.eliminated .answer-letter {
  opacity: .48;
}

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

.question-nav .nav-result {
  font-weight: 900;
}

.question-nav .nav-result.correct {
  color: #24854a;
}

.question-nav .nav-result.incorrect {
  color: #bd3d3d;
}

.question-nav button.active .nav-result.correct {
  color: #7ee2a0;
}

.question-nav button.active .nav-result.incorrect {
  color: #ff9b9b;
}

/* =========================================================
   DOCTORIAM PRACTICE UX V3
   ========================================================= */

.key-explanation {
  margin: 14px 0 16px;
  padding: 14px 16px;
  border-left: 4px solid #0b4f8a;
  background: #f3f8fd;
  line-height: 1.55;
}

.key-explanation-heading {
  margin-bottom: 7px;
  color: #0b4f8a;
  font-weight: 800;
  font-size: 15px;
}

.key-explanation-body {
  font-size: 14px;
}

.key-explanation-clues {
  margin-top: 9px;
  font-size: 13px;
}

/* Clear visual feedback after submission */
.answer-choice.correct {
  border-color: #239357;
  background: #e5f7ec;
  box-shadow: inset 4px 0 0 #239357;
}

.answer-choice.incorrect {
  border-color: #d34b4b;
  background: #fde8e8;
  box-shadow: inset 4px 0 0 #d34b4b;
}

/* Keep explanations visually attached to their answer */
.answer-choice.correct .inline-choice-explanation,
.answer-choice.correct .inline-learning-objective {
  background: #e5f7ec;
  border-top: 1px solid #b9dfc8;
}

.answer-choice.incorrect .inline-choice-explanation {
  background: #fde8e8;
  border-top: 1px solid #efbcbc;
}

.inline-learning-objective {
  padding: 10px 14px 13px 44px;
  line-height: 1.55;
}

.inline-learning-objective strong {
  display: block;
  margin-bottom: 5px;
  color: #17324d;
}

/* =========================================================
   DoctorIam Question Study Tools
   Highlighter palette + question-only text zoom
   ========================================================= */

.question-card {
  position: relative;
}

.question-study-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: -2px 0 12px auto;
  min-height: 32px;
}

.highlight-tool {
  position: relative;
}

.question-zoom-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-left: 8px;
  border-left: 1px solid #d7dee8;
}

.question-tool-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d7dee8;
  border-radius: 7px;
  background: #fff;
  color: #17324d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background .15s ease,
    border-color .15s ease,
    box-shadow .15s ease;
}

.question-tool-btn:hover {
  background: #f4f8fc;
  border-color: #9fb4ca;
}

.question-tool-btn:focus-visible {
  outline: 2px solid #0b4f8a;
  outline-offset: 2px;
}

.question-aa {
  font-size: 13px;
  font-weight: 700;
}

.highlight-pen {
  font-size: 18px;
  line-height: 1;
}

.highlight-swatch {
  width: 13px;
  height: 5px;
  margin-left: 4px;
  border-radius: 3px;
  background: #ffe36e;
}

.highlight-palette {
  position: absolute;
  z-index: 50;
  top: 38px;
  right: 0;
  display: flex;
  gap: 7px;
  padding: 9px;
  background: #fff;
  border: 1px solid #d7dee8;
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(20, 43, 67, .16);
}

.highlight-palette[hidden] {
  display: none;
}

.highlight-color {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 1px #c9d3df;
}

.highlight-color:hover,
.highlight-color.active {
  box-shadow:
    0 0 0 2px #17324d,
    0 0 0 4px #fff;
}

.highlight-color.yellow { background: #ffe36e; }
.highlight-color.green  { background: #aee8b0; }
.highlight-color.blue   { background: #a9d8ff; }
.highlight-color.pink   { background: #ffc0d8; }
.highlight-color.purple { background: #d7b8ff; }

/* Actual study highlights */
.question-stem mark.doctoriam-highlight {
  padding: 0;
  border-radius: 2px;
  color: inherit;
  cursor: pointer;
}

.question-stem mark.highlight-yellow { background: #ffe36e; }
.question-stem mark.highlight-green  { background: #aee8b0; }
.question-stem mark.highlight-blue   { background: #a9d8ff; }
.question-stem mark.highlight-pink   { background: #ffc0d8; }
.question-stem mark.highlight-purple { background: #d7b8ff; }

@media (max-width: 700px) {
  .question-study-tools {
    flex-wrap: wrap;
  }

  .question-tool-btn {
    min-width: 36px;
    height: 34px;
  }
}



/* =========================================================
   DoctorIam Test Mode / Board Simulation Skin
   ========================================================= */

body.test-mode header,
body.test-mode footer {
  display: none;
}

body.test-mode .exam-workspace {
  min-height: 100vh;
  background: #ffffff;
}

body.test-mode .exam-sidebar {
  width: 126px;
  flex: 0 0 126px;
  background: #f4f4f4;
  border-right: 1px solid #aeb6bf;
}

body.test-mode .exam-sidebar-title {
  background: #ffffff;
  color: #243444;
  border-bottom: 1px solid #bfc6cd;
  padding: 10px 8px;
  text-align: left;
}

body.test-mode .exam-sidebar-title strong {
  font-size: 12px;
}

body.test-mode .exam-sidebar-title span {
  color: #647180;
  font-size: 10px;
}

body.test-mode .question-nav button {
  min-height: 32px;
  text-align: left;
  padding-left: 14px;
  background: #ffffff;
  border-bottom: 1px solid #d4d8dd;
  color: #222;
  font-size: 12px;
}

body.test-mode .question-nav button:nth-child(odd) {
  background: #f7f7f7;
}

body.test-mode .question-nav button.active {
  background: #d9e8f7;
  color: #111;
  border-left: 4px solid #2f5f8f;
}

body.test-mode .question-nav button.marked::before {
  content: "⚑ ";
  color: #b23a3a;
}

body.test-mode .exit-block-btn {
  display: none;
}

body.test-mode .exam-toolbar {
  min-height: 44px;
  padding: 5px 12px;
  background: #eeeeee;
  color: #1f2d3a;
  border-bottom: 1px solid #aeb6bf;
}

body.test-mode .exam-info {
  gap: 10px;
}

body.test-mode #practice-mode {
  font-weight: 800;
}

body.test-mode .exam-tools button {
  border: 1px solid #aab3bc;
  background: #ffffff;
  color: #25384a;
  border-radius: 2px;
}

body.test-mode .exam-tools button:hover,
body.test-mode .exam-tools button.active {
  background: #e6edf5;
  color: #1d3956;
}

body.test-mode #mark-question {
  order: -10;
  background: #fff7d8;
  border-color: #c0a34d;
  color: #4a3b10;
}

body.test-mode .question-area {
  padding: 18px 30px 36px;
}

body.test-mode .question-meta {
  display: none;
}

body.test-mode .question-card {
  max-width: 1080px;
  margin: 0 auto;
}

body.test-mode .question-study-tools {
  margin-bottom: 8px;
}

body.test-mode .question-stem {
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 18px;
}

body.test-mode .answer-choice {
  border-radius: 0;
  border-color: #c9ced4;
}

body.test-mode .answer-choice:hover {
  border-color: #7f97ae;
}

body.test-mode #tutor-feedback,
body.test-mode #key-explanation,
body.test-mode #diagnosis-summary,
body.test-mode #submit-answer {
  display: none !important;
}

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

body.test-mode .exam-footerbar {
  min-height: 48px;
  background: #efefef;
  border-top: 1px solid #aeb6bf;
  grid-template-columns: auto auto 1fr auto;
  gap: 10px;
}

body.test-mode .timer-area {
  font-size: 11px;
}

body.test-mode .timer-area strong {
  color: #111;
  font-size: 17px;
}

body.test-mode #pause-test,
body.test-mode .exam-navigation button,
body.test-mode #end-block {
  border: 1px solid #8c98a4;
  border-radius: 2px;
  background: #ffffff;
  color: #263746;
  padding: 7px 13px;
  font-weight: 700;
  cursor: pointer;
}

body.test-mode #pause-test {
  display: inline-block;
}

body.test-mode #end-block {
  justify-self: end;
  border-color: #8d3d3d;
  color: #8d3d3d;
}

/* Pause overlay */
.test-pause-modal[hidden] {
  display: none;
}

.test-pause-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20, 28, 36, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.test-pause-dialog {
  width: min(460px, 92vw);
  background: #ffffff;
  border: 1px solid #aeb6bf;
  border-radius: 4px;
  padding: 28px;
  text-align: center;
}

.test-pause-dialog h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.test-pause-dialog p {
  margin: 8px 0;
}

.test-pause-note {
  color: #66727e;
  font-size: 13px;
}

#resume-test {
  margin-top: 16px;
  padding: 9px 18px;
  border: 1px solid #6f7d89;
  background: #ffffff;
  color: #25384a;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 900px) {
  body.test-mode .exam-sidebar {
    width: 82px;
    flex-basis: 82px;
  }

  body.test-mode .exam-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  body.test-mode .exam-footerbar {
    grid-template-columns: 1fr auto;
  }
}


/* Test Mode dual timers */
body.test-mode .timer-area {
  display: flex;
  align-items: center;
  gap: 24px;
}

body.test-mode .test-block-timer,
body.test-mode .test-question-timer {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.test-mode .test-question-timer strong {
  color: #111;
  font-size: 17px;
}

body.test-mode .test-question-timer span,
body.test-mode .test-block-timer span {
  white-space: nowrap;
}



/* =========================================================
   DoctorIam Test Mode / Board Simulator Polish V2
   ========================================================= */

body.test-mode .exam-sidebar {
  width: 100px;
  flex-basis: 100px;
  background: #ffffff;
  border-right: 1px solid #9aa7b4;
}

body.test-mode .exam-sidebar-title {
  min-height: 46px;
  padding: 7px 6px;
  background: #ffffff;
  color: #111;
  border-bottom: 1px solid #9aa7b4;
  text-align: center;
}

body.test-mode .exam-sidebar-title strong {
  font-size: 11px;
}

body.test-mode .exam-sidebar-title span {
  color: #536170;
  font-size: 9px;
}

body.test-mode .question-nav button {
  position: relative;
  min-height: 28px;
  padding: 3px 8px 3px 13px;
  background: #ffffff;
  border-bottom: 1px solid #cbd1d7;
  color: #111;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
}

body.test-mode .question-nav button:nth-child(even) {
  background: #e9e9e9;
}

body.test-mode .question-nav button:nth-child(odd) {
  background: #ffffff;
}

body.test-mode .question-nav button.active {
  background: #07517f;
  color: #ffffff;
  border-left: 0;
  font-weight: 700;
}

body.test-mode .question-nav .nav-result.unanswered {
  display: inline-block;
  width: 10px;
  margin-right: 1px;
  color: currentColor;
  font-size: 15px;
  line-height: 1;
  vertical-align: -1px;
}

/* Marked flag appears after the number */
body.test-mode .question-nav button.marked::before {
  content: none;
}

body.test-mode .question-nav button.marked::after {
  content: " ⚑";
  color: #c62828;
  font-size: 12px;
  font-weight: 800;
}

body.test-mode .question-nav button.active.marked::after {
  color: #ffdddd;
}

/* ---------- TOP EXAM BAR ---------- */

body.test-mode .exam-toolbar {
  min-height: 48px;
  padding: 4px 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;

  background: #07517f;
  color: #ffffff;
  border-bottom: 0;
}

body.test-mode .exam-info {
  grid-column: 2;
  justify-self: center;

  display: flex;
  align-items: center;
  gap: 14px;

  color: #ffffff;
  font-size: 13px;
}

body.test-mode #practice-mode {
  color: #ffffff;
  font-weight: 800;
}

body.test-mode .exam-tools {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 5px;
}

body.test-mode .exam-tools button {
  border: 1px solid rgba(255,255,255,.78);
  background: #ffffff;
  color: #082f4c;
  border-radius: 2px;
  padding: 6px 9px;
  font-weight: 700;
}

body.test-mode .exam-tools button:hover,
body.test-mode .exam-tools button.active {
  background: #dfeaf1;
  color: #062d49;
}

body.test-mode #mark-question {
  background: #fff5c7;
  color: #463800;
  border-color: #d2aa24;
}

/* ---------- QUESTION WORKSPACE ---------- */

body.test-mode .exam-main {
  background: #ffffff;
}

body.test-mode .exam-content {
  background: #ffffff;
}

body.test-mode .question-area {
  padding: 22px 30px 40px;
}

body.test-mode .question-card {
  max-width: 1000px;
}

body.test-mode .question-stem {
  color: #111;
  font-size: 16px;
  line-height: 1.55;
}

body.test-mode .answer-choice {
  background: #ffffff;
  border: 1px solid #c4ccd3;
}

body.test-mode .answer-choice.selected {
  border-left: 3px solid #07517f;
  background: #ffffff;
}

/* ---------- BOTTOM EXAM BAR ---------- */

body.test-mode .exam-footerbar {
  min-height: 48px;
  padding: 5px 10px;

  background: #07517f;
  color: #ffffff;
  border-top: 0;

  grid-template-columns: auto auto 1fr auto;
}

body.test-mode .timer-area {
  color: #ffffff;
}

body.test-mode .timer-area strong,
body.test-mode .test-question-timer strong {
  color: #ffffff;
}

body.test-mode #pause-test,
body.test-mode .exam-navigation button {
  background: #ffffff;
  color: #082f4c;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 2px;
}

body.test-mode #pause-test:hover,
body.test-mode .exam-navigation button:hover {
  background: #e3edf3;
}

body.test-mode #end-block {
  background: #ffffff;
  color: #a42323;
  border: 1px solid #ffffff;
  border-radius: 2px;
}

/* Keep footer readable on narrower screens */
@media (max-width: 900px) {
  body.test-mode .exam-sidebar {
    width: 76px;
    flex-basis: 76px;
  }

  body.test-mode .exam-toolbar {
    grid-template-columns: auto 1fr;
  }

  body.test-mode .exam-info {
    grid-column: 1;
    justify-self: start;
  }

  body.test-mode .exam-tools {
    grid-column: 2;
  }
}


/* =========================================================
   DoctorIam Shared Lab Values
   ========================================================= */

.lab-values-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.lab-values-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid #c3ccd6;
  background: #fff;
}

.lab-values-controls input[type="search"] {
  flex: 1;
  min-width: 120px;
  padding: 7px 9px;
  border: 1px solid #9eabb8;
  border-radius: 3px;
  font: inherit;
}

.lab-values-si {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 12px;
}

.lab-values-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 7px 8px 0;
  background: #eef2f7;
  border-bottom: 1px solid #b9c4d0;
}

.lab-values-tabs button {
  padding: 6px 9px;
  border: 1px solid #aeb9c5;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: #fff;
  color: #26394d;
  font-weight: 700;
  cursor: pointer;
}

.lab-values-tabs button.active {
  background: #d9e4f1;
  color: #082f4c;
}

.lab-values-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #eef2f7;
}

.lab-values-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.lab-values-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 7px 8px;
  background: #cfd9e8;
  border-bottom: 1px solid #9eabb8;
  text-align: left;
}

.lab-values-table td {
  padding: 6px 8px;
  vertical-align: top;
  border-bottom: 1px solid #cbd3dc;
}

.lab-values-table td:first-child {
  width: 48%;
  font-weight: 600;
}

.lab-values-group td {
  padding-top: 10px;
  background: #dce4ef;
  color: #142b42;
  font-weight: 800 !important;
}

.lab-values-empty {
  padding: 18px !important;
  text-align: center;
  color: #657485;
}

/* Larger reference drawer */
.exam-content .tool-panel:not([hidden]) {
  width: min(520px, 44vw);
  flex: 0 0 min(520px, 44vw);
  display: flex;
  flex-direction: column;
  background: #eef2f7;
  border-left: 1px solid #9faab6;
}

body.test-mode .tool-panel-header {
  background: #07517f;
  color: #fff;
}

body.test-mode .tool-panel-header button {
  color: #fff;
}

body.test-mode .tool-panel-content {
  padding: 0;
  min-height: 0;
  flex: 1;
}

@media (max-width: 900px) {
  .exam-content .tool-panel:not([hidden]) {
    width: min(420px, 88vw);
    flex-basis: min(420px, 88vw);
  }

  .lab-values-controls {
    align-items: stretch;
    flex-direction: column;
  }
}


/* =========================================================
   DoctorIam Shared Calculator
   ========================================================= */

.doctoriam-calculator[hidden] {
  display: none;
}

.doctoriam-calculator {
  position: fixed;
  right: 18px;
  bottom: 66px;
  z-index: 9500;

  width: 230px;
  padding: 9px;

  background: #d8e0ec;
  border: 1px solid #73859a;
  border-radius: 5px;
  box-shadow: 0 5px 18px rgba(0,0,0,.22);
}

.calculator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: #152c43;
}

.calculator-close {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #718398;
  background: #fff;
  color: #12324f;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.calculator-display {
  box-sizing: border-box;
  width: 100%;
  height: 38px;
  margin-bottom: 8px;
  padding: 5px 8px;

  border: 1px solid #738398;
  background: #fff;
  color: #111;

  text-align: right;
  font: 700 18px/1.2 monospace;
}

.calculator-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.calculator-keys button {
  min-height: 32px;
  padding: 5px 3px;

  border: 1px solid #718398;
  border-radius: 3px;
  background: #fff;
  color: #152c43;

  font-weight: 800;
  cursor: pointer;
}

.calculator-keys button:hover {
  background: #eaf0f6;
}

.calculator-operator {
  background: #dfeafa !important;
}

.calculator-equals {
  grid-column: span 2;
  background: #f6d46b !important;
  color: #332800 !important;
}

/* Keep the floating calculator above the exam footer */
body.test-mode .doctoriam-calculator {
  bottom: 62px;
}

@media (max-width: 600px) {
  .doctoriam-calculator {
    right: 8px;
    bottom: 60px;
    width: min(230px, calc(100vw - 16px));
  }
}


/* =========================================================
   DoctorIam Test Mode — Top Navigation Polish V3
   ========================================================= */

.test-top-nav {
  display: none;
}

body.test-mode .exam-info {
  grid-column: 2;
  justify-self: center;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;

  white-space: nowrap;
}

body.test-mode .exam-question-position {
  display: flex;
  align-items: center;
  gap: 10px;

  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

body.test-mode .test-top-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 88px;
  min-height: 32px;

  padding: 5px 9px;

  border: 1px solid rgba(255,255,255,.8);
  border-radius: 3px;

  background: #fff;
  color: #073b5e;

  font-size: 12px;
  font-weight: 800;

  cursor: pointer;
}

body.test-mode .test-top-nav:hover:not(:disabled) {
  background: #e9f1f6;
}

body.test-mode .test-top-nav:disabled {
  opacity: .45;
  cursor: default;
}

/* Slightly calmer end-block dialog */
body.test-mode .end-block-dialog {
  width: min(540px, calc(100vw - 40px));
}

body.test-mode .end-block-dialog h2 {
  margin-top: 0;
}

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

@media (max-width: 900px) {
  body.test-mode .exam-info {
    gap: 8px;
  }

  body.test-mode .test-top-nav {
    min-width: auto;
    padding: 5px 7px;
  }
}

/* =========================================================
   DoctorIam Qbank Taxonomy Checkbox Layout
   ========================================================= */

.taxonomy-builder-row {
  align-items: start;
}

.taxonomy-builder-row .builder-panel {
  height: 100%;
}

.taxonomy-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 6px 14px;

  max-height: 390px;
  overflow-y: auto;

  padding: 8px 4px 8px 0;
}

.taxonomy-check {
  display: flex;
  align-items: flex-start;
  gap: 7px;

  min-width: 0;
  padding: 4px 2px;

  font-size: 13px;
  line-height: 1.25;
  cursor: pointer;
}

.taxonomy-check input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.taxonomy-check span {
  min-width: 0;
}

.taxonomy-check.taxonomy-all {
  grid-column: 1 / -1;
  font-weight: 800;

  padding-bottom: 8px;
  margin-bottom: 4px;

  border-bottom: 1px solid #d9e1e8;
}

@media (max-width: 900px) {
  .taxonomy-list {
    grid-template-columns: 1fr;
    max-height: none;
  }
}



/* DoctorIam taxonomy All / Deselect All controls */

.taxonomy-actions {
  grid-column: 1 / -1;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 0 0 8px;
  margin-bottom: 4px;

  border-bottom: 1px solid #d9e1e8;
}

.taxonomy-actions .taxonomy-all {
  padding: 4px 2px;
  margin: 0;
  border: 0;
}

.taxonomy-clear {
  padding: 5px 10px;

  border: 1px solid #bccbd8;
  border-radius: 6px;

  background: #fff;
  color: #183a5a;

  font-size: 12px;
  font-weight: 700;

  cursor: pointer;
}

.taxonomy-clear:hover {
  background: #eef4f8;
}



/* ============================================================
   DoctorIam Qbank spacing polish
   - More room in Quiz Options
   - More room in Number of Questions
   ============================================================ */

label:has(input[name="quiz-mode"]) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  line-height: 1.45;
}

label:has(input[name="quiz-mode"]) input[type="radio"] {
  margin-top: 4px;
  flex: 0 0 auto;
}

label:has(input[name="quiz-mode"]) strong,
label:has(input[name="quiz-mode"]) b {
  margin-right: 6px;
}

#name {
  margin-bottom: 14px;
}

#count {
  margin-left: 8px;
  margin-right: 8px;
}

#start {
  display: inline-block;
  margin-top: 16px;
  margin-bottom: 12px;
}

#available {
  margin-left: 4px;
}



/* ============================================================
   DoctorIam Number of Questions panel polish
   ============================================================ */

.builder-panel:has(#count) .builder-content {
  padding-top: 4px;
}

.builder-panel:has(#count) .builder-content > p {
  margin-bottom: 22px;
}

.builder-panel:has(#count) label:has(#name) {
  display: grid;
  grid-template-columns: 90px minmax(240px, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.builder-panel:has(#count) label:has(#count) {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

#name {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  box-sizing: border-box;
}

#count {
  width: 70px;
  min-height: 34px;
  padding: 5px 7px;
  box-sizing: border-box;
}

#start {
  min-width: 150px;
  min-height: 48px;
  margin-top: 4px;
  margin-bottom: 14px;
}

#builder-message,
#message {
  margin-top: 6px;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .builder-panel:has(#count) label:has(#name) {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}


/* DoctorIam Number of Questions final spacing */

.builder-panel:has(#count) label:has(#count) {
  margin-bottom: 24px;
}

#start {
  margin-top: 8px;
  margin-bottom: 4px;
}

#builder-message:empty,
#message:empty {
  display: none;
}

/* DoctorIam START button spacing refinement */

.builder-panel:has(#count) label:has(#count) {
  margin-bottom: 32px;
}

#start {
  margin-top: 10px;
}

/* DoctorIam START button alignment refinement */

.builder-panel:has(#count) .builder-content {
  position: relative;
}

#start {
  display: block;
  margin-top: 18px;
  margin-left: auto;
  margin-right: 0;
}

/* ============================================================
   DoctorIam Number of Questions — real START layout fix
   ============================================================ */

.question-count-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 12px;
}

.count-input-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

#question-count {
  width: 70px;
  min-height: 34px;
  padding: 5px 7px;
  box-sizing: border-box;
}

#start-block {
  justify-self: end;
  min-width: 150px;
  min-height: 50px;

  margin: 2px 0 0;

  font-weight: 800;
  letter-spacing: 1.5px;
}

.block-name-wrap {
  margin-top: 20px;
  margin-bottom: 16px;
}

/* ============================================================
   DoctorIam Question-Specific Notes
   ============================================================ */

.doctoriam-question-notes[hidden] {
  display: none;
}

.doctoriam-question-notes {
  position: fixed;
  right: 18px;
  bottom: 66px;
  z-index: 9600;

  width: min(360px, calc(100vw - 36px));
  padding: 10px;

  background: #dce5f1;
  border: 1px solid #5d7793;
  border-radius: 5px;

  box-shadow: 0 6px 20px rgba(0,0,0,.24);
}

.question-notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 8px;

  color: #12324f;
}

.question-notes-close {
  width: 28px;
  height: 28px;
  padding: 0;

  background: #fff;
  border: 1px solid #66809b;

  color: #12324f;
  font-size: 20px;
  line-height: 1;

  cursor: pointer;
}

.question-notes-text {
  box-sizing: border-box;
  width: 100%;
  min-height: 150px;
  resize: vertical;

  padding: 9px;

  background: #fff;
  border: 1px solid #8293a5;

  color: #111;
  font: inherit;
  line-height: 1.4;
}

.question-notes-status {
  min-height: 18px;
  margin: 5px 0;

  color: #43596f;
  font-size: 12px;
}

.question-notes-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.question-notes-actions button {
  min-height: 34px;
  padding: 6px 10px;

  border: 1px solid #55728f;
  border-radius: 3px;

  background: #fff;
  color: #122f4a;

  font-weight: 700;
  cursor: pointer;
}

.question-notes-save {
  background: #edf5fb !important;
}

.question-notes-delete {
  margin-left: auto;
}

body.test-mode .doctoriam-question-notes {
  bottom: 62px;
}

@media (max-width: 600px) {
  .doctoriam-question-notes {
    right: 8px;
    bottom: 60px;

    width: calc(100vw - 16px);
  }
}



/* ============================================================
   DoctorIam Public Mentor Aion
   ============================================================ */

html {
  scroll-behavior: smooth;
}

.aion-public-section {
  padding: 78px 6%;
  background:
    radial-gradient(circle at 85% 15%,
      rgba(19,104,169,.12), transparent 30%),
    linear-gradient(135deg,#f7fbff 0%,#ffffff 55%,#f5f8fc 100%);
  border-top: 1px solid #dce6ef;
}

.aion-public-inner {
  width: min(1280px,100%);
  margin: 0 auto;

  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(340px,.7fr);
  gap: 54px;
  align-items: center;
}

.aion-public-copy h2 {
  margin: 8px 0 14px;
  color: #06376b;
  font-size: clamp(32px,4vw,52px);
  line-height: 1.05;
}

.aion-lead {
  max-width: 760px;
  margin: 0 0 30px;

  color: #354d66;
  font-size: 18px;
  line-height: 1.65;
}

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

.aion-feature {
  display: flex;
  gap: 12px;

  padding: 16px;

  background: rgba(255,255,255,.88);
  border: 1px solid #dce6ef;
  border-radius: 13px;

  box-shadow: 0 5px 18px rgba(17,52,86,.05);
}

.aion-feature-icon {
  flex: 0 0 34px;

  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border-radius: 9px;

  background: #eef6fc;
  color: #0863a5;

  font-weight: 900;
  font-size: 17px;
}

.aion-feature h3 {
  margin: 0 0 5px;
  color: #07386a;
  font-size: 15px;
}

.aion-feature p {
  margin: 0;
  color: #52667a;
  font-size: 13px;
  line-height: 1.45;
}

.aion-public-actions {
  margin-top: 28px;

  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.aion-public-actions span {
  color: #6a7887;
  font-size: 12px;
}

.aion-demo-card {
  overflow: hidden;

  background: #fff;
  border: 1px solid #cddbe8;
  border-radius: 18px;

  box-shadow: 0 18px 45px rgba(10,55,94,.16);
}

.aion-demo-head {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 18px 20px;

  background: linear-gradient(135deg,#073d70,#0868a8);
  color: #fff;
}

.aion-orb {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: linear-gradient(145deg,#ffe28a,#c99217);
  border: 2px solid rgba(255,255,255,.8);

  color: #07345d;
  font-weight: 900;
}

.aion-demo-head strong,
.aion-demo-head span {
  display: block;
}

.aion-demo-head strong {
  font-size: 18px;
}

.aion-demo-head span {
  margin-top: 2px;
  opacity: .86;
  font-size: 12px;
}

.aion-demo-conversation {
  padding: 22px;

  display: flex;
  flex-direction: column;
  gap: 14px;

  background: #f7fafc;
}

.aion-demo-student,
.aion-demo-aion {
  max-width: 88%;
  padding: 12px 14px;

  border-radius: 12px;

  font-size: 14px;
  line-height: 1.5;
}

.aion-demo-student {
  align-self: flex-end;

  background: #e6edf4;
  color: #263d52;
}

.aion-demo-aion {
  align-self: flex-start;

  background: #fff;
  border: 1px solid #d2e0ec;

  color: #173b5c;
}

.aion-demo-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.aion-demo-options span {
  padding: 6px 9px;

  background: #fff;
  border: 1px solid #b9cede;
  border-radius: 999px;

  color: #07558e;
  font-size: 11px;
  font-weight: 700;
}

.aion-demo-footer {
  padding: 14px 20px;

  border-top: 1px solid #dce5ed;

  color: #627487;
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 950px) {
  .aion-public-inner {
    grid-template-columns: 1fr;
  }

  .aion-demo-card {
    max-width: 620px;
  }
}

@media (max-width: 650px) {
  .aion-public-section {
    padding: 55px 22px;
  }

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



/* DoctorIam public Study Tools menu */

.study-tools-dropdown {
  width: 390px;
  padding: 8px;
}

.study-tools-dropdown .study-tool-menu-item {
  display: block;
  padding: 10px 12px;
  border-radius: 7px;
  white-space: normal;
}

.study-tools-dropdown .study-tool-menu-item:hover {
  background: #f2f7fb;
}

.study-tool-menu-item strong,
.study-tool-menu-item span {
  display: block;
}

.study-tool-menu-item strong {
  color: #07396d;
  margin-bottom: 3px;
  font-size: 13px;
}

.study-tool-menu-item span {
  color: #66798b;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 400;
}


/* ============================================================
   DoctorIam Public Flashcards Section
   ============================================================ */

.flashcards-public-section {
  padding: 76px 7%;
  background: linear-gradient(135deg,#ffffff 0%,#f6f9fc 60%,#edf4fa 100%);
  border-top: 1px solid #dce6ef;
}

.flashcards-public-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: center;
}

.flashcards-eyebrow {
  color: #d79a22;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.flashcards-public-copy h2 {
  margin: 0 0 14px;
  color: #083c73;
  font-size: 38px;
  line-height: 1.15;
}

.flashcards-lead {
  max-width: 760px;
  color: #405d79;
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.flashcards-feature-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.flashcards-feature {
  background: #fff;
  border: 1px solid #d9e4ee;
  border-radius: 12px;
  padding: 17px;
  box-shadow: 0 4px 14px rgba(15,54,92,.04);
}

.flashcards-feature strong,
.flashcards-feature span {
  display: block;
}

.flashcards-feature strong {
  color: #07396d;
  font-size: 14px;
  margin-bottom: 6px;
}

.flashcards-feature span {
  color: #5f7285;
  font-size: 12px;
  line-height: 1.5;
}

.flashcards-gold-button {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 9px;
  background: linear-gradient(180deg,#f8d66d 0%,#d89a22 100%);
  border: 1px solid #be7f12;
  color: #5b3700;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 5px 13px rgba(179,119,12,.22);
}

.flashcards-gold-button:hover {
  transform: translateY(-1px);
}

.flashcards-signin-note {
  display: inline-block;
  margin-left: 14px;
  color: #718294;
  font-size: 12px;
}

.flashcards-public-demo {
  display: flex;
  justify-content: center;
}

.flashcard-demo-stack {
  position: relative;
  width: min(430px,100%);
  height: 330px;
}

.flashcard-demo-card {
  position: absolute;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #d7e2ec;
}

.flashcard-demo-back {
  inset: 28px 10px 0 42px;
  transform: rotate(5deg);
  background: #eaf2f9;
}

.flashcard-demo-middle {
  inset: 15px 25px 12px 20px;
  transform: rotate(-4deg);
  background: #f7fafc;
}

.flashcard-demo-front {
  inset: 0 30px 24px 0;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(17,55,90,.14);
}

.flashcard-demo-label {
  color: #d79a22;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.1px;
  margin-bottom: 22px;
}

.flashcard-demo-question {
  color: #083c73;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.45;
}

.flashcard-demo-divider {
  height: 1px;
  background: #dce5ed;
  margin: 21px 0;
}

.flashcard-demo-answer {
  color: #45617b;
  font-size: 14px;
  line-height: 1.55;
}

.flashcard-demo-tags {
  margin-top: 22px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.flashcard-demo-tags span {
  background: #eef5fb;
  border: 1px solid #d5e4f0;
  color: #21598b;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 900px) {

  .flashcards-public-inner {
    grid-template-columns: 1fr;
  }

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

  .flashcards-public-demo {
    margin-top: 10px;
  }

  .flashcards-signin-note {
    display: block;
    margin: 12px 0 0;
  }
}


/* ============================================================
   DoctorIam public Flashcards visual section
   ============================================================ */

.flashcards-public-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 42px;
  align-items: center;
}

.flashcards-public-visual {
  display: flex;
  justify-content: center;
}

.flashcards-visual-shell {
  width: 100%;
  max-width: 480px;
  padding: 28px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(236,242,250,.95));
  border: 1px solid #d7e0ec;
  box-shadow: 0 20px 50px rgba(18, 53, 96, 0.12);
  position: relative;
}

.flashcards-stat-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #0f4f8c;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.flashcard-stack {
  position: relative;
  min-height: 370px;
}

.promo-card {
  position: absolute;
  width: 100%;
  max-width: 360px;
  min-height: 220px;
  padding: 22px 22px 18px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #d5dfeb;
  box-shadow: 0 16px 30px rgba(22, 44, 77, 0.10);
}

.promo-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.promo-pill,
.promo-difficulty,
.mini-tag,
.mini-deck-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
}

.promo-pill {
  padding: 7px 12px;
  background: #edf4fb;
  color: #0f4f8c;
  font-size: 12px;
}

.promo-difficulty {
  padding: 7px 12px;
  background: #fff4d6;
  color: #8a6300;
  font-size: 12px;
}

.promo-card h3 {
  margin: 0 0 12px;
  color: #0b3568;
  font-size: 28px;
  line-height: 1.15;
}

.promo-card p {
  margin: 0;
  color: #425d7f;
  font-size: 16px;
  line-height: 1.55;
}

.promo-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mini-tag {
  padding: 6px 10px;
  background: #f4f7fb;
  color: #345274;
  font-size: 11px;
}

.promo-card-back {
  top: 14px;
  left: 24px;
  transform: rotate(-7deg);
  opacity: 0.72;
}

.promo-card-middle {
  top: 48px;
  left: 12px;
  transform: rotate(4deg);
  opacity: 0.86;
}

.promo-card-front {
  top: 96px;
  left: 36px;
  border: 2px solid #e0a821;
}

.flashcards-mini-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.mini-deck-chip {
  padding: 9px 14px;
  background: #ffffff;
  color: #0b3568;
  border: 1px solid #d6e0ec;
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(20, 44, 80, 0.06);
}

@media (max-width: 1080px) {
  .flashcards-public-inner {
    grid-template-columns: 1fr;
  }

  .flashcards-public-visual {
    order: 2;
  }

  .flashcards-public-copy {
    order: 1;
  }

  .flashcards-visual-shell {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .flashcards-visual-shell {
    padding: 18px;
  }

  .flashcard-stack {
    min-height: 300px;
  }

  .promo-card {
    max-width: 100%;
    min-height: 190px;
    padding: 18px;
  }

  .promo-card h3 {
    font-size: 22px;
  }

  .promo-card p {
    font-size: 14px;
  }

  .promo-card-back {
    left: 8px;
  }

  .promo-card-middle {
    left: 4px;
  }

  .promo-card-front {
    left: 18px;
  }
}

/* ============================================================
   Homepage marketing emphasis
   Bigger selling points + tighter Today's Study Plan
   ============================================================ */

/* Selling-point bullets */
.hero .trust-list {
  margin-top: 28px;
  gap: 14px 30px;
}

.hero .trust-list > div {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.hero .trust-list .gold-star {
  font-size: 21px;
  margin-right: 7px;
}

/* Compact Today's Study Plan section */
.section .section-heading {
  margin-bottom: 18px;
}

.section .section-heading h2 {
  font-size: 28px;
  margin-bottom: 4px;
}

.section .section-heading p {
  font-size: 14px;
  margin-top: 0;
}

.section > .grid {
  gap: 22px;
}

.section > .grid .card {
  padding: 22px 26px;
  min-height: 0;
}

.section > .grid .card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
}

.section > .grid .card-icon img {
  max-width: 34px;
  max-height: 34px;
}

.section > .grid .card h3 {
  font-size: 19px;
  margin: 0 0 8px;
}

.section > .grid .card .stat {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 8px;
}

.section > .grid .card p {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

/* Reduce vertical footprint of this first homepage section */
.hero + .section {
  padding-top: 38px;
  padding-bottom: 42px;
}

@media (max-width: 800px) {
  .hero .trust-list > div {
    font-size: 16px;
  }

  .hero .trust-list .gold-star {
    font-size: 18px;
  }

  .section > .grid .card {
    padding: 18px 20px;
  }
}


/* Homepage marketing hierarchy polish v2 */

/* Bigger key selling points */
.hero .trust-list > div {
  font-size: 20px;
  font-weight: 800;
}

.hero .trust-list .gold-star {
  font-size: 23px;
  margin-right: 8px;
}

/* Even more compact Today's Study Plan cards */
.hero + .section {
  padding-top: 28px;
  padding-bottom: 30px;
}

.hero + .section .section-heading {
  margin-bottom: 14px;
}

.hero + .section > .grid {
  gap: 18px;
}

.hero + .section > .grid .card {
  padding: 16px 22px;
}

.hero + .section > .grid .card-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}

.hero + .section > .grid .card-icon img {
  max-width: 28px;
  max-height: 28px;
}

.hero + .section > .grid .card h3 {
  font-size: 17px;
  margin-bottom: 5px;
}

.hero + .section > .grid .card .stat {
  font-size: 30px;
  margin-bottom: 5px;
}

.hero + .section > .grid .card p {
  font-size: 12px;
  line-height: 1.3;
}

@media (max-width: 800px) {
  .hero .trust-list > div {
    font-size: 17px;
  }

  .hero .trust-list .gold-star {
    font-size: 20px;
  }
}


/* ============================================================
   DoctorIam Mentor Family spotlight
   ============================================================ */

.aion-public-section {
  position: relative;
  margin: 34px auto;
  width: calc(100% - 56px);
  border: 2px solid #174f86;
  border-top: 5px solid #d9a223;
  border-radius: 24px;
  overflow: hidden;

  background:
    radial-gradient(circle at 88% 12%,
      rgba(28,104,166,.10),
      transparent 34%),
    linear-gradient(135deg,
      #ffffff 0%,
      #fbfdff 58%,
      #eef5fb 100%);

  box-shadow:
    0 18px 44px rgba(10,45,82,.10),
    inset 0 0 0 1px rgba(218,162,35,.12);
}

.aion-public-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,215,105,.95),
    transparent
  );
}

.aion-public-section h2 {
  position: relative;
  display: inline-block;
}

.aion-public-section h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg,#d99c1c,#f4cd68);
}

@media (max-width: 800px) {
  .aion-public-section {
    width: calc(100% - 24px);
    margin: 22px auto;
    border-radius: 18px;
  }
}

/* Mentor heading alignment correction */

.aion-public-kicker,
.aion-public-eyebrow {
  display: block !important;
  width: 100%;
  margin-bottom: 12px !important;
}

.aion-public-section h2 {
  display: block !important;
  width: fit-content;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}

.aion-public-section h2::after {
  margin-top: 9px;
}

.aion-public-lead {
  display: block;
  clear: both;
  margin-top: 0;
}


/* ============================================================
   DoctorIam Your Study Tools premium frame
   Match Meet Your Mentor section
   ============================================================ */

.study-tools-section {
  position: relative;
  margin: 34px auto;
  width: calc(100% - 56px);

  border: 2px solid #174f86;
  border-top: 5px solid #d9a223;
  border-radius: 24px;
  overflow: hidden;

  background:
    radial-gradient(circle at 88% 12%,
      rgba(28,104,166,.08),
      transparent 34%),
    linear-gradient(135deg,
      #ffffff 0%,
      #fbfdff 58%,
      #eef5fb 100%);

  box-shadow:
    0 18px 44px rgba(10,45,82,.08),
    inset 0 0 0 1px rgba(218,162,35,.10);
}

.study-tools-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,215,105,.95),
    transparent
  );
}

@media (max-width: 800px) {
  .study-tools-section {
    width: calc(100% - 24px);
    margin: 22px auto;
    border-radius: 18px;
  }
}


/* Match Mentor frame width to Study Tools frame */

.aion-public-section,
.study-tools-section {
  width: min(1000px, calc(100% - 56px));
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 800px) {
  .aion-public-section,
  .study-tools-section {
    width: calc(100% - 24px);
  }
}


/* Restore roomy matching premium sections */

.aion-public-section,
.study-tools-section {
  width: 90% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 800px) {
  .aion-public-section,
  .study-tools-section {
    width: calc(100% - 24px) !important;
  }
}


/* ============================================================
   DoctorIam mobile navigation
   ============================================================ */

.mobile-menu-button,
.mobile-menu {
  display: none;
}

@media (max-width: 700px) {

  header {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }

  header .logo {
    flex: 1;
  }

  header .logo img {
    width: min(250px, 70vw) !important;
  }

  .mobile-menu-button {
    display: flex;
    width: 48px;
    height: 48px;
    padding: 11px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 1px solid #d6e0eb;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(10,45,82,.08);
  }

  .mobile-menu-button span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 99px;
    background: #07396d;
  }

  .mobile-menu-button.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu-button.open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-button.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .mobile-menu {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    left: 14px;
    right: 14px;
    z-index: 9999;

    padding: 12px;
    background: #fff;
    border: 1px solid #d5e1ec;
    border-top: 4px solid #d9a223;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 16px 35px rgba(8,43,78,.18);
  }

  .mobile-menu.open {
    display: block;
  }

  .mobile-menu a {
    display: block;
    padding: 15px 14px;
    color: #07396d;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid #edf1f5;
  }

  .mobile-menu a:last-child {
    border-bottom: 0;
  }

  .mobile-menu .mobile-signin {
    margin-top: 8px;
    text-align: center;
    color: #5b3700;
    background: linear-gradient(180deg,#f8d66d,#d99d25);
    border: 1px solid #bd8012;
    border-radius: 9px;
  }
}

