:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-soft: #f8fbfa;
  --text: #15211e;
  --muted: #687873;
  --border: #dfe8e4;
  --accent: #2f6f63;
  --accent-dark: #25594f;
  --accent-soft: #eaf4f1;
  --warning: #8f7b3a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 32px rgba(21, 33, 30, 0.08);
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(47, 111, 99, 0.08), transparent 32%),
    linear-gradient(180deg, #f7faf9 0%, var(--bg) 100%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding: 20px 0 40px;
}

.surface-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(223, 232, 228, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.topbar-wrap {
  position: sticky;
  top: 16px;
  z-index: 20;
  margin-bottom: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #499181 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand-text small {
  font-size: 12px;
  color: var(--muted);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link,
.nav-dropdown > summary {
  list-style: none;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-link:hover,
.nav-dropdown > summary:hover,
.nav-link.active,
.nav-dropdown.active > summary {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary::after {
  content: "▾";
  margin-left: 8px;
  color: var(--muted);
  font-size: 11px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(21, 33, 30, 0.12);
}

.dropdown-link {
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
}

.dropdown-link:hover,
.dropdown-link:focus-visible {
  background: var(--surface-soft);
  color: var(--accent-dark);
  outline: none;
}

.dropdown-link-muted {
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-link,
.mobile-channel-link {
  text-decoration: none;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 14px;
}

.channel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--accent) !important;
  color: #fff !important;
  border: 1px solid var(--accent) !important;
  box-shadow: 0 10px 24px rgba(47, 111, 99, 0.22);
}

.channel-button:hover {
  background: var(--accent-dark) !important;
  color: #fff !important;
}

.mobile-menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  font-weight: 700;
}

.mobile-menu {
  margin-top: 12px;
  padding: 14px 16px;
}

.mobile-nav {
  display: grid;
  gap: 10px;
}

.mobile-group,
.mobile-link {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--surface-soft);
  text-decoration: none;
}

.mobile-group summary {
  cursor: pointer;
  font-weight: 700;
}

.mobile-group a {
  display: block;
  margin-top: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
}

.hero-grid,
.cards-grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.9fr);
  gap: 24px;
}

.hero-copy,
.hero-side,
.page-intro,
.detail-hero,
.detail-section,
.section-card,
.item-card,
.course-card,
.checklist-card,
.footer {
  padding: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(34px, 4vw, 54px);
  margin-top: 18px;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(28px, 2.9vw, 42px);
}

.hero-title-line {
  display: block;
}

.hero-title-line-nowrap {
  white-space: nowrap;
}

h2 {
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

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

.hero-lead {
  margin-top: 16px;
  max-width: 58ch;
  font-size: 18px;
  color: #41514c;
}

.teacher-name {
  margin-top: 28px;
}

.teacher-role {
  margin-top: 10px;
  color: var(--accent-dark);
  font-weight: 700;
}

.hero-summary {
  margin-top: 12px;
  max-width: 58ch;
}

.stats-grid,
.cards-grid {
  display: grid;
  gap: 16px;
}

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

.stat-card {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
  border: 1px solid var(--border);
}

.stat-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.stat-card span {
  color: var(--muted);
  font-size: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

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

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.teacher-photo-wrap {
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(180deg, #eef5f3 0%, #e2eeeb 100%);
  padding: 10px;
  margin-bottom: 22px;
}

.teacher-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
}

.check-list,
.detail-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-list li,
.detail-list li {
  position: relative;
  padding-left: 22px;
  color: #44534e;
}

.check-list li::before,
.detail-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  position: absolute;
  top: 9px;
  left: 0;
}

.section-block {
  margin-top: 24px;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.cards-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-card {
  text-decoration: none;
  display: grid;
  gap: 16px;
  min-height: 220px;
}

.section-link {
  font-weight: 700;
  color: var(--accent-dark);
}

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

.course-number {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.page-intro {
  margin-bottom: 24px;
}

.page-intro p {
  max-width: 62ch;
  margin-top: 12px;
}

.item-card {
  display: grid;
  gap: 16px;
  text-decoration: none;
  min-height: 230px;
}

.item-card-top,
.item-card-bottom,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-published {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.status-coming-soon {
  background: #f7f1d9;
  color: var(--warning);
}

.item-type,
.item-date,
.detail-meta span {
  font-size: 13px;
  color: var(--muted);
}

.item-card-bottom {
  margin-top: auto;
  justify-content: space-between;
}

.item-cta {
  font-weight: 700;
  color: var(--accent-dark);
}

.item-cta.muted {
  color: var(--warning);
}

.detail-hero,
.detail-section {
  margin-bottom: 20px;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
}

.detail-head-copy {
  display: grid;
  gap: 14px;
  max-width: 66ch;
}

.detail-section h2,
.checklist-card h2 {
  margin-bottom: 14px;
}

.detail-section p + p {
  margin-top: 14px;
}

.back-link-wrap {
  margin-top: 4px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--accent-dark);
  font-weight: 700;
}

.back-link::before {
  content: "←";
}

.footer {
  display: block;
  margin-top: 28px;
  padding: 20px 24px;
}

.footer p {
  margin-top: 0;
  max-width: none;
}

.footer-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .hero-grid,
  .cards-grid-two,
  .cards-grid-three,
  .cards-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    align-items: start;
  }
}

@media (max-width: 900px) {
  .site-shell {
    width: min(calc(100% - 24px), var(--container));
    padding-top: 14px;
  }

  .desktop-nav,
  .channel-link {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .topbar {
    padding: 14px;
  }

  .hero-grid,
  .cards-grid-two,
  .cards-grid-three,
  .cards-grid-four,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .detail-head,
  .footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero-copy,
  .hero-side,
  .page-intro,
  .detail-hero,
  .detail-section,
  .section-card,
  .item-card,
  .course-card,
  .checklist-card,
  .footer {
    padding: 20px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  .brand-text small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-lead {
    font-size: 16px;
  }
}
