:root {
  --ink: #182326;
  --muted: #5d6b70;
  --line: #d9e2e3;
  --paper: #f7faf9;
  --surface: #ffffff;
  --teal: #087d83;
  --deep-teal: #0f4f55;
  --coral: #df765f;
  --yellow: #f2c84b;
  --blue: #356b9a;
  --shadow: 0 18px 50px rgba(24, 35, 38, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(247, 250, 249, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--deep-teal);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--deep-teal);
  border-radius: 8px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  padding: 9px 12px;
  color: var(--muted);
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.nav a.active,
.nav a:hover {
  color: var(--ink);
  background: #eaf2f1;
}

main { overflow: hidden; }

.hero {
  position: relative;
  min-height: min(680px, 78vh);
  display: grid;
  align-items: end;
  background: #123a3f;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 25, 29, 0.82), rgba(8, 25, 29, 0.38) 56%, rgba(8, 25, 29, 0.05));
}

.hero-overlay {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(34px, 8vw, 86px) clamp(18px, 5vw, 64px);
  color: #fff;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow { color: var(--yellow); }

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

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 16px;
  font-size: 24px;
}

h4 {
  margin-bottom: 8px;
  color: var(--deep-teal);
  font-size: 18px;
}

.hero-text {
  max-width: 690px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 22px);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1120px;
  margin: -32px auto 72px;
  padding: 0 18px;
  position: relative;
  z-index: 2;
}

.summary-strip article {
  min-height: 116px;
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-strip article:first-child { border-radius: 8px 0 0 8px; }
.summary-strip article:last-child { border-radius: 0 8px 8px 0; }

.summary-strip span,
.quote-card span,
.subject-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-strip strong {
  display: block;
  font-size: 21px;
  line-height: 1.2;
}

.content-grid,
.two-columns,
.teacher-grid {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
  gap: 24px;
}

.panel,
.quote-card,
.subject-card,
.teacher-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(24, 35, 38, 0.06);
}

.panel { padding: clamp(26px, 5vw, 48px); }
.panel p:last-child, .two-columns p:last-child, .teacher-grid p:last-child { margin-bottom: 0; }

.quote-card {
  padding: 28px;
  border-top: 6px solid var(--yellow);
}

blockquote {
  margin: 0;
  color: var(--deep-teal);
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
}

.project-question {
  padding: clamp(42px, 7vw, 78px) clamp(18px, 5vw, 64px);
  color: #fff;
  background: var(--deep-teal);
}

.project-question h2 {
  max-width: 1050px;
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 58px);
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 72px;
}

.two-columns article {
  padding: clamp(26px, 4vw, 42px);
  border-left: 6px solid var(--coral);
  background: var(--surface);
}

.two-columns article:nth-child(2) { border-color: var(--blue); }

.task-section,
.teacher-materials,
.resources {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto 72px;
}

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

.task-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.task-list li {
  min-height: 230px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.task-list span {
  display: inline-grid;
  width: 40px;
  height: 40px;
  margin-bottom: 34px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 800;
}

.task-list p {
  margin: 0;
  font-weight: 700;
}

.result-band,
.worksheet-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.1fr) auto;
  align-items: center;
  gap: 28px;
  padding: clamp(34px, 6vw, 64px) clamp(18px, 5vw, 64px);
  background: #eaf2f1;
}

.result-list,
.answer-list,
.subject-card ul {
  margin: 0;
  padding-left: 20px;
}

.result-list li,
.answer-list li,
.subject-card li {
  margin: 0 0 10px;
}

.answer-list li {
  margin-bottom: 18px;
}

.button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  color: #fff;
  background: var(--deep-teal);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  font: inherit;
}

.button.secondary {
  color: var(--ink);
  background: var(--yellow);
}

.button.compact {
  margin-top: 8px;
  white-space: normal;
}

.test-title {
  background:
    linear-gradient(135deg, rgba(15, 79, 85, 0.96), rgba(223, 118, 95, 0.88)),
    url("assets/school-ai-navigator.png") center / cover;
}

.quiz-section {
  width: min(920px, calc(100% - 36px));
  margin: 72px auto;
}

.quiz {
  display: grid;
  gap: 18px;
}

.question-card {
  margin: 0;
  padding: clamp(22px, 4vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(24, 35, 38, 0.06);
}

.question-card.correct {
  border-left-color: var(--teal);
  background: #f0faf7;
}

.question-card.incorrect,
.question-card.missed {
  border-left-color: var(--coral);
  background: #fff7f4;
}

.question-card legend {
  width: 100%;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  line-height: 1.25;
}

.question-card legend span {
  display: block;
  margin-bottom: 8px;
  color: var(--coral);
  font-size: 13px;
  text-transform: uppercase;
}

.question-card label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 10px 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.question-card input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--deep-teal);
  flex: 0 0 auto;
}

.question-card label.right-answer {
  border-color: var(--teal);
  background: #e7f6f2;
  font-weight: 800;
}

.question-card label.wrong-answer {
  border-color: var(--coral);
  background: #ffe9e2;
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}

.quiz-result {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  color: var(--deep-teal);
  font-size: 20px;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  margin-top: 2px;
  color: var(--deep-teal);
  font-weight: 800;
  text-decoration-color: rgba(15, 79, 85, 0.35);
  text-underline-offset: 4px;
}

.reference-block {
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf9;
}

.reference-block:last-child {
  margin-bottom: 0;
}

.page-title {
  padding: clamp(46px, 8vw, 92px) clamp(18px, 5vw, 64px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 79, 85, 0.95), rgba(53, 107, 154, 0.92)),
    url("assets/school-ai-navigator.png") center / cover;
}

.page-title h1 { margin-bottom: 18px; }

.page-title p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.subject-grid {
  width: min(1120px, calc(100% - 36px));
  margin: 72px auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.subject-card { padding: 28px; }
.subject-card h2 { font-size: 29px; }

.teacher-grid {
  width: 100%;
  margin-bottom: 0;
}

.teacher-grid article { padding: 28px; }

.worksheet-band {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 72px;
}

.resource-table {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.table-row {
  display: grid;
  grid-template-columns: 0.75fr 1.15fr 1.65fr 1.2fr;
  gap: 1px;
  background: var(--line);
}

.table-row span {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
}

.table-head span {
  color: #fff;
  background: var(--deep-teal);
  font-weight: 800;
}

@media (max-width: 920px) {
  .summary-strip,
  .task-list,
  .subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .summary-strip article:first-child,
  .summary-strip article:last-child { border-radius: 8px; }

  .content-grid,
  .two-columns,
  .teacher-grid,
  .result-band,
  .worksheet-band { grid-template-columns: 1fr; }

  .table-row { grid-template-columns: 1fr 1fr; }
  .button { justify-self: start; }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav { justify-content: flex-start; }
  .hero { min-height: 620px; }
  .hero::after { background: linear-gradient(180deg, rgba(8, 25, 29, 0.28), rgba(8, 25, 29, 0.88)); }

  .summary-strip,
  .task-list,
  .subject-grid { grid-template-columns: 1fr; }

  .summary-strip { margin-bottom: 52px; }
  blockquote { font-size: 21px; }
  .task-list li { min-height: auto; }
  .task-list span { margin-bottom: 18px; }
  .table-row { grid-template-columns: 1fr; }
  .table-head { display: none; }
}
