:root {
  --ink: #17212b;
  --muted: #607080;
  --line: #dfe6ec;
  --paper: #ffffff;
  --soft: #f4f7f8;
  --green: #0f5c4d;
  --green-dark: #0a3f36;
  --gold: #b8892f;
  --gold-soft: #f8efd9;
  --danger: #b42318;
  --success: #0f6b4f;
  --shadow: 0 16px 40px rgba(23, 33, 43, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.topbar-inner,
.footer-inner,
.admin-heading,
.section-heading,
.panel-heading,
.submit-row,
.review-head,
.exam-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.brand-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #050505;
  border: 1px solid rgba(184, 137, 47, 0.45);
}

.brand-logo img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  object-position: center;
}

.brand strong {
  display: block;
  font-size: 1.05rem;
  color: var(--green-dark);
}

.brand small {
  color: var(--muted);
  font-size: 0.8rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.main-nav a,
.admin-tabs a {
  color: #253545;
  padding: 9px 12px;
  border-radius: 6px;
}

.lang-switch {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.98);
  color: #253545;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-switch:hover {
  background: #f7f9fa;
}

.main-nav a:hover,
.admin-tabs a:hover,
.admin-tabs a.active {
  background: #e8f1ee;
  color: var(--green-dark);
}

.hero {
  background:
    linear-gradient(135deg, rgba(15, 92, 77, 0.96), rgba(10, 63, 54, 0.92)),
    linear-gradient(90deg, rgba(184, 137, 47, 0.18), transparent);
  color: #fff;
  padding: 88px 0 72px;
}

.urgent-banner {
  background: #f3f8f7;
  color: #16362f;
  border-top: 1px solid rgba(15, 92, 77, 0.12);
  border-bottom: 1px solid rgba(15, 92, 77, 0.12);
  overflow: hidden;
}

.urgent-banner .container {
  position: relative;
  min-height: 54px;
}

.urgent-banner p {
  margin: 0;
  padding: 14px 0;
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
  animation: urgent-scroll 20s linear infinite;
}

@keyframes urgent-scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 36px;
  align-items: center;
}

.hero-copy h1,
.page-title h1,
.result-header h1,
.admin-heading h1,
.empty-state h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f6d99b;
}

.hero-actions,
.row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 92, 77, 0.18);
}

.hero .btn.primary {
  background: #fff;
  color: var(--green-dark);
}

.btn.secondary {
  background: #fff;
  color: var(--green-dark);
  border-color: var(--line);
}

.hero .btn.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn.full {
  width: 100%;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: 180px;
  height: 180px;
  margin: 0 auto 18px;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
}

.hero-panel strong,
.hero-panel span {
  display: block;
  text-align: center;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.82);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -28px;
}

.stat-box,
.exam-card,
.question-card,
.reference-panel,
.admin-form,
.admin-edit-card,
.table-panel,
.review-card,
.student-panel,
.login-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stat-box {
  padding: 18px;
}

.stat-box span {
  display: block;
  color: var(--green);
  font-size: 1.7rem;
  font-weight: 800;
}

.stat-box strong {
  color: var(--muted);
  font-size: 0.88rem;
}

.section-block,
.admin-page,
.page-title,
.result-header,
.empty-state {
  padding: 60px 0;
}

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

.section-heading h2,
.reference-panel h2,
.admin-form h2,
.table-panel h2 {
  margin: 4px 0;
  font-size: 1.35rem;
}

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

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

.exam-card,
.admin-edit-card {
  padding: 26px;
}

.exam-card-head span {
  color: var(--green);
  font-weight: 800;
}

.exam-card-head small,
.rule-box span {
  color: var(--gold);
  font-weight: 700;
}

.exam-card h3 {
  margin: 20px 0 14px;
  font-size: 1.28rem;
}

.exam-card p,
.page-title p,
.reference-panel p,
.empty-state p {
  color: var(--muted);
}

.meta-list,
.answer-list {
  margin: 18px 0;
  display: grid;
  gap: 10px;
}

.meta-list div,
.answer-list div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

dd {
  margin: 0;
}

.page-title {
  padding-bottom: 18px;
}

.page-title h1,
.result-header h1,
.admin-heading h1,
.empty-state h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.exam-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
  padding-bottom: 48px;
}

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

.exam-form {
  display: grid;
  gap: 16px;
}

.student-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 150px;
  gap: 14px;
  padding: 18px;
}

.question-source {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.source-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.question-legend {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  background: #f7fafb;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.question-legend div {
  display: grid;
  gap: 6px;
}

.question-legend small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.question-copy {
  padding: 20px 20px 0;
}

.question-copy p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
}

.answer-panel {
  padding: 18px 20px 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
}

.answer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.answer-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.field-label {
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.fill-input,
.textarea-input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
  width: 100%;
}

.fill-input {
  min-height: 48px;
}

.textarea-input {
  min-height: 120px;
}

.question-card {
  padding: 0;
  overflow: hidden;
}

.question-card + .question-card {
  margin-top: 18px;
}

.source-image {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dde3e8;
}

.source-image img {
  width: 100%;
  display: block;
}

.source-image figcaption {
  padding: 10px;
  font-size: 0.84rem;
  color: var(--muted);
}

.review-source {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.review-source img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
}

label {
  display: grid;
  gap: 7px;
  color: #2b3a48;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd6dd;
  border-radius: 6px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(15, 92, 77, 0.15);
  border-color: var(--green);
}

.progress-box {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8faf9;
}

.progress-box span {
  color: var(--green);
  font-weight: 800;
}

.progress-box small {
  color: var(--muted);
}

.question-card {
  padding: 0;
  overflow: hidden;
}

.question-card legend {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: #f9fbfb;
  border-bottom: 1px solid var(--line);
}

.question-card legend span {
  color: var(--green);
  font-weight: 800;
}

.question-card legend strong {
  color: var(--gold);
}

.question-card > p {
  margin: 0;
  padding: 18px 18px 10px;
  white-space: normal;
}

.options-list {
  display: grid;
  gap: 10px;
  padding: 12px 18px 18px;
}

.option-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
}

.option-row:hover {
  border-color: rgba(15, 92, 77, 0.35);
}

.option-row:has(input:checked),
.option-row.selected {
  border-color: var(--green);
  background: #ebf7f1;
}

.option-key {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: #775414;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(117, 84, 20, 0.18);
}

.option-text {
  min-height: 44px;
}

.reference-sticky {
  position: sticky;
  top: 96px;
  padding: 20px;
}

.pdf-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 16px 0;
  list-style: none;
}

.pdf-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f7f9fa;
  border: 1px solid var(--line);
  color: var(--green-dark);
  font-weight: 700;
}

.pdf-list.compact {
  display: flex;
  flex-wrap: wrap;
}

.pdf-list.compact a {
  display: inline-flex;
}

.rule-box {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 6px;
  background: var(--gold-soft);
  border: 1px solid #ead7a9;
}

.submit-row {
  justify-content: flex-start;
  margin-top: 8px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.score-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: #fff;
  border: 10px solid var(--green);
  box-shadow: var(--shadow);
}

.score-circle.fail {
  border-color: var(--danger);
}

.score-circle strong,
.score-circle span {
  display: block;
}

.score-circle strong {
  font-size: 2rem;
}

.result-grid {
  display: grid;
  gap: 14px;
  padding-bottom: 16px;
}

.review-card {
  padding: 18px;
  border-inline-start: 5px solid var(--line);
}

.review-card.correct {
  border-inline-start-color: var(--success);
}

.review-card.wrong {
  border-inline-start-color: var(--danger);
}

.review-head span {
  padding: 4px 9px;
  border-radius: 6px;
  background: #f1f4f5;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.review-card.correct .review-head span {
  background: #e6f3ee;
  color: var(--success);
}

.review-card.wrong .review-head span {
  background: #fdebea;
  color: var(--danger);
}

.explanation {
  margin-bottom: 0;
  padding: 12px;
  border-radius: 6px;
  background: #f7f9fa;
  color: #314151;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 20px 0;
}

.login-shell {
  min-height: calc(100vh - 158px);
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.login-card {
  width: min(420px, 100%);
  padding: 28px;
}

.login-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  background: #000;
  border-radius: 8px;
  margin-bottom: 18px;
}

.login-card h1 {
  margin: 4px 0 20px;
}

.login-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 22px;
}

.admin-stats {
  margin-top: 0;
  margin-bottom: 18px;
}

.table-panel {
  overflow: hidden;
}

.panel-heading {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-heading a {
  color: var(--green);
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 13px 16px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #f8faf9;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.exam-admin-list {
  display: grid;
  gap: 16px;
}

.admin-edit-card {
  display: grid;
  gap: 12px;
}

.switch-row {
  display: inline-flex;
  grid-template-columns: unset;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
}

.switch-row input {
  width: auto;
}

.split-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-form {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.inline-filter select {
  min-width: 180px;
}

.row-actions form {
  display: inline;
}

.text-danger {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-weight: 800;
}

.notice {
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.notice-success {
  background: #e6f3ee;
  border-color: #badccc;
  color: var(--success);
}

.notice-error {
  background: #fdebea;
  border-color: #f3b8b2;
  color: var(--danger);
}

.empty-state {
  text-align: center;
}

@media (max-width: 900px) {
  .hero-grid,
  .exam-layout,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .exam-grid,
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .reference-sticky {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .topbar-inner,
  .footer-inner,
  .admin-heading,
  .section-heading,
  .result-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    padding-bottom: 12px;
  }

  .hero {
    padding: 42px 0 44px;
  }

  .exam-grid,
  .stats-row,
  .two-col {
    grid-template-columns: 1fr;
  }

  .stats-row {
    margin-top: 16px;
  }

  .option-row {
    grid-template-columns: auto 34px 1fr;
  }

  .score-circle {
    width: 128px;
    height: 128px;
  }
}

/* Refined academic interface */
.topbar {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(23, 33, 43, 0.06);
}

.topbar-inner {
  min-height: 92px;
}

.brand {
  gap: 16px;
}

.brand-logo {
  width: 82px;
  height: 82px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brand-logo img {
  width: 78px;
  height: 82px;
  object-fit: contain;
}

.brand strong {
  font-size: 1.18rem;
}

.main-nav a {
  border: 1px solid transparent;
}

.main-nav a:hover {
  border-color: #cfe2dc;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  background:
    linear-gradient(135deg, rgba(11, 70, 60, 0.98), rgba(25, 83, 96, 0.96)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 18px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), #e5c06d, var(--green));
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}

.hero-copy {
  max-width: 920px;
}

.hero-copy h1 {
  margin-top: 10px;
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.hero-lead {
  max-width: 860px;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.14rem;
}

.hero-lead.english {
  color: rgba(255, 255, 255, 0.76);
}

.hero-metrics,
.academic-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hero-metrics div,
.academic-strip div {
  border-radius: 8px;
  padding: 20px 22px;
}

.hero-metrics div {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.hero-metrics strong {
  display: block;
  font-size: 1.8rem;
}

.hero-metrics span {
  color: rgba(255, 255, 255, 0.78);
}

.academic-strip {
  margin-top: 60px;
}

.academic-strip div {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.academic-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.academic-strip strong {
  color: var(--green-dark);
}

.exam-card {
  position: relative;
  overflow: hidden;
}

.exam-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(var(--green), var(--gold));
}

.exam-card h3 {
  color: var(--green-dark);
}

.rich-exam-layout {
  grid-template-columns: 440px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 56px;
}

.rich-exam-layout .exam-form {
  grid-column: 2;
}

.source-panel {
  grid-column: 1;
  min-width: 0;
}

.source-sticky {
  position: sticky;
  top: 108px;
  max-height: calc(100vh - 128px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.source-heading {
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.source-heading h2 {
  margin: 3px 0;
  color: var(--green-dark);
  font-size: 1.18rem;
}

.source-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.pdf-page-list {
  overflow: auto;
  padding: 14px;
  background: #eef3f4;
}

.pdf-page-shot {
  margin: 0 0 14px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #d5e0e5;
  background: #fff;
}

.pdf-page-shot figcaption {
  padding: 8px 10px;
  color: var(--muted);
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 800;
}

.pdf-page-shot img {
  width: 100%;
  height: auto;
  background: #fff;
}

.pdf-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.pdf-link-row a,
.source-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf6f3;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.answer-intro {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.answer-intro h2 {
  margin: 4px 0;
  color: var(--green-dark);
}

.answer-intro p {
  margin: 0;
  color: var(--muted);
}

.source-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px 0;
}

.source-chips > span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.question-copy {
  display: grid;
  gap: 10px;
  padding: 18px 18px 10px;
}

.question-copy p {
  margin: 0;
}

.prompt-ar {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.prompt-en {
  color: #3e4e5d;
  direction: ltr;
  text-align: left;
}

.question-card > p {
  padding-top: 0;
}

.option-row {
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.option-row:hover {
  transform: translateY(-1px);
  border-color: #b9d2ca;
}

.explanation p {
  margin: 0 0 8px;
}

.explanation p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .rich-exam-layout {
    grid-template-columns: 1fr;
  }

  .rich-exam-layout .exam-form,
  .source-panel {
    grid-column: auto;
  }

  .source-sticky {
    position: static;
    max-height: 720px;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    min-height: auto;
  }

  .brand-logo {
    width: 68px;
    height: 68px;
  }

  .brand-logo img {
    width: 64px;
    height: 68px;
  }

  .hero {
    padding: 48px 0 44px;
  }

  .hero-metrics,
  .academic-strip {
    grid-template-columns: 1fr;
  }

  .academic-strip {
    margin-top: 16px;
  }
}
