/* =====================================================================
   Home page testimonials (index.php, section.testi-v2)
   Light section after the dark "Why choose us". A looping Swiper
   carousel of quote cards (3 / 1.8 / 1.1 per view); the centred
   slide is highlighted with the brand gradient.
   ===================================================================== */
.testi-v2 {
  position: relative;
  padding: 100px 0;
  background:
    radial-gradient(40% 50% at 100% 0%, rgba(232, 49, 138, 0.06), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(106, 61, 240, 0.07), transparent 70%),
    #fbfaff;
  overflow: hidden;
}
.testi-container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Heading (centred, same type as other sections) ---------- */
.testi-head {
  text-align: center;
}
.testi-v2 .testi-title {
  margin: 20px 0 0;
  font-family: var(--title-font);
  font-size: clamp(34px, 3.6vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #12141c;
}
.testi-title-grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Carousel ---------- */
/* breathing room so the hover lift and shadows aren't clipped */
.testi-swiper {
  overflow: hidden;
  margin: 36px -12px 0;
  padding: 12px 12px 30px;
}
.testi-swiper .swiper-slide {
  height: auto;          /* equal-height cards */
  display: flex;
}

/* ---------- Cards ---------- */
.testi-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 32px 30px 28px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid #ecebf3;
  box-shadow: 0 18px 40px -30px rgba(18, 20, 28, 0.35);
  transition: transform 450ms var(--header-ease), box-shadow 450ms var(--header-ease), border-color 450ms ease;
}
/* gradient layer, faded in on the centred slide */
.testi-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity 500ms ease;
}
.testi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -32px rgba(106, 61, 240, 0.45);
}
.testi-quote {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--brand-gradient);
  color: #ffffff;
  font-size: 18px;
  box-shadow: 0 12px 24px -10px rgba(232, 49, 138, 0.6);
  transition: background 450ms ease, box-shadow 450ms ease;
}
.testi-card blockquote {
  flex: 1;
  margin: 0;
  padding-right: 52px; /* room for the quote icon */
  border: 0;
  font-family: var(--text-font);
  font-size: 16.5px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.7;
  color: #3d4152;
  transition: color 450ms ease;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #efeef5;
  transition: border-color 450ms ease;
}
.testi-author img {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: contain;
  padding: 0px 0px 0px;
  background: #f1edff;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(232, 49, 138, 0.5);
}
.testi-author b {
  display: block;
  font-family: var(--title-font);
  font-size: 17px;
  font-weight: 700;
  color: #12141c;
  transition: color 450ms ease;
}
.testi-author small {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: #7a7f93;
  transition: color 450ms ease;
}

/* centred (active) slide: brand gradient */
.swiper-slide-active .testi-card {
  border-color: transparent;
  box-shadow: 0 30px 60px -28px rgba(232, 49, 138, 0.6);
}
.swiper-slide-active .testi-card::before {
  opacity: 1;
}
.swiper-slide-active .testi-quote {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}
.swiper-slide-active .testi-card blockquote,
.swiper-slide-active .testi-author b {
  color: #ffffff;
}
.swiper-slide-active .testi-author {
  border-top-color: rgba(255, 255, 255, 0.25);
}
.swiper-slide-active .testi-author img {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}
.swiper-slide-active .testi-author small {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Controls: arrows + dots ---------- */
.testi-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 8px;
}
.testi-nav-btn {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #e2e0ec;
  background: #ffffff;
  color: #12141c;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 6px 16px -10px rgba(18, 20, 28, 0.25);
  transition: background 300ms ease, color 300ms ease, border-color 300ms ease, transform 300ms var(--header-ease), box-shadow 300ms ease;
}
.testi-nav-btn:hover {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(232, 49, 138, 0.6);
}
.testi-pagination.swiper-pagination-bullets {
  position: static;
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
}
.testi-pagination .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  margin: 0 !important;
  border-radius: 999px;
  background: #d8d5e6;
  opacity: 1;
  transition: width 300ms var(--header-ease), background 300ms ease;
}
.testi-pagination .swiper-pagination-bullet-active {
  width: 28px;
  background: var(--brand-gradient);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .testi-v2 {
    padding: 90px 0;
  }
}
@media (max-width: 575.98px) {
  .testi-container {
    padding: 0 20px;
  }
  /* full-bleed so the neighbouring cards peek in from the screen edge */
  .testi-swiper {
    margin: 28px -20px 0;
    padding: 12px 0 26px;
  }
  .testi-card {
    padding: 26px 22px 22px;
  }
  .testi-card blockquote {
    font-size: 15.5px;
  }
  .testi-controls {
    gap: 16px;
  }
  .testi-nav-btn {
    width: 46px;
    height: 46px;
  }
}
