.tm-testimonial.style-8 {
	position: relative;
	overflow: hidden;
	background: #0f1c22;
}

.tm-testimonial.style-8 .swiper-container {
	background: #0f1c22;
}

.tm-testimonial.style-8 .swiper-container-initialized .swiper-slide:not(.swiper-slide-active) .testimonial-item-wrap {
	visibility: hidden;
}

.tm-testimonial.style-8 .testimonial-item-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	width: 100%;
	height: auto !important;
	min-height: 0 !important;
	max-height: none;
	margin: 0 auto;
	background: #0f1c22;
}

.tm-testimonial.style-8 .testimonial-thumb {
	position: relative;
	height: auto !important;
	min-height: 0;
	margin: 0;
	overflow: hidden;
	background: #111a1f;
}

.tm-testimonial.style-8 .testimonial-thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(15, 28, 34, 0) 62%, rgba(15, 28, 34, 0.18) 100%);
	pointer-events: none;
}

.tm-testimonial.style-8 .testimonial-thumb picture {
	display: block;
	width: 100%;
	height: 100%;
}

.tm-testimonial.style-8 .testimonial-image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 310px;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: center;
}

.tm-testimonial.style-8 .testimonial-image-placeholder {
	background: linear-gradient(135deg, #17262e, #36515b);
}

.tm-testimonial.style-8 .testimonial-info {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: auto !important;
	min-height: 390px !important;
	padding: 48px 24px 132px;
	text-align: center;
	background:
		radial-gradient(circle at 50% 18%, rgba(82, 203, 203, 0.16), rgba(82, 203, 203, 0) 34%),
		linear-gradient(135deg, #5e6260 0%, #4e5554 52%, #465052 100%);
}

.tm-testimonial.style-8 .testimonial-info::before {
	content: "";
	position: absolute;
	inset: 28px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	pointer-events: none;
}

.tm-testimonial.style-8 .quote-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 0 26px;
	line-height: 1;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.tm-testimonial.style-8 .quote-icon svg {
	width: 26px;
	height: auto;
}

.tm-testimonial.style-8 .testimonial-desc {
	z-index: 1;
	width: min(100%, 760px);
	max-width: none;
	margin: 0;
	color: #ffffff;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.55;
	text-wrap: pretty;
}

.tm-testimonial.style-8 .testimonial-desc h4 {
	margin: 0 0 20px;
	color: #ffffff;
	font-size: 27px;
	font-weight: 800;
	line-height: 1.2;
}

.tm-testimonial.style-8 .testimonial-desc p {
	margin: 0;
}

.tm-testimonial.style-8 .testimonial-desc h5 {
	position: absolute !important;
	inset: auto auto 46px 50% !important;
	z-index: 2;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	max-width: min(calc(100% - 48px), 420px);
	min-height: 50px;
	margin: 0;
	padding: 13px 30px 13px 54px;
	border: 1px solid rgba(82, 203, 203, 0.55);
	border-radius: 999px;
	background: linear-gradient(135deg, #ffffff 0%, #eefefe 100%);
	color: #122028;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	white-space: normal;
	box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24), 0 0 0 7px rgba(82, 203, 203, 0.1);
	transform: translateX(-50%) !important;
}

.tm-testimonial.style-8 .testimonial-desc h5::before {
	content: "\260E";
	position: absolute;
	left: 15px;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #52cbcb;
	color: #122028;
	font-size: 15px;
	line-height: 1;
	transform: translateY(-50%);
}

.tm-testimonial.style-8 .testimonial-desc h5:hover {
	background: #52cbcb;
	color: #122028;
	box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28), 0 0 0 7px rgba(255, 255, 255, 0.14);
}

.tm-testimonial.style-8 .testimonial-desc h5:hover::before {
	background: #ffffff;
}

.tm-testimonial.style-8 .testimonial-main-info {
	display: none;
}

.tm-testimonial.style-8 .swiper-nav-button {
	width: 48px;
	height: 48px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(18, 32, 40, 0.62);
	color: #ffffff;
	backdrop-filter: blur(10px);
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.tm-testimonial.style-8 .swiper-nav-button:hover {
	background: #52cbcb;
	color: #122028;
}

@media (min-width: 768px) {
	.tm-testimonial.style-8 .testimonial-item-wrap {
		grid-template-columns: minmax(0, 50%) minmax(0, 50%);
		height: 540px !important;
		min-height: 540px !important;
		max-height: 540px;
	}

	.tm-testimonial.style-8 .testimonial-thumb,
	.tm-testimonial.style-8 .testimonial-thumb picture,
	.tm-testimonial.style-8 .testimonial-info {
		height: 540px !important;
		min-height: 540px !important;
		max-height: 540px;
	}

	.tm-testimonial.style-8 .testimonial-image {
		height: 540px !important;
		min-height: 540px !important;
		max-height: 540px;
		aspect-ratio: auto;
	}

	.tm-testimonial.style-8 .testimonial-info {
		padding: 64px 72px 138px;
	}
}

@media (min-width: 1200px) {
	.tm-testimonial.style-8 .testimonial-item-wrap {
		height: 580px !important;
		min-height: 580px !important;
		max-height: 580px;
	}

	.tm-testimonial.style-8 .testimonial-thumb,
	.tm-testimonial.style-8 .testimonial-thumb picture,
	.tm-testimonial.style-8 .testimonial-info,
	.tm-testimonial.style-8 .testimonial-image {
		height: 580px !important;
		min-height: 580px !important;
		max-height: 580px;
	}

	.tm-testimonial.style-8 .testimonial-info {
		padding: 74px 96px 148px;
	}

	.tm-testimonial.style-8 .testimonial-desc {
		font-size: 20px;
	}
}

@media (max-width: 767px) {
	.tm-testimonial.style-8 .testimonial-thumb::after {
		background: linear-gradient(180deg, rgba(15, 28, 34, 0) 68%, rgba(15, 28, 34, 0.22) 100%);
	}

	.tm-testimonial.style-8 .testimonial-info::before {
		inset: 18px;
	}
}

@media (max-width: 575px) {
	.tm-testimonial.style-8 .testimonial-image {
		min-height: 270px;
	}

	.tm-testimonial.style-8 .testimonial-info {
		min-height: 460px;
		padding: 34px 20px 110px;
	}

	.tm-testimonial.style-8 .quote-icon {
		width: 54px;
		height: 54px;
		margin-bottom: 18px;
	}

	.tm-testimonial.style-8 .quote-icon svg {
		width: 22px;
	}

	.tm-testimonial.style-8 .testimonial-desc {
		font-size: 16px;
		line-height: 1.55;
	}

	.tm-testimonial.style-8 .testimonial-desc h4 {
		font-size: 21px;
	}

	.tm-testimonial.style-8 .testimonial-desc h5 {
		inset: auto auto 30px 50% !important;
		max-width: calc(100% - 36px);
		padding: 12px 18px 12px 50px;
		font-size: 14px;
	}
}
