.customer-reviews-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.customer-reviews-swiper {
  overflow: hidden;
  padding: 20px 0 60px;
}

.customer-reviews-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  padding: 0;
  margin: 0;
}

.customer-reviews-swiper .swiper-slide.paragraph {
  padding: 0;
  margin: 0;
}

.customer-reviews-swiper .swiper-slide-active {
  opacity: 1;
}

.testimonial-item {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 40px;
  background: #fff;
  /*border-radius: 10px;*/
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.testimonial-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  gap: 15px;
}

.quote-icon {
  font-size: 1rem;
  color: #9a3eb1;
  opacity: 0.3;
  line-height: 1;
}

.customer-info h3 {
  margin: 0 0 5px 0;
  font-size: 1.5rem;
  font-weight: 500;
  color: #333;
}

.customer-info h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  /*text-transform: uppercase;*/
  letter-spacing: 1px;
}

.customer-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  position: relative;
}

.customer-rating .fas,
.customer-rating .far {
  transition: all 0.2s ease;
  cursor: default;
}

.customer-rating .fas {
  color: #ffa500;
  text-shadow: 0 1px 2px rgba(255, 165, 0, 0.3);
}

.customer-rating .far {
  color: #ddd;
}

/* Star animation */
.customer-rating i:hover {
  transform: scale(1.1);
}

/* Styles for when rating is not specified */
.customer-rating.no-rating {
  opacity: 0.5;
}

.customer-rating.no-rating .far {
  color: #eee;
}

/* Hidden text for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Review text */
.testimonial-content {
  font-size: 1rem;
  line-height: 1.7;
  color: #000;
  position: relative;
  padding: 10px;
}

.testimonial-footer {
  display: flex;
  font-style: italic;
  justify-content: center;
  font-size: 0.9rem;
  gap: 20px;
}


.testimonial-content::before,
.testimonial-content::after {
  content: '"';
  font-size: 2rem;
  color: #9a3eb1;
  opacity: 0.3;
  position: absolute;
  top: -10px;
  font-family: serif;
}

.testimonial-content::before {
  left: -10px;
}

.testimonial-content::after {
  right: -10px;
  top: 20px;
}

/* Navigation buttons */
.customer-reviews-navigation {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: -20px;
  position: relative;
  z-index: 10;
}
@media(max-width: 768px) {
  .customer-reviews-navigation {
    display: none;
  }
}

.customer-reviews-prev,
.customer-reviews-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #9a3eb1;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  user-select: none;
}

.customer-reviews-prev:hover,
.customer-reviews-next:hover,
.customer-reviews-prev:focus,
.customer-reviews-next:focus {
  background: #ba4dd5;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(154, 62, 177, 0.4);
  outline: none;
}

.customer-reviews-prev:active,
.customer-reviews-next:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(154, 62, 177, 0.4);
}

.customer-reviews-prev i,
.customer-reviews-next i {
  font-size: 1rem;
  pointer-events: none;
}

/* Hide default Swiper buttons */
.customer-reviews-swiper .swiper-button-next,
.customer-reviews-swiper .swiper-button-prev {
  display: none !important;
}

/* Pagination */
.customer-reviews-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  /*margin-top: 30px;*/
  margin-top: 0px;
  position: relative;
  z-index: 10;
}

.customer-reviews-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #ddd;
  border-radius: 50%;
  opacity: 1;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  border: 2px solid transparent;
}

.customer-reviews-pagination .swiper-pagination-bullet:hover {
  background: #bbb;
}

.customer-reviews-pagination .swiper-pagination-bullet-active {
  background: #9a3eb1;
  transform: scale(1.3);
  border-color: #9a3eb1;
}

/* Responsive styles */
@media (max-width: 768px) {
  .customer-reviews-navigation {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .customer-reviews-prev,
  .customer-reviews-next {
    padding: 10px 20px;
    font-size: 0.8rem;
    min-width: 120px;
    justify-content: center;
  }

  .testimonial-item {
    padding: 30px 15px;
    margin: 0 10px;
  }

  .testimonial-header {
    gap: 10px;
    margin-bottom: 25px;
  }

  .quote-icon {
    font-size: 2rem;
  }

  .customer-info h3 {
    font-size: 1.3rem;
  }

  .customer-rating {
    font-size: 1rem;
    gap: 3px;
  }

  .testimonial-content {
    font-size: 1rem;
    padding: 0 15px;
  }

  .testimonial-content::before,
  .testimonial-content::after {
    font-size: 3rem;
  }

  .testimonial-content::before {
    left: -5px;
  }

  .testimonial-content::after {
    right: -5px;
  }
}

@media (max-width: 480px) {
  .customer-reviews-container {
    padding: 0 10px;
  }

  .testimonial-item {
    padding: 25px 10px;
  }

  .testimonial-content {
    font-size: 0.95rem;
    padding: 0 10px;
  }

  .customer-reviews-prev,
  .customer-reviews-next {
    min-width: 100px;
    padding: 8px 16px;
  }

  .customer-rating {
    font-size: 0.9rem;
  }
}

/* Additional styles for debugging */
.customer-reviews-container * {
  box-sizing: border-box;
}

/* Remove possible theme style conflicts */
.customer-reviews-navigation button {
  font-family: inherit;
  line-height: normal;
}


.customer-reviews-container .swiper-wrapper {
  padding: 20px 0 40px;
}

.customer-reviews-container {
  margin-bottom: 40px;
}

.paragraph--type--customer-reviews h2 {
  margin-bottom: 20px;
}

.swiper-pagination-bullets {
  display: none;
}
