/* TestimonialCarousel — hl-tc prefix */
:host {
  --hl-tc-slide-width: 380px;
}

.hl-tc {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 32px 0 48px;
}

/* Track */
.hl-tc__track-wrapper {
  width: 100%;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}
.hl-tc__track-wrapper:active {
  cursor: grabbing;
}

.hl-tc__track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  will-change: transform;
}

.hl-tc__track--animated {
  transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Slide */
.hl-tc__slide {
  flex: 0 0 var(--hl-tc-slide-width);
  width: var(--hl-tc-slide-width);
  opacity: 0.5;
  transform: scale(0.96);
  transition: opacity 400ms ease, transform 400ms ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hl-tc__slide--active {
  opacity: 1;
  transform: scale(1);
}

/* Card */
.hl-tc__card {
  background: #fff;
  border: 1px solid rgba(40, 22, 91, 0.1);
  border-radius: 16px;
  padding: 28px 28px 0;
  box-shadow: 0 2px 16px rgba(40, 22, 91, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hl-tc__card-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 24px;
}

.hl-tc__name {
  font-size: 16px;
  font-weight: 700;
  color: #28165B;
  margin: 0;
}

.hl-tc__quote {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

/* Progress bar */
.hl-tc__progress-bar {
  height: 3px;
  background: rgba(40, 22, 91, 0.1);
  width: 100%;
  position: relative;
  border-radius: 0 0 16px 16px;
}

.hl-tc__progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #28165B;
  width: 0%;
  border-radius: inherit;
}

.hl-tc__progress-bar--active::after {
  animation: hl-tc-progress var(--hl-tc-duration, 5000ms) linear forwards;
}

@keyframes hl-tc-progress {
  from { width: 0% }
  to   { width: 100% }
}

/* Card info (avatar + badge) */
.hl-tc__card-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.hl-tc__avatar-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(40, 22, 91, 0.15);
}

.hl-tc__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hl-tc__avatar-placeholder {
  width: 100%;
  height: 100%;
  background: #28165B;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.hl-tc__source-badge {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.hl-tc__source-label {
  font-size: 12px;
  font-weight: 600;
  color: #28165B;
  background: rgba(40, 22, 91, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
}

/* Navigation */
.hl-tc__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.hl-tc__nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(40, 22, 91, 0.2);
  background: #fff;
  color: #28165B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms, border-color 200ms;
}

.hl-tc__nav-btn:hover {
  background: #28165B;
  border-color: #28165B;
  color: #fff;
}

.hl-tc__dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hl-tc__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(40, 22, 91, 0.2);
  cursor: pointer;
  padding: 0;
  transition: background 200ms, transform 200ms;
}

.hl-tc__dot--active {
  background: #28165B;
  transform: scale(1.3);
}

/* Responsive */
@media (max-width: 767px) {
  :host {
    --hl-tc-slide-width: 300px;
  }

  .hl-tc__card {
    padding: 20px 20px 0;
  }

  .hl-tc__quote {
    font-size: 14px;
  }
}

