/* Testimonials Section Base Styles */
.testimonials-section {
    --testimonials-quote-color: rgba(var(--color-text), 0.06);

    position: relative;
    background-color: rgb(var(--color-background));
    color: rgb(var(--color-text));
}

.testimonials-section[layout="block"] .page-width {
    background-color: rgba(var(--container-background-color));
    border-radius: 12px;
    padding: 40px;
}

.testimonials-section[layout="column"] .testimonials-card {
    background-color: rgba(var(--container-background-color));
    border-radius: 12px;
}

@media (max-width: 959px) {
    .testimonials-section[layout="block"] .page-width {
        padding: 24px 20px;
    }
}

.testimonials-section__carousel {
    width: 100%;
}

/* Quote Icon */
.testimonials-section__quote-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    color: var(--testimonials-quote-color);
}

.testimonials-section__quote-icon svg {
    width: 120px;
    height: 100px;
}

/* Track */
.testimonials-section__track {
    display: flex;
    margin: 0 auto;
    width: 100%;
    max-width: 780px;
    padding: 40px 0;
    list-style: none;
}

/* Slide */
.testimonials-section__slide {
    flex: 0 0 100%;
    min-width: 0;
    position: relative;
    z-index: 1;
}

/* Testimonial Card */
.testimonials-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 40px;
}

.testimonials-card__content {
    margin: 0 0 24px;
    font-size: 1.25rem;
    line-height: 1.8;
    font-weight: 400;
    max-width: 700px;
    color: rgb(var(--color-text));
}

.testimonials-card__source {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    opacity: 0.6;
}

.testimonials-card__source::before {
    content: "— ";
}

/* Navigation Arrows */
.testimonials-section__arrows {
    position: absolute;
    top: 50%;
    left: -60px;
    right: -60px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
    z-index: 2;
}

.testimonials-section__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgb(var(--color-background));
    border: 1px solid rgba(var(--color-text), 0.1);
    border-radius: 50%;
    color: rgb(var(--color-text));
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.testimonials-section__arrow:hover:not([disabled]) {
    background: rgb(var(--color-text));
    color: rgb(var(--color-background));
    border-color: rgb(var(--color-text));
}

.testimonials-section__arrow[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
}

.testimonials-section__arrow--next {
    transform: rotate(180deg);
}

.testimonials-section__arrow svg {
    width: 16px;
    height: 16px;
}

/* Pagination Dots */
.testimonials-section__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.testimonials-section__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    background: rgba(var(--color-text), 0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials-section__dot:hover {
    background: rgba(var(--color-text), 0.3);
}

.testimonials-section__dot.is-active {
    background: rgb(var(--color-text));
    transform: scale(1.2);
}

/* Media Logos */
.testimonials-section__logos {
    padding-top: 40px;
    overflow: hidden;
}

.testimonials-section__logos-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.testimonials-section__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.testimonials-section__logo:hover,
.testimonials-section__logo.is-active {
    opacity: 1;
    filter: grayscale(0%);
}

.testimonials-section__logo img {
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Tablet Responsive */
@media (max-width: 1199px) {
    .testimonials-section__arrows {
        left: -20px;
        right: -20px;
    }

    .testimonials-section__logos-track {
        gap: 32px;
    }
}

/* Mobile Responsive */
@media (max-width: 959px) {
    .testimonials-section__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 32px;
    }

    .testimonials-section__heading {
        font-size: 1.5rem;
    }

    .testimonials-section__view-more {
        padding: 10px 16px;
        font-size: 0.8125rem;
    }

    .testimonials-section__quote-icon svg {
        width: 80px;
        height: 64px;
    }

    .testimonials-section__track {
        padding: 24px 0;
    }

    .testimonials-card {
        padding: 16px 20px;
    }

    .testimonials-card__content {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 16px;
    }

    .testimonials-card__source {
        font-size: 0.875rem;
    }

    /* Hide arrows on mobile */
    .testimonials-section__arrows {
        display: none;
    }

    .testimonials-section__dots {
        margin-top: 16px;
        gap: 8px;
    }

    .testimonials-section__dot {
        width: 8px;
        height: 8px;
    }

    .testimonials-section__logos {
        margin-top: 40px;
        padding-top: 32px;
    }

    .testimonials-section__logos-track {
        gap: 24px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 20px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .testimonials-section__logos-track::-webkit-scrollbar {
        display: none;
    }

    .testimonials-section__logo {
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .testimonials-section__logo img {
        max-width: 100px;
    }
}

/* Small Mobile */
@media (max-width: 479px) {
    .testimonials-section__heading {
        font-size: 1.25rem;
    }

    .testimonials-card__content {
        font-size: 0.9375rem;
    }

    .testimonials-section__logo {
        height: 120px;
    }
}