/* BOUGE course detail. Scoped separately so catalogue styling stays independent. */
.course-detail-page .course-detail-hero {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  min-height: 430px;
  margin-top: 110px;
  margin-bottom: 40px;
  border: 0;
  border-radius: 8px;
  background: #7d2027;
  color: #f7f5f2;
}
.course-detail-page .course-detail-media {
  position: relative;
  min-height: 430px;
  height: auto;
  background: #c1d0d7;
}
.course-detail-page .course-detail-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.course-detail-page .course-detail-copy {
  min-width: 0;
  padding: 36px 44px;
}
.course-detail-page .course-detail-hero .course-back {
  margin-bottom: 26px;
  min-height: 24px;
  color: #f7f5f2;
}
.course-detail-page .course-detail-meta { margin-bottom: 8px; }
.course-detail-page .course-detail-meta .course-pill,
.course-detail-page .course-detail-fact { color: #f7f5f2; }
.course-detail-page .course-detail-title {
  max-width: 100%;
  margin: 0 0 22px;
  color: #f7f5f2;
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1.04;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.course-detail-page .course-detail-lead {
  max-width: 60ch;
  margin-bottom: 24px;
  color: #f7f5f2;
  font-size: 16px;
  line-height: 1.6;
}
.course-detail-page .course-detail-info {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-color: rgb(247 245 242 / 30%);
}
.course-detail-page .course-detail-info > div { min-width: 0; padding: 16px 10px 16px 0; }
.course-detail-page .course-detail-info > div + div {
  padding-left: 14px;
  border-color: rgb(247 245 242 / 30%);
}
.course-detail-page .course-detail-info strong { color: #f7f5f2; font-size: 18px; overflow-wrap: anywhere; }
.course-detail-page .course-detail-actions { margin-top: 24px; }
.course-detail-page .course-detail-actions .course-cta {
  min-height: 48px;
  padding-inline: 24px;
  background: #f7f5f2;
  color: #7d2027;
}
.course-detail-page .course-detail-actions .course-cta:hover { background: #c1d0d7; color: #542916; }
.course-detail-page .course-detail-hero a:focus-visible { outline: 3px solid #f7f5f2; outline-offset: 5px; }
.course-detail-page .course-sessions-section {
  padding: 48px 0 64px;
  background: #c1d0d7;
  scroll-margin-top: 96px;
}
.course-detail-page .course-section-head { display: block; margin-bottom: 28px; }
.course-detail-page .course-section-head h2 { margin: 8px 0 12px; font-size: clamp(32px, 3.5vw, 46px); }
.course-detail-page .course-section-head .course-hero-copy { max-width: 65ch; color: #542916; }
.course-detail-page .course-session-list { display: grid; gap: 12px; border: 0; background: transparent; }
.course-detail-page .course-session {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 24px;
  padding: 22px 24px;
  border: 0;
  border-radius: 8px;
  background: #f7f5f2;
}
.course-detail-page .course-session:nth-child(even) { background: #eadbd0; }
.course-detail-page .course-session:hover { background: #e8d6c8; }
.course-detail-page .course-session > div { min-width: 0; overflow-wrap: anywhere; }
.course-detail-page .course-session-date strong { font-size: 20px; }
.course-detail-page .course-session-time strong { font-variant-numeric: tabular-nums; }
.course-detail-page .course-session small,
.course-detail-page .course-session-capacity { color: #542916; }
.course-detail-page .course-session small { font-size: 13px; line-height: 1.5; }
.course-detail-page .course-session-capacity { font-size: 14px; }
.course-detail-page .course-session .course-cta { min-height: 44px; background: #7d2027; white-space: nowrap; }
.course-detail-page .course-session .course-cta:hover { background: #542916; }
.course-detail-page .course-session a:focus-visible { outline: 3px solid #542916; outline-offset: 4px; }
@media (max-width: 980px) {
  .course-detail-page .course-detail-hero { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .course-detail-page .course-detail-copy { padding: 28px; }
  .course-detail-page .course-detail-info strong { font-size: 16px; }
  .course-detail-page .course-session { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
  .course-detail-page .course-session .course-cta { justify-self: end; }
}
@media (max-width: 767px) {
  .course-detail-page .course-detail-hero { grid-template-columns: minmax(0, 1fr); margin-top: 86px; margin-bottom: 24px; }
  .course-detail-page .course-detail-media { min-height: 0; height: 220px; }
  .course-detail-page .course-detail-copy { padding: 24px; }
  .course-detail-page .course-detail-info > div + div { border-top: 0; border-left: 1px solid rgb(247 245 242 / 30%); padding-left: 10px; }
  .course-detail-page .course-detail-info .course-detail-fact { font-size: 11px; }
  .course-detail-page .course-detail-actions, .course-detail-page .course-detail-actions .course-cta { width: 100%; }
  .course-detail-page .course-sessions-section { padding: 32px 0 40px; scroll-margin-top: 82px; }
  .course-detail-page .course-session { padding: 20px; }
  .course-detail-page .course-session-date { grid-column: 1 / -1; }
  .course-detail-page .course-session .course-cta { grid-column: 1 / -1; width: 100%; justify-self: stretch; }
}
