/* ==========================================================================
   Sweans CIE Addon — Testimonials Slider Widget
   ========================================================================== */

.sweans-ts-section {
  width: 100%;
  padding: 60px 50px;
  box-sizing: border-box;
}

/* SLIDER WRAPPER — clips overflow so next slide peeks */
.sweans-ts-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Horizontal rail line */
.sweans-ts-rail-line {
  position: absolute;
  top: 110px;
  left: 0;
  right: 0;
  height: 1px;
  background: #d0d5dc;
  z-index: 0;
  pointer-events: none;
  width: 99%;
  margin: 0 auto;
}

/* TRACK — flex row, width set by JS */
.sweans-ts-wrapper {
  cursor: grab;
}

.sweans-ts-wrapper.sweans-ts-dragging,
.sweans-ts-wrapper:active {
  cursor: grabbing;
}

.sweans-ts-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.18, 1);
  will-change: transform;
}

/* Slide — width set by JS */
.sweans-ts-slide {
  flex-shrink: 0;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  box-sizing: border-box;
}

/* NUMBER COLUMN */
.sweans-ts-num-col {
  width: 80px;
  flex-shrink: 0;
  padding-top: 94px;
  padding-right: 6px;
  position: relative;
  z-index: 2;
}

.sweans-ts-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #c8cfd8;
  transition: color 0.3s;
}

.sweans-ts-num.active {
  color: #1280b8;
}

/* CONTENT COLUMN */
.sweans-ts-content-col {
  flex: 1;
  min-width: 0;
  text-align: center;
  overflow: hidden;
  padding-right: 20px;
}

/* PHOTO */
.sweans-ts-photo-wrap {
  position: relative;
  display: inline-block;
  width: 220px;
  height: 220px;
  z-index: 2;
}

.sweans-ts-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* BOOKMARK QUOTE MARKS */
.sweans-ts-bookmarks {
  position: absolute;
  bottom: -20px;
  right: -35px;
  display: flex;
  gap: 3px;
  z-index: 3;
  width: 110px;
  height: 79px;
}

.sweans-ts-bm {
  width: 28px;
  height: 44px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%);
}

.sweans-ts-bm:first-child {
  background: #0d6a9a;
}

.sweans-ts-bm:last-child {
  background: #1280b8;
}

/* NAME */
.sweans-ts-name {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a2e;
  margin-top: 30px;
  margin-bottom: 14px;
}

/* TESTIMONIAL TEXT */
.sweans-ts-text {
  font-size: 0.87rem;
  line-height: 1.72;
  color: #767e8a;
  max-width: 300px;
  margin: 0 auto;
}

/* BOTTOM NAV */
.sweans-ts-bottom-nav {
  display: flex;
  align-items: center;
  margin-top: 56px;
}

.sweans-ts-nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #1280b8;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.sweans-ts-nav-btn:disabled {
  opacity: 1;
  cursor: pointer;
}

.sweans-ts-nav-btn:hover,
.sweans-ts-nav-btn:focus,
.sweans-ts-nav-btn:active {
  background-color: transparent;
}

.sweans-ts-nav-btn.sweans-ts-prev {
  margin-right: -1px;
}

.sweans-ts-nav-btn.sweans-ts-next {
  margin-left: -1px;
}

.sweans-ts-nav-btn svg {
  width: 30px;
  height: 14px;
}

.sweans-ts-prog-line {
  flex: 1;
  position: relative;
  height: 1.5px;
  background: #1280b8;
}

.sweans-ts-prog-count {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #F8F8F8;
  padding: 0 10px;
  white-space: nowrap;
  color: #000;
  text-align: center;
  font-family: Magistral;
  font-size: 21px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: 0.21px;
  text-transform: uppercase;
}

/* In Elementor editor the body background may differ — keep count readable */
.elementor-editor-active .sweans-ts-prog-count {
  background: inherit;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media only screen and (max-width: 1520px) {
  .sweans-ts-bookmarks {
    width: 70px;
    height: 70px;
  }
}

@media only screen and (max-width: 1490px) {
  .sweans-ts-bookmarks {
    width: 65px;
    height: 65px;
  }
}

@media (max-width: 768px) {
  .sweans-ts-section {
    padding: 40px 20px;
  }

  .sweans-ts-num-col {
    width: 50px;
  }

  .sweans-ts-photo-wrap {
    width: 160px;
    height: 160px;
  }

  .sweans-ts-rail-line {
    top: 80px;
  }

  .sweans-ts-num-col {
    padding-top: 64px;
  }
}

@media (max-width: 767px) {
  .sweans-ts-section {
    padding: 0;
  }

  .sweans-ts-bookmarks {
    right: 10px;
  }
}