/* ==========================================================================
   Testimonials Block
   ========================================================================== */

/* --- Section --- */
.tst-section {
  padding: 2.5rem 0;
}

/* --- Section Header --- */
.tst-header {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tst-header__badge {
  display: inline-block;
  border-radius: 7px;
  padding: 0 7px;
  flex-shrink: 0;
}

.tst-header__title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #000000;
  margin: 0;
}

.tst-header__desc {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: #000000;
  max-width: 500px;
  margin: 0;
}

/* --- Dark Outer Container --- */
.tst-outer {
  background-color: #191a23;
  border-radius: 45px;
  padding: 60px 60px 50px;
  overflow: hidden;
}

/* --- Slider Track Wrapper (clips slides) --- */
.tst-track-wrapper {
  overflow: hidden;
}

/* --- Sliding Track --- */
.tst-track {
  display: flex;
  flex-direction: row;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* --- Individual Slide --- */
.tst-slide {
  min-width: 100%;
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
}

/* --- Speech Bubble --- */
.tst-bubble {
  width: 100%;
  border: 1px solid #b9ff66;
  border-radius: 45px;
  padding: 48px 52px;
  position: relative;
  box-sizing: border-box;
}

/* Bubble tail — outer (border colour) */
.tst-bubble::before {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 60px;
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 0 solid transparent;
  border-top: 22px solid #b9ff66;
}

/* Bubble tail — inner (fill same as bg) */
.tst-bubble::after {
  content: '';
  position: absolute;
  bottom: -19px;
  left: 61px;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 0 solid transparent;
  border-top: 19px solid #191a23;
}

/* --- Quote Text --- */
.tst-quote {
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  font-family: "SpaceGrotesk-Regular", sans-serif;
  margin: 0;
}

/* --- Author --- */
.tst-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 52px;
}

.tst-author__name {
  display: block;
  color: #b9ff66;
  font-size: 1.125rem;
  font-weight: 500;
  font-family: "SpaceGrotesk-Medium", sans-serif;
  line-height: 1.4;
}

.tst-author__role {
  display: block;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 400;
  font-family: "SpaceGrotesk-Regular", sans-serif;
  line-height: 1.4;
}

/* --- Navigation Row --- */
.tst-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
}

/* --- Arrow Buttons --- */
.tst-nav__btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  color: #ffffff;
}

.tst-nav__btn:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.1);
}

.tst-nav__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* --- Dots Container --- */
.tst-dots {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

/* --- Dot (added via JS) --- */
.tst-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.tst-dot--active {
  background-color: #b9ff66;
  transform: scale(1.25);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1279px) {
  .tst-header__title {
    font-size: 2.25rem;
  }
}

@media (max-width: 1023px) {
  .tst-outer {
    padding: 50px 50px 44px;
  }

  .tst-header__title {
    font-size: 2rem;
  }

  .tst-bubble {
    padding: 40px 40px;
  }

  .tst-author {
    padding-left: 40px;
  }
}

@media (max-width: 767px) {
  .tst-header {
    flex-direction: column;
    gap: 1rem;
  }

  .tst-header__desc {
    max-width: 100%;
  }

  .tst-header__title {
    font-size: 1.75rem;
  }

  .tst-outer {
    padding: 40px 30px 36px;
    border-radius: 35px;
  }

  .tst-bubble {
    padding: 32px 28px;
    border-radius: 30px;
  }

  .tst-bubble::before {
    left: 36px;
  }

  .tst-bubble::after {
    left: 37px;
  }

  .tst-author {
    padding-left: 28px;
  }

  .tst-quote {
    font-size: 1rem;
  }
}

@media (max-width: 575px) {
  .tst-outer {
    padding: 28px 20px 28px;
    border-radius: 30px;
  }

  .tst-bubble {
    padding: 24px 22px;
    border-radius: 24px;
  }

  .tst-nav {
    margin-top: 32px;
    gap: 20px;
  }
}
