/**
Include icons in scss/css.
Usage: 
 @include icon(close);
*/
/*
Media query mixin.
Usage: 
@include media($bp-l, min)
*/
/*
Mixin to add loading spinner to button/element.
Usage: 
@include loading()
*/
/* ==========================================================================
   Testimonials Section
   Dark-background review carousel with light-green review cards.
   Desktop: 3 cards | Tablet: 2 cards | Mobile: 1 card
   ========================================================================== */
.testimonials-section {
  background-color: var(--testimonials-bg, #1b4332);
  padding: 3rem 0;
}
@media only screen and (min-width: 768px) {
  .testimonials-section {
    padding: 5rem 0;
  }
}

.testimonials-section__container {
  width: 100%;
  box-sizing: border-box;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 var(--container-side-space);
}
@media only screen and (max-width: 991px) {
  .testimonials-section__container {
    padding-inline: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   Header: Heading + Star Summary + Review Count
   -------------------------------------------------------------------------- */
.testimonials-section__header {
  text-align: center;
  margin-bottom: 2rem;
}
@media only screen and (min-width: 768px) {
  .testimonials-section__header {
    margin-bottom: 3rem;
  }
}

.testimonials-section__heading {
  font-size: 1.75rem;
  line-height: 130%;
  font-weight: 600;
  letter-spacing: -0.075rem;
  color: var(--testimonials-heading-color, #d7fff2);
  margin: 0 0 1rem;
}
@media (min-width: 992px) {
  .testimonials-section__heading {
    font-size: 2.5rem;
  }
}
.testimonials-section__heading em,
.testimonials-section__heading i {
  font-style: italic;
}
.testimonials-section__heading p {
  margin: 0;
}

.testimonials-section__summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.testimonials-section__summary-stars {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  color: var(--testimonials-header-star, #f5c518);
}

.testimonials-section__star {
  flex-shrink: 0;
}
.testimonials-section__star--full {
  color: var(--testimonials-header-star, #f5c518);
}
.testimonials-section__star--half {
  color: var(--testimonials-header-star, #f5c518);
}
.testimonials-section__star--empty {
  color: var(--testimonials-header-star-empty, #949494);
}

.testimonials-section__review-count {
  font-size: 0.875rem;
  line-height: 160%;
  color: var(--testimonials-heading-color, #f5f5dc);
}

/* --------------------------------------------------------------------------
   Carousel Wrapper + Navigation Arrows
   -------------------------------------------------------------------------- */
.testimonials-section__carousel {
  position: relative;
}

/* Navigation arrows */
.testimonials-section__nav {
  display: flex;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: none;
  background-color: transparent;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, border-color 0.2s;
  padding: 0;
}
@media only screen and (min-width: 768px) {
  .testimonials-section__nav {
    width: 3rem;
    height: 3rem;
  }
}
.testimonials-section__nav:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}
.testimonials-section__nav[disabled] {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}
.testimonials-section__nav svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
@media only screen and (min-width: 768px) {
  .testimonials-section__nav svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}
.testimonials-section__nav--prev {
  left: -2.25rem;
}
@media only screen and (min-width: 768px) {
  .testimonials-section__nav--prev {
    left: -3.5rem;
  }
}
@media only screen and (min-width: 1200px) {
  .testimonials-section__nav--prev {
    left: -4rem;
  }
}
.testimonials-section__nav--next {
  right: -2.25rem;
}
@media only screen and (min-width: 768px) {
  .testimonials-section__nav--next {
    right: -3.5rem;
  }
}
@media only screen and (min-width: 1200px) {
  .testimonials-section__nav--next {
    right: -4rem;
  }
}

/* Swiper slide height */
.testimonials-section__carousel swiper-slide {
  height: auto;
}

/* --------------------------------------------------------------------------
   Testimonial Card
   -------------------------------------------------------------------------- */
.testimonials-section__card {
  background-color: var(--testimonials-card-bg, #d7fff2);
  border-radius: 1.5rem;
  border-bottom-left-radius: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}
@media only screen and (min-width: 992px) {
  .testimonials-section__card {
    padding: 1.75rem;
  }
}

/* Author row: avatar + name/verified */
.testimonials-section__card-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.testimonials-section__avatar {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background-color: #054040;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  text-transform: uppercase;
}

.testimonials-section__author-info {
  display: flex;
  flex-direction: column;
}

.testimonials-section__author-name {
  font-size: 1rem;
  line-height: 140%;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: #054040;
}

.testimonials-section__verified {
  font-size: 0.75rem;
  line-height: 160%;
  font-weight: 500;
  color: #595959;
}

/* Rating + Date row */
.testimonials-section__card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.testimonials-section__card-stars {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.testimonials-section__card-star {
  flex-shrink: 0;
}
.testimonials-section__card-star--full {
  color: var(--testimonials-card-star, #f5c518);
}
.testimonials-section__card-star--half {
  color: var(--testimonials-card-star, #f5c518);
}
.testimonials-section__card-star--empty {
  color: var(--testimonials-card-star-empty, #949494);
}

.testimonials-section__card-date {
  font-size: 0.75rem;
  line-height: 160%;
  font-weight: 500;
  color: #595959;
}

/* Review title */
.testimonials-section__card-title {
  font-size: 1.125rem;
  line-height: 150%;
  font-weight: 600;
  letter-spacing: -0.0125rem;
  color: #054040;
  margin: 0 0 0.5rem;
}
@media (min-width: 992px) {
  .testimonials-section__card-title {
    font-size: 1.25rem;
  }
}

/* Review body */
.testimonials-section__card-body {
  font-size: 0.875rem;
  line-height: 140%;
  font-weight: 500;
  color: #363636;
  margin-bottom: 1rem;
  flex-grow: 1;
  /* Override rte-content margins */
}
.testimonials-section__card-body .rte p {
  margin: 0;
}

/* Helpful section */
.testimonials-section__card-helpful {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  margin-top: auto;
}

.testimonials-section__helpful-label {
  font-size: 0.875rem;
  line-height: 160%;
  font-weight: 500;
  color: #054040;
}

.testimonials-section__helpful-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonials-section__helpful-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #595959;
  font-size: 0.75rem;
  line-height: 160%;
  font-weight: 500;
  cursor: default;
}
.testimonials-section__helpful-btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.testimonials-section__helpful-btn.helpful svg {
  color: #054040;
}
