/* Trusted Testimonials Slider — matches the provided reference design.
   NOTE: this file is intentionally defensive. Many WordPress themes ship
   global rules for bare elements (button, h3, svg, img) that are more
   specific/loaded later than a plugin stylesheet and silently win the
   cascade. Every rule below is scoped under .tts-section and the
   properties that control layout/color are marked !important so the
   widget renders identically regardless of the active theme. */

.tts-section {
  padding: 40px !important;
}
.tts-section *,
.tts-section *::before,
.tts-section *::after {
  box-sizing: border-box !important;
}

.tts-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 0 32px !important;
  position: static !important;
  width: 100% !important;
}

.tts-heading {
  color: #fff !important;
  font-size: 35px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  position: static !important;
  float: none !important;
  display: block !important;
}

.tts-nav {
  display: flex !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.tts-nav button {
  all: unset;
  box-sizing: border-box !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 12px !important;
  background-color: #07492d !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease !important;
}

.tts-nav button.swiper-button-disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}

.tts-nav button svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  pointer-events: none !important;
  background-color: #07492d;
}

.tts-swiper {
  overflow: hidden !important;
  width: 100% !important;
  position: static !important;
}

.tts-swiper .swiper-wrapper {
  display: flex !important;
}

.tts-swiper .swiper-slide {
  height: auto !important;
  display: block !important;
  flex-shrink: 0 !important;
}

/* Fallback layout used only if the Swiper library fails to load
   (e.g. blocked script) — see script.js. Keeps cards readable as a
   simple responsive grid instead of collapsing to one huge slide. */
.tts-swiper.tts-fallback-grid .swiper-wrapper {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 24px !important;
}

.tts-swiper.tts-fallback-grid .swiper-slide {
  width: auto !important;
}

.tts-card {
  background: #fff !important;
  border-radius: 6px !important;
  padding: 24px !important;
  min-height: 500px !important; /* Pehle 420 tha */
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

.tts-quote-icon {
  margin-bottom: 20px !important;
}

.tts-quote-icon img {
  width: 44px !important;
  height: auto !important;
  display: block !important;
}

.tts-name {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1b2744 !important;
  margin-bottom: 6px !important;
  line-height: 1.3 !important;
}
.tts-meta {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-bottom: 16px !important;
  margin-bottom: 18px !important;
  border-bottom: 1px solid #e8e8e8 !important;
}

.tts-company {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #8a8a8a !important;
  text-transform: uppercase !important;
}

.tts-rating {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #f5b301 !important;
}

.tts-rating svg {
  width: 16px !important;
  height: 16px !important;
}

.tts-quote {
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: #666 !important;
  font-style: italic !important;
  margin: 0 0 24px !important;
  flex: 1 !important;
}

.tts-thumb {
  margin-top: auto !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}

.tts-thumb img {
  width: 100% !important;
  height: 190px !important;
  object-fit: cover !important;
}
.tts-play {
  width: 56px !important;
  height: 56px !important;
  background: #0b5a3e !important;
}

.tts-play svg {
  width: 20px !important;
  height: 20px !important;
}

/* ---------- Video modal ---------- */

.tts-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
}

.tts-modal.is-open {
  display: flex !important;
}

.tts-modal-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(10, 12, 20, 0.8) !important;
}

.tts-modal-inner {
  position: relative !important;
  width: min(860px, 92vw) !important;
  background: #000 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  aspect-ratio: 16 / 9 !important;
}

.tts-modal-video-wrap,
.tts-modal-video-wrap iframe,
.tts-modal-video-wrap video {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  border: 0 !important;
}

.tts-modal-close {
  all: unset;
  box-sizing: border-box !important;
  position: absolute !important;
  top: -42px !important;
  right: 0 !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  font-size: 22px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.tts-modal-close:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .tts-section {
    padding: 40px 22px !important;
  }
  .tts-heading {
    font-size: 26px !important;
  }
}

@media (max-width: 600px) {
  .tts-header {
    flex-wrap: wrap !important;
    gap: 16px !important;
  }
}
