/* Testimonials Widget Styles */

/* Stars Rating */
.testimonial-rating {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  justify-content: flex-start;
}

.star {
  color: #ffc107;
  font-size: 20px;
}

.star.empty {
  color: #e0e0e0;
}

/* Testimonial Text */
.testimonial-text {
  font-size: 25px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--e-global-color-primary);
  margin-bottom: 25px;
  font-style: italic;
  flex-grow: 1;
}

/* Author Info */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: auto;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f0f0f0;
}

.author-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 5px 0;
}

.author-info p {
  font-size: 0.9rem;
  color: #888;
  margin: 0;
}

/* Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
  color: #333;
  background: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  margin-top: -25px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
  font-weight: 600;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #333;
  color: #fff;
  transition: all 0.3s ease;
}

/* Pagination */
.swiper-pagination {
  bottom: 20px;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #ccc;
  opacity: 1;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .testimonials-widget {
    padding: 0;
  }

  .testimonials-container {
    padding: 0 15px;
  }

  .testimonials-title h2 {
    font-size: 2rem;
  }

  .testimonials-slide {
    padding: 30px 20px;
    min-height: 300px;
  }

  .testimonial-text {
    font-size: 0.95rem;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

@media (max-width: 480px) {
  .testimonials-title h2 {
    font-size: 1.75rem;
  }

  .testimonials-slide {
    padding: 25px 15px;
  }

  .testimonial-text::before {
    font-size: 2.5rem;
    top: 10px;
    left: 15px;
  }

  .author-avatar {
    width: 40px;
    height: 40px;
  }
}

/* Animations */
.testimonials-widget {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.testimonials-widget.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Loading State */
.testimonials-swiper:not(.swiper-initialized) {
  opacity: 0;
}

.testimonials-swiper.swiper-initialized {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Custom scrollbar for touch devices */
.testimonials-swiper::-webkit-scrollbar {
  display: none;
}

/* Custom SVG Navigation below slider */
.testimonials-custom-navigation {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
  padding-right: 20px;
}

.testimonials-custom-navigation .testimonials-arrow-prev,
.testimonials-custom-navigation .testimonials-arrow-next {
  width: 50px;
  height: 50px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.testimonials-custom-navigation .testimonials-arrow-prev:hover,
.testimonials-custom-navigation .testimonials-arrow-next:hover {
  background: #333;
  border-color: #333;
  transform: scale(1.1);
}

.testimonials-custom-navigation .testimonials-arrow-prev:hover svg,
.testimonials-custom-navigation .testimonials-arrow-next:hover svg {
  stroke: #fff;
}

.testimonials-custom-navigation .testimonials-arrow-prev svg,
.testimonials-custom-navigation .testimonials-arrow-next svg {
  width: 24px;
  height: 22px;
  stroke: #333;
  fill: none;
  transition: stroke 0.3s ease;
}

/* Responsive adjustments for custom SVG navigation */
@media (max-width: 768px) {
  .testimonials-custom-navigation {
    justify-content: center;
    padding-right: 0;
    margin-top: 20px;
  }

  .testimonials-custom-navigation .testimonials-arrow-prev,
  .testimonials-custom-navigation .testimonials-arrow-next {
    width: 45px;
    height: 45px;
  }

  .testimonials-custom-navigation .testimonials-arrow-prev svg,
  .testimonials-custom-navigation .testimonials-arrow-next svg {
    width: 20px;
    height: 18px;
  }
}
