.main-content {
  width: min(1280px, calc(100% - 40px));
  margin: 24px auto 0;
}

.main-content main {
  display: grid;
  gap: 24px;
}

.hero-teacher {
  align-self: stretch;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--brand-wash);
  color: var(--brand);
  text-align: center;
}

.hero-teacher img {
  width: min(180px, 100%);
  height: auto;
  border-radius: 50%;
}

.hero-teacher figcaption {
  display: grid;
  gap: 2px;
}

.hero-teacher strong {
  font-size: 1.18rem;
}

.hero-teacher span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.topic-copy,
.position-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--brand-wash);
}

.topic-copy {
  padding: clamp(18px, 3vw, 28px);
}

.topic-copy p,
.position-card p {
  margin: 0;
}

.topic-copy--issue {
  color: var(--brand);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 800;
}

.topic-copy--background p + p {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.position-list {
  display: grid;
  gap: 18px;
}

.position-card h3 {
  margin: 0;
  padding: 15px 22px;
  background: var(--brand);
  color: #fff;
  font-size: 1.16rem;
}

.position-card > div {
  padding: clamp(20px, 3vw, 28px);
}

.position-card p + p {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.learning-tail {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
}

.content-section {
  width: min(860px, 100%);
  margin: 94px auto 0;
}

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

.section-heading h2,
.campaign-section h2 {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.lecture-image-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.lecture-image-link img {
  width: 100%;
  height: auto;
}

.demo-section video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.practice-section {
  margin-bottom: 94px;
}

.learning-tail .practice-card {
  margin-top: 0;
  padding: clamp(14px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.learning-tail .practice-card img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.practice-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 22px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.practice-link:hover {
  background: var(--brand-mid);
}

.site-footer {
  display: block;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto 24px;
  padding: 34px 0 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.site-footer > .footer-signature {
  display: flex;
}

.footer-signature {
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-signature img {
  width: 126px;
  height: auto;
  object-fit: contain;
}

.footer-signature p {
  margin: 0;
  color: var(--brand);
  font-size: 0.94rem;
  font-weight: 800;
}

.campaign-section {
  margin-bottom: 28px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.campaign-section h2 {
  max-width: 830px;
  font-size: clamp(1.65rem, 3.6vw, 2.4rem);
}

.campaign-section > p {
  max-width: 880px;
  font-size: 1.06rem;
}

.campaign-detail {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--brand);
}

.campaign-detail p {
  margin-bottom: 16px;
}

.campaign-detail p:last-child {
  margin-bottom: 0;
}

.campaign-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem !important;
}

.course-cta {
  position: relative;
  isolation: isolate;
  display: block;
  width: min(920px, 100%);
  margin-inline: auto;
  overflow: hidden;
  aspect-ratio: 1462 / 444;
  border-radius: 14px;
  line-height: 0;
}

.course-cta > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 1;
}

.course-code {
  position: absolute;
  bottom: clamp(6px, 8%, 36px);
  left: 52%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  transform: translateX(-50%);
  border: 2px solid #c9a44b;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: clamp(11px, 1.6vw, 17px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.course-code code {
  font: inherit;
  font-weight: 900;
}

@media (max-width: 820px) {
  .main-content {
    width: min(100% - 24px, 1280px);
  }

  .hero-teacher {
    grid-template-columns: 96px 1fr;
    justify-items: start;
    padding: 18px;
    text-align: left;
  }

  .hero-teacher img {
    width: 96px;
  }

  .learning-tail,
  .site-footer {
    width: min(100% - 24px, 1280px);
  }

  .content-section {
    margin-top: 64px;
  }

  .practice-section {
    margin-bottom: 64px;
  }

  .campaign-section > p {
    font-size: 1rem;
  }

  .course-code {
    bottom: 6%;
    gap: 4px;
    padding: 4px 8px;
    font-size: clamp(9px, 2.8vw, 13px);
  }
}

@media (max-width: 440px) {
  .hero-teacher {
    grid-template-columns: 72px 1fr;
  }

  .hero-teacher img {
    width: 72px;
  }

  .campaign-detail {
    padding-left: 14px;
  }
}
