/* ============================================================
   THE MODERN EXCEL v2 — COURSE DETAIL PAGE STYLES
   ============================================================ */

/* ── COURSE HERO ─────────────────────────────────────────── */
#course-hero {
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 64px;
  background: linear-gradient(135deg, var(--slate-950) 0%, #0a1f0f 60%, var(--slate-950) 100%);
  position: relative;
  overflow: hidden;
}
#course-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(29,111,66,.25) 0%, transparent 70%);
  pointer-events: none;
}
.ch-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34,197,94,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
#course-hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}

/* Breadcrumb */
.breadcrumb {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin-bottom: 8px;
}
.breadcrumb a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--brand-light); }
.breadcrumb span { font-size: 11px; }

/* Hero content */
.ch-content { max-width: 680px; }
.ch-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  border: 1px solid;
  margin-bottom: 16px;
}
.ch-title {
  font-size: clamp(1.75rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.4px;
}
.ch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}
.ch-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  font-weight: 500;
}
.ch-meta-item svg { color: var(--brand-light); flex-shrink: 0; }
.ch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 100px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-wa:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37,211,102,.4);
}

/* Logo panel */
.ch-logo-wrap {
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}
.ch-logo {
  max-width: 110px;
  max-height: 110px;
  object-fit: contain;
}

/* ── COURSE BODY ─────────────────────────────────────────── */
.cd-section { background: var(--slate-100); }
.cd-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

/* Cards */
.cd-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  margin-bottom: 20px;
}
.cd-card:last-child { margin-bottom: 0; }
.cd-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cd-card-title svg { color: var(--brand); flex-shrink: 0; }
.cd-intro-text {
  color: var(--slate-600);
  font-size: 1rem;
  line-height: 1.75;
}

/* Topics list */
.cd-topics {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}
.cd-topic-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--slate-700);
  line-height: 1.55;
}
.cd-topic-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 6px;
  flex-shrink: 0;
}

/* Approach grid */
.cd-approach { background: var(--slate-950); border-color: rgba(34,197,94,.15); }
.cd-approach .cd-card-title { color: var(--white); }
.cd-approach .cd-card-title svg { color: var(--brand-light); }
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.approach-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  padding: 16px;
}
.approach-icon { font-size: 22px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.approach-text { font-size: 13.5px; color: rgba(255,255,255,.7); line-height: 1.6; }
.approach-text strong { color: var(--white); display: block; margin-bottom: 4px; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.cd-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }

.cd-info-card {}
.cd-info-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-900);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.cd-info-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--slate-100);
}
.cd-info-row:last-child { border-bottom: none; }
.cd-info-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--slate-400);
}
.cd-info-value {
  font-size: 14px;
  color: var(--slate-700);
  font-weight: 500;
  line-height: 1.5;
}

.cd-dl-card {
  text-align: center;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-color: rgba(29,111,66,.2);
}
.cd-dl-icon { font-size: 32px; margin-bottom: 10px; }
.cd-dl-title { font-size: 1rem; font-weight: 700; color: var(--slate-900); margin-bottom: 8px; }
.cd-dl-desc { font-size: 13px; color: var(--slate-600); margin-bottom: 18px; line-height: 1.5; }
.cd-dl-btn {
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 100px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.cd-dl-btn:hover { background: var(--green-700); transform: translateY(-2px); }

.cd-enquiry-card { background: var(--slate-900); border-color: rgba(34,197,94,.15); }
.cd-enquiry-title { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.cd-enquiry-desc { font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 16px; line-height: 1.5; }
.cd-enquiry-email, .cd-enquiry-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: opacity var(--transition), transform var(--transition);
}
.cd-enquiry-email { background: var(--brand); color: var(--white); }
.cd-enquiry-wa    { background: #25D366; color: var(--white); }
.cd-enquiry-email:hover, .cd-enquiry-wa:hover { opacity: .9; transform: translateY(-1px); }

.cd-back-link {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-500);
  text-decoration: none;
  padding: 10px 0;
  transition: color var(--transition);
}
.cd-back-link:hover { color: var(--brand); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cd-layout { grid-template-columns: 1fr; }
  .cd-sidebar { position: static; }
  #course-hero .container { grid-template-columns: 1fr; }
  .ch-logo-wrap { display: none; }
}
@media (max-width: 768px) {
  .ch-title { font-size: 1.75rem; }
  .approach-grid { grid-template-columns: 1fr; }
  .ch-actions { flex-direction: column; align-items: flex-start; }
}
