/*-- -------------------------- -->
<---        Testimonials         -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #testimonials {
    padding: clamp(4rem, 9vw, 6rem) 1.25rem;
    background-color: #bbc781;
    scroll-margin-top: 6rem;
  }
  #testimonials .cs-container {
    width: 100%;
    max-width: 56rem;
    margin: auto;
    display: flex;
    flex-direction: column;
  }
  #testimonials .cs-topper {
    color: var(--primaryDark);
    text-align: center;
    margin: 0 0 clamp(3rem, 7vw, 5rem);
  }
  /* Grid-stack every testimonial in the same cell so the track always
     sizes to the tallest one -- switching the active item then can't
     change the section's height and shift the page underneath it. */
  #testimonials .cs-testimonial-track {
    display: grid;
    position: relative;
  }
  #testimonials .cs-testimonial-item {
    grid-area: 1 / 1;
    margin: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  #testimonials .cs-testimonial-item.cs-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  #testimonials .cs-quote {
    font-family: 'Sentient', serif;
    font-size: clamp(1.0625rem, 2.1vw, 1.375rem);
    font-weight: 300;
    line-height: 1.5em;
    margin: 0 0 clamp(2rem, 5vw, 3rem);
    color: var(--navy);
  }
  #testimonials .cs-attribution {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  #testimonials .cs-name {
    font-family: var(--bodyFont);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--navy);
  }
  #testimonials .cs-location {
    font-family: var(--bodyFont);
    font-size: 0.875rem;
    color: var(--primaryDark);
    opacity: 0.75;
  }
  #testimonials .cs-pagination {
    margin-top: clamp(3rem, 7vw, 5rem);
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  #testimonials .cs-page-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: rgba(28, 26, 22, 0.35);
    cursor: pointer;
    position: relative;
    transition: color 0.3s, font-size 0.3s, font-weight 0.3s;
  }
  #testimonials .cs-page-btn.cs-active {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
  }
  #testimonials .cs-page-btn.cs-active:before,
  #testimonials .cs-page-btn.cs-active:after {
    content: "";
    width: 0.85rem;
    height: 1px;
    background-color: var(--navy);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  #testimonials .cs-page-btn.cs-active:before {
    right: calc(100% + 0.3rem);
  }
  #testimonials .cs-page-btn.cs-active:after {
    left: calc(100% + 0.3rem);
  }
}
