.cspro-testimonials-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding: 0 0 172px;
  width: 100%;
  overflow: hidden;
}

.cspro-testimonials-section--compact {
  gap: 24px;
  padding: 0;
}

.cspro-testimonials-detail-mobile {
  display: none;
}

@media (max-width: 1024px) {
  .cspro-testimonials-detail-desktop {
    display: none;
  }

  .cspro-testimonials-detail-mobile {
    display: block;
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
  }
}

.cspro-testimonials-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 0 16px;
  max-width: 720px;
  width: 100%;
}

.cspro-testimonials-title {
  margin: 0;
  font-weight: 500;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: -0.25px;
  color: #0D0C12;
  background: linear-gradient(180deg, #0D0C12 0%, rgba(13, 12, 18, 0.72) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .cspro-testimonials-title {
        color: #0D0C12;
        background: none;
        -webkit-background-clip: border-box;
        background-clip: border-box;
        -webkit-text-fill-color: #0D0C12;
    }
}

.cspro-testimonials-subtitle {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #78788B;
}

.cspro-testimonials-marquee {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 0 28px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.cspro-testimonials-marquee::-webkit-scrollbar {
  display: none;
}

.cspro-testimonials-marquee.is-grabbing {
  cursor: grabbing;
}

.cspro-testimonials-track {
  display: flex;
  gap: 24px;
  align-items: stretch;
  width: max-content;
  padding: 0 calc((100% - 744px) / 2);
}

.cspro-testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-shrink: 0;
  width: 744px;
  max-width: calc(100vw - 32px);
  padding: 32px 24px;
  border-radius: 16px;
  background: #FFF;
  backdrop-filter: blur(4px);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  box-shadow: 0 8px 16px -4px rgba(14, 63, 126, 0.02),
    0 6px 12px -3px rgba(14, 63, 126, 0.03),
    0 4px 8px -2px rgba(14, 63, 126, 0.04),
    0 2px 4px -1px rgba(14, 63, 126, 0.05),
    0 0 0 1px rgba(14, 63, 126, 0.04);
  user-select: none;
    min-height: 240px;
}

.cspro-testimonial-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.cspro-testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 44px;
  overflow: hidden;
  flex-shrink: 0;
}

.cspro-testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cspro-testimonial-name {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -1px;
  color: #2F2F3C;
  text-align: center;
}

.cspro-testimonial-message,
.cspro-testimonial-message p {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #2F2F3C;
  text-align: center;
  width: 100%;
}

.cspro-testimonials-mobile-nav {
  display: none;
  align-items: center;
  gap: 8px;
}

/* --- Detail page carousel variant --- */
.cspro-testimonial-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.cspro-testimonial-carousel-viewport {
  width: 100%;
  overflow: hidden;
  padding: 12px 0 28px;
}

.cspro-testimonial-carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.4s ease;
}

.cspro-testimonial-slide {
  flex: 0 0 calc(100% - 32px);
  width: calc(100% - 32px);
  margin: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px 24px;
  border-radius: 16px;
  background: #FFF;
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 16px -4px rgba(14, 63, 126, 0.02),
    0 6px 12px -3px rgba(14, 63, 126, 0.03),
    0 4px 8px -2px rgba(14, 63, 126, 0.04),
    0 2px 4px -1px rgba(14, 63, 126, 0.05),
    0 0 0 1px rgba(14, 63, 126, 0.04);
  box-sizing: border-box;
}

.cspro-testimonial-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.cspro-testimonial-carousel-btn {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 8px;
  border-radius: 24px;
  background: rgba(184, 184, 199, 0.15);
  color: #2F2F3C;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cspro-testimonial-carousel-btn:hover {
  background: rgba(184, 184, 199, 0.28);
}

.cspro-testimonial-carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cspro-testimonial-carousel-btn i {
  font-size: 20px;
  line-height: 1;
}

.cspro-testimonial-carousel-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cspro-testimonial-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #D5D5E0;
  cursor: pointer;
  transition: background-color 0.2s ease, width 0.2s ease;
}

.cspro-testimonial-carousel-dot.is-active {
  background: #9C9CAC;
  width: 24px;
}

@media (max-width: 1024px) {
  .cspro-testimonials-section {
    gap: 0;
    padding: 40px 0 80px;
  }

  .cspro-testimonials-section.cspro-testimonials-section--compact {
    padding: 0;
  }

  .cspro-testimonials-title {
    font-size: 32px;
    line-height: 40px;
  }

  .cspro-testimonials-marquee {
    scroll-snap-type: x mandatory;
    -webkit-mask-image: none;
    mask-image: none;
    cursor: default;
  }

  .cspro-testimonials-track {
    gap: 24px;
    padding: 0 calc((100% - 335px) / 2);
  }

  .cspro-testimonial-card {
    width: 335px;
    max-width: calc(100vw - 40px);
    padding: 32px 24px;
    gap: 24px;
  }

  .cspro-testimonials-mobile-nav {
    display: flex;
  }

  .cspro-testimonials-mobile-nav .cspro-testimonial-carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 20px;
  }

  .cspro-testimonial-carousel-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .cspro-testimonial-carousel-viewport::-webkit-scrollbar {
    display: none;
  }

  .cspro-testimonial-carousel-track {
    width: max-content;
    transform: none !important;
    transition: none;
    gap: 16px;
    padding: 0 calc((100% - 335px) / 2);
  }

  .cspro-testimonial-slide {
    flex: 0 0 335px;
    width: 335px;
    max-width: calc(100vw - 60px);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    padding: 24px 20px;
    gap: 20px;
  }

  .cspro-testimonial-carousel-dots {
    display: none;
  }

  .cspro-testimonial-carousel-nav {
    gap: 16px;
  }

  .cspro-testimonial-carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 20px;
  }
}


@media (max-width: 768px) {
    #cspro-section-testimonials {
        gap: 12px!important;
        margin-bottom: -24px!important;
    }
}

