/* LearnDash Helper — modern course page (Udemy-style layout) */

.ldh-cp {
	--ldh-cp-accent: #0045aa;
	--ldh-cp-accent-2: #0a5fd6;
	--ldh-cp-accent-soft: rgba(0, 69, 170, .10);
	--ldh-cp-ink: #0f172a;
	--ldh-cp-muted: #64748b;
	--ldh-cp-line: #e2e8f0;
	--ldh-cp-card: #ffffff;
	--ldh-cp-dark: #07203f;
	/* Hero band: the two gradient stops + the soft corner glow. Overridable
	   per-site from Settings → Course page (see Course_Page::enqueue_assets). */
	--ldh-cp-hero-1: #07203f;
	--ldh-cp-hero-2: #0a3a6e;
	--ldh-cp-hero-glow: rgba(10, 95, 214, .45);
	--ldh-cp-star: #eecc00;
	--ldh-cp-green: #16a34a;
	--ldh-cp-radius: 14px;
	/* How far the buy box is pulled up over the hero (set precisely by JS). */
	--ldh-cp-pull: 120px;
	color: var(--ldh-cp-ink);
	font-size: 16px;
	line-height: 1.6;
}

.ldh-cp *,
.ldh-cp *::before,
.ldh-cp *::after { box-sizing: border-box; }

.ldh-cp h1,
.ldh-cp h2,
.ldh-cp h3 { color: inherit; }

.ldh-cp svg { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

/* The hero breaks out of the theme container; clip the sliver 100vw adds. */
body.ldh-course-modern { overflow-x: clip; }

/* Hide the theme's own title/header on course pages (generic fallback;
   OceanWP's page header is removed via its filter). */
body.ldh-course-no-title.single-sfwd-courses .entry-title,
body.ldh-course-no-title.single-sfwd-courses .page-header-title,
body.ldh-course-no-title.single-sfwd-courses #page-header { display: none; }

/* The hero sits flush under the site header: drop the theme's content gap
   (OceanWP gives #content-wrap 50px of top padding). */
body.ldh-course-modern #main #content-wrap { padding-top: 0; }

/* Hero ----------------------------------------------------------------
   Full-bleed dark band. padding-inline: calc(50vw - 50%) re-aligns the
   inner content with the theme container the hero broke out of. */
.ldh-cp-hero {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	padding: 36px calc(50vw - 50%) 44px;
	background:
		radial-gradient(900px 360px at 90% -40%, var(--ldh-cp-hero-glow), transparent 65%),
		linear-gradient(135deg, var(--ldh-cp-hero-1) 0%, var(--ldh-cp-hero-2) 100%);
	color: #fff;
}

.ldh-cp-hero-in { max-width: 700px; }

@media screen and (min-width: 1025px) {
	/* Leave the right rail free: the buy box overlays it. */
	.ldh-cp-hero-in { max-width: calc(100% - 400px); }
}

.ldh-cp-flag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 13px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	margin-bottom: 12px;
}
.ldh-cp-flag.is-enrolled { background: rgba(22, 163, 74, .3); }
.ldh-cp-flag.is-completed { background: rgba(245, 158, 11, .3); }

.ldh-cp-title {
	margin: 0 0 10px !important;
	font-size: clamp(26px, 3.2vw, 36px);
	line-height: 1.2;
	font-weight: 800;
	color: #fff !important;
}

.ldh-cp-tagline {
	margin: 0 0 14px;
	font-size: 17px;
	line-height: 1.5;
	color: rgba(255, 255, 255, .85);
}

/* Badge + rating + students row (Udemy's social-proof line). */
.ldh-cp-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-bottom: 10px;
	font-size: 14px;
}

.ldh-cp-badge {
	padding: 4px 10px;
	border-radius: 6px;
	background: #eceb98;
	color: #3d3c0a;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.ldh-cp-rating { display: inline-flex; align-items: center; gap: 7px; }
.ldh-cp-rating > strong { color: #fbbf24; font-weight: 700; }
.ldh-cp-rating-count { color: #c7d2fe; font-size: 13px; }
a.ldh-cp-rating-count { text-decoration: underline; }
a.ldh-cp-rating-count:hover { color: #fff; }
.ldh-cp-students { color: rgba(255, 255, 255, .8); font-size: 13.5px; }

/* Fractional star bar: muted row underneath, amber row clipped on top. */
.ldh-cp-stars { position: relative; display: inline-block; line-height: 0; }
.ldh-cp-stars-bg,
.ldh-cp-stars-fg { display: inline-flex; gap: 1px; }
.ldh-cp-stars-fg {
	position: absolute;
	inset: 0 auto 0 0;
	overflow: hidden;
	white-space: nowrap;
}
.ldh-cp-stars svg { width: 15px; height: 15px; }
.ldh-cp-stars-bg svg { fill: rgba(255, 255, 255, .25); }
.ldh-cp-stars-fg svg { fill: var(--ldh-cp-star); }

.ldh-cp-byline { margin: 0 0 12px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.ldh-cp-byline a { color: #c7d2fe; font-weight: 600; text-decoration: underline; }
.ldh-cp-byline a:hover { color: #fff; }

.ldh-cp-meta {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0;
	padding: 0;
	font-size: 13.5px;
	color: rgba(255, 255, 255, .75);
}
.ldh-cp-meta li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.ldh-cp-meta svg { opacity: .75; }

/* Layout --------------------------------------------------------------- */
.ldh-cp-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 28px;
	align-items: start;
	padding-top: 28px;
}

.ldh-cp-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Cards ----------------------------------------------------------------- */
.ldh-cp-card {
	background: var(--ldh-cp-card);
	border: 1px solid var(--ldh-cp-line);
	border-radius: var(--ldh-cp-radius);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
	overflow: hidden;
}

.ldh-cp-section {
	padding: 26px 28px;
	/* Skip rendering offscreen sections until they're scrolled near. */
	content-visibility: auto;
	contain-intrinsic-size: auto 420px;
	/* Anchor jumps (e.g. the hero's "Created by" link) land below the fixed
	   sticky top bar instead of underneath it. */
	scroll-margin-top: 110px;
}
.ldh-cp-section > h2 {
	margin: 0 0 16px !important;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
}

.ldh-cp-section-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}
.ldh-cp-section-head h2 { margin: 0 !important; font-size: 21px; font-weight: 700; }
.ldh-cp-section-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--ldh-cp-muted); }

.ldh-cp-expand,
.ldh-cp-expand:hover,
.ldh-cp-expand:focus {
	border: 0 !important;
	background: none !important;
	color: var(--ldh-cp-accent) !important;
	box-shadow: none !important;
	font-size: 13.5px;
	font-weight: 700;
	padding: 4px 0;
	cursor: pointer;
	white-space: nowrap;
}
.ldh-cp-expand:hover { text-decoration: underline; }

/* What you'll learn ------------------------------------------------------ */
.ldh-cp-learn {
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 24px;
	margin: 0;
	padding: 0;
}
.ldh-cp-learn li { display: flex; gap: 10px; margin: 0; font-size: 15px; }

.ldh-cp-tick {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
	margin-top: 2px;
	border-radius: 50%;
	background: var(--ldh-cp-accent-soft);
	color: var(--ldh-cp-accent);
}
.ldh-cp-tick svg { width: 13px; height: 13px; }

/* Curriculum (Udemy-style: one bordered block, divider rows) ------------- */
.ldh-cp-modules {
	border: 1px solid var(--ldh-cp-line);
	border-radius: 12px;
	overflow: hidden;
}

.ldh-cp-module { border-top: 1px solid var(--ldh-cp-line); background: #fff; }
.ldh-cp-module:first-child { border-top: 0; }

.ldh-cp-module > summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	cursor: pointer;
	list-style: none;
	font-weight: 700;
	font-size: 15px;
	background: #f8fafc;
	user-select: none;
}
.ldh-cp-module > summary::-webkit-details-marker { display: none; }
.ldh-cp-module > summary:hover { background: #f1f5f9; }

.ldh-cp-module-chevron {
	width: 9px;
	height: 9px;
	flex: 0 0 auto;
	border-right: 2px solid var(--ldh-cp-muted);
	border-bottom: 2px solid var(--ldh-cp-muted);
	transform: rotate(-45deg);
	transition: transform .18s ease;
}
.ldh-cp-module[open] > summary .ldh-cp-module-chevron,
.ldh-cp-faq[open] > summary .ldh-cp-module-chevron { transform: rotate(45deg); }

.ldh-cp-module-title { flex: 1; display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.ldh-cp-done { color: var(--ldh-cp-green); display: inline-flex; }
.ldh-cp-module-count { font-size: 12.5px; font-weight: 500; color: var(--ldh-cp-muted); white-space: nowrap; }

/* A topic-less lesson: one directly-clickable row, no dropdown. */
.ldh-cp-module-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	font-weight: 700;
	font-size: 15px;
	background: #f8fafc;
	color: var(--ldh-cp-ink);
	text-decoration: none;
}
a.ldh-cp-module-row:hover { background: #f1f5f9; }
.ldh-cp-module-row .ldh-cp-item-ic { flex: 0 0 auto; color: var(--ldh-cp-muted); display: inline-flex; }
.ldh-cp-module-row .ldh-cp-module-title { color: inherit; }

.ldh-cp-items { list-style: none; margin: 0; padding: 6px 10px; border-top: 1px solid var(--ldh-cp-line); }
.ldh-cp-item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 9px 10px;
	border-radius: 8px;
	font-size: 14.5px;
}
.ldh-cp-item:hover { background: #f8fafc; }
.ldh-cp-item-ic { color: var(--ldh-cp-muted); display: inline-flex; }
.ldh-cp-item.is-completed .ldh-cp-item-ic { color: var(--ldh-cp-green); }

.ldh-cp-item-title {
	flex: 1;
	min-width: 0;
	color: var(--ldh-cp-ink);
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
a.ldh-cp-item-title { color: var(--ldh-cp-accent); }
a.ldh-cp-item-title:hover { text-decoration: underline; }

.ldh-cp-state { display: inline-flex; align-items: center; color: var(--ldh-cp-muted); }
.ldh-cp-state svg { width: 15px; height: 15px; }

/* Flat lessons (no dropdown) + section groups (the only dropdowns) ---------- */
.ldh-cp-lesson { background: #fff; }
.ldh-cp-modules > .ldh-cp-lesson { border-top: 1px solid var(--ldh-cp-line); }
.ldh-cp-modules > .ldh-cp-lesson:first-child { border-top: 0; }

/* Lessons inside a section sit as flat rows with a divider between them. */
.ldh-cp-group-body > .ldh-cp-lesson { border-top: 1px solid var(--ldh-cp-line); }
.ldh-cp-group-body > .ldh-cp-lesson:first-child { border-top: 0; }
/* Inside a section the header carries the grey; the lessons go white so the
   two read as a group rather than a wall of identical bars. */
.ldh-cp-group-body .ldh-cp-module-row { background: #fff; }
.ldh-cp-group-body a.ldh-cp-module-row:hover { background: #f8fafc; }

/* Topics / quizzes beneath a flat lesson read as its children. */
.ldh-cp-lesson .ldh-cp-items { padding-left: 24px; }
.ldh-cp-state.is-done { color: var(--ldh-cp-green); }
.ldh-cp-state.is-preview {
	font-size: 12px;
	font-weight: 700;
	color: var(--ldh-cp-accent);
	background: var(--ldh-cp-accent-soft);
	padding: 3px 10px;
	border-radius: 999px;
}

.ldh-cp-locked-note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 14px 0 0;
	font-size: 13.5px;
	color: var(--ldh-cp-muted);
}

/* Requirements / audience ------------------------------------------------ */
.ldh-cp-reqs { margin: 0; padding: 0 0 0 2px; list-style: none; }
.ldh-cp-reqs li {
	position: relative;
	margin: 0 0 8px;
	padding-left: 22px;
	font-size: 15px;
}
.ldh-cp-reqs li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: .55em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ldh-cp-accent);
}

/* Prose + collapsed description ------------------------------------------ */
.ldh-cp-prose { font-size: 15px; color: #334155; }
.ldh-cp-prose p:last-child { margin-bottom: 0; }

.ldh-cp-clamp.is-clamped {
	max-height: 380px;
	overflow: hidden;
	position: relative;
}
.ldh-cp-clamp.is-clamped::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 90px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
}

.ldh-cp-showmore,
.ldh-cp-showmore:hover,
.ldh-cp-showmore:focus {
	margin-top: 10px;
	border: 0 !important;
	background: none !important;
	padding: 0;
	color: var(--ldh-cp-accent) !important;
	box-shadow: none !important;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
.ldh-cp-showmore:hover { text-decoration: underline; }

/* Opportunities ----------------------------------------------------------- */
.ldh-cp-opps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ldh-cp-opp {
	display: flex;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--ldh-cp-line);
	border-radius: 12px;
	background: #fafbfd;
}
.ldh-cp-opp-ic {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	flex: 0 0 auto;
	border-radius: 10px;
	background: var(--ldh-cp-accent-soft);
	color: var(--ldh-cp-accent);
}
.ldh-cp-opp strong { display: block; font-size: 15px; margin-bottom: 2px; }
.ldh-cp-opp p { margin: 0; font-size: 13.5px; color: var(--ldh-cp-muted); }

/* Instructor ---------------------------------------------------------------- */
.ldh-cp-inst { display: flex; gap: 18px; align-items: flex-start; }
/* Author + co-instructor stack with a divider between their cards. */
.ldh-cp-inst + .ldh-cp-inst { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--ldh-cp-line); }
.ldh-cp-inst-img {
	width: 96px;
	height: 96px;
	flex: 0 0 auto;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--ldh-cp-accent-soft);
}
.ldh-cp-inst-img.is-fallback {
	display: inline-grid;
	place-items: center;
	background: var(--ldh-cp-accent);
	color: #fff;
	font-size: 34px;
	font-weight: 700;
}
.ldh-cp-inst-text strong { display: block; font-size: 17px; color: var(--ldh-cp-accent); }
.ldh-cp-inst-role { display: block; font-size: 13.5px; color: var(--ldh-cp-muted); font-weight: 600; margin: 2px 0 8px; }

/* FAQs ------------------------------------------------------------------------ */
.ldh-cp-faqs { border: 1px solid var(--ldh-cp-line); border-radius: 12px; overflow: hidden; }
.ldh-cp-faq { border-top: 1px solid var(--ldh-cp-line); background: #fff; }
.ldh-cp-faq:first-child { border-top: 0; }
.ldh-cp-faq > summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	font-size: 15px;
}
.ldh-cp-faq > summary::-webkit-details-marker { display: none; }
.ldh-cp-faq > summary:hover { background: #f8fafc; }
.ldh-cp-faq > .ldh-cp-prose { padding: 0 18px 16px 39px; }

/* Buy box / sidebar -------------------------------------------------------------
   On desktop it's pulled up over the hero (offset measured by JS) and then
   sticks while the main column scrolls — exactly Udemy's behavior. */
.ldh-cp-aside { position: relative; }
.ldh-cp-sticky {
	position: sticky;
	top: 32px;
	box-shadow: 0 8px 28px rgba(15, 23, 42, .16);
}

@media screen and (min-width: 1025px) {
	.ldh-cp-sticky { margin-top: calc(-1 * var(--ldh-cp-pull)); }
}

/* The box keeps its own 16:9 ratio so a course with a preview video but no
   featured image still gets a proper poster area instead of collapsing to
   zero height (which left the play icon floating over the card edge). */
.ldh-cp-media { position: relative; background: var(--ldh-cp-dark); aspect-ratio: 16 / 9; }
.ldh-cp-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Branded placeholder shown when a course has neither a preview video nor a
   featured image, so the media box reads as intentional rather than broken. */
.ldh-cp-media-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--ldh-cp-dark), var(--ldh-cp-accent));
}
.ldh-cp-media-empty svg {
	width: 30%;
	height: auto;
	max-width: 72px;
	color: rgba(255, 255, 255, .5);
	stroke-width: 1.5;
}

.ldh-cp-play {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	border: 0;
	background: linear-gradient(to top, rgba(15, 23, 42, .75), rgba(15, 23, 42, .2));
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
}
.ldh-cp-play svg { width: 54px; height: 54px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .4)); transition: transform .15s ease; }
.ldh-cp-play:hover svg { transform: scale(1.08); }

/* Video popup lightbox. */
body.ldh-cp-noscroll { overflow: hidden; }

.ldh-cp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 23, 42, .92);
	animation: ldh-cp-lightbox-in .2s ease;
}

@keyframes ldh-cp-lightbox-in {
	from { opacity: 0; }
}

.ldh-cp-lightbox-frame { width: min(960px, 100%); }
.ldh-cp-lightbox-frame iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	border-radius: 12px;
	background: #000;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
}

.ldh-cp-lightbox-close {
	position: absolute;
	top: 14px;
	right: 18px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: background .15s ease;
}
.ldh-cp-lightbox-close:hover { background: rgba(255, 255, 255, .25); }

.ldh-cp-cta-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 14px; }

.ldh-cp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.ldh-cp-price strong { font-size: 32px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.ldh-cp-price s { color: var(--ldh-cp-muted); font-size: 16px; }
.ldh-cp-price strong .ldh-cp-price-usd { font-size: 16px; font-weight: 600; color: var(--ldh-cp-muted); letter-spacing: 0; }
.ldh-cp-price-note { font-size: 13px; color: var(--ldh-cp-muted); }

.ldh-cp-off {
	padding: 3px 9px;
	border-radius: 6px;
	background: #fee2e2;
	color: #b91c1c;
	font-size: 12.5px;
	font-weight: 700;
}

/* Buttons (ours + LearnDash's payment buttons). Every state is pinned so
   theme button/link rules (OceanWP and friends) can't repaint them. ------- */
.ldh-cp-btn,
.ldh-cp-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 13px 20px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: background .15s ease, transform .1s ease;
}
.ldh-cp-btn.is-primary,
.ldh-cp-btn.is-primary:visited {
	background: var(--ldh-cp-accent) !important;
	color: #fff !important;
	box-shadow: 0 6px 18px rgba(0, 69, 170, .3);
	border: 0;
}
.ldh-cp-btn.is-primary:hover,
.ldh-cp-btn.is-primary:focus,
.ldh-cp-btn.is-primary:active {
	background: #4338ca !important;
	color: #fff !important;
	transform: translateY(-1px);
	text-decoration: none !important;
}
.ldh-cp-btn.is-ghost,
.ldh-cp-btn.is-ghost:visited {
	background: #fff !important;
	color: var(--ldh-cp-accent) !important;
	border: 1.5px solid var(--ldh-cp-accent) !important;
}
.ldh-cp-btn.is-ghost:hover,
.ldh-cp-btn.is-ghost:focus,
.ldh-cp-btn.is-ghost:active {
	background: var(--ldh-cp-accent-soft) !important;
	color: var(--ldh-cp-accent) !important;
	text-decoration: none !important;
}
.ldh-cp-btn.is-unavailable,
.ldh-cp-btn.is-unavailable:visited {
	background: #f1f5f9 !important;
	color: #475569 !important;
	border: 1px solid #e2e8f0 !important;
}
.ldh-cp-btn.is-unavailable:hover,
.ldh-cp-btn.is-unavailable:focus,
.ldh-cp-btn.is-unavailable:active {
	background: #e2e8f0 !important;
	color: #334155 !important;
	text-decoration: none !important;
}

/* Busy state after the first click (set by course-page.js): hide the label,
   spin a ring in its place, and ignore further clicks. */
.ldh-cp-btn.is-loading {
	position: relative;
	pointer-events: none;
	color: transparent !important;
}
.ldh-cp-btn.is-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid rgba(255, 255, 255, .5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ldh-cp-spin .6s linear infinite;
}
@keyframes ldh-cp-spin {
	to { transform: rotate(360deg); }
}

.ldh-cp-pay .btn-join,
.ldh-cp-pay #btn-join,
.ldh-cp-pay .learndash_checkout_button input,
.ldh-cp-pay input[type="submit"],
.ldh-cp-pay button,
.ldh-cp-pay a.button {
	display: block;
	width: 100%;
	padding: 13px 20px;
	border: 0;
	border-radius: 10px;
	background: var(--ldh-cp-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 69, 170, .3);
	transition: background .15s ease;
}
.ldh-cp-pay .btn-join:hover,
.ldh-cp-pay input[type="submit"]:hover,
.ldh-cp-pay button:hover { background: #4338ca; }
.ldh-cp-pay form { margin: 0; }
.ldh-cp-pay .learndash_checkout_buttons { display: flex; flex-direction: column; gap: 10px; }

.ldh-cp-login { margin: -2px 0 0; font-size: 13.5px; color: var(--ldh-cp-muted); text-align: center; }
.ldh-cp-login a { color: var(--ldh-cp-accent); font-weight: 700; text-decoration: none; }
.ldh-cp-login a:hover { text-decoration: underline; }

/* Trust line under the streamlined "Take this course" / "Enroll for free"
   button (matches the guarantee line below the buy box). */
.ldh-cp-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 9px 0 0;
	font-size: 13px;
	color: var(--ldh-cp-muted);
}
.ldh-cp-secure svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--ldh-cp-green); }

/* Guarantee: quiet centered line under the buttons, Udemy-style. */
.ldh-cp-guarantee {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: -2px 0 0;
	font-size: 13px;
	color: var(--ldh-cp-muted);
}
.ldh-cp-guarantee svg { color: var(--ldh-cp-green); }

/* Progress (enrolled) -------------------------------------------------------- */
.ldh-cp-progress-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.ldh-cp-progress-top strong { font-size: 26px; font-weight: 800; color: var(--ldh-cp-accent); }
.ldh-cp-progress-top span { font-size: 13px; color: var(--ldh-cp-muted); }

.ldh-cp-bar { height: 9px; border-radius: 999px; background: #eef0f6; overflow: hidden; }
.ldh-cp-bar span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--ldh-cp-accent), var(--ldh-cp-accent-2));
	transition: width .4s ease;
}

/* Includes -------------------------------------------------------------------- */
.ldh-cp-includes { border-top: 1px solid var(--ldh-cp-line); padding-top: 16px; }
.ldh-cp-includes h3 { margin: 0 0 10px !important; font-size: 14.5px; font-weight: 700; }
.ldh-cp-includes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ldh-cp-includes li { display: flex; gap: 12px; margin: 0; font-size: 14px; align-items: flex-start; }
.ldh-cp-inc-ic { color: var(--ldh-cp-muted); display: inline-flex; margin-top: 3px; }
.ldh-cp-inc-ic svg { width: 16px; height: 16px; }

/* Sticky top bar (desktop, Udemy-style) ---------------------------------------- */
.ldh-cp-topbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99990;
	background: var(--ldh-cp-dark);
	color: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
	transform: translateY(-110%);
	transition: transform .25s ease;
}
.ldh-cp-topbar.is-visible { transform: translateY(0); }
body.admin-bar .ldh-cp-topbar { top: 32px; }

.ldh-cp-topbar-in {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 10px 20px;
}
.ldh-cp-topbar-text { min-width: 0; }
.ldh-cp-topbar-text > strong {
	display: block;
	font-size: 15px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ldh-cp-topbar-text .ldh-cp-rating { font-size: 13px; }
.ldh-cp-topbar-cta { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.ldh-cp-topbar-price { font-size: 18px; font-weight: 800; }
.ldh-cp-topbar .ldh-cp-btn { width: auto; padding: 10px 22px; font-size: 14px; }

@media screen and (max-width: 1024px) {
	.ldh-cp-topbar { display: none; }
}

/* Sticky bottom bar (mobile) ----------------------------------------------------- */
.ldh-cp-stickybar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .97);
	backdrop-filter: blur(6px);
	border-top: 1px solid var(--ldh-cp-line);
	box-shadow: 0 -8px 24px rgba(15, 23, 42, .12);
	transform: translateY(110%);
	transition: transform .25s ease;
}
.ldh-cp-stickybar.is-visible { transform: translateY(0); }
.ldh-cp-stickybar .ldh-cp-btn { width: auto; padding: 11px 22px; flex: 0 0 auto; }
.ldh-cp-stickybar-price { font-size: 19px; font-weight: 800; display: flex; align-items: baseline; gap: 8px; }
.ldh-cp-stickybar-price s { font-size: 13px; color: var(--ldh-cp-muted); font-weight: 500; }
.ldh-cp-stickybar-label { font-size: 13.5px; font-weight: 600; color: var(--ldh-cp-muted); }

@media screen and (min-width: 1025px) {
	.ldh-cp-stickybar { display: none; }
}

/* Responsive ----------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
	.ldh-cp-hero { padding-top: 26px; padding-bottom: 30px; }
	.ldh-cp-body { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
	.ldh-cp-aside { order: -1; }
	.ldh-cp-sticky { position: static; }
}

@media screen and (max-width: 640px) {
	.ldh-cp-section { padding: 20px 18px; }
	.ldh-cp-learn,
	.ldh-cp-opps { grid-template-columns: 1fr; }
	.ldh-cp-inst { flex-direction: column; align-items: center; text-align: center; }
	.ldh-cp-section-head { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	.ldh-cp *,
	.ldh-cp-topbar,
	.ldh-cp-stickybar { transition: none !important; }
}

/* Login modal ("Already enrolled? Log in") --------------------------------------- */
.ldh-cp-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.ldh-cp-modal[hidden] { display: none; }

.ldh-cp-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .55);
	backdrop-filter: blur(2px);
}

.ldh-cp-modal-box {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #fff;
	border-radius: 16px;
	padding: 30px 28px 28px;
	box-shadow: 0 24px 70px rgba(15, 23, 42, .35);
}

.ldh-cp-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 34px;
	height: 34px;
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	color: #94a3b8;
	cursor: pointer;
	border-radius: 8px;
}
.ldh-cp-modal-close:hover { color: #0f172a; background: #f1f5f9; }

.ldh-cp-modal-title {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 800;
	color: var(--ldh-cp-ink, #0f172a);
}
.ldh-cp-modal-sub { margin: 0 0 20px; font-size: 14px; color: #64748b; }

.ldh-cp-login-form { display: flex; flex-direction: column; gap: 14px; }

.ldh-cp-field { display: flex; flex-direction: column; gap: 6px; }
.ldh-cp-field > span { font-size: 13px; font-weight: 600; color: #334155; }
.ldh-cp-field input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	font-size: 15px;
	background: #fff;
	color: var(--ldh-cp-ink, #0f172a);
}
.ldh-cp-field input:focus {
	border-color: var(--ldh-cp-accent, #0045aa);
	box-shadow: 0 0 0 3px rgba(0, 69, 170, .12);
	outline: none;
}

.ldh-cp-login-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
}
.ldh-cp-remember { display: inline-flex; align-items: center; gap: 6px; color: #475569; }
.ldh-cp-login-lost { color: var(--ldh-cp-accent, #0045aa); text-decoration: none; }
.ldh-cp-login-lost:hover { text-decoration: underline; }

.ldh-cp-login-error {
	margin: 0;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	font-size: 13px;
}

.ldh-cp-login-submit { width: 100%; margin-top: 4px; }
.ldh-cp-login-submit:disabled { opacity: .7; cursor: default; }
