/* ==========================================================================
   Rich course page (course.html when Academy.coursePages has the slug)
   Mirrors the marketing page: blue hero, pill tab row, light-blue body with
   white cards and check bullets. Scoped to .cp- so nothing leaks into the
   generic course layout, which other courses still use.
   ========================================================================== */

/* ---- hero -------------------------------------------------------------- */
.cp-hero {
  background: #0E3FBF url('../assets/course/hero-blue.webp') center / cover no-repeat;
  color: #fff;
  padding: 56px 0 64px;
}
.cp-hero .container { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 44px; align-items: center; }
.cp-badges {
  font-family: var(--font-label); font-size: 12px; letter-spacing: 2.4px;
  text-transform: uppercase; color: var(--yellow); margin-bottom: 14px;
}
.cp-hero h1 { color: #fff; font-size: 40px; line-height: 1.12; margin: 0 0 16px; }
.cp-hero .cp-intro p { color: rgba(255,255,255,.88); font-size: 16.5px;
  line-height: 1.65; margin: 0 0 12px; max-width: 60ch; }
.cp-chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.cp-chip {
  font-family: var(--font-label); font-size: 12.5px; padding: 6px 13px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  color: #fff; background: rgba(255,255,255,.08); white-space: nowrap;
}

/* Video and purchase share the hero's right column: the two things a visitor
   came for, both above the fold. */
.cp-hero-side { display: flex; flex-direction: column; gap: 16px; }
.cp-video {
  aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 14px;
  box-shadow: 0 18px 50px rgba(4, 18, 60, .45); display: block; background: #06122E;
}
.cp-buy {
  background: #fff; border-radius: 14px; padding: 20px 22px;
  box-shadow: 0 18px 50px rgba(4, 18, 60, .35); color: var(--ink);
}
.cp-buy .ap-price { font-family: var(--font-head); font-weight: 700;
  font-size: 30px; color: var(--ink); }
.cp-buy .ap-note { color: var(--text-mid); font-size: 13.5px; margin: 6px 0 12px; }
.cp-buy .ap-fine { color: var(--text-mid); font-size: 12.5px; margin-top: 10px; }
.cp-buy .btn { width: 100%; justify-content: center; }
.cp-buy .mini-progress { margin-bottom: 8px; }
.cp-buy .countdown { margin-top: 10px; }

/* ---- tab row ----------------------------------------------------------- */
.cp-tabs {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 22px 0 0;
}
/* Rectangular, matching the marketing site: hover fills BLUE, the selected tab
   holds the slate grey. Hover brighter than selected reads odd until you watch
   someone use it: hover answers "what happens if I click", selected answers
   "where am I", and the site keeps those two jobs in two colours. */
.cp-tabs button {
  font-family: var(--font-label); font-size: 13.5px; cursor: pointer;
  background: #fff; color: var(--text-dark);
  border: 1px solid var(--line); border-radius: 4px; padding: 12px 20px;
  box-shadow: 0 2px 6px rgba(16,24,40,.05);
}
.cp-tabs button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.cp-tabs button.on { background: #5B7186; border-color: #5B7186; color: #fff; }

/* ---- body -------------------------------------------------------------- */
/* The marketing page floats white cards on a soft blue field; same here. */
.cp-body { background: linear-gradient(180deg, #E9F1FB 0%, #D8E6F7 100%);
  padding: 26px 0 70px; }
.cp-panel[hidden] { display: none; }
.cp-card {
  background: #fff; border-radius: 16px; padding: 30px 32px;
  box-shadow: 0 10px 30px rgba(16,24,40,.08); margin-top: 22px;
}
.cp-kick {
  display: inline-block; font-family: var(--font-label); font-size: 11.5px;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 5px 12px;
  margin-bottom: 12px;
}
.cp-kick.alt { color: #C2571B; background: #FDEFE4; }
.cp-card h2 { font-size: 27px; margin: 0 0 12px; color: var(--ink); }
.cp-card h3 { font-size: 18px; margin: 0 0 10px; color: var(--ink); }
.cp-card p { color: var(--text-dark); font-size: 15px; line-height: 1.65; }
.cp-card p + p { margin-top: 10px; }

.cp-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.cp-col { background: #F7FAFD; border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; }
.cp-col p { font-size: 14px; }

/* Check bullets, matching the marketing page's blue circled ticks. */
ul.cp-check { list-style: none; margin: 8px 0 0; padding: 0; }
ul.cp-check li { position: relative; padding: 0 0 10px 30px;
  color: var(--text-dark); font-size: 14.5px; line-height: 1.55; }
ul.cp-check li::before {
  content: '\2713'; position: absolute; left: 0; top: 1px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
ul.cp-check li b { color: var(--ink); }
ul.cp-check li span { display: block; color: var(--text-mid); font-size: 13.5px; }

.cp-outcome {
  border-left: 4px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 12px 12px 0; padding: 16px 20px; margin-top: 22px;
}
.cp-outcome b { color: var(--ink); }
.cp-outcome p { font-size: 14.5px; margin-top: 4px; }

/* What you'll learn: the source's asymmetric pair - one tall card on the left,
   two stacked on the right. Slightly wider right column, as on the source. */
.cp-learn-grid { display: grid; grid-template-columns: .94fr 1.06fr; gap: 22px;
  align-items: start; margin-top: 22px; }
.cp-learn-grid .cp-card { margin-top: 0; }
.cp-learn-right { display: grid; gap: 22px; }

/* Numbered module accordion, like the source's 01-05 rows. */
.cp-mods-head { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; }
.cp-mods-head .btn { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 560px) {
  .cp-mods-head { flex-direction: column; }
}
.cp-mods { margin-top: 8px; }
.cp-mods details { border-bottom: 1px solid var(--line); }
.cp-mods details:last-child { border-bottom: 0; }
.cp-mods summary { cursor: pointer; list-style: none; display: flex;
  align-items: center; gap: 14px; padding: 15px 2px; }
.cp-mods summary::-webkit-details-marker { display: none; }
.cp-mods .num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: #EFF4FA; color: var(--text-mid); font-family: var(--font-label);
  font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.cp-mods .mt { flex: 1 1 auto; font-weight: 600; color: var(--ink); font-size: 14.5px; }
.cp-mods .mm { flex: 0 0 auto; color: var(--text-mid); font-size: 12px; }
.cp-mods summary::after { content: '+'; color: var(--text-mid); font-size: 18px; }
.cp-mods details[open] summary::after { content: '\2212'; }
.cp-mods ul { list-style: none; margin: 0 0 14px; padding: 0 2px 0 44px; }
.cp-mods li { display: flex; align-items: baseline; gap: 8px; padding: 4px 0;
  font-size: 13.5px; color: var(--text-dark); }

/* Part 1/2/3 focus cards */
.cp-parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
/* Stacked variant for the left column of the learn tab, like the source's
   Day 1/2/3 list. */
.cp-parts.stacked { grid-template-columns: 1fr; }
.cp-parts.stacked .cp-part h3 { font-size: 14px; }
.cp-part { background: #F7FAFD; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.cp-part .k { font-family: var(--font-label); font-size: 11px; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--accent); }
.cp-part h3 { font-size: 15.5px; margin: 8px 0 8px; text-transform: uppercase;
  letter-spacing: .4px; }
.cp-part p { font-size: 13.5px; color: var(--text-mid); }

/* Two-column feature cards ("what you'll be able to do", "why different") */
.cp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.cp-tile { background: #F7FAFD; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; }
.cp-tile .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--accent);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; margin-bottom: 10px; }
.cp-tile h3 { font-size: 15.5px; margin: 0 0 6px; }
.cp-tile p { font-size: 13.5px; color: var(--text-mid); }

/* Two independent cards side by side - the marketing page's signature layout
   for Who it's for, Instructor and Certificate. align-items stretch on purpose:
   uneven card bottoms read as a mistake when they sit on a shared field. */
.cp-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  align-items: stretch; margin-top: 22px; }
.cp-duo .cp-card { margin-top: 0; }

/* Instructor */
.cp-inst img { width: 100%; border-radius: 12px; border: 1px solid var(--line);
  display: block; }
.cp-photo-frame { background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 10px; box-shadow: 0 8px 22px rgba(16,24,40,.07); }
.cp-inst-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.cp-inst-stats div { background: #fff; border: 1px solid var(--line); border-radius: 10px;
  text-align: center; padding: 14px 8px; }
.cp-inst-stats b { display: block; color: var(--accent); font-size: 21px;
  font-family: var(--font-head); }
.cp-inst-stats span { font-size: 11.5px; color: var(--text-mid); }

/* The bordered "Career highlights" box on the left instructor card. */
.cp-highlights { background: #F7FAFD; border: 1px solid var(--line);
  border-radius: 12px; padding: 18px; margin-top: 18px; }
.cp-highlights h3 { margin-bottom: 12px; }

/* Orange informational banner (Training approach, On-Demand edition). */
.cp-note-orange { background: #FDF3EA; border: 1px solid #F6DFC9;
  border-radius: 12px; padding: 16px 20px; margin-top: 18px; text-align: center; }
.cp-note-orange .cp-kick { display: inline-block; margin-bottom: 8px; }
.cp-note-orange b { color: var(--ink); display: block; margin-bottom: 4px; }
.cp-note-orange p { font-size: 13.5px; color: var(--text-dark); }

/* Section subheads inside the certificate right card. */
.cp-subhead { font-family: var(--font-label); font-size: 12px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--ink); margin: 20px 0 8px;
  padding-top: 16px; border-top: 1px solid var(--line); }
.cp-subhead:first-of-type { border-top: 0; padding-top: 0; }

/* FAQ */
.cp-faq details { border-bottom: 1px solid var(--line); }
.cp-faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 14px; padding: 15px 2px; font-weight: 600;
  color: var(--ink); font-size: 15px;
}
.cp-faq summary::-webkit-details-marker { display: none; }
.cp-faq summary::after { content: '+'; color: var(--text-mid); font-size: 19px; }
.cp-faq details[open] summary::after { content: '\2212'; }
.cp-faq details p { padding: 0 2px 15px; font-size: 14px; color: var(--text-dark); }

/* Testimonials */
.cp-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.cp-quote { background: #F7FAFD; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.cp-quote .stars { color: #F5A623; letter-spacing: 2px; font-size: 13px; }
.cp-quote p { font-size: 13.5px; color: var(--text-dark); margin-top: 8px; font-style: italic; }
.cp-quote footer { margin-top: 10px; font-size: 12.5px; color: var(--text-mid); }
.cp-quote footer b { color: var(--ink); }

/* Per-tab CTA row */
.cp-cta { display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap; margin-top: 22px; padding: 18px; background: #F7FAFD;
  border: 1px solid var(--line); border-radius: 12px; }
.cp-cta p { font-size: 14px; color: var(--text-mid); flex-basis: 100%; text-align: center; margin: 0 0 4px; }

/* ---- responsive -------------------------------------------------------- */
@media (max-width: 980px) {
  .cp-hero .container { grid-template-columns: 1fr; }
  .cp-cols, .cp-parts, .cp-quotes { grid-template-columns: 1fr; }
  .cp-grid2 { grid-template-columns: 1fr; }
  .cp-duo { grid-template-columns: 1fr; }
  .cp-hero h1 { font-size: 31px; }
}
