.stp-testimonials {
	box-sizing: border-box;
	margin: 0 auto;
	position: relative;
	width: 100%;
}

.stp-testimonials *,
.stp-testimonials *::before,
.stp-testimonials *::after {
	box-sizing: border-box;
}

.stp-track {
	gap: 0;
}

.stp-layout-grid .stp-track {
	display: grid;
	grid-template-columns: repeat(var(--stp-columns), minmax(0, 1fr));
}

.stp-layout-carousel {
	background: transparent;
	margin: 0 auto;
	padding: 28px 64px 44px;
}

.stp-layout-carousel .stp-track {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: 480px;
	overflow: visible;
	padding: 38px 0 34px;
	scrollbar-width: none;
}

.stp-layout-carousel .stp-track::-webkit-scrollbar {
	display: none;
}

.stp-layout-carousel .stp-card {
	display: none;
	flex: 0 0 540px;
	position: relative;
	width: 540px;
}

.stp-card {
	background: #fff;
	border: 1px solid rgba(22, 26, 38, 0.08);
	border-radius: 8px;
	box-shadow: 0 8px 22px rgba(22, 26, 38, 0.1);
	color: #242936;
	display: flex;
	flex-direction: column;
	min-height: 350px;
	padding: 20px;
	transition: box-shadow 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.stp-layout-carousel .stp-card.is-before,
.stp-layout-carousel .stp-card.is-active {
	display: flex;
}

.stp-layout-carousel .stp-card.is-after {
	display: flex;
}

.stp-layout-carousel .stp-card.is-hidden {
	display: none;
}

.stp-layout-carousel .stp-card.is-before {
	margin-right: -108px;
	order: 1;
	opacity: 0.88;
	transform: translateX(28px) scale(0.82);
	z-index: 1;
}

.stp-layout-carousel .stp-card.is-active {
	box-shadow: 0 14px 30px rgba(22, 26, 38, 0.16);
	margin-inline: -24px;
	order: 2;
	transform: translateY(-20px) scale(1.12);
	z-index: 3;
}

.stp-layout-carousel .stp-card.is-after {
	margin-left: -108px;
	order: 3;
	opacity: 0.88;
	transform: translateX(-28px) scale(0.82);
	z-index: 1;
}

.stp-video {
	-webkit-appearance: none;
	aspect-ratio: 16 / 8.2;
	background: #10131a;
	border: 0;
	border-radius: 7px;
	cursor: pointer;
	display: block;
	margin: 14px 0 14px;
	overflow: hidden;
	padding: 0;
	position: relative;
	width: 100%;
}

.stp-video img,
.stp-video video {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.stp-video:hover .stp-play-icon,
.stp-video:focus .stp-play-icon {
	background: #b91f29;
	transform: translate(-50%, -50%) scale(1.08);
}

.stp-video:focus-visible {
	outline: 3px solid rgba(220, 37, 48, 0.55);
	outline-offset: 3px;
}

.stp-play-icon {
	background: #dc2530;
	border-radius: 50%;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
	height: 58px;
	left: 50%;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	transition: background 0.2s ease, transform 0.2s ease;
	width: 58px;
}

.stp-play-icon::after {
	border-bottom: 10px solid transparent;
	border-left: 16px solid #fff;
	border-top: 10px solid transparent;
	content: "";
	left: 23px;
	position: absolute;
	top: 19px;
}

.stp-facebook-preview {
	border: 0;
	display: block;
	height: 100%;
	pointer-events: none;
	width: 100%;
}

body.stp-lightbox-open {
	overflow: hidden;
}

.stp-lightbox {
	align-items: center;
	background: rgba(5, 8, 14, 0.88);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: fixed;
	z-index: 999999;
}

.stp-lightbox-inner {
	max-width: 1000px;
	position: relative;
	width: 100%;
}

.stp-lightbox-player {
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 10px;
	overflow: hidden;
}

.stp-lightbox-player iframe,
.stp-lightbox-player video {
	border: 0;
	display: block;
	height: 100%;
	width: 100%;
}

.stp-lightbox-player video {
	object-fit: contain;
}

.stp-lightbox-close {
	-webkit-appearance: none;
	background: #fff;
	border: 0;
	border-radius: 50%;
	color: #111827;
	cursor: pointer;
	font-size: 30px;
	height: 42px;
	line-height: 38px;
	padding: 0;
	position: absolute;
	right: -14px;
	top: -52px;
	width: 42px;
	z-index: 2;
}

.stp-quote-mark {
	display: none;
}

.stp-text {
	color: #242936;
	font-size: 17px;
	line-height: 1.6;
	margin: 14px 0 28px;
}

.stp-rating {
	color: #ff9700;
	font-size: 22px;
	letter-spacing: 3px;
	line-height: 1;
	margin: 0;
}

.stp-author {
	align-items: center;
	display: flex;
	gap: 13px;
	margin-top: auto;
}

.stp-avatar {
	align-items: center;
	background: #121827;
	border-radius: 50%;
	color: #fff;
	display: flex;
	flex: 0 0 46px;
	font-size: 16px;
	font-weight: 700;
	height: 46px;
	justify-content: center;
	line-height: 1;
	width: 46px;
}

.stp-avatar img {
	border-radius: 50%;
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.stp-author-info {
	min-width: 0;
}

.stp-name {
	color: #151922;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 3px;
}

.stp-designation {
	color: #6f7480;
	font-size: 14px;
	line-height: 1.35;
	margin: 0;
}

.stp-carousel-btn {
	-webkit-appearance: none;
	align-items: center !important;
	background: #dc2530 !important;
	border: 0 !important;
	border-radius: 50% !important;
	color: #fff;
	cursor: pointer;
	display: flex !important;
	font-family: Arial, sans-serif;
	font-size: 26px;
	font-weight: 700;
	height: 48px !important;
	justify-content: center !important;
	line-height: 1;
	margin: 0 !important;
	min-height: 48px !important;
	min-width: 48px !important;
	padding: 0 !important;
	position: absolute;
	top: 46%;
	transform: translateY(-50%);
	width: 48px !important;
	z-index: 3;
}

.stp-carousel-btn:hover,
.stp-carousel-btn:focus {
	background: #b91f29 !important;
	outline: 2px solid rgba(220, 37, 48, 0.25);
	outline-offset: 2px;
}

.stp-prev {
	left: max(8px, calc(50% - 690px));
}

.stp-next {
	right: max(8px, calc(50% - 690px));
}

.stp-carousel-dots {
	align-items: center;
	bottom: 8px;
	display: flex;
	gap: 7px;
	justify-content: center;
	left: 0;
	position: absolute;
	right: 0;
}

.stp-dot {
	-webkit-appearance: none;
	background: rgba(22, 26, 38, 0.25);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	height: 7px;
	padding: 0;
	width: 7px;
}

.stp-dot.is-active {
		background: #dc2530;
}

/* Keep the three-card composition inside common laptop screens. */
@media (min-width: 901px) and (max-width: 1399px) {
	.stp-layout-carousel .stp-track {
		min-height: 410px;
	}

	.stp-layout-carousel .stp-card {
		flex-basis: 410px;
		width: 410px;
	}

	.stp-card {
		min-height: 300px;
		padding: 32px;
	}

	.stp-layout-carousel .stp-card.is-before {
		margin-right: -110px;
	}

	.stp-layout-carousel .stp-card.is-active {
		transform: translateY(-18px) scale(1.08);
	}

	.stp-layout-carousel .stp-card.is-after {
		margin-left: -110px;
	}
}

@media (max-width: 900px) {
	.stp-layout-grid .stp-track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.stp-layout-carousel {
		padding-inline: 48px;
	}

	.stp-layout-carousel .stp-track {
		min-height: 360px;
	}

	.stp-layout-carousel .stp-card {
		flex-basis: 320px;
		width: 320px;
	}

	.stp-card {
		min-height: 270px;
		padding: 26px;
	}

	.stp-layout-carousel .stp-card.is-before {
		margin-right: -120px;
	}

	.stp-layout-carousel .stp-card.is-active {
		transform: translateY(-14px) scale(1.08);
	}

	.stp-layout-carousel .stp-card.is-after {
		margin-left: -120px;
	}

	.stp-prev {
		left: 8px;
	}

	.stp-next {
		right: 8px;
	}
}

@media (max-width: 640px) {
	.stp-layout-grid .stp-track {
		grid-template-columns: 1fr;
	}

	.stp-layout-carousel {
		padding: 10px 36px 32px;
	}

	.stp-layout-carousel .stp-track {
		min-height: 260px;
		padding-block: 24px;
	}

	.stp-layout-carousel .stp-card {
		flex-basis: 100%;
		width: 100%;
	}

	.stp-layout-carousel .stp-card.is-before,
	.stp-layout-carousel .stp-card.is-after {
		display: none;
	}

	.stp-layout-carousel .stp-card.is-active {
		margin-inline: 0;
		transform: none;
	}

	.stp-carousel-btn {
		font-size: 20px;
		height: 38px !important;
		min-height: 38px !important;
		min-width: 38px !important;
		width: 38px !important;
	}

	.stp-prev {
		left: 0;
	}

	.stp-next {
		right: 0;
	}

	.stp-card {
		min-height: 150px;
		padding: 16px;
	}
}

/* Video testimonials: media reaches every card edge. */
.stp-card.stp-card--video {
	border: 1px solid rgba(20, 31, 51, 0.12);
	box-shadow: 0 8px 24px rgba(20, 31, 51, 0.12);
	min-height: 0;
	overflow: hidden;
	padding: 0;
	position: relative;
}

.stp-card--video .stp-video {
	border-radius: 0;
	margin: 0;
}
