/* Testimonials Carousel Styles */
.testimonial-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 15px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.testimonial-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Testimonial text styling for proper word wrap */
.testimonial-text {
    word-wrap: normal;
    word-break: keep-word;
    hyphens: manual;
    overflow-wrap: normal;
    white-space: normal;
    line-height: 1.6;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-text .pix_edit_text {
    display: inline-block;
    width: 100%;
    word-wrap: normal;
    word-break: keep-word;
    overflow-wrap: normal;
    white-space: normal;
    line-height: 1.6;
}

.testimonial-slide .pix-margin-v-30 {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

.testimonial-slide .big-text-20 {
    font-size: 18px;
    line-height: 1.6;
    word-wrap: normal;
    word-break: keep-word;
    overflow-wrap: normal;
    hyphens: manual;
    white-space: normal;
    max-width: 100%;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(118, 75, 162, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-nav:hover {
    background: rgba(118, 75, 162, 1);
    transform: translateY(-50%) scale(1.1);
}

.testimonial-nav.prev {
    left: 10px;
}

.testimonial-nav.next {
    right: 10px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(118, 75, 162, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: rgba(118, 75, 162, 1);
    transform: scale(1.2);
}

.testimonial-dot:hover {
    background: rgba(118, 75, 162, 0.7);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonial-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .testimonial-nav.prev {
        left: 5px;
    }

    .testimonial-nav.next {
        right: 5px;
    }

    .testimonial-slide {
        padding: 0 10px;
    }

    .testimonial-text {
        padding: 0 15px;
    }

    .testimonial-slide .pix-margin-v-30 {
        padding: 0 15px;
    }

    .testimonial-slide .big-text-20 {
        font-size: 16px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .testimonial-text {
        padding: 0 10px;
    }

    .testimonial-slide .pix-margin-v-30 {
        padding: 0 10px;
    }

    .testimonial-slide .big-text-20 {
        font-size: 14px;
        line-height: 1.4;
    }
}

/* Back to Top Button Styles */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(118, 75, 162, 0.8);
    color: white;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.3);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: rgba(118, 75, 162, 1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4);
    color: white;
    text-decoration: none;
}

.back-to-top-btn:focus {
    outline: none;
    color: white;
    text-decoration: none;
}

/* Responsive adjustments for back to top button */
@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .back-to-top-btn i {
        font-size: 40px !important;
    }
}

@media (max-width: 480px) {
    .back-to-top-btn {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .back-to-top-btn i {
        font-size: 35px !important;
    }
}