/* Styles for the Physiotherapy Testimonials Slider Plugin */

/* Base Section wrapper */
.physio-testimonials-slider-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: transparent;
    box-sizing: border-box;
}

/* Viewport Container containing the fades, buttons, and track */
.physio-testimonial-viewport-container {
    position: relative;
    width: 100%;
    overflow: visible;
}

/* Scroll Viewport */
.physio-testimonial-viewport {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    scroll-snap-type: x mandatory;
}

.physio-testimonial-viewport::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

/* Track holding the cards */
.physio-testimonial-track {
    display: flex;
    padding: 20px 0; /* Add top/bottom padding so shadow/border doesn't clip */
    gap: 150px; /* Space between cards */
}

/* Card Styling */
.physio-testimonial-card {
    display: flex;
    width: 977px;
    flex-shrink: 0;
    align-items: center;
    gap: 40px;
    background: transparent;
    box-sizing: border-box;
    text-decoration: none; /* If clickable link anchor */
    color: inherit;
    outline: none;
    scroll-snap-align: center;
}

.physio-testimonial-card.physio-testimonial-clickable {
    cursor: pointer;
}

/* Card Image Wrapper & Image */
.physio-testimonial-image-wrapper {
    width: 296px;
    height: 300px;
    flex-shrink: 0;
    border-radius: 30px;
    overflow: hidden;
    background-color: #E2ECE9;
}

.physio-testimonial-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card Content Area */
.physio-testimonial-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

/* Star Rating SVG styling */
.physio-stars-container {
    display: flex;
    gap: 4px;
}

.physio-star-icon {
    width: 17px;
    height: 17px;
}

/* Review description text */
.physio-testimonial-review {
    color: var(--Black, #010101);
    font-family: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 136%; /* 27.2px */
    letter-spacing: 0.2px;
    text-align: left;
    margin: 0;
    width: 95%;
}

/* Meta Wrapper */
.physio-testimonial-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

/* Author Name */
.physio-testimonial-author {
    color: var(--Black, #010101);
    font-family: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 110%; /* 19.8px */
    text-transform: capitalize;
}

/* Designation / Location */
.physio-testimonial-designation {
    color: var(--Black, #010101);
    font-family: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 110%; /* 17.6px */
}

/* Navigation Controls Container (Absolute Overlay on Desktop) */
.physio-testimonial-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 0;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through to viewport */
}

/* Navigation Arrow Buttons */
.physio-testimonials-slider-section .physio-testimonial-nav-btn {
    pointer-events: auto; /* Re-enable pointer events for buttons */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    padding: 21px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-radius: 40px;
    background: var(--Army-Green, #0F3C2F);
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease, background-color 0.3s ease;
    box-shadow: none;
    outline: none;
    box-sizing: border-box;
}

.physio-testimonials-slider-section .physio-testimonial-nav-btn svg {
    display: block;
    width: 20px;
    height: 14px;
}

/* Position Left and Right buttons to center exactly on card edges mathematically */
.physio-testimonials-slider-section .physio-testimonial-prev {
    left: calc(50% - 574px);
}

.physio-testimonials-slider-section .physio-testimonial-next {
    right: calc(50% - 574px);
}

/* Specific Hover Style Overrides to block Astra Theme styles */
.physio-testimonials-slider-section .physio-testimonial-nav-btn:hover,
.physio-testimonials-slider-section .physio-testimonial-nav-btn:focus,
.physio-testimonials-slider-section .physio-testimonial-nav-btn:active {
    background-color: #0F3C2F;
    background: #0F3C2F;
    color: white;
    opacity: 0.95;
    outline: none;
    box-shadow: none;
    transform: translateY(-50%) scale(1.05);
}

.physio-testimonials-slider-section .physio-testimonial-nav-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    transform: translateY(-50%);
}

/* Side Fade Overlays (Width managed dynamically by JS) */
.physio-testimonial-fade-left,
.physio-testimonial-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 5;
    pointer-events: none;
}

.physio-testimonial-fade-left {
    left: 0;
    background: linear-gradient(90deg, #FFF 0%, rgba(255, 255, 255, 0.95) 51.13%, rgba(255, 255, 255, 0.50) 87.93%, rgba(255, 255, 255, 0.00) 100%);
}

.physio-testimonial-fade-right {
    right: 0;
    background: linear-gradient(270deg, #FFF 0%, rgba(255, 255, 255, 0.95) 51.13%, rgba(255, 255, 255, 0.50) 87.93%, rgba(255, 255, 255, 0.00) 100%);
}


/* RESPONSIVE DESIGN */

/* Large screens, laptops and tablets - adjust card width and keep buttons at edges */
@media screen and (max-width: 1250px) {
    .physio-testimonial-card {
        width: 977px;
        max-width: calc(100% - 180px); /* Leave 90px space on each side for buttons */
        gap: 35px;
    }
    
    .physio-testimonials-slider-section .physio-testimonial-prev {
        left: 30px;
    }
    
    .physio-testimonials-slider-section .physio-testimonial-next {
        right: 30px;
    }
}

/* Tablets and medium devices */
@media screen and (max-width: 1024px) {
    .physio-testimonial-track {
        gap: 40px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .physio-testimonial-card {
        width: 700px;
        max-width: 80%;
        gap: 30px;
    }

    .physio-testimonial-image-wrapper {
        width: 220px;
        height: 220px;
        border-radius: 20px;
    }

    .physio-testimonial-review {
        font-size: 18px;
    }
    
    .physio-testimonial-fade-left,
    .physio-testimonial-fade-right {
        display: none; /* Hide overlays for wider viewport utilization */
    }
}

/* Breakpoint 991px down to end - position both arrows centered on top, side-by-side */
@media screen and (max-width: 991px) {
    .physio-testimonial-controls {
        position: absolute;
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
        height: auto;
        display: flex;
        justify-content: center;
        gap: 20px;
        width: auto;
        pointer-events: none;
        z-index: 10;
    }

    .physio-testimonials-slider-section .physio-testimonial-nav-btn {
        position: static;
        transform: none;
        pointer-events: auto;
    }
    
    .physio-testimonials-slider-section .physio-testimonial-nav-btn:hover,
    .physio-testimonials-slider-section .physio-testimonial-nav-btn:focus,
    .physio-testimonials-slider-section .physio-testimonial-nav-btn:active {
        transform: scale(1.05);
    }

    .physio-testimonials-slider-section .physio-testimonial-nav-btn:disabled {
        transform: none;
    }

    .physio-testimonial-track {
        padding-top: 90px; /* Space on top of the card for the centered navigation arrows */
    }
    
    .physio-testimonial-fade-left,
    .physio-testimonial-fade-right {
        display: none;
    }
}

/* Mobile & portrait devices - stack card elements vertically */
@media screen and (max-width: 767px) {
    .physio-testimonial-track {
        gap: 20px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .physio-testimonial-card {
        width: calc(100vw - 30px);
        max-width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .physio-testimonial-image-wrapper {
        width: 100%;
        max-width: 296px;
        height: 250px;
        border-radius: 20px;
    }

    .physio-testimonial-content {
        width: 100%;
    }

    .physio-testimonial-review {
        font-size: 16px;
        line-height: 140%;
    }
}
