/* -------------------------------
   SWIPER CORE RESET
---------------------------------- */
.swiper,
.swiper-wrapper,
.swiper-slide {
  box-sizing: border-box;
  background: transparent;
}

.testimonials-carousel {
  position: relative;
  width: 100%;
}

.testimonials-carousel .swiper-wrapper {
  background: transparent;
}

/* let Swiper control the slide width; no centering flex here */
.testimonials-carousel .swiper-slide {
  height: auto;
}

/* -------------------------------
   TESTIMONIAL CARD
---------------------------------- */
.testimonial-item {
  background-color: #f1f1f1 !important;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

/*.testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}*/

/* refine card look */
.testimonial-item {
  border-radius: 20px;
  padding: 32px 28px;
  background: #fff7f5; /* can be overridden from widget bg_color */
  display: flex;
  flex-direction: column;
}

/* -------------------------------
   QUOTE ICON + HEADER
---------------------------------- */
.testimonial-quote-icon {
  font-size: 48px;
  line-height: 1;
  color: #ff6b6b;
  margin-bottom: 12px;
  margin-top: -45px;
}

.testimonial-quote-icon .quote-mark {
  display: inline-block;
  transform: translateY(-4px);
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.testimonial-author-meta {
  max-width: 75%;
}

.header-right-qout img {
  width: 35px;
  height: auto;
  opacity: 0.6;
}

/* -------------------------------
   COLUMNS (old layout support)
---------------------------------- */
.testimonial-columns {
  display: flex;
  align-items: flex-start;
  gap: 25px;
}

.testimonial-col.testimonial-image {
  flex: 0 0 120px;
}

.testimonial-col.testimonial-image img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-col.testimonial-content {
  flex: 1;
}

/* -------------------------------
   TEXT
---------------------------------- */
.testimonial-details {
  margin-bottom: 20px;
}

p.testimonial-details {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

/* refined paragraph style */
.testimonial-details {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 22px;
}

/* -------------------------------
   AUTHOR NAME / POSITION
---------------------------------- */
.mm-testimonial--name {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #132834;
}

.author-position {
  font-size: 15px;
  font-weight: 400;
  color: #777;
  margin: 0;
}

/* -------------------------------
   FOOTER (AUTHOR + RATING)
---------------------------------- */
.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auther-img img {
  width: 100%;
  max-width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* if used as small avatar elsewhere */
.testimonial-image img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-role {
  font-size: 13px;
  color: #999;
}

/* rating: star + number on right */
.testimonial-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: #ff9c00;
}

.testimonial-rating .rating-star {
  font-size: 18px;
  line-height: 1;
}

.testimonial-rating .rating-star img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

span.rating-number {
  color: #E24138;
}
.testimonials-carousel .swiper-wrapper {
    padding-bottom: 100px;
}

/* -------------------------------
   SWIPER ARROWS
---------------------------------- */
.swiper-arrows-wrapper {
    position: absolute;
    bottom: 0;
    right: 50%;
    display: flex;
    gap: 15px;
    z-index: 15;
}

.swiper-arrows-wrapper .swiper-button-next,
.swiper-arrows-wrapper .swiper-button-prev {
  position: static;
  width: 45px;
  height: 45px;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  color: #ffffff;
  border-radius: 8px;
}

.swiper-arrows-wrapper .swiper-button-next:hover img,
.swiper-arrows-wrapper .swiper-button-prev:hover img {
  filter: brightness(0) saturate(100%)
          invert(38%)
          sepia(82%)
          saturate(3450%)
          hue-rotate(346deg)
          brightness(95%)
          contrast(102%);
}


.swiper-arrows-wrapper img {
  max-width: 20px;
  height: auto;
}

/* hide default arrow text */
.swiper-button-next::after,
.swiper-button-prev::after {
  display: none !important;
}
.swiper-arrows-wrapper {
    position: absolute;
    bottom: 0;
    display: flex;
    gap: 15px;
    z-index: 15;
    width: 100%;
    justify-content: center;
    right: unset;
}

.testimonial-content {
    position: relative;
}
/* -------------------------------
   SWIPER DOTS
---------------------------------- */
.swiper-pagination {
  margin-top: 25px;
  text-align: center;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #ccc;
  opacity: 1;
  margin: 0 6px !important;
  transition: all .3s ease;
}

.swiper-pagination-bullet-active {
  background: #ff6702;
  transform: scale(1.2);
}

/* -------------------------------
   RESPONSIVE
---------------------------------- */
@media (max-width: 991px) {
  .testimonial-columns {
    gap: 20px;
  }
  .testimonial-col.testimonial-image {
    flex: 0 0 100px;
  }
  .testimonial-col.testimonial-image img {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 767px) {
  .testimonial-columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .testimonial-col.testimonial-image {
    flex: 0 0 auto;
  }
  .testimonial-col.testimonial-image img {
    margin-bottom: 15px;
  }
  .testimonial-col.testimonial-content {
    width: 100%;
  }
  .testimonial-header {
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
  }
  .header-right-qout {
    display: none;
  }
  .swiper-arrows-wrapper {
    bottom: 0px;
    right: unset;
  }
}
