/* ===== MODERN TESTIMONIALS SECTION ===== */
.testimonials-section {
  width: 100%;
  padding: 80px 0;
  position: relative;
  background: linear-gradient(135deg, #1a0333 0%, #340569 40%, #5a0fb4 70%, #861cff 100%);
  overflow: hidden;
}
.testimonials-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 75, 112, 0.06);
  border-radius: 50%;
  top: -100px;
  right: -80px;
}
.testimonials-section::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(124, 77, 255, 0.08);
  border-radius: 50%;
  bottom: -80px;
  left: -60px;
}
.testimonials-inner {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.testi-header {
  text-align: center;
  margin-bottom: 40px;
}
.testi-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: #ff4b70;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 8px 24px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.testi-header h2 {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.2;
}
.testi-header h2 span {
  background: linear-gradient(135deg, #ff4b70, #ff8a9e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.testi-header p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.7;
  font-family: "Yu Gothic UI", sans-serif;
}

/* ===== SWIPER SCOPED OVERRIDES ===== */
/* Counters .swiper-slide from services.css (max-width:600px, max-height:500px, bg, padding, align-items:center) */
.testi-slider.swiper-container {
  width: 100% !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 10px 0 10px 0 !important;
}
.testi-slider .swiper-wrapper {
  -webkit-box-align: stretch !important;
  -ms-flex-align: stretch !important;
  align-items: stretch !important;
}
.testi-slider .swiper-slide {
  background-color: transparent !important;
  background-image: none !important;
  background-position: initial !important;
  background-size: initial !important;
  border-radius: 0 !important;
  padding: 4px !important;
  max-width: 100% !important;
  max-height: none !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  height: auto !important;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-orient: vertical !important;
  -webkit-box-direction: normal !important;
  -ms-flex-direction: column !important;
  flex-direction: column !important;
  -webkit-box-align: stretch !important;
  -ms-flex-align: stretch !important;
  align-items: stretch !important;
  -webkit-box-pack: start !important;
  -ms-flex-pack: start !important;
  justify-content: flex-start !important;
}
/* Kill :nth-child width:550px from services.css for direct children only */
.testi-slider .swiper-slide > :nth-child(1),
.testi-slider .swiper-slide > :nth-child(2),
.testi-slider .swiper-slide > :nth-child(3),
.testi-slider .swiper-slide > :nth-child(4),
.testi-slider .swiper-slide > :nth-child(5) {
  width: 100% !important;
  height: auto !important;
}

/* ===== TESTIMONIAL CARD INTERNAL LAYOUT ===== */
.testi-slider .swiper-slide .testi-card,
.testi-card {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 24px !important;
  padding: 30px !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.3s ease, border-color 0.3s ease !important;
  text-align: left !important;
  position: relative !important;
  overflow: hidden !important;
}

.testi-card:hover {
  border-color: rgba(255, 75, 112, 0.5) !important;
  transform: translateY(-8px) !important;
}

/* Quote Icon */
.testi-quote {
  font-size: 40px !important;
  color: #ff4b70 !important;
  line-height: 1 !important;
  margin-bottom: 12px !important;
  opacity: 0.7 !important;
  font-family: serif !important;
  display: block !important;
}

/* Stars - FIXED: Forced horizontal row */
.testi-stars {
  display: inline-flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 20px !important;
  width: fit-content !important;
  align-self: flex-start !important;
}

.testi-stars i {
  color: #ffc107 !important;
  font-size: 15px !important;
  display: inline-block !important;
}

/* Review Text */
.testi-text {
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-family: "Yu Gothic UI", sans-serif !important;
  margin-bottom: 25px !important;
  font-style: italic !important;
  flex-grow: 1 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Author Section */
.testi-author {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  padding-top: 20px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  margin-top: auto !important;
}

.testi-avatar {
  width: 55px !important;
  height: 55px !important;
  min-width: 55px !important;
  max-width: 55px !important;
  border-radius: 50% !important;
  border: 2px solid #ff4b70 !important;
  object-fit: cover !important;
  display: block !important;
}

.testi-author-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  align-items: flex-start !important;
}

.testi-author-info h5 {
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.testi-author-info span {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
}

/* Tag - FIXED: No stretching */
.testi-tag {
  display: inline-block !important;
  width: fit-content !important;
  background: rgba(255, 75, 112, 0.2) !important;
  color: #ff8fa3 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 4px 12px !important;
  border-radius: 50px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin-top: 8px !important;
  align-self: flex-start !important;
}


/* Pagination */
.testi-slider .swiper-pagination {
  position: relative !important;
  bottom: auto !important;
  margin-top: 24px !important;
}
.testi-slider .swiper-pagination-bullet {
  width: 10px !important;
  height: 10px !important;
  background: rgba(255, 255, 255, 0.25) !important;
  opacity: 1 !important;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}
.testi-slider .swiper-pagination-bullet-active {
  background: #ff4b70 !important;
  width: 26px !important;
  border-radius: 5px !important;
}

/* Stats */
.testi-stats {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.testi-stat {
  text-align: center;
}
.testi-stat-num {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.testi-stat-num span {
  color: #ff4b70;
}
.testi-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Yu Gothic UI", sans-serif;
  margin-top: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .testi-header h2 {
    font-size: 32px;
  }
  .testi-stats {
    gap: 36px;
  }
  .testi-stat-num {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 60px 0;
  }
  .testimonials-inner {
    width: 94%;
  }
  .testi-header {
    margin-bottom: 30px;
  }
  .testi-header h2 {
    font-size: 26px;
  }
  .testi-header p {
    font-size: 15px;
  }
  .testi-card {
    padding: 22px 18px;
    border-radius: 14px;
  }
  .testi-quote {
    font-size: 36px;
  }
  .testi-text {
    font-size: 13px;
    line-height: 1.65;
  }
  .testi-author-info h5 {
    font-size: 13px;
  }
  .testi-author-info span {
    font-size: 11px;
  }
  .testi-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  .testi-stats {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 20px 40px;
    margin-top: 30px;
    padding-top: 24px;
  }
  .testi-stat-num {
    font-size: 26px;
  }
  .testi-stat-label {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .testimonials-section {
    padding: 50px 0;
  }
  .testimonials-inner {
    width: 96%;
  }
  .testi-header h2 {
    font-size: 22px;
  }
  .testi-header p {
    font-size: 14px;
  }
  .testi-badge {
    font-size: 11px;
    padding: 6px 16px;
    letter-spacing: 2px;
  }
  .testi-card {
    padding: 20px 16px;
    border-radius: 12px;
  }
  .testi-quote {
    font-size: 32px;
    margin-bottom: 4px;
  }
  .testi-stars i {
    font-size: 12px;
  }
  .testi-text {
    font-size: 13px;
    margin-bottom: 14px;
  }
  .testi-author {
    gap: 10px;
    padding-top: 12px;
  }
  .testi-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
  .testi-stats {
    gap: 16px 32px;
  }
  .testi-stat-num {
    font-size: 22px;
  }
}
