.cpv-case-studies-wrapper {
    margin: 20px auto;
    max-width: 1200px;
}

/* CPV Slider Container */
.cpv-swiper-container {
    width: 100%;
    overflow: hidden;
}

/* Custom slider wrapper */
.cpv-swiper-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}

/* Each slide using our custom class */
.cpv-swiper-slide {
    padding: 20px;
    background: #fff;  /* Default—overridable via Elementor controls */
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    flex-shrink: 0;
    width: 100%;
}

/* Slide title styling */
.slide-title {
    text-align: center;
    margin-bottom: 15px;
}

/* Cases displayed as a single horizontal row */
.cases-wrapper {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
}

/* Case card styling – each card flexes to share available space evenly */
.case-study-card {
    flex: 1 1 0;
    min-width: 0;
    margin: 0 10px;
    border: 1px solid #ddd;
    padding: 15px;
    background: #fafafa;  /* Default—overridable via controls */
    box-sizing: border-box;
}

/* Case title styling */
.case-study-card .card-title {
    margin: 0 0 10px;
    font-size: 1.2em;
}

/* Spacing for before/after container */
.before-after-wrapper {
    margin-bottom: 10px;
}

/* TwentyTwenty container styling */
.twentytwenty-container {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 10;
}

/* Navigation Styles */
.cpv-swiper-button-prev,
.cpv-swiper-button-next {
    color: #333;
}

.cpv-swiper-pagination .swiper-pagination-bullet {
    background-color: #333;
    font-size: 30px;
}

/* Increase bullet size */
.cpv-swiper-pagination .swiper-pagination-bullet {
    width: 12px;   /* Increase width */
    height: 12px;  /* Increase height */
    margin: 0 4px; /* Adjust spacing between bullets */
    border-radius: 50%; /* Ensure bullets remain circular */
}

/* Center the pagination container */
.cpv-swiper-pagination {
    text-align: center;
    margin-top: 10px;  /* Optional: add some spacing above the bullets */
}


@media only screen and (max-width: 767px) {
    .cases-wrapper {
        flex-wrap: wrap;
        overflow-x: visible;
    }
    
    .case-study-card {
        flex: 0 0 100%;
        margin: 10px 0; /* Adjust vertical margin as needed */
    }
}

