/* ==========================================================================
   Course Detail — Rich Landing Page
   Dark theme aligned with the site design tokens (style.css).
   ========================================================================== */

:root {
  --cd-safe-top: env(safe-area-inset-top, 0px);
  --cd-nav-core-height: 76px;
  --cd-nav-height: calc(var(--cd-nav-core-height) + var(--cd-safe-top));
  --cd-bg: #050816;
  --cd-bg-soft: #0b1324;
  --cd-surface: rgba(14, 23, 45, 0.66);
  --cd-surface-2: rgba(20, 31, 56, 0.75);
  --cd-text: #f4f8ff;
  --cd-muted: #aebbd6;
  --cd-accent: #2f8cff;
  --cd-accent-2: #61b5ff;
  --cd-orange: #ff8b4d;
  --cd-border: rgba(87, 131, 219, 0.22);
  --cd-border-strong: rgba(87, 131, 219, 0.4);
  --cd-radius: 14px;
  --cd-radius-lg: 20px;
  --cd-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
  --cd-font-body: "Poppins", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --cd-font-heading: "Sora", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--cd-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--cd-text);
  background: var(--cd-bg);
  overflow-x: hidden;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(1rem, 3.2vw, 2.25rem); }

a { color: inherit; }

.text-accent { color: var(--cd-accent); }
.u-muted { color: var(--cd-muted); }

/* Navbar styles are provided by the shared style.css + responsive.css so the
   header stays unified across all pages. Only --cd-nav-height (below) is used
   here to offset the page content beneath the fixed navbar. */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: linear-gradient(135deg, #2f8cff 0%, #1d66ff 100%); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(47, 140, 255, 0.35); }
.btn-outline { background: transparent; color: var(--cd-text); border-color: var(--cd-border-strong); }
.btn-outline:hover { border-color: var(--cd-accent); color: var(--cd-accent); }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.u-w-100 { width: 100%; justify-content: center; }

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  background: rgba(47, 140, 255, 0.12);
  border: 1px solid var(--cd-border);
  color: var(--cd-text);
}
.badge-accent { background: rgba(47, 140, 255, 0.16); color: var(--cd-accent-2); }
.badge-orange { background: rgba(255, 139, 77, 0.16); color: var(--cd-orange); }

/* ---------- Sections ---------- */
.section { padding: 3.4rem 0; }
.section-tight { padding: 2.4rem 0; }
.section h2 {
  font-family: var(--cd-font-heading);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  margin: 0 0 1.6rem;
}
.section-lead { color: var(--cd-muted); max-width: 720px; margin: -0.8rem 0 2rem; }

/* ---------- HERO ---------- */
.cd-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--cd-nav-height) + 3rem) 0 3rem;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(47, 140, 255, 0.22), transparent 60%),
    linear-gradient(180deg, #060a1c 0%, #0a1226 100%);
  border-bottom: 1px solid var(--cd-border);
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--cd-muted); font-size: .85rem; margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--cd-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--cd-accent); }

.cd-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.4rem;
  align-items: center;
}
.cd-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(.85rem, 1.8vw, 1.15rem);
  max-width: 620px;
}
.cd-hero-copy > * { margin: 0; }
.cd-hero-eyebrow { color: var(--cd-accent-2); font-weight: 600; }
.cd-hero h1 {
  font-family: var(--cd-font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.12;
}
.cd-hero-tagline { color: var(--cd-muted); font-size: 1.05rem; max-width: 560px; }
.cd-hero #courseDesc { max-width: 590px; line-height: 1.75; }

.cd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: rgba(47, 140, 255, 0.14);
  border: 1px solid var(--cd-border-strong);
  color: var(--cd-accent-2);
  font-size: .82rem;
  font-weight: 600;
}

.cd-hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .8rem;
  width: 100%;
  padding: 0;
  list-style: none;
}
.cd-hero-highlights li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .55rem;
  padding: 1rem .8rem;
  border-radius: var(--cd-radius);
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.3;
}
.cd-hero-highlights i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(47, 140, 255, 0.14);
  color: var(--cd-accent-2);
  font-size: 1.05rem;
}

.cd-hero-rating { display: flex; align-items: center; gap: .6rem; font-size: .92rem; }
.cd-hero-rating .cd-stars { color: #ffb547; letter-spacing: 2px; }
.cd-hero-rating .cd-rating-count { color: var(--cd-muted); }

.cd-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; padding-top: .2rem; }

.cd-trust-row {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.1rem;
}
.cd-trust-row li { display: flex; align-items: center; gap: .5rem; color: var(--cd-muted); font-size: .86rem; position: relative; }
.cd-trust-row li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: var(--cd-border-strong);
}
.cd-trust-row i { color: var(--cd-accent); }

.cd-hero-media {
  position: relative;
  border-radius: var(--cd-radius-lg);
  overflow: hidden;
  -webkit-clip-path: ellipse(92% 135% at 100% 50%);
  clip-path: ellipse(92% 135% at 100% 50%);
}
.cd-hero-media img,
.cd-hero-media video {
  display: block;
  width: 100%;
  height: auto;
  min-height: 260px;
  object-fit: cover;
}

/* ---------- Stats bar (bordered card attached under hero) ---------- */
.cd-stats {
  background: transparent;
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}
.cd-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  padding: 1.8rem;
  border-radius: var(--cd-radius-lg);
  border: 1px solid var(--cd-border-strong);
  background: var(--cd-surface);
  box-shadow: var(--cd-shadow);
}
.cd-stat { display: flex; align-items: center; gap: .9rem; }
.cd-stat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(47, 140, 255, 0.14);
  color: var(--cd-accent-2);
  font-size: 1.15rem;
  flex: none;
}
.cd-stat-value { font-family: var(--cd-font-heading); font-weight: 700; font-size: 1.2rem; line-height: 1.1; }
.cd-stat-label { color: var(--cd-muted); font-size: .82rem; }

/* ---------- Card base ---------- */
.cd-card {
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  padding: 1.4rem;
  transition: transform .2s ease, border-color .2s ease;
}
.cd-card:hover { transform: translateY(-3px); border-color: var(--cd-border-strong); }

/* ---------- What you'll learn ---------- */
.cd-learn-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 1.1rem;
}
.cd-learn-card { display: flex; gap: 1rem; height: 100%; min-height: 138px; }
.cd-learn-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(47, 140, 255, 0.14);
  color: var(--cd-accent-2);
  flex: none;
  font-size: 1.1rem;
}
.cd-learn-card h3 { margin: 0 0 .3rem; font-size: 1.02rem; }
.cd-learn-card p { margin: 0; color: var(--cd-muted); font-size: .9rem; }

/* ---------- Tools to master ---------- */
.cd-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 1rem;
}
.cd-tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: .8rem;
  height: 100%;
  min-height: 174px;
  padding: 1rem;
  text-align: center;
}
.cd-tool-logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--cd-border-strong);
  flex: none;
  overflow: hidden;
}
.cd-tool-logo img { max-width: 28px; max-height: 28px; object-fit: contain; }
.cd-tool-logo.has-logo { background: #ffffff; border-color: var(--cd-border-strong); padding: 0; }
.cd-tool-logo.has-logo img { width: 100%; height: 100%; max-width: 46px; max-height: 46px; border-radius: 12px; }
.cd-tool-logo i { color: var(--cd-accent-2); font-size: 1.25rem; }
.cd-tool-name {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.25;
}
.cd-tool-desc {
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--cd-muted);
  font-size: .8rem;
  line-height: 1.35;
}

/* Per-tile color tints for FontAwesome fallback (mockup-like variety) */
.cd-tool-card:nth-child(6n+1) .cd-tool-logo:not(.has-logo) { background: rgba(255, 122, 47, 0.16); }
.cd-tool-card:nth-child(6n+1) .cd-tool-logo i { color: #ff8a4c; }
.cd-tool-card:nth-child(6n+2) .cd-tool-logo:not(.has-logo) { background: rgba(47, 140, 255, 0.16); }
.cd-tool-card:nth-child(6n+2) .cd-tool-logo i { color: var(--cd-accent-2); }
.cd-tool-card:nth-child(6n+3) .cd-tool-logo:not(.has-logo) { background: rgba(56, 203, 137, 0.16); }
.cd-tool-card:nth-child(6n+3) .cd-tool-logo i { color: #44d68f; }
.cd-tool-card:nth-child(6n+4) .cd-tool-logo:not(.has-logo) { background: rgba(167, 119, 255, 0.16); }
.cd-tool-card:nth-child(6n+4) .cd-tool-logo i { color: #b18cff; }
.cd-tool-card:nth-child(6n+5) .cd-tool-logo:not(.has-logo) { background: rgba(255, 86, 120, 0.16); }
.cd-tool-card:nth-child(6n+5) .cd-tool-logo i { color: #ff6b87; }
.cd-tool-card:nth-child(6n+6) .cd-tool-logo:not(.has-logo) { background: rgba(255, 196, 0, 0.16); }
.cd-tool-card:nth-child(6n+6) .cd-tool-logo i { color: #ffce4d; }

/* ---------- Three-column lists (includes / who / projects) ---------- */
.cd-trio {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
}
.cd-list-card { display: flex; flex-direction: column; }
.cd-list-card h3 { margin: 0 0 1rem; font-size: 1.1rem; }
.cd-check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.cd-check-list li { display: flex; gap: .65rem; align-items: flex-start; color: var(--cd-muted); font-size: .92rem; }
.cd-check-list li i { color: var(--cd-accent); margin-top: .2rem; flex: none; }
.cd-list-card.is-folder .cd-check-list li i { color: var(--cd-orange); }
.cd-list-card .cd-check-list { margin-bottom: 1.2rem; }

/* ---------- Course content split (overview / curriculum + enquiry) ---------- */
.cd-content-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
.cd-main { background: var(--cd-surface); border: 1px solid var(--cd-border); border-radius: var(--cd-radius); padding: 1.6rem; }
.cms-rich-content { color: var(--cd-muted); }
.cms-rich-content h1, .cms-rich-content h2, .cms-rich-content h3 { color: var(--cd-text); }
.cms-rich-content a { color: var(--cd-accent); }
.cms-rich-content .ql-align-center { text-align: center; }
.cms-rich-content .ql-align-right { text-align: right; }
.cms-rich-content .ql-align-justify { text-align: justify; }
.cms-rich-content .ql-size-small { font-size: 0.8em; }
.cms-rich-content .ql-size-large { font-size: 1.5em; }
.cms-rich-content .ql-size-huge { font-size: 2.2em; }

.cd-subhead { font-family: var(--cd-font-heading); font-size: 1.25rem; margin: 1.8rem 0 1rem; }
.cd-subhead:first-child { margin-top: 0; }

/* Accordion */
.syllabus-accordion, .accordion { border: 1px solid var(--cd-border); border-radius: var(--cd-radius); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--cd-border); }
.accordion-item:last-child { border-bottom: 0; }
.accordion-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.2rem; cursor: pointer; }
.accordion-header:hover { background: rgba(47, 140, 255, 0.06); }
.accordion-header:focus-visible { outline: 2px solid var(--cd-accent); outline-offset: -2px; background: rgba(47, 140, 255, 0.06); }
.accordion-header h4 { margin: 0; font-size: .98rem; }
.accordion-header i { transition: transform .25s ease; color: var(--cd-accent); }
.accordion-item.open .accordion-header i { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; padding: 0 1.2rem; transition: max-height .3s ease, padding .3s ease; }
.accordion-item.open .accordion-body { max-height: 600px; padding: 0 1.2rem 1.1rem; }
.accordion-body ul { margin: 0; padding-left: 1rem; }
.accordion-body li { color: var(--cd-muted); font-size: .88rem; margin-bottom: .35rem; list-style: none; position: relative; padding-left: 1rem; }
.accordion-body li::before { content: "\203A"; color: var(--cd-accent); position: absolute; left: 0; }
.accordion-body p { color: var(--cd-muted); font-size: .9rem; margin: 0; line-height: 1.55; }

/* Pill rows */
.cd-pill-row { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Cert badges */
.cert-badge {
  display: inline-flex;
  padding: .5rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--cd-border);
  background: var(--cd-surface-2);
  font-size: .85rem;
  transition: border-color .2s ease, color .2s ease;
}
.cert-badge:hover { border-color: var(--cd-accent); color: var(--cd-accent); }

/* Enquiry card */
.cd-side { position: relative; }
.enroll-card {
  position: sticky;
  top: calc(var(--cd-nav-height) + 1.2rem);
  background: var(--cd-surface);
  border: 1px solid var(--cd-border-strong);
  border-radius: var(--cd-radius-lg);
  padding: 1.6rem;
  box-shadow: var(--cd-shadow);
}
.enroll-card h3 { margin: 0 0 1rem; }
.course-info-list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.course-info-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--cd-border); font-size: .9rem; }
.course-info-list li:last-child { border-bottom: 0; }
.course-info-list .ok, .course-info-list .u-footer-link-active { color: #4ade80; font-weight: 600; }

.form-group { margin-bottom: .9rem; }
.form-control {
  width: 100%;
  padding: .75rem .9rem;
  border-radius: 10px;
  border: 1px solid var(--cd-border);
  background: rgba(5, 8, 22, 0.6);
  color: var(--cd-text);
  font-size: .92rem;
}
.form-control::placeholder { color: rgba(174, 187, 214, 0.6); }
.form-control:focus { outline: none; border-color: var(--cd-accent); }
select.form-control { color-scheme: dark; cursor: pointer; }
select.form-control option { background: var(--cd-bg-soft); color: var(--cd-text); }
select.form-control option:checked { background: var(--cd-accent); color: #ffffff; }
.form-error { display: block; color: #f87171; font-size: .78rem; min-height: 1rem; }
.form-consent-note { color: var(--cd-muted); font-size: .76rem; margin: .4rem 0 1rem; }
.form-success { color: #4ade80; font-size: .9rem; }
.u-note { color: var(--cd-muted); font-size: .8rem; margin-top: .9rem; }
.u-hidden-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Final CTA band ---------- */
.cd-cta {
  background:
    radial-gradient(900px 300px at 20% 0%, rgba(47, 140, 255, 0.25), transparent 60%),
    linear-gradient(135deg, #0d1c3d 0%, #0a1226 100%);
  border-top: 1px solid var(--cd-border);
}
.cd-cta-inner { text-align: center; padding: 3.2rem 0; }
.cd-cta h2 { margin: 0 0 .8rem; font-family: var(--cd-font-heading); font-size: clamp(1.6rem, 4vw, 2.4rem); }
.cd-cta p { color: var(--cd-muted); max-width: 620px; margin: 0 auto 1.6rem; }
.cd-trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; margin-top: 1.8rem; }
.cd-trust-badges span { display: inline-flex; align-items: center; gap: .5rem; color: var(--cd-muted); font-size: .85rem; }
.cd-trust-badges i { color: #4ade80; }

/* ---------- Testimonials (reused carousel) ---------- */
.testimonials-track {
  --testimonial-gap: 1.2rem;
  display: flex;
  gap: var(--testimonial-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: .5rem;
  scrollbar-width: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  flex: 0 0 calc((100% - var(--testimonial-gap)) / 2);
  min-width: 0;
  max-width: none;
  height: 460px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  padding: 1.4rem;
}
.testimonial-stars { color: #ffb547; margin-bottom: .85rem; flex: none; }
.testimonial-media { flex: none; margin: -.15rem 0 .9rem; }
.testimonial-video-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--cd-border);
  background: rgba(5, 12, 28, .78);
  color: var(--cd-text);
}
.testimonial-video-frame iframe,
.testimonial-video-frame video,
.testimonial-video-frame img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
}
.testimonial-video-link { text-decoration: none; }
.testimonial-video-link span {
  position: absolute;
  inset: auto .8rem .8rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .48rem .72rem;
  border-radius: 999px;
  background: rgba(3, 8, 21, .82);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
}
.testimonial-quote {
  color: var(--cd-muted);
  font-size: .9rem;
  font-style: italic;
  line-height: 1.65;
  margin: 0 0 1rem;
  padding-right: .4rem;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(87, 131, 219, 0.7) rgba(87, 131, 219, 0.14);
}
.testimonial-card-video .testimonial-quote { flex: 1 1 auto; min-height: 0; }
.testimonial-quote-empty { color: var(--cd-muted); font-style: normal; }
.testimonial-quote::-webkit-scrollbar { width: 6px; }
.testimonial-quote::-webkit-scrollbar-track { background: rgba(87, 131, 219, 0.14); border-radius: 999px; }
.testimonial-quote::-webkit-scrollbar-thumb { background: rgba(87, 131, 219, 0.7); border-radius: 999px; }
.testimonial-author { display: flex; align-items: center; gap: .8rem; margin-top: auto; flex: none; }
.testimonial-avatar { width: 42px; height: 42px; border-radius: 50%; background: rgba(47, 140, 255, 0.2); display: grid; place-items: center; font-weight: 700; overflow: hidden; }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-weight: 600; font-size: .92rem; }
.testimonial-role { color: var(--cd-muted); font-size: .8rem; }
.carousel-controls { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }
.carousel-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--cd-border-strong); background: var(--cd-surface); color: var(--cd-text); cursor: pointer; }
.carousel-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Skeleton / states ---------- */
.cd-skeleton { color: var(--cd-muted); }
.cd-error { color: #f87171; }

/* ---------- Footer ---------- */
.footer { background: #060a1c; border-top: 1px solid var(--cd-border); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.footer-brand p { color: var(--cd-muted); font-size: .9rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.social-link { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--cd-border); color: var(--cd-text); text-decoration: none; }
.social-link:hover { border-color: var(--cd-accent); color: var(--cd-accent); }
.footer-col h4 { margin: 0 0 1rem; font-size: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: var(--cd-muted); text-decoration: none; font-size: .9rem; }
.footer-col a:hover { color: var(--cd-accent); }
.footer-contact li { display: flex; gap: .5rem; color: var(--cd-muted); font-size: .88rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--cd-border); color: var(--cd-muted); font-size: .82rem; }
.footer-bottom a { color: var(--cd-muted); text-decoration: none; }

/* Utility */
.u-hidden, [hidden] { display: none !important; }

/* ---------- Learn + Tools row sections ---------- */
.cd-learn-tools-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.cd-learn-col h2, .cd-tools-col h2 { margin-top: 0; }

/* ---------- Section heading underline bar (matches mockup) ---------- */
.cd-learn-col h2,
.cd-tools-col h2,
#testimonials h2,
.cd-list-card h3 {
  position: relative;
  padding-bottom: .7rem;
}
.cd-learn-col h2::after,
.cd-tools-col h2::after,
#testimonials h2::after,
.cd-list-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--cd-accent);
}
.cd-learn-by-doing { display: flex; gap: 1rem; margin-top: 1.1rem; align-items: flex-start; }
.cd-learn-by-doing h3 { margin: 0 0 .3rem; font-size: 1.02rem; }
.cd-learn-by-doing p { margin: 0; color: var(--cd-muted); font-size: .9rem; }

/* ---------- Trio CTA buttons ---------- */
.cd-trio-cta { margin-top: 1.2rem; align-self: flex-start; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .testimonial-card { flex-basis: calc((100% - var(--testimonial-gap)) / 2); }
}

@media (max-width: 640px) {
  .testimonials-track { --testimonial-gap: 1rem; }
  .testimonial-card { flex-basis: 100%; height: 430px; padding: 1.25rem; }
}

@media (min-width: 768px) {
  .cd-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cd-learn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cd-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cd-hero-highlights { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; }
  .cd-hero-highlights li { padding: .85rem .5rem; font-size: .76rem; gap: .45rem; }
  .cd-hero-highlights i { width: 36px; height: 36px; font-size: .95rem; }
}

@media (min-width: 992px) {
  .cd-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; }
  /* No hero media: collapse to a single full-width copy column instead of
     reserving ~53% blank space for the absolutely-positioned image. */
  .cd-hero-grid:not(:has(.cd-hero-media:not([hidden]))) { grid-template-columns: minmax(0, 1fr); }
  .cd-hero-copy { position: relative; z-index: 2; align-self: center; }
  .cd-hero-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 56%;
    margin: 0;
    border-radius: 0;
  }
  .cd-hero-media img,
  .cd-hero-media video { height: 100%; min-height: 0; }
  .cd-stats-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cd-content-grid { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); }
  .cd-learn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cd-tools-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .cd-hero-media {
    -webkit-clip-path: none;
    clip-path: none;
  }
}

@media (max-width: 992px) {
  .enroll-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .cd-stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
