/* ===================================================
   Layout: Testimonials
   File:   template-parts/flexible/testimonials/testimonials.css
=================================================== */

.testimonials {
  position: relative;
  padding: 80px 0;
  background-color: var(--color-14, #fcfbf4);
}

.testimonials .icon-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonials .icon-heading img {
  width: auto;
  height: auto;
  display: inline-block;
}

.testimonials-heading-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonials-heading-container p {
  margin: 0 !important;
}

.testimonal-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 580px;
  padding-right: 32px;
}

.testimonials-number-container {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  padding-top: 48px;
}

/* ===================================================
   Testimonial Cards Wrapper & Vertical Continuous Slider
=================================================== */

.testimonial-cards-wrapper {
  position: relative;
  width: 100%;
  height: 640px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000000 8%,
    #000000 78%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000000 8%,
    #000000 78%,
    transparent 100%
  );
}

.testimonial-sliders-desktop {
  display: flex;
  gap: 24px;
  width: 100%;
  height: 100%;
}

.testimonial-sliders-mobile {
  display: flex;
  width: 100%;
  height: 100%;
}

.testimonials-swiper {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.testimonials-swiper--mobile {
  flex: 1 1 100%;
}

.testimonials-swiper .swiper-wrapper {
  /* Continuous linear sliding in Y axis */
  transition-timing-function: linear !important;
}

.testimonials-swiper .swiper-slide {
  height: auto !important;
  box-sizing: border-box;
}

/* ===================================================
   Testimonial Card Box
=================================================== */

.testimonal-box {
  background-color: var(--color-white, #ffffff);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  width: 100%;
  box-sizing: border-box;
}

.testimonal-box p {
  margin: 0 !important;
}

.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ===================================================
   Responsive
=================================================== */

@media (max-width: 991.98px) {
  .testimonials {
    padding: 60px 0;
  }

  .testimonal-left {
    min-height: auto;
    margin-bottom: 40px;
    padding-right: 0;
  }

  .testimonial-cards-wrapper {
    height: 520px;
  }
}

@media (max-width: 767.98px) {
  .testimonials {
    padding: 40px 0;
  }

  .testimonials-number-container {
    gap: 40px;
    padding-top: 28px;
    padding-bottom: 32px;
  }

  .testimonial-cards-wrapper {
    height: 340px;
    -webkit-mask-image: linear-gradient(
      180deg,
      transparent 0%,
      #000000 6%,
      #000000 70%,
      transparent 100%
    );
    mask-image: linear-gradient(
      180deg,
      transparent 0%,
      #000000 6%,
      #000000 70%,
      transparent 100%
    );
  }

  .testimonal-box {
    padding: 24px 20px;
    border-radius: 16px;
  }
}
