/**
 * Wallxer Testimonials widget. Mobile first.
 * Grid layout: media on top. Slider layout: wide cards with the photo on the side.
 */

.wlx-testi {
	--wlx-testi-cols: 1;
	--wlx-testi-gap: clamp(14px, 1.6vw, 22px);
	--wlx-testi-pad-y: clamp(56px, 7vw, 100px);
	--wlx-testi-accent: var(--wlx-brand, #5b63d3);

	background-color: var(--wlx-bg, #ffffff);
}

.wlx-testi__inner {
	box-sizing: border-box;
	max-width: var(--wlx-testi-max, 1240px);
	margin: 0 auto;
	padding: var(--wlx-testi-pad-y) 20px;
}

/* Section heading --------------------------------------------------------- */

.wlx-testi__header {
	margin-bottom: clamp(32px, 4vw, 52px);
	text-align: center;
}

.wlx-testi__eyebrow {
	display: inline-block;
	margin: 0 0 22px;
	padding: 7px 16px;
	border: 1px solid var(--wlx-line-strong, #dcdef0);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.08em;
	color: var(--wlx-muted-2, #5a5a6e);
	text-transform: uppercase;
	white-space: nowrap;
	background-color: var(--wlx-tint, #fbfbfe);
}

.wlx-testi .wlx-testi__title {
	margin: 0 0 14px;
	font-family: var(--wlx-font-heading, "Anek Bangla", "Hind Siliguri", sans-serif);
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.015em;
	color: var(--wlx-ink, #14141c);
}

.wlx-testi__title .wlx-hl {
	font-family: var(--wlx-font-accent, "Baloo Da 2", "Anek Bangla", sans-serif);
	font-weight: 700;
	color: var(--wlx-testi-accent);
}

.wlx-testi .wlx-testi__intro {
	display: inline-block;
	max-width: 52ch;
	margin: 0;
	font-size: 17px;
	line-height: 1.85;
	color: var(--wlx-muted, #4e4e63);
}

.wlx-testi__header > :last-child {
	margin-bottom: 0;
}

/* List -------------------------------------------------------------------- */

.wlx-testi .wlx-testi__list {
	display: grid;
	grid-template-columns: repeat(var(--wlx-testi-cols), minmax(0, 1fr));
	gap: var(--wlx-testi-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.wlx-testi__item {
	display: flex;
	min-width: 0;
}

/* Card -------------------------------------------------------------------- */

.wlx-testi__card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	width: 100%;
	border: 1px solid #e9eaf4;
	border-radius: 22px;
	background-color: #ffffff;
	box-shadow: var(--wlx-shadow-card, 0 6px 18px rgba(20, 20, 40, 0.04));
	transition: transform 0.25s cubic-bezier(0.3, 0.8, 0.3, 1), box-shadow 0.25s;
}

.wlx-testi__card:hover {
	box-shadow: var(--wlx-shadow-hover, 0 22px 44px rgba(20, 20, 40, 0.1));
	transform: translateY(-4px);
}

.wlx-testi__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background-color: var(--wlx-chip, #eceef9);
}

.wlx-testi__media--photo {
	display: grid;
	gap: 12px;
	place-items: center;
	align-content: center;
	padding: 16px;
	text-align: center;
	background: linear-gradient(160deg, #eef0fb 0%, #e2e5f8 100%);
}

/* Two classes: Elementor's own ".elementor img" rule would otherwise win. */
.wlx-testi .wlx-testi__cover {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

.wlx-testi .wlx-testi__photo {
	width: 76px;
	height: 76px;
	border: 3px solid #ffffff;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 10px 24px rgba(40, 44, 120, 0.18);
}

.wlx-testi__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 20, 28, 0.05) 0%, rgba(20, 20, 28, 0.55) 100%);
}

.wlx-testi__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--wlx-ink, #14141c);
	white-space: nowrap;
	background: rgba(255, 255, 255, 0.92);
}

.wlx-testi__media--photo .wlx-testi__badge {
	background: #ffffff;
}

.wlx-testi__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	color: #ffffff;
	background: transparent;
	cursor: pointer;
}

.wlx-testi__play:hover,
.wlx-testi__play:focus {
	color: #ffffff;
	background: transparent;
}

.wlx-testi__play:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: -6px;
}

.wlx-testi__play-icon {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	padding-left: 4px;
	border-radius: 50%;
	background: var(--wlx-testi-accent);
	box-shadow: 0 0 0 9px color-mix(in srgb, var(--wlx-testi-accent) 28%, transparent), 0 14px 30px rgba(20, 20, 40, 0.3);
	transition: transform 0.25s cubic-bezier(0.3, 0.8, 0.3, 1);
}

.wlx-testi__play:hover .wlx-testi__play-icon {
	transform: scale(1.08);
}

.wlx-testi__media .wlx-video-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000000;
}

.wlx-testi .wlx-testi__stars {
	margin: 0;
	font-size: 18px;
	line-height: 1;
	letter-spacing: 3px;
	color: var(--wlx-star, #f5a524);
}

.wlx-sr-only {
	position: absolute;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	white-space: nowrap;
}

.wlx-testi__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(18px, 2vw, 24px);
}

.wlx-testi__person {
	margin-bottom: 14px;
}

.wlx-testi .wlx-testi__name {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--wlx-ink, #14141c);
}

.wlx-testi .wlx-testi__role {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--wlx-meta, #6a6a7e);
}

.wlx-testi .wlx-testi__quote {
	margin: 0 0 20px;
	padding: 0;
	border: 0;
	font-size: 16px;
	font-style: normal;
	line-height: 1.7;
	color: var(--wlx-ink-2, #26263a);
	text-wrap: pretty;
	background: none;
}

.wlx-testi .wlx-testi__quote p {
	margin: 0;
}

.wlx-testi__quote p::before {
	content: "\201C";
}

.wlx-testi__quote p::after {
	content: "\201D";
}

.wlx-testi__stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--wlx-line-soft, #ecedf5);
}

.wlx-testi .wlx-testi__stat-value {
	margin: 0;
	font-family: var(--wlx-font-accent, "Baloo Da 2", "Anek Bangla", sans-serif);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--wlx-testi-accent);
}

.wlx-testi .wlx-testi__stat-label {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--wlx-meta, #6a6a7e);
}

/* Slider layout ----------------------------------------------------------- */

.wlx-testi--slider .wlx-testi__header {
	text-align: left;
}

.wlx-testi--slider {
	overflow-x: clip;
}

/*
 * The track runs edge to edge of the window, while the first card lines up
 * with the section heading: negative margins pull it out of the centred
 * column, padding pushes the cards back to the column's left edge.
 */
.wlx-testi--slider .wlx-testi__list {
	--wlx-testi-edge: max(20px, calc(50vw - (var(--wlx-testi-max, 1240px) / 2) + 20px));

	display: flex;
	overflow-x: auto;
	gap: 20px;
	margin: -4px calc(50% - 50vw);
	padding: 4px var(--wlx-testi-edge);
	scroll-padding: 0 var(--wlx-testi-edge);
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.wlx-testi--slider .wlx-testi__list::-webkit-scrollbar {
	display: none;
}

.wlx-testi--slider .wlx-testi__item {
	flex: 0 0 min(560px, 88%);
	scroll-snap-align: start;
}

.wlx-testi--slider .wlx-testi__card {
	border-radius: 18px;
	box-shadow: none;
}

.wlx-testi--slider .wlx-testi__card:hover {
	transform: none;
}

.wlx-testi--slider .wlx-testi__media {
	display: block;
	min-height: 240px;
	padding: 0;
	aspect-ratio: auto;
}

.wlx-testi.wlx-testi--slider .wlx-testi__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.wlx-testi--slider .wlx-testi__badge {
	right: 12px;
	left: auto;
}

.wlx-testi--slider .wlx-testi__media .wlx-testi__person {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	margin: 0;
	padding: 32px 14px 14px;
	text-align: left;
	background: linear-gradient(180deg, rgba(20, 20, 28, 0) 0%, rgba(20, 20, 28, 0.82) 70%);
	pointer-events: none;
}

.wlx-testi--slider .wlx-testi__media .wlx-testi__name {
	font-size: 15.5px;
	line-height: 1.4;
	color: #ffffff;
}

.wlx-testi--slider .wlx-testi__media .wlx-testi__role {
	font-size: 13.5px;
	line-height: 1.4;
	color: #dcdce8;
}

.wlx-testi--slider .wlx-testi__body {
	padding: clamp(20px, 2.4vw, 28px);
}

.wlx-testi--slider .wlx-testi__body::before {
	content: "\201C";
	margin-bottom: 12px;
	font-family: var(--wlx-font-accent, "Baloo Da 2", "Anek Bangla", sans-serif);
	font-size: 38px;
	font-weight: 700;
	line-height: 0.9;
	color: var(--wlx-ink, #14141c);
}

.wlx-testi--slider .wlx-testi__quote {
	margin-bottom: 26px;
	font-size: 17px;
	line-height: 1.85;
}

.wlx-testi--slider .wlx-testi__quote p::before,
.wlx-testi--slider .wlx-testi__quote p::after {
	content: none;
}

.wlx-testi--slider .wlx-testi__stats {
	display: flex;
	gap: 24px;
	padding-top: 18px;
}

.wlx-testi--slider .wlx-testi__stat-value {
	font-size: 22px;
	color: var(--wlx-ink, #14141c);
}

.wlx-testi__nav {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: clamp(24px, 3vw, 34px);
}

.wlx-testi__arrow {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--wlx-line-strong, #dcdef0);
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
	color: var(--wlx-ink-2, #26263a);
	background: #ffffff;
	cursor: pointer;
	transition: transform 0.22s cubic-bezier(0.3, 0.8, 0.3, 1), border-color 0.22s, background-color 0.22s, color 0.22s, opacity 0.22s;
}

.wlx-testi__arrow:hover,
.wlx-testi__arrow:focus-visible {
	border-color: var(--wlx-testi-accent);
	color: #ffffff;
	background: var(--wlx-testi-accent);
	transform: translateY(-2px);
}

.wlx-testi__arrow:disabled {
	border-color: var(--wlx-line-strong, #dcdef0);
	color: var(--wlx-ink-2, #26263a);
	background: #ffffff;
	opacity: 0.4;
	cursor: default;
	transform: none;
}

@media (min-width: 621px) {

	.wlx-testi--slider .wlx-testi__card {
		display: grid;
		grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
	}

	.wlx-testi--slider .wlx-testi__media {
		min-height: 300px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.wlx-testi__card,
	.wlx-testi__play-icon,
	.wlx-testi__arrow {
		transition: none !important;
	}

	.wlx-testi__card:hover,
	.wlx-testi__play:hover .wlx-testi__play-icon,
	.wlx-testi__arrow:hover {
		transform: none !important;
	}
}
