/* Coverflow-style testimonial carousel (name, role, photo) */
.tmn-coverflow {
  --tmn-ink: #14151a;
  --tmn-muted: #8a8a95;
  --tmn-line: #ecebf0;
  --tmn-accent: var(--bs-primary, #5b4bf5);
}

.tmn-carousel {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.tmn-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tmn-card {
  position: absolute;
  width: 190px;
  height: 250px;
  border-radius: 22px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 40px -18px rgba(20, 21, 26, 0.35);
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.22, 0.68, 0, 1.01), opacity 0.5s ease, filter 0.5s ease;
}

.tmn-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.55) 100%);
}

.tmn-card.active {
  box-shadow: 0 26px 55px -20px rgba(91, 75, 245, 0.45);
}

.tmn-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--tmn-line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--tmn-ink);
  z-index: 20;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.tmn-nav-btn:hover {
  background: var(--tmn-ink);
  color: #fff;
  border-color: var(--tmn-ink);
}

.tmn-nav-btn:active {
  transform: translateY(-50%) scale(0.9);
}

.tmn-nav-btn svg {
  width: 18px;
  height: 18px;
}

.tmn-nav-prev {
  left: 8px;
}

.tmn-nav-next {
  right: 8px;
}

[dir="rtl"] .tmn-nav-prev {
  left: auto;
  right: 8px;
}

[dir="rtl"] .tmn-nav-next {
  right: auto;
  left: 8px;
}

.tmn-caption {
  text-align: center;
  margin-top: 34px;
}

.tmn-caption-inner {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.tmn-caption-inner .tmn-line {
  width: 36px;
  height: 1px;
  background: var(--tmn-line);
}

.tmn-caption-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--tmn-ink);
}

.tmn-caption-role {
  font-size: 12.5px;
  color: var(--tmn-accent);
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-top: 4px;
}

.tmn-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.tmn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tmn-line);
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}

.tmn-dot.active {
  background: var(--tmn-accent);
  width: 22px;
  border-radius: 999px;
}

@media (max-width: 640px) {
  .tmn-carousel {
    height: 260px;
  }

  .tmn-card {
    width: 150px;
    height: 200px;
  }

  .tmn-nav-btn {
    width: 38px;
    height: 38px;
  }
}
