/* Testimonials Section */
.testimonials {
  position: relative;
  padding: 20px 0;
  background-color: {{ section.settings.color_background }};
  color: {{ section.settings.color_text }};
  overflow: hidden; /* 防止出现横向滚动条 */
}

.testimonials__header {
  text-align: center;
  margin-bottom: 30px;
}

.testimonials__title {
  font-size: 32px;
  color: inherit;
}

.testimonials__carousel {
  position: relative;
}

.testimonials__wrapper {
  /* 移除 display: flex; */
}

.swiper-slide {
  width: auto; /* 让 Swiper 根据内容自动调整滑块宽度 */
}

.testimonial-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%; /* 确保滑块占满容器宽度 */
  box-sizing: border-box;
}

.testimonial-slide__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.testimonial-slide__text {
  font-size: 18px;
  line-height: 1.5;
}

.testimonial-slide__author {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.testimonial-slide__avatar {
  width: 50px;
  height: 50px;
  background-color: #333;
  color: #fff;
  font-size: 24px;
  line-height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  text-transform: uppercase;
}

.testimonial-slide__author-name {
  width: 200px;
  height: 80px;
}

/* Swiper Navigation Buttons */
.testimonials__button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.testimonials__button--prev {
  left: 10px;
}

.testimonials__button--next {
  right: 10px;
}

.testimonials__button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.testimonials__button:hover {
  opacity: 0.7;
}

.testimonials__button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Swiper Pagination */
.testimonials__pagination {
  text-align: center;
  margin-top: 20px;
}

.swiper-pagination-bullet {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 5px;
}

.swiper-pagination-bullet-active {
  background-color: #000;
}

.testimonials__carousel .swiper-pagination{
  bottom: -20px !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .testimonial-slide__content {
    padding: 0 20px;
  }

  .testimonial-slide__text {
    font-size: 16px;
  }


  .testimonials__button {
    top: auto;
    bottom: -20px;
    transform: none;
  }

  .testimonials__button--prev {
    left: 30%;
  }

  .testimonials__button--next {
    right: 30%;
  }

}