/* ══════════════════════════════════════════════════════════════
   GLS Testimonial Videos — Static grid (carousel only on mobile)
   ══════════════════════════════════════════════════════════════ */

.gls-tmv-section {
  background: black;
  padding: 64px 0;
  overflow: hidden;
}

.gls-tmv-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gls-tmv-header {
  text-align: center;
  margin-bottom: 40px;
}

.gls-tmv-title {
  margin: 0 0 8px 0;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--color-surface, #fff);
  text-transform: uppercase;
  font-size: 32px;
}

.gls-tmv-subtitle {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ── Carousel layout ── */
.gls-tmv-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Viewport (clips overflow) ── */
.gls-tmv-viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

/* ── Track (sliding row) ── */
.gls-tmv-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
}

.gls-tmv-track .gls-tmv-card {
  flex: 0 0 calc((100% - 18px * 3) / 4);
  min-width: 0;
  transition: transform 0.45s cubic-bezier(.4,0,.2,1), box-shadow 0.3s ease;
}

/* ── Card ── */
.gls-tmv-card {
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border: 3px solid transparent;
}

.gls-tmv-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

/* Card color accents */
.gls-tmv-card--blue {
  border-color: var(--blue, #1c45db);
}
.gls-tmv-card--blue .gls-tmv-label {
  background: linear-gradient(135deg, var(--blue, #1c45db), var(--light--blue, #3577f4));
}
.gls-tmv-card--blue .gls-tmv-dot {
  background: var(--light--blue, #3577f4);
}

.gls-tmv-card--orange {
  border-color: var(--orange, #ff7a08);
}
.gls-tmv-card--orange .gls-tmv-label {
  background: linear-gradient(135deg, var(--orange, #ff7a08), var(--light--orange, #ffb90e));
}
.gls-tmv-card--orange .gls-tmv-dot {
  background: var(--light--orange, #ffb90e);
}

.gls-tmv-card--green {
  border-color: var(--green, #009d5a);
}
.gls-tmv-card--green .gls-tmv-label {
  background: linear-gradient(135deg, var(--green, #009d5a), var(--light--green, #00d98a));
}
.gls-tmv-card--green .gls-tmv-dot {
  background: var(--light--green, #00d98a);
}

.gls-tmv-card--purple {
  border-color: var(--purple, #9767f8);
}
.gls-tmv-card--purple .gls-tmv-label {
  background: linear-gradient(135deg, var(--purple, #9767f8), var(--light--purple, #d5a4fe));
}
.gls-tmv-card--purple .gls-tmv-dot {
  background: var(--light--purple, #d5a4fe);
}

/* ── Video container (9:16 vertical) ── */
.gls-tmv-video {
  position: relative;
  padding-top: 177.78%;
  width: 100%;
  background: #111;
}

.gls-tmv-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Label bar at bottom ── */
.gls-tmv-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.gls-tmv-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* ── Nav buttons (hidden by default, shown by JS when needed) ── */
.gls-tmv-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  z-index: 3;
}

.gls-tmv-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.gls-tmv-nav:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
}

/* ── Dots ── */
.gls-tmv-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.gls-tmv-dots .gls-tmv-dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.gls-tmv-dots .gls-tmv-dot-btn.active {
  background: #fff;
  transform: scale(1.3);
}

.gls-tmv-dots .gls-tmv-dot-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5);
}

/* ══════════════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .gls-tmv-track .gls-tmv-card {
    flex: 0 0 calc((100% - 18px * 2) / 3);
  }
}

@media (max-width: 768px) {
  .gls-tmv-track .gls-tmv-card {
    flex: 0 0 calc((100% - 18px) / 2);
  }

  .gls-tmv-nav {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .gls-tmv-section {
    padding: 48px 0;
  }

  .gls-tmv-title {
    font-size: 24px;
  }

  .gls-tmv-track .gls-tmv-card {
    flex: 0 0 100%;
  }

  .gls-tmv-card {
    border-radius: 22px;
  }

  .gls-tmv-label {
    padding: 10px 14px;
    font-size: 12px;
  }
}
