.testimonial-section {
  padding: clamp(30px, 2.083333vw, 40px) 0;
}

.testimonial-section .section-title .section-main-title h2 {
  font-size: clamp(19px, 1.88vw, 36px);
  margin-bottom: 20px;
}

.testimonial-section .section-sub-title {
  position: relative;
  display: inline-block;
}

.testimonial-section .section-sub-title h4 {
  font-size: 24px;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 7px;
  position: relative;
  padding: 0 50px 0;
}

.testimonial-section .section-sub-title::before {
  position: absolute;
  content: "";
  height: 2px;
  width: 35px;
  background: var(--color-primary);
  left: 0;
  top: 9px;
}

.testimonial-section .section-sub-title::after {
  position: absolute;
  content: "";
  height: 2px;
  width: 35px;
  background: var(--color-primary);
  left: -12px;
  top: 17px;
}

.testimonial-section .section-sub-title h4::before {
  position: absolute;
  content: "";
  height: 2px;
  width: 35px;
  background: var(--color-primary);
  right: 0;
  top: 9px;
}

.testimonial-section .section-sub-title h4::after {
  position: absolute;
  content: "";
  height: 2px;
  width: 35px;
  background: var(--color-primary);
  right: -12px;
  top: 17px;
}

.testi-itmes-box {
  background: #f2f2f2;
  padding: 30px 35px 26px;
  position: relative;
  border-radius: 3px;
  z-index: 1;
  margin: 20px;
}

.testi-itmes-box::before {
  position: absolute;
  content: "";
  height: 35px;
  width: 40px; 
  background: #f2f2f2; 
  bottom: -20px;
  left: 40px;
  clip-path: polygon(82% 41%, 106% 40%, 50% 100%, 0% 42%); 
  z-index: -1;
  transition: .5s;
}

.testi-itmes-box:hover:before{
  background: var(--color-primary);
} 

.testi-itmes-box::after{
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background:var(--color-primary);
  clip-path: polygon(50% 0,50% 0,50% 50%,50% 100%,50% 100%,50% 50%);
  border-radius: 3px;
  z-index: -1;
  transition: .5s;
}

.testi-itmes-box:hover::after{
  clip-path: polygon(25% -70%,75% -70%,120% 50%,75% 170%,25% 170%,-20% 50%);
}

.testi-content p {
  font-size: clamp(13px, 0.94vw, 18px);
  line-height: 28px;
  font-weight: 400;
  margin-bottom: 25px;
  transition: .5s;
  color: #333;
  min-height: 112px;
}

.testi-itmes-box:hover .testi-content p{
  color: #ffffff;
}

.testi-thumb {
  float: left;
  margin-right: 24px;
  margin-top: -16px;
  border-radius: 50%;
  padding: 4px;
  border: 2px dashed color-mix(in srgb, var(--color-primary) 60%, transparent) ;
}

.testi-thumb img{border-radius: 50%;}

.testi-title h4 {
  font-size: clamp(16px, 1.04vw, 20px);
  line-height: 28px;
  color: var(--title-text-color);
  font-weight: 500;
  transition: .5s;
}

.testi-itmes-box:hover .testi-title h4{
  color: #ffffff;
}

.testi-title span {
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  transition: .5s;
}

.testi-itmes-box:hover .testi-title span{
  color: #d8d8d8;
}


.testi-icon {
  position: absolute;
  right: 30px;
  bottom: -6px;
  font-size: 64px;
  font-family: monospace;
  color: color-mix(in srgb, var(--color-primary) 50%, transparent) ;
  opacity: 0.400;
  transition: .5s;
}

.testi-itmes-box:hover .testi-icon i{
  color: #f2f2f2;
}

/* owl carousel */

.testimonial-section .owl-carousel .owl-dots.disabled, .owl-carousel .owl-nav.disabled {
  display: none;
}


@media(max-width:1500px){
  .testi-title h4 {
    min-height: 44px;
    line-height: 22px;
  }
  .testi-itmes-box {
    margin: 0;
  }
}

@media only screen and (min-width: 320px) and (max-width: 479px) {
  /*.testimonial-section .testi-thumb {
    display: none;
  }*/
  .testimonial-section .section-sub-title h4 {
		font-size: 22px;
	}

	.testimonial-section .section-title .section-main-title h2 {
    line-height: 1.4;
 }	

  .testi-content p {
    line-height: 24px;
  }

  .testi-itmes-box {
    padding: 20px;
  }
}
