.testimonial-slider {
  width: 100%;
  padding: 20px 0;
  position: relative;
}

.swiper {
  width: 100%;
}

.swiper-wrapper {
  align-items: stretch; /* Make all slides equal height */
}

.swiper-slide {
  box-sizing: border-box;
  width: auto;
  flex-shrink: 0;
  height: auto !important; /* Override Swiper's height */
  display: flex;
  transition: all 0.6s ease !important;
}

.testimonial-slide-content {
  background: white;
  padding: 40px 22px;
  border-radius: 12px;
  background: var(--White, #fff);
  box-shadow: 10px 24px 54px 0px rgba(0, 0, 0, 0.06);
  text-align: center;
  /* margin: 0 15px; */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s, opacity 0.4s;
}

.testimonial-slide-content img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.customer-name {
  display: block;
  color: #000;
  font-family: "Nunito Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.customer-title {
  color: #aaa;
  font-family: "Nunito Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.testimonial-slide-content p {
  color: #747474;
  text-align: center;
  font-family: "DM Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.5px;
  margin-bottom: 52px;
}

.stars {
  color: #fdc350;
  font-size: 16px;
  display: flex;
}

.testimonial-nav-buttons {
  display: inline-flex;
  gap: 16px;
}

.testimonial-nav-buttons button {
  background-color: #f0871f;
  border: none;
  color: white;
  font-size: 20px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

/* .testimonial-nav-buttons button:hover {
  background-color: #e07b1c;
} */

.testimonial-nav-buttons button:hover,
.testimonial-nav-buttons button:focus,
.testimonial-nav-buttons button:active {
  background-color: #f0871f;
}

.testimonial-main .testimonial-nav-buttons {
  margin-top: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.testimonial-aside p {
  margin-bottom: 0 !important;
}

.testimonial-aside .testimonial-nav-buttons {
  margin-top: 0;
  display: inline-flex;
  width: auto;
}

@media (max-width: 1024px) {
  .testimonial-slide-content p {
    margin-bottom: 20px;
  }

  .customer-title {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .swiper-slide {
    width: 100%;
  }
  .testimonial-slide-content {
    /* margin: 0 10px; */
  }
}

/* overflow hidden & box shadow solution */
.testimonial-slider {
  .swiper {
    overflow: visible;
    transition: all 600ms ease;
  }

  .swiper-slide {
    visibility: hidden;
    opacity: 0;
    z-index: 0 !important;
  }

  .swiper-slide-active,
  .swiper-slide-next,
  .swiper-slide-next + .swiper-slide {
    visibility: visible;
    opacity: 1;
    z-index: 11;
  }
}

@media (max-width: 768px) {
  .swiper-slide:has(+ .swiper-slide-active) {
    visibility: visible;
    opacity: 1;
    z-index: 11;
  }
}
