.testimonials {
    padding: 20px 2rem;
}

/* Anchor Target - From Footer
=============================== */
.front-page #customer-stories,
.front-page #customer-stories:target,
.front-page #customer-stories:focus {
  outline: none;
}

/* Testimonial - Rating
=============================== */
.testimonial-rating {
    margin-bottom: 3rem;
    font-weight: 600;
}
.testimonial-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2em;
}
.testimonial-rating p {
    margin: 0;
}
.star-icons {
    margin-top: 4px;
}
.testimonial-rating-link {
  border-bottom: 1px solid var(--primary-100);
}

/* Testimonial - Slider
=============================== */
.testimonial-viewport {
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
.testimonial-track {
    max-width: 800px;
}
.testimonial-card {
    flex: 0 0 100%;        /* one slide per view */
    max-width: 100%;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--stroke-100);
    padding: 32px;
    border-radius: var(--img-corners);
}

/* Testimonial - Quote
=============================== */
.testimonial-quote {
    font-size: 0.9em;
    line-height: 1.6;
    margin-top: 8px;
}
.testimonial-name {
    font-weight: 700;
    font-size: 0.9em;
}
.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
}

/* Testimonial - Controls
=============================== */
.t-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 1.5em auto 0;
}
.t-btn {
    background: var(--white);
    border: 1px solid var(--outline-100);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.t-btn:hover {
    filter: brightness(0.9);
}

/* Arrows */
.t-btn svg {
  width: 20px;
  height: 20px;
}

/* Dots */
.t-dots {
  display: flex;
  gap: 0.6rem;
}
.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--outline-100);
  border: none;
  padding: 0;
  cursor: pointer;
}
.t-dot.is-active {
  background: var(--primary-100);
}

/* Additional */
.testimonial-viewport {
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-track {
    display: flex;
    gap: 16px;
    width: 100%;
    transition: transform 0.45s ease;
}

.testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0;
    background: var(--white);
    border: 1px solid var(--stroke-100);
    padding: 32px;
    border-radius: var(--img-corners);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Small Screens 
=============================== */
@media only screen and (max-width: 768px) {
    .t-btn {
        display: none;
    }

    /* Testimonial */
    .testimonial-viewport {
        overflow: hidden;
    }
    .testimonial-track {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        scroll-behavior: smooth;
        transition: none !important;
        transform: none !important;
    }
    .testimonial-track::-webkit-scrollbar {
        display: none;
    }
    .testimonial-card {
        flex: 0 0 100%;
        scroll-snap-align: start;
        padding: 24px;
    }
}
@media only screen and (max-width: 480px) {
    .testimonials {
        padding: 20px 1rem;
    }
}