.client-reviews {
  background: #fff;
}

.review-btn {
  margin-bottom: 20px;
  padding-top: 70px;
  text-align: center;
}

.review-btn button {
  text-align: center;
  background: linear-gradient(90deg, #a3d3ff, #b5e0ff);
  color: #1d7dc4;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.7rem;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.review-btn button:hover {
  border: 1px solid #1d7dc4;
}

.slider-container {
  width: 100%; /* use container width to prevent vw overflow */
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  position: relative;
  padding: 0;
}

.slides-reviews {
  display: flex;
  gap: 20px;
  animation: scroll 30s linear infinite;
  width: max-content;
  padding: 12px 8px;
}

.review-box {
  background: #f7f9fc;
  border-radius: 16px;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3),
    -2px -2px 2px rgba(255, 255, 255, 0.5);
  width: 320px; /* slightly larger to avoid overflow */
  height: 300px; /* slightly taller */
  flex: 0 0 auto;
  padding: 12px 18px; /* reduce horizontal padding so content fits */
  transition: transform 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden; /* ensure no inner scrollbars */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.review-box:hover {
  transform: translateY(-5px);
}

.review-message {
  color: #444;
  font-size: 13px; /* smaller font so long messages fit */
  line-height: 1.45;
  margin-bottom: 20px; /* reduce gap to free vertical space */
  max-height: 7.2em; /* clamp message height */
  overflow: hidden; /* hide overflow without scrollbar */
  /* display: -webkit-box; */
  /* -webkit-line-clamp: 5; */
  /* -webkit-box-orient: vertical; */
}

.stars {
  color: #f5a623;
  margin-bottom: 10px;
}

.stars span {
  color: #777;
  font-size: 14px;
  margin-left: 4px;
}

.client-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.client-details {
  font-size: 13px;
  color: #333;
}

.client-details h4 {
  font-size: 13px;
  margin: 0;
  font-weight: 600;
  padding-bottom: 4px;
}

.client-details p {
  margin: 0;
  color: #777;
  font-size: 12px;
}

.client-details p i {
  padding-right: 5px;
}

.verified-btn {
  background: #fff;
  color: #000;
  border: 1px solid #000;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  cursor: default;
}

.chatsx {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* margin-bottom: 5px; */
  padding-top: 20px;
}

.checkbox {
  font-size: 14px;
  color: #555;
  display: flex;
  align-items: center;
}

.checkbox i {
  background: linear-gradient(180deg, #126fd2, #8dac95, #038cb2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-right: 8px;
  font-size: 28px;
}

.stars i {
  margin-right: 2px;
  font-size: 13px;
}

.stars span {
  font-size: 13px;
  color: #777;
  font-weight: lighter;
}
hr {
  border: none;
  border-top: 1px solid #eae9e9fb;
  margin: 19px 0;
  margin-bottom: 20px;
  color: #f6f0f0;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-33.33% - 20px));
  }
}

.slides-reviews.paused {
  animation-play-state: paused;
}

/* Responsive */
@media (max-width: 768px) {
  .review-box {
    width: 240px;
    height: 260px;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .review-box {
    width: 220px;
    height: 250px;
    padding: 10px 15px;
  }
}

.slides-reviews.paused,
.slides-reviews-two.paused {
  animation-play-state: paused;
}

/* Styles for the second slider (classes suffixed with -two) */
.slider-container-two {
  width: 100%;
  max-width: 100%;
  margin: 12px 0 0 0;
  overflow: hidden;
  position: relative;
  padding: 0;
}

.slides-reviews-two {
  display: flex;
  gap: 18px;
  animation: scroll-two 36s linear infinite;
  width: max-content;
  padding: 10px 0; /* remove horizontal padding */
  margin-left: 12px;
  padding-bottom: 50px;
}

/* make the second slider boxes match first slider boxes */
.review-box-two {
  background: #f7f9fc;
  border-radius: 16px;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3),
    -2px -2px 2px rgba(255, 255, 255, 0.5);
  width: 320px;
  height: 300px;
  flex: 0 0 auto;
  padding: 12px 18px;
  transition: transform 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.review-box-two:hover {
  transform: translateY(-5px);
}

.review-message-two {
  color: #444;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 15px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  flex: 1;
}

.client-info-two {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.stat {
  width: 100%;
  margin: auto;
  padding: 30px 0px;
  background: #fff;
}

.my-stats {
  display: flex;
  gap: 100px;
  font-size: 30px;
  font-weight: bold;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.review-stat {
  margin: 10px;
  text-align: center;
  border-radius: 5px;
  padding: 10px;
}

.review-stat h3 {
  background: linear-gradient(360deg, #126fd2, #8dac95, #038cb2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-size: 40px;
  margin-bottom: 10px;
  font-weight: 700;
}

.review-stat h6 {
  background: linear-gradient(180deg, #126fd2, #8dac95, #038cb2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-size: 13px;
  font-weight: lighter;
}

@keyframes scroll-two {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .review-box {
    width: 240px;
    height: 260px;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .review-box {
    width: 220px;
    height: 250px;
    padding: 10px 15px;
  }
}
