/* =========================================================
   TESTIMONIALS SECTION — dark navy carousel
   ========================================================= */

.testimonials-section {
  --ts-blue: #157dff;
  --ts-navy: #062b63;
  --ts-gold: #f59e0b;
  --ts-white: #ffffff;
  --ts-muted: rgba(255, 255, 255, 0.6);

  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #041830 0%, #062b63 50%, #0a3580 100%);
  padding: 0 0 110px;
}

/* ---- Top wave connector (matches products section bg) ---- */
.ts-wave-top {
  display: block;
  width: 100%;
  height: 80px;
  margin-bottom: -2px;
}

/* ---- Ambient glows ---- */
.ts-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.ts-glow-a {
  width: 560px;
  height: 560px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, rgba(21, 125, 255, 0.2) 0%, transparent 65%);
  filter: blur(40px);
}
.ts-glow-b {
  width: 420px;
  height: 420px;
  bottom: -60px;
  right: -80px;
  background: radial-gradient(circle, rgba(21, 125, 255, 0.15) 0%, transparent 65%);
  filter: blur(40px);
}

/* ---- Floating bubbles ---- */
.ts-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ts-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  animation: ts-float linear infinite;
}
@keyframes ts-float {
  0%   { transform: translateY(0) scale(1);    opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 0.7; }
  100% { transform: translateY(-110px) scale(0.75); opacity: 0; }
}

/* ---- Inner layout ---- */
.ts-inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 72px 24px 0;
}

/* ---- Section heading ---- */
.ts-heading {
  text-align: center;
  margin-bottom: 60px;
}
.ts-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ts-blue);
}
.ts-underline {
  display: block;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: var(--ts-blue);
  margin: 10px auto 22px;
}
.ts-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--ts-white);
  margin-bottom: 14px;
}
.ts-title span {
  color: var(--ts-blue);
}
.ts-subtitle {
  font-size: 16px;
  color: var(--ts-muted);
  max-width: 460px;
  margin: 0 auto;
}

/* ---- Stats strip ---- */
.ts-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 60px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.ts-stat {
  flex: 1;
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.ts-stat:last-child {
  border-right: none;
}
.ts-stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--ts-white);
  line-height: 1;
  margin-bottom: 6px;
}
.ts-stat-number em {
  font-style: normal;
  color: var(--ts-blue);
}
.ts-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ts-muted);
  letter-spacing: 0.5px;
}

/* ---- Carousel wrapper ---- */
.ts-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Clipping container — hides overflow cards */
.ts-track-clip {
  flex: 1;
  overflow: hidden;
}

/* The scrolling row of cards */
.ts-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* ---- Individual card ---- */
.ts-card {
  flex-shrink: 0;
  min-width: 0;
  padding: 12px;
  box-sizing: border-box;
}
.ts-card-inner {
  position: relative;
  background: var(--ts-white);
  border-radius: 22px;
  padding: 36px 30px 30px;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
.ts-card-inner:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.4);
}
/* Blue top accent bar */
.ts-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ts-blue), var(--ts-navy));
  border-radius: 22px 22px 0 0;
}

/* Giant decorative quote mark */
.ts-quote-mark {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 88px;
  line-height: 1;
  font-family: Georgia, 'Times New Roman', serif;
  color: rgba(21, 125, 255, 0.1);
  pointer-events: none;
  user-select: none;
  font-weight: 700;
}

/* Star rating */
.ts-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}
.ts-star {
  color: var(--ts-gold);
  font-size: 17px;
}

/* Review body */
.ts-text {
  font-size: 14.5px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Author row */
.ts-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
}
.ts-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ts-blue) 0%, var(--ts-navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ts-white);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(21, 125, 255, 0.35);
}
.ts-author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ts-navy);
}
.ts-author-location {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}
.ts-product-tag {
  display: inline-block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ts-blue);
  background: rgba(21, 125, 255, 0.08);
  border-radius: 20px;
  padding: 3px 10px;
}

/* ---- Prev / Next buttons ---- */
.ts-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: var(--ts-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.ts-btn:hover {
  background: rgba(21, 125, 255, 0.45);
  transform: scale(1.1);
  box-shadow: 0 8px 22px rgba(21, 125, 255, 0.35);
}

/* ---- Dot navigation ---- */
.ts-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 44px;
}
.ts-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.35s ease, background 0.35s ease, border-radius 0.35s ease;
}
.ts-dot.is-active {
  width: 32px;
  border-radius: 4px;
  background: var(--ts-blue);
}

/* ---- Entrance animations ---- */
.testimonials-section .ts-heading,
.testimonials-section .ts-stats,
.testimonials-section .ts-carousel-wrapper,
.testimonials-section .ts-dots {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.6s ease;
}
.testimonials-section.ts-visible .ts-heading {
  opacity: 1;
  transform: translateY(0);
}
.testimonials-section.ts-visible .ts-stats {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.12s;
}
.testimonials-section.ts-visible .ts-carousel-wrapper {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.22s;
}
.testimonials-section.ts-visible .ts-dots {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.34s;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .ts-title {
    font-size: 38px;
  }
  .ts-stat-number {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .ts-stats {
    flex-wrap: wrap;
  }
  .ts-stat {
    flex: 1 1 40%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .ts-stat:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
  .ts-stat:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .testimonials-section {
    padding-bottom: 80px;
  }
  .ts-inner {
    padding: 56px 16px 0;
  }
  .ts-title {
    font-size: 28px;
  }
  .ts-heading {
    margin-bottom: 40px;
  }
  .ts-stats {
    margin-bottom: 44px;
  }
  .ts-btn {
    width: 40px;
    height: 40px;
  }
  .ts-card {
    padding: 8px;
  }
  .ts-card-inner {
    padding: 28px 22px 24px;
  }
  .ts-wave-top {
    height: 50px;
  }
}
