.testimonials-section {
  padding: 80px 0;
  text-align: center;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.testimonials-section h2 {
  font-family: "Manrope", sans-serif;
  font-size: 36px;
  margin-bottom: 50px;
  color: #ff8800;
}
.testimonials-slider {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}
.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}
.testimonial-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
  margin: 0 15px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}
.testimonial-card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}
.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonial-meta {
  flex-grow: 1;
}
.testimonial-author {
  font-weight: 600;
  color: var(--main-color);
  font-size: 16px;
  margin-bottom: 5px;
}
.testimonial-date {
  font-size: 12px;
  color: #4b5563;
}
.testimonial-rating {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.testimonial-rating i {
  font-size: 14px;
  color: var(--main-color);
  width: 15.75px;
  height: 14px;
  line-height: 14px;
}
.testimonial-rating i.far {
  color: #d1d5db;
}
.testimonial-rating .star-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15.75px;
  height: 14px;
}
.testimonial-rating .star-wrapper i {
  position: absolute;
  top: 0;
  left: 0;
}
.testimonial-rating .partial-star {
  overflow: hidden;
}
.testimonial-text-wrapper {
  position: relative;
}
.testimonial-text {
  font-size: 16px;
  color: #1f2937;
  line-height: 1.6;
  max-height: 8em;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease;
  opacity: 1;
}
.testimonial-text.expanded {
  max-height: 1000px;
  opacity: 1;
}
.testimonial-text:not(.expanded) {
  opacity: 0.9;
}
.read-more {
  background: none;
  border: none;
  color: #ff8800;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}
.read-more::after {
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 12px;
  transition: transform 0.3s ease;
}
.read-more:hover {
  color: #e07b00;
}
.read-more.expanded::after {
  transform: rotate(180deg);
}
.testimonials-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.testimonials-controls button {
  background: #ff8800;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.testimonials-controls button:hover {
  background: #e07b00;
  transform: translateY(-2px);
}
.testimonials-controls button i {
  font-size: 14px;
}

.slider-1 .testimonial-card {
  flex: 0 0 calc(100% - 30px);
  max-width: calc(100% - 30px);
}
.slider-2 .testimonial-card {
  flex: 0 0 calc(50% - 30px);
  max-width: calc(50% - 30px);
}
.slider-3 .testimonial-card {
  flex: 0 0 calc(33.333% - 30px);
  max-width: calc(33.333% - 30px);
}
.slider-4 .testimonial-card {
  flex: 0 0 calc(25% - 30px);
  max-width: calc(25% - 30px);
}

@media (max-width: 768px) {
  .testimonials-slider .testimonial-card {
    flex: 0 0 calc(100% - 30px);
    max-width: calc(100% - 30px);
  }
}

