/* Testimonial Swiper Plugin Styles - Based on Original WOCS Design */
/* Using unique prefixes to avoid conflicts with other Swiper plugins */

/* Wrapper to ensure proper containment */
.testimonial-swiper-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
}

/* Swiper Container - Unique naming to avoid conflicts */
.testimonial-gallery-swiper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 20px;
    overflow: visible;
}

.testimonial-gallery-swiper .swiper-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.testimonial-gallery-swiper .swiper-3d {
   perspective: 1200px;
}
/* Individual Slides - Calculated for 3 slides */
.testimonial-gallery-swiper .swiper-slide {
    width: 100% !important;
    max-width: none;
    min-width: auto;
    flex-shrink: 0;
}

/* Testimonial Cards - Exact match to original .wocs */
.testimonial-card {
    background-image: url('../images/chatbox_bg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    color: #333;
    padding: 30px;
    position: relative;
    min-height: 400px;
    width: 100%;
}

/* Date styling - Matches original .wocs-date */
.testimonial-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    position: absolute;
    top: 110px;
    right: 50px;
}

/* Name styling - Matches original .wocs-content h4 */
.testimonial-content h4 {
    color: var(--sf-primary-blue);
    font-size: 1.2em;
    margin-bottom: 10px;
    font-family: 'ITCAvantGardeStd-Bold';
    position: absolute;
    top: 100px;
    left: 40px;
}

/* Content styling - Matches original .wocs-content p */
.testimonial-content p {
    font-size: 18px;
    line-height: 26px;
    color: #555;
    position: absolute;
    top: 140px;
    left: 50px;
    max-width: 280px;
    text-align: left;
    margin: 0;
}

/* Navigation Arrows - Now in testimonial-nav */
.testimonial-nav .swiper-button-next,
.testimonial-nav .swiper-button-prev {
    background: var(--sf-primary-red);
    color: #FFFFFF;
    border: none;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    transition: all 0.3s;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin: 0;
    z-index: 2;
}

.testimonial-nav .swiper-button-next:after,
.testimonial-nav .swiper-button-prev:after {
    font-size: 30px;
    font-weight: bold;
    color: #FFFFFF;
}

.testimonial-nav .swiper-button-next:hover,
.testimonial-nav .swiper-button-prev:hover {
    background: var(--sf-primary-red);
    transform: scale(1.1);
}

/* Keep solid color when disabled but show not-allowed cursor */
.testimonial-nav .swiper-button-disabled {
    opacity: 1 !important;
    background: var(--sf-primary-red) !important;
    cursor: not-allowed !important;
    pointer-events: auto !important;
}

.testimonial-nav .swiper-button-disabled:hover {
    cursor: not-allowed !important;
    transform: none !important;
}

/* Navigation section - Matches original .wocs-nav */
.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
    padding: 30px 0;
}

.testimonial-nav span {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--sf-primary-yellow);
    text-align: center;
}

/* More Review button - Matches original styling */
.testimonial-more-review {
    color: var(--sf-primary-yellow);
    background: none;
    border: none;
    padding: 0px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: font-size 0.3s ease;
}

.testimonial-more-review:hover {
    font-size: 1.2rem;
}

/* Swiper specific adjustments to maintain original layout */
.testimonial-gallery-swiper .swiper-slide {
    opacity: 1 !important;
    transform: none !important;
}

.testimonial-gallery-swiper .swiper-slide-shadow-left,
.testimonial-gallery-swiper .swiper-slide-shadow-right {
    display: none !important;
}

/* Ensure all slides are the same size */
.testimonial-gallery-swiper .swiper-slide-active,
.testimonial-gallery-swiper .swiper-slide-next,
.testimonial-gallery-swiper .swiper-slide-prev {
    transform: none !important;
}

/* Responsive Design - Optimized for 3 slides */
@media (max-width: 1024px) {
    .testimonial-gallery-swiper {
        max-width: 900px;
        padding: 0 15px;
    }
    
    .testimonial-gallery-swiper .swiper-slide {
        width: 100% !important;
        max-width: none;
        min-width: auto;
    }
    
    .testimonial-card {
        min-height: 350px;
        padding: 25px;
    }
    
    .testimonial-content h4 {
        top: 80px;
        left: 30px;
        font-size: 1.1em;
    }
    
    .testimonial-content p {
        top: 110px;
        left: 20px;
        max-width: 160px;
        font-size: 12px;
    }
    
    .testimonial-date {
        top: 90px;
        right: 30px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .testimonial-gallery-swiper {
        max-width: 700px;
        padding: 0 10px;
    }
    
    .testimonial-gallery-swiper .swiper-slide {
        /*width: calc(33.333% - 10px) !important;*/
        max-width: 220px;
        min-width: 200px;
    }
    
    .testimonial-card {
        min-height: 320px;
        padding: 20px;
    }
    
    .testimonial-content h4 {
        font-size: 1em;
        top: 70px;
        left: 25px;
    }
    
    .testimonial-content p {
        font-size: 11px;
        line-height: 20px;
        top: 100px;
        left: 15px;
        max-width: 140px;
    }
    
    .testimonial-date {
        top: 80px;
        right: 25px;
        font-size: 10px;
    }
    
    .testimonial-nav .swiper-button-next,
    .testimonial-nav .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-nav .swiper-button-next:after,
    .testimonial-nav .swiper-button-prev:after {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .testimonial-gallery-swiper {
        max-width: 460px;
        padding: 0 5px;
    }
    
    .testimonial-gallery-swiper .swiper-slide {
        width: calc(33.333% - 5px) !important;
        max-width: 150px;
        min-width: 140px;
    }
    
    .testimonial-card {
        min-height: 280px;
        padding: 15px;
    }
    
    .testimonial-content h4 {
        font-size: 0.9em;
        top: 60px;
        left: 20px;
    }
    
    .testimonial-content p {
        font-size: 10px;
        line-height: 18px;
        top: 85px;
        left: 10px;
        max-width: 110px;
    }
    
    .testimonial-date {
        top: 70px;
        right: 20px;
        font-size: 9px;
    }
    
    .testimonial-nav .swiper-button-next,
    .testimonial-nav .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    .testimonial-nav .swiper-button-next:after,
    .testimonial-nav .swiper-button-prev:after {
        font-size: 12px;
    }
}