/* "جهات وثقت بنا" logo wall (DigitalthPr/parts/trust-logos.php): about page and the end of the
   works page. Government / partner SVG logos, greyscaled, inverted in dark mode. */
.ed-trust {
	padding: 24px 0 112px;
	background: var(--ed-section);
	color: var(--ed-text-2);
}

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

.ed-trust__head {
	max-width: 720px;
	margin-bottom: 40px;
}

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

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

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

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

@media (max-width: 991px) {
	.ed-trust { padding-bottom: 80px; }
	.ed-trust__title { font-size: 34px !important; }
}

@media (max-width: 600px) {
	.ed-trust { padding-bottom: 64px; }
	.ed-trust__title { font-size: 27px !important; }
}

/* ------------------------------------------------------------------
   Grid, items and the works link.
   ------------------------------------------------------------------ */
.ed-trust__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ed-trust__item {
	display: grid;
	height: 128px;
	place-items: center;
	padding: 20px;
	border: 1px solid var(--ed-line);
	border-radius: 20px;
	background: var(--ed-surface);
	color: var(--ed-text);
	transition: border-color .25s ease, transform .25s ease;
}

.ed-trust__item img {
	display: block;
	max-width: 82%;
	max-height: 64px;
	width: auto;
	height: auto;
	filter: grayscale(1) brightness(.6) contrast(1.5);
	opacity: .85;
	transition: opacity .25s ease, filter .25s ease;
}

:root[data-theme="dark"] .ed-trust__item img {
	filter: grayscale(1) invert(1) brightness(1.35) contrast(1.3);
	opacity: .9;
}

.ed-trust__ow {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	height: 44px;
	max-width: 100%;
	font-size: 17px;
	font-weight: 800;
	opacity: .85;
	transition: opacity .25s ease, color .25s ease;
}

.ed-trust__ow svg {
	display: block;
	height: 100%;
	width: auto;
	max-width: 100%;
	fill: currentColor;
}

.ed-trust__ow > span {
	white-space: nowrap;
}

.ed-trust__ow--word {
	height: 36px;
}

@media (hover: hover) {
	.ed-trust__item:hover {
		border-color: var(--ed-edge);
		transform: translateY(-3px);
	}

	.ed-trust__item:hover img,
	.ed-trust__item:hover .ed-trust__ow {
		opacity: 1;
	}
}

@media (max-width: 991px) {
	.ed-trust__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.ed-trust__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.ed-trust__item {
		height: 104px;
		padding: 14px;
		border-radius: 16px;
	}

	.ed-trust__item img {
		max-height: 52px;
	}

	.ed-trust__ow {
		height: 36px;
		font-size: 15px;
	}

	.ed-trust__ow--word {
		height: 30px;
	}
}

.ed-trust__more {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	margin-top: 28px;
	color: var(--ed-text) !important;
	font-size: 17px;
	font-weight: 800;
	text-decoration: none !important;
	border-bottom: 2px solid var(--ed-lime);
	padding-bottom: 4px;
	transition: gap .2s ease;
}

.ed-trust__more:hover,
.ed-trust__more:focus-visible {
	gap: .8em;
}
