/**
 * Developer Testimonials Slider - Styles
 */

.testimonials-slider-wrapper {
    position: relative;
    padding: 0 60px;
}

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

.testimonials-slider {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease;
    gap: 20px;
}

.testimonial-card {
    flex: 0 0 auto;
    box-sizing: border-box;
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-content {
    flex: 1;
}

.testimonial-rating {
    margin-bottom: 12px;
}

.testimonial-rating i {
    font-size: 14px;
    margin-right: 2px;
}

.testimonial-heading {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px;
    line-height: 1.4;
}

.testimonial-text {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
}

.testimonial-text p {
    margin: 0;
}

.testimonial-date {
    font-size: 13px;
    color: #666;
    margin: 0 0 5px;
}

.testimonial-date strong {
    color: #333;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #eee;
}

.testimonial-client {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.testimonial-source {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    background: #e8f4fc;
    color: #0077c2;
}

.testimonial-source.upwork {
    background: #14a800;
    color: #fff;
}

.testimonial-source.fiverr {
    background: #1dbf73;
    color: #fff;
}

.testimonial-source.linkedin {
    background: #0077b5;
    color: #fff;
}

.testimonial-source.google {
    background: #ea4335;
    color: #fff;
}

.testimonial-source.direct {
    background: #6c757d;
    color: #fff;
}

/* Slider Navigation - shared with projects */
.testimonials-slider-wrapper .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
    color: #333;
}

.testimonials-slider-wrapper .slider-nav:hover {
    background: #0077c2;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.testimonials-slider-wrapper .slider-nav.prev {
    left: 5px;
}

.testimonials-slider-wrapper .slider-nav.next {
    right: 5px;
}

/* Slider Dots */
.testimonials-slider-wrapper .slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 25px;
}

.testimonials-slider-wrapper .slider-dot {
    width: 12px;
    height: 12px;
    background: #ddd;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.testimonials-slider-wrapper .slider-dot.active,
.testimonials-slider-wrapper .slider-dot:hover {
    background: #0077c2;
    transform: scale(1.2);
}


/* Responsive */
@media (max-width: 991px) {
    .testimonials-slider-wrapper {
        padding: 0 50px 10px;
    }

    .testimonials-slider-wrapper .slider-nav.prev {
        left: 2px;
    }

    .testimonials-slider-wrapper .slider-nav.next {
        right: 2px;
    }
}

@media (max-width: 767px) {
    .testimonials-slider-wrapper {
        padding: 0 45px;
        height: fit-content !important;
        min-height: auto !important;
    }

    .testimonials-slider-wrapper .slider-viewport {
        overflow: hidden;
        height: fit-content !important;
        min-height: auto !important;
        max-height: 400px;
    }

    .testimonials-slider {
        gap: 15px;
        align-items: flex-start !important;
        height: fit-content !important;
        max-height: 400px;
    }

    .testimonials-slider-wrapper .testimonial-card,
    .testimonial-card.slide {
        padding: 20px !important;
        height: fit-content !important;
        min-height: auto !important;
        max-height: 380px;
        overflow-y: auto;
        flex: 0 0 auto !important;
        align-self: flex-start !important;
        display: block !important;
    }

    .testimonial-card .testimonial-content {
        flex: none !important;
        display: block !important;
    }

    .testimonials-slider-wrapper .slider-nav {
        width: 36px;
        height: 36px;
        font-size: 14px;
        top: 50%;
        transform: translateY(-50%);
    }

    .testimonials-slider-wrapper .slider-nav.prev {
        left: 2px;
    }

    .testimonials-slider-wrapper .slider-nav.next {
        right: 2px;
    }

    .testimonial-text {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .testimonial-heading {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .testimonial-footer {
        display: flex;
        padding-top: 12px;
        margin-top: 12px;
    }

    .testimonials-slider-wrapper .slider-dots {
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .testimonial-card::before {
        display: none !important;
    }
}
