/* Project Testimonials Carousel */

/* Carousel section */
.project-testimonials-section {
    --project-testimonials-gap: 12px;
    --project-testimonials-left-offset: 80px;
    --project-testimonials-slide-width: 400px;
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}

/* Carousel */
.project-testimonials {
    position: relative;
    width: calc(100% - var(--project-testimonials-left-offset));
    margin-left: var(--project-testimonials-left-offset);
}

/* Slides */
.project-testimonials__slide {
    position: relative;
    width: var(--project-testimonials-slide-width) !important;
    height: auto;
    flex: 0 0 auto;
}

/* Splide track */
.project-testimonials .splide__track {
    overflow: hidden;
    cursor: grab;
}

.project-testimonials.has-moved .splide__track {
    overflow: visible;
}

.project-testimonials.is-dragging .splide__track {
    cursor: grabbing;
}

/* Testimonial card */
.project-testimonials__card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 360px;
    margin: 0;
    overflow: hidden;
}

/* Testimonial content */
.project-testimonials__content {
    position: relative;
    flex: 1;
    padding: 42px 36px 34px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 11px;
    overflow: hidden;
}

/* Background overlay */
.project-testimonials__content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(24, 24, 25, 0.8);
    pointer-events: none;
}

/* Quote mark */
.project-testimonials__quote-mark {
    position: relative;
    z-index: 1;
    height: 48px;
    margin: 0 0 18px;
    color: #ffffff;
    font-family: Georgia, serif;
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
}

.project-testimonials__quote-mark svg{
    width: 25px;
}

/* Testimonial copy */
.project-testimonials__copy {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    border: 0;
    color: #ffffff;
    font-family: "Rajdhani", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 26px;
}

.project-testimonials__copy p {
    margin-top: 0;
}

.project-testimonials__copy p:last-child {
    margin-bottom: 0;
}

/* Testimonial client */
.project-testimonials__client {
    margin: 24px 0 0 !important;
    padding: 0 36px;
    color: #181819;
    font-family: "Rajdhani", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

/* Partial slide overlay */
.project-testimonials__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: opacity 300ms ease;
}

.project-testimonials__slide.is-partial::after {
    opacity: 1;
}

/* Carousel arrows container */
.project-testimonials__arrows {
    position: absolute;
    inset: 0;
    z-index: 40;
    pointer-events: none;
}

/* Carousel arrows */
.project-testimonials__arrow {
    position: absolute;
    z-index: 100;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(90, 90, 90, 0.68);
    cursor: pointer;
    pointer-events: auto;
    transform: translateY(-50%);
    transition:
        opacity 180ms ease,
        visibility 180ms ease,
        background-color 180ms ease;
}

.project-testimonials__arrow svg {
    display: block;
    width: 19px;
    height: 19px;
}

/* Arrow hover */
.project-testimonials__arrow:hover {
    background: rgba(55, 55, 55, 0.86);
}

/* Previous arrow */
.project-testimonials__arrow--prev {
    left: calc(-1 * var(--project-testimonials-left-offset) + 16px);
}

/* Next arrow */
.project-testimonials__arrow--next {
    right: 16px;
}

/* Disabled arrow */
.project-testimonials__arrow:disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Tablet */
@media (max-width: 1024px) {
    .project-testimonials-section {
        --project-testimonials-gap: 18px;
        --project-testimonials-left-offset: 24px;
    }

    .project-testimonials__card {
        min-height: 330px;
    }

    .project-testimonials__content {
        padding: 36px 30px 30px;
    }

    .project-testimonials__arrow {
        width: 42px;
        height: 42px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .project-testimonials-section {
        --project-testimonials-gap: 14px;
        --project-testimonials-left-offset: 30px;
    }

    .project-testimonials__card {
        min-height: 320px;
    }

    .project-testimonials__content {
        padding: 32px 24px 28px;
    }

    .project-testimonials__copy {
        font-size: 18px;
        line-height: 26px;
    }

    .project-testimonials__client {
        margin-top: 20px !important;
        font-size: 18px;
        line-height: 24px;
    }

    .project-testimonials__arrow {
        width: 38px;
        height: 38px;
    }

    .project-testimonials__arrow--prev {
        left: calc(-1 * var(--project-testimonials-left-offset) + 8px);
    }

    .project-testimonials__arrow--next {
        right: 8px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .project-testimonials__slide::after,
    .project-testimonials__arrow {
        transition: none;
    }
}