/* ==========================================================================
   Improved Testimonial Section Styles
   ========================================================================== */

.testimonial_sec {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.testimonial_sec::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(26, 164, 241, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Header Styling */
.testimonial-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.testimonial-badge {
  display: inline-block;
  background: linear-gradient(135deg, #1aa4f1 0%, #0084cc 100%);
  color: #ffffff;
  padding: 8px 24px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(26, 164, 241, 0.25);
  margin-bottom: 16px;
}

.testimonial-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 700;
  color: #0a0e27;
  margin: 0 0 12px;
  line-height: 1.2;
}

.testimonial-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 17px;
  color: #64748b;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Slider Wrapper */
.happy-clientslider {
  position: relative;
  margin: 0 -15px;
}

.happy-clientslider .slide {
  display: flex !important;
  align-items: stretch;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 50px 40px;
  margin: 0 15px;
  gap: 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  min-height: 420px;
}

.happy-clientslider .slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #1aa4f1 0%, #0084cc 100%);
}

.happy-clientslider .slide:hover {
  transform: translateY(-5px);
  border-color: rgba(26, 164, 241, 0.3);
}

/* Main Box (Client Info) */
.mainBox {
  text-align: center;
  padding: 0 !important;
}

.imgBox {
  width: 240px !important;
  height: 240px !important;
  margin: 0 auto 24px !important;
  position: relative;
  border-radius: 50%;
  background: linear-gradient(135deg, #1aa4f1 0%, #0084cc 100%);
  padding: 6px;
  box-shadow: 0 15px 35px rgba(26, 164, 241, 0.3);
}

.imgBox::before,
.imgBox::after {
  display: none !important;
}

.imgBox img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #ffffff;
}

.quote-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #1aa4f1 0%, #0084cc 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(26, 164, 241, 0.4);
  border: 3px solid #ffffff;
}

.quote-icon i {
  color: #ffffff;
  font-size: 18px;
}

.Client-detail {
  padding: 0 !important;
  left: 0 !important;
  position: relative !important;
}

.Client-detail h6 {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #0a0e27 !important;
  margin: 0 0 8px !important;
  text-transform: none !important;
}

.Client-detail .role {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1aa4f1 !important;
  text-transform: none !important;
}

/* Quote Section */
.quote {
  flex: 1;
  position: relative !important;
  padding: 0 !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column;
}

.quote::before,
.quote::after {
  display: none !important;
}

.quote p {
  font-family: 'Lato', sans-serif !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
  color: #475569 !important;
  margin: 0 0 20px !important;
  text-align: left !important;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quote-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1aa4f1;
  text-decoration: none;
  padding: 10px 24px;
  background: rgba(26, 164, 241, 0.08);
  border-radius: 50px;
  border: 1px solid rgba(26, 164, 241, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  align-self: flex-start;
  margin-top: auto;
}

.quote-read-more:hover {
  color: #fff;
  background: #1aa4f1;
  border-color: #1aa4f1;
  text-decoration: none;
  transform: translateY(-2px);
}

.quote-read-more i {
  font-size: 11px;
  transition: transform 0.3s;
}

.quote-read-more:hover i {
  transform: translateX(4px);
}

/* Testimonial Footer */
.testimonial-footer {
  text-align: center;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid #e2e8f0;
}

.testimonial-see-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  padding: 16px 40px;
  background: linear-gradient(135deg, #1aa4f1 0%, #0084cc 100%);
  border-radius: 50px;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-see-more:hover {
  color: #1aa4f1 !important;
  background: #fff;
  border-color: #1aa4f1;
  transform: translateY(-3px);
  text-decoration: none !important;
}

.testimonial-see-more i {
  font-size: 13px;
  transition: transform 0.3s;
}

.testimonial-see-more:hover i {
  transform: translateX(6px);
}

/* Slick Slider Customization */
.happy-clientslider .slick-dots {
  bottom: -50px;
  display: flex !important;
  justify-content: center;
  gap: 10px;
}

.happy-clientslider .slick-dots li {
  width: auto;
  height: auto;
  margin: 0;
}

.happy-clientslider .slick-dots li button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  padding: 0;
  transition: all 0.3s ease;
}

.happy-clientslider .slick-dots li button:before {
  display: none;
}

.happy-clientslider .slick-dots li.slick-active button {
  width: 32px;
  border-radius: 6px;
  background: #1aa4f1;
  box-shadow: 0 2px 8px rgba(26, 164, 241, 0.4);
}

.happy-clientslider .slick-arrow {
  width: 50px;
  height: 50px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 10;
  transition: all 0.3s ease;
}

.happy-clientslider .slick-arrow:hover {
  background: #1aa4f1;
  box-shadow: 0 6px 20px rgba(26, 164, 241, 0.3);
}

.happy-clientslider .slick-arrow:before {
  color: #0a0e27;
  font-size: 20px;
  opacity: 1;
  transition: color 0.3s ease;
}

.happy-clientslider .slick-arrow:hover:before {
  color: #ffffff;
}

.happy-clientslider .slick-prev {
  left: -25px;
}

.happy-clientslider .slick-next {
  right: -25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .testimonial_sec {
    padding: 60px 0;
  }

  .testimonial-header {
    margin-bottom: 50px;
  }

  .happy-clientslider .slide {
    flex-direction: column;
    padding: 40px 30px;
    gap: 30px;
  }

  .imgBox {
    width: 200px !important;
    height: 200px !important;
  }

  .quote-icon {
    width: 45px;
    height: 45px;
  }

  .quote-icon i {
    font-size: 16px;
  }

  .Client-detail h6 {
    font-size: 22px !important;
  }

  .quote p {
    text-align: center !important;
    font-size: 15px !important;
  }

  .happy-clientslider .slick-arrow {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .testimonial_sec {
    padding: 50px 0;
  }

  .testimonial-header {
    margin-bottom: 40px;
  }

  .testimonial-badge {
    padding: 6px 20px;
    font-size: 11px;
  }

  .testimonial-title {
    font-size: 28px;
  }

  .testimonial-subtitle {
    font-size: 15px;
  }

  .happy-clientslider .slide {
    padding: 35px 25px;
    margin: 0 10px;
    gap: 25px;
  }

  .imgBox {
    width: 180px !important;
    height: 180px !important;
    margin-bottom: 20px !important;
  }

  .quote-icon {
    width: 40px;
    height: 40px;
    bottom: 5px;
    right: 5px;
  }

  .quote-icon i {
    font-size: 14px;
  }

  .Client-detail h6 {
    font-size: 20px !important;
  }

  .Client-detail .role {
    font-size: 14px !important;
  }

  .quote p {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

  .happy-clientslider .slick-dots {
    bottom: -40px;
  }
}

@media (max-width: 480px) {
  .testimonial_sec {
    padding: 40px 0;
  }

  .happy-clientslider .slide {
    padding: 30px 20px;
    border-radius: 16px;
  }

  .imgBox {
    width: 160px !important;
    height: 160px !important;
  }

  .Client-detail h6 {
    font-size: 18px !important;
  }

  .Client-detail .role {
    font-size: 13px !important;
  }
}
