:root {
  --ink: #1d2528;
  --muted: #5c686b;
  --line: #d9e3df;
  --paper: #fbfcfa;
  --soft: #eef5f1;
  --green: #167a5a;
  --green-dark: #0d4f3a;
  --coral: #d85f4b;
  --gold: #d09b2c;
  --blue: #2f6f9f;
  --shadow: 0 22px 60px rgba(22, 62, 54, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(251, 252, 250, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a:focus {
  color: var(--green-dark);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 72px);
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 36, 33, 0.9), rgba(8, 36, 33, 0.55), rgba(8, 36, 33, 0.15)),
    url("assets/hero-svt.png") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 120px;
  background: linear-gradient(0deg, var(--paper), rgba(251, 252, 250, 0));
}

.hero-content {
  width: min(760px, 90vw);
  padding: 12vh 5vw 18vh;
  color: #fff;
}

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

.hero .eyebrow {
  color: #f4ba6f;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.hero-content p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
}

.button.primary {
  background: var(--green);
  color: #fff;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.button.small {
  width: 100%;
  background: var(--green-dark);
  color: #fff;
}

.button.danger {
  border-color: #e5b3aa;
  background: #fff3f0;
  color: #8b2e20;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.intro-band article {
  display: grid;
  gap: 6px;
  min-height: 118px;
  align-content: center;
  padding: 26px 5vw;
  border-right: 1px solid var(--line);
}

.intro-band article:last-child {
  border-right: 0;
}

.intro-band strong {
  color: var(--green-dark);
  font-size: 1.45rem;
}

.intro-band span,
.section-heading,
.session-card p,
.contact-section p,
.resource-card p,
.quiz-feedback,
.hotspot-info p {
  color: var(--muted);
}

.section,
.interactive-section,
.contact-section {
  padding: 86px 5vw;
}

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

.level-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.level-tab {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.level-tab.active {
  background: var(--green);
  color: #fff;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.resource-card,
.quiz-panel,
.hotspot-info,
.session-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 52, 47, 0.07);
}

.resource-card {
  overflow: hidden;
}

.resource-thumb {
  height: 170px;
  background: var(--soft) center / cover;
}

.resource-body {
  padding: 20px;
}

.resource-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--green-dark);
  font-weight: 800;
}

.resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--soft);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.interactive-section {
  background: var(--soft);
}

.interactive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 22px;
  align-items: stretch;
}

.activity-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.46fr);
  gap: 18px;
}

.activity-visual {
  position: relative;
  min-height: 430px;
  border: 1px solid rgba(13, 79, 58, 0.25);
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(84, 168, 123, 0.22) 0 40%, transparent 41%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.84) 0 54%, rgba(113, 174, 123, 0.48) 55% 69%, transparent 70%),
    linear-gradient(135deg, #f7fbf8, #dcece0);
  box-shadow: var(--shadow);
}

.activity-visual::before {
  content: "";
  position: absolute;
  inset: 16%;
  border: 4px solid rgba(13, 79, 58, 0.22);
  border-radius: 48% 52% 45% 55%;
}

.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 18px rgba(18, 51, 51, 0.22);
}

.hotspot.active {
  background: var(--coral);
}

.hotspot-info {
  padding: 22px;
}

.quiz-panel {
  padding: 24px;
}

.answers {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.answers button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  padding: 0 14px;
}

.answers button.correct {
  border-color: var(--green);
  background: #e9f7ef;
  color: var(--green-dark);
}

.answers button.wrong {
  border-color: var(--coral);
  background: #fff0ed;
  color: #8b2e20;
}

.quiz-feedback {
  min-height: 28px;
  margin: 16px 0 0;
  font-weight: 800;
}

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

.session-card {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.session-card time {
  color: var(--coral);
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 34px;
  align-items: start;
  background: #102e2b;
  color: #fff;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
}

.footer {
  padding: 24px 5vw;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: #102e2b;
  color: rgba(255, 255, 255, 0.72);
}

.footer p {
  margin: 0;
}

.admin-page {
  padding: 72px 5vw 96px;
}

.admin-intro {
  max-width: 820px;
  margin-bottom: 34px;
}

.admin-intro h1 {
  color: var(--green-dark);
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.admin-intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
}

.admin-form,
.admin-list-panel,
.admin-course {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 52, 47, 0.07);
}

.admin-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
}

.admin-feedback {
  min-height: 24px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 800;
}

.admin-list-panel {
  padding: 24px;
}

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

.admin-list-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

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

.admin-course {
  display: grid;
  gap: 10px;
  padding: 18px;
  box-shadow: none;
}

.admin-course p,
.empty-state {
  margin-bottom: 0;
  color: var(--muted);
}

.remove-course {
  justify-self: start;
  min-height: 36px;
  border: 1px solid #e5b3aa;
  border-radius: 8px;
  background: #fff3f0;
  color: #8b2e20;
  cursor: pointer;
  font-weight: 800;
  padding: 0 12px;
}

@media (max-width: 900px) {
  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 720px;
  }

  .intro-band,
  .resource-grid,
  .interactive-layout,
  .activity-panel,
  .session-list,
  .contact-section,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .intro-band article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .activity-visual {
    min-height: 340px;
  }
}

@media (max-width: 560px) {
  .hero-content {
    padding-bottom: 14vh;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .level-switch {
    width: 100%;
  }

  .section,
  .interactive-section,
  .contact-section,
  .admin-page {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .admin-list-heading {
    display: grid;
  }
}
