.testimonials-section {
  background-color: #f9fbfd;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a97b5' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
  color: #ffd700;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.testimonial-quote {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 30px;
  flex-grow: 1;
  position: relative;
  padding-left: 25px;
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: auto;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.author-info p {
  font-size: 0.9rem;
  color: #666;
}

/* Testimonial Slider */
.testimonial-slider-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-group {
  display: none;
  animation: fadeEffect 0.5s;
}

.testimonial-group.active {
  display: block;
}

@keyframes fadeEffect {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 1;
  }
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  gap: 20px;
}

.testimonial-prev,
.testimonial-next {
  background: var(--primary-color);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-pagination {
  display: flex;
  gap: 10px;
}

.pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

@media (max-width: 992px) {
  .testimonials-section {
    padding: 70px 0;
  }
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 50px 0;
  }

  .testimonial-card {
    padding: 25px;
    margin-bottom: 20px;
  }

  .testimonial-quote {
    font-size: 1rem;
  }

  .author-image {
    width: 50px;
    height: 50px;
  }

  .testimonial-prev,
  .testimonial-next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

