/* Course detail page: full-width hero + readable expandable descriptions */
.course-detail-page .course-detail-hero {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(48px, 6vw, 82px) 0 !important;
  background:
    radial-gradient(circle at 84% 18%, rgba(224,145,47,.14), transparent 32%),
    linear-gradient(115deg, #151d35 0%, #20263a 58%, #292b3b 100%) !important;
  border-bottom: 1px solid rgba(148,163,184,.14);
}
.course-detail-page .course-hero-inner {
  width: min(1320px, calc(100% - 56px)) !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  text-align: left !important;
}
.course-detail-page .course-detail-hero .page-kicker {
  display: inline-flex;
  margin: 0 0 16px;
  color: #E0912F;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.course-detail-page .course-detail-hero h1 {
  max-width: 1100px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -.03em;
  text-align: left;
}
.course-detail-page .course-description-block {
  max-width: 100%;
  text-align: left !important;
}
.course-detail-page .course-detail-hero .course-description-block {
  max-width: 1100px;
}
.course-detail-page .course-expandable-text {
  margin: 0;
  color: #c3cee0;
  font-size: 1rem;
  line-height: 1.85;
  text-align: left !important;
  text-align-last: auto !important;
  overflow-wrap: anywhere;
  white-space: normal;
}
.course-detail-page .course-expandable-text.is-collapsed {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}
.course-detail-page .course-see-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 8px 14px;
  color: #E0912F;
  background: rgba(224,145,47,.1);
  border: 1px solid rgba(224,145,47,.38);
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}
.course-detail-page .course-see-more:hover {
  color: #111827;
  background: #E0912F;
}
.course-detail-page .course-see-more[hidden] { display: none !important; }

/* Keep main detail layout wide and paragraphs left aligned, never justified */
.course-detail-page > .container.page-section {
  width: min(1320px, calc(100% - 56px)) !important;
  max-width: 1320px !important;
  margin-inline: auto !important;
  padding-top: 34px;
  padding-bottom: 64px;
}
.course-detail-page .course-watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(290px, .8fr);
  gap: 24px;
  align-items: stretch;
}
.course-detail-page .course-video-panel,
.course-detail-page .course-detail-sidebar {
  min-width: 0;
  border-radius: 18px;
}
.course-detail-page .course-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 300px;
}
.course-detail-page .course-video-frame iframe {
  width: 100%;
  height: 100%;
}
.course-detail-page .course-video-caption {
  padding: 24px 26px;
}
.course-detail-page .course-video-caption h2 {
  margin: 0 0 12px;
  text-align: left;
}
.course-detail-page .course-video-caption .course-expandable-text {
  color: #b8c4d8;
  font-size: .95rem;
  line-height: 1.8;
}
.course-detail-page .course-related-heading { margin-top: 54px; }

@media (max-width: 900px) {
  .course-detail-page .course-watch-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .course-detail-page .course-hero-inner,
  .course-detail-page > .container.page-section {
    width: calc(100% - 32px) !important;
  }
  .course-detail-page .course-detail-hero { padding: 42px 0 !important; }
  .course-detail-page .course-detail-hero h1 { font-size: 2.1rem; }
  .course-detail-page .course-video-frame { min-height: 0; }
  .course-detail-page .course-video-caption { padding: 18px; }
}


/* Reliable See more / See less controls */
.course-detail-page .course-expandable-text.is-collapsed {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden !important;
  max-height: none;
}
.course-detail-page .course-expandable-text:not(.is-collapsed) {
  display: block !important;
  -webkit-line-clamp: unset;
  overflow: visible !important;
  max-height: none !important;
}
.course-detail-page .course-see-more {
  position: relative;
  z-index: 2;
  cursor: pointer;
  pointer-events: auto;
}
.course-detail-page .course-see-more[hidden] {
  display: none !important;
}
