.vc-services-carousel-manual-widget-container .vc-services-carousel-box {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.vc-services-carousel-manual-widget-container .vc-services-carousel-box.is-ready {
    opacity: 1;
    visibility: visible;
}

.vc-services-manual-carousel {
    overflow: hidden;
    width: 100%;
}

.vc-services-manual-carousel:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--vc-services-gap, 10px);
}

.vc-services-manual-carousel:not(.swiper-initialized) .swiper-slide {
    flex: 0 0 calc(100% / var(--vc-services-spv, 1.2));
    width: calc(100% / var(--vc-services-spv, 1.2));
    max-width: calc(100% / var(--vc-services-spv, 1.2));
    min-width: 0;
}

@media (min-width: 768px) {
    .vc-services-manual-carousel:not(.swiper-initialized) .swiper-slide {
        flex: 0 0 calc(100% / var(--vc-services-spv-md, 1.5));
        width: calc(100% / var(--vc-services-spv-md, 1.5));
        max-width: calc(100% / var(--vc-services-spv-md, 1.5));
    }
}

@media (min-width: 1024px) {
    .vc-services-manual-carousel:not(.swiper-initialized) .swiper-slide {
        flex: 0 0 calc(100% / var(--vc-services-spv-lg, 2.5));
        width: calc(100% / var(--vc-services-spv-lg, 2.5));
        max-width: calc(100% / var(--vc-services-spv-lg, 2.5));
    }
}

.vc-services-manual-carousel .vc-services-media,
.vc-services-manual-carousel .vc-slide-inner-wrapper.vc-services-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: var(--vc-services-aspect, 4 / 5);
    background-color: #f3f4f6;
}

.vc-services-manual-carousel .vc-services-media .vc-slide-bg-image,
.vc-services-manual-carousel .vc-slide-inner-wrapper.vc-services-media .vc-slide-bg-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
}

/* Services Carousel Manual Widget Styles */

/* Hide default Swiper elements that we are overriding or don't want */
.vc-services-carousel-manual-widget .swiper-button-next,
.vc-services-carousel-manual-widget .swiper-button-prev {
   background: transparent;
   display: none; /* We use custom buttons outside */
}

/* Custom controls styling helper if needed, though Tailwind handles most */
.vc-services-manual-controls-wrapper .swiper-button-next, 
.vc-services-manual-controls-wrapper .swiper-button-prev {
     display: flex;
     position: static; /* Override swiper absolute positioning */
     width: auto;
     height: auto;
     margin: 0;
     color: inherit;
}

.vc-services-manual-controls-wrapper .swiper-button-next::after, 
.vc-services-manual-controls-wrapper .swiper-button-prev::after {
    display: none; /* Hide default Swiper arrows content property */
}

.vc-services-carousel-manual-widget-container {
    position: relative;
    padding-bottom: 0;
}

/* Swiper Slide Sizing */
.vc-services-carousel-manual-widget .swiper-slide {
    height: auto;
}

/* Pagination specific tweaks */
.vc-services-manual-controls-wrapper .swiper-pagination-fraction {
    position: static;
    width: auto;
    bottom: auto;
    left: auto;
    line-height: 1;
}

.vc-slide-action-link {
    border-bottom: 1px solid #fff;
    padding-bottom: 2px;
    line-height: 1.2;
}
.vc-slide-action-link:hover {
    border-bottom: 1px solid #fff;
    color: #fff;
    opacity: 0.8;
}

/* Ensure the swiper container allows for content/buttons around it */
.vc-services-carousel-manual-widget {
     overflow: visible; 
}

/* Match the padding/layout of the original widget */
.vc-services-carousel-box {
    position: relative;
    overflow: visible;
    padding-bottom: 3.5rem;
}

.vc-manual-controls-wrapper,
.vc-services-manual-controls-wrapper {
    position: absolute;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
}

.vc-manual-controls-wrapper .vc-manual-button-prev,
.vc-manual-controls-wrapper .vc-manual-button-next,
.vc-services-manual-controls-wrapper .swiper-button-next,
.vc-services-manual-controls-wrapper .swiper-button-prev {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    min-height: 1.5rem;
    flex-shrink: 0;
}

.vc-manual-controls-wrapper svg,
.vc-services-manual-controls-wrapper svg {
    stroke: #000000;
    color: #000000;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.vc-manual-controls-wrapper .swiper-pagination-fraction,
.vc-services-manual-controls-wrapper .swiper-pagination-fraction {
    position: static;
    width: auto;
    line-height: 1;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .vc-services-carousel-box {
        padding-bottom: 3rem;
    }
}
