/* CSS - Save as testimonial-slider.css in your theme directory */

/* Testimonial Slider Wrapper */
.testimonial-slider-wrapper {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  position: relative;
}

/* Testimonial Item Styling */
.testimonial-item {
  padding: 20px;
  outline: none;
}

.testimonial-content {
  background: #fff;
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(45deg, #007cba, #00a0d2);
}

.testimonial-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Quote Icon */
.quote-icon {
  margin-bottom: 25px;
  opacity: 0.2;
}

.quote-icon svg {
  fill: #007cba;
}

/* Testimonial Text */
.testimonial-text {
  margin-bottom: 25px;
}

.testimonial-text p {
  font-size: 18px;
  line-height: 1.7;
  color: #444;
  font-style: italic;
  margin: 0;
  position: relative;
}

/* Rating Stars */
.testimonial-rating {
  margin-bottom: 25px;
}

.star {
  color: #ddd;
  font-size: 20px;
  margin: 0 2px;
  transition: color 0.3s ease;
}

.star.filled {
  color: #ffd700;
}

/* Author Section */
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.author-image {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #f8f9fa;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  text-align: left;
}

.author-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 5px 0;
}

.author-position {
  font-size: 14px;
  color: #666;
  margin: 0;
  font-weight: 400;
}

/* Owl Carousel Custom Navigation */
.testimonial-slider-wrapper .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  pointer-events: none;
}

.testimonial-slider-wrapper .owl-nav button {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #007cba;
  font-weight: bold;
}

.testimonial-slider-wrapper .owl-nav button:hover {
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.testimonial-slider-wrapper .owl-nav .owl-prev {
  left: -25px;
}

.testimonial-slider-wrapper .owl-nav .owl-next {
  right: -25px;
}

.testimonial-slider-wrapper .owl-nav button span {
  font-size: 24px;
  line-height: 1;
}

/* Custom Dots */
.testimonial-slider-wrapper .owl-dots {
  text-align: center;
  margin-top: 30px;
}

.testimonial-slider-wrapper .owl-dots .owl-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  margin: 0 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.testimonial-slider-wrapper .owl-dots .owl-dot:hover,
.testimonial-slider-wrapper .owl-dots .owl-dot.active {
  background: #007cba;
  transform: scale(1.3);
}

.testimonial-slider-wrapper .owl-dots .owl-dot span {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .testimonial-slider-wrapper {
    padding: 0 10px;
    margin: 20px auto;
  }

  .testimonial-content {
    padding: 30px 20px;
  }

  .testimonial-text p {
    font-size: 16px;
  }

  .testimonial-author {
    flex-direction: column;
    gap: 15px;
  }

  .author-info {
    text-align: center;
  }

  .testimonial-slider-wrapper .owl-nav .owl-prev {
    left: -15px;
  }

  .testimonial-slider-wrapper .owl-nav .owl-next {
    right: -15px;
  }

  .testimonial-slider-wrapper .owl-nav button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .testimonial-slider-wrapper .owl-nav {
    display: none;
  }

  .testimonial-content {
    padding: 25px 15px;
  }

  .author-image {
    width: 60px;
    height: 60px;
  }
}

/* Loading Animation */
.testimonial-slider-wrapper .owl-carousel.owl-loading {
  opacity: 0;
}

.testimonial-slider-wrapper .owl-carousel {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Custom Animation Classes */
.owl-item.active .testimonial-content {
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
