:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --ink: #17201d;
  --muted: #5f6965;
  --line: #d9ded6;
  --green: #1f7a66;
  --green-dark: #145f50;
  --gold: #d89b27;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--green-dark);
  font-weight: 700;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.site-header,
.page,
.site-footer {
  padding-left: max(20px, calc((100vw - 1080px) / 2));
  padding-right: max(20px, calc((100vw - 1080px) / 2));
}

.site-header {
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.25rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.page {
  padding-top: 42px;
  padding-bottom: 56px;
}

.site-footer {
  padding-top: 22px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.hero {
  max-width: 780px;
  margin-bottom: 34px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.1;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.course-card,
.content-panel,
.quiz-question {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 12px 30px rgba(23, 32, 29, 0.08);
}

.course-card h2,
.course-card h3 {
  margin-top: 0;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
button:hover {
  background: var(--green-dark);
}

.module-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.module-item {
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

textarea {
  width: 100%;
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  font: inherit;
}

.quiz-question {
  margin-top: 18px;
}

.quiz-question label {
  display: block;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf8;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

@media print {
  .site-header,
  .site-footer,
  .nav-actions,
  button {
    display: none;
  }

  body {
    background: #fff;
  }

  .page {
    padding: 0;
  }
}

.school-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.school-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button-secondary {
  background: #ffffff;
  color: var(--green-dark);
  border: 1px solid var(--line);
}

.button-secondary:hover {
  background: #f1f4ef;
  color: var(--green-dark);
}

.hero-panel {
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #eaf4ef);
  padding: 28px;
  box-shadow: 0 12px 30px rgba(23, 32, 29, 0.08);
  border: 1px solid var(--line);
}

.hero-panel h2 {
  margin-top: 0;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 34px;
}

.intro-strip div {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.intro-strip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green-dark);
}

.intro-strip span {
  color: var(--muted);
}

.course-section {
  margin-top: 10px;
}

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

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

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

.course-card {
  border-radius: 18px;
}

.course-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eef6f2;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

@media (max-width: 800px) {
  .school-hero,
  .intro-strip {
    grid-template-columns: 1fr;
  }
}

.course-card-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  display: block;
}

.course-card {
  overflow: hidden;
}

.course-card-image {
  width: 100% !important;
  max-width: 100% !important;
  height: 195px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  border-radius: 14px;
  margin-bottom: 16px;
}

