.aptly-testimonials #testimonial-fade-carousel,
.aptly-testimonials #testimonial-mobile-carousel {
  transition: height 350ms ease;
}

.aptly-testimonials__dots {
  --testimonials-autoplay-duration: 5s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.aptly-testimonials__dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  overflow: hidden;
  transition:
    width 0.25s ease,
    background-color 0.25s ease;
}

.aptly-testimonials__dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.aptly-testimonials__dot[data-active="true"] {
  width: 24px;
  background: rgba(255, 255, 255, 0.2);
}

.aptly-testimonials__dot[data-active="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: left center;
  animation: aptly-testimonials-dot-loader var(--testimonials-autoplay-duration, 5000ms) linear forwards;
}

@keyframes aptly-testimonials-dot-loader {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 480px) {
  .aptly-testimonials__dots {
    gap: 8px;
    padding: 8px 12px;
  }

  .aptly-testimonials__dot {
    width: 6px;
    height: 6px;
  }

  .aptly-testimonials__dot[data-active="true"] {
    width: 18px;
  }
}
