/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials-section {
    background-color: var(--color-fluoro);
}

.testimonials-container {
    padding: 96px 16px;
}

/* Slider */
.testimonials-slider {
    position: relative;
}

.testimonials-slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.testimonials-slider-track {
    display: flex;
    gap: 0;
    transition: transform 0.3s ease;
    align-items: flex-start;
}

/* Testimonial Card */
.testimonial {
    min-width: 100%;
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    box-sizing: border-box;
}

/* Quote */
.testimonial-quote {
    font-family: "loew-variable", sans-serif;
    font-weight: 700;
    font-stretch: 10%;
    font-size: 28px;
    line-height: 90%;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #020202;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

/* Author Section */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 33px;
}

/* Person Image */
.testimonial-image {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Info */
.testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Name */
.testimonial-name {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 110%;
    letter-spacing: 0%;
    color: var(--color-charcoal);
    margin: 0;
}

/* Service */
.testimonial-service {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 110%;
    letter-spacing: 0%;
    color: #2B2B2B;
    margin: 0;
}

/* Navigation */
.testimonials-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 44px;
}

/* Dots */
.testimonials-dots {
    display: flex;
    gap: 8px;
}

.testimonials-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: var(--color-charcoal);
    opacity: 0.2;
    cursor: pointer;
    transition: background-color 200ms ease;
}

.testimonials-dot:hover {
    background-color: rgba(2, 2, 2, 0.5);
}

.testimonials-dot.active {
    opacity: 1;
}

/* Arrows */
.testimonials-arrows {
    display: flex;
    gap: 16px;
}

.testimonials-arrow {
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 200ms ease;
}

.testimonials-arrow:hover {
    opacity: 0.7;
}

.testimonials-arrow img {
    width: 18px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0);
}

.testimonials-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.testimonials-arrow:disabled:hover {
    opacity: 0.3;
}

/* Tablet Styles */
@media screen and (min-width: 768px) and (max-width: 1119px) {

    .testimonial-quote,
    .testimonial-author {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .testimonial-quote {
        text-align: center;
        line-height: 100%;
    }

    .testimonial-author {
        justify-content: center;
    }
}

/* ========================================
   DESKTOP STYLES
   ======================================== */
@media screen and (min-width: 1120px) {
    .testimonials-container {
        padding: 80px 0;
        overflow: hidden;
        /* Ensure content doesn't spill out */
    }

    .testimonials-slider-wrapper {
        width: 100%;
        /* Remove overflow:hidden here or ensure it allows peeking if we want that, 
           but usually we want overflow hidden on a wider container */
    }

    .testimonials-slider-track {
        /* Add relative positioning for robust JS offsetLeft calculation if needed, 
           and gap to push items apart */
        position: relative;
        gap: 200px;
        /* Push neighbors away significantly */
    }

    .testimonial {
        /* Set width based on the requirement of having "padding on left and right" of approx 433px on a 1440px screen? 
           Let's aim for a centralized width. 
           If screen is ~1440, and padding is ~433 * 2 = 866. Content is ~574px.
           Let's set a max-width and percentage.
        */
        width: 600px;
        /* Approximate based on design feel */
        max-width: 45vw;
        min-width: 0;
        /* Override previous 100% min-width */
        opacity: 0.4;
        transition: opacity 0.3s ease;
        padding: 0 40px;
        /* internal padding */
    }

    .testimonial.active {
        opacity: 1;
    }

    .testimonials-navigation {
        padding-left: 64px;
        padding-right: 64px;
    }

    .testimonial-quote {

        text-align: left;
    }

    .testimonial-author {
        gap: 32px;
    }
}

@media screen and (max-width: 1440px) {
    .testimonial-quote {
        font-size: 32px;
        line-height: 100%;
    }
}