ks-testimonial-carousel,
:host {
  display: block;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  color: #1f1a24;
}

.ks-tc-region {
  position: relative;
  overflow: hidden;
  outline: none;
}

.ks-tc-stage {
  display: grid;
  align-items: stretch;
  justify-items: center;
  overflow: hidden;
  padding: 28px 0 36px;
  touch-action: pan-y;
}

.ks-tc-card {
  grid-area: 1 / 1;
  width: min(440px, calc(100% - 88px));
  min-width: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  border: 3px solid #b99ad9;
  border-radius: 22px;
  box-shadow: 0 8px 20px -12px rgba(53, 22, 83, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.82);
  transition: transform 0.55s cubic-bezier(0.4, 0.1, 0.2, 1), opacity 0.45s ease, box-shadow 0.45s ease;
}

.ks-tc-card[data-position="active"] {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  box-shadow: 0 30px 60px -24px rgba(53, 22, 83, 0.4);
}

.ks-tc-card[data-position="previous"] {
  z-index: 2;
  opacity: 0.72;
  pointer-events: auto;
  cursor: pointer;
  transform: translateX(clamp(-410px, -32vw, -240px)) scale(0.88);
}

.ks-tc-card[data-position="next"] {
  z-index: 2;
  opacity: 0.72;
  pointer-events: auto;
  cursor: pointer;
  transform: translateX(clamp(240px, 32vw, 410px)) scale(0.88);
}

.ks-tc-quote-mark {
  display: block;
  margin: -6px 0 -14px;
  color: #e8b94a;
  font-family: "Caveat", cursive;
  font-size: 100px;
  font-weight: 700;
  line-height: 0.5;
  transform: rotate(-6deg);
  transform-origin: left top;
}

.ks-tc-quote {
  flex: 1;
  margin: 0;
  color: rgba(31, 26, 36, 0.82);
  font-size: 15px;
  font-style: italic;
  line-height: 1.55;
}

.ks-tc-person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(31, 26, 36, 0.08);
}

.ks-tc-avatar,
.ks-tc-initials {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  overflow: hidden;
  border-radius: 50%;
}

.ks-tc-avatar {
  display: block;
  object-fit: cover;
}

.ks-tc-initials {
  display: grid;
  place-items: center;
  background: #efe6f6;
  color: #5b2a86;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.ks-tc-name,
.ks-tc-company,
.ks-tc-rating {
  margin: 0;
}

.ks-tc-name {
  color: #1f1a24;
  font-size: 15.5px;
  font-weight: 700;
}

.ks-tc-company {
  margin-top: 2px;
  color: rgba(31, 26, 36, 0.62);
  font-size: 13.5px;
}

.ks-tc-rating {
  margin-top: 2px;
  color: #8a5e00;
  font-size: 13px;
  font-weight: 700;
}

.ks-tc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ks-tc-arrow {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 48px;
  padding: 0;
  border: 1.5px solid rgba(53, 22, 83, 0.3);
  border-radius: 50%;
  background: #fff;
  color: #351653;
  cursor: pointer;
  font: inherit;
  font-size: 20.5px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ks-tc-arrow:hover {
  border-color: #5b2a86;
  background: #5b2a86;
  color: #fff;
  transform: translateY(-1px);
}

.ks-tc-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.ks-tc-dot {
  position: relative;
  width: 32px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ks-tc-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: rgba(91, 42, 134, 0.25);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, background 0.3s ease;
}

.ks-tc-dot[aria-current="true"]::before {
  width: 24px;
  background: #5b2a86;
}

.ks-tc-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 600px) {
  .ks-tc-stage {
    padding: 20px 0 28px;
  }

  .ks-tc-card {
    width: calc(100% - 32px);
    padding: 26px 22px;
    gap: 18px;
  }

  .ks-tc-card[data-position="previous"] {
    transform: translateX(-91%) scale(0.9);
  }

  .ks-tc-card[data-position="next"] {
    transform: translateX(91%) scale(0.9);
  }

  .ks-tc-quote {
    font-size: 14px;
  }

  .ks-tc-controls {
    gap: 6px;
  }

  .ks-tc-dot {
    width: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ks-tc-card,
  .ks-tc-arrow,
  .ks-tc-dot::before {
    transition: none;
  }
}
