/* 🌟 Testimonial Section */
.testimonial-section {
  padding: 0px 18%;
}

@media (max-width: 1400px) {
  .testimonial-section {
    padding: 0px 12%;
  }
}

@media (max-width: 992px) {
  .testimonial-section {
    padding: 0px 6%;
  }
}

@media (max-width: 576px) {
  .testimonial-section {
    padding: 0px 3%;
  }
}

/* Container Background */
.testimonial-carousel .container-fluid {
  padding: 80px 0;
  background-color: #f8f9ff;
  text-align: center;
}

/* Title */
.testimonial-carousel h5 {
  color: #6f42c1;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

.testimonial-carousel h4 {
  color: #333;
  font-weight: 500;
  max-width: 820px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Card */
.testimonial-carousel .position-relative {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.testimonial-carousel .position-relative:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 50px rgba(0,0,0,0.1);
}

/* Always Horizontal Layout */
.testimonial-carousel .d-flex {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: 15px;
  white-space: nowrap;        /* Chặn rớt xuống dòng */
  overflow: hidden;           /* Không cho bị bể layout */
}

/* Avatar */
.testimonial-carousel .img-fluid {
  max-width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.testimonial-carousel .img-fluid:hover {
  transform: scale(1.1);
}

/* Name & Role */
.testimonial-carousel .ml-3 {
  margin-left: 0;
  flex: 1;
}

.testimonial-carousel h6 {
  font-weight: 700;
  color: #333;
}

.testimonial-carousel span {
  color: #888;
  font-size: 14px;
  font-style: italic;
}

/* Content */
.testimonial-carousel .m-0 {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  text-align: left;
  margin-top: 15px;
}

/* Responsive for All Devices */
@media (max-width: 768px) {
  .testimonial-carousel .img-fluid {
    max-width: 50px;
    height: 50px;
  }

  .testimonial-carousel .m-0 {
    font-size: 14px;
  }
}

/* Nokia & màn cực nhỏ */
@media (max-width: 400px) {
  .testimonial-carousel .d-flex {
    gap: 10px;
  }

  .testimonial-carousel .img-fluid {
    max-width: 42px;
    height: 42px;
  }

  .testimonial-carousel .m-0 {
    font-size: 12px;
  }

  .testimonial-carousel .position-relative {
    padding: 20px;
  }
}
