/* Tuwayq RTL — Testimonial carousel & cards */

.testimonial-carousel.carousel-testimonial {
  padding: 48px 0 56px;
  position: relative;
  background-image: url(../images/testimonial-carousel-bg.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  margin-bottom: 80px;
}

.testimonial-carousel .container {
  position: relative;
  z-index: 1;
}

.testimonial-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.testimonial-carousel.carousel-testimonial .title {
  margin: 0;
  color: var(--black, #000);
  font-family: var(--primary-font, 'Source Sans', sans-serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
}

.testimonial-carousel .title::after {
  display: none;
}

.testimonial-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.testimonial-carousel.carousel-testimonial .testimonial-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white, #fff);
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--primary-font, 'Source Sans', sans-serif);
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.testimonial-carousel.carousel-testimonial .testimonial-view-all:hover {
  color: var(--white, #fff);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.testimonial-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
}

.testimonial-carousel.carousel-testimonial .testimonial-navigation .swiper-button-prev,
.testimonial-carousel.carousel-testimonial .testimonial-navigation .swiper-button-next {
  position: relative;
  inset: auto;
  margin: 0;
  top: auto;
  inset-inline-start: auto;
  inset-inline-end: auto;
}

.testimonal-swiper-wrapp {
  position: relative;
}

.testimonal-swiper-wrapp .testimonial-swiper-wrapper {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
}

.testimonal-swiper-wrapp .testimonial-swiper-pagination,
.testimonal-swiper-wrapp .swiper-pagination {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 28px;
  line-height: 0;
}

.testimonial-carousel.carousel-testimonial .testimonal-swiper-wrapp .swiper-pagination-bullet {
  width: 18px;
  height: 18px;
  margin: 0 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  opacity: 1;
  position: relative;
  vertical-align: middle;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.testimonial-carousel.carousel-testimonial .testimonal-swiper-wrapp .swiper-pagination-bullet-active {
  width: 18px;
  height: 18px;
  margin: 0 14px;
  border: none;
  background: rgba(246, 53, 56, 0.3);
  opacity: 1;
}

.testimonial-carousel.carousel-testimonial .testimonal-swiper-wrapp .swiper-pagination-bullet-active::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary, #f63538);
  transform: translate(-50%, -50%);
}

.testimonial-item {
  padding-inline: 0;
  margin-block: 0;
  height: auto;
  display: flex;
  align-items: stretch;
}

.testimonial-container,
.testimonial-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--white, #fff);
  border-radius: 10px;
  padding: 24px 26px 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-align: start;
}

.testimonial-container {
  position: relative;
}

.testimonial-rating {
  margin-bottom: 16px;
}

.testimonial-item .rating,
.testimonial-card .rating {
  display: inline-flex;
  position: relative;
  font-size: 18px;
  line-height: 1;
  color: var(--medium-grey, #b2b2b2);
}

.testimonial-item .rating::before,
.testimonial-card .rating::before {
  content: "\2605\2605\2605\2605\2605";
  letter-spacing: 2px;
}

.testimonial-item .rating div,
.testimonial-card .rating div {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--orang, #ff8a3d);
}

.testimonial-item .rating div::before,
.testimonial-card .rating div::before {
  content: "\2605\2605\2605\2605\2605";
  letter-spacing: 2px;
}

.testimonial-content {
  flex: 1 1 auto;
  margin-bottom: 22px;
  font-family: var(--primary-font, 'Source Sans', sans-serif);
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.55;
  color: var(--black, #000);
  white-space: pre-line;
}

.testimonial-carousel .testimonial-content {
  min-height: 120px;
}

.testimonial-author-container {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.testimonial-client-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--light-grey, #e6e6e6);
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.testimonial-author {
  font-family: var(--primary-font, 'Source Sans', sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--black, #000);
  line-height: 1.25;
  text-transform: none;
}

.testimonial-date {
  font-family: var(--primary-font, 'Source Sans', sans-serif);
  font-size: 14px;
  font-weight: 400;
  color: var(--grey, #606264);
  line-height: 1.3;
}

.testimonials-all-page-container {
  padding-top: 30px;
  padding-bottom: 30px;
}

.testimonials-all-page-container .page-title {
  text-align: center;
  padding-top: 14px;
}

.testimonials-all-page-container .page-body {
  padding-top: 14px;
  padding-bottom: 20px;
}

.testimonials-all-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 20px;
  max-width: 980px;
  margin: 14px auto 20px;
}

.testimonials-all-grid .testimonial-card {
  min-height: 0;
}

.testimonials-all-grid .testimonial-content {
  min-height: 0;
}

.testimonial-account-page .product-review-item .review-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.testimonial-status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.testimonial-status-badge.approved {
  color: #1f7a1f;
  background: #e6f8e6;
}

.testimonial-status-badge.pending {
  color: #8a6a00;
  background: #fff3d7;
}

.add-new-testimonial-wrap {
  margin-top: 20px;
}

.testimonial-account-page .ratings .star {
  font-size: 24px;
  color: var(--medium-grey, #b2b2b2);
  cursor: pointer;
}

.testimonial-account-page .ratings:not(:hover) .star.selected,
.testimonial-account-page .ratings .star.hover {
  color: var(--orang, #ff8a3d);
}

.testimonial-account-page form {
  padding: 0;
  box-shadow: none;
}

.testimonial-account-page .buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.testimonial-account-page a.button-1,
.testimonial-account-page a.button-1:hover,
.testimonial-account-page a.button-1:focus {
  text-decoration: none !important;
}

.testimonials-all-back-wrap {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.testimonials-all-back-wrap .button-1,
.testimonials-all-back-wrap .button-1:hover,
.testimonials-all-back-wrap .button-1:focus {
  text-decoration: none !important;
}

@media (max-width: 1000px) {
  .testimonial-carousel.carousel-testimonial {
    padding: 36px 0 44px;
    margin-bottom: 40px;
  }

  .testimonial-carousel.carousel-testimonial .title {
    font-size: 26px;
  }

  .testimonial-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .testimonial-carousel.carousel-testimonial .testimonial-view-all {
    display: none;
  }

  .testimonial-actions {
    width: 100%;
  }

  .testimonial-navigation {
    justify-content: space-between;
    width: 100%;
  }

  .testimonial-container,
  .testimonial-card {
    padding: 20px 18px 18px;
  }

  .testimonial-carousel .testimonial-content {
    min-height: 0;
    font-size: 15px;
  }

  .testimonial-author {
    font-size: 16px;
  }

  .testimonial-date {
    font-size: 13px;
  }

  .testimonial-client-photo {
    width: 48px;
    height: 48px;
  }
}

@media (min-width: 1001px) {
  .testimonials-all-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
  }
}
