/**
 * AAEI Starter — theme styles (design v2: renovated modern).
 * Palette: ink #111110, ivory #F7F4EF, sand #ECE5DA, taupe #B29F8D, bronze #7E6650.
 * Type: Instrument Serif (display), Inter (text), IBM Plex Sans Arabic (Arabic).
 * Logical properties throughout so English (LTR) and Arabic (RTL) share one stylesheet.
 */

/* ---------- Fonts (bundled, no third-party requests) ---------- */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); }

@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-700.woff2") format("woff2"); }

/* ---------- Tokens ---------- */

:root {
	--aaei-ink: #111110;
	--aaei-ink-2: #1c1b19;
	--aaei-ivory: #f7f4ef;
	--aaei-white: #fff;
	--aaei-sand: #ece5da;
	--aaei-sand-2: #e2d8ca;
	--aaei-taupe: #b29f8d;
	--aaei-taupe-light: #e3d4c4;
	--aaei-bronze: #7e6650;
	--aaei-muted: #6b6560;
	--aaei-line: rgba(17, 17, 16, 0.12);
	--aaei-line-light: rgba(255, 255, 255, 0.14);
	--aaei-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
	--aaei-font: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
	--aaei-r-lg: 32px;
	--aaei-r-md: 22px;
	--aaei-container: 1280px;
	--aaei-gutter: 32px;
	--aaei-header-h: 68px;
	--aaei-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--aaei-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--aaei-arrow-ur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
	--aaei-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

@media (max-width: 767px) {
	:root {
		--aaei-gutter: 20px;
		--aaei-r-lg: 24px;
		--aaei-header-h: 60px;
	}
}

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

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 110px;
}

body {
	margin: 0;
	font-family: var(--aaei-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--aaei-ink);
	background: var(--aaei-ivory);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s var(--aaei-ease);
}

a:hover {
	color: var(--aaei-bronze);
}

:focus-visible {
	outline: 2px solid var(--aaei-taupe);
	outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-family: var(--aaei-serif);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.015em;
	color: var(--aaei-ink);
}

p {
	margin: 0 0 1em;
}

em {
	font-style: italic;
}

::selection {
	background: var(--aaei-taupe);
	color: var(--aaei-ink);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 12px;
	inset-inline-start: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 12px 18px;
	clip: auto;
	background: var(--aaei-ink);
	color: var(--aaei-white);
	border-radius: 999px;
}

.container {
	width: 100%;
	max-width: calc(var(--aaei-container) + 2 * var(--aaei-gutter));
	margin-inline: auto;
	padding-inline: var(--aaei-gutter);
}

.container--narrow {
	max-width: calc(820px + 2 * var(--aaei-gutter));
}

.section-pad {
	padding-block: clamp(64px, 9vw, 140px);
}

.eyebrow {
	margin-bottom: 0.6em;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--aaei-bronze);
}

.display {
	font-family: var(--aaei-serif);
	font-size: clamp(56px, 9vw, 132px);
	line-height: 0.92;
}

.lead {
	font-size: 19px;
	color: var(--aaei-muted);
	max-width: 560px;
}

/* Theme buttons (non-Elementor templates, forms, search) */
.btn,
button.btn,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 52px;
	padding: 0 26px;
	border: 0;
	border-radius: 999px;
	background: var(--aaei-ink);
	color: var(--aaei-white);
	font: 600 15px/1 var(--aaei-font);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s var(--aaei-ease), color 0.2s var(--aaei-ease), transform 0.2s var(--aaei-ease);
}

.btn:hover,
button.btn:hover,
input[type="submit"]:hover {
	background: var(--aaei-bronze);
	color: var(--aaei-white);
}

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

.more-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 4px;
	border-bottom: 1px solid currentColor;
	font-size: 15px;
	font-weight: 600;
	color: var(--aaei-ink);
	text-decoration: none;
}

/* ---------- Header: floating pill ---------- */

.site-header {
	position: sticky;
	top: 16px;
	z-index: 100;
	padding-top: 16px;
	pointer-events: none;
}

.admin-bar .site-header {
	top: calc(16px + 32px);
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: calc(12px + 46px);
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 12px;
	}
}

/* When a page starts with an inset hero, the header floats over it. */
body:has(.aaei-overlap) .site-header {
	margin-bottom: calc(-1 * (var(--aaei-header-h) + 16px));
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--aaei-header-h);
	padding-block: 0;
	padding-inline: 26px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.86);
	-webkit-backdrop-filter: saturate(150%) blur(16px);
	backdrop-filter: saturate(150%) blur(16px);
	box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.35);
	pointer-events: auto;
	max-width: calc(var(--aaei-container));
}

.site-header > .container {
	pointer-events: none;
}

.site-header__brand {
	flex: 0 0 auto;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--aaei-ink);
}

.site-logo img {
	display: block;
	width: auto;
	max-height: 44px;
}

.site-title {
	font-size: 21px;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1;
}

.site-header__panel {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.main-nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
}

.main-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-menu {
	display: flex;
	align-items: center;
	gap: 28px;
}

.main-menu > li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 2px;
}

body .site-header .main-menu a {
	display: block;
	padding-block: 22px;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--aaei-ink);
	text-decoration: none;
	white-space: nowrap;
}

body .site-header .main-menu a:hover,
body .site-header .main-menu .current-menu-item > a,
body .site-header .main-menu .current-menu-ancestor > a,
body .site-header .main-menu .current_page_item > a {
	color: var(--aaei-bronze);
}

.submenu-toggle {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: currentColor;
	cursor: pointer;
	transition: transform 0.2s var(--aaei-ease);
}

.main-menu .sub-menu {
	position: absolute;
	top: calc(100% - 6px);
	inset-inline-start: -18px;
	z-index: 10;
	min-width: 290px;
	padding: 10px;
	background: var(--aaei-white);
	border-radius: var(--aaei-r-md);
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.28);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s var(--aaei-ease), transform 0.18s var(--aaei-ease), visibility 0.18s;
}

.main-menu .sub-menu .sub-menu {
	top: 0;
	inset-inline-start: 100%;
}

.main-menu .sub-menu li {
	position: relative;
}

body .site-header .main-menu .sub-menu a {
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 14px;
	white-space: normal;
}

body .site-header .main-menu .sub-menu a:hover {
	background: var(--aaei-ivory);
	color: var(--aaei-ink);
}

@media (min-width: 1101px) {
	.main-menu li:hover > .sub-menu,
	.main-menu li:focus-within > .sub-menu,
	.main-menu li.is-open > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.main-menu li:hover > .submenu-toggle,
	.main-menu li.is-open > .submenu-toggle {
		transform: rotate(180deg);
	}
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

body .site-header .lang-switch {
	display: inline-grid;
	place-items: center;
	height: 44px;
	padding: 0 18px;
	border: 1px solid var(--aaei-line);
	border-radius: 999px;
	font-size: 14px;
	line-height: 1;
	color: var(--aaei-ink);
	text-decoration: none;
	transition: background-color 0.2s var(--aaei-ease);
}

body .site-header .lang-switch:hover {
	background: var(--aaei-ivory);
	color: var(--aaei-ink);
}

.lang-switch:lang(ar) {
	font-family: "IBM Plex Sans Arabic", var(--aaei-font);
}

body .site-header .header-cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	height: 48px;
	padding-inline: 22px 7px;
	border-radius: 999px;
	background: var(--aaei-ink);
	color: var(--aaei-white);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s var(--aaei-ease);
}

body .site-header .header-cta:hover {
	background: var(--aaei-ink-2);
	color: var(--aaei-white);
}

.chip-arrow {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--aaei-taupe);
	color: var(--aaei-ink);
}

.chip-arrow::before {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: var(--aaei-arrow) center / contain no-repeat;
	mask: var(--aaei-arrow) center / contain no-repeat;
}

[dir="rtl"] .chip-arrow::before {
	transform: scaleX(-1);
}

.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--aaei-ink);
	cursor: pointer;
}

.menu-toggle__bars {
	display: grid;
	gap: 5px;
	width: 16px;
	margin: auto;
}

.menu-toggle__bars span {
	display: block;
	height: 1.75px;
	background: var(--aaei-white);
	transition: transform 0.2s var(--aaei-ease), opacity 0.2s;
}

.menu-toggle__bars span:nth-child(2) {
	display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) {
	transform: translateY(3.4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) {
	transform: translateY(-3.4px) rotate(-45deg);
}

@media (max-width: 1100px) {
	.menu-toggle {
		display: block;
		order: 3;
	}

	.site-header__inner {
		padding-inline: 20px 8px;
		gap: 10px;
	}

	.site-header__brand {
		margin-inline-end: auto;
	}

	.site-header__panel {
		position: fixed;
		inset: 0;
		z-index: -1;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 28px;
		padding: calc(var(--aaei-header-h) + 52px) var(--aaei-gutter) 40px;
		background: var(--aaei-ivory);
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.2s var(--aaei-ease), transform 0.2s var(--aaei-ease), visibility 0.2s;
		pointer-events: auto;
	}

	.site-header.is-open .site-header__panel {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.main-nav {
		justify-content: flex-start;
	}

	.main-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	.main-menu > li,
	.main-menu .sub-menu li {
		flex-wrap: wrap;
		justify-content: space-between;
		border-block-end: 1px solid var(--aaei-line);
	}

	body .site-header .main-menu a {
		flex: 1 1 auto;
		padding-block: 16px;
		font-family: var(--aaei-serif);
		font-size: 30px;
		line-height: 1.1;
	}

	.submenu-toggle {
		width: 44px;
		height: 44px;
	}

	.main-menu li.is-open > .submenu-toggle {
		transform: rotate(180deg);
	}

	.main-menu .sub-menu {
		position: static;
		flex-basis: 100%;
		display: none;
		min-width: 0;
		padding: 0 0 10px;
		background: transparent;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.main-menu li.is-open > .sub-menu {
		display: block;
	}

	.main-menu .sub-menu li {
		border: 0;
	}

	body .site-header .main-menu .sub-menu a {
		padding: 8px 0;
		font-family: var(--aaei-font);
		font-size: 16px;
		color: var(--aaei-muted);
	}

	.site-header__actions {
		order: 2;
	}

	.site-header__actions .header-cta {
		display: none !important;
	}

	.site-header__panel .panel-cta {
		display: inline-flex;
		align-self: flex-start;
	}

	body.menu-open {
		overflow: hidden;
	}
}

@media (min-width: 1101px) {
	body .site-header .site-header__panel .panel-cta {
		display: none;
	}
}

/* ---------- Footer: rounded dark card ---------- */

.site-footer {
	margin: 16px;
	padding-block: clamp(64px, 7vw, 96px) 34px;
	border-radius: var(--aaei-r-lg);
	background: var(--aaei-ink);
	color: var(--aaei-white);
	font-size: 15px;
	overflow: hidden;
}

body .site-footer a,
body .site-footer .social-links a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}

body .site-footer a:hover {
	color: var(--aaei-taupe-light);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.25fr 1fr 0.9fr;
	gap: 40px;
	padding-bottom: 64px;
}

.site-footer .site-logo img {
	max-height: 50px;
}

.site-footer .site-logo.is-inverted img {
	filter: brightness(0) invert(1);
}

.site-footer .site-title {
	color: var(--aaei-white);
}

.footer-about {
	max-width: 310px;
	margin: 18px 0 26px;
	color: rgba(255, 255, 255, 0.6);
}

.footer-heading {
	margin: 0 0 20px;
	font-family: var(--aaei-font);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--aaei-taupe);
}

.footer-nav ul,
.footer-contact {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-nav li,
.footer-contact li {
	margin-bottom: 12px;
	line-height: 1.45;
}

body .site-footer .footer-cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	height: 50px;
	padding-inline: 22px 7px;
	border: 1px solid var(--aaei-line-light);
	border-radius: 999px;
	color: var(--aaei-white);
	font-weight: 600;
	font-size: 14px;
}

body .site-footer .footer-cta:hover {
	border-color: var(--aaei-taupe);
	color: var(--aaei-white);
}

.footer-wordmark {
	margin: 0 0 8px;
	font-family: var(--aaei-serif);
	font-size: clamp(64px, 17vw, 250px);
	line-height: 0.82;
	letter-spacing: -0.03em;
	color: rgba(255, 255, 255, 0.08);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: clip;
	user-select: none;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 26px;
	border-top: 1px solid var(--aaei-line-light);
	color: rgba(255, 255, 255, 0.5);
	font-size: 13px;
}

.site-footer__bottom p {
	margin: 0;
}

.social-links {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social-links a {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--aaei-line-light);
	border-radius: 50%;
	transition: background-color 0.2s, border-color 0.2s;
}

.social-links a:hover {
	border-color: var(--aaei-taupe);
}

.social-links svg {
	width: 17px;
	height: 17px;
}

.site-footer__badge img {
	display: block;
	max-height: 64px;
	width: auto;
}

@media (max-width: 1024px) {
	.site-footer__grid {
		grid-template-columns: 1fr 1fr 1fr;
	}

	.footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.site-footer {
		margin: 10px;
	}

	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 36px 20px;
		padding-bottom: 40px;
	}
}

/* ---------- Non-Elementor content ---------- */

.page-banner {
	padding-block: clamp(64px, 8vw, 110px) clamp(32px, 4vw, 56px);
}

.page-banner__title {
	margin: 0;
	font-size: clamp(56px, 8vw, 112px);
	line-height: 0.92;
}

.page-banner__subtitle {
	margin: 16px 0 0;
	color: var(--aaei-muted);
}

.entry-content {
	font-size: 17px;
	line-height: 1.75;
}

.entry-content > * + * {
	margin-top: 1.1em;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 1.4em;
}

.entry-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--aaei-r-lg);
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 40px 20px;
}

.card {
	padding: 10px;
	border-radius: var(--aaei-r-lg);
	background: var(--aaei-white);
	border: 1px solid var(--aaei-line);
}

.card__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--aaei-r-md);
	background: var(--aaei-sand);
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--aaei-ease);
}

.card:hover .card__media img {
	transform: scale(1.04);
}

.card__body {
	padding: 20px 14px 14px;
}

.card__meta {
	margin-bottom: 6px;
	font-size: 13px;
	color: var(--aaei-muted);
}

.card__title {
	font-size: 30px;
	line-height: 1.05;
}

.card__title a {
	text-decoration: none;
}

.search-form {
	display: flex;
	gap: 8px;
	max-width: 520px;
	margin-block: 24px;
}

.search-field,
.aaei-form input[type="text"],
.aaei-form input[type="email"],
.aaei-form input[type="tel"],
.aaei-form input[type="url"],
.aaei-form textarea,
.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea {
	width: 100%;
	padding: 15px 18px;
	border: 1px solid var(--aaei-line);
	border-radius: 16px;
	background: var(--aaei-white);
	color: var(--aaei-ink);
	font: 400 16px/1.4 var(--aaei-font);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.search-field {
	border-radius: 999px;
	padding-inline: 22px;
}

.search-field:focus,
.aaei-form input:focus,
.aaei-form textarea:focus {
	border-color: var(--aaei-taupe);
	outline: none;
	box-shadow: 0 0 0 4px rgba(178, 159, 141, 0.22);
}

.error-404 {
	min-height: 50vh;
}

.nav-links {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 48px;
}

/* ---------- Form ---------- */

.aaei-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

@media (max-width: 640px) {
	.aaei-form__row {
		grid-template-columns: 1fr;
	}
}

.aaei-form__field {
	margin-bottom: 16px;
}

.aaei-form label {
	display: block;
	margin-bottom: 7px;
	font-size: 13px;
	font-weight: 600;
	color: var(--aaei-ink);
}

.aaei-form .req {
	color: var(--aaei-bronze);
}

.aaei-form__hp {
	position: absolute !important;
	inset-inline-start: -9999px;
}

.aaei-form__privacy {
	font-size: 13px;
	color: var(--aaei-muted);
}

.aaei-form__notice {
	padding: 14px 18px;
	border-radius: 14px;
	font-weight: 500;
}

.aaei-form__notice.is-success {
	background: #e9f3ec;
	color: #24563a;
}

.aaei-form__notice.is-error {
	background: #f8e9e5;
	color: #8a2f1f;
}

.aaei-form .btn {
	padding-inline: 26px 7px;
}

.aaei-form .btn::after {
	content: "";
	display: inline-block;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--aaei-taupe) var(--aaei-arrow) center / 16px no-repeat;
}

[dir="rtl"] .aaei-form .btn::after {
	transform: scaleX(-1);
}

/* =================================================================
   Elementor building blocks. Add these CSS classes in
   Elementor → Advanced → CSS Classes.
   ================================================================= */

.site-main--elementor {
	overflow-x: clip;
}

/* Serif headings with taupe italic emphasis */
.elementor-heading-title em {
	font-style: italic;
	color: var(--aaei-taupe);
}

.aaei-on-dark .elementor-heading-title em,
.elementor-heading-title.aaei-light-em em,
.aaei-light-em .elementor-heading-title em {
	color: var(--aaei-taupe-light);
}

.elementor-heading-title .faded {
	color: rgba(17, 17, 16, 0.32);
}

/* Section label: "(01) About us" */
.aaei-label .elementor-heading-title {
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
}

.aaei-label .elementor-heading-title .n {
	font-family: var(--aaei-serif);
	font-size: 16px;
	font-style: italic;
	letter-spacing: 0;
	text-transform: none;
	color: var(--aaei-taupe);
}

/* Pill buttons with an arrow chip (Button widget + class) */
body .aaei-pill .elementor-button {
	display: inline-flex;
	align-items: center;
	height: 54px;
	padding: 0 7px 0 26px;
	border: 0;
	border-radius: 999px;
	background: var(--aaei-ink);
	color: var(--aaei-white);
	font-family: var(--aaei-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	transition: background-color 0.2s var(--aaei-ease), color 0.2s var(--aaei-ease);
}

body .aaei-pill .elementor-button-content-wrapper {
	display: inline-flex;
	align-items: center;
	gap: 14px;
}

body .aaei-pill .elementor-button-content-wrapper::after {
	content: "";
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--aaei-taupe) var(--aaei-arrow) center / 16px no-repeat;
	transition: transform 0.25s var(--aaei-ease);
}

[dir="rtl"] .aaei-pill .elementor-button-content-wrapper::after {
	transform: scaleX(-1);
}

body .aaei-pill .elementor-button:hover {
	background: var(--aaei-ink-2);
	color: var(--aaei-white);
}

body .aaei-pill .elementor-button:hover .elementor-button-content-wrapper::after {
	transform: translateX(3px);
}

[dir="rtl"] body .aaei-pill .elementor-button:hover .elementor-button-content-wrapper::after {
	transform: scaleX(-1) translateX(3px);
}

body .aaei-pill--light .elementor-button {
	background: var(--aaei-white);
	color: var(--aaei-ink);
}

body .aaei-pill--light .elementor-button:hover {
	background: var(--aaei-ivory);
	color: var(--aaei-ink);
}

/* Outline pill without chip */
body .aaei-ghost .elementor-button {
	display: inline-flex;
	align-items: center;
	height: 54px;
	padding: 0 26px;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: var(--aaei-ink);
	font-family: var(--aaei-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
}

body .aaei-ghost .elementor-button:hover {
	background: var(--aaei-ink);
	color: var(--aaei-white);
}

body .aaei-ghost--light .elementor-button {
	border-color: rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.08);
	color: var(--aaei-white);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

body .aaei-ghost--light .elementor-button:hover {
	background: var(--aaei-white);
	color: var(--aaei-ink);
}

body .aaei-pill--sm .elementor-button,
body .aaei-ghost--sm .elementor-button {
	height: 46px;
	font-size: 14px;
}

body .aaei-pill--sm .elementor-button-content-wrapper::after {
	width: 32px;
	height: 32px;
	background-size: 14px;
}

/* Underlined text link with arrow (Button widget + class) */
body .aaei-link .elementor-button {
	padding: 0 0 5px;
	border: 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	background: transparent;
	color: var(--aaei-ink);
	font-family: var(--aaei-font);
	font-size: 15px;
	font-weight: 600;
}

body .aaei-link .elementor-button-content-wrapper {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

body .aaei-link .elementor-button-content-wrapper::after {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: var(--aaei-arrow) center / contain no-repeat;
	mask: var(--aaei-arrow) center / contain no-repeat;
}

[dir="rtl"] .aaei-link .elementor-button-content-wrapper::after {
	transform: scaleX(-1);
}

body .aaei-link .elementor-button:hover {
	background: transparent;
	color: var(--aaei-bronze);
}

body .aaei-on-dark .aaei-link .elementor-button,
body .aaei-link--light .elementor-button {
	color: var(--aaei-white);
}

/* Rounded, cover-fit images */
.aaei-fill,
.aaei-fill .elementor-widget-container {
	height: 100%;
}

.aaei-fill img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	border-radius: var(--aaei-r-lg);
}

.aaei-fill--md img {
	border-radius: var(--aaei-r-md);
}

/* Tiles (cards). Arrow chip in the corner when the tile links somewhere. */
.aaei-tile {
	position: relative;
	transition: transform 0.25s var(--aaei-ease), box-shadow 0.25s var(--aaei-ease);
}

a.aaei-tile,
.aaei-tile.aaei-has-link {
	text-decoration: none;
	color: inherit;
}

a.aaei-tile:hover,
.aaei-tile.aaei-has-link:hover {
	transform: translateY(-4px);
	box-shadow: 0 30px 60px -32px rgba(17, 17, 16, 0.35);
}

a.aaei-tile > .elementor-widget-icon,
.aaei-tile.aaei-has-link > .elementor-widget-icon {
	position: static;
}

a.aaei-tile > .elementor-widget-icon::after,
.aaei-tile.aaei-has-link > .elementor-widget-icon::after {
	content: "";
	position: absolute;
	top: 26px;
	inset-inline-end: 26px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--aaei-line);
	background: transparent var(--aaei-arrow-ur) center / 16px no-repeat;
	transition: background-color 0.2s, border-color 0.2s;
}

[dir="rtl"] a.aaei-tile > .elementor-widget-icon::after,
[dir="rtl"] .aaei-tile.aaei-has-link > .elementor-widget-icon::after {
	transform: scaleX(-1);
}

a.aaei-tile:hover > .elementor-widget-icon::after {
	background-color: var(--aaei-white);
	border-color: transparent;
}

/* Image tile: white arrow chip in the corner (drawn on the leading spacer) */
.aaei-tile--image > .elementor-widget-spacer {
	position: static;
}

.aaei-tile--image > .elementor-widget-spacer::after {
	content: "";
	position: absolute;
	top: 26px;
	inset-inline-end: 26px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--aaei-white) var(--aaei-arrow-ur) center / 16px no-repeat;
}

[dir="rtl"] .aaei-tile--image > .elementor-widget-spacer::after {
	transform: scaleX(-1);
}

/* Small tag pills under tile text */
.aaei-tags .elementor-heading-title {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.aaei-tags .elementor-heading-title span {
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--aaei-ivory);
	color: var(--aaei-muted);
	font-family: var(--aaei-font);
	font-size: 12px;
	line-height: 1.5;
}

.aaei-tile--sand .aaei-tags .elementor-heading-title span {
	background: var(--aaei-white);
}

.aaei-on-dark .aaei-tags .elementor-heading-title span,
.aaei-tags--dark .elementor-heading-title span {
	background: transparent;
	border: 1px solid var(--aaei-line-light);
	color: rgba(255, 255, 255, 0.75);
}

.aaei-tags .elementor-heading-title span.on {
	background: var(--aaei-taupe);
	border-color: var(--aaei-taupe);
	color: var(--aaei-ink);
	font-weight: 600;
}

/* Glass card (hero "next intake") */
.aaei-glass {
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

/* Floating stat chips on page hero images */
.aaei-chip-stat {
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

/* Stat tiles: numbers and captions sit at the start edge */
.aaei-stat-tile .elementor-counter,
.aaei-stat-tile .elementor-counter-number-wrapper {
	justify-content: flex-start !important;
	align-items: flex-start !important;
	text-align: start !important;
}

.aaei-stat-tile .elementor-counter-title {
	text-align: start !important;
	justify-content: flex-start !important;
}

[dir="rtl"] .aaei-stat-tile .elementor-counter-number-wrapper {
	justify-content: flex-end !important;
}

/* Stat tile ring (94%) */
.aaei-ring .elementor-widget-container {
	line-height: 0;
}

/* Checklist (Icon List widget + class) */
.aaei-checks .elementor-icon-list-icon {
	display: inline-grid !important;
	place-items: center;
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--aaei-ink);
}

.aaei-checks .elementor-icon-list-icon i,
.aaei-checks .elementor-icon-list-icon svg {
	font-size: 11px !important;
	width: 11px !important;
	color: var(--aaei-white) !important;
	fill: var(--aaei-white) !important;
}

.aaei-checks .elementor-icon-list-item {
	align-items: flex-start !important;
}

/* Schedule rows */
.aaei-row {
	border-bottom: 1px solid var(--aaei-line);
}

.aaei-row--hl {
	border-bottom-color: transparent;
	border-radius: var(--aaei-r-md);
}

.aaei-date .elementor-heading-title span {
	margin-inline-start: 8px;
	font-family: var(--aaei-font);
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--aaei-muted);
}

/* Quote / testimonial slider */
.aaei-quote .elementor-heading-title::before {
	content: "\201C";
	display: block;
	margin-bottom: 14px;
	font-size: 120px;
	line-height: 0.6;
	color: var(--aaei-taupe);
}

[dir="rtl"] .aaei-quote .elementor-heading-title::before {
	content: "\201D";
}

.aaei-avatar .elementor-heading-title {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--aaei-sand-2);
}

/* Slider (testimonials, any container with the class aaei-slider) */
.aaei-slider.is-ready {
	display: block !important;
}

.aaei-slider.is-ready .aaei-slider__track {
	display: grid !important;
}

.aaei-slider.is-ready .aaei-slider__track > * {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s var(--aaei-ease), visibility 0.5s;
}

.aaei-slider.is-ready .aaei-slider__track > .is-active {
	opacity: 1;
	visibility: visible;
}

.aaei-slider__dots {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	margin-top: 28px;
}

.aaei-slider__dots button {
	width: 28px;
	height: 3px;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: var(--aaei-line);
	cursor: pointer;
	transition: background-color 0.3s, width 0.3s var(--aaei-ease);
}

.aaei-slider__dots button[aria-current="true"] {
	width: 64px;
	background: var(--aaei-ink);
}

/* Footer-like dark sections */
.aaei-on-dark {
	color: var(--aaei-white);
}

/* Counter numbers always read left-to-right. */
.elementor-counter-number-wrapper {
	direction: ltr;
	unicode-bidi: isolate;
}

/* Maps */
.aaei-map iframe {
	border-radius: var(--aaei-r-lg);
	filter: grayscale(1) contrast(1.02);
}

/* Responsive helpers */
@media (max-width: 767px) {
	.aaei-hide-mobile {
		display: none !important;
	}
}

@media (min-width: 768px) {
	.aaei-hide-desktop {
		display: none !important;
	}
}

/* ---------- Arabic ---------- */

body.lang-ar {
	font-family: "IBM Plex Sans Arabic", var(--aaei-font);
	line-height: 1.8;
}

/* Arabic headings: bold Plex instead of the Latin serif, no italics or tracking. */
body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3,
body.lang-ar h4,
body.lang-ar .elementor-heading-title,
body.lang-ar .page-banner__title,
body.lang-ar .footer-wordmark,
body.lang-ar .card__title {
	font-family: "IBM Plex Sans Arabic", var(--aaei-font) !important;
	font-weight: 700 !important;
	letter-spacing: 0 !important;
	line-height: 1.3 !important;
}

body.lang-ar .elementor-heading-title em,
body.lang-ar em {
	font-style: normal;
}

body.lang-ar .aaei-label .elementor-heading-title,
body.lang-ar .aaei-tags .elementor-heading-title,
body.lang-ar .elementor-button,
body.lang-ar .main-menu a,
body.lang-ar .footer-heading,
body.lang-ar .eyebrow {
	letter-spacing: 0 !important;
	text-transform: none !important;
}

body.lang-ar .aaei-label .elementor-heading-title,
body.lang-ar .aaei-tags .elementor-heading-title {
	font-weight: 500 !important;
	line-height: 1.6 !important;
}

body.lang-ar .aaei-label .elementor-heading-title {
	font-size: 14px !important;
}

body.lang-ar .aaei-label .n,
body.lang-ar .aaei-date .elementor-heading-title,
body.lang-ar .elementor-counter-number-wrapper {
	font-family: var(--aaei-serif) !important;
	font-weight: 400 !important;
}

body.lang-ar .aaei-quote .elementor-heading-title,
body.lang-ar .aaei-statement .elementor-heading-title {
	font-weight: 500 !important;
	line-height: 1.5 !important;
}

body.lang-ar .site-header .main-menu a {
	font-family: "IBM Plex Sans Arabic", var(--aaei-font);
}

@media (max-width: 1100px) {
	body.lang-ar .site-header .main-menu > li > a {
		font-family: "IBM Plex Sans Arabic", var(--aaei-font);
		font-weight: 700;
		font-size: 24px;
	}
}

body.lang-ar .elementor-widget-text-editor {
	line-height: 1.9;
}

/* Phone numbers and emails stay left-to-right inside Arabic text */
[dir="ltr"],
.ltr {
	unicode-bidi: isolate;
}

/* ---------- Motion ---------- */

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

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* Arabic display sizes: Plex Arabic is wider than the Latin serif. */
body.lang-ar .aaei-overlap h1.elementor-heading-title {
	font-size: clamp(44px, 6.4vw, 92px) !important;
}

body.lang-ar .elementor-widget-heading h1.elementor-heading-title {
	font-size: clamp(44px, 6.4vw, 96px);
}
