/* Client Reviews Section Styles */
.cs-testimonial-scroller {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.cs-testimonial-scroll-row {
  width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
  display: block;
  white-space: nowrap;
}

.cs-testimonial-item-5 {
  background: linear-gradient(267deg, #161616 0%, #080808 100%);
  border-radius: 10px;
  padding: 20px;
  margin: 0 5px;
  width: 420px;
  height: auto;
  min-height: 200px;
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
  white-space: normal;
  vertical-align: top;
  box-sizing: border-box;
}

.cs-testimonial-item-5:hover {
  transform: translateY(-10px);
}

.cs-testimonial-item-5 .inner-shadow1,
.cs-testimonial-item-5 .inner-shadow2,
.cs-testimonial-item-5 .inner-shadow3 {
  position: absolute;
  background: transparent;
  border-radius: 50%;
}

.cs-testimonial-item-5 .inner-shadow1 {
  width: 200px;
  height: 200px;
  top: -100px;
  right: -100px;
}

.cs-testimonial-item-5 .inner-shadow2 {
  width: 150px;
  height: 150px;
  bottom: -75px;
  left: -75px;
}

.cs-testimonial-item-5 .inner-shadow3 {
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.05;
}

.cs-testimonial-item-5 ul {
  display: flex;
  padding: 0;
  margin: 0 0 15px 0;
  list-style: none;
}

.cs-testimonial-item-5 ul li {
  margin-right: 5px;
  color: #38b8ad;
  position: relative;
}

/* Half star styling */
.cs-testimonial-item-5 ul li.half-star {
  position: relative;
}

.cs-testimonial-item-5 ul li.half-star:before {
  content: "\f089"; /* fa-star-half-alt */
  font-family: "Font Awesome 5 Free";
  position: absolute;
  left: 0;
  top: 0;
  color: #38b8ad;
}

/* Empty star styling */
.cs-testimonial-item-5 ul li.empty-star i {
  color: rgba(255, 74, 23, 0.3);
}

.cs-testimonial-item-5 p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
  max-height: 120px;
  overflow-y: auto;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.cs-testimonial-author {
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 15px;
  width: 100%;
}

.cs-testimonial-author .item-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
}

.cs-testimonial-author .item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-testimonial-author .item-text h3 {
  font-size: 16px;
  text-transform: capitalize;
  font-weight: 600;
  font-style: italic;
  line-height: 1.2;
  margin: 0;
  color: #38b8ad;
}

.cs-testimonial-author .item-text span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Animation for marquee */
@keyframes marqueeAnimationLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marqueeAnimationRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.js-marquee-wrapper-left {
  animation: marqueeAnimationLeft 10s linear infinite;
  display: flex;
  width: max-content;
}

.js-marquee-wrapper-right {
  animation: marqueeAnimationRight 10s linear infinite;
  display: flex;
  width: max-content;
}

.js-marquee-wrapper-left:hover,
.js-marquee-wrapper-right:hover {
  animation-play-state: paused;
}

.js-marquee {
  display: flex;
  width: max-content;
}

/* Ensure each row is clearly separated */
.cs-testimonial-scroll-row:first-child {
  margin-bottom: 40px;
}

/* Ensure the animation is smooth */
.js-marquee-wrapper-left,
.js-marquee-wrapper-right {
  will-change: transform;
  backface-visibility: hidden;
}

/* Responsive styles */
@media screen and (max-width: 1199px) {
  .cs-testimonial-item-5 {
    width: 400px;
    height: 260px;
  }
}

@media screen and (max-width: 991px) {
  .cs-testimonial-item-5 {
    width: 350px;
    height: auto;
    min-height: 240px;
    padding: 25px;
  }
  
  .cs-testimonial-author {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 15px;
  }
  
  .cs-testimonial-item-5 p {
    max-height: none;
    -webkit-line-clamp: 4;
  }
}

@media screen and (max-width: 767px) {
  .cs-testimonial-item-5 {
    width: 300px;
    height: auto;
    min-height: 230px;
    padding: 20px;
  }
  
  .cs-testimonial-item-5 p {
    font-size: 14px;
    max-height: none;
    margin-bottom: 15px;
    -webkit-line-clamp: unset;
    white-space: normal;
    overflow: visible;
  }
  
  .cs-testimonial-author {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 10px;
  }
  
  .cs-testimonial-author .item-img {
    width: 50px;
    height: 50px;
  }
  
  .cs-testimonial-author .item-text h3 {
    font-size: 16px;
  }
  
  .cs-testimonial-author .item-text span {
    font-size: 13px;
  }
}

@media screen and (max-width: 575px) {
  .cs-testimonial-item-5 {
    width: 280px;
    height: auto;
    min-height: 220px;
    padding: 15px;
  }
  
  .cs-testimonial-author {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 10px;
  }
  
  .cs-testimonial-item-5 p {
    font-size: 13px;
    line-height: 1.5;
  }
}

@media screen and (max-width: 400px) {
  .cs-testimonial-item-5 {
    width: 250px;
    padding: 12px;
  }
  
  .cs-testimonial-item-5 p {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 10px;
  }
  
  .cs-testimonial-author .item-text h3 {
    font-size: 14px;
  }
}