
/* ===== Testimonials Slider (FULL CSS — replace all existing testimonial CSS with this) ===== */

#testimonials {
    max-width: 1200px;
}

.testimonials-slider{
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.ts-header{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 12px;
}

.ts-controls{
  display: flex;
  gap: 10px;
}

#delivery-lifecycle .wp-block-uagb-container:has(.ts-modal) {
  position: fixed !important;
}


.ts-btn{
  padding: 0px !important;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(101,40,247,0.35);
  background: #fff;
  color: #6528f7;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.ts-btn:hover{
  padding: 0px !important;
  transform: translateY(-1px);
  border-color: rgba(101,40,247,0.6);
  box-shadow: 0 10px 20px rgba(73,94,125,0.12);
}
.ts-btn:active{ transform: translateY(0); box-shadow: none; }

/* CRITICAL: viewport + track + slide sizing */
.ts-viewport{
  overflow: hidden !important;
  border-radius: 16px;
}

.ts-track{
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  transition: transform 450ms cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

/* Each slide MUST take full viewport width */
.ts-slide{
  flex: 0 0 100% !important;
  min-width: 100% !important;
  box-sizing: border-box;
  padding: 2px;
}

/* Card styling */
.ts-card{
  background: #fff;
  border: 1px solid rgba(73,94,125,0.18);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(73,94,125,0.10);
}

.ts-top{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.ts-person{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ts-avatar{
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(101,40,247,0.28);
  background: linear-gradient(135deg, rgba(101,40,247,0.12), rgba(73,94,125,0.06));
  object-fit: cover;
}

.ts-meta{ min-width: 0; }
.ts-name{
  margin: 2px 0px 0px 0px !important;
  margin-bottom: 0px !important;
  font-weight: 800;
  color: #0f172a;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ts-title{
  margin: 2px 0px 0px 0px !important;
  margin-bottom: 0px !important;
  color: #495e7d;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ts-stars{
  display: flex;
  gap: 3px;
  flex: 0 0 auto;
}
.ts-star{
  width: 16px;
  height: 16px;
  display: block;
}

.ts-quote{
  margin: 2px 0px 0px 0px !important;
  margin-bottom: 0px !important;
  color: #0f172a;
  font-size: 1.02rem;
  line-height: 1.6;
}

.ts-footer{
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.ts-dots{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.ts-dot{
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(101,40,247,0.35);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 120ms ease, background 120ms ease;
}
.ts-dot[aria-current="true"]{
  background: #6528f7;
  transform: scale(1.1);
}

/* Mobile */
@media (max-width: 640px){
  .ts-card{ padding: 18px; }
  .ts-top{ grid-template-columns: 1fr; gap: 10px; align-items: start; }
  .ts-stars{ justify-content: flex-start; }
  .ts-btn{ width: 40px; height: 40px; border-radius: 12px; }
}

/* ===== Truncate + Read More + Modal ===== */

.ts-quote{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;       /* max 3 lines */
  overflow: hidden;
}

.ts-readmore{
  display: inline-block;
  margin-top: 8px;
  color: #6528f7;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.ts-readmore:hover{
  text-decoration: underline;
}

/* Modal */
.ts-modal{
  position: fixed !important;
  inset: 0;
  z-index: 9999;
  display: none;
}
.ts-modal.is-open{
  display: block;
}
.ts-modal__backdrop{
    position: absolute;
    inset: 0;
    top: 0px;
    background: rgba(15, 23, 42, 0.55);
    margin-top: -200px;
}
.ts-modal__dialog{
  position: relative;
  width: min(860px, calc(100% - 32px));
  margin: 15vh auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  border: 1px solid rgba(73,94,125,0.18);
  max-height: 88vh;
  overflow: auto;
}
.ts-modal__close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(101,40,247,0.28);
  background: #fff;
  color: #6528f7;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
	padding: unset !important;
	padding: 0px !important;
}
.ts-modal__content{
  padding: 22px;
}
.ts-modal__head{
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.ts-modal__avatar{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(101,40,247,0.28);
  object-fit: cover;
}
.ts-modal__name{
  margin: 0;
  font-weight: 900;
  color: #0f172a;
  font-size: 1.1rem;
}
.ts-modal__title{
  margin: 2px 0 0 0;
  color: #495e7d;
  font-weight: 700;
}
.ts-modal__stars{
  display: flex;
  gap: 3px;
  margin-top: 8px;
}
.ts-modal__body{
  color: #0f172a;
  line-height: 1.75;
  font-size: 1.02rem;
}
.ts-modal__body p{
  margin: 0 0 12px 0;
}
.ts-modal__body p:last-child{
  margin-bottom: 0;
}

/* Mobile */
@media (max-width: 640px){
  .ts-modal__content{ padding: 18px; }
  .ts-modal__dialog{ margin: 4vh auto; }
}
