/* Testimonials Section Styles */
.testimonials-section {
  background-color: #ecffeb;
}

.testimonials-title {
  font-size: 24px;
  font-weight: 600;
  color: #0c0c0c;
}

.text-success {
  color: #0FB200;
}

/* Continuous scrolling animation */
.testimonials-carousel {
  overflow: hidden;
  position: relative;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.testimonials-container {
  display: flex;
  transition: none !important;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.testimonial-card {
    width: 280px;
    flex: 0 0 280px;
    max-width: 280px;
    height: 180px;
    border-radius: 0 50px;
    border-bottom: 8px solid #0FB200;
    margin: 0 10px;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

/* Scrollable testimonial content - UPDATED */
.testimonial-content {
    flex: 1;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 0 !important;
}

.testimonial-content.expanded {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar for expanded content */
.testimonial-content.expanded::-webkit-scrollbar {
    width: 5px;
}

.testimonial-content.expanded::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
    margin: 5px 0;
}

.testimonial-content.expanded::-webkit-scrollbar-thumb {
    background: #0FB200;
    border-radius: 10px;
}

.testimonial-content.expanded::-webkit-scrollbar-thumb:hover {
    background: #0C9900;
}

/* Firefox scrollbar */
.testimonial-content.expanded {
    scrollbar-width: thin;
    scrollbar-color: #0FB200 #f1f1f1;
}


.testimonial-text {
    font-size: 12px;
    text-align: start;
    line-height: 1.5;
    word-wrap: break-word;
}


.read-more {
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.read-more:hover {
  color: #0C9900;
  text-decoration: underline;
}

/* Customer Info - UPDATED */
.customer-info {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 0.5rem;
  flex-shrink: 0;
}

.customer-avatar {
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.customer-details {
  flex-grow: 1;
}

.customer-name {
  font-size: 13px;
  font-weight: 600;
  color: #0c0c0c;
  margin: 0;
  line-height: 1.3;
}

.rating {
  padding: 0 0.25rem;
  display: flex;
  align-items: center;
}

.rating-text {
  font-size: 0.875rem;
  margin-left: 0.25rem;
}

.avatar-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-placeholder {
  width: 40px;
  height: 40px;
  font-size: 1rem;
  background-color: #0FB200;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
}

/* Star rating styles */
.star {
  font-size: 1rem;
}

.star-filled {
  color: #ffc107;
}

.star-empty {
  color: #e0e0e0;
}

/* Bottom border effect */
.card-bottom-border {
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 0;
  height: 16px;
  background: linear-gradient(90deg, #0FB200 0%, #20c997 100%);
  border-bottom-left-radius: 60px;
}

/* Navigation Controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border: 2px solid #ddd;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.carousel-btn:hover {
  background-color: #0FB200 !important;
  border-color: #0FB200 !important;
  transform: scale(1.05);
}

.carousel-btn:hover .carousel-arrow svg path {
  fill: white !important;
}

.carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow svg {
  width: 7px;
  height: 12px;
}

/* Hide dots completely */
.testimonials-section.carousel-dots,
.testimonials-section.carousel-dot,
.testimonials-section.carousel-dot.active {
  display: none !important;
}

.lead {
  color: #0c0c0c;
  font-size: 15px;
  font-weight: 500;
}

.testimonials-subtitle {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .testimonial-card {
    flex: 0 0 280px;
    width: 280px;
  }

  .testimonials-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 260px;
    width: 260px;
    min-height: 150px;
  }

  .testimonials-title {
    font-size: 24px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-arrow svg {
    width: 6px;
    height: 10px;
  }

  .testimonials-carousel {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

}

@media (max-width: 576px) {
  .testimonial-card {
    flex: 0 0 240px;
    width: 240px;
    margin: 0 8px;
    min-height: 140px;
    padding: 0.875rem;
  }

  .testimonials-title {
    font-size: 20px;
  }

  .testimonials-subtitle {
    font-size: 0.875rem;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
  }

  .testimonial-text {
    font-size: 11px;
  }

  .customer-name {
    font-size: 12px;
  }

  .carousel-controls {
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  .avatar-img,
  .avatar-placeholder {
    width: 35px;
    height: 35px;
  }

  .rating-text {
    font-size: 0.75rem;
  }
}