/* Testimonial Section */
.testimonial-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 0;
  overflow: hidden;
}

.testimonial-bg::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  background-image: var(--sepahkar-decoration-column, none);
  background-repeat: repeat-x;

  background-size: 6.2rem auto;
  z-index: 2;
  pointer-events: none;
  opacity: .02;
}

.testimonial-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, var(--c-primary) 0%, #0e1d7dc2 50%, rgb(29 78 216 / 27%) 100%);
  z-index: 1;
}


.testimonial-wrapper {
  position: relative;
  z-index: 5;
}

.testimonial-wrapper .heading-base {
  color: var(--c-white);
}

.testimonial-wrapper .heading-base .subtitle {
  color: var(--c-white);
}



.testimonial-wrapper .sepahkar__leafbox {
  filter: invert(1);
}

/* Navigation Buttons */
.testimonial-nav {
  display: flex;
  gap: 1.2rem;
}

.testimonial-nav .btn-sw {
  position: static;
  margin: 0;
  background: var(--c-secondary);
  --swiper-navigation-color: var(--c-white);
}

/* Slider */
.testimonial-slider {
  margin-top: 4rem;
}

.testimonial-swiper {
  overflow: visible;
  overflow-x: clip;
}

.testimonial-slide {
  display: flex;
  flex-direction: column;
  gap: 3.6rem;
}

/* Testimonial Cards */
.testimonial-card {
  background: linear-gradient(136deg, #ffffff3b, #ffffff1f, #ffffff4a);
  border-radius: 2.8rem;
  padding: 3rem 4rem 2rem;
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--c-white);
  position: relative;
}

.testimonial-card__content {
  flex: 1;
}

.testimonial-card__quote {
  color: var(--c-secondary);
  line-height: 1;
  font-size: 4.6rem;
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
  right: 2.9rem;
}

.testimonial-card__desc {
  font-size: var(--fs-16);
  line-height: 2;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.4rem;
}

.testimonial-card__avatar {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 1.2rem;
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card__info {
  flex: 1;
}

.testimonial-card__name {
  font-size: var(--fs-16);
  font-weight: bold;
  margin: 0 0 0.2rem 0;
}

.testimonial-card__position {
  font-size: var(--fs-14);
  font-weight: 400;
}


/* Swiper Overrides */
.testimonial-swiper .swiper-slide {
  height: auto;
  width: 36rem;
}

.desktop .testimonial-swiper .swiper-slide {
  width: 100%;
}

.testimonial-swiper .swiper-wrapper {
  align-items: stretch;
}

@media (min-width: 1024px) {
  .testimonial-wrapper {
    width: 72%;
  }

  .testimonial-wrapper .heading-base {
    width: 83%;
  }

  .testimonial-slide .testimonial-card {
    width: 83%;
    transform-origin: top;

  }

  .testimonial-slide .testimonial-card:nth-child(2) {
    margin-right: auto;
    transform-origin: bottom;
  }

  .testimonial-bg::before {
    background: linear-gradient(270deg, var(--c-primary) 0%, #0e1d7dc2 50%, rgb(29 78 216 / 27%) 100%);
  }

  .testimonial-bg::after {
    background-size: 8.2rem auto;
  }



  .testimonial-card__quote {
    font-size: 5.6rem;
  }
}