:root {
  /* Brand Colors */
  --navy: #19226D;
  --blue: #034EA2;
  --orange: #F37021;
  --green: #50B848;
  --emerald: #33B2C1;
  --gray: #E4E5E6;
  
  /* Working Neutrals */
  --ink: #1B1B2A;
  --mute: #6B7280;
  --line: #C7CDD9;
  --light-navy-text: #AEB7E0;
  --slate: #5A6072;
  --white: #FFFFFF;
  --red: #DB132F;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Calibri, Arial, sans-serif;
  color: var(--ink);
  background-color: var(--white);
  font-size: 16px; /* 12pt ≈ 16px */
  line-height: 1.5;
}

button, input {
  font-family: inherit;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* FPT Header Band */
.topbar {
  background-color: var(--navy);
  color: var(--white);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 3px solid var(--orange); /* Accent line/rule */
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-eyebrow {
  font-size: 12px; /* 9pt */
  text-transform: uppercase;
  color: var(--light-navy-text);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand h1 {
  font-size: 24px; /* 18pt */
  font-weight: 700;
  margin: 0;
  color: var(--white);
}

.brand-subtitle {
  font-size: 13px; /* 10pt */
  color: var(--light-navy-text);
  margin-top: 2px;
}

.topbar-badge {
  display: inline-flex;
  background-color: var(--orange);
  color: var(--white);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  flex: 1;
}

.sidebar {
  background-color: var(--white);
  border-right: 1px solid var(--line);
  padding: 24px 20px;
  min-height: calc(100vh - 84px);
}

.sidebar-title {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  padding-left: 4px;
}

.main {
  padding: 36px 40px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

/* Module Buttons */
.module-btn {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background-color: var(--white);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.module-btn:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(25, 34, 109, 0.08);
}

.module-btn.active {
  border-color: var(--navy);
  border-width: 2px;
  padding: 13px; /* Adjust padding for 2px border */
  box-shadow: 0 4px 16px rgba(25, 34, 109, 0.12);
}

.module-btn b {
  display: block;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
}

.module-btn span {
  display: block;
  font-size: 12px;
  color: var(--mute);
  margin-top: 4px;
}

/* Cards & Shells */
.hero {
  background-color: var(--white);
  border-radius: 22px;
  padding: 32px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 32px rgba(25, 34, 109, 0.05); /* Navy shadow */
}

.eyebrow {
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 13px;
}

.hero h2 {
  margin: 12px 0;
  color: var(--navy);
  font-size: 32px;
  font-weight: 700;
}

.hero p {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

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

.card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(25, 34, 109, 0.03);
}

.card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

/* Buttons */
.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background-color: var(--blue);
  color: var(--white);
}

.btn.primary:hover {
  background-color: var(--navy);
}

.btn.primary:disabled {
  background-color: var(--gray);
  color: var(--mute);
  cursor: not-allowed;
}

.btn.secondary {
  background-color: var(--white);
  border: 1.5px solid var(--blue);
  color: var(--blue);
  padding: 10.5px 22.5px; /* Adjust padding for border */
}

.btn.secondary:hover {
  background-color: var(--blue);
  color: var(--white);
}

/* Quiz Shell */
.quiz-shell {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 10px 32px rgba(25, 34, 109, 0.05);
}

.quiz-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.pill {
  display: inline-flex;
  background-color: var(--gray);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pill.active {
  background-color: var(--navy);
  color: var(--white);
}

.pill.danger {
  background-color: var(--red);
  color: var(--white);
}

.timer {
  font-size: 15px;
  color: var(--navy);
  font-weight: 700;
  border: 1.5px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
}

.q-title {
  font-size: 24px;
  color: var(--navy);
  margin: 24px 0;
  font-weight: 700;
  line-height: 1.4;
}

/* Options (No Faded Tints) */
.option {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 12px 0;
  cursor: pointer;
  background-color: var(--white);
  color: var(--ink);
  transition: all 0.2s ease;
}

.option:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(25, 34, 109, 0.05);
}

.option.selected {
  border-color: var(--blue);
  border-width: 2px;
  padding: 15px 19px;
  color: var(--blue);
  font-weight: 700;
}

.option.correct {
  background-color: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.option.wrong {
  background-color: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.radio {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 12px;
}

.option.selected .radio {
  border-color: var(--blue);
  background-color: var(--blue);
  color: var(--white);
}

.option.correct .radio {
  border-color: var(--white);
  background-color: var(--white);
  color: var(--green);
}

.option.wrong .radio {
  border-color: var(--white);
  background-color: var(--white);
  color: var(--red);
}

/* Feedback (Orange caution outline, white fill) */
.feedback {
  margin-top: 20px;
  padding: 18px 24px;
  border: 1.5px solid var(--orange);
  background-color: var(--white);
  border-radius: 14px;
  color: var(--ink);
}

.feedback b {
  color: var(--navy);
  font-size: 16px;
  display: block;
  margin-bottom: 6px;
}

/* Results */
.result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.stat {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(25, 34, 109, 0.03);
}

.stat b {
  font-size: 28px;
  color: var(--blue);
  display: block;
}

.stat span {
  display: block;
  color: var(--mute);
  font-size: 13px;
  margin-top: 4px;
}

/* Progress bar */
.progress {
  height: 8px;
  background-color: var(--gray);
  border-radius: 999px;
  overflow: hidden;
  margin: 20px 0;
}

.progress > div {
  height: 100%;
  background-color: var(--orange);
  transition: width 0.3s ease;
}

/* Footers and Lists */
.small {
  font-size: 12px;
  color: var(--mute);
  margin-top: 20px;
}

.footer-note {
  margin-top: 36px;
  color: var(--mute);
  font-size: 12px;
  line-height: 1.5;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.review-list {
  margin: 20px 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.6;
}

.review-list li {
  margin-bottom: 8px;
}

.category-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 16px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .quiz-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .result-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
