/*
 * Cavalier — layout, components and motion.
 *
 * Two rules govern this file:
 *
 * 1. NO left/right properties. Everything uses logical properties
 *    (inline-start / inline-end), so one set of rules produces a correct LTR
 *    English page and a correct RTL Arabic page. There is no rtl.css to drift.
 *
 * 2. All decoration is CSS. The rings, meshes, dot grids and card icons are
 *    gradients, borders and data-URI SVG — never markup. That keeps every page
 *    made of plain core blocks the client can edit without meeting a <div> they
 *    are afraid to touch.
 */

/* ============================================================
   1. Tokens
   ============================================================ */

:root {
	--cdt-maroon: #762121;
	--cdt-maroon-light: #8e2a2a;
	--cdt-maroon-dark: #5c1a1a;
	--cdt-maroon-deep: #4a1414;
	/* Deepest tone in the system. Still unmistakably maroon — never a
	   neutral near-black, which read as muddy against the brand red. */
	--cdt-maroon-ink: #3a0f0f;
	--cdt-red: #c82828;
	--cdt-gold: #c2a15a;
	--cdt-gold-logo: #c89840;
	--cdt-gold-bright: #dcbe7c;
	/* Brand gold is only 2.5:1 on white — unreadable as text. This darker
	   bronze keeps the gold family and clears AA (5.3:1 on white,
	   4.8:1 on the off-white tint). Used for any gold text on a light band. */
	--cdt-gold-text: #8a6520;
	--cdt-black: #0a0a0a;
	--cdt-ink: #232323;
	--cdt-muted: #5e5a58;
	--cdt-offwhite: #f7f3f1;
	--cdt-line: #e3dcd8;
	--cdt-white: #fff;

	--cdt-shell: 1200px;
	--cdt-shell-narrow: 880px;
	--cdt-gutter: clamp(1.15rem, 4vw, 2.75rem);
	/* Header and top bar run full-bleed, so they use a tighter edge inset
	   than the content shell — the emblem should sit in the corner. */
	--cdt-edge: clamp(1rem, 2vw, 1.75rem);

	--cdt-radius: 4px;
	--cdt-radius-lg: 8px;

	--cdt-font: "Inter", "Cairo", "Segoe UI", system-ui, -apple-system, sans-serif;
	--cdt-font-ar: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;

	--cdt-shadow-sm: 0 1px 2px rgb(36 10 11 / 6%), 0 2px 8px rgb(36 10 11 / 5%);
	--cdt-shadow: 0 2px 6px rgb(36 10 11 / 7%), 0 14px 36px rgb(36 10 11 / 9%);
	--cdt-shadow-lg: 0 28px 70px rgb(36 10 11 / 26%);

	--cdt-ease: cubic-bezier(.22, .61, .36, 1);

	/* Flipped for RTL so every directional gradient mirrors with the layout. */
	--cdt-dir: right;
}

body.is-ar { --cdt-dir: left; }

/* ============================================================
   2. Base
   ============================================================ */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Clears the sticky header so anchor targets are not hidden under it. */
	scroll-padding-block-start: 110px;
}

body {
	margin: 0;
	background: var(--cdt-white);
	color: var(--cdt-ink);
	font-family: var(--cdt-font);
	font-size: 1.0625rem;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.is-ar {
	font-family: var(--cdt-font-ar);
	line-height: 1.95;
}

h1, h2, h3, h4 {
	margin: 0 0 0.6em;
	color: var(--cdt-maroon);
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.3rem + 3.1vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.85vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.03rem + 0.55vw, 1.4rem); }
h4 { font-size: 1.0625rem; }

body.is-ar h1,
body.is-ar h2,
body.is-ar h3 {
	line-height: 1.45;
	letter-spacing: 0;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
	color: var(--cdt-maroon);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 0.18s var(--cdt-ease);
}

a:hover { color: var(--cdt-red); }

:focus-visible {
	outline: 3px solid var(--cdt-gold);
	outline-offset: 3px;
	border-radius: 2px;
}

img { max-width: 100%; height: auto; }

/* ============================================================
   3. Shell + sections
   ============================================================ */

.cdt-shell {
	inline-size: 100%;
	max-inline-size: var(--cdt-shell);
	margin-inline: auto;
	padding-inline: var(--cdt-gutter);
}

.cdt-shell--narrow { max-inline-size: var(--cdt-shell-narrow); }

.cdt-section {
	position: relative;
	padding-block: clamp(2.5rem, 4.6vw, 4rem);
}

/* Two adjacent sections would otherwise stack their padding into a gulf.
   Collapse the seam unless the background actually changes. */
.cdt-section + .cdt-section { padding-block-start: 0; }
.cdt-section + .cdt-section--tint,
.cdt-section--tint + .cdt-section { padding-block-start: clamp(2.5rem, 4.6vw, 4rem); }

.cdt-section--tint {
	background: var(--cdt-offwhite);
}

/* A faint dot field, fading out downward. Pure gradient, no asset. */
.cdt-section--dots::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, rgb(118 33 33 / 13%) 1px, transparent 1px);
	background-size: 26px 26px;
	-webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
	mask-image: linear-gradient(to bottom, #000, transparent 78%);
	pointer-events: none;
}

.cdt-section > * { position: relative; }

.cdt-skip {
	position: absolute;
	inset-block-start: -100vh;
	inset-inline-start: 0;
	z-index: 999;
	padding: 0.75rem 1.25rem;
	background: var(--cdt-maroon);
	color: var(--cdt-white);
}

.cdt-skip:focus { inset-block-start: 0; color: var(--cdt-white); }

/* ------- Eyebrow ------- */

.cdt-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 1rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	/* Readable gold on light bands; the dark bands override below. */
	color: var(--cdt-gold-text);
}

/* On dark bands the full-strength gold is both legible and on-brand. */
.cdt-hero .cdt-eyebrow,
.cdt-cta .cdt-eyebrow { color: var(--cdt-gold); }

.cdt-eyebrow::before {
	content: "";
	inline-size: 26px;
	block-size: 2px;
	background: currentColor;
	flex: 0 0 auto;
}

body.is-ar .cdt-eyebrow {
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.875rem;
}

/* ------- Section heading ------- */

.cdt-heading { margin-block-end: 2.5rem; }

.cdt-heading__title { margin-block-end: 0.75rem; }

.cdt-heading__rule {
	display: block;
	block-size: 3px;
	inline-size: 88px;
	border: 0;
	margin: 0;
	background: linear-gradient(to var(--cdt-dir), var(--cdt-maroon) 0 58%, var(--cdt-gold) 58% 100%);
}

.cdt-heading__lead {
	margin-block-start: 1.25rem;
	max-inline-size: 64ch;
	font-size: 1.0625rem;
	color: var(--cdt-muted);
}

/* ============================================================
   4. Header
   ============================================================ */

/* ------- Utility top bar ------- */

.cdt-topbar {
	background: var(--cdt-maroon-ink);
	color: rgb(255 255 255 / 78%);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.cdt-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.75rem;
	flex-wrap: wrap;
	padding: 0.5rem var(--cdt-edge);
	min-block-size: 40px;
}

.cdt-topbar__links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cdt-topbar__links li,
.cdt-topbar__place {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.cdt-topbar a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: inherit;
	text-decoration: none;
	transition: color 0.2s var(--cdt-ease);
}

.cdt-topbar a:hover { color: var(--cdt-gold); }

.cdt-topbar svg {
	inline-size: 15px;
	block-size: 15px;
	flex: 0 0 auto;
	color: var(--cdt-gold);
}

.cdt-topbar__meta {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.cdt-topbar__reg { color: rgb(255 255 255 / 64%); }
.cdt-topbar__reg strong { color: rgb(255 255 255 / 92%); font-weight: 700; }

@media (max-width: 1140px) {
	.cdt-topbar__place,
	.cdt-topbar__reg { display: none; }
}

@media (max-width: 720px) {
	.cdt-topbar__inner { justify-content: center; }
	.cdt-topbar__links { justify-content: center; gap: 0.25rem 1rem; }
}

/* ------- Main bar ------- */

.cdt-header {
	position: sticky;
	inset-block-start: 0;
	z-index: 100;
	background: rgb(255 255 255 / 90%);
	backdrop-filter: saturate(160%) blur(12px);
	border-block-end: 1px solid transparent;
	transition: box-shadow 0.25s var(--cdt-ease), border-color 0.25s var(--cdt-ease),
		background-color 0.25s var(--cdt-ease);
}

.cdt-header.is-stuck {
	background: rgb(255 255 255 / 97%);
	border-block-end-color: var(--cdt-line);
	box-shadow: 0 6px 24px rgb(58 15 15 / 10%);
}

/*
 * Full-bleed: the bar spans the viewport rather than sitting inside the 1200px
 * shell, so the emblem sits in the corner and the nine nav items have room.
 */
.cdt-header__bar {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding-inline: var(--cdt-edge);
	min-block-size: 74px;
	transition: min-block-size 0.25s var(--cdt-ease);
}

.cdt-header.is-stuck .cdt-header__bar { min-block-size: 62px; }

.cdt-brand {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	text-decoration: none;
	color: inherit;
	margin-inline-end: auto;
	flex: 0 0 auto;
}

.cdt-brand__mark {
	inline-size: 48px;
	block-size: 48px;
	flex: 0 0 auto;
	transition: transform 0.3s var(--cdt-ease);
}

.cdt-brand:hover .cdt-brand__mark { transform: rotate(-8deg) scale(1.06); }

.cdt-brand__text { display: flex; flex-direction: column; line-height: 1.25; }

.cdt-brand__name {
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.055em;
	color: var(--cdt-maroon);
	text-transform: uppercase;
}

body.is-ar .cdt-brand__name {
	text-transform: none;
	letter-spacing: 0;
	font-size: 1.0625rem;
}

.cdt-brand__tag { font-size: 0.75rem; color: var(--cdt-muted); }

/* ------- Nav ------- */

.cdt-nav > ul {
	display: flex;
	align-items: center;
	gap: 0.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cdt-nav li { position: relative; }

.cdt-nav a {
	position: relative;
	display: block;
	padding: 0.55rem 0.7rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--cdt-ink);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s var(--cdt-ease);
}

/* Gold underline that wipes in from the reading edge. */
.cdt-nav > ul > li > a::after {
	content: "";
	position: absolute;
	inset-block-end: 0.1rem;
	inset-inline-start: 0.7rem;
	inline-size: calc(100% - 1.4rem);
	block-size: 2px;
	background: var(--cdt-gold);
	transform: scaleX(0);
	transform-origin: var(--cdt-dir);
	transition: transform 0.26s var(--cdt-ease);
}

.cdt-nav a:hover,
.cdt-nav a:focus-visible { color: var(--cdt-maroon); }

.cdt-nav > ul > li > a:hover::after,
.cdt-nav > ul > li > a:focus-visible::after,
.cdt-nav > ul > li.current-menu-item > a::after,
.cdt-nav > ul > li.current_page_item > a::after,
.cdt-nav > ul > li.current-menu-ancestor > a::after,
.cdt-nav > ul > li.current_page_ancestor > a::after { transform: scaleX(1); }

.cdt-nav > ul > li.current-menu-item > a,
.cdt-nav > ul > li.current_page_item > a,
.cdt-nav > ul > li.current-menu-ancestor > a,
.cdt-nav > ul > li.current_page_ancestor > a { color: var(--cdt-maroon); }

/* Dropdowns for any menu item that gains children later. */
.cdt-nav .menu-item-has-children > a::before {
	content: "";
	display: inline-block;
	inline-size: 6px;
	block-size: 6px;
	margin-inline-start: 0.45rem;
	border-inline-end: 1.6px solid currentColor;
	border-block-end: 1.6px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	opacity: .6;
}

.cdt-nav .sub-menu {
	position: absolute;
	inset-block-start: calc(100% + 2px);
	inset-inline-start: 0;
	z-index: 20;
	min-inline-size: 250px;
	margin: 0;
	padding: 0.4rem;
	list-style: none;
	background: var(--cdt-white);
	border: 1px solid var(--cdt-line);
	border-block-start: 3px solid var(--cdt-maroon);
	border-radius: var(--cdt-radius);
	box-shadow: var(--cdt-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.2s var(--cdt-ease), transform 0.2s var(--cdt-ease),
		visibility 0s linear 0.2s;
}

.cdt-nav li:hover > .sub-menu,
.cdt-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.cdt-nav .sub-menu a {
	padding: 0.55rem 0.7rem;
	border-radius: 2px;
	white-space: normal;
}

.cdt-nav .sub-menu a:hover { background: var(--cdt-offwhite); }

/* Header call-to-action */
.cdt-header__cta {
	flex: 0 0 auto;
	padding: 0.55rem 1.15rem;
	border: 2px solid var(--cdt-maroon);
	border-radius: var(--cdt-radius);
	background: var(--cdt-maroon);
	color: var(--cdt-white);
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s var(--cdt-ease), color 0.2s var(--cdt-ease),
		transform 0.2s var(--cdt-ease);
}

.cdt-header__cta:hover {
	background: var(--cdt-maroon-dark);
	border-color: var(--cdt-maroon-dark);
	color: var(--cdt-white);
	transform: translateY(-1px);
}

/* ------- Language toggle (top bar) ------- */

.cdt-langswitch {
	display: inline-flex;
	align-items: center;
	padding: 2px;
	border: 1px solid rgb(255 255 255 / 22%);
	border-radius: 999px;
}

.cdt-langswitch a {
	display: block;
	min-inline-size: 38px;
	padding: 0.15rem 0.65rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	color: rgb(255 255 255 / 72%);
	text-align: center;
	text-decoration: none;
	line-height: 1.7;
	transition: background-color 0.2s var(--cdt-ease), color 0.2s var(--cdt-ease);
}

.cdt-langswitch a[aria-current="true"] {
	background: var(--cdt-gold);
	color: var(--cdt-maroon-ink);
}

.cdt-langswitch a:not([aria-current="true"]):hover {
	background: rgb(255 255 255 / 14%);
	color: var(--cdt-white);
}

/* ------- Burger: three lines that morph into an X ------- */

.cdt-burger {
	display: none;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px; /* without this, flex shrinks it below the 44px tap target */
	inline-size: 44px;
	block-size: 44px;
	padding: 0;
	border: 1px solid var(--cdt-line);
	border-radius: var(--cdt-radius);
	background: var(--cdt-white);
	color: var(--cdt-maroon);
	cursor: pointer;
}

.cdt-burger__box {
	position: relative;
	display: block;
	inline-size: 20px;
	block-size: 14px;
}

.cdt-burger__line,
.cdt-burger__line::before,
.cdt-burger__line::after {
	position: absolute;
	inline-size: 20px;
	block-size: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.28s var(--cdt-ease), opacity 0.18s var(--cdt-ease);
}

.cdt-burger__line { inset-block-start: 6px; }
.cdt-burger__line::before { content: ""; inset-block-start: -6px; inset-inline-start: 0; }
.cdt-burger__line::after  { content: ""; inset-block-start: 6px;  inset-inline-start: 0; }

.cdt-burger[aria-expanded="true"] .cdt-burger__line { transform: rotate(45deg); }
.cdt-burger[aria-expanded="true"] .cdt-burger__line::before { transform: translateY(6px); opacity: 0; }
.cdt-burger[aria-expanded="true"] .cdt-burger__line::after  { transform: translateY(-6px) rotate(-90deg); }

/* Language links repeated inside the mobile panel. */
.cdt-nav__mobilelang { display: none; }

@media (max-width: 1140px) {
	.cdt-burger { display: inline-flex; }
	.cdt-header { position: sticky; }
	.cdt-header__bar { position: relative; }

	/* Kept visible per the client's request — Apply Now must be reachable
	   without opening the menu. Shrunk so brand + CTA + burger still fit
	   a narrow screen without wrapping. */
	.cdt-header__cta {
		flex: 0 0 auto;
		padding: 0.5rem 0.85rem;
		font-size: 0.75rem;
		white-space: nowrap;
	}

	/* The brand name was flex:0 0 auto (fixed, cannot shrink), which forced
	   the header past the viewport once the CTA became visible alongside it.
	   Let it shrink and truncate instead of pushing the CTA/burger off-screen. */
	.cdt-brand {
		flex: 1 1 auto;
		min-inline-size: 0;
		margin-inline-end: 0.5rem;
	}

	.cdt-brand__text { min-inline-size: 0; }

	.cdt-brand__name {
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.cdt-nav {
		display: none;
		position: absolute;
		inset-inline: 0;
		inset-block-start: 100%;
		max-block-size: calc(100vh - 100%);
		overflow-y: auto;
		background: var(--cdt-white);
		border-block-end: 1px solid var(--cdt-line);
		box-shadow: var(--cdt-shadow);
		padding: 0.5rem var(--cdt-edge) 1.5rem;
	}

	.cdt-nav.is-open { display: block; }
	.cdt-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }

	.cdt-nav > ul > li > a {
		padding: 0.9rem 0.25rem;
		font-size: 1rem;
		border-block-end: 1px solid var(--cdt-line);
	}

	.cdt-nav > ul > li > a::after { display: none; }

	/* Submenus become a static indented list rather than a floating panel. */
	.cdt-nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		min-inline-size: 0;
		margin-inline-start: 0.9rem;
		padding: 0;
		border: 0;
		border-inline-start: 2px solid var(--cdt-line);
		border-radius: 0;
		box-shadow: none;
	}

	.cdt-nav .sub-menu a { padding: 0.65rem 0.9rem; font-size: 0.9375rem; }
	.cdt-nav .menu-item-has-children > a::before { display: none; }

	.cdt-nav__mobilelang {
		display: flex;
		gap: 0.6rem;
		margin-block-start: 1.25rem;
	}

	.cdt-nav__mobilelang a {
		flex: 1;
		padding: 0.7rem 1rem;
		border: 2px solid var(--cdt-line);
		border-radius: var(--cdt-radius);
		font-weight: 700;
		text-align: center;
		white-space: nowrap;
	}

	.cdt-nav__mobilelang a[aria-current="true"] {
		background: var(--cdt-maroon);
		border-color: var(--cdt-maroon);
		color: var(--cdt-white);
	}
}

@media (max-width: 460px) {
	.cdt-brand__tag { display: none; }
	.cdt-brand__name { font-size: 0.75rem; }
	.cdt-brand__mark { inline-size: 40px; block-size: 40px; }
	.cdt-header__bar { gap: 0.6rem; }
	.cdt-header__cta { padding: 0.5rem 0.65rem; font-size: 0.6875rem; }
	.cdt-burger { flex-basis: 40px; inline-size: 40px; block-size: 40px; }
}

/* ============================================================
   5. Hero
   ============================================================ */

/*
 * Hero background.
 *
 * Deliberately a single maroon family — one soft lift behind the emblem and a
 * gentle diagonal from a lighter maroon to a deeper one. No gold wash and no
 * near-black: mixing those in produced a brown, muddy result.
 */
.cdt-hero {
	position: relative;
	isolation: isolate;
	padding-block: clamp(3.25rem, 8vw, 6.5rem);
	background:
		radial-gradient(72% 62% at 74% 26%, rgb(158 48 48 / 62%) 0%, transparent 68%),
		linear-gradient(152deg, var(--cdt-maroon-light) 0%, #6b1f1f 42%, var(--cdt-maroon-deep) 100%);
	color: var(--cdt-white);
	overflow: hidden;
}

/* Dot field over the gradient, fading toward the bottom. */
.cdt-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(circle, rgb(255 255 255 / 12%) 1px, transparent 1px);
	background-size: 30px 30px;
	-webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent 82%);
	mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent 82%);
}

/* Gold hairline along the bottom edge, mirroring the deck's rules. */
.cdt-hero::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	block-size: 3px;
	background: linear-gradient(to var(--cdt-dir),
		var(--cdt-maroon) 0%, var(--cdt-gold) 42%, var(--cdt-red) 72%, var(--cdt-maroon) 100%);
}

.cdt-hero__grid {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: center;
}

.cdt-hero__title {
	color: var(--cdt-white);
	margin-block-end: 1.25rem;
	text-shadow: 0 2px 30px rgb(0 0 0 / 35%);
}

body.is-en .cdt-hero__title { letter-spacing: -0.015em; }

.cdt-hero__lead {
	max-inline-size: 56ch;
	font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.1875rem);
	color: rgb(255 255 255 / 84%);
}

.cdt-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-block-start: 2.25rem;
}

/* ------- Hero visual: emblem inside CSS orbit rings ------- */

.cdt-hero__visual {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	max-inline-size: 420px;
	margin-inline: auto;
	inline-size: 100%;
}

.cdt-hero__visual::before,
.cdt-hero__visual::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

/* Outer dashed ring, rotating slowly. */
.cdt-hero__visual::before {
	inset: 0;
	border: 1px dashed rgb(194 161 90 / 42%);
	animation: cdt-spin 46s linear infinite;
}

/* Inner ring with a single bright arc, counter-rotating. */
.cdt-hero__visual::after {
	inset: 11%;
	border: 2px solid transparent;
	border-block-start-color: var(--cdt-gold);
	border-inline-end-color: rgb(200 40 40 / 70%);
	animation: cdt-spin 22s linear infinite reverse;
}

.cdt-hero__mark {
	position: relative;
	z-index: 1;
	inline-size: 62%;
	margin: 0;
	filter: drop-shadow(0 18px 44px rgb(0 0 0 / 55%));
	animation: cdt-float 7s ease-in-out infinite;
}

.cdt-hero__mark img { display: block; inline-size: 100%; }

/* Soft glow behind the emblem. */
.cdt-hero__visual > .cdt-hero__mark::before {
	content: "";
	position: absolute;
	inset: -18%;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(circle, rgb(194 161 90 / 26%) 0%, transparent 68%);
}

@keyframes cdt-spin { to { transform: rotate(360deg); } }

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

@media (max-width: 900px) {
	.cdt-hero__grid { grid-template-columns: 1fr; text-align: center; }
	.cdt-hero__lead { margin-inline: auto; }
	.cdt-hero__actions { justify-content: center; }
	.cdt-hero__visual { max-inline-size: 300px; order: -1; }
	.cdt-eyebrow { justify-content: center; }
}

/* ============================================================
   6. Buttons
   ============================================================ */

.cdt-btn,
.wp-block-button.cdt-btn > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.7rem;
	border: 2px solid var(--cdt-gold);
	border-radius: var(--cdt-radius);
	background: var(--cdt-gold);
	color: var(--cdt-maroon-ink);
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.4;
	transition: background-color 0.2s var(--cdt-ease), border-color 0.2s var(--cdt-ease),
		color 0.2s var(--cdt-ease), transform 0.2s var(--cdt-ease),
		box-shadow 0.2s var(--cdt-ease);
}

.cdt-btn:hover,
.wp-block-button.cdt-btn > .wp-block-button__link:hover {
	background: var(--cdt-gold-bright);
	border-color: var(--cdt-gold-bright);
	color: var(--cdt-maroon-ink);
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgb(194 161 90 / 34%);
}

.cdt-btn--ghost,
.wp-block-button.cdt-btn--ghost > .wp-block-button__link {
	background: transparent;
	border-color: rgb(255 255 255 / 55%);
	color: var(--cdt-white);
}

.cdt-btn--ghost:hover,
.wp-block-button.cdt-btn--ghost > .wp-block-button__link:hover {
	background: rgb(255 255 255 / 12%);
	border-color: var(--cdt-white);
	color: var(--cdt-white);
	box-shadow: none;
}

/* On light backgrounds the ghost button needs maroon, not white. */
.cdt-section .cdt-btn--ghost,
.cdt-section .wp-block-button.cdt-btn--ghost > .wp-block-button__link {
	border-color: var(--cdt-maroon);
	color: var(--cdt-maroon);
}

.cdt-section .cdt-btn--ghost:hover,
.cdt-section .wp-block-button.cdt-btn--ghost > .wp-block-button__link:hover {
	background: var(--cdt-maroon);
	color: var(--cdt-white);
}

/* The wrapper div must never draw a box of its own — that produced a
   double border in the first build. */
.wp-block-button.cdt-btn,
.wp-block-button.cdt-btn--ghost {
	border: 0;
	background: none;
	padding: 0;
}

/* ============================================================
   7. Trust strip
   ============================================================ */

.cdt-strip {
	position: relative;
	z-index: 2;
	margin-block-start: -1px;
	background: var(--cdt-maroon-ink);
	color: rgb(255 255 255 / 84%);
	padding-block: 1.5rem;
}

.cdt-strip__grid {
	display: grid;
	gap: 1.25rem 2rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.cdt-strip .cdt-fact__label { color: var(--cdt-gold); }
.cdt-strip .cdt-fact__value { color: var(--cdt-white); }

.cdt-fact__label {
	display: block;
	margin-block-end: 0.2rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cdt-maroon);
}

body.is-ar .cdt-fact__label {
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.8125rem;
}

.cdt-fact__value {
	display: block;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.cdt-fact__value a { color: inherit; text-decoration: none; }
.cdt-fact__value a:hover { color: var(--cdt-gold); text-decoration: underline; }

/* Latin data (phone, email, URL, numbers) must stay LTR inside Arabic copy. */
.cdt-ltr { display: inline-block; direction: ltr; unicode-bidi: isolate; }

/* ============================================================
   8. Feature cards ("Why Cavalier")
   ============================================================ */

.cdt-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

.cdt-card {
	position: relative;
	padding: 1.9rem 1.6rem 1.6rem;
	background: var(--cdt-white);
	border: 1px solid var(--cdt-line);
	border-radius: var(--cdt-radius-lg);
	overflow: hidden;
	transition: transform 0.28s var(--cdt-ease), box-shadow 0.28s var(--cdt-ease),
		border-color 0.28s var(--cdt-ease);
}

/* Gold bar that grows across the top edge on hover. */
.cdt-card::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	inline-size: 100%;
	block-size: 3px;
	background: linear-gradient(to var(--cdt-dir), var(--cdt-maroon), var(--cdt-gold));
	transform: scaleX(0);
	transform-origin: var(--cdt-dir);
	transition: transform 0.34s var(--cdt-ease);
}

.cdt-card:hover {
	transform: translateY(-4px);
	border-color: rgb(118 33 33 / 22%);
	box-shadow: var(--cdt-shadow);
}

.cdt-card:hover::before { transform: scaleX(1); }

.cdt-card__title {
	margin: 0 0 0.45rem;
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--cdt-maroon);
}

.cdt-card__body {
	margin: 0;
	font-size: 0.9688rem;
	color: var(--cdt-muted);
}

/*
 * Card icons.
 * Delivered as data-URI SVG keyed off a modifier class, so the block markup
 * stays free of icon <svg> the client might delete by accident.
 */
.cdt-card--icon .cdt-card__title::before {
	content: "";
	display: block;
	inline-size: 40px;
	block-size: 40px;
	margin-block-end: 0.9rem;
	border-radius: var(--cdt-radius);
	background-color: rgb(118 33 33 / 8%);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 22px 22px;
	transition: background-color 0.28s var(--cdt-ease);
}

.cdt-card:hover .cdt-card__title::before { background-color: rgb(118 33 33 / 14%); }

.cdt-card--target .cdt-card__title::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23762121' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.4' fill='%23762121' stroke='none'/%3E%3C/svg%3E");
}

.cdt-card--shield .cdt-card__title::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23762121' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5.5c0 4.2-2.9 7.6-7 8.5-4.1-.9-7-4.3-7-8.5V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}

.cdt-card--ai .cdt-card__title::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23762121' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='5.5' r='2.2'/%3E%3Ccircle cx='5.5' cy='16' r='2.2'/%3E%3Ccircle cx='18.5' cy='16' r='2.2'/%3E%3Cpath d='M10.4 7.3L7.1 14M13.6 7.3L16.9 14M7.7 16h8.6'/%3E%3C/svg%3E");
}

.cdt-card--compliance .cdt-card__title::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23762121' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a1 1 0 00-1 1v16a1 1 0 001 1h10a1 1 0 001-1V7z'/%3E%3Cpath d='M14 3v4h4'/%3E%3Ccircle cx='12' cy='13.5' r='2.4'/%3E%3Cpath d='M10.6 15.8L10 18.5l2-1 2 1-.6-2.7'/%3E%3C/svg%3E");
}

.cdt-card--flow .cdt-card__title::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23762121' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='9' width='5' height='6' rx='1'/%3E%3Crect x='16' y='9' width='5' height='6' rx='1'/%3E%3Cpath d='M8 12h8'/%3E%3Cpath d='M13.5 9.8L16 12l-2.5 2.2'/%3E%3C/svg%3E");
}

.cdt-card--modular .cdt-card__title::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23762121' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='7' height='7' rx='1'/%3E%3Crect x='13.5' y='3.5' width='7' height='7' rx='1'/%3E%3Crect x='3.5' y='13.5' width='7' height='7' rx='1'/%3E%3Cpath d='M17 13.5v7M13.5 17h7'/%3E%3C/svg%3E");
}

/* ============================================================
   9. Solution cards (core/cover blocks)
   ============================================================ */

.cdt-solutions {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(6, 1fr);
}

/* First two cards take half the row each; the last three share the next row. */
.cdt-solutions > .cdt-sol:nth-child(1),
.cdt-solutions > .cdt-sol:nth-child(2) { grid-column: span 3; }
.cdt-solutions > .cdt-sol:nth-child(n+3) { grid-column: span 2; }

@media (max-width: 980px) {
	.cdt-solutions { grid-template-columns: repeat(2, 1fr); }
	.cdt-solutions > .cdt-sol:nth-child(1),
	.cdt-solutions > .cdt-sol:nth-child(2),
	.cdt-solutions > .cdt-sol:nth-child(n+3) { grid-column: span 1; }
	.cdt-solutions > .cdt-sol:last-child:nth-child(odd) { grid-column: span 2; }
}

@media (max-width: 620px) {
	.cdt-solutions { grid-template-columns: 1fr; }
	.cdt-solutions > .cdt-sol,
	.cdt-solutions > .cdt-sol:last-child:nth-child(odd) { grid-column: span 1; }
}

.cdt-sol.wp-block-cover {
	min-block-size: 280px;
	padding: 1.9rem;
	border-radius: var(--cdt-radius-lg);
	overflow: hidden;
	align-items: flex-end;
	justify-content: flex-start;
	transition: transform 0.32s var(--cdt-ease), box-shadow 0.32s var(--cdt-ease);
}

.cdt-sol .wp-block-cover__image-background {
	transition: transform 0.7s var(--cdt-ease);
	transform-origin: center;
}

.cdt-sol:hover { transform: translateY(-5px); box-shadow: var(--cdt-shadow-lg); }
.cdt-sol:hover .wp-block-cover__image-background { transform: scale(1.07); }

/* Maroon veil, heavier at the reading edge so the text always has contrast. */
.cdt-sol .wp-block-cover__background {
	background: linear-gradient(
		to top,
		rgb(36 10 11 / 94%) 0%,
		rgb(61 16 16 / 78%) 42%,
		rgb(118 33 33 / 42%) 100%
	) !important;
	opacity: 1 !important;
	transition: opacity 0.32s var(--cdt-ease);
}

.cdt-sol__num {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	color: var(--cdt-gold);
}

body.is-ar .cdt-sol__num { letter-spacing: 0; font-size: 0.875rem; }

.cdt-sol__title {
	margin: 0 0 0.5rem;
	font-size: 1.1875rem;
	font-weight: 700;
	color: var(--cdt-white);
}

.cdt-sol__body {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: rgb(255 255 255 / 86%);
}

body.is-ar .cdt-sol__body { line-height: 1.85; }

/* ============================================================
   10. Industry chips
   ============================================================ */

.cdt-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cdt-chips li {
	display: inline-flex;
	align-items: center;
	padding: 0.6rem 1.15rem;
	background: var(--cdt-white);
	border: 1px solid var(--cdt-line);
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--cdt-ink);
	transition: border-color 0.22s var(--cdt-ease), color 0.22s var(--cdt-ease),
		transform 0.22s var(--cdt-ease), box-shadow 0.22s var(--cdt-ease);
}

.cdt-chips li::before {
	content: "";
	inline-size: 7px;
	block-size: 7px;
	margin-inline-end: 0.6rem;
	border-radius: 50%;
	background: var(--cdt-red);
	flex: 0 0 auto;
	transition: background-color 0.22s var(--cdt-ease), transform 0.22s var(--cdt-ease);
}

.cdt-chips li:hover {
	border-color: var(--cdt-maroon);
	color: var(--cdt-maroon);
	transform: translateY(-2px);
	box-shadow: var(--cdt-shadow-sm);
}

.cdt-chips li:hover::before { background: var(--cdt-gold); transform: scale(1.35); }

/* ============================================================
   11. Vision band (core/cover)
   ============================================================ */

.cdt-vision.wp-block-cover {
	min-block-size: 340px;
	padding: clamp(2.5rem, 6vw, 4.5rem) var(--cdt-gutter);
	border-radius: var(--cdt-radius-lg);
	overflow: hidden;
	text-align: center;
}

/* Light enough that the skyline still reads through, dark enough for AA text. */
.cdt-vision .wp-block-cover__background {
	background: linear-gradient(140deg, rgb(36 10 11 / 86%) 0%, rgb(118 33 33 / 70%) 100%) !important;
	opacity: 1 !important;
}

.cdt-vision .wp-block-cover__inner-container { max-inline-size: 62ch; margin-inline: auto; }

.cdt-vision__label {
	margin: 0 0 0.9rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--cdt-gold);
}

body.is-ar .cdt-vision__label { text-transform: none; letter-spacing: 0; font-size: 0.9375rem; }

.cdt-vision__text {
	margin: 0;
	font-size: clamp(1.15rem, 1rem + 0.85vw, 1.65rem);
	font-weight: 600;
	line-height: 1.55;
	color: var(--cdt-white);
}

body.is-ar .cdt-vision__text { line-height: 1.8; }

/* ============================================================
   12. Tagline band
   ============================================================ */

.cdt-tagline {
	position: relative;
	padding: 1.5rem var(--cdt-gutter);
	background: linear-gradient(120deg, var(--cdt-maroon) 0%, var(--cdt-maroon-deep) 100%);
	color: var(--cdt-white);
	border-radius: var(--cdt-radius-lg);
	text-align: center;
	overflow: hidden;
}

.cdt-tagline::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, rgb(255 255 255 / 10%) 1px, transparent 1px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(to var(--cdt-dir), #000, transparent 70%);
	mask-image: linear-gradient(to var(--cdt-dir), #000, transparent 70%);
}

.cdt-tagline p {
	position: relative;
	margin: 0;
	font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
	font-weight: 700;
	color: var(--cdt-white);
}

/* ============================================================
   13. Media + text split (core/media-text)
   ============================================================ */

.cdt-split.wp-block-media-text {
	gap: clamp(1.75rem, 4vw, 3.5rem);
	align-items: center;
}

/*
 * Gold offset frame around the photo.
 * Done with outline-offset rather than a positioned pseudo-element: the frame
 * is drawn outside the box without needing a z-index game, and it cannot be
 * clipped by the figure's own overflow.
 */
.cdt-split .wp-block-media-text__media {
	position: relative;
	border-radius: var(--cdt-radius-lg);
	overflow: hidden;
	box-shadow: var(--cdt-shadow);
	outline: 2px solid var(--cdt-gold);
	outline-offset: 14px;
	margin-inline: 16px;
	transition: outline-offset 0.35s var(--cdt-ease);
}

.cdt-split:hover .wp-block-media-text__media { outline-offset: 8px; }

.cdt-split .wp-block-media-text__media img { display: block; inline-size: 100%; }

.cdt-split .wp-block-media-text__content { padding: 0; }

@media (max-width: 780px) {
	.cdt-split .wp-block-media-text__media {
		outline-offset: 8px;
		margin-inline: 10px;
		margin-block-start: 1.5rem;
	}
}

/* ============================================================
   14. Tables
   ============================================================ */

.cdt-tablewrap {
	margin-block: 0;
	border: 1px solid var(--cdt-line);
	border-radius: var(--cdt-radius-lg);
	overflow: hidden;
}

.cdt-tablewrap > table,
.cdt-tablewrap table {
	inline-size: 100%;
	border-collapse: collapse;
	font-size: 1rem;
}

.cdt-tablewrap th,
.cdt-tablewrap td {
	padding: 0.9rem 1.15rem;
	text-align: start;
	vertical-align: top;
	border: 0;
	border-block-end: 1px solid var(--cdt-line);
	word-break: normal;
}

.cdt-tablewrap thead th {
	background: var(--cdt-maroon);
	color: var(--cdt-white);
	font-weight: 700;
	border-block-end: 0;
	font-size: 0.9375rem;
	letter-spacing: 0.02em;
}

.cdt-tablewrap tbody tr { transition: background-color 0.18s var(--cdt-ease); }
.cdt-tablewrap tbody tr:nth-child(even) td { background: var(--cdt-offwhite); }
.cdt-tablewrap tbody tr:hover td { background: rgb(194 161 90 / 14%); }
.cdt-tablewrap tbody tr:last-child td { border-block-end: 0; }

/* Label-column table (registration details) — maroon first cell, as in the deck. */
.cdt-table--defs tbody td:first-child {
	inline-size: 34%;
	min-inline-size: 190px;
	background: var(--cdt-maroon);
	color: var(--cdt-white);
	font-weight: 700;
	border-block-end: 1px solid rgb(255 255 255 / 18%);
}

.cdt-table--defs tbody tr:nth-child(even) td:first-child,
.cdt-table--defs tbody tr:hover td:first-child { background: var(--cdt-maroon); }
.cdt-table--defs tbody tr:last-child td:first-child { border-block-end: 0; }

.wp-block-table { margin-block: 0; }
.wp-block-table td, .wp-block-table th { border: 0; }

/* ============================================================
   15. Contact CTA
   ============================================================ */

.cdt-cta {
	position: relative;
	padding: clamp(2.25rem, 5vw, 3.5rem);
	border-radius: var(--cdt-radius-lg);
	background:
		radial-gradient(90% 120% at 88% 0%, rgb(200 40 40 / 30%) 0%, transparent 60%),
		linear-gradient(140deg, var(--cdt-maroon) 0%, var(--cdt-maroon-ink) 100%);
	color: var(--cdt-white);
	overflow: hidden;
}

.cdt-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, rgb(255 255 255 / 9%) 1px, transparent 1px);
	background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(70% 100% at 100% 0%, #000, transparent 75%);
	mask-image: radial-gradient(70% 100% at 100% 0%, #000, transparent 75%);
	pointer-events: none;
}

.cdt-cta > * { position: relative; }

.cdt-cta h2 { color: var(--cdt-white); }

/* The default rule is maroon-into-gold, which loses its first half on a maroon
   panel. Swap the maroon for gold and tail off into white. */
.cdt-cta .cdt-heading__rule {
	inline-size: 88px;
	background: linear-gradient(to var(--cdt-dir),
		var(--cdt-gold) 0 58%, rgb(255 255 255 / 45%) 58% 100%);
}

.cdt-cta__grid {
	display: grid;
	gap: 1.5rem 2rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
	margin-block-start: 2rem;
}

.cdt-cta .cdt-fact__label { color: var(--cdt-gold); }
.cdt-cta .cdt-fact__value { color: var(--cdt-white); }

.cdt-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-block-start: 2.25rem;
}

.cdt-cta .cdt-btn--ghost,
.cdt-cta .wp-block-button.cdt-btn--ghost > .wp-block-button__link {
	border-color: rgb(255 255 255 / 55%);
	color: var(--cdt-white);
}

.cdt-cta .cdt-btn--ghost:hover,
.cdt-cta .wp-block-button.cdt-btn--ghost > .wp-block-button__link:hover {
	background: rgb(255 255 255 / 12%);
	border-color: var(--cdt-white);
	color: var(--cdt-white);
}

/* ============================================================
   15b. Inner-page components
   ============================================================ */

/* ------- Page hero (every page except Home) ------- */

.cdt-pagehero {
	position: relative;
	isolation: isolate;
	padding-block: clamp(2.5rem, 5.5vw, 4.5rem);
	background:
		radial-gradient(64% 70% at 78% 22%, rgb(158 48 48 / 55%) 0%, transparent 70%),
		linear-gradient(152deg, var(--cdt-maroon-light) 0%, #6b1f1f 46%, var(--cdt-maroon-deep) 100%);
	color: var(--cdt-white);
	overflow: hidden;
}

.cdt-pagehero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(circle, rgb(255 255 255 / 10%) 1px, transparent 1px);
	background-size: 30px 30px;
	-webkit-mask-image: radial-gradient(74% 76% at 50% 32%, #000, transparent 84%);
	mask-image: radial-gradient(74% 76% at 50% 32%, #000, transparent 84%);
}

.cdt-pagehero::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	block-size: 3px;
	background: linear-gradient(to var(--cdt-dir),
		var(--cdt-maroon) 0%, var(--cdt-gold) 42%, var(--cdt-red) 72%, var(--cdt-maroon) 100%);
}

.cdt-pagehero .cdt-eyebrow { color: var(--cdt-gold); }

.cdt-pagehero__title {
	margin-block-end: 1rem;
	color: var(--cdt-white);
	font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
	max-inline-size: 22ch;
}

.cdt-pagehero__lead {
	max-inline-size: 62ch;
	font-size: clamp(1rem, 0.96rem + 0.3vw, 1.125rem);
	color: rgb(255 255 255 / 84%);
}

/* ------- Panel: a bordered content block ------- */

.cdt-panel {
	padding: 1.75rem;
	background: var(--cdt-white);
	border: 1px solid var(--cdt-line);
	border-block-start: 3px solid var(--cdt-maroon);
	border-radius: var(--cdt-radius-lg);
}

.cdt-panel > *:last-child { margin-block-end: 0; }
.cdt-panel h3 { margin-block-end: 0.75rem; }
.cdt-panel h4 {
	margin-block: 1.25rem 0.6rem;
	color: var(--cdt-maroon);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

body.is-ar .cdt-panel h4 { text-transform: none; letter-spacing: 0; font-size: 0.9375rem; }

.cdt-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }

/* ------- Note / callout, mirroring the deck's tinted boxes ------- */

.cdt-note {
	margin-block-start: 1.25rem;
	padding: 1rem 1.25rem;
	background: var(--cdt-offwhite);
	border-inline-start: 4px solid var(--cdt-maroon);
	border-radius: 0 var(--cdt-radius) var(--cdt-radius) 0;
	font-size: 0.9688rem;
}

body.is-ar .cdt-note { border-radius: var(--cdt-radius) 0 0 var(--cdt-radius); }
.cdt-note strong { color: var(--cdt-maroon); }

/* ------- Solution detail block ------- */

.cdt-solblock__num {
	margin: 0 0 0.4rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	color: var(--cdt-gold-text);
}

body.is-ar .cdt-solblock__num { letter-spacing: 0; font-size: 0.9375rem; }

/* ------- Industry tiles ------- */

.cdt-grid--tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

.cdt-tile {
	display: flex;
	align-items: center;
	min-block-size: 96px;
	padding: 1.25rem 1.4rem;
	background: var(--cdt-white);
	border: 1px solid var(--cdt-line);
	border-radius: var(--cdt-radius-lg);
	border-inline-start: 4px solid var(--cdt-maroon);
	transition: transform 0.26s var(--cdt-ease), box-shadow 0.26s var(--cdt-ease),
		border-color 0.26s var(--cdt-ease);
}

.cdt-tile:hover {
	transform: translateY(-4px);
	border-inline-start-color: var(--cdt-gold);
	box-shadow: var(--cdt-shadow);
}

.cdt-tile__title {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--cdt-maroon);
}

/* ------- Certificate ------- */

.cdt-certificate {
	padding: clamp(1rem, 3vw, 2rem);
	background: var(--cdt-white);
	border: 1px solid var(--cdt-line);
	border-radius: var(--cdt-radius-lg);
	box-shadow: var(--cdt-shadow-sm);
}

.cdt-certificate figure { margin: 0; }
.cdt-certificate img { display: block; inline-size: 100%; border-radius: var(--cdt-radius); }

/* ------- Director's message ------- */

.cdt-quote {
	position: relative;
	max-inline-size: 68ch;
	padding: clamp(1.75rem, 4vw, 2.75rem);
	padding-inline-start: clamp(2rem, 5vw, 3.5rem);
	background: var(--cdt-offwhite);
	border-radius: var(--cdt-radius-lg);
	border-inline-start: 4px solid var(--cdt-maroon);
}

.cdt-quote__name {
	margin: 0 0 0.15rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--cdt-maroon);
}

.cdt-quote__role {
	margin: 0 0 1.5rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cdt-gold-text);
}

body.is-ar .cdt-quote__role { text-transform: none; letter-spacing: 0; font-size: 0.9375rem; }

/* ------- Numbered journey steps ------- */

.cdt-steps { counter-reset: cdt-step; display: grid; gap: 0.85rem; }

.cdt-step {
	counter-increment: cdt-step;
	position: relative;
	padding: 1.1rem 1.4rem;
	padding-inline-start: 3.75rem;
	background: var(--cdt-white);
	border: 1px solid var(--cdt-line);
	border-radius: var(--cdt-radius-lg);
	transition: transform 0.22s var(--cdt-ease), box-shadow 0.22s var(--cdt-ease);
}

.cdt-step::before {
	content: counter(cdt-step);
	position: absolute;
	inset-inline-start: 1.15rem;
	inset-block-start: 1.05rem;
	display: grid;
	place-items: center;
	inline-size: 30px;
	block-size: 30px;
	border-radius: 50%;
	background: var(--cdt-maroon);
	color: var(--cdt-white);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1;
}

.cdt-step:hover { transform: translateY(-2px); box-shadow: var(--cdt-shadow-sm); }
.cdt-step p { margin: 0; }

/* ------- Entry-requirements table needs more room per cell ------- */

.cdt-table--entry { overflow-x: auto; }
.cdt-table--entry td:first-child { white-space: nowrap; }

@media (max-width: 820px) {
	.cdt-table--entry table { min-inline-size: 720px; }
}

/* ============================================================
   16. Lists
   ============================================================ */

.cdt-list { margin: 0; padding-inline-start: 0; list-style: none; }

.cdt-list li {
	position: relative;
	padding-inline-start: 1.75rem;
	margin-block-end: 0.7rem;
}

.cdt-list li:last-child { margin-block-end: 0; }

.cdt-list li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 0.62em;
	inline-size: 9px;
	block-size: 9px;
	border: 2px solid var(--cdt-gold);
	border-radius: 50%;
}

/* ============================================================
   17. Footer
   ============================================================ */

.cdt-footer {
	/* No top margin: the last section already carries its own bottom padding. */
	margin-block-start: 0;
	background: var(--cdt-maroon-ink);
	color: rgb(255 255 255 / 76%);
	font-size: 0.9375rem;
}

.cdt-footer::before {
	content: "";
	display: block;
	block-size: 3px;
	background: linear-gradient(to var(--cdt-dir),
		var(--cdt-maroon) 0%, var(--cdt-gold) 42%, var(--cdt-red) 72%, var(--cdt-maroon) 100%);
}

.cdt-footer__grid {
	display: grid;
	gap: 2.25rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	padding-block: 3.25rem 2.25rem;
}

.cdt-footer h2 {
	margin: 0 0 0.9rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: var(--cdt-gold);
	text-transform: uppercase;
}

body.is-ar .cdt-footer h2 { text-transform: none; letter-spacing: 0; font-size: 0.9375rem; }

.cdt-footer a { color: rgb(255 255 255 / 86%); text-decoration: none; }
.cdt-footer a:hover { color: var(--cdt-gold); text-decoration: underline; }

.cdt-footer ul { margin: 0; padding: 0; list-style: none; }
.cdt-footer li { margin-block-end: 0.55rem; }

.cdt-footer__brand { display: flex; align-items: center; gap: 0.85rem; margin-block-end: 1rem; }
.cdt-footer__brand img { inline-size: 54px; block-size: 54px; }
.cdt-footer__name { font-weight: 700; color: var(--cdt-white); line-height: 1.3; }

.cdt-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	align-items: center;
	justify-content: space-between;
	padding-block: 1.35rem;
	border-block-start: 1px solid rgb(255 255 255 / 12%);
	font-size: 0.8125rem;
	color: rgb(255 255 255 / 58%);
}

/* ============================================================
   18. Language modal
   ============================================================ */

.cdt-langmodal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: rgb(20 6 7 / 76%);
	backdrop-filter: blur(4px);
	opacity: 0;
	animation: cdt-fade 0.3s var(--cdt-ease) forwards;
}

@keyframes cdt-fade { to { opacity: 1; } }

.cdt-langmodal__box {
	inline-size: min(100%, 430px);
	padding: 2.4rem 2rem 2rem;
	background: var(--cdt-white);
	border-block-start: 5px solid var(--cdt-maroon);
	border-radius: var(--cdt-radius-lg);
	box-shadow: var(--cdt-shadow-lg);
	text-align: center;
	transform: translateY(14px) scale(.98);
	animation: cdt-pop 0.4s var(--cdt-ease) 0.05s forwards;
}

@keyframes cdt-pop { to { transform: none; } }

.cdt-langmodal__mark { inline-size: 92px; block-size: 92px; margin-inline: auto; margin-block-end: 1rem; }

.cdt-langmodal__title {
	margin: 0 0 0.1rem;
	font-family: var(--cdt-font);
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--cdt-maroon);
}

.cdt-langmodal__title--ar {
	font-family: var(--cdt-font-ar);
	direction: rtl;
	margin-block-end: 1.6rem;
}

.cdt-langmodal__options { display: grid; gap: 0.75rem; }

.cdt-langmodal__btn {
	display: block;
	padding: 0.9rem 1.25rem;
	border: 2px solid var(--cdt-maroon);
	border-radius: var(--cdt-radius);
	background: var(--cdt-white);
	color: var(--cdt-maroon);
	font-size: 1.0625rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s var(--cdt-ease), color 0.2s var(--cdt-ease);
}

.cdt-langmodal__btn:hover,
.cdt-langmodal__btn:focus-visible { background: var(--cdt-maroon); color: var(--cdt-white); }

.cdt-langmodal__btn[data-lang="ar"] { font-family: var(--cdt-font-ar); direction: rtl; }

/* ============================================================
   19. Scroll reveal
   ------------------------------------------------------------
   JS adds .cdt-reveal to eligible blocks and .is-in once they enter
   the viewport. If JS never runs, nothing is hidden — the content is
   visible by default and only the class opts it into animating.
   ============================================================ */

.cdt-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s var(--cdt-ease), transform 0.6s var(--cdt-ease);
	transition-delay: calc(var(--cdt-stagger, 0) * 70ms);
	will-change: opacity, transform;
}

.cdt-reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   19b. Inner-page components
   ============================================================ */

/* ------- Page hero (every page except Home) ------- */

.cdt-pagehero {
	position: relative;
	isolation: isolate;
	padding-block: clamp(2.75rem, 6vw, 4.5rem);
	background:
		radial-gradient(65% 85% at 78% 20%, rgb(158 48 48 / 55%) 0%, transparent 68%),
		linear-gradient(152deg, var(--cdt-maroon-light) 0%, #6b1f1f 45%, var(--cdt-maroon-deep) 100%);
	color: var(--cdt-white);
	overflow: hidden;
}

.cdt-pagehero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(circle, rgb(255 255 255 / 12%) 1px, transparent 1px);
	background-size: 28px 28px;
	-webkit-mask-image: radial-gradient(75% 100% at 30% 0%, #000, transparent 80%);
	mask-image: radial-gradient(75% 100% at 30% 0%, #000, transparent 80%);
}

.cdt-pagehero::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	block-size: 3px;
	background: linear-gradient(to var(--cdt-dir),
		var(--cdt-maroon) 0%, var(--cdt-gold) 42%, var(--cdt-red) 72%, var(--cdt-maroon) 100%);
}

.cdt-pagehero__title { color: var(--cdt-white); margin-block-end: 0.85rem; }

.cdt-pagehero__lead {
	max-inline-size: 66ch;
	font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
	color: rgb(255 255 255 / 84%);
}

/* ------- Panel: a bordered content block for paired/grouped detail ------- */

.cdt-panel {
	padding: 1.75rem;
	background: var(--cdt-white);
	border: 1px solid var(--cdt-line);
	border-radius: var(--cdt-radius-lg);
}

.cdt-section--tint .cdt-panel { background: var(--cdt-white); }

.cdt-panel h3 { margin-block-end: 0.75rem; }
.cdt-panel h4 {
	margin-block: 1.1rem 0.6rem;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--cdt-ink);
}

.cdt-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }

/* ------- Note / callout: the deck's "Why do it" and "Accelerated" boxes ------- */

.cdt-note {
	margin-block-start: 1.25rem;
	padding: 1rem 1.25rem;
	background: var(--cdt-offwhite);
	border-inline-start: 3px solid var(--cdt-gold);
	border-radius: 0 var(--cdt-radius) var(--cdt-radius) 0;
	font-size: 0.9375rem;
	color: var(--cdt-ink);
}

.cdt-panel .cdt-note { background: var(--cdt-offwhite); }

.cdt-note strong { color: var(--cdt-maroon); }

/* ------- Tiles: industries grid ------- */

.cdt-grid--tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.cdt-tile {
	position: relative;
	padding: 1.5rem 1.4rem;
	background: var(--cdt-white);
	border: 1px solid var(--cdt-line);
	border-radius: var(--cdt-radius-lg);
	overflow: hidden;
	transition: transform 0.26s var(--cdt-ease), box-shadow 0.26s var(--cdt-ease);
}

.cdt-tile::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block: 0;
	inline-size: 3px;
	background: linear-gradient(var(--cdt-maroon), var(--cdt-gold));
	transform: scaleY(0);
	transform-origin: bottom;
	transition: transform 0.3s var(--cdt-ease);
}

.cdt-tile:hover { transform: translateY(-3px); box-shadow: var(--cdt-shadow); }
.cdt-tile:hover::before { transform: scaleY(1); }

.cdt-tile__title { margin: 0; font-size: 1.0625rem; color: var(--cdt-maroon); }

/* ------- Solution detail block (Solutions page) ------- */

.cdt-solblock { scroll-margin-block-start: 110px; }

.cdt-solblock__num {
	margin: 0 0 0.4rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	color: var(--cdt-gold-text);
}

body.is-ar .cdt-solblock__num { letter-spacing: 0; font-size: 0.9375rem; }

/* ------- Quote / message block (Academic Leadership) ------- */

.cdt-quote {
	position: relative;
	max-inline-size: 72ch;
	padding: 2rem 2.25rem;
	background: var(--cdt-offwhite);
	border-inline-start: 4px solid var(--cdt-maroon);
	border-radius: 0 var(--cdt-radius-lg) var(--cdt-radius-lg) 0;
}

.cdt-quote__name {
	margin: 0;
	font-size: 1.1875rem;
	font-weight: 700;
	color: var(--cdt-maroon);
}

.cdt-quote__role {
	margin: 0 0 1.25rem;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cdt-gold-text);
}

body.is-ar .cdt-quote__role { text-transform: none; letter-spacing: 0; }

.cdt-quote p { margin-block-end: 1rem; }
.cdt-quote p:last-child { margin-block-end: 0; }

/* ------- Steps: the illustrative student-journey list ------- */

.cdt-steps { counter-reset: cdt-step; display: grid; gap: 0.9rem; max-inline-size: 68ch; }

.cdt-step {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.1rem 1.3rem;
	background: var(--cdt-white);
	border: 1px solid var(--cdt-line);
	border-radius: var(--cdt-radius);
}

.cdt-step::before {
	counter-increment: cdt-step;
	content: counter(cdt-step);
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	inline-size: 30px;
	block-size: 30px;
	border-radius: 50%;
	background: var(--cdt-maroon);
	color: var(--cdt-white);
	font-size: 0.875rem;
	font-weight: 700;
}

.cdt-step p { margin: 0; padding-block-start: 0.15rem; }

/* ------- Certificate frame (About page) ------- */

.cdt-certificate {
	max-inline-size: 760px;
	margin-inline: auto;
	padding: 10px;
	background: var(--cdt-white);
	border: 1px solid var(--cdt-line);
	border-radius: var(--cdt-radius-lg);
	box-shadow: var(--cdt-shadow);
}

.cdt-certificate img { display: block; border-radius: 2px; }

/* ============================================================
   19c. Admission form
   ============================================================ */

.cdt-form-wrap { max-inline-size: 760px; }

.cdt-alert {
	margin-block-end: 1.5rem;
	padding: 1rem 1.25rem;
	border-radius: var(--cdt-radius);
	font-size: 0.9688rem;
	font-weight: 600;
}

.cdt-alert--success {
	background: rgb(46 125 50 / 10%);
	border-inline-start: 3px solid #2e7d32;
	color: #1b5e20;
}

.cdt-alert--error {
	background: rgb(198 40 40 / 8%);
	border-inline-start: 3px solid #c62828;
	color: #8e1c1c;
}

/* Honeypot: off-screen but present in the DOM and tab order excluded, so it
   fools bots (which fill every visible-to-them field) without confusing
   assistive tech (aria-hidden + tabindex="-1" on the field itself). */
.cdt-form__trap {
	position: absolute;
	inset-inline-start: -9999px;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
}

.cdt-form__grid {
	display: grid;
	gap: 1.1rem;
	grid-template-columns: repeat(2, 1fr);
	margin-block-end: 1.5rem;
}

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

.cdt-field { display: flex; flex-direction: column; gap: 0.4rem; }

.cdt-field label {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--cdt-ink);
}

.cdt-field__req { color: var(--cdt-red); }

.cdt-field input[type="text"],
.cdt-field input[type="email"],
.cdt-field input[type="tel"],
.cdt-field select,
.cdt-field textarea {
	inline-size: 100%;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--cdt-line);
	border-radius: var(--cdt-radius);
	background: var(--cdt-white);
	color: var(--cdt-ink);
	font: inherit;
	font-size: 0.9688rem;
	line-height: 1.5;
	transition: border-color 0.18s var(--cdt-ease), box-shadow 0.18s var(--cdt-ease);
}

.cdt-field textarea { resize: vertical; min-block-size: 6rem; }

.cdt-field input:focus-visible,
.cdt-field select:focus-visible,
.cdt-field textarea:focus-visible {
	outline: none;
	border-color: var(--cdt-maroon);
	box-shadow: 0 0 0 3px rgb(118 33 33 / 14%);
}

.cdt-field select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235e5a58' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.85rem center;
	padding-inline-end: 2.4rem;
}

body.is-ar .cdt-field select { background-position: left 0.85rem center; }

.cdt-field--check label {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-weight: 500;
	font-size: 0.9375rem;
	cursor: pointer;
}

.cdt-field--check input[type="checkbox"] {
	inline-size: 18px;
	block-size: 18px;
	flex: 0 0 auto;
	margin-block-start: 0.15rem;
	accent-color: var(--cdt-maroon);
}

.cdt-form button.cdt-btn {
	border: 2px solid var(--cdt-maroon);
	background: var(--cdt-maroon);
	color: var(--cdt-white);
	cursor: pointer;
}

.cdt-form button.cdt-btn:hover {
	background: var(--cdt-maroon-dark);
	border-color: var(--cdt-maroon-dark);
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgb(118 33 33 / 26%);
}

@media (max-width: 640px) {
	.cdt-form__grid { grid-template-columns: 1fr; }
	.cdt-form button.cdt-btn { inline-size: 100%; }
}

/* ============================================================
   20. Core-block bridge
   ============================================================ */

.cdt-grid > *,
.cdt-chips > *,
.cdt-strip__grid > *,
.cdt-cta__grid > *,
.cdt-solutions > * { margin-block: 0; }

.cdt-section > .cdt-shell > *:not(:last-child) { margin-block-end: 1.75rem; }

.cdt-hero .wp-block-image,
.cdt-hero figure { margin-block: 0; }

.cdt-hero__actions .wp-block-buttons,
.cdt-cta__actions .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin: 0;
}

@media (max-width: 900px) {
	.cdt-hero__actions .wp-block-buttons { justify-content: center; }
}

/* ============================================================
   21. Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.cdt-reveal { opacity: 1; transform: none; }
	.cdt-hero__mark,
	.cdt-hero__visual::before,
	.cdt-hero__visual::after { animation: none; }
	.cdt-card:hover,
	.cdt-sol:hover,
	.cdt-chips li:hover,
	.cdt-btn:hover { transform: none; }
}

/* ============================================================
   22. Print
   ============================================================ */

@media print {
	.cdt-header,
	.cdt-footer,
	.cdt-langmodal,
	.cdt-hero__actions,
	.cdt-cta__actions { display: none !important; }

	body { font-size: 11pt; }
	.cdt-reveal { opacity: 1 !important; transform: none !important; }

	.cdt-hero,
	.cdt-strip,
	.cdt-cta,
	.cdt-tagline,
	.cdt-sol,
	.cdt-vision {
		background: #fff !important;
		color: #000 !important;
		border: 1px solid var(--cdt-maroon);
	}

	.cdt-hero__title,
	.cdt-sol__title,
	.cdt-vision__text,
	.cdt-fact__value { color: #000 !important; }
}
