/*
 * Course pages: catalog, course page, home-page shortcodes, account views.
 * RTL-first: layout uses logical properties (inline/block), so it also works in LTR.
 * --ce-cat is set inline per course/category to tint badges and headers.
 */

:root {
	/* Zain Libya brand (from the logo). Bright tones are for shapes and accents only:
	   white text on them fails contrast, so text and buttons use the deeper shades. */
	--ce-brand-orange: #e84e0e;
	--ce-brand-blue: #08a5e0;
	--ce-brand-stripe: linear-gradient(90deg, var(--ce-brand-orange) 0 50%, var(--ce-brand-blue) 50% 100%);
	--ce-primary: #0677aa;        /* links, tags, secondary buttons — 5:1 on white */
	--ce-primary-strong: #05557a;
	--ce-accent: #c2410a;         /* main action buttons — 5.2:1 with white text */
	--ce-accent-strong: #9c3408;
	--ce-navy: #0b2236;
	--ce-ink: #0b2236;
	--ce-text: #33475b;
	--ce-muted: #5e7184;
	--ce-line: #dde6ee;
	--ce-soft: #eef4f9;
	--ce-bg: #f6fafd;
	--ce-card: #ffffff;
	--ce-success: #15803d;
	--ce-success-soft: #dcfce7;
	--ce-warn: #b45309;
	--ce-warn-soft: #fef3c7;
	--ce-danger: #b91c1c;
	--ce-gold: #f59e0b;
	--ce-radius: 14px;
	--ce-radius-sm: 8px;
	--ce-shadow: 0 1px 2px rgba(11, 34, 54, 0.06), 0 4px 12px rgba(11, 34, 54, 0.07);
	--ce-shadow-lg: 0 10px 30px rgba(11, 34, 54, 0.14);
	--ce-cat: var(--ce-primary);
}

/* ---------- Base ---------- */

.ce-catalog,
.ce-course-page,
.ce-shortcode,
.ce-hero-home,
.ce-steps {
	color: var(--ce-text);
	line-height: 1.7;
}

.ce-catalog,
.ce-course-page {
	background: var(--ce-bg);
	padding-block-end: 64px;
}

/* Full-width pages: same edge padding as the theme's header and footer. */
.ce-container {
	max-width: none;
	margin-inline: auto;
	padding-inline: clamp(16px, 3vw, 48px);
}

.ce-icon {
	flex: none;
	vertical-align: middle;
}

.ce-muted {
	color: var(--ce-muted);
}

.ce-btn,
.ce-catalog .button.ce-button,
.ce-course-page .button.ce-button,
.ce-course-page .ce-run-actions .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 22px;
	border: 1px solid transparent;
	border-radius: var(--ce-radius-sm);
	background: var(--ce-accent);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ce-btn:hover,
.ce-btn:focus-visible,
.ce-catalog .button.ce-button:hover,
.ce-course-page .button.ce-button:hover,
.ce-course-page .ce-run-actions .button:hover {
	background: var(--ce-accent-strong);
	color: #fff;
	box-shadow: var(--ce-shadow);
}

.ce-btn:active {
	transform: translateY(1px);
}

.ce-btn-ghost,
.ce-course-page .ce-run-actions .button.ce-button-secondary {
	background: transparent;
	color: var(--ce-primary);
	border-color: currentColor;
}

.ce-btn-ghost:hover,
.ce-btn-ghost:focus-visible {
	background: var(--ce-primary);
	color: #fff;
}

.ce-btn-block {
	display: flex;
	width: 100%;
}

:where(.ce-catalog, .ce-course-page, .ce-shortcode, .ce-hero-home) a:focus-visible,
:where(.ce-catalog, .ce-course-page, .ce-shortcode, .ce-hero-home) button:focus-visible,
:where(.ce-catalog, .ce-course-page, .ce-shortcode, .ce-hero-home) summary:focus-visible,
:where(.ce-catalog, .ce-course-page, .ce-shortcode, .ce-hero-home) select:focus-visible,
:where(.ce-catalog, .ce-course-page, .ce-shortcode, .ce-hero-home) input:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--ce-primary) 45%, transparent);
	outline-offset: 2px;
}

/* ---------- Chips and tags ---------- */

.ce-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.6;
	text-decoration: none;
	white-space: nowrap;
}

.ce-chip-cat {
	background: var(--ce-cat);
	color: #fff;
}

.ce-chip-featured {
	background: var(--ce-gold);
	color: #1f1300;
}

.ce-chip-postponed {
	background: var(--ce-warn-soft);
	color: var(--ce-warn);
}

.ce-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 10px;
	border-radius: 6px;
	background: var(--ce-soft);
	color: var(--ce-text);
	font-size: 0.8rem;
	font-weight: 600;
}

.ce-tag-upcoming {
	background: color-mix(in srgb, var(--ce-brand-blue) 14%, #fff);
	color: var(--ce-primary-strong);
}

.ce-tag-running {
	background: var(--ce-success-soft);
	color: var(--ce-success);
}

.ce-tag-postponed {
	background: var(--ce-warn-soft);
	color: var(--ce-warn);
}

/* ---------- Hero ---------- */

.ce-hero {
	position: relative;
	padding-block: 40px 48px;
	color: #dde6ee;
	background-color: var(--ce-navy);
	background-image:
		radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--ce-cat) 55%, transparent) 0, transparent 45%),
		linear-gradient(135deg, var(--ce-navy) 0%, color-mix(in srgb, var(--ce-cat) 40%, var(--ce-navy)) 100%);
}

/* The logo's two colours as a thin signature line under dark heroes. */
.ce-hero::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	height: 4px;
	background: var(--ce-brand-stripe);
}

.ce-hero h1 {
	margin: 0 0 8px;
	color: #fff;
	font-size: clamp(1.7rem, 3.6vw, 2.6rem);
	line-height: 1.3;
	font-weight: 700; /* Kufi is dense: 700 reads as bold as other fonts' 800. */
}

.ce-hero-lead {
	max-width: 720px;
	margin: 0 0 20px;
	color: #c9d7e5;
	font-size: 1.08rem;
}

.ce-hero-head {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

/* Course list hero, wide screens: faint shapes on the empty side. */
.ce-catalog-art {
	display: none;
}

@media (min-width: 1200px) {
	.ce-hero-catalog > .ce-container {
		position: relative;
		z-index: 1;
	}

	.ce-catalog-art {
		display: block;
		position: absolute;
		inset-block: 0;
		inset-inline-end: 0;
		width: min(1000px, calc(100% - 820px));
		overflow: hidden;
		pointer-events: none;
	}

	.ce-catalog-shapes {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
	}

	.ce-catalog-rings circle {
		fill: none;
		stroke: rgba(255, 255, 255, 0.09);
		stroke-width: 1.5;
	}

	.ce-catalog-rings circle.is-dashed {
		stroke-dasharray: 4 10;
		stroke: rgba(255, 255, 255, 0.14);
	}

	.ce-catalog-rings {
		transform-origin: 300px 165px;
		animation: ce-deco-turn 120s linear infinite;
	}

	.ce-catalog-dots {
		fill: rgba(255, 255, 255, 0.16);
		animation: ce-deco-drift 14s ease-in-out infinite alternate;
	}

	.ce-catalog-line {
		fill: none;
		stroke: rgba(255, 255, 255, 0.22);
		stroke-width: 1.6;
		stroke-dasharray: 2 9;
		stroke-linecap: round;
		animation: ce-deco-flow 6s linear infinite;
	}

	.ce-catalog-stop {
		fill: var(--ce-navy);
		stroke: rgba(255, 255, 255, 0.4);
		stroke-width: 2;
	}

	.ce-catalog-emblem {
		fill: none;
		stroke: rgba(255, 255, 255, 0.12);
		stroke-width: 1.6;
		stroke-linejoin: round;
		stroke-linecap: round;
		animation: ce-emblem-float 8s ease-in-out infinite alternate;
	}

	.ce-catalog-emblem .is-fill {
		fill: rgba(255, 255, 255, 0.02);
		stroke: none;
	}

	.ce-catalog-emblem .is-soft {
		stroke: rgba(255, 255, 255, 0.08);
		stroke-width: 1.2;
	}

	@keyframes ce-emblem-float {
		from { transform: translate(300px, 155px); }
		to { transform: translate(300px, 147px); }
	}

	.ce-catalog-plus {
		stroke: rgba(255, 255, 255, 0.3);
		stroke-width: 2;
		stroke-linecap: round;
	}

}

@media (min-width: 1200px) and (prefers-reduced-motion: reduce) {
	.ce-catalog-rings,
	.ce-catalog-dots,
	.ce-catalog-line,
	.ce-catalog-emblem {
		animation: none;
	}
}

.ce-hero-icon {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border-radius: 16px;
	background: var(--ce-cat);
	color: #fff;
	flex: none;
}

.ce-search {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 680px;
	padding: 6px;
	padding-inline-start: 16px;
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--ce-shadow-lg);
	color: var(--ce-muted);
}

.ce-search input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 10px 4px;
	font-size: 1rem;
	color: var(--ce-ink);
	box-shadow: none;
}

.ce-search input[type="search"]:focus {
	outline: none;
}

.ce-search:focus-within {
	box-shadow: var(--ce-shadow-lg), 0 0 0 3px color-mix(in srgb, var(--ce-primary) 40%, transparent);
}

/* ---------- Catalog layout ---------- */

.ce-catalog-body {
	margin-block-start: 28px;
}

.ce-catalog-body > .woocommerce-notices-wrapper:empty {
	display: none;
}

.ce-results-query {
	margin: 0 0 16px;
	color: var(--ce-ink);
	font-weight: 600;
}

.ce-results-query a {
	margin-inline-start: 10px;
	color: var(--ce-primary);
	font-weight: 500;
}

/* ---------- Filter bar: one line of dropdowns under the search box ---------- */

.ce-filterbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin-block-start: 16px;
}

.ce-filterbar-items {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.ce-dd-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex: none;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ce-dd-wrap:hover {
	border-color: rgba(255, 255, 255, 0.45);
	background: rgba(255, 255, 255, 0.14);
}

.ce-dd-wrap.is-set {
	border-color: #fff;
	background: #fff;
}

.ce-dd summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	padding-inline: 14px 10px;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	list-style: none;
}

.ce-dd summary::-webkit-details-marker {
	display: none;
}

.ce-dd summary .ce-icon {
	transition: transform 0.15s ease;
}

.ce-dd[open] summary .ce-icon {
	transform: rotate(180deg);
}

.ce-dd-wrap.is-set summary {
	color: var(--ce-primary-strong);
}

.ce-dd summary:focus-visible {
	border-radius: 999px;
	outline: 3px solid color-mix(in srgb, var(--ce-brand-blue) 60%, transparent);
	outline-offset: 2px;
}

.ce-dd-clear {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	margin-inline-end: 6px;
	border-radius: 50%;
	color: var(--ce-primary-strong);
	font-size: 1.1rem;
	line-height: 1;
	text-decoration: none;
}

.ce-dd-clear:hover,
.ce-dd-clear:focus-visible {
	background: var(--ce-soft);
}

.ce-dd-menu {
	position: absolute;
	z-index: 30;
	inset-block-start: calc(100% + 8px);
	inset-inline-start: 0;
	min-width: 230px;
	max-height: min(60vh, 420px);
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius-sm);
	background: var(--ce-card);
	box-shadow: var(--ce-shadow-lg);
	list-style: none;
}

.ce-dd-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 10px;
	border-radius: 6px;
	color: var(--ce-text);
	font-size: 0.92rem;
	text-decoration: none;
	white-space: nowrap;
}

.ce-dd-option > span:first-child {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ce-dd-option:hover,
.ce-dd-option:focus-visible {
	background: var(--ce-soft);
	color: var(--ce-ink);
}

.ce-dd-option.is-active {
	background: color-mix(in srgb, var(--ce-primary) 10%, #fff);
	color: var(--ce-primary);
	font-weight: 700;
}

.ce-filterbar-clear {
	flex: none;
	padding-inline: 6px;
	color: #c9d7e5;
	font-size: 0.88rem;
	text-decoration: underline;
}

.ce-filterbar-clear:hover {
	color: #fff;
}

.ce-filter-count {
	min-width: 24px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--ce-soft);
	color: var(--ce-muted);
	font-size: 0.76rem;
	text-align: center;
}

.ce-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--ce-cat);
}

/* ---------- Cards ---------- */

.ce-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 22px;
}

/* Catalog: three courses per row; four on very wide screens, where three cards would
   each be ~550px wide with oversized images. Four stays near the 400–450px of a normal card. */
.ce-catalog .ce-grid,
.ce-shortcode .ce-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

@media (min-width: 1700px) {
	.ce-catalog .ce-grid,
	.ce-shortcode .ce-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Full-width pages keep long text readable: about 75 characters per line. */
.ce-course-main :is(.ce-prose, .ce-section > p, .ce-accordion, .ce-teacher) {
	max-width: 820px;
}

.ce-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius);
	background: var(--ce-card);
	box-shadow: var(--ce-shadow);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ce-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--ce-shadow-lg);
}

.ce-card.is-featured {
	border-color: color-mix(in srgb, var(--ce-gold) 55%, var(--ce-line));
}

.ce-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: color-mix(in srgb, var(--ce-cat) 15%, #fff);
}

.ce-media-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.ce-card:hover .ce-media-img {
	transform: scale(1.04);
}

.ce-media-fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var(--ce-cat);
	background:
		radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--ce-cat) 25%, transparent), transparent 50%),
		color-mix(in srgb, var(--ce-cat) 12%, #fff);
}

.ce-card-media .ce-chip {
	position: absolute;
	inset-block-start: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.ce-card-media .ce-chip-cat {
	inset-inline-start: 12px;
}

.ce-card-media .ce-chip-featured {
	inset-inline-end: 12px;
}

.ce-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 16px 18px 12px;
}

.ce-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ce-card-title {
	margin: 0;
	font-size: 1.12rem;
	line-height: 1.45;
	font-weight: 700;
}

.ce-card-title a {
	color: var(--ce-ink);
	text-decoration: none;
}

.ce-card-title a::after {
	/* The whole card is clickable via the title link. */
	content: "";
	position: absolute;
	inset: 0;
}

.ce-card {
	position: relative;
}

.ce-card-title a:hover {
	color: var(--ce-primary);
}

.ce-card-summary {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--ce-muted);
	font-size: 0.93rem;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ce-card-teacher {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--ce-text);
	font-size: 0.9rem;
	font-weight: 600;
}

.ce-avatar {
	border-radius: 50%;
	object-fit: cover;
	flex: none;
}

.ce-avatar-initial {
	display: inline-grid;
	place-items: center;
	background: color-mix(in srgb, var(--ce-cat) 18%, #fff);
	color: var(--ce-cat);
	font-weight: 700;
}

.ce-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: auto 0 0;
	padding: 10px 0 0;
	border-block-start: 1px dashed var(--ce-line);
	list-style: none;
	color: var(--ce-muted);
	font-size: 0.85rem;
}

/* The start date on its own line, under the hours and sessions. */
.ce-card-meta .ce-card-when {
	flex-basis: 100%;
	order: 1;
}

.ce-card-meta li {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.ce-card-meta li.is-low,
.ce-buybox-facts li.is-low,
.ce-seats.is-low {
	color: var(--ce-danger);
	font-weight: 700;
}

.ce-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 18px 16px;
}

.ce-card-footer .ce-btn {
	position: relative;
	z-index: 1;
	min-height: 38px;
	padding: 6px 16px;
	font-size: 0.92rem;
}

.ce-price {
	color: var(--ce-ink);
	font-size: 1.15rem;
	font-weight: 700;
}

.ce-price.is-free {
	color: var(--ce-success);
}

.ce-price-muted {
	color: var(--ce-muted);
	font-size: 0.92rem;
	font-weight: 600;
}

.ce-price-enrolled {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ce-success);
	font-size: 0.98rem;
}

/* ---------- Catalog: grid / list, courses per page ---------- */

.ce-results-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin-block-end: 20px;
}

.ce-view-switch,
.ce-per-page {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	border: 1px solid var(--ce-line);
	border-radius: 999px;
	background: var(--ce-card);
}

.ce-per-page > span {
	padding-inline: 10px 6px;
	color: var(--ce-muted);
	font-size: 0.86rem;
	font-weight: 600;
}

.ce-view-switch a,
.ce-per-page a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 38px;
	padding: 6px 14px;
	border-radius: 999px;
	color: var(--ce-ink);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.ce-view-switch a:hover,
.ce-per-page a:hover {
	background: var(--ce-soft, #eef4f9);
}

.ce-view-switch a.is-active,
.ce-per-page a.is-active {
	background: var(--ce-primary);
	color: #fff;
}

/* List view: one course per row, the image beside the text and the price at the end. */
.ce-catalog .ce-grid.is-list {
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}

.ce-grid.is-list .ce-card {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr) auto;
}

.ce-grid.is-list .ce-card-media {
	aspect-ratio: auto;
	min-height: 100%;
}

.ce-grid.is-list .ce-card-media .ce-media-img {
	position: absolute;
	inset: 0;
}

.ce-grid.is-list .ce-card-body {
	padding: 18px 22px;
}

.ce-grid.is-list .ce-card-footer {
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	gap: 12px;
	min-width: 190px;
	padding: 18px 22px;
	border-block-start: 0;
	border-inline-start: 1px solid var(--ce-line);
	text-align: center;
}

@media (max-width: 760px) {
	.ce-grid.is-list .ce-card {
		display: flex;
		flex-direction: column;
	}

	.ce-grid.is-list .ce-card-media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.ce-grid.is-list .ce-card-media .ce-media-img {
		position: static;
	}

	.ce-grid.is-list .ce-card-footer {
		flex-direction: row;
		justify-content: space-between;
		border-inline-start: 0;
		border-block-start: 1px solid var(--ce-line);
	}

	.ce-per-page > span {
		display: none;
	}
}

/* ---------- Pagination / empty ---------- */

.ce-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-block-start: 32px;
}

.ce-pagination a {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius-sm);
	background: var(--ce-card);
	color: var(--ce-ink);
	font-weight: 700;
	text-decoration: none;
}

.ce-pagination a.is-current,
.ce-pagination a:hover {
	background: var(--ce-primary);
	border-color: var(--ce-primary);
	color: #fff;
}

.ce-empty {
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 56px 20px;
	border: 1px dashed var(--ce-line);
	border-radius: var(--ce-radius);
	background: var(--ce-card);
	color: var(--ce-muted);
	text-align: center;
}

.ce-empty h2 {
	margin: 8px 0 0;
	color: var(--ce-ink);
	font-size: 1.25rem;
}

/* ---------- Course page ---------- */

.ce-hero-course {
	padding-block: 36px 56px;
}

.ce-hero-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-block-end: 12px;
}

.ce-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 6px 0 20px;
	padding: 0;
	list-style: none;
}

.ce-facts li {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 10px;
	align-items: center;
	padding: 10px 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
}

.ce-facts li .ce-icon {
	grid-row: span 2;
	color: color-mix(in srgb, var(--ce-cat) 45%, #fff);
}

.ce-facts li span {
	color: #9fb3c8;
	font-size: 0.78rem;
}

.ce-facts li strong {
	color: #fff;
	font-size: 0.95rem;
}

.ce-hero-teacher {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ce-hero-teacher div > span {
	display: block;
	color: #9fb3c8;
	font-size: 0.8rem;
}

.ce-hero-teacher div > strong {
	color: #fff;
}

.ce-course-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	grid-template-areas: "main aside";
	gap: 32px;
	align-items: start;
}

.ce-course-main {
	grid-area: main;
	padding-block-start: 28px;
}

.ce-buybox {
	grid-area: aside;
	position: sticky;
	inset-block-start: 24px;
	margin-block-start: -200px;
	overflow: hidden;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius);
	background: var(--ce-card);
	box-shadow: var(--ce-shadow-lg);
}

.ce-hero-course .ce-hero-text {
	max-width: calc(100% - 392px);
}

.ce-buybox-media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: color-mix(in srgb, var(--ce-cat) 15%, #fff);
}

.ce-buybox-body {
	display: grid;
	gap: 12px;
	padding: 20px;
}

.ce-buybox-price {
	margin: 0;
	color: var(--ce-ink);
	font-size: 1.9rem;
	font-weight: 700;
	line-height: 1.2;
}

.ce-buybox-price.is-free {
	color: var(--ce-success);
}

.ce-buybox-price.ce-price-muted {
	font-size: 1.1rem;
}

.ce-buybox-price.ce-price-enrolled {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 1.15rem;
}

.ce-buybox-facts,
.ce-includes {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ce-buybox-facts li,
.ce-includes li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ce-includes {
	padding-block-start: 12px;
	border-block-start: 1px solid var(--ce-line);
	color: var(--ce-text);
	font-size: 0.92rem;
}

.ce-includes .ce-icon {
	color: var(--ce-success);
}

.ce-tabs {
	position: sticky;
	inset-block-start: 0;
	z-index: 5;
	display: flex;
	gap: 4px;
	margin-block-end: 8px;
	padding-block: 10px;
	overflow-x: auto;
	background: var(--ce-bg);
	border-block-end: 1px solid var(--ce-line);
	scrollbar-width: none;
}

.ce-tabs a {
	padding: 6px 14px;
	border-radius: 999px;
	color: var(--ce-text);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.ce-tabs a:hover {
	background: var(--ce-soft);
	color: var(--ce-ink);
}

.ce-section {
	margin-block-start: 28px;
	scroll-margin-top: 72px;
}

.ce-section h2 {
	margin: 0 0 14px;
	color: var(--ce-ink);
	font-size: 1.4rem;
	font-weight: 700;
}

.ce-panel {
	padding: 22px;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius);
	background: var(--ce-card);
}

.ce-prose > :first-child {
	margin-block-start: 0;
}

.ce-checklist {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 10px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ce-checklist li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.ce-checklist .ce-icon {
	margin-block-start: 4px;
	color: var(--ce-success);
}

.ce-two-col {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}

.ce-bullets {
	margin: 0;
	padding-inline-start: 20px;
}

.ce-bullets li + li {
	margin-block-start: 6px;
}

.ce-accordion {
	overflow: hidden;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius);
	background: var(--ce-card);
}

.ce-accordion details + details {
	border-block-start: 1px solid var(--ce-line);
}

.ce-accordion summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	cursor: pointer;
	color: var(--ce-ink);
	font-weight: 700;
	list-style: none;
}

.ce-accordion summary::-webkit-details-marker {
	display: none;
}

.ce-accordion summary:hover {
	background: var(--ce-soft);
}

.ce-module-num {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: color-mix(in srgb, var(--ce-cat) 12%, #fff);
	color: var(--ce-cat);
	font-size: 0.9rem;
	flex: none;
}

/* Course syllabus: every module open as numbered points, its topics as small bullets beneath. */
.ce-syllabus {
	display: grid;
	gap: 18px;
	max-width: 820px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ce-syllabus > li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.ce-syllabus h3 {
	margin: 2px 0 6px;
	color: var(--ce-ink);
	font-size: 1.02rem;
	line-height: 1.6;
}

.ce-syllabus ul {
	margin: 0;
	padding-inline-start: 18px;
	color: var(--ce-muted);
	font-size: 0.93rem;
	line-height: 1.8;
}

.ce-module-title {
	flex: 1;
}

.ce-chevron {
	color: var(--ce-muted);
	transition: transform 0.2s ease;
}

.ce-accordion details[open] .ce-chevron {
	transform: rotate(180deg);
}

.ce-accordion details > ul,
.ce-accordion details > p {
	margin: 0;
	padding: 0 18px 16px;
	padding-inline-start: 60px;
	color: var(--ce-text);
}

.ce-faq details > p {
	padding-inline-start: 18px;
}

.ce-accordion details > ul li + li {
	margin-block-start: 4px;
}

.ce-teacher {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	padding: 20px;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius);
	background: var(--ce-card);
}

.ce-teacher + .ce-teacher {
	margin-block-start: 12px;
}

.ce-teacher h3 {
	margin: 0;
	color: var(--ce-ink);
	font-size: 1.15rem;
}

.ce-teacher-title {
	margin: 0 0 6px;
	color: var(--ce-cat);
	font-weight: 600;
}

.ce-teacher p {
	margin: 0;
}

/* Runs on the course page */

.ce-run {
	margin-block-end: 16px;
	padding: 20px;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius);
	background: var(--ce-card);
}

.ce-run-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
}

.ce-run h3,
.ce-run h4 {
	margin: 0;
	color: var(--ce-ink);
	font-size: 1.12rem;
}

.ce-seats {
	color: var(--ce-muted);
	font-size: 0.9rem;
}

.ce-sessions {
	width: 100%;
	margin-block-start: 14px;
	border-collapse: collapse;
	font-size: 0.93rem;
}

.ce-sessions caption {
	padding-block-end: 8px;
	color: var(--ce-muted);
	font-size: 0.85rem;
	text-align: start;
}

.ce-sessions th,
.ce-sessions td {
	padding: 10px 8px;
	border-block-end: 1px solid var(--ce-line);
	text-align: start;
}

.ce-sessions th {
	color: var(--ce-muted);
	font-size: 0.8rem;
	font-weight: 700;
}

.ce-run-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-block-start: 16px;
}

.ce-run-actions p {
	margin: 0;
}

.ce-inline-form {
	display: inline-block;
	margin: 0;
}

.ce-enrolled {
	color: var(--ce-success);
}

.ce-enrolled-details {
	flex-basis: 100%;
}

.ce-teams-email {
	padding: 10px 14px;
	border: 1px solid color-mix(in srgb, var(--ce-brand-blue) 35%, #fff);
	border-radius: var(--ce-radius-sm);
	background: color-mix(in srgb, var(--ce-brand-blue) 8%, #fff);
}

.ce-invite-pending {
	color: var(--ce-primary-strong);
}

.ce-invite-failed {
	color: var(--ce-danger);
}

.ce-enrolled-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ce-join {
	white-space: nowrap;
}

.ce-notice {
	padding: 16px;
	border: 1px solid #fde68a;
	border-radius: var(--ce-radius);
	background: #fffbeb;
}

.ce-notice p {
	margin: 0;
}

/* Related */

.ce-related {
	margin-block-start: 48px;
	padding-block: 40px 0;
	border-block-start: 1px solid var(--ce-line);
}

.ce-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-block-end: 18px;
}

.ce-section-head h2 {
	margin: 0;
	color: var(--ce-ink);
	font-size: 1.5rem;
	font-weight: 700;
}

.ce-section-head a {
	color: var(--ce-primary);
	font-weight: 700;
	text-decoration: none;
}

/* ---------- Home page shortcodes ---------- */

.ce-hero-home {
	--ce-hall: url(img/zain-hall.jpg);
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding-block: 64px 64px;
	text-align: center;
	background: var(--ce-navy);
}

@supports (background-image: image-set(url(a.webp) type("image/webp"))) {
	.ce-hero-home {
		--ce-hall: image-set(url(img/zain-hall.webp) type("image/webp"), url(img/zain-hall.jpg) type("image/jpeg"));
	}
}

.ce-hero-home > .ce-container {
	position: relative;
	z-index: 2;
}

/* Our real training hall, drifting slowly (a long, soft zoom and pan). */
.ce-hero-scene {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.ce-hero-photo {
	position: absolute;
	inset: -4%;
	background: var(--ce-hall) center 40% / cover no-repeat;
	transform-origin: 60% 40%;
	animation: ce-hall-drift 32s ease-in-out infinite alternate;
	will-change: transform;
}

@keyframes ce-hall-drift {
	from { transform: scale(1) translate3d(0, 0, 0); }
	to { transform: scale(1.1) translate3d(-2%, -1.5%, 0); }
}

/* Navy over the photo so the text keeps its contrast, warmed by the logo's two colours. */
.ce-hero-shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgb(11 34 54 / 0.84) 0%, rgb(11 34 54 / 0.74) 50%, rgb(11 34 54 / 0.93) 100%),
		radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--ce-brand-orange) 30%, transparent) 0, transparent 40%),
		radial-gradient(circle at 8% 92%, color-mix(in srgb, var(--ce-brand-blue) 35%, transparent) 0, transparent 45%);
}

/* Faint shapes over the hall: rings, dot grids, and a dashed learning path with stops. */
.ce-hero-deco {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	fill: none;
	stroke-linecap: round;
}

.ce-deco-rings circle {
	stroke: rgb(255 255 255 / 0.17);
	stroke-width: 1.5;
}

.ce-deco-rings circle.is-dashed {
	stroke-dasharray: 4 10;
	stroke: rgb(255 255 255 / 0.26);
}

.ce-deco-rings-a {
	transform-origin: 70px 40px;
	animation: ce-deco-turn 90s linear infinite;
}

.ce-deco-rings-b {
	transform-origin: 1400px 560px;
	animation: ce-deco-turn 110s linear infinite reverse;
}

.ce-deco-rings-b circle {
	stroke: rgb(127 211 245 / 0.24);
}

@keyframes ce-deco-turn {
	to { transform: rotate(360deg); }
}

#ce-dots circle {
	fill: rgb(255 255 255 / 0.22);
}

.ce-deco-dots {
	animation: ce-deco-drift 14s ease-in-out infinite alternate;
}

.ce-deco-dots-b {
	animation-duration: 18s;
	animation-delay: -6s;
}

@keyframes ce-deco-drift {
	from { transform: translate(0, -6px); }
	to { transform: translate(8px, 8px); }
}

/* The learning path: dashed, flowing slowly, with stops along it. */
.ce-deco-path {
	stroke: rgb(255 255 255 / 0.32);
	stroke-width: 1.8;
	stroke-dasharray: 2 12;
	animation: ce-deco-flow 6s linear infinite;
}

@keyframes ce-deco-flow {
	to { stroke-dashoffset: -28; }
}

.ce-deco-stop {
	fill: var(--ce-navy);
	stroke: rgb(255 180 138 / 0.55);
	stroke-width: 2;
}

.ce-deco-plus {
	stroke: rgb(255 255 255 / 0.22);
	stroke-width: 1.6;
}

.ce-deco-ring-sm {
	stroke: rgb(255 180 138 / 0.35);
	stroke-width: 1.6;
}

/* Phones: the path runs behind the text, so it steps back further; the corners stay. */
@media (max-width: 760px) {
	.ce-deco-path,
	.ce-deco-stop,
	.ce-deco-plus,
	.ce-deco-ring-sm {
		display: none;
	}
}

/* How we teach, said in two light badges above the title. */
.ce-hero-modes {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.ce-hero-modes li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 16px;
	border: 1px solid rgb(255 255 255 / 0.2);
	border-radius: 999px;
	background: rgb(255 255 255 / 0.08);
	color: #e6eef6;
	font-size: 0.9rem;
	font-weight: 600;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.ce-hero-modes .ce-icon {
	color: #7fd3f5;
}

.ce-hero-modes li:first-child .ce-icon {
	color: #ffb48a;
}

.ce-hero-modes li.is-onsite .ce-icon {
	color: #fcd38d;
}

/* Phones: smaller badges, so the three take about two lines above the title. */
@media (max-width: 600px) {
	.ce-hero-modes {
		gap: 6px;
		margin-block-end: 18px;
	}

	.ce-hero-modes li {
		gap: 5px;
		padding: 5px 10px;
		font-size: 0.78rem;
	}

	.ce-hero-modes .ce-icon {
		width: 14px;
		height: 14px;
	}
}

.ce-hero-modes .ce-live-dot {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #4ade80;
}

.ce-hero-modes .ce-live-dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: #4ade80;
	animation: ce-live-pulse 2.2s ease-out infinite;
}

@keyframes ce-live-pulse {
	from { opacity: 0.7; transform: scale(1); }
	to { opacity: 0; transform: scale(2.8); }
}

@media (prefers-reduced-motion: reduce) {
	.ce-hero-photo,
	.ce-deco-rings-a,
	.ce-deco-rings-b,
	.ce-deco-dots,
	.ce-deco-path,
	.ce-hero-modes .ce-live-dot::after {
		animation: none;
	}

}

.ce-hero-home h1 {
	font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}

.ce-hero-home .ce-search {
	margin-inline: auto;
}

.ce-shortcode {
	max-width: none;
	margin-inline: auto;
	padding-inline: clamp(16px, 3vw, 48px);
}

.ce-cats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 14px;
}

.ce-cat {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 12px;
	align-items: center;
	padding: 16px;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius);
	background: var(--ce-card);
	color: var(--ce-ink);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ce-cat:hover {
	border-color: var(--ce-cat);
	box-shadow: var(--ce-shadow);
	transform: translateY(-2px);
}

.ce-cat-icon {
	display: grid;
	grid-row: span 2;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--ce-cat) 12%, #fff);
	color: var(--ce-cat);
}

.ce-cat-name {
	font-weight: 700;
}

.ce-cat-count {
	color: var(--ce-muted);
	font-size: 0.86rem;
}

.ce-home-section {
	padding-block: 44px 8px;
}

/* ---------- Home: about our training, why us, for companies ---------- */

.ce-btn-lg {
	min-height: 50px;
	padding: 12px 26px;
	font-size: 1.02rem;
}

.ce-btn-lg .ce-icon {
	transition: transform 0.2s ease;
}

.ce-btn-lg:hover .ce-icon {
	transform: translateX(-4px);
}

.ce-eyebrow {
	margin: 0 0 10px;
	color: var(--ce-accent);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0;
}

.ce-home-section h2 {
	margin: 0 0 14px;
	color: var(--ce-ink);
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	font-weight: 700;
	line-height: 1.35;	text-wrap: balance; /* no single word left alone on the last line */
}

/* Who we are: text beside the real training hall. */
.ce-intro {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
	padding-block: 64px 24px;
}

.ce-intro-lead {
	margin: 0 0 20px;
	color: var(--ce-text);
	font-size: 1.08rem;
	line-height: 1.9;
}

.ce-intro-points {
	display: grid;
	gap: 12px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.ce-intro-points li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	color: var(--ce-ink);
	font-weight: 600;
	line-height: 1.7;
}

.ce-intro-points .ce-icon {
	flex: none;
	margin-block-start: 4px;
	color: var(--ce-success);
}

.ce-intro-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ce-intro-media {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: 22px;
	box-shadow: var(--ce-shadow-lg);
}

.ce-intro-media::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	height: 5px;
	background: var(--ce-brand-stripe);
}

.ce-intro-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.ce-intro-media figcaption {
	position: absolute;
	inset-inline-start: 16px;
	inset-block-end: 20px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(11, 34, 54, 0.82);
	color: #fff;
	font-size: 0.88rem;
	font-weight: 600;
}

/* Why us: six cards. */
.ce-why-head {
	max-width: 720px;
	margin: 0 auto 32px;
	text-align: center;
}

.ce-why-head > p:last-child {
	margin: 0;
	color: var(--ce-muted);
	font-size: 1.05rem;
}

.ce-why-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ce-why-grid li {
	position: relative;
	padding: 28px 24px 24px;
	overflow: hidden;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius);
	background: var(--ce-card);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ce-why-grid li::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-start: 0;
	height: 3px;
	background: var(--ce-brand-stripe);
	opacity: 0;
	transition: opacity 0.18s ease;
}

.ce-why-grid li:hover {
	transform: translateY(-3px);
	border-color: transparent;
	box-shadow: var(--ce-shadow-lg);
}

.ce-why-grid li:hover::before {
	opacity: 1;
}

.ce-why-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-block-end: 16px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--ce-primary) 10%, #fff);
	color: var(--ce-primary);
}

.ce-why-grid li:nth-child(even) .ce-why-icon {
	background: color-mix(in srgb, var(--ce-accent) 10%, #fff);
	color: var(--ce-accent);
}

.ce-why-grid h3 {
	margin: 0 0 8px;
	color: var(--ce-ink);
	font-size: 1.1rem;
	font-weight: 700;
}

.ce-why-grid p {
	margin: 0;
	color: var(--ce-muted);
	line-height: 1.8;
}

/* «شاهد كل دوراتنا» under a course grid. */
.ce-more-courses {
	display: flex;
	justify-content: center;
	margin-block-start: 28px;
}

/* For companies: a dark band with the offer on one side and three points on the other. */
.ce-biz {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
	padding: clamp(28px, 5vw, 52px);
	border-radius: 24px;
	color: #c9d7e5;
	background-color: var(--ce-ink);
	background-image:
		radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--ce-brand-blue) 32%, transparent) 0, transparent 45%),
		radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--ce-brand-orange) 26%, transparent) 0, transparent 40%);
}

.ce-biz .ce-eyebrow {
	color: #ffb48a;
}

.ce-biz h2 {
	color: #fff;
	font-size: clamp(1.45rem, 2.6vw, 1.9rem);
}

.ce-biz-text > p:not(.ce-eyebrow) {
	margin: 0 0 24px;
	font-size: 1.05rem;
	line-height: 1.85;
}

.ce-biz-points {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ce-biz-points li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--ce-radius);
	background: rgba(255, 255, 255, 0.05);
}

.ce-biz-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(8, 165, 224, 0.16);
	color: #7fd3f5;
}

.ce-biz-points h3 {
	margin: 0 0 4px;
	color: #fff;
	font-size: 1.02rem;
	font-weight: 700;
}

.ce-biz-points p {
	margin: 0;
	font-size: 0.94rem;
	line-height: 1.7;
}

@media (max-width: 1024px) {
	.ce-why-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.ce-intro,
	.ce-biz {
		grid-template-columns: minmax(0, 1fr);
	}

	.ce-intro-media {
		order: -1;
	}
}

@media (max-width: 600px) {
	.ce-why-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ce-intro-actions .ce-btn,
	.ce-biz .ce-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ce-why-grid li,
	.ce-btn-lg .ce-icon {
		transition: none;
	}
}

.ce-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ce-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-block-end: 48px;
	padding: 36px;
	border-radius: 20px;
	color: #c9d7e5;
	background-color: var(--ce-ink);
	background-image:
		radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--ce-brand-orange) 35%, transparent) 0, transparent 40%),
		linear-gradient(120deg, var(--ce-navy) 0%, color-mix(in srgb, var(--ce-brand-blue) 45%, var(--ce-navy)) 100%);
}

.ce-cta h2 {
	margin: 0 0 6px;
	color: #fff;
	font-size: 1.6rem;
	font-weight: 700;
}

.ce-cta p {
	margin: 0;
}

.ce-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ce-btn-light {
	background: #fff;
	color: var(--ce-ink);
}

.ce-btn-light:hover,
.ce-btn-light:focus-visible {
	background: var(--ce-line);
	color: var(--ce-ink);
}

.ce-steps li {
	position: relative;
	padding: 24px;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius);
	background: var(--ce-card);
}

.ce-step-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-block-end: 12px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--ce-primary) 10%, #fff);
	color: var(--ce-primary);
}

.ce-step-num {
	position: absolute;
	inset-block-start: 18px;
	inset-inline-end: 20px;
	color: color-mix(in srgb, var(--ce-brand-orange) 28%, #fff);
	font-size: 2.4rem;
	font-weight: 700;
	line-height: 1;
}

.ce-steps h3 {
	margin: 0 0 6px;
	color: var(--ce-ink);
	font-size: 1.1rem;
}

.ce-steps p {
	margin: 0;
	color: var(--ce-muted);
}

/* ---------- Front-end management (/manage/) ---------- */

.ce-manage {
	background: var(--ce-bg);
	padding-block-end: 64px;
}

.ce-manage-head {
	position: relative;
	padding-block: 28px 32px;
	background: var(--ce-navy);
	color: #c9d7e5;
}

.ce-manage-head::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	height: 4px;
	background: var(--ce-brand-stripe);
}

.ce-manage-back {
	display: inline-block;
	margin-block-end: 10px;
	color: #9fb3c8;
	font-size: 0.9rem;
	text-decoration: none;
}

.ce-manage-back:hover {
	color: #fff;
}

.ce-manage-head-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.ce-manage-head h1 {
	margin: 0;
	color: #fff;
	font-size: clamp(1.4rem, 2.6vw, 1.9rem);
	font-weight: 700;
}

.ce-manage-head h1 span {
	color: #9fb3c8;
	font-weight: 500;
}

.ce-manage-actions,
.ce-manage-row-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.ce-btn-ghost-light {
	border-color: rgba(255, 255, 255, 0.35);
	background: transparent;
	color: #fff;
}

.ce-btn-ghost-light:hover,
.ce-btn-ghost-light:focus-visible {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.ce-manage-body {
	margin-block-start: 28px;
}

.ce-manage-link {
	color: var(--ce-primary);
	font-weight: 600;
}

.ce-alert {
	margin-block-end: 20px;
	padding: 12px 18px;
	border: 1px solid;
	border-radius: var(--ce-radius-sm);
}

.ce-alert p,
.ce-alert ul {
	margin: 0;
}

.ce-alert ul {
	padding-inline-start: 18px;
}

.ce-alert-success {
	border-color: color-mix(in srgb, var(--ce-success) 35%, #fff);
	background: var(--ce-success-soft);
	color: #14532d;
}

.ce-alert-error {
	border-color: color-mix(in srgb, var(--ce-danger) 35%, #fff);
	background: #fef2f2;
	color: #7f1d1d;
}

.ce-alert-info {
	border-color: color-mix(in srgb, var(--ce-brand-blue) 35%, #fff);
	background: color-mix(in srgb, var(--ce-brand-blue) 8%, #fff);
	color: var(--ce-primary-strong);
}

/* Dashboard list */

.ce-manage-list {
	display: grid;
	gap: 16px;
}

.ce-manage-course {
	padding: 18px 22px;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius);
	background: var(--ce-card);
	box-shadow: var(--ce-shadow);
}

.ce-manage-course-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 220px auto;
	align-items: center;
	gap: 16px 24px;
}

.ce-manage-course h2 {
	margin: 0;
	font-size: 1.1rem;
}

.ce-manage-course h2 a {
	color: var(--ce-ink);
	text-decoration: none;
}

.ce-manage-course h2 a:hover {
	color: var(--ce-primary);
}

.ce-manage-course-head p {
	margin: 2px 0 0;
	font-size: 0.88rem;
}

.ce-manage-meter {
	display: grid;
	gap: 4px;
	color: var(--ce-muted);
	font-size: 0.8rem;
}

.ce-manage-meter-bar {
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--ce-soft);
}

.ce-manage-meter-bar span {
	display: block;
	height: 100%;
	background: var(--ce-accent);
}

.ce-manage-meter-bar span.is-complete {
	background: var(--ce-success);
}

.ce-manage-row-actions .ce-btn {
	min-height: 36px;
	padding: 6px 14px;
	font-size: 0.9rem;
}

.ce-manage-empty-runs {
	margin: 14px 0 0;
	color: var(--ce-muted);
	font-size: 0.9rem;
}

.ce-manage-runs {
	width: 100%;
	margin-block-start: 14px;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.ce-manage-runs th,
.ce-manage-runs td {
	padding: 9px 10px;
	border-block-start: 1px solid var(--ce-line);
	text-align: start;
}

.ce-manage-runs th {
	color: var(--ce-muted);
	font-size: 0.8rem;
	font-weight: 600;
}

.ce-manage-run-actions {
	white-space: nowrap;
}

.ce-manage-run-actions a {
	margin-inline-start: 10px;
	color: var(--ce-primary);
	font-weight: 600;
}

/* Forms */

.ce-manage-form {
	display: grid;
	gap: 18px;
}

.ce-manage-section {
	padding: 20px 24px;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius);
	background: var(--ce-card);
}

.ce-manage-section h2 {
	margin: 0 0 14px;
	color: var(--ce-ink);
	font-size: 1.05rem;
}

.ce-manage-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px 20px;
}

.ce-field {
	display: grid;
	align-content: start;
	gap: 6px;
}

.ce-field-wide {
	grid-column: 1 / -1;
}

.ce-field > label {
	color: var(--ce-ink);
	font-size: 0.92rem;
	font-weight: 600;
}

.ce-required {
	color: var(--ce-danger);
}

.ce-field input[type="text"],
.ce-field input[type="number"],
.ce-field input[type="url"],
.ce-field input[type="file"],
.ce-field select,
.ce-field textarea,
.ce-manage-sessions input {
	width: 100%;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius-sm);
	background: #fff;
	color: var(--ce-ink);
	font: inherit;
}

.ce-field textarea {
	line-height: 1.7;
	resize: vertical;
}

.ce-field input:focus,
.ce-field select:focus,
.ce-field textarea:focus,
.ce-manage-sessions input:focus {
	border-color: var(--ce-primary);
	outline: 3px solid color-mix(in srgb, var(--ce-primary) 25%, transparent);
	outline-offset: 0;
}

.ce-hint {
	margin: 0;
	color: var(--ce-muted);
	font-size: 0.82rem;
}

.ce-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
}

.ce-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ce-text);
	cursor: pointer;
}

.ce-check input {
	width: 18px;
	height: 18px;
	accent-color: var(--ce-primary);
}

.ce-cover-preview {
	max-width: 320px;
	height: auto;
	border-radius: var(--ce-radius-sm);
}

.ce-new-teacher summary {
	color: var(--ce-primary);
	font-weight: 600;
	cursor: pointer;
}

.ce-new-teacher[open] summary {
	margin-block-end: 12px;
}

.ce-manage-sessions {
	width: 100%;
	max-width: 640px;
	border-collapse: collapse;
}

.ce-manage-sessions th {
	padding: 0 4px 6px;
	color: var(--ce-muted);
	font-size: 0.82rem;
	font-weight: 600;
	text-align: start;
}

.ce-manage-sessions td {
	padding: 4px;
}

.ce-remove-session {
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ce-danger);
	font-size: 1.3rem;
	cursor: pointer;
}

.ce-remove-session:hover,
.ce-remove-session:focus-visible,
.ce-remove-session:active {
	background: #fef2f2;
	color: var(--ce-danger); /* The theme would turn it white on the pale red. */
}

.ce-add-session {
	justify-self: start;
	min-height: 38px;
}

.ce-manage-footer {
	position: sticky;
	inset-block-end: 0;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	padding: 14px 24px;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius);
	background: var(--ce-card);
	box-shadow: var(--ce-shadow-lg);
}

.ce-manage-footer .ce-check {
	margin-inline-end: auto;
}

/* Shortcuts for managers on public pages */

.ce-staff-bar {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin-block-end: 14px;
	padding: 6px 14px;
	border: 1px dashed rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	font-size: 0.86rem;
}

.ce-staff-bar span {
	color: #9fb3c8;
}

.ce-staff-bar a {
	color: #fff;
	font-weight: 600;
}

.ce-staff-links {
	margin: 8px 0 0;
	font-size: 0.86rem;
}

.ce-staff-links a {
	color: var(--ce-primary);
	font-weight: 600;
}

@media (max-width: 900px) {
	.ce-manage-course-head {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Runs become stacked cards with labels on phones. */
	.ce-manage-runs thead {
		display: none;
	}

	.ce-manage-runs tr {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 4px 12px;
		padding-block: 10px;
		border-block-start: 1px solid var(--ce-line);
	}

	.ce-manage-runs td {
		padding: 0;
		border: 0;
	}

	.ce-manage-runs td[data-label]::before {
		content: attr(data-label) ": ";
		color: var(--ce-muted);
		font-size: 0.8rem;
	}

	.ce-manage-runs td:first-child,
	.ce-manage-run-actions {
		grid-column: 1 / -1;
	}

	.ce-manage-run-actions a:first-child {
		margin-inline-start: 0;
	}

	.ce-manage-section {
		padding: 16px;
	}

	.ce-manage-footer {
		padding: 12px 16px;
	}
}

/* ---------- Run tabs on the front end (/manage/run/{id}/) ---------- */

.ce-manage-tabs {
	display: flex;
	gap: 4px;
	margin-block-end: 20px;
	overflow-x: auto;
	border-block-end: 1px solid var(--ce-line);
	scrollbar-width: none;
}

.ce-manage-tabs::-webkit-scrollbar {
	display: none;
}

.ce-manage-tabs a {
	flex: none;
	margin-block-end: -1px;
	padding: 10px 16px;
	border-block-end: 3px solid transparent;
	color: var(--ce-muted);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.ce-manage-tabs a:hover {
	color: var(--ce-ink);
}

.ce-manage-tabs a.is-active {
	border-block-end-color: var(--ce-accent);
	color: var(--ce-ink);
}

/* The dashboard tab screens, restyled for the site (they use WordPress admin classes). */

.ce-manage-panel {
	color: var(--ce-text);
	font-size: 0.95rem;
}

.ce-manage-panel h2,
.ce-manage-panel h3 {
	margin: 18px 0 10px;
	color: var(--ce-ink);
	font-size: 1.05rem;
}

.ce-manage-panel .widefat {
	width: 100%;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius-sm);
	border-collapse: separate;
	border-spacing: 0;
	background: var(--ce-card);
	overflow: hidden;
}

.ce-manage-panel .widefat th,
.ce-manage-panel .widefat td {
	padding: 10px 12px;
	border-block-end: 1px solid var(--ce-line);
	text-align: start;
	vertical-align: middle;
}

.ce-manage-panel .widefat thead th {
	background: var(--ce-soft);
	color: var(--ce-muted);
	font-size: 0.82rem;
	font-weight: 600;
}

.ce-manage-panel .widefat tr:last-child td {
	border-block-end: 0;
}

.ce-manage-panel .striped > tbody > tr:nth-child(odd) {
	background: color-mix(in srgb, var(--ce-soft) 45%, #fff);
}

.ce-manage-panel .widefat td[dir="ltr"] {
	white-space: nowrap;
}

/* Wide tables scroll inside the panel on small screens instead of widening the page. */
.ce-manage-panel {
	overflow-x: auto;
}

.ce-manage-panel .button,
.ce-manage-panel button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid var(--ce-primary);
	border-radius: var(--ce-radius-sm);
	background: #fff;
	color: var(--ce-primary);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

/* Hover, focus and press. The theme (Kadence) turns every button's text white in these states,
   which left white text on a pale tint; each state sets its own text colour here. Outlined
   buttons: pale blue tint, dark blue text. Filled buttons: darker fill, white text. */
.ce-manage-panel .button:hover,
.ce-manage-panel .button:focus-visible,
.ce-manage-panel .button:active,
.ce-manage-panel button[type="submit"]:hover,
.ce-manage-panel button[type="submit"]:focus-visible,
.ce-manage-panel button[type="submit"]:active {
	border-color: var(--ce-primary);
	background: color-mix(in srgb, var(--ce-primary) 10%, #fff);
	color: var(--ce-primary-strong);
	box-shadow: none;
}


.ce-manage-panel .button-primary,
.ce-manage-panel .button.button-primary {
	border-color: var(--ce-accent);
	background: var(--ce-accent);
	color: #fff;
}

.ce-manage-panel .button-primary:hover,
.ce-manage-panel .button-primary:focus-visible,
.ce-manage-panel .button-primary:active,
.ce-manage-panel .button.button-primary:hover,
.ce-manage-panel .button.button-primary:focus-visible,
.ce-manage-panel .button.button-primary:active,
.ce-manage-panel button[type="submit"].button-primary:hover,
.ce-manage-panel button[type="submit"].button-primary:focus-visible,
.ce-manage-panel button[type="submit"].button-primary:active {
	border-color: var(--ce-accent-strong);
	background: var(--ce-accent-strong);
	color: #fff;
}

/* A disabled button does not react to hover. */
.ce-manage-panel .button[disabled],
.ce-manage-panel .button[disabled]:hover {
	opacity: 0.5;
	cursor: not-allowed;
}


.ce-manage-panel .button-small {
	min-height: 30px;
	padding: 3px 10px;
	font-size: 0.82rem;
}

.ce-manage-panel .button-link,
.ce-manage-panel .button-link-delete {
	border: 0;
	background: none;
	padding: 0;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.ce-manage-panel .button-link {
	color: var(--ce-primary);
}

.ce-manage-panel .button-link-delete {
	color: var(--ce-danger);
}

.ce-manage-panel .ce-inline-form {
	display: inline-block;
	margin: 0 0 0 4px;
}

.ce-manage-panel .ce-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 12px 0;
}

.ce-manage-panel .ce-panel-admin {
	margin: 12px 0;
	padding: 6px 18px 14px;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius);
	background: var(--ce-card);
}

.ce-manage-panel .description {
	color: var(--ce-muted);
	font-size: 0.85rem;
}

.ce-manage-panel input[type="text"],
.ce-manage-panel input[type="url"],
.ce-manage-panel input[type="file"],
.ce-manage-panel select,
.ce-manage-panel textarea {
	max-width: 100%;
	min-height: 38px;
	padding: 6px 10px;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius-sm);
	background: #fff;
	color: var(--ce-ink);
	font: inherit;
}

.ce-manage-panel .large-text {
	width: 100%;
}

.ce-manage-panel .regular-text {
	width: min(100%, 25em);
}

.ce-manage-panel .code,
.ce-manage-panel textarea[dir="ltr"] {
	font-family: ui-monospace, Consolas, monospace;
	font-size: 0.85rem;
}

.ce-manage-panel .notice {
	margin: 0 0 16px;
	padding: 10px 16px;
	border: 1px solid;
	border-inline-start-width: 4px;
	border-radius: var(--ce-radius-sm);
}

.ce-manage-panel .notice p {
	margin: 0;
}

.ce-manage-panel .notice-success {
	border-color: color-mix(in srgb, var(--ce-success) 40%, #fff);
	background: var(--ce-success-soft);
	color: #14532d;
}

.ce-manage-panel .notice-error {
	border-color: color-mix(in srgb, var(--ce-danger) 40%, #fff);
	background: #fef2f2;
	color: #7f1d1d;
}

.ce-manage-panel .ce-status-invited,
.ce-manage-panel .ce-sent,
.ce-manage-panel .ce-att-yes {
	color: var(--ce-success);
}

.ce-manage-panel .ce-status-pending {
	color: var(--ce-primary-strong);
}

.ce-manage-panel .ce-status-failed,
.ce-manage-panel .ce-status-removed,
.ce-manage-panel .ce-error {
	color: var(--ce-danger);
}

.ce-manage-panel .ce-error {
	display: block;
	font-size: 0.8rem;
}

.ce-manage-panel .ce-att {
	text-align: center;
}

.ce-manage-panel .ce-att-yes {
	font-weight: 600;
}

.ce-manage-panel .ce-att-no {
	color: var(--ce-muted);
}

.ce-manage-panel .ce-wa-preview {
	max-width: 720px;
	padding: 10px 14px;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius-sm);
	background: var(--ce-soft);
	white-space: pre-wrap;
}

.ce-manage-panel ol,
.ce-manage-panel ul {
	padding-inline-start: 22px;
}

/* ---------- Management sections menu and settings-style screens ---------- */

/* Training / site switch above the sections. */
.ce-manage-areas {
	display: inline-flex;
	gap: 4px;
	margin-block-end: 14px;
	padding: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
}

.ce-manage-areas a {
	padding: 6px 18px;
	border-radius: 999px;
	color: #c9d7e5;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.ce-manage-areas a:hover {
	color: #fff;
}

.ce-manage-areas a.is-active {
	background: #fff;
	color: var(--ce-navy);
}

/* The current area's sections in labelled groups; every link stays visible and wraps. */
.ce-manage-sections {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin-block-end: 18px;
}

.ce-manage-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.ce-manage-group-title {
	margin-inline-end: 2px;
	color: #8fa7bf;
	font-size: 0.78rem;
	font-weight: 600;
}

.ce-manage-count {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	margin-inline-start: 6px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--ce-brand-orange, #e84e0e);
	color: #fff;
	font-size: 0.72rem;
	line-height: 1;
}

.ce-manage-sections a {
	display: inline-flex;
	align-items: center;
	flex: none;
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	color: #c9d7e5;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.ce-manage-sections a:hover {
	border-color: rgba(255, 255, 255, 0.45);
	color: #fff;
}

.ce-manage-sections a.is-active {
	border-color: #fff;
	background: #fff;
	color: var(--ce-navy);
}

.ce-manage-panel .wrap {
	margin: 0;
}

.ce-manage-panel h1 {
	margin: 0 0 12px;
	color: var(--ce-ink);
	font-size: 1.2rem;
}

.ce-manage-panel .nav-tab-wrapper {
	display: flex;
	gap: 4px;
	margin-block-end: 18px;
	border-block-end: 1px solid var(--ce-line);
}

.ce-manage-panel .nav-tab {
	margin-block-end: -1px;
	padding: 10px 16px;
	border-block-end: 3px solid transparent;
	color: var(--ce-muted);
	font-weight: 600;
	text-decoration: none;
}

.ce-manage-panel .nav-tab-active {
	border-block-end-color: var(--ce-accent);
	color: var(--ce-ink);
}

.ce-manage-panel .form-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--ce-card);
}

.ce-manage-panel .form-table th,
.ce-manage-panel .form-table td {
	padding: 14px 16px;
	border-block-end: 1px solid var(--ce-line);
	text-align: start;
	vertical-align: top;
}

.ce-manage-panel .form-table th {
	width: 240px;
	color: var(--ce-ink);
	font-weight: 600;
}

.ce-manage-panel input[type="number"],
.ce-manage-panel input[type="password"],
.ce-manage-panel input[type="date"] {
	min-height: 38px;
	padding: 6px 10px;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius-sm);
	background: #fff;
	color: var(--ce-ink);
	font: inherit;
}

.ce-manage-panel .small-text {
	width: 5.5em;
}

.ce-manage-panel p.submit {
	margin: 18px 0 0;
}

.ce-manage-panel input[type="submit"].button {
	min-height: 40px;
	padding: 8px 20px;
}

.ce-manage-panel pre {
	direction: ltr;
	overflow-x: auto;
	border-radius: var(--ce-radius-sm);
}

@media (max-width: 760px) {
	.ce-manage-panel .form-table th,
	.ce-manage-panel .form-table td {
		display: block;
		width: auto;
	}

	.ce-manage-panel .form-table th {
		padding-block-end: 0;
		border-block-end: 0;
	}
}

.ce-table-scroll {
	overflow-x: auto;
}

.ce-bank-accounts input[type="text"] {
	width: 100%;
	min-width: 130px;
}

/* ---------- Delivery mode: online (Teams) or in the hall ---------- */

.ce-tag-mode-online {
	background: color-mix(in srgb, var(--ce-brand-blue) 14%, #fff);
	color: var(--ce-primary-strong);
}

.ce-tag-mode-onsite {
	background: color-mix(in srgb, var(--ce-brand-orange) 14%, #fff);
	color: var(--ce-accent-strong);
}

.ce-run-place {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-block: 4px 12px;
	padding: 10px 14px;
	border: 1px solid color-mix(in srgb, var(--ce-brand-orange) 30%, #fff);
	border-radius: var(--ce-radius-sm);
	background: color-mix(in srgb, var(--ce-brand-orange) 6%, #fff);
	color: var(--ce-text);
}

.ce-run-place .ce-icon {
	margin-block-start: 3px;
	color: var(--ce-accent);
}

.ce-run-place div {
	display: grid;
	gap: 2px;
}

.ce-run-place a {
	color: var(--ce-primary);
	font-weight: 600;
}

/* Fields hidden by the run form's mode switch (the grid's display would otherwise win). */
.ce-manage-form [hidden] {
	display: none !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.ce-course-layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "aside" "main";
	}

	.ce-buybox {
		/* Relative, not static: the box overlaps the hero, which is positioned and would cover its top. */
		position: relative;
		z-index: 1;
		margin-block-start: -32px;
	}

	.ce-buybox-media {
		display: none;
	}

	.ce-hero-course .ce-hero-text {
		max-width: none;
	}
}

@media (max-width: 1024px) {
	.ce-catalog .ce-grid,
	.ce-shortcode .ce-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.ce-filterbar {
		flex-direction: column;
		align-items: stretch;
	}

	/* Still one line: the dropdown buttons scroll sideways. */
	.ce-filterbar-items {
		overflow-x: auto;
		padding-block-end: 4px;
		scrollbar-width: none;
	}

	.ce-filterbar-items::-webkit-scrollbar {
		display: none;
	}

	/* The menu would be clipped by the scrolling row, so it opens as a sheet at the bottom of the screen. */
	.ce-dd-menu {
		position: fixed;
		inset-block: auto 0;
		inset-inline: 0;
		max-height: 60vh;
		border-radius: 16px 16px 0 0;
		padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
	}

	.ce-dd-option {
		padding: 12px;
		font-size: 1rem;
	}
}

@media (max-width: 640px) {
	.ce-catalog .ce-grid,
	.ce-shortcode .ce-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 560px) {

	.ce-cta {
		padding: 24px;
	}

	.ce-hero {
		padding-block: 28px 36px;
	}

	.ce-search {
		padding-inline-start: 12px;
	}

	.ce-search .ce-btn {
		padding-inline: 14px;
	}

	.ce-facts li {
		flex: 1 1 calc(50% - 10px);
	}

	.ce-sessions {
		font-size: 0.85rem;
	}

	.ce-accordion details > ul {
		padding-inline-start: 18px;
	}

	.ce-teacher {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ce-card,
	.ce-media-img,
	.ce-cat,
	.ce-chevron,
	.ce-btn {
		transition: none;
	}

	.ce-card:hover,
	.ce-cat:hover {
		transform: none;
	}

	.ce-card:hover .ce-media-img {
		transform: none;
	}
}

.ce-sessions .button.ce-watch {
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid var(--ce-primary);
	background: transparent;
	color: var(--ce-primary);
	white-space: nowrap;
}

.ce-sessions .button.ce-watch:hover,
.ce-sessions .button.ce-watch:focus-visible {
	background: var(--ce-primary);
	color: #fff;
}

/* Launch readiness (/manage/launch/). */

.ce-ready-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	align-items: baseline;
	margin: 0 0 18px;
	padding: 14px 18px;
	border-radius: var(--ce-radius-sm);
	border-inline-start: 4px solid var(--ce-danger);
	background: #fdecec;
	color: var(--ce-ink);
}

.ce-ready-summary.is-ready {
	border-color: var(--ce-success);
	background: var(--ce-success-soft);
}

.ce-ready-summary strong {
	font-size: 1.1rem;
}

.ce-ready-summary span {
	color: var(--ce-text);
	font-size: 0.9rem;
}

.ce-ready-list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ce-ready-item {
	display: grid;
	grid-template-columns: 32px 1fr auto;
	gap: 14px;
	align-items: center;
	padding: 14px 16px;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius-sm);
	background: var(--ce-card);
}

.ce-ready-icon {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-weight: 700;
	color: #fff;
	background: var(--ce-muted);
}

.ce-ready-item.is-ok .ce-ready-icon { background: var(--ce-success); }
.ce-ready-item.is-block .ce-ready-icon { background: var(--ce-danger); }
.ce-ready-item.is-warn .ce-ready-icon { background: var(--ce-warn); }
.ce-ready-item.is-check .ce-ready-icon { background: var(--ce-primary); }
.ce-ready-item.is-block { border-color: #f3c4c4; }

.ce-ready-text h2 {
	margin: 0 0 4px;
	color: var(--ce-ink);
	font-size: 1rem;
}

.ce-ready-text p {
	margin: 0;
	color: var(--ce-text);
	font-size: 0.9rem;
	line-height: 1.7;
}

.ce-ready-state {
	margin-inline-start: 6px;
	color: var(--ce-muted);
	font-size: 0.8rem;
	font-weight: 500;
}

.ce-ready-item.is-block .ce-ready-state { color: var(--ce-danger); }

.ce-ready-action .ce-btn {
	white-space: nowrap;
}

@media (max-width: 640px) {
	.ce-ready-item {
		grid-template-columns: 32px 1fr;
	}

	.ce-ready-action {
		grid-column: 2;
	}
}

/* Sign-in / sign-up and password pages (my-account while logged out): a centred column, not full width. */

.woocommerce-account:not(.logged-in) .entry-content > .woocommerce {
	max-width: 920px;
	margin-inline: auto;
}

/* Kadence's full-width white box would frame the cards with empty space; let them sit on the page. */
.woocommerce-account:not(.logged-in) article.entry.content-bg {
	background: transparent;
	box-shadow: none;
}

.woocommerce-account:not(.logged-in) .u-columns.col2-set {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	align-items: start;
	width: auto;
	margin: 0;
}

.woocommerce-account:not(.logged-in) .col2-set::before,
.woocommerce-account:not(.logged-in) .col2-set::after {
	content: none;
}

.woocommerce-account:not(.logged-in) .col2-set > .u-column1,
.woocommerce-account:not(.logged-in) .col2-set > .u-column2 {
	float: none;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 24px;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius);
	background: var(--ce-card);
	box-shadow: var(--ce-shadow);
}

.woocommerce-account:not(.logged-in) .col2-set h2 {
	margin: 0 0 14px;
	color: var(--ce-ink);
	font-size: 1.25rem;
}

.woocommerce-account:not(.logged-in) .col2-set form.login,
.woocommerce-account:not(.logged-in) .col2-set form.register {
	margin: 0;
	padding: 0;
	border: 0;
}

/* Lost / reset password: one narrow card. */
.woocommerce-account:not(.logged-in) form.lost_reset_password {
	max-width: 460px;
	margin-inline: auto;
	padding: 24px;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius);
	background: var(--ce-card);
	box-shadow: var(--ce-shadow);
}

.woocommerce-account:not(.logged-in) form.lost_reset_password .form-row-first,
.woocommerce-account:not(.logged-in) form.lost_reset_password .form-row-last {
	float: none;
	width: 100%;
}

@media (max-width: 768px) {
	.woocommerce-account:not(.logged-in) .u-columns.col2-set {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.woocommerce-account:not(.logged-in) .col2-set > .u-column1,
	.woocommerce-account:not(.logged-in) .col2-set > .u-column2 {
		padding: 18px 16px;
	}
}

/* Instructors (/manage/instructors/). */

.ce-teachers {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ce-teacher-row {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	gap: 16px;
	align-items: center;
	padding: 14px 16px;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius-sm);
	background: var(--ce-card);
}

.ce-teacher-row .ce-avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}

.ce-teacher-info h2 {
	margin: 0;
	font-size: 1.05rem;
}

.ce-teacher-info h2 a {
	color: var(--ce-ink);
	text-decoration: none;
}

.ce-teacher-info p {
	margin: 2px 0 0;
	font-size: 0.9rem;
}

.ce-teacher-courses {
	color: var(--ce-text);
}

.ce-teacher-missing {
	color: var(--ce-warn);
}

.ce-manage-form .ce-avatar {
	display: block;
	width: 96px;
	height: 96px;
	margin-block-end: 8px;
	border-radius: 50%;
	object-fit: cover;
}

.ce-manage-danger {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	align-items: center;
	justify-content: space-between;
	margin-block-start: 24px;
	padding: 14px 16px;
	border: 1px solid #f3c4c4;
	border-radius: var(--ce-radius-sm);
	background: #fdf2f2;
}

.ce-manage-danger p {
	margin: 0;
	color: var(--ce-text);
}

.ce-btn.ce-btn-danger {
	background: var(--ce-danger);
	border-color: var(--ce-danger);
	color: #fff;
}

@media (max-width: 640px) {
	.ce-teacher-row {
		grid-template-columns: 48px 1fr;
	}

	.ce-teacher-row > .ce-btn {
		grid-column: 2;
		justify-self: start;
	}
}

/* Recommended image size, next to every upload field. */
.ce-size-badge {
	display: inline-block;
	margin-inline-start: 6px;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--ce-soft);
	color: var(--ce-primary-strong);
	font-size: 0.8rem;
	font-weight: 500;
	vertical-align: middle;
}

/* Venues (/manage/venues/). */

.ce-venues {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ce-venue-row {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 16px 24px;
	align-items: center;
	padding: 16px 18px;
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius-sm);
	background: var(--ce-card);
}

.ce-venue-row h2 {
	margin: 0 0 2px;
	font-size: 1.05rem;
}

.ce-venue-row h2 a {
	color: var(--ce-ink);
	text-decoration: none;
}

.ce-venue-row p {
	margin: 2px 0 0;
	font-size: 0.9rem;
}

.ce-venue-facts {
	display: flex;
	gap: 18px;
	color: var(--ce-muted);
	font-size: 0.88rem;
	white-space: nowrap;
}

.ce-venue-facts strong {
	color: var(--ce-ink);
	font-size: 1.15rem;
}

.ce-tag.ce-tag-default {
	background: var(--ce-success-soft);
	color: var(--ce-success);
}

.ce-danger-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ce-tag.ce-tag-pin {
	background: color-mix(in srgb, var(--ce-accent) 12%, #fff);
	color: var(--ce-accent);
}

.ce-venue-missing {
	color: var(--ce-warn);
}

.ce-venue-runs {
	margin: 0;
	padding-inline-start: 20px;
	line-height: 2;
}

@media (max-width: 640px) {
	.ce-venue-row {
		grid-template-columns: 1fr;
	}
}

.ce-demo-delete h2 {
	margin: 0 0 6px;
	color: var(--ce-danger);
	font-size: 1.05rem;
}

.ce-demo-delete ul {
	margin: 6px 0 10px;
	padding-inline-start: 20px;
}

/* Categories (/manage/categories/): colour swatches, icon picker and live preview. */

.ce-manage-cats .ce-cat-count {
	font-size: 0.82rem;
}

.ce-swatches,
.ce-icon-pick {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	border: 0;
}

.ce-swatches legend,
.ce-icon-pick legend {
	width: 100%;
	margin-bottom: 8px;
	color: var(--ce-ink);
	font-weight: 600;
}

.ce-swatch,
.ce-icon-option {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 4px;
	cursor: pointer;
}

.ce-swatch input,
.ce-icon-option input {
	position: absolute;
	opacity: 0;
}

.ce-swatch span {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 3px #fff;
	outline: 2px solid transparent;
	transition: outline-color 0.15s ease;
}

.ce-icon-option span {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--ce-line);
	border-radius: 12px;
	background: var(--ce-card);
	color: var(--ce-ink);
}

.ce-swatch em,
.ce-icon-option em {
	color: var(--ce-muted);
	font-size: 0.75rem;
	font-style: normal;
}

.ce-swatch input:checked + span {
	outline-color: var(--ce-ink);
}

.ce-icon-option input:checked + span {
	border-color: var(--ce-primary);
	background: var(--ce-soft);
	color: var(--ce-primary);
	box-shadow: 0 0 0 2px var(--ce-primary);
}

.ce-swatch input:focus-visible + span,
.ce-icon-option input:focus-visible + span {
	outline: 3px solid var(--ce-primary);
	outline-offset: 2px;
}

.ce-preview-label {
	display: block;
	margin-bottom: 8px;
	color: var(--ce-ink);
	font-weight: 600;
}

.ce-cat-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
}

.ce-cat-preview .ce-card-media {
	width: 280px;
	max-width: 100%;
	border-radius: var(--ce-radius);
}

.ce-cat-preview .ce-cat-sample {
	min-width: 240px;
	pointer-events: none;
}

.ce-course-runs-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 16px 0 0;
}

/* /manage/ course waitlist: which run the list will be told about. */
.ce-waitlist-run {
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--ce-success-soft);
	color: var(--ce-ink);
	font-weight: 600;
}

.ce-waitlist-run.is-warn {
	background: var(--ce-warn-soft);
	color: var(--ce-warn);
}

/* /manage/ «تصدير البيانات»: one row per list with its download button. */
.ce-export-all {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-block: 16px 20px;
}

.ce-export-list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ce-export-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 18px;
	border: 1px solid var(--ce-line);
	border-radius: 12px;
	background: #fff;
}

.ce-export-list h2 {
	margin: 0 0 4px;
	font-size: 1.05rem;
}

.ce-export-list p {
	margin: 0;
}

@media (max-width: 600px) {
	.ce-export-list li {
		flex-direction: column;
		align-items: stretch;
	}
}

/* ---------- Course reviews ---------- */

.ce-stars {
	position: relative;
	display: inline-block;
	letter-spacing: 1px;
	line-height: 1;
	white-space: nowrap;
}

.ce-stars .is-off {
	color: #cfd8e3;
}

/* Gold copy on top, cut to the rating from the reading start (the right, in Arabic). */
.ce-stars .is-on {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	overflow: hidden;
	color: #f5a623;
}

.ce-hero-rating {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-block-end: 10px;
	color: #fff;
	text-decoration: none;
}

.ce-hero-rating .ce-stars {
	font-size: 1.15rem;
}

.ce-hero-rating .ce-stars .is-off {
	color: rgb(255 255 255 / 0.3);
}

.ce-hero-rating span:last-child {
	color: #c9d7e5;
	font-size: 0.92rem;
}

.ce-card-rating {
	color: var(--ce-ink);
	font-weight: 600;
}

.ce-reviews-summary {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-block-end: 16px;
}

.ce-reviews-summary strong {
	font-size: 2rem;
	line-height: 1;
	color: var(--ce-ink);
}

.ce-reviews-summary .ce-stars {
	font-size: 1.3rem;
}

.ce-review-list {
	display: grid;
	gap: 12px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.ce-review {
	padding: 14px 16px;
	border: 1px solid var(--ce-line);
	border-radius: 12px;
	background: #fff;
}

.ce-review-head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ce-review-head > div {
	display: grid;
	gap: 4px;
	flex: 1;
}

.ce-review-head time {
	font-size: 0.85rem;
}

.ce-review-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}

.ce-review p {
	margin: 10px 0 0;
	line-height: 1.8;
}

.ce-review-form {
	padding: 18px;
	border: 1px dashed var(--ce-line);
	border-radius: 12px;
	background: var(--ce-soft, #f8fafc);
}

.ce-review-form h3 {
	margin-block-start: 0;
}

.ce-review-form textarea {
	width: 100%;
}

.ce-review-state {
	padding: 8px 12px;
	border-radius: 8px;
	background: var(--ce-warn-soft);
	color: var(--ce-warn);
}

/* Stars to pick: in the markup 5 → 1, laid out so 1 is first in reading order; a checked or
   hovered star lights itself and the lower ones. */
.ce-stars-input {
	display: inline-flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 4px;
	margin: 0 0 12px;
	padding: 0;
	border: 0;
}

.ce-stars-input legend {
	width: 100%;
	margin-block-end: 6px;
	font-weight: 600;
}

.ce-stars-input input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.ce-stars-input label {
	font-size: 2rem;
	line-height: 1;
	color: #cfd8e3;
	cursor: pointer;
	transition: color 0.15s;
}

.ce-stars-input input:checked ~ label,
.ce-stars-input label:hover,
.ce-stars-input label:hover ~ label {
	color: #f5a623;
}

.ce-stars-input input:focus-visible + label {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
	border-radius: 4px;
}

/* /manage/ «التقييمات» */
.ce-review-filter {
	display: flex;
	gap: 8px;
	margin-block: 12px 16px;
}

.ce-review-filter a {
	padding: 6px 14px;
	border: 1px solid var(--ce-line);
	border-radius: 999px;
	color: var(--ce-ink);
	text-decoration: none;
}

.ce-review-filter a.is-active {
	border-color: var(--ce-ink);
	background: var(--ce-ink);
	color: #fff;
}

.ce-review-admin .ce-review-head a {
	font-size: 0.9rem;
}

.ce-review-admin .ce-danger-actions {
	margin-block-start: 12px;
}

/* ---------- Likes ---------- */

.ce-hero-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	margin-block-end: 12px;
}

.ce-hero-social .ce-hero-rating {
	margin: 0;
}

.ce-like-form {
	display: inline-flex;
	margin: 0;
}

/* The like button: thumbs up and its count; blue and filled once liked. */
.ce-like {
	--ce-like: #1877f2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid var(--ce-line);
	border-radius: 999px;
	background: #fff;
	color: var(--ce-ink);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

/* Hover: filled blue with a white thumb and count (also when already liked). */
.ce-like:hover,
.ce-like:focus-visible,
.ce-like.is-on:hover,
.ce-like.is-on:focus-visible {
	border-color: var(--ce-like);
	background: var(--ce-like);
	color: #fff;
}

.ce-like svg {
	flex: none;
	transition: transform 0.2s;
}

.ce-like.is-on {
	border-color: var(--ce-like);
	background: #e7f0fe;
	color: var(--ce-like);
}

.ce-like.is-on svg {
	fill: currentColor;
	fill-opacity: 0.2;
	transform: rotate(-8deg) scale(1.08);
}

.ce-like:disabled {
	opacity: 0.7;
}

/* On the dark course header. */
.ce-like-hero {
	border-color: rgb(255 255 255 / 0.45);
	background: rgb(255 255 255 / 0.1);
	color: #fff;
}

.ce-like-hero:hover,
.ce-like-hero:focus-visible {
	border-color: #fff;
	background: rgb(255 255 255 / 0.2);
	color: #fff;
}

.ce-like-hero.is-on {
	border-color: #fff;
	background: #fff;
	color: var(--ce-like);
}

/* In the buy box: a full-width row under the registration button. */
.ce-buybox-like {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-block: 14px 4px;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--ce-soft);
	font-weight: 600;
}

.ce-like-box {
	padding: 8px 16px;
	font-size: 1rem;
}

/* On cards: next to «التفاصيل». */
.ce-card-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ce-like-card {
	padding: 7px 11px;
}

@media (prefers-reduced-motion: reduce) {
	.ce-like svg {
		transition: none;
	}
}

/* /manage/ settings «إظهار الميزات» */
.ce-settings-heading {
	margin-block-start: 28px;
}

.ce-feature-toggles {
	display: grid;
	gap: 8px;
	max-width: 760px;
	margin: 12px 0 0;
	padding: 0;
	border: 0;
}

.ce-feature-toggle {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--ce-line);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
}

.ce-feature-toggle input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 3px 0 0;
}

.ce-feature-toggle span {
	display: grid;
	gap: 2px;
}

.ce-feature-toggle small {
	color: var(--ce-muted);
	font-size: 0.88rem;
}

/* A seat held while payment is awaited. */
.ce-price-enrolled.is-pending {
	color: var(--ce-warn);
}

/* When «ادخل الجلسة» appears (online runs), under the schedule and in the buy box. */
.ce-join-note,
.ce-buybox-join {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--ce-text);
	line-height: 1.7;
}

.ce-join-note {
	margin-block: 4px 12px;
	padding: 10px 14px;
	border: 1px solid color-mix(in srgb, var(--ce-primary) 25%, #fff);
	border-radius: var(--ce-radius-sm);
	background: var(--ce-soft);
}

.ce-buybox-join {
	margin-block: 10px 0;
	font-size: 0.9rem;
}

.ce-join-note .ce-icon,
.ce-buybox-join .ce-icon {
	flex: none;
	margin-block-start: 4px;
	color: var(--ce-primary);
}

.ce-join-later {
	font-weight: 600;
}

/* Buy box top action (Course\BuyBox): join now, next session, waitlist. */
.ce-btn-join {
	gap: 10px;
	padding-block: 14px;
	font-size: 1.1rem;
}

.ce-btn-join .ce-live-dot {
	position: relative;
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #4ade80;
}

.ce-btn-join .ce-live-dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: #4ade80;
	animation: ce-live-pulse 2.2s ease-out infinite;
}

.ce-buybox-next {
	display: grid;
	gap: 2px;
	padding: 12px 14px;
	border: 1px solid color-mix(in srgb, var(--ce-primary) 25%, #fff);
	border-radius: var(--ce-radius-sm);
	background: var(--ce-soft);
	color: var(--ce-text);
	font-size: 0.92rem;
}

.ce-buybox-next strong {
	color: var(--ce-ink);
	font-size: 1rem;
}

.ce-buybox-waitlist .ce-inline-form,
.ce-buybox-waitlist .button {
	width: 100%;
}

.ce-buybox-waitlist .button {
	justify-content: center;
}

.ce-buybox-waitlist .ce-waiting {
	margin: 0 0 8px;
}

/* Phones and tablets: while a session is open, its button stays at the bottom of the screen. */
.ce-join-bar {
	display: none;
}

@media (max-width: 1024px) {
	.ce-join-bar {
		position: fixed;
		inset-inline: 0;
		inset-block-end: 0;
		z-index: 60;
		display: block;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		border-block-start: 1px solid var(--ce-line);
		background: color-mix(in srgb, var(--ce-card) 94%, transparent);
		box-shadow: 0 -6px 18px rgb(0 0 0 / 0.08);
		backdrop-filter: blur(6px);
	}

	body:has(.ce-join-bar) {
		padding-block-end: 76px;
	}

	body:has(.ce-join-bar) .zl-wa-float {
		inset-block-end: 88px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ce-btn-join .ce-live-dot::after {
		animation: none;
	}
}

/* The group's WhatsApp link in the buy box, for its participants while the group runs. */
.ce-btn-whatsapp {
	gap: 8px;
	border-color: #1fa855;
	background: #fff;
	color: #13803f;
}

.ce-btn-whatsapp:hover,
.ce-btn-whatsapp:focus-visible {
	border-color: #1fa855;
	background: #1fa855;
	color: #fff;
}

/* Keeps a time such as «8:54 ص» on one line. */
.ce-nowrap {
	white-space: nowrap;
}

/* «تنبيه مهم للدخول إلى جلسات Teams» in the enrolled box: three short lines. */
.ce-teams-rule p {
	margin: 0 0 6px;
}

.ce-teams-rule p:last-child {
	margin-block-end: 0;
}

/* WhatsApp templates: orange marks only the open template (also while editing it). «تعديل»,
   «جديد», «حفظ» and «حذف» are icon buttons: the open action is filled blue, save is filled
   blue, delete is red. The theme turns button text white on hover, focus and click, so every
   state is set here: outlined buttons get a pale blue tint with blue text. */
.ce-wa-tab .ce-toolbar .button,
.ce-wa-tab .ce-wa-editor-actions .button {
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.ce-wa-tab .button:hover,
.ce-wa-tab .button:focus-visible,
.ce-wa-tab .button:active {
	border-color: var(--ce-primary);
	background: color-mix(in srgb, var(--ce-primary) 10%, #fff);
	color: var(--ce-primary-strong);
	box-shadow: none;
}

/* Template buttons: the others are quiet grey chips; the open one is a solid orange chip with
   a ✓, bold text and a lift, so it reads as «this one» at a glance. */
.ce-wa-tab .button.ce-wa-template {
	gap: 6px;
	border-color: #d0d5dd;
	background: #fff;
	color: #475467;
	font-weight: 500;
}

.ce-wa-tab .button.ce-wa-template:hover,
.ce-wa-tab .button.ce-wa-template:focus-visible {
	border-color: #98a2b3;
	background: #f2f4f7;
	color: #1d2939;
}

.ce-wa-tab .button.ce-wa-template.button-primary,
.ce-wa-tab .button.ce-wa-template.button-primary:hover,
.ce-wa-tab .button.ce-wa-template.button-primary:focus-visible,
.ce-wa-tab .button.ce-wa-template.button-primary:active {
	display: inline-flex;
	align-items: center;
	border-color: var(--ce-accent);
	background: var(--ce-accent);
	color: #fff;
	font-weight: 700;
	box-shadow: 0 4px 12px color-mix(in srgb, var(--ce-accent) 35%, transparent);
	transform: translateY(-1px);
}

.ce-wa-tab .button.ce-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	min-width: 38px;
	padding: 0;
}

.ce-wa-tab .button.is-current,
.ce-wa-tab .button.ce-button-save {
	border-color: var(--ce-primary);
	background: var(--ce-primary);
	color: #fff;
}

.ce-wa-tab .button.is-current:hover,
.ce-wa-tab .button.is-current:focus-visible,
.ce-wa-tab .button.ce-button-save:hover,
.ce-wa-tab .button.ce-button-save:focus-visible,
.ce-wa-tab .button.ce-button-save:active {
	border-color: var(--ce-primary-strong);
	background: var(--ce-primary-strong);
	color: #fff;
}

.ce-wa-tab .button.ce-button-delete {
	border-color: #b42318;
	background: #fff;
	color: #b42318;
}

.ce-wa-tab .button.ce-button-delete:hover,
.ce-wa-tab .button.ce-button-delete:focus-visible,
.ce-wa-tab .button.ce-button-delete:active {
	border-color: #b42318;
	background: #fef3f2;
	color: #b42318;
}

/* Teams tab (manual mode): one table of trainees and where they stand in the meeting. */
.ce-teams-counts .is-added {
	color: #067647;
	font-weight: 600;
}

.ce-teams-counts .is-removed {
	color: #b42318;
	font-weight: 600;
}

.ce-teams-table .ce-teams-pick-col {
	width: 36px;
}

.ce-teams-table input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.ce-teams-state {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: #f2f4f7;
	color: #475467;
	font-size: 0.85rem;
	font-weight: 600;
}

.ce-teams-row.is-added .ce-teams-state {
	background: #ecfdf3;
	color: #067647;
}

.ce-teams-row.is-removed,
.ce-teams-row.is-gone {
	background: #fef3f2 !important;
}

.ce-teams-row.is-removed .ce-teams-state,
.ce-teams-row.is-gone .ce-teams-state {
	background: #fee4e2;
	color: #b42318;
}

.ce-teams-bulk .button[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Teams tab: filter chips with counts, and the live search. */
.ce-teams-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-block: 4px 12px;
}

.ce-teams-filter {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	padding: 4px 14px;
	border: 1px solid #d0d5dd;
	border-radius: 999px;
	background: #fff;
	color: #344054;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
}

.ce-teams-filter span {
	padding: 0 7px;
	border-radius: 999px;
	background: #f2f4f7;
	font-size: 0.8rem;
}

.ce-teams-filter:hover,
.ce-teams-filter:focus-visible {
	border-color: var(--ce-primary);
	background: color-mix(in srgb, var(--ce-primary) 8%, #fff);
	color: var(--ce-primary-strong);
}

.ce-teams-filter.is-active,
.ce-teams-filter.is-active:hover {
	border-color: var(--ce-primary);
	background: var(--ce-primary);
	color: #fff;
}

.ce-teams-filter.is-active span {
	background: rgb(255 255 255 / 0.25);
}

.ce-teams-filter.is-removed:not(.is-active),
.ce-teams-filter.is-gone:not(.is-active) {
	color: #b42318;
}

.ce-teams-filter.is-added:not(.is-active) {
	color: #067647;
}

.ce-teams-search {
	flex: 1 1 220px;
	max-width: 360px;
	min-height: 36px;
	margin-inline-start: auto;
	padding: 6px 12px;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	font: inherit;
}

.ce-teams-search:focus {
	border-color: var(--ce-primary);
	outline: 2px solid color-mix(in srgb, var(--ce-primary) 25%, transparent);
}

/* «حذف» in a group's row on the courses dashboard, and the «حذف المجموعة» screen. */
.ce-manage-run-actions .ce-manage-delete-link {
	color: #b42318;
}

.ce-manage-run-actions .ce-manage-delete-link:hover,
.ce-manage-run-actions .ce-manage-delete-link:focus-visible {
	color: #7a1a12;
}

.ce-run-delete {
	border: 1px solid #f3c7c2;
	background: #fffafa;
}

.ce-run-delete-list {
	margin: 0 0 12px;
	padding-inline-start: 22px;
	line-height: 1.9;
}

.ce-run-delete-note {
	padding: 10px 14px;
	border-inline-start: 4px solid #e0a100;
	border-radius: var(--ce-radius-sm);
	background: #fff8e6;
}

.ce-run-delete-confirm {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-block: 14px;
	font-weight: 600;
}
