/*======================================
TESTIMONIALS
======================================*/

.testimonials-section {
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}

.testimonial-header {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-bottom: 30px;
}

.testimonial-subtitle {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #7c3aed;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.testimonial-header h2 {
  font-size: 46px;
  font-weight: 800;
  margin-top: 12px;
  color: var(--heading);
  line-height: 1.2;
}

.testimonial-slider {
  overflow: hidden;
  width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
}

.testimonial-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: testimonialScroll 40s linear infinite;
  will-change: transform;
}

.testimonial-slider:hover .testimonial-track {
  animation-play-state: paused;
}

/*=========================
CARD
=========================*/

.testimonial-card {
  width: 390px;
  min-height: 260px;
  background: #fff;
  border-radius: 20px;
  padding: 35px;
  flex-shrink: 0;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(22, 40, 76, 0.08);
  transition: 0.35s;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.quote {
  font-size: 52px;
  color: #7c3aed;
  line-height: 1;
  margin-bottom: 15px;
}

.testimonial-message {
  font-size: 17px;
  line-height: 1.8;
  color: #16284c;
  min-height: 105px;
}

.rating {
  margin: 18px 0 25px;
  color: #7c3aed;
  letter-spacing: 3px;
  font-size: 18px;
}

.client {
  display: flex;
  align-items: center;
  gap: 18px;
}

.client img {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  object-fit: cover;
}

.client-info h4 {
  font-size: 19px;
  color: #16284c;
  margin-bottom: 4px;
}

.client-info p {
  color: #777;
  font-size: 15px;
}

.client-info span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: #999;
}

/*=========================
Animation
=========================*/

@keyframes testimonialScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}
/*=========================
1400
=========================*/
@media (max-width: 1400px) {
  .testimonial-card {
    width: 360px;
  }
}

/*=========================
992
=========================*/
@media (max-width: 992px) {
  .testimonials-section {
    padding: 50px 0;
  }

  .testimonial-header {
    align-items: center;

    text-align: center;
  }

  .testimonial-header h2 {
    font-size: 40px;
  }

  .testimonial-card {
    width: 46vw;
  }
}

/*=========================
768
=========================*/
@media (max-width: 768px) {
  .testimonial-card {
    width: 80vw;
  }

  .testimonial-header h2 {
    font-size: 34px;
  }
}

/*=========================
480
=========================*/
@media (max-width: 480px) {
  .testimonials-section {
    padding: 30px 0;
  }

  .testimonial-card {
    width: 90vw;
    padding: 28px;
  }

  .testimonial-header {
    align-items: center;
  }

  .testimonial-header h2 {
    font-size: 28px;
  }

  .testimonial-message {
    min-height: auto;
  }
}
