/* Course details page in the client's new design: the real course page (public/course) and the review mockups (/mockup/course-*).
   Everything is scoped under #cmPage; builder-made page sections keep css/course.css inside a .cp-scope wrapper. */
#cmPage {
    --cm-green: #004238;
    --cm-deep: #01372f;
    --cm-hero: #173f33;
    --cm-accent: #DDE48A;
    --cm-accent-2: #D5D52B;
    --cm-cream: #F6F5EE;
    --cm-sage: #E9ECE3;
    --cm-ink: #0c1f1a;
    --cm-muted: #5B6760;
    --cm-line: #E4E3DA;
    --cm-line-2: #D7D8CD;
    background: #fff;
    color: var(--cm-ink);
    font-size: 16px;
    line-height: 1.5;
}
#cmPage *, #cmPage *::before, #cmPage *::after { box-sizing: border-box; }
#cmPage section { scroll-margin-top: calc(var(--site-header-h, 76px) + 64px); }
:where(#cmPage) h1, :where(#cmPage) h2, :where(#cmPage) h3, :where(#cmPage) h4 { margin: 0; color: var(--cm-green); font-weight: 500; }
:where(#cmPage) p { margin: 0; }
:where(#cmPage) ul, :where(#cmPage) ol { margin: 0; padding: 0; list-style: none; }
:where(#cmPage) a { text-decoration: none; color: inherit; }
#cmPage img { display: block; max-width: 100%; }
#cmPage svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.cm-wrap { max-width: 1240px; margin: 0 auto; padding: 88px 32px; }
.cm-cream { background: var(--cm-cream); }
.cm-white { background: #fff; }
.cm-sage { background: var(--cm-sage); }
.cm-dark { background: var(--cm-hero); color: #fff; }
.cm-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cm-green); display: flex; align-items: center; gap: 10px; margin-bottom: 16px !important; }
.cm-eyebrow::before { content: ""; width: 7px; height: 7px; background: currentColor; }
.cm-dark .cm-eyebrow { color: var(--cm-accent); }
.cm-h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.14; letter-spacing: -0.02em; margin-bottom: 18px; }
.cm-dark .cm-h2 { color: #fff; }
.cm-muted { color: var(--cm-muted); font-size: 15px; line-height: 1.7; }
.cm-small { color: var(--cm-muted); font-size: 13px; line-height: 1.6; }
.cm-split { display: grid; grid-template-columns: 1fr 1.7fr; gap: 72px; align-items: start; }
.cm-half { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

/* buttons */
.cm-btn { display: inline-flex; align-items: center; gap: 16px; font-weight: 600; font-size: 14px; padding: 13px 18px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .1s ease-out, background-color .15s, border-color .15s; }
.cm-btn:active { transform: scale(.97); }
.cm-btn svg { width: 16px !important; height: 16px !important; }
.cm-btn-dark { background: var(--cm-hero); color: #fff !important; }
.cm-btn-dark:hover { background: var(--cm-deep); }
.cm-btn-line { background: #fff; color: var(--cm-green) !important; border-color: var(--cm-line-2); }
.cm-btn-line:hover { border-color: var(--cm-green); }
.cm-btn-accent { background: var(--cm-accent); color: var(--cm-deep) !important; }
.cm-btn-accent:hover { background: var(--cm-accent-2); }
.cm-textlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; color: var(--cm-green) !important; }
.cm-textlink svg { width: 14px; height: 14px; }
.cm-textlink:hover { text-decoration: underline; }

/* hero */
.cm-hero { background: var(--cm-cream); }
.cm-hero .cm-wrap { padding-top: 18px; padding-bottom: 64px; }
.cm-crumbs { display: flex; gap: 10px; font-size: 12.5px; color: var(--cm-muted); margin-bottom: 40px; }
.cm-crumbs span:last-child { color: var(--cm-ink); }
.cm-crumbs a:hover { color: var(--cm-green); text-decoration: underline; }
.cm-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.cm-hero-tag { display: flex; align-items: center; gap: 12px; }
.cm-hero-tag .cm-eyebrow { margin-bottom: 0 !important; }
.cm-pill { font-size: 12px; font-weight: 600; background: var(--cm-accent); color: var(--cm-deep); border-radius: 4px; padding: 4px 10px; }
.cm-hero h1 { font-size: 60.72px; line-height: 1.06; letter-spacing: -0.025em; margin: 22px 0 24px; }
.cm-by { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--cm-ink); margin-bottom: 22px; }
.cm-by img { height: 30px; width: auto; }
.cm-by .cm-ini { width: 30px; height: 30px; border-radius: 50%; background: var(--cm-sage); color: var(--cm-green); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.cm-lead { font-size: 17px; color: var(--cm-muted); line-height: 1.6; max-width: 50ch; margin-bottom: 28px !important; }
.cm-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.cm-hero-media { position: relative; padding-bottom: 30px; }
.cm-hero-media > img { width: 100%; aspect-ratio: 8 / 7; object-fit: cover; border-radius: 10px 80px 10px 10px; }
.cm-hero-note { position: absolute; left: -18px; bottom: 0; display: flex; align-items: flex-start; gap: 12px; background: var(--cm-accent); border-radius: 8px; padding: 16px 22px 16px 18px; min-width: 70%; }
.cm-hero-note svg { color: var(--cm-green); margin-top: 2px; }
.cm-hero-note b { display: block; font-weight: 500; font-size: 16px; color: var(--cm-ink); }
.cm-hero-note small { font-size: 12px; color: var(--cm-muted); }

/* key facts strip */
.cm-facts { background: var(--cm-cream); border-top: 1px solid var(--cm-line); }
.cm-facts .cm-wrap { padding-top: 28px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.cm-fact small { display: block; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--cm-muted); margin-bottom: 8px; }
.cm-fact b { display: block; font-weight: 400; font-size: 18px; line-height: 1.35; color: var(--cm-ink); }
.cm-fact span { display: block; font-size: 12px; color: var(--cm-muted); margin-top: 6px; }

/* section tabs */
.cm-tabs { position: sticky; top: var(--site-header-h, 76px); z-index: 20; background: #fff; border-top: 1px solid var(--cm-line); border-bottom: 1px solid var(--cm-line); }
.cm-tabs .cm-wrap { padding-top: 0; padding-bottom: 0; display: flex; justify-content: space-between; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.cm-tabs .cm-wrap::-webkit-scrollbar { display: none; }
.cm-tabs a { flex: none; padding: 20px 0 18px; font-size: 13.5px; color: var(--cm-muted); border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.cm-tabs a:hover, .cm-tabs a.is-on { color: var(--cm-ink); border-bottom-color: var(--cm-green); }

/* overview */
.cm-overview p + p { margin-top: 18px !important; }
.cm-learn { background: var(--cm-cream); border-radius: 10px; padding: 28px 28px 30px; }
.cm-learn h3 { font-size: 22px; margin-bottom: 18px; }
.cm-learn li { display: grid; grid-template-columns: 28px 1fr; gap: 6px 4px; padding: 10px 0; }
.cm-learn li svg { width: 18px; height: 18px; color: var(--cm-green); margin-top: 2px; }
.cm-learn li b { font-weight: 500; font-size: 16px; color: var(--cm-ink); }
.cm-learn li p { grid-column: 2; font-size: 13px; color: var(--cm-muted); line-height: 1.55; }

/* degree structure accordion */
.cm-note { display: flex; gap: 12px; align-items: flex-start; background: var(--cm-sage); border-radius: 8px; padding: 16px 18px; margin-top: 26px; font-size: 13px; color: var(--cm-ink); line-height: 1.6; }
.cm-note svg { width: 17px; height: 17px; color: var(--cm-green); margin-top: 1px; }
.cm-levels { display: flex; flex-direction: column; gap: 14px; }
.cm-levels details { background: #fff; border: 1px solid var(--cm-line); border-radius: 10px; }
.cm-levels summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px 1fr 20px; gap: 18px; align-items: center; padding: 22px 26px 22px 22px; }
.cm-levels summary::-webkit-details-marker { display: none; }
.cm-levels summary > b { font-size: 36px; font-weight: 400; color: var(--cm-green); line-height: 1; text-align: center; }
.cm-levels summary strong { display: block; font-weight: 500; font-size: 19px; color: var(--cm-green); }
.cm-levels summary small { font-size: 12px; color: var(--cm-muted); }
.cm-levels summary > svg { width: 16px; height: 16px; transition: transform .2s; }
.cm-levels details[open] summary > svg { transform: rotate(180deg); }
.cm-levels ul { padding: 0 26px 20px 80px; }
.cm-levels li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--cm-line); font-size: 14px; color: var(--cm-ink); }
.cm-levels li span { font-size: 12.5px; color: var(--cm-muted); white-space: nowrap; }

/* skill bridge weeks */
.cm-weeks-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 26px; }
.cm-weeks-head .cm-h2 { max-width: 18ch; margin-bottom: 0; }
.cm-weeks-head b { display: block; font-size: 19px; font-weight: 500; color: var(--cm-ink); margin-bottom: 6px; }
.cm-weeks-head p { font-size: 13px; color: var(--cm-muted); max-width: 34ch; }
.cm-weeks { display: flex; flex-direction: column; gap: 16px; }
.cm-week { display: grid; grid-template-columns: 245px 1fr; background: #fff; border: 1px solid var(--cm-line); border-radius: 10px; overflow: hidden; }
.cm-week-side { background: var(--cm-sage); padding: 22px 22px 24px; }
.cm-week-side small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cm-green); margin-bottom: 10px; }
.cm-week-side h3 { font-size: 19px; line-height: 1.2; margin-bottom: 12px; }
.cm-week-side span { font-size: 11.5px; color: var(--cm-muted); }
.cm-week ul { padding: 8px 22px; }
.cm-week li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--cm-line); font-size: 13.5px; color: var(--cm-ink); }
.cm-week li svg { width: 16px; height: 16px; color: var(--cm-green); }
.cm-week li em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--cm-muted); }

/* entry routes (degree) */
.cm-routes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cm-route { background: var(--cm-cream); border-radius: 10px; padding: 24px 22px 26px; }
.cm-route svg, .cm-route-wide svg { width: 18px; height: 18px; color: var(--cm-green); margin-bottom: 12px; }
.cm-route h3, .cm-route-wide h3 { font-size: 19px; margin-bottom: 10px; }
.cm-route p, .cm-route-wide p { font-size: 13.5px; color: var(--cm-muted); line-height: 1.7; }
.cm-route-wide { grid-column: 1 / -1; background: #fff; border: 1px solid var(--cm-line); border-radius: 10px; padding: 22px 22px 24px; }
.cm-route-wide h3 { display: flex; align-items: center; gap: 10px; }
.cm-route-wide h3 svg { margin: 0; }

/* fees (degree) */
.cm-fee-list { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.cm-fee-list li { display: grid; grid-template-columns: 28px 1fr; gap: 2px 2px; }
.cm-fee-list svg { width: 18px; height: 18px; color: var(--cm-green); margin-top: 2px; }
.cm-fee-list b { font-weight: 500; font-size: 16px; color: var(--cm-ink); }
.cm-fee-list p { grid-column: 2; font-size: 12.5px; color: var(--cm-muted); line-height: 1.55; }
.cm-price { background: var(--cm-hero); color: #fff; border-radius: 12px; padding: 30px 28px 28px; }
.cm-price-top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--cm-accent); font-weight: 700; }
.cm-price-top span:last-child { color: rgba(255, 255, 255, .7); font-weight: 400; letter-spacing: 0; }
.cm-price > b { display: block; font-size: clamp(44px, 5vw, 60px); font-weight: 400; line-height: 1.1; margin: 22px 0 18px; letter-spacing: -0.02em; }
.cm-price > p { font-size: 13.5px; color: rgba(255, 255, 255, .8); line-height: 1.6; }
.cm-price-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 22px 0; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .15); border-bottom: 1px solid rgba(255, 255, 255, .15); }
.cm-price-split small { display: block; font-size: 12px; color: rgba(255, 255, 255, .7); margin-bottom: 4px; }
.cm-price-split span { font-size: 21px; }
.cm-price-act { display: flex; align-items: center; gap: 22px; }
.cm-price-act .cm-textlink { color: #fff !important; }

/* admission steps (degree) */
.cm-steps-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.cm-steps-head .cm-h2 { margin-bottom: 10px; }
.cm-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.cm-steps li small { display: flex; align-items: center; gap: 12px; font-size: 11.5px; font-weight: 600; color: var(--cm-green); margin-bottom: 18px; }
.cm-steps li small::after { content: ""; flex: 1; height: 1px; background: var(--cm-line-2); }
.cm-steps li h3 { font-size: 18px; line-height: 1.25; margin-bottom: 12px; }
.cm-steps li p { font-size: 12.5px; color: var(--cm-muted); line-height: 1.7; }

/* outcomes stats (degree) */
.cm-stats-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .15); margin-bottom: 36px; }
.cm-stats-head p { font-size: 15px; color: rgba(255, 255, 255, .85); line-height: 1.6; }
.cm-stats-head p small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .65); margin-top: 12px; }
.cm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.cm-stats b { display: block; font-size: clamp(38px, 4vw, 52px); font-weight: 400; color: var(--cm-accent); line-height: 1.1; margin-bottom: 14px; }
.cm-stats strong { display: block; font-weight: 400; font-size: 16px; color: #fff; line-height: 1.35; margin-bottom: 12px; }
.cm-stats p { font-size: 12px; color: rgba(255, 255, 255, .68); line-height: 1.6; }
.cm-source { margin-top: 40px; font-size: 11px; color: rgba(255, 255, 255, .6); }

/* university / partner: the degree mockup and the course page's partner-only block (public/partials/course-people) */
.cm-uni { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: start; }
.cm-uni-card { background: var(--cm-cream); border-radius: 12px; padding: 34px 28px; }
.cm-uni-card img { height: 72px; width: auto; max-width: 100%; object-fit: contain; object-position: left; margin-bottom: 30px; }
.cm-uni-card h3 { font-size: 19px; margin-bottom: 18px; }
.cm-uni-card p { font-size: 12.5px; color: var(--cm-muted); }
.cm-uni-card hr { border: 0; border-top: 1px solid var(--cm-line-2); margin: 22px 0; }
.cm-uni-card b { display: block; font-weight: 400; font-size: 25px; color: var(--cm-green); margin-bottom: 12px; }
.cm-uni-text p { font-size: 14.5px; color: var(--cm-muted); line-height: 1.75; margin-bottom: 18px !important; }
.cm-callout { display: flex; gap: 14px; align-items: flex-start; background: var(--cm-sage); border-radius: 8px; padding: 18px 22px; margin: 6px 0 20px; font-size: 14px; color: var(--cm-ink); line-height: 1.6; }
.cm-callout svg { color: var(--cm-green); margin-top: 1px; }

/* enquiry (degree) */
.cm-enquire { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.cm-enquire-side .cm-h2 { margin-bottom: 26px; }
.cm-enquire-side h3 { font-size: 19px; line-height: 1.4; margin-bottom: 18px; }
.cm-enquire-side hr { border: 0; border-top: 1px solid var(--cm-line-2); margin: 26px 0 18px; }
.cm-mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--cm-green) !important; }
.cm-mail svg { width: 17px; height: 17px; }
.cm-form { background: var(--cm-cream); border-radius: 12px; padding: 28px 28px 30px; }
.cm-form-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.cm-form-head h3 { font-size: 21px; }
.cm-form-head small { font-size: 11px; color: var(--cm-muted); }
.cm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cm-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.cm-field label { font-size: 12.5px; font-weight: 600; color: var(--cm-ink); margin: 0; }
#cmPage .cm-field input, #cmPage .cm-field textarea { width: 100%; border: 1px solid var(--cm-line-2); border-radius: 6px; background: #fff; padding: 12px 14px; font: inherit; font-size: 14px; color: var(--cm-ink); box-shadow: none; height: auto; }
#cmPage .cm-field textarea { min-height: 96px; resize: vertical; }
#cmPage .cm-field input:focus, #cmPage .cm-field textarea:focus { outline: none; border-color: var(--cm-green); box-shadow: 0 0 0 3px rgba(0, 66, 56, .08); }
.cm-form > p { font-size: 11.5px; color: var(--cm-muted); margin: 4px 0 18px !important; }
.cm-form > p a { color: var(--cm-green); text-decoration: underline; }

/* skill bridge: outcomes list */
.cm-outcomes li { display: grid; grid-template-columns: 32px 1fr; gap: 4px 0; padding: 22px 0; border-bottom: 1px solid var(--cm-line); }
.cm-outcomes li:first-child { padding-top: 0; }
.cm-outcomes svg { width: 18px; height: 18px; color: var(--cm-green); margin-top: 3px; }
.cm-outcomes b { font-weight: 500; font-size: 19px; color: var(--cm-green); }
.cm-outcomes p { grid-column: 2; font-size: 14px; color: var(--cm-muted); line-height: 1.7; margin-top: 4px !important; }
.cm-quote { background: var(--cm-sage); border-radius: 10px; padding: 26px 22px 28px; margin-top: 28px; }
.cm-quote svg { width: 24px; height: 24px; color: var(--cm-green); margin-bottom: 16px; }
.cm-quote b { display: block; font-weight: 400; font-size: 20px; line-height: 1.3; color: var(--cm-green); }

/* three columns with icons */
.cm-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cm-cols > div { display: flex; flex-direction: column; gap: 10px; }
.cm-cols.is-ruled > div { border-top: 1px solid var(--cm-line-2); padding-top: 24px; }
.cm-cols.is-padded > div { padding: 0 22px; }
.cm-cols svg { width: 20px; height: 20px; color: var(--cm-green); margin-bottom: 8px; }
.cm-cols h3 { font-size: 19px; line-height: 1.3; }
.cm-cols p { font-size: 14px; color: var(--cm-muted); line-height: 1.7; }

/* skill bridge: certificate */
.cm-cert { display: grid; grid-template-columns: 275px 1fr; gap: 68px; align-items: center; }
.cm-cert-card { background: #fff; border: 1px solid var(--cm-line); padding: 26px 26px 22px; text-align: center; }
.cm-cert-card img { height: 34px; width: auto; margin: 0 auto 20px; }
.cm-cert-card svg { width: 30px; height: 30px; color: var(--cm-green); margin: 0 auto 14px; }
.cm-cert-card small { display: block; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--cm-muted); margin-bottom: 12px; }
.cm-cert-card h4 { font-size: 22px; line-height: 1.2; margin-bottom: 12px; }
.cm-cert-card p { font-size: 12px; color: var(--cm-muted); }
.cm-cert-card i { display: block; width: 60px; height: 3px; background: var(--cm-accent); border-radius: 2px; margin: 16px auto 18px; }
.cm-cert-card span { font-size: 11px; color: var(--cm-muted); }
.cm-cert .cm-muted { margin-bottom: 22px !important; max-width: 70ch; }

/* skill bridge: educator */
.cm-edu { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: center; }
.cm-edu-photo { aspect-ratio: 9 / 8; background: var(--cm-hero); border-radius: 10px 60px 10px 10px; display: flex; align-items: center; justify-content: center; font-size: 90px; color: var(--cm-accent); letter-spacing: -0.02em; }
.cm-edu h2 { font-size: 34px; margin-bottom: 10px; }
.cm-edu-role { font-size: 14px; color: var(--cm-muted); margin-bottom: 18px !important; }
.cm-edu .cm-muted { margin-bottom: 22px !important; }

/* skill bridge: share bar */
.cm-share { background: var(--cm-sage); }
.cm-share .cm-wrap { padding-top: 26px; padding-bottom: 26px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cm-share h3 { font-size: 19px; margin-bottom: 4px; }
.cm-share p { font-size: 12.5px; color: var(--cm-muted); }
.cm-share-icons { display: flex; gap: 10px; }
.cm-share-icons a { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--cm-green); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; transition: background-color .15s; }
.cm-share-icons a:hover { background: var(--cm-accent); }
.cm-share-icons svg { width: 14px; height: 14px; }

/* other directions */
.cm-more-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.cm-more-head .cm-h2 { margin-bottom: 0; }
.cm-more { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cm-more a { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--cm-line); border-radius: 10px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.cm-more a:hover { box-shadow: 0 16px 32px -22px rgba(12, 31, 26, .45); transform: translateY(-2px); }
.cm-more img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cm-more div { display: flex; flex-direction: column; flex: 1; padding: 16px 14px 14px; }
.cm-more small { font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--cm-muted); margin-bottom: 18px; }
.cm-more b { font-weight: 400; font-size: 16px; line-height: 1.3; color: var(--cm-green); min-height: 3.9em; }
.cm-more i { font-style: normal; font-size: 11.5px; color: var(--cm-muted); margin: 18px 0 12px; }
.cm-more span { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--cm-line); font-size: 12px; font-weight: 600; color: var(--cm-green); }
.cm-more span svg { width: 13px; height: 13px; }

@media (max-width: 1100px) {
    .cm-more { grid-template-columns: repeat(3, 1fr); }
    .cm-steps { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
}
@media (max-width: 991px) {
    .cm-wrap { padding: 60px 20px; }
    .cm-hero-grid, .cm-split, .cm-half, .cm-uni, .cm-enquire, .cm-cert, .cm-edu, .cm-stats-head { grid-template-columns: 1fr; gap: 40px; }
    .cm-facts .cm-wrap { grid-template-columns: repeat(3, 1fr); }
    .cm-stats { grid-template-columns: 1fr 1fr; }
    .cm-cols { grid-template-columns: 1fr; gap: 28px; }
    .cm-cols.is-padded > div { padding: 0; }
    .cm-hero-note { left: 12px; }
    .cm-weeks-head, .cm-steps-head, .cm-more-head { flex-direction: column; align-items: flex-start; }
    .cm-cert-card { max-width: 320px; }
}
@media (max-width: 680px) {
    .cm-hero h1 { font-size: 42px; }
    .cm-wrap { padding: 48px 16px; }
    .cm-facts .cm-wrap { grid-template-columns: 1fr 1fr; }
    .cm-routes, .cm-row, .cm-price-split { grid-template-columns: 1fr; }
    .cm-steps { grid-template-columns: 1fr; }
    .cm-stats { grid-template-columns: 1fr; }
    .cm-week { grid-template-columns: 1fr; }
    .cm-levels ul { padding-left: 22px; }
    .cm-more { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    #cmPage * { transition: none !important; }
}

/* ===== Real course page additions (public/course.blade.php) ===== */
/* rich text written in the builder (description, enquiry copy) */
.cm-body { color: var(--cm-muted); font-size: 15px; line-height: 1.75; }
.cm-body p { margin: 0 0 16px !important; }
.cm-body h2, .cm-body h3, .cm-body h4 { font-size: 19px; color: var(--cm-green); margin: 22px 0 10px; }
.cm-body ul, .cm-body ol { margin: 0 0 16px; padding-left: 20px; list-style: revert; }
.cm-body li { margin-bottom: 6px; }
.cm-body a { color: var(--cm-green); text-decoration: underline; }
.cm-body blockquote { margin: 0 0 16px; padding: 6px 18px; border-left: 3px solid var(--cm-green); color: var(--cm-ink); font-style: italic; }
#cmPage .content-img { width: 100%; height: auto; border-radius: 10px; margin-top: 26px; }
.cm-half.is-solo { grid-template-columns: minmax(0, 820px); }

/* hero: the price under the buttons, and the enrolled tick */
.cm-hero-actions form { margin: 0; }
.cm-price-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cm-price-line b { font-size: 26px; font-weight: 500; color: var(--cm-green); }
.cm-price-line s { font-size: 14px; color: var(--cm-muted); }
.cm-price-line .cm-off { font-size: 12px; font-weight: 600; background: var(--cm-accent); color: var(--cm-deep); border-radius: 4px; padding: 3px 8px; }
.cm-price-line small { flex-basis: 100%; font-size: 11.5px; color: var(--cm-muted); }
.cm-enrolled { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #1f9d63; margin-top: 4px; }
.cm-enrolled svg { width: 16px; height: 16px; }
.cm-notice { font-size: 13px; color: var(--cm-muted); background: #fff; border: 1px solid var(--cm-line-2); border-radius: 6px; padding: 10px 14px; }
.cm-by a { color: var(--cm-ink); font-weight: 600; }
.cm-by a:hover { color: var(--cm-green); text-decoration: underline; }
.cm-by .cm-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.cm-by .cm-logo { height: 30px; width: auto; max-width: 120px; object-fit: contain; }

/* key facts: the highlight cards (own first, standard cards in the free slots) */
.cm-fact h4 { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cm-muted); margin: 0 0 8px; }
#cmPage .cm-fact h4 svg, #cmPage .cm-fact h4 img { width: 16px; height: 16px; object-fit: contain; flex: none; }
.cm-fact p { font-size: 17px; line-height: 1.35; color: var(--cm-ink); }

/* modules (curriculum courses) */
.cm-week li .cm-free { font-size: 10.5px; font-weight: 600; background: #e4f5ec; color: #1f9d63; border-radius: 4px; padding: 2px 7px; }
.cm-week li.is-quiz-sub { padding-left: 26px; }
.cm-week li > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cm-week li > span small { font-size: 12px; color: var(--cm-muted); }
.cm-week-side p { font-size: 13px; color: var(--cm-muted); line-height: 1.55; margin: -4px 0 12px !important; }

/* prerequisites / who should enrol / careers */
.cm-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.cm-lists h3 { font-size: 20px; margin-bottom: 14px; }
.cm-lists li { display: grid; grid-template-columns: 24px 1fr; gap: 4px; padding: 9px 0; border-top: 1px solid var(--cm-line); font-size: 14px; color: var(--cm-ink); line-height: 1.6; }
.cm-lists li svg { width: 16px; height: 16px; color: var(--cm-green); margin-top: 3px; }

/* the builder-made page sections keep their own design */
.cp-scope .content-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px !important; }

/* educator and partner */
.cm-edu-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cm-edu-photo { overflow: hidden; }
.cm-edu .cm-hero-actions { margin: 0; }

/* enquiry errors */
.cm-errors { background: #fbe7e4; color: #a0362b; border-radius: 6px; padding: 12px 16px; font-size: 13px; margin-bottom: 16px; }
.cm-errors li { list-style: disc; margin-left: 16px; }

@media (max-width: 991px) {
    .cp-scope .content-wrap { padding: 0 20px !important; }
}
@media (max-width: 680px) {
    .cp-scope .content-wrap { padding: 0 16px !important; }
}
.cm-tabs a.on { color: var(--cm-ink); border-bottom-color: var(--cm-green); }
.cm-learn .cm-outcomes li { display: grid; grid-template-columns: 26px 1fr; gap: 0; padding: 11px 0; border-bottom: 1px solid var(--cm-line-2); font-size: 14.5px; color: var(--cm-ink); line-height: 1.6; }
.cm-learn .cm-outcomes li:last-child { border-bottom: 0; }
.cm-learn .cm-outcomes li svg { margin-top: 3px; }
.cm-edu-photo { position: relative; }
.cm-edu-photo span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cm-edu-photo img { position: relative; }

/* admin section colours: a text colour recolours the section's own copy; white cards and buttons inside keep the design's */
#cmPage [data-sec-fg] { --cm-green: var(--sec-fg); --cm-ink: var(--sec-fg); --cm-muted: var(--sec-fg); color: var(--sec-fg); }
#cmPage [data-sec-fg] :is(.cm-week, .cm-learn, .cm-form, .cm-uni-card, .cm-callout, .cm-more a, .cm-btn, .cm-edu-photo) { --cm-green: #004238; --cm-ink: #0c1f1a; --cm-muted: #5B6760; }

/* overview ("The big picture"): heading on the left, the description on the right */
.cm-ov { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 72px; align-items: start; }
.cm-ov .cm-h2 { margin-bottom: 0; }
.cm-ov .cm-body { font-size: 16px; }
/* with an Overview image: eyebrow, heading and text on the left, the image filling the right column */
.cm-ov.has-img { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: stretch; }
.cm-ov.has-img .cm-h2 { margin-bottom: 22px; }
.cm-ov-img { position: relative; min-height: 420px; }
.cm-ov-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

/* learning outcomes ("Skills you'll develop"): heading on the left, ticked rows on the right */
.cm-skills { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 80px; align-items: start; }
.cm-skills .cm-h2 { margin-bottom: 22px; }
.cm-skills .cm-outcomes li:first-child { padding-top: 4px; }
.cm-outcomes b { line-height: 1.35; }
.cm-outcomes p.is-solo { margin-top: 0 !important; color: var(--cm-ink); font-size: 15px; }

/* entry requirements ("What you need to apply."): three icon columns, then the other learner lists */
.cm-apply-h { margin-bottom: 52px; }
.cm-apply { row-gap: 36px; }
.cm-lists.has-gap { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--cm-line-2); }

/* the shared Skill Bridge sections (public/partials/course-fixed-section) */
.cm-cert { grid-template-columns: 360px 1fr; gap: 88px; }
.cm-cert-card { padding: 34px 30px 28px; }
.cm-cert-card img { height: 44px; }
.cm-cert-card h4 { font-size: 26px; margin-bottom: 18px; }
.cm-cert-card p { font-size: 13.5px; }
.cm-cert .cm-h2 { margin-bottom: 20px; }
.cm-cols .cm-life-ic, .cm-cols i[class*="fa-"] { font-size: 20px; color: var(--cm-green); margin-bottom: 8px; }
.cm-cols.is-ruled { margin-top: 40px; }
.cm-cols.is-ruled h3 { font-size: 23px; margin: 8px 0 4px; }
/* Learning on InatUni: icon and title on one line */
.cm-cols h3.cm-life-t { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; }
.cm-cols h3.cm-life-t .cm-life-ic { flex: none; margin: 0; }
.cm-life-lead { max-width: 70ch; margin-top: 4px; }
.cm-life-foot { max-width: 80ch; margin-top: 36px; }
.cm-share .cm-wrap { padding-top: 40px; padding-bottom: 40px; }
.cm-share h3 { font-size: 24px; margin-bottom: 6px; }
.cm-share p { font-size: 14px; }
.cm-share-icons a { width: 42px; height: 42px; font-size: 15px; }
.cm-share-icons i[class*="fa-"] { font-size: 15px; }

@media (max-width: 991px) {
    .cm-ov, .cm-skills { grid-template-columns: 1fr; gap: 28px; }
    .cm-ov.has-img { grid-template-columns: 1fr; gap: 32px; }
    .cm-ov-img { min-height: 0; aspect-ratio: 4 / 3; }
    .cm-cert { grid-template-columns: 1fr; gap: 40px; }
}
#cmPage .cm-cols > div > :is(svg, i):first-child { align-self: flex-start; }
#cmPage .cm-cert-card svg { width: 34px; height: 34px; stroke-width: 1.3; }

/* educator / partner (public/partials/course-people) */
/* "People & partners": the educator card and the endorsement card side by side */
.cm-people { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.cm-people-card { border-radius: 12px; padding: 34px 32px 32px; display: flex; flex-direction: column; }
.cm-people-card.is-edu { background: #fff; }
.cm-people-card.is-partner { background: var(--cm-sage); }
.cm-people-who { display: flex; align-items: center; gap: 24px; margin-bottom: 26px; }
.cm-people-who .cm-edu-photo { width: 112px; flex: none; aspect-ratio: 1; border-radius: 8px 30px 8px 8px; font-size: 40px; }
.cm-people-who h3 { font-size: 32px; margin-bottom: 8px; }
.cm-people-who p { font-size: 15px; color: var(--cm-muted); }
.cm-people-card > .cm-muted { margin-bottom: 26px !important; }
.cm-people-card .cm-btn { align-self: flex-start; margin-top: auto; }
.cm-people-logo { background: #fff; border: 1px solid var(--cm-line-2); border-radius: 8px; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 28px; margin-bottom: 30px; }
.cm-people-logo img { max-height: 76px; max-width: 80%; width: auto; object-fit: contain; }
.cm-people-logo b { font-weight: 500; font-size: 22px; color: var(--cm-ink); }
.cm-people-card.is-partner h3 { font-size: 26px; margin-bottom: 14px; }
#cmPage [data-sec-fg] :is(.cm-people-card) { --cm-green: #004238; --cm-ink: #0c1f1a; --cm-muted: #5B6760; }
/* educator only: a bigger photo beside the details */
.cm-edu.is-big { grid-template-columns: 390px 1fr; gap: 80px; }
.cm-edu.is-big .cm-edu-photo { font-size: 120px; }
.cm-edu.is-big h2 { font-size: 42px; }
@media (max-width: 991px) {
    .cm-people, .cm-edu.is-big { grid-template-columns: 1fr; }
    .cm-edu.is-big { gap: 32px; }
    .cm-edu.is-big .cm-edu-photo { max-width: 320px; }
}
@media (max-width: 575px) {
    .cm-people-who { flex-direction: column; align-items: flex-start; }
}

/* Your certificate: the Certificate of Achievement sample (as on the certificate page), filled from the course */
.cm-cert { grid-template-columns: minmax(0, 520px) 1fr; gap: 72px; }
.cm-cs-wrap { background: var(--cm-sage); border-radius: 6px 48px 6px 6px; padding: 16px; }
.cm-sage .cm-cs-wrap { background: #dfe3d6; }
.cm-cs { background: #FDFCF7; border-left: 5px solid var(--cm-hero); padding: 30px 26px 24px 24px; box-shadow: 0 24px 44px -28px rgba(12, 31, 26, .45); text-align: left; }
.cm-cs-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 18px; border-bottom: 2px solid var(--cm-hero); margin-bottom: 20px; }
.cm-cs-top img { height: 34px; width: auto; margin: 0; }
.cm-cs-tag { font-size: 11.5px; font-weight: 600; background: var(--cm-sage); color: var(--cm-green); padding: 7px 12px; border-radius: 2px; white-space: nowrap; }
.cm-cs-mini { display: block; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--cm-muted); }
.cm-cs h4 { font-size: 25px; line-height: 1.2; margin: 10px 0 12px; }
.cm-cs-learner { font-family: 'Lora', Georgia, 'Times New Roman', serif; font-size: 30px; color: var(--cm-green); line-height: 1.2; }
.cm-cs-sub { font-size: 12.5px; color: var(--cm-muted); margin: 8px 0 12px !important; }
.cm-cs-course { font-size: 18px; font-weight: 500; color: var(--cm-green); line-height: 1.35; margin-bottom: 18px !important; }
.cm-cs-partner { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--cm-muted); margin: -6px 0 18px !important; }
.cm-cs-meta { display: grid; grid-template-columns: auto auto 1fr; gap: 12px 26px; border-top: 1px solid var(--cm-line-2); border-bottom: 1px solid var(--cm-line-2); padding: 14px 0; font-size: 12px; color: var(--cm-ink); }
.cm-cs-meta b { font-weight: 400; display: block; margin-top: 4px; line-height: 1.45; }
.cm-cs-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 18px; }
.cm-cs-sign { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--cm-ink); }
.cm-cs-sign i { display: block; font-family: 'Great Vibes', 'Brush Script MT', cursive; font-style: normal; font-size: 25px; color: var(--cm-green); line-height: 1.1; width: 100%; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--cm-line-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-cs-sign b { font-size: 12px; font-weight: 700; }
.cm-cs-sign small { font-size: 11px; color: var(--cm-muted); line-height: 1.4; }
.cm-cs-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; font-size: 11.5px; color: var(--cm-muted); }
.cm-cs-foot span:last-child { font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 991px) {
    .cm-cert { grid-template-columns: 1fr; gap: 40px; }
    .cm-cs-wrap { max-width: 540px; }
}
@media (max-width: 575px) {
    .cm-cs-meta { grid-template-columns: 1fr 1fr; }
    .cm-cs-learner { font-size: 26px; }
}
