/* Site header: floating rounded nav bar with a soft shadow, on every page.
   Loaded after CSSinc.php; the old theme has per-template header colors, so
   rules here are scoped to #headerMenuFixed and use !important where the old ones do. */

.headerSection {
	position: relative;
	z-index: 60;
	max-height: none !important;
}

body.home .headerSection {
	background: var(--ed-bg);
}

#headerMenuFixed,
#headerMenuFixed.not-sticky,
#headerMenuFixed.fixed {
	height: auto !important;
	padding: 16px 0 !important;
	border: 0 !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
}

/* After scrolling, the bar floats over the page. */
#headerMenuFixed.fixed {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	padding: 10px 0 !important;
}

/* The bar spans the same width as the content below it. */
@media (min-width: 769px) {
	#headerMenuFixed > .container {
		padding-right: 0;
		padding-left: 0;
	}
}

#headerMenuFixed .headerContainer {
	display: flex;
	align-items: center;
	min-height: 68px;
	margin: 0;
	padding: 8px 12px 8px 24px;
	border: 1px solid rgba(var(--ed-shade-rgb), .06);
	border-radius: 999px;
	background: rgba(var(--ed-surface-rgb), .94);
	box-shadow: 0 12px 32px -14px rgba(17, 17, 17, .22), 0 2px 6px rgba(17, 17, 17, .04);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	/* The blur makes the bar its own layer; lift it (and its dropdowns) above
	   positioned page content such as the app page phone. */
	position: relative;
	z-index: 100;
}

#headerMenuFixed .headerContainer::before,
#headerMenuFixed .headerContainer::after {
	display: none;
}

#headerMenuFixed .headerLogo {
	flex: 0 0 auto;
	width: auto;
	padding: 0 4px 0 0;
	float: none;
}

#headerMenuFixed .headerLogo a {
	width: 150px !important;
	height: 48px !important;
	margin: 0 !important;
	background-image: url("images/brand/logo-dark.png") !important;
	background-position: right center !important;
	background-repeat: no-repeat !important;
	background-size: contain !important;
}

/* Dark theme: the logo with white lettering (here and in the phone menu below). */
:root[data-theme="dark"] #headerMenuFixed .headerLogo a,
:root[data-theme="dark"] #headerMenuFixed #navbarCollapse .slide::before {
	background-image: url("images/brand/logo-light.png") !important;
}

/* DOM order is login, currency, menu; row-reverse in RTL keeps the menu
   beside the logo and the login/currency at the far end, all centered. */
#headerMenuFixed .headerMenu {
	display: flex;
	flex: 1 1 auto;
	flex-direction: row-reverse;
	align-items: center;
	gap: 8px;
	width: auto;
	float: none;
}

#headerMenuFixed .headerMenu > .LoginLinks,
#headerMenuFixed .headerMenu > .clientArea,
#headerMenuFixed .headerMenu > .navbar {
	float: none !important;
	margin: 0 !important;
}

#headerMenuFixed .headerMenu > .clientArea {
	margin-right: auto !important;
}

/* Bootstrap navbar spacing pushed the links below the logo line. */
#headerMenuFixed .headerMenu .navbar,
#headerMenuFixed .headerMenu .navbar-collapse,
#headerMenuFixed .headerMenu #nav {
	min-height: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	border: 0 !important;
}

#headerMenuFixed .LoginLinks > a {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 50%;
	background: var(--ed-tint-f0f0ec);
	cursor: pointer;
}

#headerMenuFixed .LoginLinks > a svg {
	width: 20px;
	height: 20px;
}

/* Menu links */
#headerMenuFixed .headerMenu .menu > li > a {
	padding: 10px 14px !important;
	border-radius: 999px;
	color: var(--ed-tx-1f1f1f) !important;
	font-size: 15px;
	font-weight: 500;
	line-height: 20px;
	transition: background-color .2s ease, color .2s ease;
}

#headerMenuFixed .headerMenu .menu > li > a:hover,
#headerMenuFixed .headerMenu .menu > li.open > a,
#headerMenuFixed .headerMenu .menu > li > a:focus-visible {
	background: var(--ed-tint-f0f0ec) !important;
	color: var(--ed-text-strong) !important;
}

/* The theme marks the hard-coded Home link current on every page, so it only
   counts on the home page itself. */
body.home #headerMenuFixed .headerMenu .menu > li.current_page_item > a,
#headerMenuFixed .headerMenu .menu > li.current-menu-item > a {
	background: var(--ed-ink-2) !important;
	color: #fff !important;
}

/* Login icon, currency, mobile toggle: dark on the white bar */
#headerMenuFixed .LoginLinks {
	margin-top: 0 !important;
}

#headerMenuFixed .LoginLinks path,
#headerMenuFixed .LoginLinks svg {
	fill: var(--ed-tx-1f1f1f) !important;
}

#headerMenuFixed .clientArea {
	display: flex;
	align-items: center;
	height: 42px;
}

#headerMenuFixed #Currency {
	width: auto !important;
	height: 42px;
	margin: 0 !important;
	padding: 0 4px;
	border: 0;
	background: transparent;
	color: var(--ed-tx-1f1f1f) !important;
	font-size: 14px;
	line-height: 42px;
}

#headerMenuFixed .navbar-toggle .icon-bar {
	border-color: #1f1f1f !important;
	background-color: #1f1f1f !important;
}

/* Dropdowns: rounded panels to match the bar */
#headerMenuFixed .headerMenu .menu .sub-menu {
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 18px 40px -16px rgba(17, 17, 17, .28);
}

/* ------------------------------------------------------------------
   Dropdowns (desktop): a floating panel under the menu item instead of
   the old fixed full-width strip. The mobile slide-in menu is untouched.
   ------------------------------------------------------------------ */
@media (min-width: 769px) {
	#headerMenuFixed #nav > li.dropdown {
		position: relative;
	}

	/* Invisible bridge so the pointer can cross the gap without closing it. */
	#headerMenuFixed #nav > li.dropdown.open::after {
		content: "";
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		height: 24px;
	}

	#headerMenuFixed #nav > li > ul.sub-menu {
		display: none !important;
		position: absolute !important;
		top: calc(100% + 18px) !important;
		right: -12px !important;
		left: auto !important;
		width: 500px !important;
		max-width: calc(100vw - 32px);
		height: auto !important;
		margin: 0 !important;
		padding: 10px !important;
		border: 1px solid rgba(var(--ed-shade-rgb), .06) !important;
		border-radius: 20px;
		background: var(--ed-surface) !important;
		box-shadow: 0 24px 48px -20px rgba(17, 17, 17, .28), 0 2px 8px rgba(17, 17, 17, .05);
		text-align: right;
	}

	/* Fully solid: the old theme fades dropdowns, which left this see-through. */
	#headerMenuFixed #nav > li.open > ul.sub-menu {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 4px;
		opacity: 1 !important;
		visibility: visible !important;
		animation: ed-dropdown-slide .18s ease-out;
	}

	#headerMenuFixed #nav > li > ul.sub-menu > li {
		display: block !important;
		float: none !important;
		width: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
	}

	/* The old theme paints each item white. */
	:root[data-theme="dark"] #headerMenuFixed #nav > li > ul.sub-menu > li {
		background: transparent;
	}

	#headerMenuFixed #nav > li > ul.sub-menu > li > a {
		display: flex !important;
		align-items: center;
		gap: 12px;
		width: auto !important;
		height: auto !important;
		padding: 10px 12px !important;
		border: 0 !important;
		border-radius: 14px;
		background: transparent !important;
		color: var(--ed-tx-1f1f1f) !important;
		font-size: 15px;
		line-height: 22px;
		text-align: right !important;
		transition: background-color .15s ease;
	}

	#headerMenuFixed #nav > li > ul.sub-menu > li > a:hover,
	#headerMenuFixed #nav > li > ul.sub-menu > li > a:focus-visible {
		background: var(--ed-tint-f4f4f1) !important;
	}

	/* The item icons become small rounded tiles. */
	#headerMenuFixed #nav > li > ul.sub-menu > li > a svg {
		display: block !important;
		flex: 0 0 40px;
		width: 40px !important;
		height: 40px !important;
		margin: 0 !important;
		padding: 9px;
		box-sizing: border-box;
		border-radius: 12px;
		background: var(--ed-tint-f0f0ec);
		fill: var(--ed-text-2) !important;
		transition: background-color .15s ease;
	}

	#headerMenuFixed #nav > li > ul.sub-menu > li > a svg * {
		fill: var(--ed-text-2) !important;
	}

	#headerMenuFixed #nav > li > ul.sub-menu > li > a:hover svg {
		background: var(--ed-tint-e7e7e1);
	}

	#headerMenuFixed #nav > li > ul.sub-menu > li > a span {
		display: block !important;
		margin: 0 !important;
		padding: 0 !important;
		color: inherit !important;
		font-size: 15px !important;
		line-height: 22px !important;
		text-align: right !important;
	}
}

@keyframes ed-dropdown-slide {
	from {
		transform: translateY(-6px);
	}
	to {
		transform: none;
	}
}

@keyframes ed-dropdown-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	#headerMenuFixed #nav > li.open > ul.sub-menu {
		animation: none;
	}
}

/* ------------------------------------------------------------------
   Mobile menu (theme breakpoint: 768px). The old full-screen sheet is
   replaced by a rounded card that drops down under the bar.
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
	/* backdrop-filter would trap the fixed menu card inside the bar. */
	#headerMenuFixed .headerContainer {
		min-height: 60px;
		padding: 6px 8px 6px 14px;
		background: var(--ed-surface);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	#headerMenuFixed,
	#headerMenuFixed.not-sticky,
	#headerMenuFixed.fixed {
		padding: 10px 0 !important;
	}

	#headerMenuFixed .headerLogo a {
		width: 128px !important;
		max-width: 128px !important;
		height: 42px !important;
		float: none;
	}

	#headerMenuFixed .headerMenu {
		gap: 6px;
	}

	#headerMenuFixed .headerMenu > .navbar {
		position: static;
		margin-right: auto !important;
	}

	#headerMenuFixed .headerMenu > .clientArea {
		margin-right: 0 !important;
	}

	#headerMenuFixed .navbar-header {
		margin: 0 !important;
		float: none;
	}

	/* Round menu button with two bars that turn into an X when open. */
	#headerMenuFixed .navbar-toggle {
		position: relative;
		display: block;
		width: 42px;
		height: 42px;
		margin: 0 !important;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: var(--ed-ink-2) !important;
		float: none;
	}

	#headerMenuFixed .navbar-toggle .icon-bar {
		position: absolute;
		right: 13px;
		width: 16px;
		height: 2px;
		margin: 0 !important;
		border: 0 !important;
		border-radius: 2px;
		background-color: #fff !important;
		transition: transform .2s ease, top .2s ease, opacity .2s ease;
	}

	#headerMenuFixed .navbar-toggle .icon-bar:nth-of-type(2) { top: 16px; }
	#headerMenuFixed .navbar-toggle .icon-bar:nth-of-type(3) { top: 20px; opacity: 0; }
	#headerMenuFixed .navbar-toggle .icon-bar:nth-of-type(4) { top: 24px; }

	#headerMenuFixed.menu .navbar-toggle .icon-bar:nth-of-type(2) { top: 20px; transform: rotate(45deg); }
	#headerMenuFixed.menu .navbar-toggle .icon-bar:nth-of-type(4) { top: 20px; transform: rotate(-45deg); }

	/* Full-screen menu: every page visible at once, sections listed under
	   their heading. It covers the bar, so it has its own logo and close. */
	#headerMenuFixed #navbarCollapse {
		display: none !important;
		position: fixed !important;
		top: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		left: 0 !important;
		width: auto !important;
		height: auto !important;
		max-height: none !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow-y: auto !important;
		border: 0 !important;
		background: var(--ed-surface) !important;
		z-index: 2147483000 !important;
		-webkit-overflow-scrolling: touch;
	}

	#headerMenuFixed #navbarCollapse.in,
	#headerMenuFixed #navbarCollapse.collapsing {
		display: block !important;
		animation: ed-menu-in .22s ease-out;
	}

	body:has(#navbarCollapse.in) {
		overflow: hidden;
	}

	/* The header is its own stacking layer (z-index 60); lift it above the
	   page, the offer bar and the chat bubble while the menu is open. */
	.headerSection:has(#navbarCollapse.in) {
		z-index: 2147483000;
	}

	body:has(#navbarCollapse.in) #bc-livechat-container {
		display: none !important;
	}

	#headerMenuFixed #navbarCollapse .slide {
		position: relative;
		display: block !important;
		width: auto !important;
		padding: 88px 20px 40px !important;
		text-align: right !important;
	}

	/* Logo, top right */
	#headerMenuFixed #navbarCollapse .slide::before {
		content: "";
		position: absolute;
		top: 22px;
		right: 20px;
		width: 128px;
		height: 42px;
		background: url("images/brand/logo-dark.png") right center / contain no-repeat;
	}

	/* Close, top left (the theme already wires this link to close the menu) */
	#headerMenuFixed #navbarCollapse .slide .close {
		position: absolute;
		top: 22px;
		left: 20px;
		display: grid !important;
		width: 42px;
		height: 42px;
		place-items: center;
		margin: 0 !important;
		padding: 0 !important;
		border-radius: 50%;
		background: var(--ed-ink-2);
		opacity: 1;
		float: none;
	}

	#headerMenuFixed #navbarCollapse .slide .close svg {
		width: 14px !important;
		height: 14px !important;
	}

	#headerMenuFixed #navbarCollapse .slide .close svg,
	#headerMenuFixed #navbarCollapse .slide .close svg * {
		fill: #fff !important;
	}

	#headerMenuFixed #nav,
	#headerMenuFixed #nav > li {
		display: block !important;
		float: none !important;
		width: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		text-align: right !important;
	}

	#headerMenuFixed #nav > li {
		border-bottom: 1px solid var(--ed-rule-efefea);
	}

	/* Top-level links: large and bold */
	#headerMenuFixed #nav > li > a {
		display: block !important;
		padding: 16px 0 !important;
		border-radius: 0;
		background: transparent !important;
		color: var(--ed-text) !important;
		font-size: 26px;
		font-weight: 900;
		line-height: 1.3;
	}

	body.home #headerMenuFixed #nav > li.current_page_item > a {
		background: transparent !important;
		color: var(--ed-text) !important;
	}

	/* Section headings ("عن الشركة", "خدمتنا") are labels, not links. */
	#headerMenuFixed #nav > li.dropdown > a {
		padding-bottom: 8px !important;
		pointer-events: none;
	}

	/* Section pages always visible, as a 2-column grid */
	#headerMenuFixed #nav > li > ul.sub-menu {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 4px 8px;
		position: static !important;
		float: none !important;
		width: auto !important;
		margin: 0 0 14px !important;
		padding: 0 !important;
		border: 0 !important;
		border-radius: 0;
		background: transparent !important;
		box-shadow: none !important;
	}

	#headerMenuFixed #nav > li > ul.sub-menu > li {
		display: block !important;
		float: none !important;
		width: auto !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	#headerMenuFixed #nav > li > ul.sub-menu > li > a {
		display: flex !important;
		align-items: center;
		gap: 10px;
		padding: 8px 6px !important;
		border: 0 !important;
		border-radius: 12px;
		background: transparent !important;
		color: var(--ed-tx-3a3a3a) !important;
		text-align: right !important;
	}

	#headerMenuFixed #nav > li > ul.sub-menu > li > a svg {
		display: block !important;
		flex: 0 0 36px;
		width: 36px !important;
		height: 36px !important;
		margin: 0 !important;
		padding: 8px;
		box-sizing: border-box;
		border-radius: 10px;
		background: var(--ed-tint-f0f0ec);
	}

	#headerMenuFixed #nav > li > ul.sub-menu > li > a svg,
	#headerMenuFixed #nav > li > ul.sub-menu > li > a svg * {
		fill: var(--ed-text-2) !important;
	}

	#headerMenuFixed #nav > li > ul.sub-menu > li > a span {
		display: block !important;
		margin: 0 !important;
		color: inherit !important;
		font-size: 15px !important;
		line-height: 20px !important;
		text-align: right !important;
	}
}

@keyframes ed-menu-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	#headerMenuFixed #navbarCollapse.in {
		animation: none !important;
	}
}

/* ------------------------------------------------------------------
   Offer toast (header.php). Bottom-left, clear of the hero and the chat
   bubble; hidden for good once closed (localStorage).
   ------------------------------------------------------------------ */
.ed-offer {
	position: fixed;
	bottom: 24px;
	left: 24px;
	z-index: 9990;
	display: none;
	align-items: center;
	gap: 12px;
	max-width: 380px;
	padding: 10px 10px 10px 14px;
	border: 1px solid rgba(var(--ed-shade-rgb), .06);
	border-radius: 18px;
	background: var(--ed-surface);
	box-shadow: 0 18px 40px -16px rgba(17, 17, 17, .35), 0 2px 6px rgba(17, 17, 17, .05);
	font-family: "Thmanyah Sans", sans-serif !important;
	direction: rtl;
}

.ed-offer.is-ready {
	display: flex;
	animation: ed-offer-in .45s cubic-bezier(.2, .7, .2, 1) 1.2s both;
}

.ed-offer.is-closing {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease;
}

.ed-offer__badge {
	flex: 0 0 auto;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--ed-lime);
	color: #141414;
	font-size: 13px;
	font-weight: 700;
	line-height: 18px;
}

.ed-offer__text {
	flex: 1 1 auto;
	color: var(--ed-tx-1f1f1f) !important;
	font-family: inherit !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none !important;
}

.ed-offer__more {
	display: block;
	margin-top: 2px;
	color: var(--ed-muted-2);
	font-family: inherit !important;
	font-size: 13px;
	font-weight: 500;
}

.ed-offer__text:hover .ed-offer__more {
	color: var(--ed-tx-1f1f1f);
	text-decoration: underline;
}

.ed-offer__close {
	display: grid;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ed-tint-f0f0ec);
	color: var(--ed-tx-3a3a3a);
	cursor: pointer;
}

.ed-offer__close:hover {
	background: var(--ed-tint-e5e5df);
}

.ed-offer__close:focus-visible,
.ed-offer__text:focus-visible {
	outline: 3px solid var(--ed-edge-2);
	outline-offset: 2px;
}

/* Hide it while the full-screen mobile menu is open. */
body:has(#navbarCollapse.in) .ed-offer {
	display: none !important;
}

@media (max-width: 768px) {
	/* Phones: under the nav bar, clear of the chat bubble and its greeting.
	   Shown only after scrolling past the hero (header.php), so it never covers the headline. */
	.ed-offer {
		top: 84px;
		right: 12px;
		bottom: auto;
		left: 12px;
		max-width: none;
	}
}

@keyframes ed-offer-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ed-offer.is-ready {
		animation: none;
	}
}

/* Old theme bug (style.css: ".tools-offers i, h5, p { position: relative; z-index: 999999999 }")
   lifts every paragraph and h5 on the site above the nav bar. Give them their normal layer back. */
p,
h5 {
	z-index: auto;
}

/* ------------------------------------------------------------------
   Blog articles (single posts): readable text. The old theme centers
   paragraphs and strips list numbers and bullets.
   ------------------------------------------------------------------ */
/* Cover image: the old theme forces it into a 457x539 box, squashing wide covers.
   Keep the box (the title sits beside it) and fit the image inside at its own proportions. */
.single-post .singleimg img {
	object-fit: contain;
}

.single-post .postDetails {
	font-family: "Thmanyah Sans", sans-serif !important;
	color: var(--ed-text-2);
	font-size: 18px;
	line-height: 1.95;
}

.single-post .postDetails p,
.single-post .postDetails li {
	text-align: right !important;
	font-family: inherit !important;
}

.single-post .postDetails p,
.single-post .postDetails li {
	font-size: 18px !important;
	line-height: 1.95 !important;
}

.single-post .postDetails p {
	margin: 0 0 1.1em;
}

.single-post .postDetails h2 {
	margin: 1.8em 0 .6em;
	color: var(--ed-text);
	font-size: 28px !important;
	font-weight: 900;
	line-height: 1.35;
	text-align: right;
}

.single-post .postDetails h3 {
	margin: 1.5em 0 .4em;
	color: var(--ed-text);
	font-size: 21px !important;
	font-weight: 700;
	line-height: 1.45;
	text-align: right;
}

.single-post .postDetails ul,
.single-post .postDetails ol {
	margin: 0 0 1.3em;
	padding-right: 1.4em;
	padding-left: 0;
}

.single-post .postDetails ul {
	list-style: disc outside !important;
}

.single-post .postDetails ol {
	list-style: arabic-indic outside !important;
}

.single-post .postDetails li {
	display: list-item !important;
	margin: 0 0 .5em;
	padding-right: .3em;
}

.single-post .postDetails li::marker {
	color: #5aa832;
	font-weight: 700;
}

.single-post .postDetails a {
	color: var(--ed-text) !important;
	font-weight: 700;
	text-decoration: none !important;
	background: linear-gradient(to top, var(--ed-lime) 0 32%, transparent 32%);
}

.single-post .postDetails a:hover {
	background: var(--ed-lime);
}

/* Dark theme: a thin lime underline instead of the marker; lime fill with dark text on hover. */
:root[data-theme="dark"] .single-post .postDetails a {
	background: linear-gradient(to top, var(--ed-lime) 0 10%, transparent 10%);
}

:root[data-theme="dark"] .single-post .postDetails a:hover {
	background: var(--ed-lime);
	color: var(--ed-ink) !important;
}

.single-post .postDetails hr {
	margin: 2.2em 0;
	border: 0;
	border-top: 1px solid var(--ed-rule-e3e3dd);
}

/* ------------------------------------------------------------------
   Footer (footer.php), every page: black. Scroll-speed marquee + lime
   bar on top, card-style body, giant wordmark with a mouse spotlight.
   ------------------------------------------------------------------ */
.ed-footer {
	padding: 64px 0 28px;
	overflow: hidden;
	background: var(--ed-ink-2);
	color: #a3a8a0;
}

.ed-footer,
.ed-footer *:not(.fa) {
	font-family: "Thmanyah Sans", sans-serif !important;
}

@media (min-width: 769px) {
	.ed-footer > .container {
		padding-right: 0;
		padding-left: 0;
	}
}

.ed-footer a {
	color: inherit;
	text-decoration: none !important;
}

.ed-footer a:focus-visible {
	outline: 2px solid var(--ed-lime);
	outline-offset: 3px;
}

/* Lime call-to-action bar */
.ed-footer__bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 16px 16px 28px;
	border-radius: 999px;
	background: var(--ed-lime);
}

.ed-footer__bar-text {
	flex: 1;
	margin: 0;
	padding-right: 14px;
	color: var(--ed-text-strong);
	font-size: 26px !important;
	font-weight: 900;
	line-height: 1.3;
	text-align: right !important;
}

.ed-footer__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
	transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}

.ed-footer__btn:hover,
.ed-footer__btn:focus-visible {
	transform: translateY(-2px);
}

.ed-footer__btn .fa {
	font-size: 18px;
}

.ed-footer__btn--line {
	border-color: rgba(17, 17, 17, .35);
	color: var(--ed-text-strong) !important;
}

.ed-footer__btn--line:hover {
	border-color: var(--ed-edge-2);
}

.ed-footer__btn--dark {
	background: var(--ed-ink-2);
	color: #fff !important;
}

.ed-footer__btn--dark:hover {
	box-shadow: 0 12px 26px -12px rgba(17, 17, 17, .7);
}

/* 2. Body */
.ed-footer__body {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.6fr;
	gap: 48px;
	padding: 64px 0 40px;
}

.ed-footer__logo {
	display: block;
	width: 160px;
	height: auto;
	margin-bottom: 18px;
}

.ed-footer__about {
	max-width: 320px;
	margin: 0 0 24px;
	color: #a3a8a0;
	font-size: 15px;
	line-height: 1.85;
	text-align: right !important;
}

.ed-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ed-footer__social a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 999px;
	color: #d6d9d2;
	font-size: 14px;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.ed-footer__social a:hover {
	border-color: var(--ed-lime);
	background: var(--ed-lime);
	color: var(--ed-ink-2);
}

.ed-footer__title {
	margin: 0 0 18px;
	color: #fff;
	font-size: 16px !important;
	font-weight: 700;
	line-height: 1.4;
	text-align: right;
}

.ed-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ed-footer__links li {
	margin: 0 0 12px;
	padding: 0;
	font-size: 15px;
	line-height: 1.5;
	text-align: right;
}

.ed-footer__links a {
	position: relative;
	display: inline-block;
	padding: 0;
	color: #a3a8a0;
	transition: color .2s ease, transform .2s ease;
}

.ed-footer__links a:hover {
	color: #fff;
	transform: translateX(-4px);
}

/* Contact cards */
.ed-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ed-footer__contact .ed-footer__title {
	margin-bottom: 8px;
}

.ed-footer__card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 18px;
	background: rgba(255, 255, 255, .03);
	transition: border-color .2s ease, background-color .2s ease;
}

.ed-footer__card:hover {
	border-color: rgba(171, 250, 8, .5);
	background: rgba(255, 255, 255, .06);
}

.ed-footer__card-icon {
	display: grid;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 12px;
	background: rgba(171, 250, 8, .12);
	color: var(--ed-lime);
	font-size: 18px;
	transition: background-color .2s ease, color .2s ease;
}

.ed-footer__card:hover .ed-footer__card-icon {
	background: var(--ed-lime);
	color: var(--ed-ink-2);
}

.ed-footer__card-text {
	display: flex;
	flex-direction: column;
	text-align: right;
}

.ed-footer__card-text small {
	color: #7d827a;
	font-size: 12px;
	line-height: 1.5;
}

.ed-footer__card-text b {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	text-align: right;
}

.ed-footer__card-alt {
	color: #a3a8a0 !important;
	font-weight: 500 !important;
	font-size: 14px !important;
}

/* Products: two mini cards in their brand colors */
.ed-footer__products {
	display: grid;
	grid-template-columns: auto 1fr 1fr;
	align-items: center;
	gap: 16px;
	padding: 28px 0 8px;
	border-top: 1px solid rgba(255, 255, 255, .08);
}

.ed-footer__products-title {
	margin: 0 0 0 12px;
	color: #fff;
	font-size: 16px !important;
	font-weight: 700;
	text-align: right !important;
}

.ed-footer__product {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	border-radius: 20px;
	transition: transform .25s ease, box-shadow .25s ease;
}

.ed-footer__product:hover {
	transform: translateY(-3px);
}

.ed-footer__product img {
	display: block;
	border-radius: 11px;
}

.ed-footer__product > span:not(.ed-footer__product-icon) {
	display: flex;
	flex: 1;
	flex-direction: column;
	font-size: 13px;
	line-height: 1.5;
	text-align: right;
}

.ed-footer__product b {
	font-size: 17px;
	font-weight: 900;
}

.ed-footer__product em {
	font-size: 13px;
	font-style: normal;
	opacity: .75;
	direction: ltr;
}

.ed-footer__product--shop {
	border: 1px solid rgba(171, 250, 8, .35);
	background: #1a1a1a;
	color: #c9ccc4 !important;
}

.ed-footer__product--shop b,
.ed-footer__product--shop em {
	color: var(--ed-lime);
}

.ed-footer__product--shop:hover {
	box-shadow: 0 16px 34px -18px rgba(171, 250, 8, .5);
}

.ed-footer__product--osolna {
	background: #055a48;
	color: #cfe0da !important;
}

.ed-footer__product--osolna b {
	color: #f6f2e6;
}

.ed-footer__product--osolna em {
	color: #e3c27f;
}

.ed-footer__product--osolna:hover {
	box-shadow: 0 16px 34px -18px rgba(199, 150, 58, .6);
}

.ed-footer__product-icon {
	display: grid;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 11px;
	background: #f6f2e6;
}

/* 3. Giant wordmark with a mouse spotlight */
.ed-footer__mark {
	--x: -999px;
	--y: -999px;
	position: relative;
	width: min(1400px, calc(100vw - 32px));
	margin: 40px auto 0;
	cursor: crosshair;
	user-select: none;
}

.ed-footer__mark-layer {
	display: flex;
	justify-content: space-between;
	gap: 3vw;
	padding: .05em 0 .5em; /* Arabic descenders (ع، ية) hang below the line */
}

.ed-footer__mark-layer span {
	display: block;
	font-size: clamp(64px, 14vw, 230px);
	font-weight: 900;
	line-height: 1.15;
	transform: translateY(35%);
	opacity: 0;
	transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .9s ease;
}

.ed-footer__mark-layer span + span {
	transition-delay: .12s;
}

.ed-footer__mark.is-in .ed-footer__mark-layer span {
	transform: none;
	opacity: 1;
}

.ed-footer__mark-layer--outline span {
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(255, 255, 255, .22);
}

.ed-footer__mark-layer--fill {
	position: absolute;
	inset: 0;
	pointer-events: none;
	-webkit-mask-image: radial-gradient(230px circle at var(--x) var(--y), #000 0 60%, transparent 100%);
	mask-image: radial-gradient(230px circle at var(--x) var(--y), #000 0 60%, transparent 100%);
	opacity: 0;
	transition: opacity .25s ease;
}

.ed-footer__mark-layer--fill span {
	color: var(--ed-lime);
}

.ed-footer__mark.is-lit .ed-footer__mark-layer--fill {
	opacity: 1;
}

/* Bottom bar */
.ed-footer__bottom {
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .08);
}

.ed-footer__bottom p {
	margin: 0;
	color: #7d827a;
	font-size: 14px;
	line-height: 1.6;
	text-align: right !important;
}

/* Offices row above the copyright: address and registration badges per country
   (ed_company() in functions.php). */
.ed-offices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin: 8px 0 28px;
}

.ed-office {
	padding: 22px 24px;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 20px;
	background: rgba(255, 255, 255, .02);
}

.ed-office__country {
	margin: 0 0 6px;
	color: var(--ed-lime);
	font-size: 13px;
	font-weight: 700;
	text-align: right !important;
}

.ed-office__address {
	margin: 0 0 18px;
	color: #d9dbd6;
	font-size: 15px;
	line-height: 1.7;
	text-align: right !important;
}

@media (max-width: 767px) {
	.ed-offices {
		grid-template-columns: 1fr;
	}
}

.ed-footer__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ed-badge {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ed-badge img {
	display: block;
	flex: 0 0 auto;
	border-radius: 6px;
}

.ed-badge__icon {
	display: grid;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 10px;
	background: rgba(255, 255, 255, .08);
	color: var(--ed-lime);
}

.ed-badge__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: right;
}

.ed-badge__label {
	color: #7d827a;
	font-size: 12px;
	line-height: 1.4;
}

.ed-badge__num {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .5px;
	line-height: 1.3;
	unicode-bidi: isolate;
}

@media (max-width: 1199px) {
	.ed-footer__body {
		grid-template-columns: repeat(3, 1fr);
	}

	.ed-footer__brand,
	.ed-footer__contact {
		grid-column: 1 / -1;
	}

	.ed-footer__contact {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
	}

	.ed-footer__contact .ed-footer__title {
		grid-column: 1 / -1;
	}
}

@media (max-width: 768px) {
	.ed-footer {
		padding-top: 48px;
	}

	.ed-footer__bar {
		flex-wrap: wrap;
		padding: 22px;
		border-radius: 24px;
	}

	.ed-footer__bar-text {
		flex-basis: 100%;
		padding: 0;
		font-size: 22px !important;
	}

	.ed-footer__body {
		grid-template-columns: repeat(2, 1fr);
		gap: 36px 24px;
		padding: 48px 0 32px;
	}

	.ed-footer__contact {
		grid-template-columns: 1fr;
	}

	.ed-footer__products {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ed-footer__btn,
	.ed-footer__links a,
	.ed-footer__product {
		transition: none;
	}

	.ed-footer__btn:hover,
	.ed-footer__links a:hover,
	.ed-footer__product:hover {
		transform: none;
	}

	.ed-footer__mark-layer span {
		transform: none;
		opacity: 1;
		transition: none;
	}
}

/* Thmanyah's deep descenders (ع، ية) need space below the giant wordmark. */
.ed-footer__mark {
	padding-bottom: clamp(24px, 4.5vw, 72px);
}

/* Company profile download (shared by every footer style) */
.ed-profile {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 24px;
	padding: 22px 24px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 24px;
	background: rgba(255, 255, 255, .03);
}

.ed-profile__icon {
	display: grid;
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	place-items: center;
	border-radius: 16px;
	background: rgba(171, 250, 8, .12);
	color: var(--ed-lime);
}

.ed-profile__text {
	flex: 1;
}

.ed-profile__title {
	margin: 0 0 4px;
	color: #fff;
	font-size: 20px !important;
	font-weight: 900;
	text-align: right !important;
}

.ed-profile__lead {
	margin: 0;
	color: #a3a8a0;
	font-size: 15px;
	line-height: 1.7;
	text-align: right !important;
}

.ed-profile__btn {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 10px;
	padding: 14px 24px;
	border-radius: 999px;
	background: var(--ed-lime);
	color: var(--ed-ink-2) !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
	transition: transform .2s ease, box-shadow .25s ease;
}

.ed-profile__btn small {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--ed-ink-2);
	color: var(--ed-lime);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
}

.ed-profile__btn:hover,
.ed-profile__btn:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 0 0 6px rgba(171, 250, 8, .14), 0 14px 30px -12px rgba(171, 250, 8, .55);
}

@media (max-width: 768px) {
	.ed-profile {
		flex-wrap: wrap;
	}

	.ed-profile__text {
		flex-basis: calc(100% - 76px);
	}

	.ed-profile__btn {
		width: 100%;
		justify-content: center;
	}
}

/* ---------------- Footer style 2: big type (?ft=2) ---------------- */
.fs-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fs-links li {
	margin: 0;
	padding: 0;
	text-align: right;
}

.fs2 {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 56px;
	padding: 64px 0 48px;
}

.fs2__nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
}

.fs2__label {
	margin: 0 0 14px;
	color: #7d827a;
	font-size: 14px !important;
	font-weight: 500;
	text-align: right !important;
}

.fs2 .fs-links a {
	display: inline-block;
	padding: 4px 0;
	color: #fff;
	font-size: clamp(22px, 2.2vw, 32px);
	font-weight: 900;
	line-height: 1.35;
	background: linear-gradient(var(--ed-lime), var(--ed-lime)) right bottom / 0 3px no-repeat;
	transition: color .2s ease, background-size .3s ease;
}

.fs2 .fs-links a:hover,
.fs2 .fs-links a:focus-visible {
	color: var(--ed-lime);
	background-size: 100% 3px;
}

.fs2__email {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.fs2__email a {
	color: #fff;
	font-size: clamp(22px, 2.4vw, 34px);
	font-weight: 900;
	transition: color .2s ease;
}

.fs2__email a:hover {
	color: var(--ed-lime);
}

.fs2__copy {
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 999px;
	background: transparent;
	color: #d6d9d2;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.fs2__copy:hover,
.fs2__copy.is-done {
	border-color: var(--ed-lime);
	background: var(--ed-lime);
	color: var(--ed-ink-2);
}

.fs2__phones {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin-bottom: 32px;
}

.fs2__phones a {
	color: #a3a8a0;
	font-size: 18px;
	font-weight: 700;
}

.fs2__phones a:hover {
	color: #fff;
}

.fs2__products {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
}

.fs2__products a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px 8px 10px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 999px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	transition: border-color .2s ease;
}

.fs2__products a:hover {
	border-color: var(--ed-lime);
}

.fs2__products img {
	display: block;
	border-radius: 8px;
}

.fs2__products .fs2__products-all {
	border-color: rgba(171, 250, 8, .45);
	color: var(--ed-lime);
}

.fs2__products .fs2__products-all i {
	font-style: normal;
	transition: transform .2s ease;
}

.fs2__products .fs2__products-all:hover i {
	transform: translateX(-3px);
}

.fs2__products span {
	display: grid;
	width: 28px;
	height: 28px;
	place-items: center;
	border-radius: 8px;
	background: #f6f2e6;
}

.fs2__social,
.fs3__social {
	display: flex;
	gap: 10px;
}

.fs2__social a,
.fs3__social a {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-size: 18px;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.fs2__social a:hover,
.fs3__social a:hover {
	background: var(--ed-lime);
	color: var(--ed-ink-2);
	transform: translateY(-3px);
}

/* ---------------- Footer style 3: bento tiles (?ft=3) ---------------- */
.fs3 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: minmax(150px, auto);
	gap: 14px;
	padding: 24px 0 40px;
}

.fs3__tile {
	position: relative;
	padding: 24px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 24px;
	background: #1a1a1a;
	transition: transform .25s ease, box-shadow .25s ease;
}

a.fs3__tile:hover {
	transform: translateY(-4px);
}

.fs3__label {
	margin: 0 0 12px;
	color: #7d827a;
	font-size: 13px !important;
	font-weight: 700;
	text-align: right !important;
}

.fs3__brand {
	grid-column: span 2;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.fs3__brand img {
	display: block;
	width: 150px;
	height: auto;
}

.fs3__brand p {
	margin: 0;
	max-width: 420px;
	color: #a3a8a0;
	font-size: 15px;
	line-height: 1.8;
	text-align: right !important;
}

.fs3__contact {
	grid-column: span 2;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 12px;
	border-color: var(--ed-lime);
	background: var(--ed-lime);
	color: var(--ed-ink-2) !important;
}

.fs3__contact:hover {
	box-shadow: 0 22px 44px -22px rgba(171, 250, 8, .6);
}

.fs3__contact-top {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
}

.fs3__contact-top .fa {
	font-size: 22px;
}

.fs3__contact-big {
	font-size: clamp(30px, 3.4vw, 48px);
	font-weight: 900;
	line-height: 1.15;
}

.fs3__contact-line {
	align-self: flex-end;
	font-size: 18px;
	font-weight: 700;
}

.fs3__links .fs-links a {
	display: inline-block;
	padding: 5px 0;
	color: #d6d9d2;
	font-size: 15px;
	transition: color .2s ease;
}

.fs3__links .fs-links a:hover {
	color: var(--ed-lime);
}

.fs3__product {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fs3__product img {
	display: block;
	margin-bottom: auto;
	border-radius: 12px;
}

.fs3__product b {
	margin-top: 18px;
	font-size: 24px;
	font-weight: 900;
}

.fs3__product span:not(.fs3__osolna-icon) {
	font-size: 14px;
	line-height: 1.6;
}

.fs3__product--shop {
	border-color: rgba(171, 250, 8, .35);
	background: var(--ed-ink);
	color: #c9ccc4 !important;
}

.fs3__product--shop b {
	color: var(--ed-lime);
}

.fs3__product--shop:hover {
	box-shadow: 0 20px 40px -22px rgba(171, 250, 8, .5);
}

.fs3__product--osolna {
	border-color: transparent;
	background: #055a48;
	color: #cfe0da !important;
}

.fs3__product--osolna b {
	color: #f6f2e6;
}

.fs3__product--osolna:hover {
	box-shadow: 0 20px 40px -22px rgba(199, 150, 58, .6);
}

.fs3__osolna-icon {
	display: grid;
	width: 48px;
	height: 48px;
	margin-bottom: auto;
	place-items: center;
	border-radius: 12px;
	background: #f6f2e6;
}

.fs3__osolna-icon img {
	margin: 0;
	border-radius: 0;
}

.fs3__reach {
	grid-column: span 2;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fs3__reach a {
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	text-align: right;
	transition: color .2s ease;
}

.fs3__reach a:hover {
	color: var(--ed-lime);
}

@media (max-width: 991px) {
	.fs2 {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.fs3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	/* The two link lists side by side, in a smaller size, so the footer stays short on phones. */
	.fs2__nav {
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}

	.fs2 .fs-links a {
		font-size: 17px;
		padding: 3px 0;
	}

	/* Social icons and the location/language button share one row. */
	.fs2__side {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 0 12px;
	}

	.fs2__side > * {
		flex: 0 0 100%;
	}

	.fs2__side > .fs2__social,
	.fs2__side > .fs2__locale {
		flex: 0 0 auto;
		margin-top: 18px;
	}

	.fs3 {
		grid-template-columns: 1fr;
	}

	.fs3__brand,
	.fs3__contact,
	.fs3__reach {
		grid-column: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fs3__tile,
	.fs2__social a,
	.fs3__social a,
	.ed-profile__btn {
		transition: none;
	}

	a.fs3__tile:hover,
	.fs2__social a:hover,
	.fs3__social a:hover,
	.ed-profile__btn:hover {
		transform: none;
	}
}

/* Bento: product tiles are wide, laid out in a row. */
.fs3__product {
	grid-column: span 2;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 16px;
}

.fs3__product img,
.fs3__osolna-icon {
	margin-bottom: 0;
}

.fs3__product b {
	margin-top: 0;
}

.fs3__product span:not(.fs3__osolna-icon) {
	flex-basis: 100%;
	padding-right: 64px;
}

@media (max-width: 600px) {
	.fs3__product {
		grid-column: auto;
	}
}

/* ------------------------------------------------------------------
   Footer background: the giant wordmark sits behind the content at the
   bottom, partly cut by the edge; the spotlight follows the mouse.
   ------------------------------------------------------------------ */
.ed-footer {
	position: relative;
	isolation: isolate;
	padding-top: 64px;
	padding-bottom: clamp(110px, 15vw, 230px);
}

.ed-footer > .container {
	position: relative;
	z-index: 1;
}

.ed-footer .ed-footer__mark {
	position: absolute;
	right: 0;
	bottom: calc(clamp(80px, 17vw, 300px) * -.32);
	left: 0;
	z-index: 0;
	width: auto;
	margin: 0;
	padding: 0;
	pointer-events: none;
}

.ed-footer .ed-footer__mark-layer {
	justify-content: space-around;
	padding: 0;
}

.ed-footer .ed-footer__mark-layer span {
	font-size: clamp(80px, 17vw, 300px);
	line-height: 1.2;
}

.ed-footer .ed-footer__mark-layer--outline span {
	-webkit-text-stroke: 1.5px rgba(255, 255, 255, .14);
}

.ed-footer .ed-footer__mark-layer--fill {
	-webkit-mask-image: radial-gradient(280px circle at var(--x) var(--y), #000 0 50%, transparent 100%);
	mask-image: radial-gradient(280px circle at var(--x) var(--y), #000 0 50%, transparent 100%);
}

.ed-footer .ed-footer__mark-layer--fill span {
	color: var(--ed-lime);
	opacity: .9;
}

/* The copyright sits over the wordmark; keep it legible. */
.ed-footer__bottom {
	border-top-color: rgba(255, 255, 255, .1);
}

/* Wordmark sits behind the footer content (centered), in English, faint enough
   that the links stay readable; no extra space below the footer. */
.ed-footer {
	padding-bottom: 28px;
}

.ed-footer .ed-footer__mark {
	top: 50%;
	bottom: auto;
	transform: translateY(-50%);
	direction: ltr;
}

.ed-footer .ed-footer__mark-layer {
	justify-content: center;
	gap: .25em;
	padding: 0;
}

.ed-footer .ed-footer__mark-layer span {
	font-size: clamp(64px, 11.5vw, 220px);
	line-height: 1;
	letter-spacing: -.02em;
	white-space: nowrap;
}

.ed-footer .ed-footer__mark-layer--outline span {
	-webkit-text-stroke: 1.5px rgba(255, 255, 255, .09);
}

.ed-footer .ed-footer__mark-layer--fill span {
	opacity: .35;
}

@media (max-width: 768px) {
	.ed-footer .ed-footer__mark-layer {
		flex-direction: column;
		align-items: center;
		gap: 0;
	}

	.ed-footer .ed-footer__mark-layer span {
		font-size: 26vw;
		line-height: 1.05;
	}
}

/* Spotlight: soft grey at very low opacity, so the footer stays readable on hover. */
.ed-footer .ed-footer__mark-layer--fill span {
	color: #fff;
	opacity: .07;
}

/* English wordmark font (loaded in heads.php). */
.ed-footer .ed-footer__mark-layer span {
	font-family: "Syne", "Thmanyah Sans", sans-serif !important;
	font-weight: 800;
	font-size: clamp(56px, 9.6vw, 190px);
	letter-spacing: -.03em;
}

@media (max-width: 768px) {
	.ed-footer .ed-footer__mark-layer span {
		font-size: 19vw;
	}
}

/* Spotlight: faint grey baked into the colour (the rise-in rule sets opacity: 1). */
.ed-footer .ed-footer__mark .ed-footer__mark-layer--fill span {
	color: rgba(200, 204, 198, .08);
	opacity: 1;
}

/* Syne is wide: size the wordmark so "Digital Creativity" fits the screen. */
.ed-footer .ed-footer__mark .ed-footer__mark-layer span {
	font-size: clamp(44px, 7.4vw, 150px);
}

@media (max-width: 768px) {
	.ed-footer .ed-footer__mark .ed-footer__mark-layer span {
		font-size: 14vw;
	}
}

/* Wordmark font: Inter Tight Black (compact, not stretched). */
.ed-footer .ed-footer__mark .ed-footer__mark-layer span {
	font-family: "Inter Tight", "Thmanyah Sans", sans-serif !important;
	font-weight: 900;
	font-size: clamp(56px, 10vw, 200px);
	letter-spacing: -.045em;
}

@media (max-width: 768px) {
	.ed-footer .ed-footer__mark .ed-footer__mark-layer span {
		font-size: 19vw;
	}
}

/* Wordmark centred (vertically and horizontally) on the links area, full screen width. */
.fs2 {
	position: relative;
}

.fs2 > :not(.ed-footer__mark) {
	position: relative;
	z-index: 1;
}

.ed-footer .fs2 .ed-footer__mark {
	position: absolute;
	top: 50%;
	right: auto;
	bottom: auto;
	left: 50%;
	z-index: 0;
	width: 100vw;
	transform: translate(-50%, -50%);
}

.ed-footer .ed-footer__mark-layer span + span {
	margin-left: .22em;
}

/* Wordmark font: Inter ExtraBold at natural spacing (neither stretched nor squeezed). */
.ed-footer .ed-footer__mark .ed-footer__mark-layer span {
	font-family: "Inter", "Thmanyah Sans", sans-serif !important;
	font-weight: 800;
	font-size: clamp(52px, 9vw, 180px);
	letter-spacing: -.01em;
}

@media (max-width: 768px) {
	.ed-footer .ed-footer__mark .ed-footer__mark-layer span {
		font-size: 17vw;
	}
}

/* Inter's glyphs overlap internally, so a text outline shows cut lines.
   Use a faint solid fill instead of an outline. */
.ed-footer .ed-footer__mark .ed-footer__mark-layer--outline span {
	color: rgba(255, 255, 255, .045);
	-webkit-text-stroke: 0;
}

/* Our products in the menu show their own app icons (Osolna, Arab Shop) instead of line icons. */
#headerMenuFixed #nav > li > ul.sub-menu > li > a img.ed-menu-logo {
	display: block !important;
	flex: 0 0 40px;
	width: 40px !important;
	height: 40px !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 12px;
	box-shadow: 0 0 0 1px rgba(17, 17, 17, .06);
	transition: transform .15s ease;
}

/* Osolna: the light (green and gold) symbol on its cream, kept at its own proportions. */
#headerMenuFixed #nav > li > ul.sub-menu > li > a img.ed-menu-logo--osolna {
	padding: 6px !important;
	box-sizing: border-box;
	background: #f6f2e6;
	object-fit: contain;
}

#headerMenuFixed #nav > li > ul.sub-menu > li > a:hover img.ed-menu-logo {
	transform: scale(1.06);
}

@media (max-width: 768px) {
	#headerMenuFixed #nav > li > ul.sub-menu > li > a img.ed-menu-logo {
		flex-basis: 36px;
		width: 36px !important;
		height: 36px !important;
		border-radius: 10px;
	}
}

/* Site search: the round button in the bar and the search box over the page. */
#headerMenuFixed .ed-search-btn {
	display: grid;
	flex: none;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ed-tint-f0f0ec);
	color: var(--ed-tx-1f1f1f);
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

#headerMenuFixed .ed-search-btn svg {
	width: 20px;
	height: 20px;
}

#headerMenuFixed .ed-search-btn:hover,
#headerMenuFixed .ed-search-btn:focus-visible {
	background: var(--ed-ink-2);
	color: var(--ed-lime);
}

.ed-sdlg {
	width: min(720px, calc(100vw - 32px));
	margin: 12vh auto auto;
	padding: 22px;
	border: 0;
	border-radius: 28px;
	background: var(--ed-ink-2);
	color: #fff;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6), 0 0 120px -40px rgba(171, 250, 8, .5);
}

.ed-sdlg,
.ed-sdlg * {
	font-family: "Thmanyah Sans", sans-serif !important;
}

.ed-sdlg::backdrop {
	background: rgba(10, 10, 10, .6);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.ed-sdlg__form {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 20px 8px 8px;
	border-radius: 999px;
	background: var(--ed-surface);
	color: var(--ed-muted-3);
}

.ed-sdlg__form svg {
	flex: none;
	width: 22px;
	height: 22px;
}

.ed-sdlg__form input {
	flex: 1;
	min-width: 0;
	height: 48px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	outline: 0;
	background: transparent !important;
	color: var(--ed-text) !important;
	font-size: 18px !important;
}

.ed-sdlg__form button {
	flex: none;
	padding: 13px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--ed-lime);
	color: var(--ed-ink-2);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.ed-sdlg__hints {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 16px 6px 0;
	color: var(--ed-muted-3);
	font-size: 14px;
	text-align: right !important;
}

.ed-sdlg__hints a {
	padding: 5px 14px;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 999px;
	color: #fff !important;
	text-decoration: none !important;
}

.ed-sdlg__hints a:hover {
	border-color: var(--ed-lime);
	color: var(--ed-lime) !important;
}

.ed-sdlg__close {
	margin-right: auto;
	padding: 5px 12px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 8px;
	background: var(--ed-ink-2);
	color: #b9bcb5;
	font-size: 12px;
	cursor: pointer;
}

@media (max-width: 600px) {
	.ed-sdlg {
		margin-top: 80px;
		padding: 16px;
		border-radius: 22px;
	}

	.ed-sdlg__form button {
		padding: 13px 16px;
	}

	#headerMenuFixed .ed-search-btn {
		width: 38px;
		height: 38px;
	}
}

/* Footer: one button for location (currency) and language. */
.fs2__locale {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	padding: 9px 16px 9px 14px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease;
}

.fs2__locale:hover {
	border-color: var(--ed-lime);
	background: rgba(171, 250, 8, .08);
}

.fs2__flag {
	font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif !important;
	font-size: 18px;
	line-height: 1;
}

.fs2__locale i {
	color: #6b6e68;
	font-style: normal;
}

.fs2__locale bdi {
	color: var(--ed-lime);
	font-weight: 700;
}

.fs2__locale svg {
	width: 14px;
	height: 14px;
	color: var(--ed-muted-3);
}

/* The settings panel slides in from the page's end side (left in Arabic). */
.ed-locale {
	position: fixed;
	inset: 0 auto 0 0;
	width: min(440px, 100vw);
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 34px 32px;
	border: 0;
	background: var(--ed-surface);
	color: var(--ed-text);
	box-shadow: 30px 0 80px -30px rgba(0, 0, 0, .5);
	animation: ed-locale-in .35s cubic-bezier(.2, .7, .2, 1);
}

.ed-locale,
.ed-locale * {
	font-family: "Thmanyah Sans", sans-serif !important;
}

.ed-locale span {
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Thmanyah Sans", sans-serif !important;
}

@keyframes ed-locale-in {
	from { transform: translateX(-100%); }
	to { transform: none; }
}

.ed-locale::backdrop {
	background: rgba(10, 10, 10, .55);
}

.ed-locale__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 44px;
}

.ed-locale__head h2 {
	margin: 0;
	color: var(--ed-text);
	font-size: 24px !important;
	font-weight: 900;
}

.ed-locale__x {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: var(--ed-bg-2);
	color: var(--ed-text);
	font-size: 26px;
	line-height: 40px;
	cursor: pointer;
}

.ed-locale__x:hover {
	background: var(--ed-ink);
	color: var(--ed-lime);
}

.ed-locale__lbl {
	margin: 0 0 10px;
	color: var(--ed-text-3);
	font-size: 15px;
	text-align: right !important;
}

.ed-locale__dd {
	position: relative;
	margin-bottom: 26px;
}

.ed-locale__val {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 16px 18px;
	border: 1px solid var(--ed-rule-dcdcd5);
	border-radius: 16px;
	background: var(--ed-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23151515' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left 16px center / 18px;
	color: var(--ed-text);
	font-size: 17px;
	font-weight: 700;
	text-align: right;
	cursor: pointer;
}

:root[data-theme="dark"] .ed-locale__val {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23f1f1ec' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.ed-locale__dd.is-open .ed-locale__val {
	border-color: var(--ed-edge);
	box-shadow: 0 0 0 3px rgba(171, 250, 8, .5);
}

.ed-locale__val span,
.ed-locale__list span {
	font-size: 22px;
	line-height: 1;
}

.ed-locale__list {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	left: 0;
	z-index: 2;
	margin: 0;
	padding: 6px;
	border: 1px solid var(--ed-line);
	border-radius: 16px;
	background: var(--ed-surface);
	list-style: none;
	box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .35);
}

.ed-locale__list[hidden] {
	display: none;
}

.ed-locale__list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 14px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.ed-locale__list li small {
	margin-right: auto;
	color: var(--ed-muted-3);
	font-size: 13px;
	font-weight: 400;
}

.ed-locale__list li:hover,
.ed-locale__list li[aria-selected="true"] {
	background: var(--ed-tint-f4f4ef);
}

.ed-locale__list li[aria-disabled="true"] {
	color: #a5a5a0;
	cursor: not-allowed;
}

.ed-locale__list li[aria-disabled="true"] small {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--ed-lime);
	color: var(--ed-ink-2);
}

.ed-locale__list li.is-shake {
	animation: ed-shake .4s ease;
}

@keyframes ed-shake {
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}

.ed-locale__theme {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
	margin-bottom: 30px;
	padding: 4px;
	border: 1px solid var(--ed-rule-dcdcd5);
	border-radius: 16px;
}

.ed-locale__theme button {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 12px 6px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--ed-muted);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.ed-locale__theme svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ed-locale__theme button:hover {
	color: var(--ed-text);
}

.ed-locale__theme button[aria-checked="true"] {
	background: var(--ed-lime);
	color: var(--ed-ink-2);
}

.ed-locale__ok {
	margin-top: 6px;
	padding: 16px 30px;
	border: 0;
	border-radius: 16px;
	background: var(--ed-ink);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

:root[data-theme="dark"] .ed-locale__ok {
	background: var(--ed-text);
	color: var(--ed-ink-2);
}

.ed-locale__ok:hover,
:root[data-theme="dark"] .ed-locale__ok:hover {
	background: var(--ed-lime);
	color: var(--ed-ink-2);
}

@media (prefers-reduced-motion: reduce) {
	.ed-locale {
		animation: none;
	}
}

@media (max-width: 600px) {
	.ed-locale {
		padding: 26px 20px;
	}

	.ed-locale__ok {
		width: 100%;
	}
}

.fs2__locale b {
	color: #fff !important;
	font-weight: 700;
}

/* Client area panel under the lock (header.php .ed-acct). */
#headerMenuFixed .LoginLinks {
	position: relative;
}

#headerMenuFixed .ed-acct-btn svg,
#headerMenuFixed .ed-acct-btn svg path {
	fill: none !important;
}

#headerMenuFixed .ed-acct-btn {
	color: var(--ed-tx-1f1f1f);
}

#headerMenuFixed .ed-acct-btn circle {
	fill: currentColor !important;
}

#headerMenuFixed .ed-acct-btn[aria-expanded="true"] {
	background: var(--ed-ink-2);
	color: var(--ed-lime);
}

.ed-acct {
	position: absolute;
	top: calc(100% + 12px);
	left: 0;
	z-index: 1001;
	display: flex;
	flex-direction: column;
	gap: 2px;
	width: 280px;
	padding: 10px;
	border: 1px solid var(--ed-line);
	border-radius: 20px;
	background: var(--ed-surface);
	box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .35);
	direction: rtl;
	animation: ed-acct-in .18s ease-out;
}

.ed-acct[hidden] {
	display: none;
}

@keyframes ed-acct-in {
	from { opacity: 0; transform: translateY(-6px); }
}

.ed-acct,
.ed-acct *:not(.fa) {
	font-family: "Thmanyah Sans", sans-serif !important;
}

#headerMenuFixed .ed-acct a {
	text-decoration: none !important;
}

.ed-acct__head {
	padding: 6px 8px 12px;
	text-align: right;
}

.ed-acct__head b {
	display: block;
	margin-bottom: 2px;
	color: var(--ed-text);
	font-size: 16px;
	font-weight: 900;
}

.ed-acct__head small {
	display: block;
	color: var(--ed-muted-2);
	font-size: 13px;
	line-height: 1.6;
}

.ed-acct__cta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin-bottom: 6px;
}

#headerMenuFixed .ed-acct__cta a {
	display: grid;
	place-items: center;
	padding: 10px;
	border: 1px solid var(--ed-line);
	border-radius: 12px;
	color: var(--ed-text) !important;
	font-size: 14px;
	font-weight: 700;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

#headerMenuFixed .ed-acct__cta a:hover {
	background: var(--ed-bg-2);
}

#headerMenuFixed .ed-acct__cta .ed-acct__login {
	border-color: var(--ed-ink-2);
	background: var(--ed-ink-2);
	color: #fff !important;
}

#headerMenuFixed .ed-acct__cta .ed-acct__login:hover {
	border-color: var(--ed-lime);
	background: var(--ed-lime);
	color: var(--ed-ink-2) !important;
}

:root[data-theme="dark"] #headerMenuFixed .ed-acct__cta .ed-acct__login {
	border-color: var(--ed-lime);
	background: var(--ed-lime);
	color: var(--ed-ink-2) !important;
}

.ed-acct__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2px;
	padding-top: 6px;
	border-top: 1px solid var(--ed-line);
}

#headerMenuFixed .ed-acct__grid a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 8px;
	border-radius: 10px;
	color: var(--ed-text-2) !important;
	font-size: 14px;
	font-weight: 500;
	transition: background-color .2s ease;
}

#headerMenuFixed .ed-acct__grid a:hover {
	background: var(--ed-bg-2);
	color: var(--ed-text) !important;
}

#headerMenuFixed .ed-acct svg {
	width: 18px;
	height: 18px;
	fill: none !important;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

#headerMenuFixed .ed-acct svg path,
#headerMenuFixed .ed-acct svg circle,
#headerMenuFixed .ed-acct svg rect {
	fill: none !important;
}

#headerMenuFixed .ed-acct__wa {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 6px;
	padding: 9px;
	border-top: 1px solid var(--ed-line);
	border-radius: 0 0 12px 12px;
	color: var(--ed-muted) !important;
	font-size: 13px;
	font-weight: 500;
}

#headerMenuFixed .ed-acct__wa .fa {
	color: #25d366;
	font-size: 16px;
}

#headerMenuFixed .ed-acct__wa:hover {
	background: var(--ed-bg-2);
	color: var(--ed-text) !important;
}

@media (max-width: 600px) {
	.ed-acct {
		position: fixed;
		top: 76px;
		right: 16px;
		left: 16px;
		width: auto;
	}
}
