/* =============================================================================
   Testimonial Slider — [testimonial_slider] shortcode
   ============================================================================= */

.tslider {
  width: 100%;
}

/* ---- Header ---- */

.tslider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.tslider-counter-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tslider-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tslider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(12, 36, 74, 0.18);
  transition: background-color 0.3s ease;
}

.tslider-dot.is-active {
  background-color: #0C244A;
}

.tslider-count {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(12, 36, 74, 0.45);
}

.tslider-nav {
  display: flex;
  gap: 10px;
}

/* Arrow nav buttons — blob hover matches global button style */
.tslider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 44px;
  border-radius: 100px;
  border: 1px solid rgba(12, 36, 74, 0.3) !important;
  background: none !important;
  cursor: pointer;
  color: #0C244A !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.tslider-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0C244A;
  clip-path: circle(0.5px at var(--x, 50%) var(--y, 50%));
  transition: clip-path 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.tslider-btn:hover::before {
  clip-path: circle(140% at var(--x, 50%) var(--y, 50%));
}

.tslider-btn svg {
  position: relative;
  z-index: 1;
}

.tslider-btn svg path {
  stroke: #0C244A !important;
  transition: stroke 0.3s ease;
}

.tslider-btn:hover svg path {
  stroke: #fff !important;
}

.tslider-btn:hover {
  border-color: #0C244A !important;
}

/* ---- Stage — overflow:hidden hides off-screen slides ---- */

.tslider-stage {
  overflow: hidden;
}

/* ---- Track — slides live here, translateX drives navigation ---- */

.tslider-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* ---- Each slide item ---- */

.tslider-item {
  display: flex;
  align-items: flex-start;
  min-width: 62%;   /* ~38% of the next item peeks into view */
  flex-shrink: 0;
}

/* Thin vertical line to the left of each image */
.tslider-item-line {
  width: 1px;
  flex-shrink: 0;
  align-self: stretch;
  background-color: rgba(116, 140, 164, 0.4);
  margin-right: 24px;
}

.tslider-item-image {
  flex-shrink: 0;
  width: 55%;
  max-width: 420px;
}

.tslider-item-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  display: block;
}

/* ---- Review content ---- */

.tslider-item-content {
  flex: 1;
  min-width: 0;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 48px 8px;
}

.tslider-quote {
  font-size: clamp(0.875rem, 1.2vw, 1.05rem);
  font-weight: 300;
  line-height: 1.8;
  color: #0C244A !important;
  margin: 0;
}

.tslider-author {
  font-size: 0.875rem;
  color: rgba(12, 36, 74, 0.55) !important;
  margin: 0;
  letter-spacing: 0.01em;
}

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

@media (max-width: 960px) {
  .tslider-item {
    min-width: 90%;
    flex-direction: column;
    gap: 20px;
  }

  .tslider-item-line {
    width: 100%;
    height: 1px;
    align-self: auto;
    margin-right: 0;
  }

  .tslider-item-image {
    width: 100%;
    max-width: 100%;
  }

  .tslider-item-image img {
    max-height: 320px;
    object-fit: cover;
  }

  .tslider-item-content {
    padding: 0;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .tslider-item {
    min-width: 100%;
    flex-direction: column;
    gap: 20px;
  }

  .tslider-item-line {
    width: 100%;
    height: 1px;
    align-self: auto;
    margin-right: 0;
  }

  .tslider-item-image {
    width: 100%;
  }

  .tslider-item-content {
    padding: 0;
    gap: 20px;
  }
}
