/* ------------------------------
   MH Testimonial Slider Styles
   ------------------------------ */
/* Touch enhancements only, does not affect layout */
.mh-testimonial-slider,
.mh-testimonial-slider .swiper-wrapper,
.mh-testimonial-slider .swiper-slide {
  touch-action: pan-y;
}

/* Container */
.mh-testimonial-wrap {
  position: relative;
  width: 100%;
}
.mh-testimonial-slider {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

/* Each slide card */
.mh-testi-card {
  background: #132118;
  border-radius: 28px;
  padding: 66px 36px 46px;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.mh-testi-card iframe,
.mh-testi-card video,
.mh-testi-content .wp-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  border: 0;
	border-radius:40px;
	overflow: hidden;
}
.has-video{
	overflow:hidden;
}
.has-video .mh-testi-name{
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 30%;
	display: flex;
	align-items: end;
	color:#fff;
	font-weight: 400;
	padding: 13px 33px 13px 13px;
	padding-bottom: 40px;
	background: rgba(19, 33, 24, 0.92);
	background: -webkit-linear-gradient(180deg, rgba(19, 33, 24, 0) 0%, rgba(19, 33, 24, 0.92) 100%);
	background: -moz-linear-gradient(180deg, rgba(19, 33, 24, 0) 0%, rgba(19, 33, 24, 0.92) 100%);
	background: linear-gradient(180deg, rgba(19, 33, 24, 0) 0%, rgba(19, 33, 24, 0.92) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#132118", endColorstr="#132118", GradientType=1);
}
.mh-testi-card.has-video::after{
	display:none;
}
.has-video .mh-testi-stars{
	display: none;
}
.has-video .mh-testi-content {
  position: static;
  z-index: auto;
  margin-bottom: 18px;
}
/* Decorative quotes in top-right */
.mh-testi-card::after {
  content: "";
  position: absolute;
  top: 50px;
  right: 30px;
	width:64px;
	height:47px;
  opacity: .72;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='64' height='47' viewBox='0 0 64 47' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.209 0C6.81134 0 0.00370407 6.80763 0.00370407 15.2053C0.00370407 21.4079 3.23261 27.4094 8.05181 28.5674C9.91073 29.0141 11.3912 31.3996 11.0731 34.123C10.6473 37.768 7.351 41.4507 0.824375 44.3528C-0.628819 44.9989 -0.0203342 47.185 1.55772 46.9874C18.5671 44.8579 30.3575 33.7689 30.4141 18.08C30.4143 7.29037 24.0397 0 15.209 0Z' fill='%232E3B31'/%3E%3Cpath d='M48.3843 0C39.9866 0 33.179 6.80763 33.179 15.2053C33.179 21.4079 36.4079 27.4094 41.2271 28.5674C43.086 29.0141 44.5664 31.3996 44.2484 34.123C43.8226 37.768 40.5263 41.4507 33.9997 44.3528C32.5465 44.9989 33.155 47.185 34.733 46.9874C51.7424 44.8579 63.5328 33.7689 63.5894 18.08C63.5896 7.29037 57.215 0 48.3843 0Z' fill='%232E3B31'/%3E%3C/svg%3E%0A");
	background-repeat:no-repeat;
	background-size:contain;
}

/* Stars */
.mh-testi-stars {
  color: #FFB400;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}

/* Content text */
.mh-testi-content {
  color: #E2EAE1;
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.mh-testi-content p {
  margin: 0;
}

/* Slider text cards: cap the review at 4 lines (ellipsis after that). */
.mh-testimonial-slider .mh-testi-card:not(.has-video) .mh-testi-content {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

/* Name */
.mh-testi-name {
  color: rgba(255,255,255,.82);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

/* ----- Swiper controls ----- */

.mh-testimonial-wrap .swiper-button-prev,
.mh-testimonial-wrap .swiper-button-next {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-top: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--e-global-color-primary, #0a7a5d);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, background .3s ease;
  cursor: pointer;
}
.mh-testimonial-wrap .swiper-button-prev { left: -23px; }
.mh-testimonial-wrap .swiper-button-next { right: -23px; }
.mh-testimonial-wrap:hover .swiper-button-prev,
.mh-testimonial-wrap:hover .swiper-button-next,
.mh-testimonial-wrap .swiper-button-prev:focus-visible,
.mh-testimonial-wrap .swiper-button-next:focus-visible {
  opacity: 1;
  pointer-events: auto;
}
.mh-testimonial-wrap:hover .swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}
.mh-testimonial-wrap .swiper-button-prev:hover,
.mh-testimonial-wrap .swiper-button-next:hover {
  background: var(--e-global-color-primary);
}

/* Use default Swiper arrows, just recolor them */
.mh-testimonial-wrap .swiper-button-prev::after,
.mh-testimonial-wrap .swiper-button-next::after {
  font-size: 14px;
  color:#fff;
}

/* Spacing between slides */
.mh-testimonial-slider .swiper-slide {
  height: auto; /* allow autoHeight to work nicely */
}
/* Responsive tweaks */
@media(max-width:1199px){
	  .mh-testimonial-wrap .swiper-button-prev,
  .mh-testimonial-wrap .swiper-button-next {
    width: 40px;
    height: 40px;
	    display: none;
  }
	.mh-testimonial-wrap .mh-testimonial-slider.swiper {
		overflow: visible;
	}
	.mh-testi-card{
		min-height: 460px;
		padding:56px 32px 38px;
	}
	.mh-testi-content{
		font-size:15px;
		line-height:1.6;
	}
	.mh-testi-name{
		font-size:15px;
	}
	.mh-testi-card::after{
		width: 54px;
    	height: 37px;
		top: 50px;
    	right: 37px;
	}
}
@media(max-width:767px){
	.mh-testi-card{
		min-height: 390px;
		padding:46px 28px 34px;
	}
  .mh-testi-stars {
    margin-bottom: 34px;
  }
}
