/* --- Card Carousel Scoped Styles --- */

.card-carousel-wrapper {
    width: 100%;
    padding: 50px 0;
    margin: 75px 0;
    background-position: center center;
    background-size: cover;
    position: relative;
    box-sizing: border-box; /* Good practice */
}

.card-carousel-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.card-carousel-wrapper .card-carousel-container {
    max-width: var(--site-container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.card-carousel-wrapper .card-carousel-heading {
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
    font-family: inherit;
    font-size: 2.5rem;
}

.card-carousel-wrapper .card-carousel-card {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    padding: 25px;
    color: #000;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
}

.card-carousel-wrapper .card-carousel-card p {
    margin: 0;
}

.card-carousel-wrapper .card-text-left {
    text-align: left;
    margin-bottom: 20px;
}

.card-carousel-wrapper .card-text-right {
    text-align: right;
    margin-top:10px !important;
}

/* --- Scoped Splide Styles --- */
/* Now these styles will ONLY affect Splide sliders inside our element */

.card-carousel-wrapper .card-carousel-slider.splide {
    min-height: 150px;
    padding: 0 60px;
}

.card-carousel-wrapper .splide__slide {
    padding: 0 10px;
}

.card-carousel-wrapper .splide__arrow {
    position: absolute !important;
    top: 50% !important;
    z-index: 1 !important;
    background: transparent;
    opacity: 0.7;
    width: 40px !important;
    height: 40px !important;
}

.card-carousel-wrapper .splide__arrow:hover {
    opacity: 1;
}

.card-carousel-wrapper .splide__arrow svg {
    fill: #fff;
    width: 24px !important;
    height: 24px !important;
}

.card-carousel-wrapper .splide__arrow--prev {
    left: 10px !important;
    transform: translateY(-50%) scaleX(-1) !important;
}

.card-carousel-wrapper .splide__arrow--prev svg {
    transform: none !important;
}

.card-carousel-wrapper .splide__arrow--next {
    right: 10px !important;
    transform: translateY(-50%) !important;
}

.card-carousel-wrapper .cc-no-items-placeholder {
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
}

@media (max-width: 767px) {
    .card-carousel-wrapper .card-carousel-slider.splide {
        padding: 0 40px;
    }

    .card-carousel-wrapper .splide__arrow--prev {
        left: -5px !important;
    }

    .card-carousel-wrapper .splide__arrow--next {
        right: -5px !important;
    }

    .card-carousel-wrapper{
         margin-bottom:15px !important
}

}