/* Qimah single-course prospect page. RTL-first, vanilla CSS, theme-token driven. */

.qscu {
	--qscu-ink: var(--q-text, #1f302c);
	--qscu-muted: var(--q-text-secondary, #536b63);
	--qscu-line: var(--q-border, rgba(30, 102, 73, .14));
	--qscu-soft: var(--q-surface-2, #f5f8f7);
	--qscu-card: var(--q-surface-1, #fff);
	--qscu-note-1: #fdf0e2;
	--qscu-note-2: #e2f1e9;
	--qscu-note-3: #fdf7dd;
	width: min(1200px, calc(100% - 40px));
	margin-inline: auto;
	padding-block: 48px 112px;
	color: var(--qscu-ink);
	font-family: var(--q-font, "IBM Plex Sans Arabic", system-ui, sans-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	direction: rtl;
	text-align: start;
	position: relative;
}
/* Full-bleed ambient orbs behind everything so they fade into the page bg instead
   of clipping at the centered container edge (hard seam). Fixed => no h-scroll. */
.qscu::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(38% 30% at 82% 6%, color-mix(in srgb, var(--q-primary, #1e6649) 34%, transparent), transparent 60%),
		radial-gradient(34% 26% at 12% 15%, color-mix(in srgb, var(--q-green-hover, #16533b) 30%, transparent), transparent 60%),
		radial-gradient(46% 26% at 50% 32%, color-mix(in srgb, var(--q-primary, #1e6649) 18%, transparent), transparent 66%);
}

.qscu * { box-sizing: border-box; }
.qscu a { text-decoration: none; }
.qscu-error { max-width: 680px; margin: 80px auto; padding: 24px; text-align: center; }

/* Hero */
.qscu-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 48px;
	align-items: stretch;
	width: 100%;
}

.qscu-hero.glass-surface { padding: 40px; }
.qscu-hero.glass-surface::before {
	background:
		radial-gradient(85% 95% at 100% 0%, rgba(30, 102, 73, .22), transparent 68%),
		var(--glass-tint, rgba(255, 255, 255, .72));
}
.qscu-hero__copy { min-width: 0; padding-block: 8px; display: flex; flex-direction: column; }
/* Hero copy zones: match badge top, headline+lead centered, facts+preview bottom. */
.qscu-tag, .qscu-hero__preview { align-self: flex-start; }
.qscu-tag {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border: 1px solid var(--q-primary, #1e6649);
	border-radius: 999px;
	background: color-mix(in srgb, var(--q-primary, #1e6649) 9%, var(--qscu-card));
	color: var(--q-primary, #1e6649);
	font-size: 13px;
	font-weight: 600;
}

/* College colours match the course archive cards (.qm-card-college), so a
   college reads the same wherever a student meets it. */
.qscu-tag--college[data-college="ccis"] { border-color: #0096D6; background: rgba(0, 150, 214, .1); color: #0096D6; }
.qscu-tag--college[data-college="cba"]  { border-color: #C8102E; background: rgba(200, 16, 46, .1); color: #C8102E; }
.qscu-tag--college[data-college="cad"]  { border-color: #6D6E71; background: rgba(109, 110, 113, .1); color: #6D6E71; }
.qscu-tag--college[data-college="chs"]  { border-color: #00843D; background: rgba(0, 132, 61, .1); color: #00843D; }
/* Dark needs the html prefix to outrank the generic dark .qscu-tag rule below,
   which would otherwise repaint the college pill green. */
html[data-theme="dark"] .qscu-tag--college[data-college="ccis"] { border-color: #5BC0EB; background: rgba(0, 150, 214, .15); color: #5BC0EB; }
html[data-theme="dark"] .qscu-tag--college[data-college="cba"]  { border-color: #EF5350; background: rgba(200, 16, 46, .15); color: #EF5350; }
html[data-theme="dark"] .qscu-tag--college[data-college="cad"]  { border-color: #9E9E9E; background: rgba(109, 110, 113, .2); color: #9E9E9E; }
html[data-theme="dark"] .qscu-tag--college[data-college="chs"]  { border-color: #4CAF50; background: rgba(0, 132, 61, .15); color: #4CAF50; }

.qscu-hero h1 {
	max-width: 760px;
	margin: 0 0 16px;
	font-size: clamp(40px, 5vw, 56px);
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.2;
	text-wrap: balance;
}

.qscu-hero__lead {
	max-width: 700px;
	margin: 0;
	color: var(--qscu-muted);
	font-size: 18px;
	line-height: 1.6;
	text-wrap: pretty;
}

.qscu-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.qscu-facts span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 1px solid color-mix(in srgb, var(--q-primary, #1e6649) 24%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--q-primary, #1e6649) 13%, transparent);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: var(--q-primary, #1e6649);
	font-size: 13px;
	font-weight: 600;
	box-shadow: 0 3px 12px color-mix(in srgb, var(--q-primary, #1e6649) 12%, transparent);
}
/* What the course does NOT include: same label as the included pills, red so
   the difference is unmissable at a glance. */
.qscu-facts span.qscu-fact--out {
	/* Muted toward the body ink rather than full alarm red - it should register
	   as "not included", not as an error on the page. */
	border-color: color-mix(in srgb, #c0392b 22%, transparent);
	background: color-mix(in srgb, #c0392b 5%, transparent);
	box-shadow: none;
	color: color-mix(in srgb, #c0392b 62%, var(--qscu-muted));
}
.qscu-facts span svg { width: 13px; height: 13px; flex: none; }
.qscu-hero__preview { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; margin-top: 12px; color: var(--q-primary, #1e6649); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }

/* Course purchase card */
.qscu-buy {
	align-self: start;
	position: sticky;
	top: 100px;
	border: 1px solid var(--glass-stroke, rgba(255, 255, 255, .5));
	border-radius: 16px;
	background: var(--glass-tint, rgba(255, 255, 255, .72));
	backdrop-filter: blur(var(--glass-blur, 14px)) saturate(125%);
	-webkit-backdrop-filter: blur(var(--glass-blur, 14px)) saturate(125%);
	box-shadow: 0 24px 54px color-mix(in srgb, var(--q-primary, #1e6649) 20%, transparent), inset 0 1px 0 rgba(255, 255, 255, .4);
	overflow: hidden;
}

.qscu-poster {
	position: relative;
	min-height: 216px;
	padding: 24px;
	color: #fff;
	background:
		radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .16), transparent 28%),
		linear-gradient(145deg, #1e6649, #16533b 80%);
	overflow: hidden;
}

.qscu-poster::after {
	content: "";
	position: absolute;
	inset: auto -28px -65px auto;
	width: 190px;
	height: 190px;
	border: 38px solid rgba(255, 255, 255, .05);
	border-radius: 50%;
}

.qscu-poster.has-image::before {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	background: linear-gradient(180deg, transparent 58%, rgba(7, 31, 24, .42));
}
.qscu-poster.has-image { min-height: 0; aspect-ratio: 3 / 2; padding: 0; }
.qscu-poster.has-image::after { display: none; }
.qscu-poster.has-image .qscu-poster__top,
.qscu-poster.has-image .qscu-poster__title,
.qscu-poster.has-image .qscu-poster__meta { display: none; }
.qscu-poster__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.qscu-poster__top, .qscu-poster__meta { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 16px; }
.qscu-poster__top strong { font-size: 20px; font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.qscu-poster__top span { font-size: 13px; font-weight: 600; opacity: .8; }
.qscu-poster__title { position: relative; z-index: 2; margin-top: 32px; max-width: 280px; font-size: 20px; font-weight: 700; line-height: 1.4; unicode-bidi: plaintext; }
.qscu-poster__meta { align-items: end; margin-top: 32px; color: rgba(255, 255, 255, .8); font-size: 13px; }

.qscu-buy__body { padding: 24px; }
.qscu-buy__price { display: flex; align-items: baseline; justify-content: center; gap: 6px; color: var(--q-primary, #1e6649); }
.qscu-buy__price strong { font-size: 32px; font-weight: 700; line-height: 1.2; }
.qscu-buy__price del { margin-inline-start: 8px; color: var(--qscu-muted); font-size: 13px; }
/* Badge row: plan-match + best-seller, same pill vocabulary. */
.qscu-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
/* Outlined, not filled: "new" is information, not a boast - it should sit
   quieter than the best-seller pill when a course carries both. */
.qscu-new {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border: 1px dashed var(--q-primary, #1e6649);
	border-radius: 999px;
	background: color-mix(in srgb, var(--q-primary, #1e6649) 8%, var(--qscu-card));
	color: var(--q-primary, #1e6649);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}
/* Solid fill so it reads as a claim, not another neutral fact chip. */
.qscu-bestseller {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border: 1px solid var(--q-primary, #1e6649);
	border-radius: 999px;
	background: var(--q-primary, #1e6649);
	color: var(--q-on-primary);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.qscu-cta {
	display: block;
	padding: 12px 20px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--q-green, #1e6649), var(--q-green-hover, #16533b));
	color: var(--q-on-primary, #fff);
	font-weight: 700;
	text-align: center;
	box-shadow: 0 10px 26px color-mix(in srgb, var(--q-primary, #1e6649) 34%, transparent);
	transition: filter .15s ease, box-shadow .15s ease;
}
.qscu-cta:hover { color: var(--q-on-primary, #fff); filter: brightness(1.08); box-shadow: 0 14px 32px color-mix(in srgb, var(--q-primary, #1e6649) 42%, transparent); }
.qscu-buy__cta { margin-top: 14px; }
.qscu-buy__fine { margin: 8px 0 16px; color: var(--qscu-muted); font-size: 13px; text-align: center; }
.qscu-buy__unavailable { margin: 16px 0; padding: 16px; border: 1px solid var(--qscu-line); border-radius: 12px; background: var(--qscu-soft); color: var(--qscu-muted); font-weight: 600; text-align: center; }
.qscu-buy__rows { margin: 20px 0 0; }
.qscu-buy__rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--qscu-line); font-size: 14px; }
.qscu-buy__rows dt { color: var(--qscu-muted); }
.qscu-buy__rows dd { margin: 0; max-width: 62%; font-weight: 600; text-align: end; unicode-bidi: plaintext; }

/* Shared sections */
.qscu-section { padding-block: 64px; border-bottom: 1px solid var(--qscu-line); content-visibility: auto; contain: layout paint style; contain-intrinsic-size: auto 640px; }
.qscu-section:last-child { border-bottom: 0; }
.qscu-sample { width: 100%; margin-block: clamp(24px, 4vw, 48px); scroll-margin-top: 100px; content-visibility: visible; contain: layout style; contain-intrinsic-size: none; padding: clamp(28px, 4vw, 52px); border-bottom: 0; border-radius: 24px; color: #eaf3f0; background: radial-gradient(120% 82% at 100% 0, rgba(120, 214, 170, .2), transparent 62%), linear-gradient(155deg, #23785a, #14432f 84%); box-shadow: 0 26px 64px color-mix(in srgb, var(--q-primary, #1e6649) 26%, transparent); }
.qscu-sample .qscu-section__head { margin-bottom: 24px; }
.qscu-sample .qscu-section__head h2 { color: #fff; }
.qscu-sample .qscu-section__head h2::after { background: linear-gradient(90deg, #43c48d, #eaf3f0); }
.qscu-answers, .qscu-curriculum, .qscu-instructor { width: min(960px, 100%); margin-inline: auto; }
.qscu-section__head { margin-bottom: 32px; }
.qscu-section__head h2 { margin: 0; font-size: clamp(32px, 4vw, 42px); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.qscu-section__head h2::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--q-primary, #1e6649), var(--q-success, #1e9a6d)); }
.qscu-section__head p { max-width: 680px; margin: 8px 0 0; color: var(--qscu-muted); font-size: 16px; line-height: 1.6; }

/* Free major door. Since 1.57.3 this section is only the banner (qimah-major-layer.css);
   the sim runs on #qms-layer, a child of <body>, so nothing of it sits in here.
   The containment opt-out below dates from the inline sim (its keyboard and fixed
   controls) and is now redundant with .qms-door's own; kept until the founder
   decides on the dead-code list. */
.qscu-free-major, .qscu-free-lab, .qscu-free-final, .qscu-free-sim { width: 100%; scroll-margin-top: 100px; content-visibility: visible; contain: none; contain-intrinsic-size: none; }
/* DEAD since 1.57.3: the logged-out door used to print CEP's login note, whose bare
   link fell to the Hello Elementor reset (pink #c36, #336 on hover). The banner's
   login link is now a.qms-door__go, so nothing class-less sits in #free-major and
   these rules match nothing. Kept until the founder decides on the dead-code list. */
.qscu-free-major a:not([class]), .qscu-free-major a:not([class]):hover { color: var(--q-primary, #1e6649); }
.qscu-free-major a:not([class]) { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="dark"] .qscu-free-major a:not([class]), html[data-theme="dark"] .qscu-free-major a:not([class]):hover { color: #43c48d; }

/* DEAD since 1.57.3: qimah-scp-unenrolled.js returns before it sets data-exam
   whenever #qms-layer exists, which is every page that has the sim. Kept until the
   founder decides on the dead-code list.
   Exam focus (set by qimah-scp-unenrolled.js from the sim's qimah:major-sim
   event). "on" = a paper is being sat: only the sim stays, the page chrome goes.
   "review" = the results: the sales sections fold away but the hero stays, since
   it holds #buy and the results page's enrol link points at it.
   Staged like زنقة and the enrolled page's focus (qimah-scp.css, محاكي الميجر
   focus), so the student FEELS the page leave: the hero and sections recede first
   (0 to 0.56 s), the header and footer leave at 1.0 s, the enrolment bar and the
   WhatsApp button fade last at 2.6 s. Everything ends hidden by 3.2 s.
   display cannot animate, so a piece ends at opacity 0, max-height 0 and
   visibility hidden - out of layout, out of the tab order, out of the reading
   order. The max-height start value is pinned from JS (inline, for one style
   recalc): a none -> 0 transition does not animate, and a fixed cap here would
   overlap the curriculum once a visitor opens its chapters. */
main.qscu[data-exam="on"] .qscu-hero,
main.qscu[data-exam="on"] .qscu-section:not(#free-major, #free-lab, #free-final, #free-sim),
main.qscu[data-exam="review"] .qscu-section:not(#free-major, #free-lab, #free-final, #free-sim),
html:has(main.qscu[data-exam="on"]) #qimah-header,
html:has(main.qscu[data-exam="on"]) #qimah-footer { opacity: 0; max-height: 0; margin-block: 0; padding-block: 0; border-width: 0; overflow: hidden; pointer-events: none; visibility: hidden; }
html:has(main.qscu[data-exam="on"]) #qimah-enrollment-bar,
html:has(main.qscu[data-exam="on"]) .qimah-wa-btn { opacity: 0; pointer-events: none; visibility: hidden; }

/* The motion lives only here, so prefers-reduced-motion gets the end state at
   once. The bar and the WhatsApp button keep their own resting transitions (CEP
   and functions.php own those lists), so they come back on their own terms. */
@media (prefers-reduced-motion: no-preference) {
	main.qscu[data-exam="on"] .qscu-hero,
	main.qscu[data-exam="on"] .qscu-section:not(#free-major, #free-lab, #free-final, #free-sim),
	main.qscu[data-exam="review"] .qscu-section:not(#free-major, #free-lab, #free-final, #free-sim) { transform: scale(0.97) translateY(-8px); filter: blur(3px); transition: opacity 0.26s ease, transform 0.3s cubic-bezier(.7, 0, .84, 0), filter 0.26s ease, max-height 0.4s ease 0.16s, margin 0.4s ease 0.16s, padding 0.4s ease 0.16s, border-width 0.3s ease 0.16s, visibility 0s linear 0.56s; }
	html:has(main.qscu[data-exam="on"]) #qimah-header,
	html:has(main.qscu[data-exam="on"]) #qimah-footer { transition: opacity 0.8s ease 1s, max-height 0.4s ease 1.8s, margin 0.4s ease 1.8s, padding 0.4s ease 1.8s, border-width 0.3s ease 1.8s, visibility 0s linear 2.2s; }
	html:has(main.qscu[data-exam="on"]) #qimah-enrollment-bar,
	html:has(main.qscu[data-exam="on"]) .qimah-wa-btn { transition: opacity 0.6s ease 2.6s, visibility 0s linear 3.2s; }
}

/* First lesson playlist */
.qscu-sample__layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); direction: ltr; border: 1px solid var(--qscu-line); border-radius: 16px; background: var(--qscu-card); box-shadow: 0 22px 48px rgba(6, 28, 21, .34); overflow: hidden; }
.qscu-player, .qscu-playlist { direction: rtl; }
/* No `contain: paint` here: on iOS it traps touch events before they reach the
   cross-origin Bunny iframe (taps do nothing on mobile). */
.qscu-player { min-width: 0; background: #0d2119; }
.qscu-player__bar { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 8px 16px; color: #d7e6e0; font-size: 13px; }
.qscu-player__bar i, .qscu-player__bar i::before, .qscu-player__bar i::after { display: block; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.qscu-player__bar i { position: relative; margin-inline: 14px; }
.qscu-player__bar i::before, .qscu-player__bar i::after { content: ""; position: absolute; top: 0; }
.qscu-player__bar i::before { inset-inline-start: -9px; }
.qscu-player__bar i::after { inset-inline-end: -9px; }
.qscu-player__frame { position: relative; aspect-ratio: 16 / 9; background: #08140f; }
.qscu-player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.qscu-playlist { display: flex; flex-direction: column; min-width: 0; border-inline-end: 1px solid var(--qscu-line); color: var(--qscu-ink); }
.qscu-playlist > header h3 { color: var(--qscu-ink); }
.qscu-playlist > header { padding: 24px; border-bottom: 1px solid var(--qscu-line); }
.qscu-playlist > header span { color: var(--q-primary, #1e6649); font-size: 13px; font-weight: 600; }
.qscu-playlist > header h3 { margin: 8px 0; font-size: 18px; font-weight: 700; line-height: 1.4; unicode-bidi: plaintext; }
.qscu-playlist > header small { color: var(--qscu-muted); font-size: 13px; }
.qscu-playlist__items { max-height: 380px; overflow-y: auto; }
button.qscu-playlist__item { width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 16px; border: 0; border-bottom: 1px solid var(--qscu-line); background: transparent; color: var(--qscu-ink); font: inherit; text-align: start; cursor: pointer; }
button.qscu-playlist__item:hover, button.qscu-playlist__item.is-active { background: var(--qscu-soft); color: var(--qscu-ink); }
.qscu-playlist__num { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--qscu-line); border-radius: 999px; color: var(--q-primary, #1e6649); font-size: 13px; font-weight: 600; }
.qscu-playlist__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; unicode-bidi: plaintext; color: var(--qscu-ink); }
.qscu-playlist__time { color: var(--qscu-muted); font-size: 13px; }
.qscu-text-link { margin: auto 24px 24px; padding-top: 16px; color: var(--q-primary, #1e6649); font-size: 14px; font-weight: 600; }

/* Student questions and conditional inclusions */
.qscu-answers__list { display: grid; gap: 14px; counter-reset: qscu-qa; }
.qscu-answers__list > div { display: grid; grid-template-columns: minmax(200px, .82fr) minmax(0, 1.18fr); gap: 24px; align-items: start; padding: 22px 24px; border: 1px solid var(--glass-stroke, rgba(255, 255, 255, .5)); border-radius: 14px; background: color-mix(in srgb, var(--q-surface-1, #fff) 70%, transparent); backdrop-filter: blur(10px) saturate(115%); -webkit-backdrop-filter: blur(10px) saturate(115%); box-shadow: 0 4px 16px color-mix(in srgb, var(--q-primary, #1e6649) 7%, transparent); }
.qscu-answers__list > div > span { display: flex; align-items: flex-start; gap: 11px; color: var(--qscu-ink); font-size: 15px; font-weight: 700; line-height: 1.5; }
.qscu-answers__list > div > span::before { counter-increment: qscu-qa; content: counter(qscu-qa); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--q-primary, #1e6649) 14%, transparent); color: var(--q-primary, #1e6649); font-size: 13px; font-weight: 700; }
.qscu-answers__list strong { font-size: 16px; font-weight: 600; line-height: 1.7; }
.qscu-included { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.qscu-included i { padding: 8px 16px; border: 1px solid var(--qscu-line); border-radius: 999px; background: var(--qscu-card); color: var(--qscu-ink); font-size: 13px; font-style: normal; font-weight: 500; }

/* Student quote notes */
.qscu-notes { width: min(1100px, 100%); margin-inline: auto; }
/* align-items:start so a long quote grows its own note instead of stretching
   every sibling in its row to match. */
.qscu-notes__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; gap: 24px; }
.qscu-note {
	--note-bg: var(--qscu-note-1);
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 34px 22px 18px;
	border-radius: 4px;
	background: var(--note-bg);
	box-shadow: 0 10px 24px rgba(6, 28, 21, .1);
	rotate: -.5deg;
}
.qscu-note:nth-child(3n+2) { --note-bg: var(--qscu-note-2); rotate: .6deg; }
.qscu-note:nth-child(3n+3) { --note-bg: var(--qscu-note-3); rotate: -.25deg; }
.qscu-note__pin { position: absolute; inset-block-start: 14px; inset-inline: 0; width: 11px; height: 11px; margin-inline: auto; border-radius: 50%; background: var(--q-primary, #1e6649); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
/* plaintext bidi: quotes are student-written, so an English one must render LTR
   inside this RTL page or its closing punctuation lands at the wrong end. */
.qscu-note blockquote { margin: 0; color: #24352f; font-size: 15px; font-weight: 500; line-height: 1.75; text-wrap: pretty; unicode-bidi: plaintext; }
/* Every note is the same height so the grid reads as a tidy wall rather than
   a ragged one: the text block is pinned to exactly CLAMP lines, long quotes
   clamp down to it and short ones pad up to it. The clamp lives on the inner
   span because a direct flex item has its display blockified, which would
   silently turn -webkit-box into a block and disable line-clamp entirely. */
.qscu-note { --qscu-clamp: 5; }
.qscu-note blockquote { min-height: calc(var(--qscu-clamp) * 1.75em); }
.qscu-note__text { display: block; }
.qscu-note:not(.is-open) .qscu-note__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--qscu-clamp); overflow: hidden; }
.qscu-note.is-open blockquote { min-height: 0; }
/* The toggle sits on the bottom edge. It stays in the layout on every note -
   visibility, not display - so a single expandable note does not end up
   taller than the 21 around it. visibility:hidden also keeps it out of the
   accessibility tree, so it is not a phantom target for screen readers. */
.qscu-note__more { align-self: flex-start; visibility: hidden; margin-top: auto; padding: 0; border: 0; background: none; color: var(--q-primary, #1e6649); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.qscu-note.is-clipped .qscu-note__more { visibility: visible; }
.qscu-note__more:hover { color: var(--q-primary, #1e6649); text-decoration: underline; }

/* Curriculum */
.qscu-curriculum__head { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.qscu-curriculum__head > strong { flex: none; color: var(--q-primary, #1e6649); font-size: 13px; }
.qscu-chapters { display: grid; gap: 8px; }
.qscu-chapter { border: 1px solid var(--glass-stroke, rgba(255, 255, 255, .5)); border-radius: 14px; background: color-mix(in srgb, var(--q-surface-1, #fff) 76%, transparent); backdrop-filter: blur(10px) saturate(115%); -webkit-backdrop-filter: blur(10px) saturate(115%); box-shadow: 0 6px 20px color-mix(in srgb, var(--q-primary, #1e6649) 9%, transparent); overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.qscu-chapter[open] { border-color: color-mix(in srgb, var(--q-primary, #1e6649) 32%, transparent); box-shadow: 0 10px 28px color-mix(in srgb, var(--q-primary, #1e6649) 14%, transparent); }
.qscu-chapter[open] > summary { background: color-mix(in srgb, var(--q-primary, #1e6649) 5%, transparent); }
.qscu-chapter summary { display: flex; align-items: center; gap: 15px; padding: 16px 18px; list-style: none; cursor: pointer; }
.qscu-chapter summary::-webkit-details-marker { display: none; }
.qscu-chapter__num { display: grid; flex: 0 0 32px; place-items: center; height: 32px; border-radius: 8px; background: var(--qscu-soft); color: var(--q-primary, #1e6649); font-size: 13px; font-weight: 600; }
.qscu-chapter__title { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.qscu-chapter__title b { font-size: 15px; font-weight: 600; unicode-bidi: plaintext; }
.qscu-chapter__title small { color: var(--qscu-muted); font-size: 13px; }
.qscu-chapter__chev { color: var(--qscu-muted); font-size: 20px; transition: transform .15s ease; }
.qscu-chapter[open] .qscu-chapter__chev { transform: rotate(180deg); }
.qscu-chapter__topics { padding: 0 18px 12px; }
.qscu-chapter__topics > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--qscu-line); color: var(--qscu-muted); font-size: 14px; }
.qscu-chapter__topics > div span { unicode-bidi: plaintext; }
.qscu-chapter__topics > div small { flex: none; }
/* Section band between chapters - same look as the enrolled page's .qscp-secband:
   bold green label, then a rule fading away from it. The list is RTL here, so
   the rule fades toward the left. The grid gap already gives 8px; the extra
   top margin separates one group from the next. */
.qscu-secband { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-inline: 4px; }
.qscu-secband:first-child { margin-top: 0; }
.qscu-secband span { flex: 0 1 auto; min-width: 0; color: var(--q-primary, #1e6649); font-size: 15px; font-weight: 800; unicode-bidi: plaintext; }
.qscu-secband::after { content: ""; flex: 1 1 auto; height: 2px; border-radius: 2px; background: linear-gradient(to left, var(--qscu-line), transparent); }
html[data-theme="dark"] .qscu-secband span { color: #7fe0b0; }
.qscu-show-all { display: block; min-height: 44px; margin: 24px auto 0; padding: 10px 24px; border: 1px solid var(--q-primary, #1e6649); border-radius: 999px; background: transparent; color: var(--q-primary, #1e6649); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.qscu-show-all[hidden] { display: none; }

/* Instructor profile copy — no synthetic portrait or identity card. */
.qscu-instructor { max-width: 760px; }
.qscu-inst__copy > span { color: var(--q-primary, #1e6649); font-size: 14px; font-weight: 600; }
.qscu-inst__copy h2 { margin: 8px 0; font-size: clamp(32px, 4vw, 42px); font-weight: 700; line-height: 1.2; }
.qscu-inst__line { margin: 0; color: var(--qscu-muted); font-size: 14px; font-weight: 500; }
.qscu-inst__bio { max-width: 640px; margin-top: 16px; color: var(--qscu-ink); font-size: 16px; line-height: 1.7; }
.qscu-inst__bio p { margin: 0 0 8px; }
.qscu-inst__bio p:last-child { margin-bottom: 0; }
/* Inline SVG icons (replace former text glyphs; inherit currentColor). */
.qscu-hero__preview svg { width: 16px; height: 16px; flex: none; }
.qscu-playlist__num svg { width: 12px; height: 12px; margin-inline-start: 2px; }
.qscu-text-link svg { width: 14px; height: 14px; vertical-align: -.15em; }
.qscu-chapter__chev { display: inline-flex; }
.qscu-chapter__chev svg { width: 18px; height: 18px; }
.qscu-chapter__topics > div span svg { width: 13px; height: 13px; margin-inline-end: 3px; vertical-align: -.15em; }

/* Guard against Hello Elementor's global a:hover (purple) and button:hover (white) bleed. */
.qscu-hero__preview:hover, .qscu-text-link:hover { color: var(--q-primary, #1e6649); }
.qscu-show-all:hover { background: color-mix(in srgb, var(--q-primary, #1e6649) 10%, transparent); color: var(--q-primary, #1e6649); }

/* Dark mode uses the theme's green surfaces and a brighter readable accent. */
html[data-theme="dark"] .qscu {
	--qscu-line: rgba(255, 255, 255, .11);
	--qscu-card: var(--q-surface-1, #15352b);
	--qscu-soft: var(--q-surface-2, #1d4c3e);
	/* Muted paper tones so the notes still read as paper without glowing
	   against the dark-green page background. */
	--qscu-note-1: #3a3229;
	--qscu-note-2: #26382f;
	--qscu-note-3: #383520;
}
html[data-theme="dark"] .qscu-note { box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
/* The included pills had no dark treatment, so they kept painting the light
   #1e6649 on a dark background and went muddy. Match the .qscu-tag dark green
   so every green pill in the hero reads the same. The red absence pills keep
   their own colour and are excluded. */
html[data-theme="dark"] .qscu-facts span:not(.qscu-fact--out) {
	border-color: #43c48d;
	background: color-mix(in srgb, #43c48d 12%, transparent);
	color: #43c48d;
}
/* #c0392b goes muddy on the dark surface - lift it so it still reads as red. */
html[data-theme="dark"] .qscu-facts span.qscu-fact--out {
	border-color: color-mix(in srgb, #ff7a6b 24%, transparent);
	background: color-mix(in srgb, #ff7a6b 8%, transparent);
	color: color-mix(in srgb, #ff7a6b 72%, var(--qscu-muted));
}
html[data-theme="dark"] .qscu-note blockquote { color: #e8f0ec; }
html[data-theme="dark"] .qscu-note__more { color: #43c48d; }
html[data-theme="dark"] .qscu-tag,
html[data-theme="dark"] .qscu-buy__price,
html[data-theme="dark"] .qscu-playlist > header span,
html[data-theme="dark"] .qscu-text-link,
html[data-theme="dark"] .qscu-chapter__num,
html[data-theme="dark"] .qscu-curriculum__head > strong,
html[data-theme="dark"] .qscu-inst__copy > span { color: #43c48d; }
html[data-theme="dark"] .qscu-tag,
html[data-theme="dark"] .qscu-show-all { border-color: #43c48d; }
html[data-theme="dark"] .qscu-show-all { color: #43c48d; }
html[data-theme="dark"] .qscu-answers__list { border-top-color: #43c48d; }
html[data-theme="dark"] .qscu-answers__list > div > span::before { color: #43c48d; background: color-mix(in srgb, #43c48d 16%, transparent); }
html[data-theme="dark"] .qscu-hero__preview:hover, html[data-theme="dark"] .qscu-text-link:hover, html[data-theme="dark"] .qscu-show-all:hover { color: #43c48d; }

@media (max-width: 900px) {
	.qscu { padding-top: 32px; }
	.qscu-hero { grid-template-columns: 1fr; gap: 32px; }
	.qscu-buy { position: static; width: min(100%, 520px); }
	.qscu-sample__layout { grid-template-columns: 1fr; }
	.qscu-playlist { border-inline-end: 0; border-top: 1px solid var(--qscu-line); }
	.qscu-curriculum__head { align-items: start; flex-direction: column; }
}

@media (max-width: 600px) {
	.qscu { width: calc(100% - 32px); padding-block: 24px 96px; }
	.qscu-hero.glass-surface { padding: 24px; }
	.qscu-hero h1 { font-size: 40px; }
	.qscu-hero__lead { font-size: 16px; }
	.qscu-poster:not(.has-image) { min-height: 208px; }
	.qscu-section { padding-block: 48px; contain-intrinsic-size: auto 520px; }
	.qscu-section__head h2 { font-size: 32px; }
	.qscu-answers__list > div { grid-template-columns: 1fr; gap: 8px; padding: 20px 3px; }
	.qscu-answers__list strong { font-size: 16px; }
	.qscu-chapter summary { padding-inline: 12px; }
	.qscu-chapter__topics { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.qscu-cta, .qscu-chapter__chev { transition: none; }
}
