/* Course page (mockup port). Builds on post.css (hero, card, prose, comments, side-card). */
.course-hero-in { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 40px 64px; }
.course-hero-text { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.course-hero-media { flex: 1 1 400px; min-width: 0; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: #0a3a6b;
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.course-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-title { font-weight: 800; }
.course-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.cb { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.8; }
.cb-sky { background: rgba(92, 200, 255, .14); color: var(--sky); }
.cb-line { border: 1px solid rgba(255, 255, 255, .18); color: #cfe9fa; transition: background .15s; }
.cb-line:hover { background: rgba(255, 255, 255, .08); }
.course-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: 14px; color: #cfe9fa; }
.course-stats b { color: #fff; }

/* section tabs */
.course-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 16px; background: var(--h-card); border: 1px solid var(--h-line); font-size: 14px; font-weight: 600; }
.course-tabs a { padding: 10px 16px; border-radius: 11px; color: var(--h-muted); transition: background .15s, color .15s; }
.course-tabs a:hover { background: var(--h-soft); color: var(--h-ink); }
.course-tabs a.on { background: var(--navy); color: #fff; }
.course-page [id] { scroll-margin-top: 96px; }

/* sidebar CTA */
.course-cta { border-radius: 24px; background: var(--navy); color: #fff; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.cta-title { font-size: 16px; font-weight: 800; }
.cta-text { font-size: 13px; line-height: 1.9; color: var(--navy-soft); }
.cta-btn { height: 44px; border-radius: 12px; background: var(--sky); color: var(--navy); font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: filter .15s, transform .15s; }
.cta-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cta-btn .mono { font-size: 12px; }

@media (max-width: 640px) {
  .course-title { font-size: 30px; line-height: 1.55; }
  .course-hero-in { gap: 28px; padding-block: 28px 40px; }
}

/* curriculum accordion (built by normalizeCourseBody) */
.post-prose .syl { margin: 10px 0 0; border: 1px solid var(--h-line); border-radius: 18px; overflow: hidden; background: var(--h-card); }
.post-prose .syl > summary { list-style: none; cursor: pointer; min-height: 64px; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-weight: 800; color: var(--h-ink); transition: background .15s; }
.post-prose .syl > summary::-webkit-details-marker { display: none; }
.post-prose .syl > summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--h-soft); color: var(--h-link); display: grid; place-items: center; font-size: 18px; font-weight: 700; }
.post-prose .syl[open] > summary::after { content: "−"; }
.post-prose .syl > summary:hover { background: var(--h-soft); }
.syl-t { flex: 1; min-width: 0; font-size: 15px; line-height: 1.8; }
.syl-d { flex: none; font-size: 12px; font-weight: 400; color: var(--h-faint); }
.post-prose .syl-list { list-style: none; margin: 0; padding: 6px 12px 10px; border-top: 1px solid var(--h-line); display: flex; flex-direction: column; gap: 0; }
.post-prose .syl-list > li { margin: 0; padding: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--h-muted); }
.post-prose .syl-list > li + li { border-top: 1px dashed var(--h-line); }
.les-t { flex: 1; min-width: 0; }
.les-free { flex: none; padding: 4px 10px; border-radius: 999px; background: #d1fae5; color: #065f46; font-size: 12px; font-weight: 700; }
.les-lock { flex: none; width: 18px; height: 18px; overflow: hidden; text-indent: 40px; white-space: nowrap; opacity: .65;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }
.les-video { flex: 1 0 100%; }
.les-video video { width: 100%; max-width: 560px; height: auto; border-radius: 14px; background: #000; }
