/* ---------- Course page ---------- */
body.course-page {
  background: #ecece9;
}

.course {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) var(--gutter) 0;
}

.course__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.course__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.course__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.course__badge {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.course__hero {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.course__hero img {
  width: 100%;
  height: auto;
}

.course__body {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(60px, 10vh, 100px);
}

.course__main {
  flex: 1 1 auto;
  min-width: 0;
}

.course__main h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.course__description {
  color: var(--color-muted);
  max-width: 560px;
  margin: 0 0 clamp(28px, 4vw, 40px);
}

.course__lessons {
  list-style: none;
  margin: 0 -20px;
  padding: 0;
  border-top: 1px solid #222222;
}

.course__lessons li {
  border-bottom: 1px solid #222222;
}

.course__lessons a,
.course__lessons span {
  display: block;
  padding: 18px 20px;
  font-size: 0.9375rem;
}

.course__lessons a {
  transition: background-color 0.2s ease;
}

.course__lessons a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.course__lessons span {
  color: var(--color-muted);
}

.course__aside {
  flex: 0 0 auto;
  width: min(100%, 320px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.course__ask-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: #0a996f;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 8px;
  text-align: center;
  transition: opacity 0.2s ease;
}

.course__ask-btn:hover {
  opacity: 0.85;
}

.course__info-card {
  border: 1px solid #222222;
  border-radius: 8px;
  padding: 20px;
}

.course__info-card p {
  margin: 0 0 16px;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.course__info-divider {
  height: 1px;
  background: #222222;
  margin: 0 0 16px;
}

.course__info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.course__info-row span {
  color: var(--color-muted);
}

.course__info-row a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.course__info-row a:hover {
  opacity: 0.7;
}

.course__secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: #191919;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 8px;
  text-align: center;
  transition: opacity 0.2s ease;
}

.course__secondary-btn:hover {
  opacity: 0.85;
}

.course__aside-label {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 4px 0 0;
}

.course__aside-label a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.course__aside-label a:hover {
  opacity: 0.7;
}

.course__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.course__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.course__lesson-content p {
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 0 20px;
}

.course__lesson-content p a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.course__lesson-content p a:hover {
  opacity: 0.7;
}

.course__lesson-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 28px 0 10px;
}

@media (max-width: 720px) {
  .course__body {
    flex-direction: column;
  }

  .course__aside {
    width: 100%;
  }
}
