.testimonial-section {
  padding: 60px 0;
}

.testimonial-section .section-title .section-main-title h2 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 42px;
}

.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: 50px 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: 16px;
  line-height: 28px;
  font-weight: 400;
  margin-bottom: 25px;
  transition: .5s;
}

.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-title h4 {
  font-size: 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;
}

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

@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: 28px;
	}	
}


@media screen and (max-width: 1500px) {
  .testimonial-section .section-title .section-main-title h2{font-size: 40px;}
}
@media screen and (max-width: 1440px) {
  .testimonial-section .section-title .section-main-title h2{font-size: 36px;}
}
@media screen and (max-width: 1281px) {
  .testimonial-section .section-title .section-main-title h2{font-size: 34px;}
}
@media screen and (max-width: 1171px) {
  .testimonial-section .section-title .section-main-title h2{font-size: 30px;}
}
@media screen and (max-width: 992px) {
  .testimonial-section .section-title .section-main-title h2{font-size: 26px;}
  .testi-content p {font-size: 14px;line-height: 24px;}
  .testi-itmes-box {padding: 20px;}
}
@media screen and (max-width: 768px) {
  .testimonial-section .section-title .section-main-title h2{font-size: 24px;}
}
@media screen and (max-width: 480px) {
  .testimonial-section .section-title .section-main-title h2{font-size: 22px;}
}
