/* Testimonial Widget Styles */
.testimonial-scroll-outer {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Crucial for hiding the overflowing track initially */
}

.testimonials-wrapper {
    position: sticky;
    top: 0;
}

.testimonial-scroll-inner {
    /* IMPORTANT: Removed position: sticky and top: 0; */
    /* The JS handles the "stickiness" by controlling the outer container\'s height */
    height: 100vh;
    /* The visible height of the "sticky" section */
    display: flex;
    flex-direction: column;
    /* Stacks title above track */
    justify-content: flex-start;
    /* background: #f9f9f9; */
    z-index: 10;
    /* Ensure it stays above other content if needed */
    padding: 2rem 1rem;
    box-sizing: border-box;
    width: 100%;
    /* Ensure it takes full available width */
}

.testimonial-scroll-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 2rem;
    flex-shrink: 0;
    /* Prevent the title from shrinking */
}

.testimonial-scroll-track-wrapper {
    overflow-x: hidden;
    /* Hides the native horizontal scrollbar for the track */
    flex-grow: 1;
    /* Allows the wrapper to take up remaining vertical space */
    display: flex;
    /* Helps ensure the track fills its wrapper vertically */
    align-items: center;
    /* Vertically centers the track if its content is shorter than wrapper */
}

.testimonial-scroll-track {
    display: flex;
    /* Lays out slides horizontally */
    gap: 2rem;
    /* Space between slides */
    transition: transform 0.1s linear;
    /* Smoothness of the horizontal scroll animation */
    will-change: transform;
    /* Performance hint for browser */
    height: auto;
    /* Allow track height to adjust to slide content */
}

.testimonial-slide {
    flex: 0 0 100vw;
    /* Each slide takes full viewport width as per original design */
    box-sizing: border-box;
    padding: 1rem;
    text-align: center; 
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    /* Flexbox for centering content within the slide */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    /* Allow content to dictate slide height */
    min-height: 200px;
    /* Optional: ensure minimum height for slides */
}

.testimonial-img img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    display: block;
    /* Remove extra space below image */
}

.testimonial-content p {
    font-style: italic;
    color: #444;
    max-width: 500px;
    margin: 0 auto 10px;
}

.testimonial-content strong {
    display: block;
    color: #111;
    font-size: 16px;
    margin-top: 10px;
}

.testimonial-progress-bar {
    position: fixed;
    /* Stays fixed relative to the viewport */
    top: 0;
    left: 0;
    height: 4px;
    background: #0073aa;
    width: 0;
    /* Will be updated by JS */
    z-index: 9999;
    /* Ensures it\'s on top of everything */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .testimonial-scroll-inner {
        padding: 1.5rem 0.75rem;
    }

    .testimonial-scroll-title {
        font-size: 20px;
        margin-bottom: 1.5rem;
    }

    /* If you want slides to take less than 100vw on small screens, adjust this: */
    /* .testimonial-slide { flex: 0 0 90vw; } */
    /* But remember to adjust JS `scrollLength` calculation if you change this to a percentage of parent */
}