/* ============================================================
   KIDVIVE TESTIMONIAL WIDGET — styles
   সব সিলেক্টর .kv-tst-w দিয়ে scoped, থিম কনফ্লিক্ট এড়াতে
============================================================ */
.kv-tst-w{
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", sans-serif;
  padding: 20px 0;
}
.kv-tst-w *{ box-sizing: border-box; }
.kv-tst-w img{ max-width: none; } /* থিমের গ্লোবাল img{max-width:100%} override */

.kv-tst-w-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
}

/* ---------- Header ---------- */
.kv-tst-w-head{
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 30px;
}
.kv-tst-w-title{
  font-size: 24px;
  font-weight: 800;
  color: #2B2140;
  margin: 0;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
  line-height: 1.3;
}
.kv-tst-w-title::after{
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--kv-tst-accent, #6C3BD1);
}
.kv-tst-w-all{
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--kv-tst-accent, #6C3BD1);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.kv-tst-w-all:hover{ opacity: 0.8; }
.kv-tst-w-all svg{ display: block; flex-shrink: 0; }

/* ---------- Carousel ---------- */
.kv-tst-w-viewport{
  overflow: hidden;
  padding: 6px 2px 10px;
}
.kv-tst-w-track{
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
}

.kv-tst-w-card{
  flex: 0 0 calc((100% - 40px) / 3);
  background: #FFFFFF;
  border-radius: 14px;
  padding: 22px 22px 18px;
  box-shadow: 0 4px 16px rgba(64,29,115,0.07);
  display: flex;
  flex-direction: column;
}

.kv-tst-w-quote{
  color: var(--kv-tst-accent, #6C3BD1);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  font-family: Georgia, serif;
  margin-bottom: 8px;
}
.kv-tst-w-text{
  font-size: 13.5px;
  font-weight: 500;
  color: #4A4160;
  line-height: 1.7;
  margin: 0 0 18px;
  flex: 1;
}

.kv-tst-w-foot{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.kv-tst-w-person{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* ---------- Avatar (thumbnail বা initial) ----------
   position:relative + overflow:hidden নিশ্চিত করে থিমের
   img-reset বা z-index সমস্যায় initial/ছবি হারিয়ে না যায় */
.kv-tst-w-avatar{
  position: relative;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: var(--kv-tst-accent, #6C3BD1);
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}
.kv-tst-w-avatar-initial{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  z-index: 1;
}
.kv-tst-w-avatar img{
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover;
  display: block;
  z-index: 2;
}

.kv-tst-w-name{
  font-size: 14px;
  font-weight: 700;
  color: #2B2140;
  line-height: 1.3;
  margin: 0;
}
.kv-tst-w-city{
  font-size: 12px;
  font-weight: 500;
  color: #8A7FA6;
  margin: 0;
}

.kv-tst-w-stars{
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.kv-tst-w-stars svg{ display: block; }

/* ---------- Arrows (SVG) ---------- */
.kv-tst-w-arrow{
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--kv-tst-accent, #6C3BD1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(108,59,209,0.35);
  transition: background 0.2s ease, transform 0.2s ease;
  padding: 0;
}
.kv-tst-w-arrow:hover{ filter: brightness(0.9); }
.kv-tst-w-arrow svg{ display: block; pointer-events: none; }
.kv-tst-w-prev{ left: -14px; }
.kv-tst-w-next{ right: -14px; }

/* ---------- Dots ---------- */
.kv-tst-w-dots{
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
}
.kv-tst-w-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #CFC6E8;
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.kv-tst-w-dot.is-active{
  background: var(--kv-tst-accent, #6C3BD1);
  width: 20px;
  border-radius: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px){
  .kv-tst-w-card{ flex: 0 0 calc((100% - 20px) / 2); }
}
@media (max-width: 640px){
  .kv-tst-w-title{ font-size: 20px; }
  .kv-tst-w-all{ display: none; }
  .kv-tst-w-card{ flex: 0 0 100%; }
  .kv-tst-w-prev{ left: -6px; }
  .kv-tst-w-next{ right: -6px; }
}
