.home-client-image-card,
.home-client-video-card {
  scroll-snap-align: start;
}

.home-client-image-card {
  flex: 0 0 calc((100% - 2rem) / 3); /* 3 cards per view, with 2rem (32px) gap total */
  max-width: calc((100% - 2rem) / 3);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.home-client-image-card img {
  width: 100%;
  display: block;
  border-radius: 12px 12px 0 0;
}

.home-client-image-content {
  padding: 16px;
  font-size: 16px;
  color: #333;
}
.home-client-image-content .company {
  font-style: italic;
  color: #888;
  margin-bottom: 6px;
}
.home-client-image-content p {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.home-client-video-card {
  flex: 0 0 calc((100% - 2rem) / 3); /* 3 cards per view, with 2rem (32px) gap total */
  max-width: calc((100% - 2rem) / 3);
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.home-client-video-wrapper {
  width: 100%;
  min-height: 100%;
  position: relative;
  border-radius: 12px;
  background-size: auto;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  /* aspect-ratio: 3 / 4; */
}

.home-client-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.55)
  );
  z-index: 1;
  border-radius: 12px;
}

.home-client-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  color: #99c455;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.home-client-video-text-content {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  padding: 16px;
  color: #fff;
  font-size: 16px;
}

.home-client-video-text-content .company {
  font-style: italic;
  color: #ccc;
  margin-top: 4px;
}

.home-client-video {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  z-index: 3;
  border-radius: 12px;
}

.home-client-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}
.home-client-scroll::-webkit-scrollbar {
  display: none;
}

.home-client-scroll-track {
  height: 8px;
  width: 200px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.home-client-scroll-thumb {
  height: 100%;
  width: 40px;
  background-color: #99c455;
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
  transition: left 0.2s ease;
}

.home-client-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.home-client-scroll::-webkit-scrollbar {
  display: none;
}

.home-scrollbar-wrapper {
  width: 100%;
  justify-content: center;
  gap: 10px;
  user-select: none;
}

.home-scroll-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 20px;
  font-weight: bold;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition-duration: 0.3s;
}

.home-scroll-btn:hover {
  background-color: #171717;
}
.home-scroll-btn:hover img{
  filter: brightness(0) invert(1);
}

#home-client-pagination-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #d1d1d1;
  transition: background-color 0.3s;
  cursor: pointer;
}

#home-client-pagination-dots .dot.active {
  background-color: #99c455;
}


.home-scrollbar-track {
  flex-grow: 1;
  height: 6px;
  background: #171717;
  border-radius: 10px;
  position: relative;
}

.home-scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 80px;
  background-color: #99c455;
  border-radius: 10px;
  cursor: pointer;
}

@media (max-width: 992px) {
  .home-client-image-card,
  .home-client-video-card {
    flex: 0 0 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

/* Mobile: 1 card per view */
@media (max-width: 576px) {
  .home-client-image-card,
  .home-client-video-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .home-scrollbar-track {
    display: none !important;
  }
}