.topic-hero {
  background: var(--primary);
  border-bottom: 4px solid #000000;
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
}

.topic-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -40px;
  width: 160px;
  height: 160px;
  max-width: 40vw;
  background: var(--accent);
  border: 4px solid #000000;
  transform: rotate(18deg);
}

.topic-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topic-hero h1 {
  font-family: var(--font);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 12px;
}

.topic-hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  font-size: 16px;
  font-weight: 700;
}

.topic-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.topic-body h2 {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 800;
  color: var(--secondary);
  margin: 32px 0 12px;
}

.topic-body p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 15px;
}

.topic-body ul {
  margin: 12px 0 20px 20px;
  color: var(--muted);
}

.topic-body li {
  margin-bottom: 8px;
}

.topic-callout {
  background: var(--accent);
  color: #0F172A;
  border: 4px solid #000000;
  box-shadow: 6px 6px 0 #000000;
  padding: 20px;
  margin: 28px 0;
  font-family: var(--font);
  font-weight: 800;
  font-size: 15px;
}

.topic-side {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  margin: 28px 0;
}

.topic-side .decor-wrap {
  width: 220px;
}

@media (max-width: 700px) {
  .topic-side {
    grid-template-columns: 1fr;
  }

  .topic-side .decor-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .topic-side .decor-img {
    max-width: 100%;
    max-height: 180px;
  }
}

@media (max-width: 375px) {
  .topic-hero {
    padding: 32px 12px;
  }

  .topic-body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .topic-hero::after {
    width: 100px;
    height: 100px;
  }
}
