/* ------------------------------------------------------------------
   About page (template-about.php). Same look as the home page:
   Thmanyah, off-white and black with the lime accent.
   ------------------------------------------------------------------ */

/* Section 1: who we are, key numbers, mission and vision. */
.ed-about-hero {
	padding: 72px 0 0;
	background: var(--ed-section);
	color: var(--ed-text-2);
}

.ed-about-hero,
.ed-about-hero * {
	font-family: "Thmanyah Sans", sans-serif !important;
	letter-spacing: 0;
}

.ed-about-hero__label {
	display: inline-block;
	margin: 0 0 22px;
	padding: 6px 16px;
	border-radius: 999px;
	background: var(--ed-ink);
	color: var(--ed-lime);
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
}

.ed-about-hero__title {
	max-width: 900px;
	margin: 0 0 22px;
	color: var(--ed-text);
	font-size: 56px !important;
	font-weight: 900;
	line-height: 1.3;
	text-align: right;
}

/* Highlighter stroke, as on the home page numbers. */
.ed-about-hero .ed-num {
	display: inline-block;
	padding: 0 .14em;
	background: linear-gradient(to top, transparent 8%, var(--ed-lime) 8%, var(--ed-lime) 46%, transparent 46%);
	border-radius: .08em;
	font-size: 1.08em;
	line-height: 1;
}

:root[data-theme="dark"] .ed-about-hero .ed-num {
	background: linear-gradient(to top, transparent 8%, rgba(171, 250, 8, .55) 8%, rgba(171, 250, 8, .55) 46%, transparent 46%);
}

.ed-about-hero__lead {
	max-width: 760px;
	margin: 0;
	color: var(--ed-muted);
	font-size: 19px;
	line-height: 1.9;
	text-align: right !important;
}

/* Key numbers. */
.ed-about-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin: 64px 0 0;
	padding: 0;
	border-top: 2px solid var(--ed-edge);
	list-style: none;
}

.ed-about-stats li {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 28px 24px 0;
	border-left: 1px solid var(--ed-rule-deded8);
}

.ed-about-stats li:first-child {
	padding-right: 0;
}

.ed-about-stats li:last-child {
	border-left: 0;
}

.ed-about-stats__num {
	color: var(--ed-text);
	font-size: 56px;
	font-weight: 900;
	line-height: 1;
	direction: ltr;
	text-align: right;
}

.ed-about-stats__label {
	color: var(--ed-tx-3a3a37);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
}

/* Mission and vision. */
.ed-about-mv {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 64px;
}

.ed-about-mv__card {
	padding: 36px 36px 40px;
	border: 1px solid var(--ed-line);
	border-radius: 24px;
	background: var(--ed-surface);
}

.ed-about-mv__card--dark {
	border-color: var(--ed-ink);
	background: var(--ed-ink);
}

.ed-about-mv__label {
	margin: 0 0 14px;
	color: var(--ed-text);
	font-size: 15px;
	font-weight: 700;
	text-align: right !important;
}

.ed-about-mv__label::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-left: 10px;
	border-radius: 50%;
	background: var(--ed-lime);
	vertical-align: 1px;
}

.ed-about-mv__text {
	margin: 0;
	color: var(--ed-text-2);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.75;
	text-align: right !important;
}

.ed-about-mv__card--dark .ed-about-mv__label {
	color: var(--ed-lime);
}

.ed-about-mv__card--dark .ed-about-mv__text {
	color: #fff;
}

/* Logo-color arches standing on the bottom edge of the section. */
.ed-about-arches {
	display: block;
	width: 100%;
	max-width: 1515px;
	height: auto;
	margin: 88px auto 0;
}

.ed-about-arches .ed-arch {
	transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}

.ed-about-arches.is-waiting .ed-arch {
	transform: translateY(230px);
}

.ed-about-arches.is-in .ed-arch:nth-child(2) { transition-delay: .06s; }
.ed-about-arches.is-in .ed-arch:nth-child(3) { transition-delay: .12s; }
.ed-about-arches.is-in .ed-arch:nth-child(4) { transition-delay: .18s; }
.ed-about-arches.is-in .ed-arch:nth-child(5) { transition-delay: .24s; }
.ed-about-arches.is-in .ed-arch:nth-child(6) { transition-delay: .30s; }

@media (max-width: 991px) {
	.ed-about-hero {
		padding: 56px 0 0;
	}

	.ed-about-hero__title {
		font-size: 42px !important;
	}

	.ed-about-stats {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 28px;
	}

	.ed-about-stats li:nth-child(2) {
		border-left: 0;
	}

	.ed-about-stats li:nth-child(3) {
		padding-right: 0;
	}

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

@media (max-width: 600px) {
	.ed-about-hero {
		padding: 40px 0 0;
	}

	.ed-about-hero__title {
		font-size: 32px !important;
	}

	.ed-about-hero__lead {
		font-size: 17px;
	}

	.ed-about-stats {
		margin-top: 44px;
	}

	.ed-about-stats li {
		padding: 22px 16px 0;
	}

	.ed-about-stats__num {
		font-size: 42px;
	}

	.ed-about-stats__label {
		font-size: 14px;
	}

	.ed-about-mv {
		margin-top: 44px;
	}

	.ed-about-arches {
		margin-top: 56px;
	}

	.ed-about-mv__card {
		padding: 28px 24px 30px;
	}

	.ed-about-mv__text {
		font-size: 19px;
	}
}

/* ------------------------------------------------------------------
   Section 2: timeline. Dark band under the arches. The title and a big
   outlined year stay in view on the right while the events scroll by.
   ------------------------------------------------------------------ */
.ed-tl {
	padding: 88px 0 88px;
	background: var(--ed-ink-2);
	color: #fff;
}

.ed-tl,
.ed-tl * {
	font-family: "Thmanyah Sans", sans-serif !important;
	letter-spacing: 0;
}

.ed-tl__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 72px;
}

/* Bootstrap's .container clearfix pseudo-elements would take grid cells. */
.ed-tl .ed-tl__grid::before,
.ed-tl .ed-tl__grid::after {
	display: none;
}

.ed-tl__sticky {
	position: sticky;
	top: 130px;
}

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

.ed-tl__title {
	margin: 0;
	color: #fff;
	font-size: 38px !important;
	font-weight: 900;
	line-height: 1.3;
	text-align: right;
}

.ed-tl__year {
	height: 112px;
	margin: 32px 0 22px;
	overflow: hidden;
	text-align: right !important;
}

.ed-tl__year span {
	display: inline-block;
	color: transparent;
	font-size: 124px;
	font-weight: 900;
	line-height: .9;
	-webkit-text-stroke: 2px #abfa08;
	font-variant-numeric: tabular-nums;
	direction: ltr;
	transition: transform .32s cubic-bezier(.2, .7, .2, 1), opacity .32s ease;
}

.ed-tl__year span.is-out {
	opacity: 0;
	transform: translateY(-40%);
	transition-duration: .18s;
}

.ed-tl__year span.is-in {
	opacity: 0;
	transform: translateY(40%);
	transition: none;
}

.ed-tl__progress {
	height: 3px;
	border-radius: 3px;
	background: rgba(255, 255, 255, .12);
	overflow: hidden;
}

.ed-tl__progress span {
	display: block;
	height: 100%;
	background: var(--ed-lime);
	transform-origin: right;
	transition: transform .5s ease;
}

.ed-tl__count {
	margin: 14px 0 0;
	color: #8a8d86;
	font-size: 14px;
	text-align: right !important;
}

.ed-tl__count b {
	color: #fff;
}

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

.ed-tl__item {
	display: grid;
	grid-template-columns: 56px 1fr;
	grid-template-areas: "num date" "num name" "num text";
	column-gap: 20px;
	padding: 24px 0;
	border-top: 1px solid rgba(255, 255, 255, .1);
	opacity: .32;
	transition: opacity .4s ease;
}

.ed-tl__item:last-child {
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.ed-tl__item.is-active {
	opacity: 1;
}

.ed-tl__num {
	grid-area: num;
	padding-top: 4px;
	color: var(--ed-lime);
	font-size: 15px;
	font-weight: 700;
}

.ed-tl__date {
	grid-area: date;
	color: #8a8d86;
	font-size: 14px;
	font-weight: 700;
}

.ed-tl__name {
	grid-area: name;
	margin: 2px 0 6px;
	color: #fff;
	font-size: 22px !important;
	font-weight: 900;
	line-height: 1.35;
	text-align: right;
}

.ed-tl__text {
	grid-area: text;
	max-width: 600px;
	margin: 0;
	color: var(--ed-muted-4);
	font-size: 16px;
	line-height: 1.75;
	text-align: right !important;
}

/* The latest step gets a lime marker. */
.ed-tl__item.is-now .ed-tl__name::after {
	content: "الآن";
	display: inline-block;
	margin-right: 12px;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--ed-lime);
	color: var(--ed-ink-2);
	font-size: 13px;
	font-weight: 700;
	line-height: 20px;
	vertical-align: 6px;
}

@media (max-width: 991px) {
	.ed-tl {
		padding: 72px 0 80px;
	}

	.ed-tl__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.ed-tl__sticky {
		position: static;
	}

	.ed-tl__title {
		font-size: 34px !important;
	}

	/* No sticky side on small screens: every event stays fully visible. */
	.ed-tl__year,
	.ed-tl__progress,
	.ed-tl__count {
		display: none;
	}

	.ed-tl__item {
		opacity: 1;
	}
}

@media (max-width: 600px) {
	.ed-tl {
		padding: 56px 0 64px;
	}

	.ed-tl__title {
		font-size: 27px !important;
	}

	.ed-tl__item {
		grid-template-columns: 40px 1fr;
		column-gap: 12px;
		padding: 20px 0;
	}

	.ed-tl__name {
		font-size: 19px !important;
	}

	.ed-tl__text {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ed-tl__item,
	.ed-tl__year span,
	.ed-tl__progress span {
		transition: none;
	}
}

/* ------------------------------------------------------------------
   Section 3: offices (Riyadh, Cairo). Data: ed_company() in functions.php.
   ------------------------------------------------------------------ */
.ed-offices-sec {
	padding: 96px 0 104px;
	background: var(--ed-section);
	color: var(--ed-text-2);
}

.ed-offices-sec,
.ed-offices-sec * {
	font-family: "Thmanyah Sans", sans-serif !important;
	letter-spacing: 0;
}

/* Keep the icon font on Font Awesome icons (the rule above sets every element's font). */
.ed-offices-sec .fa {
	font-family: FontAwesome !important;
	font-size: 17px;
}

.ed-offices-sec__head {
	max-width: 720px;
	margin-bottom: 48px;
}

.ed-offices-sec__label {
	margin: 0 0 14px;
	color: var(--ed-text);
	font-size: 15px;
	font-weight: 700;
	text-align: right !important;
}

.ed-offices-sec__label::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-left: 10px;
	border-radius: 50%;
	background: var(--ed-lime);
	vertical-align: 1px;
}

.ed-offices-sec__title {
	margin: 0 0 14px;
	color: var(--ed-text);
	font-size: 42px !important;
	font-weight: 900;
	line-height: 1.3;
	text-align: right;
}

.ed-offices-sec__lead {
	margin: 0;
	color: var(--ed-muted);
	font-size: 18px;
	line-height: 1.8;
	text-align: right !important;
}

.ed-office-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.ed-office-card {
	position: relative;
	padding: 36px 36px 30px;
	border: 1px solid var(--ed-line);
	border-radius: 28px;
	background: var(--ed-surface);
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease;
}

.ed-office-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 26px 50px -30px rgba(17, 17, 17, .35);
}

/* A logo-color arch in the corner, like the arches under the intro. */
.ed-office-card__arch {
	position: absolute;
	top: 30px;
	left: 30px;
	width: 92px;
	height: auto;
}

.ed-office-card--sa .ed-office-card__arch {
	stroke: #f7941e;
}

.ed-office-card--eg .ed-office-card__arch {
	stroke: #3db5e7;
}

.ed-office-card__country {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 6px;
	color: var(--ed-muted-2);
	font-size: 15px;
	font-weight: 700;
	text-align: right !important;
}

.ed-office-card__tag {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--ed-lime);
	color: var(--ed-ink);
	font-size: 12px;
	line-height: 18px;
}

.ed-office-card__city {
	margin: 0 0 14px;
	color: var(--ed-text);
	font-size: 56px !important;
	font-weight: 900;
	line-height: 1.1;
	text-align: right;
}

.ed-office-card__address {
	max-width: 420px;
	min-height: 58px;
	margin: 0 0 26px;
	color: var(--ed-tx-3a3a37);
	font-size: 17px;
	line-height: 1.7;
	text-align: right !important;
}

.ed-office-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
}

.ed-office-card__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	border: 1px solid var(--ed-rule-d9d9d2);
	border-radius: 999px;
	color: var(--ed-text) !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 20px;
	text-decoration: none !important;
	transition: background-color .2s ease, border-color .2s ease;
}

.ed-office-card__btn:hover {
	border-color: var(--ed-edge);
	background: var(--ed-tint-f2f2ee);
}

.ed-office-card__btn--main {
	border-color: var(--ed-ink);
	background: var(--ed-ink);
	color: #fff !important;
	unicode-bidi: isolate;
}

.ed-office-card__btn--main:hover {
	background: #000;
}

.ed-office-card__reg {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 36px;
	margin: 0;
	padding-top: 20px;
	border-top: 1px solid var(--ed-rule-ecece6);
}

.ed-office-card__reg dt {
	color: #8a8a84;
	font-size: 12px;
	font-weight: 500;
}

.ed-office-card__reg dd {
	margin: 2px 0 0;
	color: var(--ed-text);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .5px;
	text-align: right;
}

@media (max-width: 991px) {
	.ed-offices-sec {
		padding: 72px 0 80px;
	}

	.ed-offices-sec__title {
		font-size: 34px !important;
	}

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

@media (max-width: 600px) {
	.ed-offices-sec {
		padding: 56px 0 64px;
	}

	.ed-offices-sec__title {
		font-size: 27px !important;
	}

	.ed-office-card {
		padding: 28px 22px 24px;
	}

	.ed-office-card__arch {
		top: 24px;
		left: 20px;
		width: 64px;
	}

	.ed-office-card__city {
		font-size: 42px !important;
	}

	.ed-office-card__actions {
		gap: 8px;
	}

	.ed-office-card__address {
		min-height: 0;
	}

	/* Phones: the number on its own row, WhatsApp and map side by side. */
	.ed-office-card__btn {
		flex: 1 1 0;
		justify-content: center;
		padding: 11px 14px;
		font-size: 14px;
	}

	.ed-office-card__btn--main {
		flex-basis: 100%;
	}
}

/* ------------------------------------------------------------------
   Section 4: partners. Logo wall; the name shows under each logo on hover.
   ------------------------------------------------------------------ */
.ed-partners {
	padding: 24px 0 112px;
	background: var(--ed-section);
	color: var(--ed-text-2);
}

.ed-partners,
.ed-partners * {
	font-family: "Thmanyah Sans", sans-serif !important;
	letter-spacing: 0;
}

/* Same header layout as the offices section: label, title, then the lead under it. */
.ed-partners__head {
	max-width: 720px;
	margin-bottom: 40px;
}

.ed-partners__label {
	margin: 0 0 14px;
	color: var(--ed-text);
	font-size: 15px;
	font-weight: 700;
	text-align: right !important;
}

.ed-partners__label::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-left: 10px;
	border-radius: 50%;
	background: var(--ed-lime);
	vertical-align: 1px;
}

.ed-partners__title {
	margin: 0 0 14px;
	color: var(--ed-text);
	font-size: 42px !important;
	font-weight: 900;
	line-height: 1.3;
	text-align: right;
}

.ed-partners__lead {
	margin: 0;
	color: var(--ed-muted);
	font-size: 18px;
	line-height: 1.8;
	text-align: right !important;
}

.ed-partners__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ed-partners__item {
	position: relative;
	display: grid;
	height: 170px;
	place-items: center;
	padding: 24px;
	border: 1px solid var(--ed-line);
	border-radius: 22px;
	background: var(--ed-surface);
	transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.ed-partners__item > a {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
}

.ed-partners__item img {
	display: block;
	max-width: 78%;
	max-height: 96px;
	width: auto;
	height: auto;
	opacity: .8;
	transition: opacity .25s ease, transform .25s ease;
}

.ed-partners__name {
	position: absolute;
	right: 16px;
	bottom: 12px;
	left: 16px;
	color: var(--ed-muted-2);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity .25s ease, transform .25s ease;
}

/* Mouse only: on touch screens the hover state would stick and cover the logo. */
@media (hover: hover) {
	.ed-partners__item:hover {
		border-color: var(--ed-edge);
		box-shadow: 0 22px 44px -30px rgba(17, 17, 17, .4);
		transform: translateY(-3px);
	}

	.ed-partners__item:hover img {
		opacity: 1;
		transform: translateY(-10px);
	}

	.ed-partners__item:hover .ed-partners__name {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 991px) {
	.ed-partners {
		padding-bottom: 80px;
	}

	.ed-partners__title {
		font-size: 34px !important;
	}

	.ed-partners__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.ed-partners {
		padding-bottom: 64px;
	}

	.ed-partners__title {
		font-size: 27px !important;
	}

	.ed-partners__grid {
		gap: 10px;
	}

	.ed-partners__item {
		height: 120px;
		padding: 16px;
		border-radius: 18px;
	}

	.ed-partners__item img {
		max-height: 70px;
		opacity: .85;
	}
}

/* ------------------------------------------------------------------
   Dark mode (2026-11-07): the old theme paints .headerSection white on this
   template; give the header strip the hero's section colour in both themes.
   ------------------------------------------------------------------ */
.page-template-template-about .headerSection {
	height: auto !important;
	background: var(--ed-section) !important;
}
