/* Testimonials Section */
.testimonials-section {
  background-color: #fcf9f2;
  padding: 60px 20px;
  overflow: hidden;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.testimonials-header {
  margin-bottom: 40px;
}

.testimonials-title {
  font-size: 2.5rem;
  color: #333;
  font-family: 'Georgia', serif;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
}

.testimonials-description {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Testimonial Slider */
.testimonials-slider {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  touch-action: pan-y pinch-zoom;
}

.testimonials-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  gap: 30px;
  padding: 10px 0;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 20px);
  background: #fff;
  padding: 40px 30px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
  -webkit-user-select: none;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card:active {
  transform: scale(0.98);
}

.testimonial-quote {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  font-style: italic;
  margin-bottom: 25px;
  position: relative;
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  transition: all 0.3s ease;
}

.testimonial-card.expanded .testimonial-quote {
  -webkit-line-clamp: unset; /* remove truncation */
  overflow: visible;
}

.testimonial-quote::before {
  content: '"';
  font-size: 4rem;
  color: #fcf9f2;
  position: absolute;
  top: -20px;
  left: -10px;
  font-family: serif;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: auto;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ba9f38, #b8c526);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #333;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.author-info {
  text-align: left;
}

.author-name {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
  margin-bottom: 3px;
}

.author-title {
  color: #999;
  font-size: 0.85rem;
}

/* Navigation Arrows */
.testimonial-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
}

.nav-arrow {
  width: 50px;
  height: 50px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  color: #666;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-arrow:hover {
  background: #333;
  border-color: #333;
  color: #fff;
  transform: scale(1.05);
}

.nav-arrow:active {
  transform: scale(0.95);
}

.nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.nav-arrow:disabled:hover {
  background: #fff;
  border-color: #e0e0e0;
  color: #666;
}

/* Pagination Dots */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.dot:hover {
  background: #ba9f38;
  opacity: 0.7;
}

.dot.active {
  background: #ba9f38;
  transform: scale(1.2);
}

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

.star {
  color: #ba9f38;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 15px);
  }

  .testimonials-title {
    font-size: 2.2rem;
  }

  .testimonials-track {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 50px 15px;
  }

  .testimonials-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .testimonials-header {
    margin-bottom: 30px;
  }

  .testimonial-card {
    flex: 0 0 90%;
    margin: 0 5%;
    min-height: 320px;
    padding: 35px 25px;
  }

  .testimonials-track {
    gap: 0;
    padding: 10px 0;
  }

  .testimonial-quote {
    font-size: 1.05rem;
    line-height: 1.6;
    -webkit-line-clamp: 6;
  }

  .testimonial-nav {
    margin-top: 35px;
    gap: 15px;
  }

  .nav-arrow {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .author-avatar {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .testimonials-section {
    padding: 40px 10px;
  }

  .testimonials-title {
    font-size: 1.75rem;
  }

  .testimonial-card {
    flex: 0 0 95%;
    margin: 0 2.5%;
    padding: 30px 20px;
    min-height: 280px;
  }

  .testimonial-quote {
    font-size: 1rem;
    margin-bottom: 20px;
    -webkit-line-clamp: 5;
  }

  .testimonial-quote::before {
    font-size: 3rem;
    top: -15px;
  }

  .testimonial-rating {
    margin-bottom: 15px;
  }

  .star {
    font-size: 1rem;
  }

  .nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .testimonial-nav {
    margin-top: 30px;
    gap: 12px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .author-name {
    font-size: 0.95rem;
  }
}