/* YF Testimonials — النموذج أ: الرأي المميّز
   الألوان والمسافات كلها متغيرات، عدّلها من هنا فقط. */

.yft {
	--yft-yellow: #FDCF36;
	--yft-yellow-soft: rgba(253, 207, 54, .16);
	--yft-ink: #1B1C20;
	--yft-ink-2: #4A4C52;
	--yft-muted: #75777D;
	--yft-surface: #FFFFFF;
	--yft-surface-2: #F1F0EC;
	--yft-line: #E2E1DC;
	--yft-radius: 18px;
	--yft-shot-ratio: 3 / 4;
	--yft-shadow: 0 1px 2px rgba(27, 28, 32, .05), 0 12px 28px -18px rgba(27, 28, 32, .35);

	direction: rtl;
	text-align: right;
	font-family: inherit;
}

.yft * {
	box-sizing: border-box;
}

/* ---------- الكرت ---------- */
.yft-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 232px;
	gap: 34px;
	align-items: center;
	background: var(--yft-surface);
	border: 1px solid var(--yft-line);
	border-radius: var(--yft-radius);
	padding: 30px 32px;
	box-shadow: var(--yft-shadow);
}

.yft-card + .yft-card {
	margin-top: 18px;
}

.yft-card__body {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.yft-quotemark {
	display: block;
	height: 26px;
	line-height: .7;
	font-size: 52px;
	font-weight: 700;
	color: var(--yft-yellow);
}

.yft-quote {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	quotes: none;
	font-size: 19px;
	line-height: 1.9;
	color: var(--yft-ink);
	font-style: normal;
}

.yft-quote::before,
.yft-quote::after {
	content: none;
}

/* ---------- التذييل: العميل + الأرقام ---------- */
.yft-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 22px;
	padding-top: 18px;
	border-top: 1px solid var(--yft-line);
}

.yft-who {
	display: flex;
	align-items: center;
	gap: 12px;
}

.yft-avatar {
	width: 52px;
	height: 52px;
	flex: none;
	border-radius: 50%;
	display: grid;
	place-items: center;
	overflow: hidden;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .04em;
}

.yft-avatar--img {
	object-fit: cover;
	border: 1px solid var(--yft-line);
}

.yft-avatar--initials {
	background: var(--yft-yellow);
	color: var(--yft-ink);
}

.yft-who__text {
	display: flex;
	flex-direction: column;
	line-height: 1.45;
}

.yft-who__name {
	font-weight: 700;
	font-size: 16px;
	color: var(--yft-ink);
}

.yft-who__name a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid var(--yft-yellow);
}

.yft-who__name a:hover {
	color: var(--yft-ink);
	border-bottom-color: var(--yft-ink);
}

.yft-who__role {
	font-size: 13.5px;
	color: var(--yft-muted);
}

.yft-metrics {
	display: flex;
	gap: 22px;
	margin-inline-start: auto;
}

.yft-metric {
	display: block;
	line-height: 1.3;
}

.yft-metric b {
	display: block;
	font-size: 21px;
	font-weight: 700;
	color: var(--yft-ink);
	font-variant-numeric: tabular-nums;
}

.yft-metric span {
	font-size: 12.5px;
	color: var(--yft-muted);
}

/* ---------- الإثبات ---------- */
.yft-card__proof {
	min-width: 0;
}

.yft-shot {
	position: relative;
	display: block;
	aspect-ratio: var(--yft-shot-ratio);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--yft-shadow);
	transition: transform .18s ease;
	background: var(--yft-surface-2);
	text-decoration: none;
}

.yft-shot:hover,
.yft-shot:focus-visible {
	transform: translateY(-3px);
}

.yft-shot:focus-visible {
	outline: 2px solid var(--yft-yellow);
	outline-offset: 3px;
}

.yft-shot img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: top center;
}

.yft-shot__cap {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: 22px 10px 8px;
	background: linear-gradient(to top, rgba(10, 11, 13, .85), rgba(10, 11, 13, 0));
	color: #fff;
	font-size: 11.5px;
	text-align: center;
}

.yft-shot__src {
	position: absolute;
	top: 8px;
	inset-inline-end: 8px;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: rgba(27, 28, 32, .78);
	backdrop-filter: blur(2px);
}

.yft-shot__src--whatsapp { background: #25D366; color: #0B3D1E; }
.yft-shot__src--facebook { background: #1877F2; }
.yft-shot__src--gsc      { background: #4285F4; }
.yft-shot__src--linkedin { background: #0A66C2; }
.yft-shot__src--google   { background: #EA4335; }

/* ---------- الجوال ---------- */
@media (max-width: 782px) {
	.yft-card {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 24px 20px;
	}

	.yft-quote {
		font-size: 17px;
		line-height: 1.85;
	}

	.yft-card__proof {
		max-width: 220px;
		margin-inline: auto;
		width: 100%;
	}

	.yft-metrics {
		margin-inline-start: 0;
		width: 100%;
		gap: 18px;
	}

	.yft-metric b {
		font-size: 19px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.yft-shot {
		transition: none;
	}
}

/* ============================================================
   السلايدر
   ============================================================ */

.yft--slider {
	position: relative;
}

.yft-viewport {
	position: relative;
}

.yft-track {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	/* مساحة تكفي ظل الكرت حتى لا يُقصّ */
	padding: 6px 4px 16px;
	margin: -6px -4px -16px;
}

.yft-track::-webkit-scrollbar {
	display: none;
}

.yft-track:focus-visible {
	outline: 2px solid var(--yft-yellow);
	outline-offset: 4px;
	border-radius: var(--yft-radius);
}

.yft-slide {
	flex: 0 0 100%;
	min-width: 0;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	display: flex;
}

.yft-slide > .yft-card {
	flex: 1;
	margin: 0;
}

/* ---------- شريط التحكم ---------- */
.yft-controls {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 18px;
}

.yft-dots {
	display: flex;
	align-items: center;
	gap: 8px;
}

.yft-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #CFCEC9;
	cursor: pointer;
	transition: width .22s ease, background .22s ease;
	appearance: none;
}

.yft-dot:hover {
	background: var(--yft-ink-2);
}

.yft-dot.is-active {
	width: 26px;
	background: var(--yft-yellow);
}

.yft-dot:focus-visible {
	outline: 2px solid var(--yft-ink);
	outline-offset: 3px;
}

.yft-arrows {
	display: flex;
	gap: 8px;
	margin-inline-start: auto;
}

.yft-nav {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid var(--yft-line);
	border-radius: 50%;
	background: var(--yft-surface);
	color: var(--yft-ink);
	cursor: pointer;
	transition: background .16s ease, border-color .16s ease, color .16s ease;
	appearance: none;
}

.yft-nav:hover:not(:disabled) {
	background: var(--yft-yellow);
	border-color: var(--yft-yellow);
	color: var(--yft-ink);
}

.yft-nav:disabled {
	opacity: .38;
	cursor: default;
}

.yft-nav:focus-visible {
	outline: 2px solid var(--yft-ink);
	outline-offset: 2px;
}

.yft-nav svg {
	display: block;
}

/* نص للقارئات الشاشية فقط */
.yft .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;
}

@media (max-width: 782px) {
	.yft-track {
		gap: 12px;
	}

	.yft-controls {
		margin-top: 14px;
	}

	.yft-nav {
		width: 36px;
		height: 36px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.yft-dot {
		transition: none;
	}
}
