/* ========== LEARN DETAIL PAGE ========== */
.learn-detail-page {
  background-color: #FFFFFF;
  background-image: url('/images/backgrounds/line_bg.png');
  background-repeat: repeat;
  background-position: top left;
  background-size: auto;
}

.article {
  padding: 120px 0 72px;
  overflow: visible;
}

/* Single shared content column — title, image, and body use the same width */
.article__container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.article__header {
  text-align: center;
  margin: 0 0 50px;
  width: 100%;
}

.article__title {
  font-family: var(--font-heading);
  font-size: 46.67px;
  font-weight: 800;
  line-height: 58.74px;
  letter-spacing: -0.02em;
  color: #0B1020;
  margin: 0;
  width: 100%;
}

.article__hero {
  width: 100%;
  margin: 0 0 60px;
  padding: 0;
  border: none;
}

.article__hero img {
  width: 100%;
  height: 500px;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.article__body {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  color: #0B1020;
  font-size: 20px;
  line-height: 36.67px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow: visible;
  min-width: 0;
  overflow-wrap: anywhere;
}

.article__body img,
.article__body video,
.article__body iframe {
  max-width: 100%;
  height: auto;
}

.article__body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.article__body pre,
.article__body code {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.article__body p {
  margin: 0;
  color: #0B1020;
  overflow: visible;
}

.article__body h2 {
  font-family: var(--font-heading);
  font-size: 33.33px;
  font-weight: 600;
  color: #000000;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
  overflow: visible;
}

.article__body ul {
  list-style: disc;
  list-style-position: outside;
  margin: 0;
  padding-left: 1.5em;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
}

.article__body li {
  margin: 0;
  padding-left: 0.15em;
  color: #1E293B;
  overflow: visible;
}

.article__body li::marker {
  color: #0B1020;
}

/* Related Resources — full content width */
.related {
  padding: 80px 0 100px;
}

.related__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 50px;
}

.related__title {
  font-family: var(--font-heading);
  font-size: 33.33px;
  font-weight: 700;
  color: #0B1020;
  margin: 0;
  letter-spacing: -0.02em;
}

.related__title .accent {
  color: #4F46E5;
}

.related__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14.6px;
  background: #4F46E533;
  color: #4F46E5;
  border: 1px solid #4F46E51F;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.related__more:hover {
  background: #E0E7FF;
}

.related__more img {
  width: 16px;
  height: 16px;
  display: block;
}

.related__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
}

@media (max-width: 900px) {
  .article {
    padding: 48px 0;
  }

  .article__title {
    font-size: var(--mobile-heading-size);
    line-height: var(--mobile-heading-line-height);
    text-align: left;
  }

  .article__header {
    text-align: left;
  }

  .article__hero img {
    height: auto;
    max-height: 420px;
  }

  .article__body {
    font-size: 17px;
    line-height: 1.7;
  }

  .article__body h2 {
    font-size: var(--mobile-heading-size);
    line-height: var(--mobile-heading-line-height);
    text-align: left;
  }

  .related__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .related__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .related {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

@media (max-width: 640px) {
  .article {
    padding: 40px 0;
  }

  .article__container {
    padding: 0 20px;
  }

  .article__header {
    margin-bottom: 40px;
  }

  .article__hero {
    margin-bottom: 40px;
  }

  .article__hero img {
    max-height: 260px;
  }

  .article__body {
    font-size: 16px;
    gap: 22px;
  }

  .related {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .related__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .related__title {
    font-size: var(--mobile-heading-size);
    line-height: var(--mobile-heading-line-height);
    text-align: left;
  }
}
