/* ==========================================================================
   Therapedia — front-end stylesheet
   Brand: deep navy #0B2D5B Â· turquoise #14C8B2 Â· white Â· mist #F5F8FB
   RTL is handled with logical properties plus assets/css/rtl.css overrides.
   ========================================================================== */

:root {
	--th-navy: #0b2d5b;
	--th-navy-deep: #061a33;
	--th-navy-soft: #123e7a;
	--th-turquoise: #14c8b2;
	--th-turquoise-dark: #0e9c8b;
	--th-turquoise-soft: #e6faf7;
	--th-sky: #2ba7df;
	--th-ink: #0a1b2e;
	--th-muted: #5b6b80;
	--th-line: #e2e9f2;
	--th-mist: #f5f8fb;
	--th-white: #fff;
	--th-radius: 22px;
	--th-radius-sm: 12px;
	--th-shadow: 0 1px 2px rgba(11, 45, 91, .05), 0 24px 50px -34px rgba(11, 45, 91, .38);
	--th-shadow-soft: 0 1px 2px rgba(11, 45, 91, .05), 0 12px 28px -22px rgba(11, 45, 91, .3);
	--th-display: var(--wp--preset--font-family--display, "Poppins", system-ui, sans-serif);
	--th-body: var(--wp--preset--font-family--body, "Inter", system-ui, sans-serif);
	--th-gutter: clamp(1rem, 3vw, 2rem);
	--th-section: clamp(3.4rem, 5vw, 5.75rem);
	--th-transition: 200ms cubic-bezier(.2, .7, .3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--th-white);
	color: var(--th-ink);
	font-family: var(--th-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	overflow-x: hidden;
}

body.is-rtl { font-family: "Cairo", var(--th-body); }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--th-navy); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--th-turquoise-dark); }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 {
	font-family: var(--th-display);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -.02em;
	color: var(--th-navy);
	margin: 0 0 .6rem;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.7vw, 2.4rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
body.is-rtl h1, body.is-rtl h2, body.is-rtl h3, body.is-rtl h4 { letter-spacing: 0; }

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(20, 200, 178, .55); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.th-wrap { width: min(1240px, calc(100% - (var(--th-gutter) * 2))); margin-inline: auto; }
.th-muted { color: var(--th-muted); font-size: .92rem; }

.th-icon { display: inline-block; vertical-align: -.18em; flex: none; }

.th-eyebrow {
	font-family: var(--th-display);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--th-turquoise-dark);
	margin: 0 0 .6rem;
}
.th-eyebrow--light { color: var(--th-turquoise); }

/* ------------------------------------------------------------------ Buttons */
.th-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	border: 1.5px solid transparent;
	border-radius: 999px;
	padding: .85em 1.6em;
	font: 600 .95rem/1.2 var(--th-display);
	text-decoration: none;
	transition: background var(--th-transition), color var(--th-transition), border-color var(--th-transition), transform var(--th-transition), box-shadow var(--th-transition);
	white-space: nowrap;
}
.th-btn .th-icon { transition: transform var(--th-transition); }
.th-btn:hover .th-icon { transform: translateX(3px); }
body.is-rtl .th-btn:hover .th-icon { transform: translateX(-3px); }
.th-btn--primary { background: var(--th-navy); color: #fff; box-shadow: 0 16px 34px -22px rgba(11, 45, 91, .95); }
.th-btn--primary:hover { background: var(--th-navy-deep); color: #fff; transform: translateY(-1px); }
.th-btn--navy { background: var(--th-navy); color: #fff; }
.th-btn--navy:hover { background: var(--th-navy-deep); color: #fff; }
.th-btn--turquoise { background: var(--th-turquoise); color: var(--th-navy-deep); }
.th-btn--turquoise:hover { background: #2adbc4; color: var(--th-navy-deep); }
.th-btn--ghost { background: transparent; border-color: var(--th-line); color: var(--th-navy); }
.th-btn--ghost:hover { border-color: var(--th-navy); background: var(--th-mist); }
.th-btn--on-dark { border-color: rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.th-btn--on-dark:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.th-btn--sm { padding: .55em 1.05em; font-size: .82rem; }
.th-btn--block { width: 100%; }

.th-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font: 600 .9rem var(--th-display);
	color: var(--th-navy);
	text-decoration: none;
	white-space: nowrap;
}
.th-link-arrow:hover { color: var(--th-turquoise-dark); }

.th-chip {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .3em .75em;
	border-radius: 999px;
	font: 600 .74rem/1.3 var(--th-display);
	background: var(--th-mist);
	color: var(--th-navy);
}
.th-chip--accent { background: var(--th-turquoise-soft); color: var(--th-turquoise-dark); }
.th-chip--soft { background: #eef3f9; color: var(--th-muted); }
.th-chip--navy { background: rgba(255, 255, 255, .12); color: #fff; }
.th-chip--sky { background: rgba(43, 167, 223, .18); color: #a9e2ff; }
.th-chip--turquoise { background: rgba(20, 200, 178, .18); color: #7ff0e0; }

/* ------------------------------------------------------------------- Header */
.th-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(255, 255, 255, .94);
	border-bottom: 1px solid var(--th-line);
	padding-block: .55rem;
	isolation: isolate;
}
/* The blur lives on a pseudo-element, not on the header itself: backdrop-filter
   on the header would become the containing block of the fixed drawer and make
   the closed drawer widen the document. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.th-header { background: transparent; }
	.th-header::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		pointer-events: none;
		background: rgba(255, 255, 255, .92);
		-webkit-backdrop-filter: blur(14px);
		backdrop-filter: blur(14px);
	}
}
.th-header.is-scrolled { box-shadow: 0 1px 2px rgba(11, 45, 91, .05), 0 12px 30px -24px rgba(11, 45, 91, .38); }
.th-header__inner {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	width: min(1240px, calc(100% - (var(--th-gutter) * 2)));
	margin-inline: auto;
}
.th-header__actions { display: flex; align-items: center; gap: .8rem; margin-inline-start: auto; position: relative; z-index: 56; }

.th-brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.th-brand__logo { display: block; width: auto; height: 40px; max-width: 100%; }
.th-brand--light .th-brand__logo { height: 42px; }
.th-brand__mark { width: 42px; height: 42px; }
.th-brand__text { display: grid; line-height: 1.15; gap: .2rem; }
.th-brand__name { font: 700 1.3rem var(--th-display); letter-spacing: -.03em; color: var(--th-navy); }
.th-brand__tagline { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--th-turquoise-dark); }
.th-brand--light .th-brand__name { color: #fff; }
.th-brand--light .th-brand__tagline { color: var(--th-turquoise); }

.th-menu { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.th-menu > li { position: relative; }
.th-menu a {
	display: inline-block;
	position: relative;
	padding: .6rem .7rem;
	border-radius: 8px;
	font: 500 .9rem var(--th-display);
	color: var(--th-navy);
	text-decoration: none;
	transition: background var(--th-transition), color var(--th-transition);
}
.th-menu a::after {
	content: "";
	position: absolute;
	inset-inline: .7rem;
	inset-block-end: .2rem;
	height: 2px;
	border-radius: 2px;
	background: transparent;
	transition: background var(--th-transition);
}
.th-menu a:hover { background: var(--th-mist); color: var(--th-navy); }
.th-menu .current-menu-item > a,
.th-menu .current_page_item > a { color: var(--th-navy); }
.th-menu .current-menu-item > a::after,
.th-menu .current_page_item > a::after { background: var(--th-turquoise); }
.th-menu .sub-menu {
	position: absolute;
	inset-block-start: calc(100% + .4rem);
	inset-inline-start: 0;
	background: #fff;
	border: 1px solid var(--th-line);
	border-radius: 14px;
	box-shadow: var(--th-shadow);
	padding: .45rem;
	list-style: none;
	margin: 0;
	min-width: 200px;
	display: grid;
	gap: .1rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--th-transition), transform var(--th-transition), visibility var(--th-transition);
}
.th-menu > li:hover > .sub-menu,
.th-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.th-menu--stacked { flex-direction: column; align-items: stretch; gap: .1rem; }
.th-menu--stacked a { padding: .35rem 0; color: #c7d8ea; border-radius: 0; font-weight: 400; }
.th-menu--stacked a::after { display: none; }
.th-menu--stacked a:hover { background: transparent; color: var(--th-turquoise); }
.th-menu--stacked .current-menu-item > a { background: transparent; color: var(--th-turquoise); }

.th-lang { display: inline-flex; align-items: center; gap: .1rem; background: var(--th-mist); border-radius: 999px; padding: .18rem; }
.th-lang__link {
	padding: .3rem .62rem;
	border-radius: 999px;
	font: 600 .78rem var(--th-display);
	color: var(--th-muted);
	text-decoration: none;
}
.th-lang__link.is-active { background: #fff; color: var(--th-navy); box-shadow: 0 1px 3px rgba(11, 45, 91, .15); }
.th-lang__link:hover { color: var(--th-navy); }

.th-account { display: flex; align-items: center; gap: .6rem; }
.th-account__link { display: inline-flex; align-items: center; gap: .35rem; font: 600 .85rem var(--th-display); color: var(--th-navy); text-decoration: none; }
.th-account__link--muted { color: var(--th-muted); font-weight: 500; }
.th-account__link:hover { color: var(--th-turquoise-dark); }

.th-nav-toggle {
	display: none;
	width: 44px; height: 44px;
	border-radius: 12px;
	border: 1px solid var(--th-line);
	background: #fff;
	position: relative;
	flex: none;
}
.th-nav-toggle__bars,
.th-nav-toggle__bars::before,
.th-nav-toggle__bars::after {
	position: absolute;
	left: 50%;
	inset-inline-start: auto;
	width: 18px; height: 2px;
	background: var(--th-navy);
	border-radius: 2px;
	transform: translateX(-50%);
	transition: transform var(--th-transition), opacity var(--th-transition);
}
.th-nav-toggle__bars { top: 50%; margin-top: -1px; }
.th-nav-toggle__bars::before,
.th-nav-toggle__bars::after { content: ""; }
.th-nav-toggle__bars::before { top: -6px; }
.th-nav-toggle__bars::after { top: 6px; }
.th-header.is-open .th-nav-toggle__bars { background: transparent; }
.th-header.is-open .th-nav-toggle__bars::before { transform: translateX(-50%) rotate(45deg) translateY(6px); }
.th-header.is-open .th-nav-toggle__bars::after { transform: translateX(-50%) rotate(-45deg) translateY(-6px); }

/* ---------------------------------------------------------------- Main area */
.th-main { display: block; }
.th-main--flush { margin: 0; }

/* --------------------------------------------------------------------- Hero */
.th-hero {
	position: relative;
	padding-block: clamp(3rem, 6vw, 6rem) clamp(2.5rem, 4vw, 4rem);
	overflow: hidden;
	background:
		radial-gradient(900px 480px at 82% 8%, rgba(20, 200, 178, .14), transparent 60%),
		radial-gradient(700px 420px at 8% 92%, rgba(43, 167, 223, .1), transparent 60%),
		#fff;
}
.th-hero__glow {
	position: absolute;
	inset-block-start: -220px;
	inset-inline-end: -120px;
	width: 620px; height: 620px;
	background: radial-gradient(circle, rgba(20, 200, 178, .22), transparent 62%);
	pointer-events: none;
}
.th-hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: center;
}
.th-hero__copy { max-width: 38rem; }
.th-hero__title { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.4rem); line-height: 1.02; margin-bottom: 1.1rem; }
.th-hero__title span { display: block; }
.th-hero__title em { font-style: normal; color: var(--th-turquoise-dark); }
.th-hero__text { font-size: 1.1rem; color: var(--th-muted); max-width: 34rem; margin-bottom: 1.7rem; }
.th-hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 2.2rem; }
.th-hero__stats { display: flex; gap: clamp(1.2rem, 3vw, 2.6rem); list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.th-hero__stats li { display: grid; gap: .1rem; }
.th-hero__stats strong { font: 600 1.85rem var(--th-display); color: var(--th-navy); line-height: 1; }
.th-hero__stats span { font-size: .82rem; color: var(--th-muted); }

.th-mark-card {
	position: relative;
	border-radius: 34px;
	padding: clamp(1.6rem, 3vw, 2.4rem);
	background:
		radial-gradient(420px 300px at 78% 12%, rgba(20, 200, 178, .35), transparent 62%),
		linear-gradient(160deg, var(--th-navy) 0%, var(--th-navy-deep) 100%);
	box-shadow: 0 40px 80px -46px rgba(6, 26, 51, .85);
	display: grid;
	justify-items: center;
	gap: 1.1rem;
	isolation: isolate;
	overflow: hidden;
}
.th-mark-card::before {
	content: "";
	position: absolute;
	inset-block-start: -40%;
	inset-inline-start: -20%;
	width: 70%; height: 120%;
	background: rgba(43, 167, 223, .16);
	filter: blur(30px);
	border-radius: 50%;
	z-index: -1;
}
.th-mark-card__mark {
	width: clamp(150px, 22vw, 210px);
	height: auto;
	filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .3));
	animation: th-float 7s ease-in-out infinite;
}
.th-mark-tile {
	display: inline-grid;
	place-items: center;
	background: #fff;
	border-radius: 28px;
	padding: clamp(.7rem, 1.6vw, 1.15rem);
	box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.th-mark-tile--concept { border-radius: 34px; background: rgba(255, 255, 255, .97); }
.th-mark-tile .th-mark-card__mark { width: clamp(130px, 18vw, 180px); }
.th-mark-tile--concept img { width: clamp(180px, 24vw, 260px); }
.th-mark-card__banner { border-radius: 18px; width: 100%; height: auto; object-fit: cover; aspect-ratio: 16 / 10; }
.th-mark-card__caption { color: #cfe0f2; font-size: .8rem; letter-spacing: .06em; margin: 0; text-align: center; }
.th-mark-card__chips { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; }

@keyframes th-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* -------------------------------------------------------------- Trust strip */
.th-strip { border-block: 1px solid var(--th-line); background: var(--th-mist); }
.th-strip__inner {
	display: flex;
	align-items: center;
	gap: 1rem 2rem;
	justify-content: space-between;
	flex-wrap: wrap;
	padding-block: 1.1rem;
}
.th-strip__claim {
	font: 600 .78rem var(--th-display);
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--th-navy);
	margin: 0;
}
.th-strip__points { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.th-strip__points li { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--th-muted); }
.th-strip__points .th-icon { color: var(--th-turquoise-dark); }

/* ----------------------------------------------------------------- Sections */
.th-section { padding-block: var(--th-section); }
.th-section--courses { background: #fff; }
.th-section--filters { padding-block: clamp(1rem, 2vw, 1.6rem) 0; }
.th-section__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.th-section__head { max-width: 42rem; }
.th-section__head--center { max-width: 46rem; margin-inline: auto; text-align: center; }
.th-section__title { margin-bottom: .65rem; }
.th-section__text { color: var(--th-muted); margin: 0; }

.th-page { padding-block: clamp(2rem, 4vw, 4rem); }
.th-page--wide { padding-block: clamp(2rem, 4vw, 4rem); }
.th-page > .wp-block-post-title { margin-bottom: 1.6rem; }
.th-page__thumb { border-radius: var(--th-radius); overflow: hidden; margin-block-end: 2rem; }

.th-page-hero { padding-block: clamp(2.5rem, 4vw, 4.5rem) clamp(1.5rem, 2vw, 2rem); background: var(--th-mist); border-bottom: 1px solid var(--th-line); }
.th-page-hero--centered { text-align: center; max-width: 46rem; margin-inline: auto; }
.th-page-hero h1 { margin-bottom: .8rem; }
.th-page-hero__text { color: var(--th-muted); max-width: 42rem; margin: 0; }
.th-page-hero--centered .th-page-hero__text { margin-inline: auto; }
.th-page-hero__count { font-size: .86rem; color: var(--th-muted); margin: .6rem 0 0; }

/* -------------------------------------------------------------------- Cards */
.th-grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.th-grid--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.th-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.th-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.th-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.th-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--th-line);
	border-radius: var(--th-radius);
	overflow: hidden;
	box-shadow: var(--th-shadow-soft);
	transition: transform var(--th-transition), box-shadow var(--th-transition), border-color var(--th-transition);
}
.th-card:hover { transform: translateY(-4px); box-shadow: var(--th-shadow); border-color: #d6e2ef; }
.th-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--th-mist); overflow: hidden; }
.th-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.2, .7, .3, 1); }
.th-card:hover .th-card__media img { transform: scale(1.04); }
.th-card__ribbon { position: absolute; inset-block-start: .8rem; inset-inline-start: .8rem; }
.th-card__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.2rem 1.25rem 1.3rem; flex: 1; }
.th-card__eyebrow { font: 600 .72rem var(--th-display); letter-spacing: .08em; text-transform: uppercase; color: var(--th-turquoise-dark); margin: 0; }
.th-card__title { font-size: 1.1rem; line-height: 1.3; margin: 0; }
.th-card__title a { color: var(--th-navy); text-decoration: none; }
.th-card__title a:hover { color: var(--th-turquoise-dark); }
.th-card__excerpt { color: var(--th-muted); font-size: .88rem; margin: 0; }
.th-card__stats { color: var(--th-muted); font-size: .8rem; margin: 0; }
.th-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--th-line); }
.th-card__price { font: 600 1rem var(--th-display); color: var(--th-navy); }
.th-card__progress-label { font-size: .78rem; color: var(--th-muted); margin: 0; }
.th-card--compact .th-card__excerpt { display: none; }

.th-price { display: inline-flex; align-items: baseline; gap: .45rem; }
.th-price--free { color: var(--th-turquoise-dark); }
.th-price__now { color: var(--th-navy); font-weight: 600; }
.th-price__was { color: var(--th-muted); font-size: .82rem; font-weight: 400; }

.th-progress { height: 6px; border-radius: 999px; background: #e8eff7; overflow: hidden; }
.th-progress__bar { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--th-turquoise), var(--th-sky)); }

/* ------------------------------------------------------------------ Filters */
.th-filters {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .7fr)) auto;
	gap: .75rem;
	align-items: end;
	background: #fff;
	border: 1px solid var(--th-line);
	border-radius: 20px;
	padding: 1rem;
	box-shadow: var(--th-shadow-soft);
}
.th-filters__field { display: grid; gap: .35rem; }
.th-filters__label { font: 600 .72rem var(--th-display); letter-spacing: .08em; text-transform: uppercase; color: var(--th-muted); }
.th-filters select,
.th-filters input[type="search"] {
	width: 100%;
	border: 1px solid var(--th-line);
	border-radius: 12px;
	padding: .72em .9em;
	background: #fff;
	color: var(--th-ink);
	font-size: .92rem;
	appearance: none;
}
.th-filters select:focus,
.th-filters input[type="search"]:focus { outline: none; border-color: var(--th-turquoise); box-shadow: 0 0 0 3px rgba(20, 200, 178, .18); }
.th-filters__control { position: relative; display: block; }
.th-filters__control .th-icon { position: absolute; inset-inline-start: .85rem; inset-block-start: 50%; transform: translateY(-50%); color: var(--th-muted); }
.th-filters__control input { padding-inline-start: 2.6rem !important; }
.th-filters__actions { display: flex; gap: .4rem; }
.th-filters__actions .th-btn { padding-inline: 1.1em; }

/* --------------------------------------------------------------- Pagination */
.th-pagination { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-top: 2rem; }
.th-pagination__meta { margin-inline-end: auto; color: var(--th-muted); font-size: .84rem; }
.th-page {
	min-width: 2.6rem;
	height: 2.6rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding-inline: .8rem;
	border-radius: 12px;
	border: 1px solid var(--th-line);
	background: #fff;
	color: var(--th-navy);
	font: 600 .85rem var(--th-display);
	text-decoration: none;
}
.th-page:hover { border-color: var(--th-navy); }
.th-page.is-current { background: var(--th-navy); border-color: var(--th-navy); color: #fff; }
.th-page.is-disabled { opacity: .45; pointer-events: none; }

/* ------------------------------------------------------------------- Concept */
.th-concept {
	background:
		radial-gradient(700px 400px at 88% 6%, rgba(20, 200, 178, .24), transparent 60%),
		linear-gradient(155deg, var(--th-navy) 0%, var(--th-navy-deep) 100%);
	color: #d9e6f7;
	padding-block: var(--th-section);
	position: relative;
	overflow: hidden;
}
.th-concept__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.th-concept__title { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); margin-bottom: 1rem; }
.th-concept__title em { font-style: normal; color: var(--th-turquoise); }
.th-concept__text { color: #a9c1dc; max-width: 40rem; margin-bottom: 2rem; }
.th-concept__pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.th-pillar { border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); border-radius: 18px; padding: 1.15rem; }
.th-pillar__icon {
	display: inline-grid;
	place-items: center;
	width: 42px; height: 42px;
	border-radius: 12px;
	background: rgba(20, 200, 178, .16);
	color: var(--th-turquoise);
	margin-bottom: .8rem;
}
.th-pillar h3 { color: #fff; font-size: 1.02rem; margin-bottom: .35rem; }
.th-pillar p { color: #a9c1dc; font-size: .86rem; margin: 0; }
.th-concept__visual { justify-self: center; opacity: .95; }
.th-concept__visual img { width: clamp(200px, 26vw, 320px); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); }

/* -------------------------------------------------------------- How it works */
.th-how { background: var(--th-mist); }
.th-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; list-style: none; padding: 0; margin: 2.5rem 0 0; counter-reset: step; }
.th-step { position: relative; background: #fff; border: 1px solid var(--th-line); border-radius: var(--th-radius); padding: 1.4rem 1.3rem; }
.th-step__num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--th-navy); color: #fff; font: 600 .95rem var(--th-display); margin-bottom: .9rem; }
.th-step h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.th-step p { color: var(--th-muted); font-size: .88rem; margin: 0; }

/* ----------------------------------------------------------------------- FAQ */
.th-faq { background: #fff; }
.th-faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.th-faq__list { display: grid; gap: .7rem; }
.th-faq__item { border: 1px solid var(--th-line); border-radius: 16px; background: #fff; overflow: hidden; }
.th-faq__item[open] { border-color: #cfe6e1; box-shadow: var(--th-shadow-soft); }
.th-faq__item summary {
	display: flex;
	align-items: center;
	gap: 1rem;
	justify-content: space-between;
	padding: 1rem 1.2rem;
	font: 600 .98rem var(--th-display);
	color: var(--th-navy);
	cursor: pointer;
	list-style: none;
}
.th-faq__item summary::-webkit-details-marker { display: none; }
.th-faq__item summary .th-icon { color: var(--th-muted); transition: transform var(--th-transition); }
.th-faq__item[open] summary .th-icon { transform: rotate(180deg); color: var(--th-turquoise-dark); }
.th-faq__answer { padding: 0 1.2rem 1.1rem; color: var(--th-muted); font-size: .92rem; }
.th-faq__answer p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------------- CTA */
.th-cta {
	background:
		radial-gradient(600px 280px at 12% 100%, rgba(20, 200, 178, .3), transparent 60%),
		linear-gradient(120deg, var(--th-navy-deep), var(--th-navy-soft));
	color: #d9e6f7;
	padding-block: clamp(2.6rem, 4vw, 4rem);
}
.th-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.th-cta h2 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); margin-bottom: .5rem; max-width: 22ch; }
.th-cta p { color: #a9c1dc; margin: 0; max-width: 46ch; }
.th-cta__actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* -------------------------------------------------------------- Course detail */
.th-course-hero { background: var(--th-mist); border-bottom: 1px solid var(--th-line); padding-block: 1.6rem clamp(2rem, 3vw, 3rem); }
.th-breadcrumb { display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--th-muted); margin-bottom: 1.4rem; flex-wrap: wrap; }
.th-breadcrumb a { color: var(--th-muted); text-decoration: none; }
.th-breadcrumb a:hover { color: var(--th-navy); }
.th-course-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.th-course-hero__title { font-size: clamp(1.9rem, 1.35rem + 2.2vw, 3rem); margin-bottom: .8rem; }
.th-course-hero__excerpt { color: var(--th-muted); font-size: 1.02rem; max-width: 44rem; margin-bottom: 1.4rem; }
.th-course-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; margin: 0; padding: 0; color: var(--th-muted); font-size: .86rem; }
.th-course-meta li { display: inline-flex; align-items: center; gap: .4rem; }
.th-course-meta .th-icon { color: var(--th-turquoise-dark); }
.th-course-meta__instructor { display: inline-flex; align-items: center; gap: .55rem; color: var(--th-navy); font-weight: 500; }
.th-course-meta__instructor img { border-radius: 50%; }
.th-course-hero__media { border-radius: var(--th-radius); overflow: hidden; box-shadow: var(--th-shadow); border: 1px solid #d9e5f1; }
.th-course-hero__media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

.th-course-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: clamp(1.5rem, 3vw, 2.6rem);
	width: min(1240px, calc(100% - (var(--th-gutter) * 2)));
	margin-inline: auto;
	padding-block: clamp(2rem, 4vw, 3.5rem);
	align-items: start;
}
.th-course-layout__main { display: grid; gap: 1.4rem; min-width: 0; }
.th-course-layout__aside { position: sticky; top: 96px; }

.th-course-body { padding-block: clamp(2rem, 4vw, 3.5rem) 0; }
.th-course-body__main { display: grid; gap: 1.4rem; }

.th-panel { background: #fff; border: 1px solid var(--th-line); border-radius: var(--th-radius); padding: clamp(1.2rem, 2.5vw, 1.9rem); }
.th-panel h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.th-prose { color: var(--th-ink); }
.th-prose h2, .th-prose h3 { margin-top: 1.6rem; }
.th-prose p { color: #33465c; }
.th-prose ul, .th-prose ol { padding-inline-start: 1.2rem; color: #33465c; }
.th-prose img { border-radius: 14px; margin-block: 1.2rem; }
.th-prose blockquote { margin: 1.4rem 0; padding-inline-start: 1.2rem; border-inline-start: 3px solid var(--th-turquoise); color: var(--th-navy); font-size: 1.1rem; }

.th-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.th-checklist li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.th-checklist .th-icon { color: var(--th-turquoise-dark); margin-top: .18rem; }
.th-checklist--sm li { font-size: .88rem; color: #33465c; }
.th-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.th-list li { display: flex; gap: .55rem; align-items: flex-start; color: #33465c; font-size: .93rem; }
.th-list .th-icon { color: var(--th-turquoise-dark); margin-top: .2rem; }

/* ------------------------------------------------------------ Lesson media */
.th-lesson-video {
	margin: 0 0 1.4rem;
	border: 1px solid var(--th-line);
	border-radius: 18px;
	background: #0b1220;
	overflow: hidden;
}
.th-lesson-video__frame { position: relative; aspect-ratio: 16 / 9; background: #0b1220; }
.th-lesson-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.th-lesson-video__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .55rem .8rem;
	padding: .85rem 1rem;
	background: #fff;
	border-block-start: 1px solid var(--th-line);
}
.th-lesson-video__badge {
	display: inline-flex;
	align-items: center;
	padding: .28em .65em;
	border-radius: 999px;
	background: var(--th-turquoise-soft);
	color: var(--th-turquoise-dark);
	font: 600 .72rem var(--th-display);
	letter-spacing: .02em;
	text-transform: uppercase;
}
.th-lesson-video__status { margin: 0; color: #33465c; font-size: .9rem; }
.th-lesson-video__status.is-saving { color: var(--th-muted); }
.th-lesson-video__status.is-error { color: #b42318; }
.th-lesson-video.is-completed .th-lesson-video__status { color: var(--th-turquoise-dark); font-weight: 600; }

.th-lesson-notes {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .55rem .8rem;
	margin: 1rem 0 1.4rem;
	padding: 1rem 1.15rem;
	border: 1px solid var(--th-line);
	border-radius: 16px;
	background: #fbfdff;
}
.th-lesson-notes__label { color: var(--th-navy); font: 600 .95rem var(--th-display); }
.th-lesson-notes__link {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	color: var(--th-turquoise-dark);
	font-weight: 600;
	text-decoration: none;
}
.th-lesson-notes__link:hover,
.th-lesson-notes__link:focus-visible { text-decoration: underline; }
.th-lesson-notes__link .th-icon { flex: none; }
.th-lesson-notes__hint { flex-basis: 100%; margin: 0; color: var(--th-muted); font-size: .8rem; }

@media (max-width: 560px) {
	.th-lesson-video__meta { align-items: flex-start; flex-direction: column; }
	.th-lesson-video__status { font-size: .86rem; }
}

/* --------------------------------------------------------------- Curriculum */
.th-curriculum { padding-block: clamp(2rem, 3.4vw, 3rem) 0; }
.th-syllabus { display: grid; gap: .7rem; }
.th-syllabus__section { border: 1px solid var(--th-line); border-radius: 18px; background: #fff; overflow: hidden; }
.th-syllabus__head {
	display: flex;
	align-items: center;
	gap: .9rem;
	padding: 1rem 1.2rem;
	cursor: pointer;
	list-style: none;
	background: #fbfdff;
}
.th-syllabus__head::-webkit-details-marker { display: none; }
.th-syllabus__num { font: 600 .8rem var(--th-display); color: var(--th-turquoise-dark); background: var(--th-turquoise-soft); padding: .3em .6em; border-radius: 8px; }
.th-syllabus__title { font: 600 1rem var(--th-display); color: var(--th-navy); }
.th-syllabus__count { margin-inline-start: auto; color: var(--th-muted); font-size: .8rem; }
.th-syllabus__head .th-icon { color: var(--th-muted); transition: transform var(--th-transition); }
.th-syllabus__section[open] .th-syllabus__head .th-icon { transform: rotate(180deg); }
.th-syllabus__desc { padding: .8rem 1.2rem 0; margin: 0; color: var(--th-muted); font-size: .88rem; }
.th-syllabus__items { list-style: none; margin: 0; padding: .6rem 0; }
.th-syllabus__item { display: flex; align-items: center; gap: .7rem; padding: .65rem 1.2rem; border-block-start: 1px solid #eef3f9; }
.th-syllabus__item:first-child { border-block-start: 0; }
.th-syllabus__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--th-turquoise-soft); color: var(--th-turquoise-dark); flex: none; }
.th-syllabus__link { color: var(--th-ink); font-size: .92rem; font-weight: 500; text-decoration: none; }
a.th-syllabus__link:hover { color: var(--th-turquoise-dark); text-decoration: underline; }
.th-syllabus__meta { margin-inline-start: auto; display: inline-flex; align-items: center; gap: .5rem; color: var(--th-muted); font-size: .78rem; }
.th-lock { color: var(--th-muted); display: inline-flex; }

/* ------------------------------------------------------------- Enrollment box */
.th-enroll__card {
	background: #fff;
	border: 1px solid var(--th-line);
	border-radius: var(--th-radius);
	box-shadow: var(--th-shadow);
	padding: 1.5rem;
	display: grid;
	gap: 1.1rem;
}
.th-enroll__price { font: 600 2rem var(--th-display); color: var(--th-navy); }
.th-enroll__price .th-price__was { font-size: .95rem; }
.th-enroll__note { color: var(--th-muted); font-size: .86rem; margin: 0; }
.th-enroll__form { display: grid; gap: .5rem; }
.th-enroll__feedback { font-size: .85rem; margin: 0; min-height: 1.2em; }
.th-enroll__feedback.is-error { color: #b3261e; }
.th-enroll__feedback.is-success { color: var(--th-turquoise-dark); }
.th-enroll__includes { border-block-start: 1px solid var(--th-line); padding-block-start: 1rem; }
.th-enroll__includes h3 { font-size: .92rem; margin-bottom: .7rem; }
.th-enroll__meta { display: grid; gap: .3rem; border-block-start: 1px solid var(--th-line); padding-block-start: 1rem; font-size: .82rem; color: var(--th-muted); }
.th-enroll__meta strong { color: var(--th-navy); font-weight: 600; }
.th-enroll__progress { display: grid; gap: .4rem; }

/* ---------------------------------------------------------------- Instructor */
.th-instructor { background: #fff; border: 1px solid var(--th-line); border-radius: var(--th-radius); padding: 1.4rem; }
.th-instructor__head { display: flex; gap: .8rem; align-items: center; margin-bottom: .8rem; }
.th-instructor__head img { border-radius: 50%; }
.th-instructor__head h3 { margin: 0; font-size: 1.05rem; }
.th-instructor__head p { margin: 0; font-size: .8rem; }
.th-instructor__bio { color: var(--th-muted); font-size: .88rem; margin: 0; }

/* ---------------------------------------------------------------- Auth pages */
.th-auth {
	min-height: 60vh;
	display: grid;
	place-items: center;
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
	background:
		radial-gradient(700px 360px at 85% 0%, rgba(20, 200, 178, .14), transparent 60%),
		var(--th-mist);
}
.th-auth__panel { width: min(560px, calc(100% - 2rem)); }
.th-auth__card {
	background: #fff;
	border: 1px solid var(--th-line);
	border-radius: 24px;
	box-shadow: var(--th-shadow);
	padding: clamp(1.4rem, 3vw, 2.2rem);
}
.th-auth__card h1 { font-size: 1.8rem; margin-bottom: .5rem; }
.th-auth__switch { margin: .9rem 0 0; font-size: .86rem; text-align: center; }
.th-auth__card--sent { text-align: center; }
.th-auth__card--sent .th-btn { margin-top: 1.2rem; }
.th-auth__badge {
	display: inline-grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin-bottom: .9rem;
	border-radius: 18px;
	background: rgba(20, 200, 178, .14);
	color: var(--th-teal, #0e9f8e);
}
.th-auth__small { font-size: .84rem; }
.th-auth__switch a.is-waiting { pointer-events: none; opacity: .55; }

.th-form { display: grid; gap: 1rem; margin-top: 1.2rem; }
.th-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.th-form__note { font-size: .8rem; }
.th-field { display: grid; gap: .35rem; }
.th-field > span { font: 600 .8rem var(--th-display); color: var(--th-navy); }
.th-field input, .th-field select, .th-field textarea {
	width: 100%;
	border: 1px solid var(--th-line);
	border-radius: 12px;
	padding: .78em .9em;
	font-size: .95rem;
	background: #fff;
	color: var(--th-ink);
	transition: border-color var(--th-transition), box-shadow var(--th-transition);
}
.th-field textarea { resize: vertical; min-height: 7rem; }
.th-field input:focus, .th-field select:focus, .th-field textarea:focus { outline: none; border-color: var(--th-turquoise); box-shadow: 0 0 0 3px rgba(20, 200, 178, .18); }
.th-check { display: flex; align-items: flex-start; gap: .5rem; font-size: .86rem; color: var(--th-ink); }
.th-check input { margin-top: .22rem; accent-color: var(--th-turquoise-dark); width: 1.05rem; height: 1.05rem; }
.th-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.th-notice { border-radius: 12px; padding: .85rem 1rem; font-size: .88rem; margin-bottom: 1rem; border: 1px solid transparent; }
.th-notice--success { background: var(--th-turquoise-soft); border-color: #bfeee6; color: #0a6a5e; }
.th-notice--error { background: #fdecea; border-color: #f6cfc9; color: #a3261b; }

/* ----------------------------------------------------------------- Dashboard */
.th-dashboard { padding-block: clamp(2rem, 4vw, 3.5rem); }
.th-dashboard__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.th-dashboard__head h1 { margin: 0; }
.th-dashboard__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2.4rem; }
.th-stat { background: #fff; border: 1px solid var(--th-line); border-radius: 18px; padding: 1.1rem 1.3rem; display: grid; gap: .3rem; box-shadow: var(--th-shadow-soft); }
.th-stat span { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--th-muted); }
.th-stat strong { font: 600 1.8rem var(--th-display); color: var(--th-navy); line-height: 1.1; }
.th-dashboard__section h2 { margin-bottom: 1.2rem; }

.th-empty {
	text-align: center;
	display: grid;
	justify-items: center;
	gap: .6rem;
	padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
	background: #fff;
	border: 1px dashed #cfdceb;
	border-radius: var(--th-radius);
	color: var(--th-muted);
}
.th-empty h3 { color: var(--th-navy); margin: 0; }
.th-empty p { margin: 0; max-width: 34rem; }
.th-empty__icon { color: var(--th-turquoise-dark); }

/* ------------------------------------------------------------------ Contact */
.th-contact { padding-block: clamp(2rem, 4vw, 3.5rem); }
.th-contact__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; margin-top: 2.5rem; }
.th-contact__info { display: grid; gap: 1rem; }
.th-contact__item { display: flex; gap: .8rem; align-items: flex-start; background: #fff; border: 1px solid var(--th-line); border-radius: 16px; padding: 1rem 1.1rem; }
.th-contact__item .th-icon { color: var(--th-turquoise-dark); margin-top: .15rem; }
.th-contact__item span { display: block; font: 600 .72rem var(--th-display); letter-spacing: .08em; text-transform: uppercase; color: var(--th-muted); margin-bottom: .2rem; }
.th-contact__item a, .th-contact__item p { margin: 0; color: var(--th-navy); text-decoration: none; font-size: .95rem; }
.th-contact__form { background: #fff; border: 1px solid var(--th-line); border-radius: var(--th-radius); padding: clamp(1.2rem, 2.5vw, 2rem); box-shadow: var(--th-shadow-soft); }
.th-contact__form .th-form { margin-top: 0; }

/* ------------------------------------------------------------------- Footer */
.th-footer { background: linear-gradient(160deg, var(--th-navy-deep), var(--th-navy)); color: #c7d8ea; padding-block: clamp(2.4rem, 4vw, 3.6rem) 1.4rem; margin-top: clamp(2rem, 4vw, 3rem); }
.th-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, .7fr) minmax(0, .7fr) minmax(0, .9fr);
	gap: clamp(1.25rem, 3vw, 3rem);
	width: min(1240px, calc(100% - (var(--th-gutter) * 2)));
	margin-inline: auto;
}
.th-footer__brand { display: grid; gap: 1.1rem; align-content: start; }
.th-footer__col--contact { gap: .55rem; }
.th-footer__col--contact .th-footer__heading { margin-bottom: .1rem; }
.th-footer__col--contact:not(:has(.th-footer-info)) { display: none; }
.th-footer-info__about { color: #a9c1dc; font-size: .9rem; max-width: 34rem; }
.th-footer-info__list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .45rem; }
.th-footer-info__list li { display: flex; gap: .5rem; align-items: center; font-size: .86rem; color: #a9c1dc; }
.th-footer-info__list a { color: #d9e6f7; text-decoration: none; }
.th-footer-info__list a:hover { color: var(--th-turquoise); }
.th-footer-info__list .th-icon { color: var(--th-turquoise); }
.th-social { display: flex; gap: .4rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.th-social a {
	display: inline-flex;
	padding: .35em .8em;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .16);
	color: #d9e6f7;
	font: 500 .78rem var(--th-display);
	text-decoration: none;
}
.th-social a:hover { border-color: var(--th-turquoise); color: var(--th-turquoise); }
.th-footer__col { display: grid; gap: .8rem; align-content: start; }
.th-footer__heading { color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin: 0; }
.th-footer__bottom {
	width: min(1240px, calc(100% - (var(--th-gutter) * 2)));
	margin-inline: auto;
	border-block-start: 1px solid rgba(255, 255, 255, .12);
	margin-top: 2rem;
	padding-block-start: 1.2rem;
}
.th-siteinfo { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; width: 100%; }
.th-siteinfo p { margin: 0; font-size: .8rem; color: #8fa9c6; }
.th-siteinfo__meta { color: #6f89a8; }

/* ---------------------------------------------------------------------- 404 */
.th-404 { text-align: center; padding-block: clamp(3rem, 7vw, 6rem); display: grid; gap: .6rem; justify-items: center; }
.th-404__code { font: 700 clamp(4rem, 10vw, 7rem)/1 var(--th-display); color: var(--th-turquoise-soft); margin: 0; letter-spacing: -.05em; }
.th-404 .wp-block-search { margin-top: 1.4rem; width: min(420px, 100%); }

/* -------------------------------------------------------- WordPress blocks */
.wp-block-buttons { display: flex; gap: .6rem; flex-wrap: wrap; }
.wp-block-button__link {
	border-radius: 999px;
	padding: .85em 1.6em;
	background: var(--th-navy);
	color: #fff;
	font: 600 .95rem var(--th-display);
	text-decoration: none;
}
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border: 1.5px solid var(--th-navy); color: var(--th-navy); }
.wp-block-search__input { border: 1px solid var(--th-line); border-radius: 999px; padding: .75em 1.1em; }
.wp-block-search__button { border-radius: 999px; border: 0; background: var(--th-navy); color: #fff; padding: .75em 1.3em; font-weight: 600; }
.alignwide { width: min(1240px, calc(100% - (var(--th-gutter) * 2))); margin-inline: auto; }
.alignfull { width: 100%; max-width: 100%; }
hr.wp-block-separator { border: 0; border-top: 1px solid var(--th-line); margin-block: 2rem; }

/* -------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
	.th-grid--cards, .th-grid--cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.th-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.th-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.th-filters__field--search { grid-column: span 2; }
	.th-filters__actions { grid-column: span 2; justify-content: flex-end; }
	.th-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.th-course-layout { grid-template-columns: minmax(0, 1fr) 320px; }
	.th-concept__grid { grid-template-columns: 1fr; }
	.th-concept__visual { display: none; }
}

@media (max-width: 900px) {
	.th-header__inner { gap: .8rem; }
	.th-nav-toggle { display: inline-flex; }
	.th-menu--inline {
		position: fixed;
		inset-block-start: 0;
		inset-inline-end: 0;
		width: min(320px, 86vw);
		height: 100vh;
		background: #fff;
		box-shadow: -20px 0 60px -30px rgba(6, 26, 51, .5);
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		padding: 5.5rem 1.2rem 2rem;
		gap: .2rem;
		transform: translateX(105%);
		transition: transform var(--th-transition);
		z-index: 54;
		overflow-y: auto;
	}
	body.th-nav-open::before {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(6, 26, 51, .42);
		z-index: 53;
	}
	body.is-rtl .th-menu--inline { transform: translateX(-105%); box-shadow: 20px 0 60px -30px rgba(6, 26, 51, .5); }
	.th-header.is-open .th-menu--inline { transform: none; }
	.th-menu--inline a { display: block; padding: .8rem 1rem; font-size: 1rem; border-radius: 12px; }
	.th-hero__grid { grid-template-columns: 1fr; }
	.th-hero__visual { order: -1; max-width: 440px; }
	.th-hero__title { font-size: clamp(2.2rem, 7vw, 3rem); }
	.th-course-layout { grid-template-columns: 1fr; }
	.th-course-layout__aside { position: static; }
	.th-course-hero__grid { grid-template-columns: 1fr; }
	.th-course-hero__media { order: -1; }
	.th-concept__pillars { grid-template-columns: 1fr; }
	.th-faq__grid, .th-contact__grid { grid-template-columns: 1fr; }
	.th-footer__top { grid-template-columns: 1fr 1fr; }
	.th-footer__brand { grid-column: span 2; }
	.th-dashboard__stats { grid-template-columns: 1fr 1fr; }
	.th-section__top { align-items: flex-start; }
}

@media (max-width: 640px) {
	.th-account .th-btn { display: none; }
	.th-account__link--muted { display: none; }
	.th-lang__link { padding-inline: .5rem; }
	.th-grid--cards, .th-grid--cols-2, .th-grid--cols-3, .th-grid--cols-4 { grid-template-columns: 1fr; }
	.th-steps { grid-template-columns: 1fr; }
	.th-form__row { grid-template-columns: 1fr; }
	.th-filters { grid-template-columns: 1fr; padding: .8rem; }
	.th-filters__field--search, .th-filters__actions { grid-column: auto; }
	.th-filters__actions { justify-content: stretch; }
	.th-filters__actions .th-btn { flex: 1; }
	.th-strip__inner { flex-direction: column; align-items: flex-start; }
	.th-strip__points { gap: .6rem 1rem; }
	.th-hero__stats { gap: 1.4rem; }
	.th-hero__actions .th-btn { width: 100%; }
	.th-dashboard__stats { grid-template-columns: 1fr; }
	.th-footer__top { grid-template-columns: 1fr; }
	.th-footer__brand { grid-column: auto; }
	.th-card__foot { flex-wrap: wrap; }
	.th-cta__actions .th-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.th-mark-card__mark { animation: none; }
}

/* ------------------------------------------------------ Password toggle */
.th-password { position: relative; display: block; }
.th-password > input { width: 100%; padding-inline-end: 2.9rem; }
.th-password__toggle {
	position: absolute;
	inset-inline-end: .45rem;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--th-muted);
	cursor: pointer;
}
.th-password__toggle:hover,
.th-password__toggle:focus-visible { color: var(--th-turquoise-dark); background: var(--th-turquoise-soft); }
.th-password__toggle.is-visible { color: var(--th-turquoise-dark); }
.th-password__toggle svg { display: block; pointer-events: none; }

/* ------------------------------------------------------- Account settings */
.th-account-settings { margin-top: 2.5rem; }
.th-account-settings__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	margin-top: 1.25rem;
}
.th-account-form {
	align-content: start;
	padding: 1.5rem;
	border: 1px solid var(--th-line);
	border-radius: 16px;
	background: #fff;
}
.th-account-form h3 { margin: 0; font: 600 1.1rem var(--th-display); color: var(--th-navy); }
.th-account-photo { display: flex; align-items: center; gap: 1rem; margin: .35rem 0 .5rem; }
.th-account-photo img {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--th-line);
	background: var(--th-turquoise-soft);
}
.th-account-photo__actions { display: grid; gap: .45rem; justify-items: start; }
.th-account-photo__actions .th-muted { margin: 0; font-size: .78rem; }
.th-account-photo__actions label.th-btn { cursor: pointer; }
.th-form__feedback { min-height: 1.25rem; margin: 0; font-size: .85rem; }
.th-form__feedback.is-error { color: #b42318; }
.th-form__feedback.is-success { color: #067647; }

@media (max-width: 860px) {
	.th-account-settings__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- Print */
@media print {
	.th-header, .th-footer, .th-enroll, .th-related, .th-cta { display: none !important; }
	body { background: #fff; }
}

/* Student dashboard: lesson completion breakdown */
.th-lessons-overview { display: grid; gap: .75rem; margin-top: 1.75rem; }
.th-lessons-overview__item { border: 1px solid var(--th-line); border-radius: var(--th-radius-lg); background: #fff; padding: .35rem 1.1rem; }
.th-lessons-overview__item > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 0; cursor: pointer; font-weight: 600; }
.th-lessons-overview__title { font-family: var(--th-display); font-size: 1.05rem; }
.th-lessons-overview__count { color: var(--th-muted); font-size: .85rem; }
.th-lessons-overview__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding: .25rem 0 1.1rem; }
.th-lessons-overview__lists h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--th-muted); margin: 0 0 .5rem; }
.th-lessons-overview__lists ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.th-lessons-overview__lists li { display: flex; align-items: flex-start; gap: .5rem; font-size: .92rem; color: var(--th-ink); }
.th-lessons-overview__lists li .th-icon { flex: none; margin-top: .15rem; color: var(--th-muted); }
.th-lessons-overview__lists li.is-complete .th-icon { color: var(--th-turquoise-dark); }
@media (max-width: 640px) { .th-lessons-overview__lists { grid-template-columns: 1fr; } }

/* ------------------------------------------------ Header responsive (Stage 1) */
@media (max-width: 959px) {
	.th-header__inner { gap: .65rem; }
	.th-nav-toggle { display: inline-flex; margin-inline-start: .15rem; }
	.th-menu--inline {
		position: fixed;
		inset-block-start: 0;
		inset-inline-end: 0;
		width: min(320px, 86vw);
		height: 100vh;
		height: 100dvh;
		background: #fff;
		box-shadow: -20px 0 60px -30px rgba(6, 26, 51, .5);
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		padding: 5.5rem 1.2rem 12rem;
		gap: .2rem;
		transform: translateX(105%);
		visibility: hidden;
		pointer-events: none;
		transition: transform var(--th-transition), visibility var(--th-transition);
		z-index: 54;
		overflow-y: auto;
	}
	body.is-rtl .th-menu--inline { transform: translateX(-105%); box-shadow: 20px 0 60px -30px rgba(6, 26, 51, .5); }
	.th-header.is-open .th-menu--inline { transform: none; visibility: visible; pointer-events: auto; }
	body.th-nav-open::before {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(6, 26, 51, .42);
		z-index: 53;
	}
	.th-menu--inline a { display: block; padding: .8rem 1rem; font-size: 1rem; border-radius: 12px; }
	.th-menu--inline a::after { display: none; }
	.th-menu--inline .current-menu-item > a,
	.th-menu--inline .current_page_item > a { background: var(--th-turquoise-soft); }

	.th-header.is-open .th-header__actions {
		position: fixed;
		inset-block-end: 0;
		inset-inline-end: 0;
		width: min(320px, 86vw);
		z-index: 57;
		flex-direction: column;
		align-items: stretch;
		gap: .55rem;
		padding: .9rem 1.2rem calc(.9rem + env(safe-area-inset-bottom));
		background: #fff;
		border-block-start: 1px solid var(--th-line);
		box-shadow: 0 -16px 34px -28px rgba(6, 26, 51, .45);
	}
	.th-header.is-open .th-header__actions .th-account { flex-direction: column; align-items: stretch; gap: .45rem; }
	.th-header.is-open .th-header__actions .th-account__link { min-height: 40px; }
	.th-header.is-open .th-header__actions .th-account__link--muted { display: inline-flex; }
	.th-header.is-open .th-header__actions .th-btn { display: inline-flex; width: 100%; }
	.th-brand__logo { height: 34px; }
}

@media (max-width: 720px) {
	.th-account .th-btn { display: none; }
	.th-account__link--muted { display: none; }
	.th-brand__logo { height: 32px; }
}

@media (max-width: 480px) {
	.th-header__inner { gap: .4rem; }
	.th-brand__logo { height: 30px; }
	.th-lang__link { padding-inline: .45rem; }
}

@media (min-width: 960px) {
	.th-header__inner {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
	}
	.th-brand { justify-self: start; }
	.th-header .th-menu { justify-self: center; }
	.th-header__actions { justify-self: end; margin-inline-start: 0; }
}

/* Drawer opens below the sticky header so the official lockup and close
   control remain fully visible; the header stays above the backdrop. */
@media (max-width: 959px) {
	.th-menu--inline {
		inset-block-start: 64px;
		height: calc(100vh - 64px);
		height: calc(100dvh - 64px);
		padding: 1.2rem 1.2rem 11rem;
	}
}

/* The primary crop carries its own near-white background; matching the header
   surface keeps the supplied artwork free of a visible rectangular plate. */
.th-header { background: #f8f8f8; }
.th-header::before { background: #f8f8f8; }

/* Footer contact column responsive balance */
@media (max-width: 900px) {
	.th-footer__col--contact { grid-column: span 2; }
	.th-footer__top { gap: 2rem; }
}
@media (max-width: 640px) {
	.th-footer__col--contact { grid-column: auto; }
	.th-footer { padding-block-start: 2.4rem; }
}

/* ------------------------------------------------ Email confirmation banner */
.th-notice--warning { background: #fff5e0; border-color: #f3dfb3; color: #8a5600; }
.th-verify { background: #fff5e0; border-bottom: 1px solid #f3dfb3; color: #6b4300; }
.th-verify__inner { max-width: 1200px; margin: 0 auto; padding: .65rem var(--th-gutter); display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; font-size: .88rem; line-height: 1.5; }
.th-verify__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #ffe7b3; color: #8a5600; flex: none; }
.th-verify__text { flex: 1 1 320px; min-width: 0; overflow-wrap: anywhere; }
.th-verify__text strong { color: #5a3800; }
.th-verify__form { margin: 0; }
.th-verify .th-btn { white-space: nowrap; }
.th-enroll .th-verify__form { margin-top: .25rem; }

/* ===================================================== 1.3.0 brand & header
   Official artwork, rebuilt from the supplied master files: the header uses
   the mark + wordmark (no tagline — it is unreadable at header size), the
   footer uses the reverse artwork with the tagline as live text, and the
   hero/concept panels use the reverse mark directly (no white plate). */
.th-header, .th-header::before { background: #fff; }
.th-brand__logo { height: 46px; width: auto; max-width: none; }
.th-brand--light { flex-direction: column; align-items: flex-start; gap: .55rem; }
.th-brand--light .th-brand__logo { height: 50px; }
.th-brand--light .th-brand__tagline {
	font: 600 .7rem/1 var(--th-display);
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--th-turquoise);
	padding-inline-start: .15rem;
}
body.is-rtl .th-brand--light .th-brand__tagline,
.lang-ar .th-brand--light .th-brand__tagline { letter-spacing: 0; font-family: "Cairo", var(--th-body); font-size: .85rem; }

.th-mark-card__emblem {
	display: block;
	width: clamp(200px, 30vw, 300px);
	height: auto;
	filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35));
	animation: th-float 7s ease-in-out infinite;
}
.th-mark-card__emblem--concept { width: clamp(220px, 30vw, 320px); animation: none; }

/* Language toggle: one pill that names the other language. */
.th-lang { padding: 0; background: transparent; }
.th-lang__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 .85rem;
	border: 1px solid var(--th-line);
	border-radius: 999px;
	background: #fff;
	font: 600 .82rem/1 var(--th-display);
	color: var(--th-navy);
	white-space: nowrap;
}
.th-lang__link--ar { font-family: "Cairo", "Segoe UI", Tahoma, sans-serif; font-size: .9rem; padding-block-end: .1rem; }
.th-lang__link:hover { border-color: var(--th-turquoise); color: var(--th-navy); }

.th-account__link, .th-account__label { white-space: nowrap; }

@media (max-width: 959px) {
	.th-brand__logo { height: 40px; }
}
@media (max-width: 720px) {
	.th-brand__logo { height: 38px; }
}
@media (max-width: 560px) {
	/* Icon-only account link so the logo, language and menu never collide. */
	.th-header__actions { gap: .45rem; }
	.th-header .th-account__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.th-header .th-account__link:not(.th-account__link--muted) {
		width: 38px; height: 38px; justify-content: center;
		border: 1px solid var(--th-line); border-radius: 999px; background: #fff;
	}
	.th-lang__link { min-height: 38px; padding: 0 .7rem; }
	.th-nav-toggle { width: 40px; height: 40px; }
	.th-brand--light .th-brand__logo { height: 44px; }
}
@media (max-width: 400px) {
	.th-header__inner { gap: .35rem; }
	.th-lang__link { padding: 0 .55rem; }
}
@media (max-width: 350px) {
	.th-brand__logo { height: 32px; }
}
/* Inside the open mobile drawer the account links show their labels again. */
.th-header.is-open .th-header__actions .th-account__label { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
.th-header.is-open .th-header__actions .th-account__link:not(.th-account__link--muted) { width: auto; height: auto; border: 0; background: transparent; justify-content: flex-start; }

/* Breathing room for display type: Cairo (Arabic) has taller ascenders and
   descenders than Poppins, so tight Latin line-heights made lines collide. */
.th-hero__title { line-height: 1.1; }
body.is-rtl h1, body.is-rtl h2, body.is-rtl h3, body.is-rtl h4 { line-height: 1.4; }
body.is-rtl .th-hero__title { line-height: 1.35; }
body.is-rtl .th-concept__title { line-height: 1.4; }
body.is-rtl .th-hero__stats strong { line-height: 1.25; }
body.is-rtl .th-hero__stats li { gap: .25rem; }
body.is-rtl .th-eyebrow, body.is-rtl .th-section__eyebrow { letter-spacing: 0; }

/* ------------------------------------------------------------- checkout */
.th-pay__title { margin: .3rem 0 1.4rem; font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem); }
.th-pay__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 1.4rem; align-items: start; }
.th-panel {
	min-width: 0;
	padding: clamp(1.2rem, 2.4vw, 1.8rem);
	background: #fff;
	border: 1px solid var(--th-line);
	border-radius: var(--th-radius, 20px);
	box-shadow: var(--th-shadow-soft);
}
.th-pay__item .th-chip, .th-bundle .th-chip { align-self: flex-start; width: auto; }
.th-pay__item { display: flex; flex-direction: column; align-items: flex-start; }
.th-pay__item > ul { align-self: stretch; }
.th-pay__name { margin: .8rem 0 .6rem; font-size: 1.4rem; line-height: 1.35; }
.th-pay__courses { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .5rem; }
.th-pay__courses li { display: flex; align-items: center; gap: .55rem; padding: .7rem .85rem; border-radius: 12px; background: var(--th-mist); }
.th-pay__courses li svg { color: var(--th-turquoise-dark); flex: none; }
.th-pay__courses a { color: var(--th-navy); font-weight: 500; text-decoration: none; }
.th-pay__summary { position: sticky; top: 90px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.th-pay__heading { margin: 0; font-size: 1.1rem; }
.th-pay__lines { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem 0; margin: 0; }
.th-pay__lines dt { padding-inline-end: 1rem; }
.th-pay__lines dt { color: var(--th-muted); }
.th-pay__lines dd { margin: 0; text-align: end; font-weight: 500; color: var(--th-navy); white-space: nowrap; }
.th-pay__lines code { font-size: .8rem; padding: .1rem .35rem; border-radius: 6px; background: var(--th-mist); color: var(--th-navy); }
.th-pay__minus { color: var(--th-turquoise-dark) !important; }
.th-pay__lines .th-pay__total { padding-top: .75rem; border-top: 1px solid var(--th-line); font: 600 1.15rem var(--th-display); color: var(--th-navy); }
.th-pay__coupon { display: grid; gap: .45rem; }
.th-pay__coupon label { font-size: .85rem; font-weight: 600; color: var(--th-navy); }
.th-pay__coupon-row { display: flex; gap: .5rem; min-width: 0; }
.th-pay__coupon-row .th-btn { flex: none; padding-inline: 1rem; }
.th-pay__coupon input {
	flex: 1 1 0; width: auto; min-width: 0; height: 44px; padding: 0 .9rem;
	border: 1px solid var(--th-line); border-radius: 12px; background: #fff;
	font: 600 .95rem var(--th-display); letter-spacing: .06em; text-transform: uppercase; color: var(--th-navy);
}
.th-pay__coupon input:focus { outline: none; border-color: var(--th-turquoise); box-shadow: 0 0 0 3px rgba(20, 200, 178, .18); }
.th-pay__coupon-msg { margin: 0; font-size: .85rem; }
.th-pay__coupon-msg.is-error { color: #b42318; }
.th-pay__coupon-msg.is-ok { color: var(--th-turquoise-dark); }
.th-pay__note { margin: 0; font-size: .82rem; color: var(--th-muted); display: flex; gap: .4rem; align-items: flex-start; }
.th-pay__note svg { flex: none; margin-top: .15rem; }
.th-pay__form { margin: 0; }
@media (max-width: 860px) {
	.th-pay__grid { grid-template-columns: 1fr; }
	.th-pay__summary { position: static; }
}

/* -------------------------------------------------------------- bundles */
.th-bundles { padding-top: 0; }
.th-bundles__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.th-bundle {
	display: flex; flex-direction: column; align-items: stretch; gap: 1rem; min-width: 0;
	padding: 1.4rem; border-radius: 22px; background: #fff;
	border: 1px solid var(--th-line); box-shadow: 0 20px 44px -36px rgba(6, 26, 51, .55);
}
.th-bundle__title { margin: .7rem 0 .3rem; font-size: 1.2rem; line-height: 1.35; }
.th-bundle__text { margin: 0; color: var(--th-muted); font-size: .92rem; }
.th-bundle__courses { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.th-bundle__courses li { display: flex; gap: .5rem; align-items: center; font-size: .92rem; }
.th-bundle__courses svg { color: var(--th-turquoise-dark); flex: none; }
.th-bundle__courses a { color: var(--th-ink, #1d2b3c); text-decoration: none; }
.th-bundle__courses a:hover { color: var(--th-turquoise-dark); }
.th-bundle__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--th-line); }
.th-bundle__price strong { font: 600 1.3rem var(--th-display); color: var(--th-navy); }
.th-bundle__price s { color: var(--th-muted); font-size: .9rem; margin-inline-start: .3rem; }

/* ---------------------------------------------------------- loading screen */
.th-loader { display: none; }
html.th-loading .th-loader,
html.th-leaving .th-loader {
	display: grid;
	place-items: center;
	position: fixed;
	inset: 0;
	z-index: 100000;
	background:
		radial-gradient(600px 300px at 80% 0%, rgba(20, 200, 178, .12), transparent 70%),
		#fff;
	animation: th-loader-in .25s ease .12s both;
}
html.th-leaving .th-loader { animation-delay: .18s; }
.th-loader__inner { display: grid; justify-items: center; gap: 1.2rem; }
.th-loader__mark { width: clamp(120px, 28vw, 170px); height: auto; animation: th-loader-pulse 1.4s ease-in-out infinite; }
.th-loader__bar { position: relative; width: 140px; height: 4px; border-radius: 999px; background: #e3eaf2; overflow: hidden; }
.th-loader__bar span { position: absolute; inset-block: 0; width: 40%; border-radius: inherit; background: linear-gradient(90deg, var(--th-turquoise), var(--th-navy)); animation: th-loader-slide 1.1s ease-in-out infinite; }
html.th-loaded .th-loader { display: grid; position: fixed; inset: 0; z-index: 100000; place-items: center; background: #fff; animation: th-loader-out .35s ease forwards; pointer-events: none; }
@keyframes th-loader-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes th-loader-out { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes th-loader-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.94); opacity: .8; } }
@keyframes th-loader-slide { 0% { inset-inline-start: -40%; } 100% { inset-inline-start: 100%; } }
@media (prefers-reduced-motion: reduce) {
	.th-loader__mark, .th-loader__bar span { animation: none; }
}

/* ------------------------------------------------- catalog filters (phones) */
.th-filters__toggle { display: none; }
@media (max-width: 720px) {
	.th-filters__toggle {
		display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
		min-height: 44px; border: 1px solid var(--th-line); border-radius: 12px; background: #fff;
		font: 600 .9rem var(--th-display); color: var(--th-navy); cursor: pointer;
	}
	.th-filters:not(.is-open) > :not(.th-filters__field--search):not(.th-filters__toggle) { display: none !important; }
	.th-filters.is-open .th-filters__toggle { background: var(--th-mist); }
}

/* ------------------------------------------------------- course buy bar */
.th-buybar { display: none; }
@media (max-width: 959px) {
	.th-buybar:not([hidden]) {
		display: flex; align-items: center; justify-content: space-between; gap: 1rem;
		position: fixed; inset-inline: 0; bottom: 0; z-index: 900;
		padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .97); border-top: 1px solid var(--th-line);
		box-shadow: 0 -12px 30px -20px rgba(6, 26, 51, .45);
		transform: translateY(0); transition: transform .25s ease;
	}
	.th-buybar.is-hidden { transform: translateY(110%); }
	.th-buybar .th-price { margin: 0; }
	.th-buybar .th-btn { flex: none; }
	body.has-buybar .th-footer { padding-bottom: 5rem; }
}

/* ------------------------------------------------------ curriculum header */
.th-syllabus__count { white-space: nowrap; flex: none; }

/* --------------------------------------------- editorial page sections
   About / FAQ / Privacy / Terms bodies are plain block groups; give them the
   same gutters and reading width as the rest of the site. */
.th-main > .wp-block-post-content > .section-block,
.th-main > .wp-block-post-content > .prose,
.th-main > .wp-block-post-content > .page-hero,
.wp-block-post-content > .section-block,
.wp-block-post-content > .prose,
.wp-block-post-content > .page-hero {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	padding-inline: var(--th-gutter, 20px) !important;
}
.section-block > *, .prose > *, .page-hero > * {
	max-width: 760px !important;
	margin-inline: auto !important;
}
.section-block { padding-block: clamp(2.5rem, 6vw, 4.5rem) !important; }
.section-block .section-title { margin-bottom: 1rem; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); line-height: 1.3; }
.section-block .section-text, .prose p { font-size: 1.05rem; line-height: 1.8; color: var(--th-ink, #1d2b3c); }
.page-hero { padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem !important; background: var(--th-mist); }
.page-hero .eyebrow { margin: 0 auto .4rem; font: 600 .78rem var(--th-display); letter-spacing: .18em; color: var(--th-turquoise-dark); }
.page-hero h1 { margin-top: 0; font-size: clamp(1.8rem, 1.4rem + 2vw, 2.8rem); line-height: 1.25; }
.prose { padding-block: 2rem 4rem !important; }
body.is-rtl .page-hero .eyebrow { letter-spacing: 0; }
body.is-rtl .section-block .section-text, body.is-rtl .prose p { line-height: 1.95; }

/* Authenticator code field */
.th-field input.th-code-input { direction: ltr; text-align: center; font-size: 1.35rem; letter-spacing: .35em; font-variant-numeric: tabular-nums; }
