:root {
  --navy: #062f4f;
  --navy-2: #0d4168;
  --gold: #e6d58f;
  --gold-2: #c9aa4a;
  --ink: #122033;
  --muted: #667285;
  --line: #dce4ee;
  --panel: #ffffff;
  --wash: #f4f7fb;
  --success: #0f8a5f;
  --danger: #ba3b3b;
  --shadow: 0 20px 60px rgba(6, 47, 79, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #eef4f8 100%);
}

button,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 14px 28px;
  color: #fff;
  background: var(--navy);
  border-bottom: 5px solid var(--gold);
  box-shadow: 0 10px 30px rgba(6, 47, 79, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 340px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 2px solid rgba(230, 213, 143, 0.72);
  border-radius: 18px;
  background: var(--navy);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.35vw, 2.35rem);
  letter-spacing: 0;
  line-height: 1.02;
}

.brand span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.18rem;
  font-weight: 750;
}

.top-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.top-tabs button,
.translate-control button,
.primary-button,
.secondary-button,
.ghost-button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  font-weight: 850;
}

.top-tabs button {
  padding: 0 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.top-tabs button.active {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
}

.translate-control {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.translate-control select {
  min-height: 44px;
  min-width: 148px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  font-weight: 800;
}

.translate-control button {
  padding: 0 18px;
  color: var(--navy);
  background: var(--gold);
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 18px 56px;
}

.hero {
  position: relative;
  min-height: 310px;
  margin: 0 -18px 28px;
  padding: 42px max(18px, calc((100vw - 1240px) / 2 + 18px)) 48px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6, 47, 79, 0.96), rgba(6, 47, 79, 0.76) 52%, rgba(6, 47, 79, 0.25)),
    url("./assets/repton-dubai-campus.jpg") center/cover;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.4vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.16rem;
  line-height: 1.6;
}

.gateway {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 26px auto 12px;
  max-width: 1060px;
  position: relative;
  z-index: 2;
}

.path-card {
  display: grid;
  align-content: space-between;
  gap: 24px;
  min-height: 300px;
  padding: 34px;
  text-align: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.path-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-2);
  box-shadow: 0 26px 70px rgba(6, 47, 79, 0.2);
}

.path-card.active {
  border-color: var(--gold-2);
  outline: 6px solid rgba(230, 213, 143, 0.28);
}

.path-card strong {
  font-size: clamp(2.35rem, 4.8vw, 4.45rem);
  line-height: 0.98;
}

.path-card span {
  max-width: 430px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.55;
}

.path-card em,
.badge {
  width: max-content;
  max-width: 100%;
  padding: 9px 14px;
  margin: 0 auto;
  border-radius: 999px;
  color: var(--navy);
  background: #f6edbd;
  font-style: normal;
  font-weight: 900;
}

.tool-section {
  margin-top: 28px;
}

.panel,
.question-card,
.textbook-frame,
.filter-bar,
.source-note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(6, 47, 79, 0.08);
}

.panel {
  padding: 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.section-head h2 {
  margin-bottom: 6px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.section-head p,
.muted {
  color: var(--muted);
  line-height: 1.55;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  text-decoration: none;
}

.primary-button {
  color: var(--navy);
  background: var(--gold);
}

.secondary-button {
  color: #fff;
  background: var(--navy);
}

.ghost-button {
  color: var(--navy);
  background: #edf3f8;
  border: 1px solid var(--line);
}

.textbook-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.textbook-frame {
  margin-top: 18px;
  overflow: hidden;
}

.textbook-frame iframe {
  display: block;
  width: 100%;
  height: min(78vh, 900px);
  min-height: 620px;
  border: 0;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  margin-bottom: 18px;
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-bar select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 750;
  text-transform: none;
  letter-spacing: 0;
}

.question-card {
  padding: 22px;
  margin-bottom: 16px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  font-size: 0.78rem;
}

.badge.navy {
  color: #fff;
  background: var(--navy);
}

.badge.blue {
  color: var(--navy);
  background: #e5f0fb;
}

.badge.green {
  color: #07543b;
  background: #ddf6ed;
}

.badge.red {
  color: #8c2525;
  background: #fae4e4;
}

.question-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.24;
}

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

textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  padding: 14px;
  color: var(--ink);
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 12px;
  line-height: 1.5;
}

.option-grid {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.option-grid button {
  min-height: 48px;
  padding: 12px 14px;
  text-align: left;
  color: var(--ink);
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 760;
}

.option-grid button.correct {
  color: #06452f;
  background: #dcf6ec;
  border-color: #83d7b8;
}

.option-grid button.incorrect {
  color: #7d2222;
  background: #fde8e8;
  border-color: #eeadad;
}

.mark-scheme {
  margin-top: 14px;
  padding: 16px;
  color: #17304b;
  background: #fff9df;
  border: 1px solid #eadb92;
  border-radius: 12px;
  line-height: 1.6;
}

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

.mini-question {
  display: grid;
  gap: 10px;
  padding: 16px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.mini-question strong {
  line-height: 1.35;
}

.source-note {
  padding: 16px;
  margin: 18px 0;
  color: var(--muted);
  line-height: 1.55;
}

.coverage-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  margin: 18px 0;
  color: var(--ink);
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.coverage-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.coverage-summary h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.coverage-summary p,
.coverage-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.coverage-pill {
  flex: 0 0 auto;
  padding: 9px 13px;
  color: var(--navy);
  background: #f6edbd;
  border-radius: 999px;
  font-weight: 900;
}

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

.coverage-card {
  display: grid;
  gap: 7px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.coverage-card strong {
  line-height: 1.25;
}

.coverage-card span {
  color: var(--navy);
  font-weight: 900;
}

.coverage-card em {
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  color: var(--navy);
  background: #eef5fb;
  border-radius: 999px;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .brand {
    min-width: 0;
  }

  .brand,
  .top-tabs,
  .translate-control {
    justify-content: center;
  }

  .gateway,
  .bank-grid,
  .filter-bar,
  .coverage-grid {
    grid-template-columns: 1fr;
  }

  .coverage-summary {
    display: grid;
  }

  .gateway {
    max-width: 680px;
    margin-top: 20px;
    gap: 18px;
  }

  .path-card {
    min-height: 260px;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 12px;
  }

  main {
    padding-inline: 12px;
  }

  .hero {
    min-height: 280px;
    padding-top: 34px;
    padding-bottom: 38px;
  }

  .brand {
    gap: 12px;
  }

  .brand-mark {
    width: 68px;
    height: 68px;
    border-radius: 14px;
  }

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

  .brand span {
    font-size: 1rem;
  }

  .top-tabs,
  .translate-control {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .translate-control select {
    min-width: 0;
  }

  .path-card,
  .panel,
  .question-card {
    padding: 22px;
  }

  .path-card {
    min-height: 230px;
    border-radius: 18px;
  }

  .path-card span {
    font-size: 1rem;
  }

  .textbook-frame iframe {
    min-height: 520px;
  }
}
