/* Testimonials Module */
.jwell-testimonials {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  min-height: 600px;
}

.jwell-testimonials .testimonials-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://kdmfab.com/wp-content/uploads/2024/09/What-Our-Customer-Say-1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(3px);
  z-index: 0;
}

.jwell-testimonials .testimonials-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.jwell-testimonials .container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

.jwell-testimonials .testimonials-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 20px;
}

.jwell-testimonials .testimonials-title {
  font-size: 48px;
  font-weight: bold;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  font-family: var(--title-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
}

.jwell-testimonials .testimonials-nav {
  display: flex;
  gap: 12px;
}

.jwell-testimonials .testimonials-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.jwell-testimonials .testimonials-nav-btn svg {
  width: 24px;
  height: 24px;
}

.jwell-testimonials .testimonials-nav-btn:hover {
  background: #fff;
  color: #026eb7;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.jwell-testimonials .testimonials-nav-btn:active {
  transform: scale(0.95);
}

.jwell-testimonials .testimonials-nav-btn:disabled,
.jwell-testimonials .testimonials-nav-btn.swiper-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.jwell-testimonials .testimonials-nav-btn:disabled:hover,
.jwell-testimonials .testimonials-nav-btn.swiper-button-disabled:hover {
  background: transparent;
  color: #fff;
  transform: none;
  box-shadow: none;
}

.jwell-testimonials .testimonials-swiper {
  position: relative;
  overflow: visible;
  width: 100%;
}

.jwell-testimonials .testimonials-swiper .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.jwell-testimonials .testimonials-swiper .swiper-slide {
  width: auto;
  flex-shrink: 0;
  height: auto;
  display: flex;
}

.jwell-testimonials .testimonial-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jwell-testimonials .testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.jwell-testimonials .testimonial-quote {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0 0 30px 0;
  flex: 1;
  font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
}

.jwell-testimonials .testimonial-customer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.jwell-testimonials .testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid #026eb7;
}

.jwell-testimonials .testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jwell-testimonials .testimonial-info {
  flex: 1;
}

.jwell-testimonials .testimonial-name {
  font-size: 20px;
  font-weight: bold;
  color: #000;
  margin: 0 0 6px 0;
  line-height: 1.2;
  font-family: var(--title-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
}

.jwell-testimonials .testimonial-location {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.4;
  font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
}

/* 覆盖 Swiper 默认按钮样式 */
.jwell-testimonials .swiper-button-prev,
.jwell-testimonials .swiper-button-next {
  position: static;
  margin: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
}

.jwell-testimonials .swiper-button-prev::after,
.jwell-testimonials .swiper-button-next::after {
  display: none;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
  .jwell-testimonials {
    padding: 80px 0;
  }
  
  .jwell-testimonials .testimonials-title {
    font-size: 42px;
  }
  
  .jwell-testimonials .testimonial-card {
    max-width: 380px;
    padding: 35px;
  }
}

@media screen and (max-width: 991px) {
  .jwell-testimonials {
    padding: 70px 0;
    min-height: 550px;
  }
  
  .jwell-testimonials .testimonials-header {
    margin-bottom: 50px;
  }
  
  .jwell-testimonials .testimonials-title {
    font-size: 36px;
  }
  
  .jwell-testimonials .testimonial-card {
    max-width: 350px;
    padding: 30px;
  }
  
  .jwell-testimonials .testimonial-quote {
    font-size: 15px;
    margin-bottom: 25px;
  }
  
  .jwell-testimonials .testimonial-avatar {
    width: 70px;
    height: 70px;
  }
  
  .jwell-testimonials .testimonial-name {
    font-size: 18px;
  }
}

@media screen and (max-width: 768px) {
  .jwell-testimonials {
    padding: 60px 0;
    min-height: 500px;
  }
  
  .jwell-testimonials .testimonials-header {
    margin-bottom: 40px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .jwell-testimonials .testimonials-title {
    font-size: 32px;
  }
  
  .jwell-testimonials .testimonials-nav {
    align-self: flex-end;
  }
  
  .jwell-testimonials .testimonials-nav-btn {
    width: 44px;
    height: 44px;
  }
  
  .jwell-testimonials .testimonials-nav-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .jwell-testimonials .testimonial-card {
    max-width: 100%;
    padding: 30px 25px;
  }
  
  .jwell-testimonials .testimonial-quote {
    font-size: 15px;
    margin-bottom: 25px;
  }
  
  .jwell-testimonials .testimonial-avatar {
    width: 65px;
    height: 65px;
  }
  
  .jwell-testimonials .testimonial-name {
    font-size: 18px;
  }
  
  .jwell-testimonials .testimonial-location {
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  .jwell-testimonials {
    padding: 50px 0;
    min-height: 450px;
  }
  
  .jwell-testimonials .testimonials-header {
    margin-bottom: 35px;
  }
  
  .jwell-testimonials .testimonials-title {
    font-size: 28px;
  }
  
  .jwell-testimonials .testimonials-nav-btn {
    width: 40px;
    height: 40px;
  }
  
  .jwell-testimonials .testimonials-nav-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .jwell-testimonials .testimonial-card {
    padding: 25px 20px;
  }
  
  .jwell-testimonials .testimonial-quote {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .jwell-testimonials .testimonial-avatar {
    width: 60px;
    height: 60px;
  }
  
  .jwell-testimonials .testimonial-name {
    font-size: 17px;
  }
  
  .jwell-testimonials .testimonial-location {
    font-size: 12px;
  }
}

