/* ── Course Detail: Full-width hero + two-column grid layout ── */

/* Full-width hero strip (overrides sg-hero border-radius + container) */
.cd-fw-hero {
  background: linear-gradient(135deg, var(--sg-brand-navy) 0%, var(--sg-brand-navy-mid) 100%);
  color: var(--sg-color-white);
  padding: 50px 0 20px;
  margin-bottom: 0;
}
.cd-fw-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: center;
}
.cd-fw-hero__text { min-width: 0; }
.cd-fw-hero__image {
  width: 280px;
  aspect-ratio: 16 / 10;
  border-radius: var(--sg-radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  flex-shrink: 0;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cd-fw-hero__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cd-fw-hero__image--placeholder {
  font-size: 48px;
  color: rgba(255,255,255,.2);
}
.cd-fw-hero__title {
  font-size: 32px;
  font-weight: 800;
  color: var(--sg-color-white);
  margin: 0 0 14px;
  line-height: 1.2;
}
.cd-fw-hero__sub {
    opacity: .9;
  font-size: 18px;
  margin: 0 0 18px;
  max-width: 680px;
  line-height: 1.6;
}
.cd-fw-hero__instructor {
  font-size: 15px;
    opacity: .9;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cd-fw-hero__instructor a {
  color: rgba(255,255,255,.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Stats strip at the bottom of the hero */
.cd-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 28px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.cd-hero-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
}
.cd-hero-stat strong { display: block; color: #fff; font-size: 14px; font-weight: 600; }
.cd-hero-stat i { font-size: 16px; color: rgba(255,255,255,.45); }

/* Two-column CSS grid layout */
.cd-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.cd-main { min-width: 0; }

/* Sticky sidebar */
.cd-sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Sidebar card — built on top of sg-card variables */
.cd-side-card {
  background: var(--sg-color-white);
  border: 1px solid var(--sg-tint-border);
  border-radius: var(--sg-radius-lg);
  box-shadow: 0 4px 16px rgba(0,58,89,.10);
  overflow: hidden;
}
.cd-side-card__body { padding: 22px 24px; }

/* Sidebar info list */
.cd-side-info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cd-side-info li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--sg-color-body);
}
.cd-side-info li i { color: var(--sg-color-muted); font-size: 15px; margin-top: 1px; flex-shrink: 0; }
.cd-side-info li strong { display: block; font-weight: 600; font-size: 13px; }
.cd-side-info li span { color: var(--sg-color-muted); font-size: 12px; }

.cd-divider { height: 1px; background: var(--sg-tint-border); margin: 16px 0; }

/* Enroll alert banners in sidebar */
.cd-enroll-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 13px;
  border-radius: var(--sg-radius-md);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.cd-enroll-alert--info    { background: var(--sg-color-info-bg);    color: var(--sg-color-info-text);    border: 1px solid #9adce8; }
.cd-enroll-alert--success { background: var(--sg-color-success-bg); color: var(--sg-color-success-text); border: 1px solid #a3d9b9; }
.cd-enroll-alert i { margin-top: 2px; flex-shrink: 0; }

/* Schedule table with card-style rows */
.cd-schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-size: 13px;
}
.cd-schedule-table thead th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sg-color-muted);
  padding: 0 12px 4px;
}
.cd-schedule-row td {
  background: var(--sg-color-white);
  border: 1px solid var(--sg-tint-border);
  padding: 13px 15px;
  vertical-align: middle;
}
.cd-schedule-row td:first-child  { border-radius: var(--sg-radius-md) 0 0 var(--sg-radius-md); border-right: none; }
.cd-schedule-row td:not(:first-child):not(:last-child) { border-left: none; border-right: none; }
.cd-schedule-row td:last-child   { border-radius: 0 var(--sg-radius-md) var(--sg-radius-md) 0; border-left: none; }
.cd-session-topic { font-weight: 600; color: var(--sg-color-dark); margin-bottom: 3px; }
.cd-session-meta  { color: var(--sg-color-muted); display: flex; flex-wrap: wrap; gap: 10px; margin-top: 3px; }
.cd-session-meta span { display: flex; align-items: center; gap: 4px; }

/* Status pills for schedule */
.cd-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 10px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.cd-status--live   { background: var(--sg-color-success-bg); color: var(--sg-color-success-text); }
.cd-status--soon   { background: var(--sg-color-warning-bg); color: var(--sg-color-warning-text); }
.cd-status--coming { background: var(--sg-color-info-bg);    color: var(--sg-color-info-text); }
.cd-status--ended  { background: var(--sg-color-light-grey); color: var(--sg-color-muted); }
.cd-status--sched  { background: #f8fafc; color: #94a3b8; border: 1px solid #e2e8f0; }
.cd-status--live i { font-size: 8px; }

/* Materials icon badge */
.cd-icon-badge {
  width: 44px; height: 44px; border-radius: var(--sg-radius-md);
  background: var(--sg-tint-bg); color: var(--sg-brand-navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 14px;
}

@media (max-width: 900px) {
  .cd-layout { grid-template-columns: 1fr; }
  .cd-sidebar { position: static; }
  .cd-fw-hero__inner { grid-template-columns: 1fr; }
  .cd-fw-hero__image { width: 100%; aspect-ratio: 16 / 7; }
}
@media (max-width: 600px) {
  .cd-fw-hero__inner { padding: 0 16px; }
  .cd-fw-hero { padding: 32px 0 0; }
  .cd-layout { padding: 24px 16px 60px; }
}