#service-carousel {
    width: 100%;
    position: relative;
    padding-bottom: 60px;
    /* Space for dots */
}

#service-carousel .item {
    display: block;
    width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
}

#service-carousel .card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0 auto;
    max-width: 100%;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#service-carousel .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

#service-carousel .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* padding: 1.5rem; */
}

#service-carousel {
    position: relative;
    padding-bottom: 50px;
    /* Space for dots */
}

/* Active carousel item */
#service-carousel .owl-item.active {
    opacity: 1;
}

#service-carousel .owl-stage-outer {
    padding: 20px 0 0px !important;
    margin: 0 -5px;
    overflow: hidden !important;
    width: calc(100% + 10px);
    -webkit-overflow-scrolling: touch;
}

/* Ensure consistent card width */
#service-carousel .owl-item {
    padding: 0 10px;
    box-sizing: border-box;
}

#service-carousel .owl-stage {
    display: flex;
    /* width: 100% !important; */
    margin: 0 auto;
    padding: 10px 5px;
    /* transform: translate3d(0px, 0px, 0px) !important;
    -webkit-transform: translate3d(0, 0, 0) !important; */
}

#service-carousel .owl-item {
    display: flex;
    padding: 5px;
    box-sizing: border-box;
}

/* Navigation arrows */
#service-carousel .owl-nav {
    position: absolute;
    top: -50px;
    right: 0;
    display: none;
    /* Hide by default, will be shown on larger screens via media query */
}

#service-carousel .owl-nav button {
    background: var(--color-primary) !important;
    color: white !important;
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    margin: 0 5px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    display: none !important;
}

/* Style dots */
#service-carousel .owl-dots {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 15px 0 !important;
    z-index: 10 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    height: 40px !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent;
}

/* Force dots to be visible */
.owl-carousel.owl-loaded .owl-dots,
.owl-carousel.owl-loaded .owl-dots.owl-dots-visible {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#service-carousel .owl-dot {
    display: inline-block !important;
    zoom: 1;
    margin: 0 5px;
    vertical-align: middle;
}

#service-carousel .owl-dot {
    margin: 0 4px;
}

#service-carousel .owl-dot span {
    width: 10px !important;
    height: 10px !important;
    margin: 0 !important;
    background: #d6d6d6 !important;
    display: block !important;
    transition: all 0.3s;
    border-radius: 50% !important;
    opacity: 0.7 !important;
    transform: scale(1);
}

#service-carousel .owl-dot.active span,
#service-carousel .owl-dot:hover span {
    background: var(--color-primary) !important;
    transform: scale(1.3);
    opacity: 1 !important;
}

@media (max-width: 480px) {
    #service-carousel .owl-nav {
        display: block;
        /* Show on tablet and up */
    }

    #service-carousel .owl-stage-outer {
        padding: 20px 0 1px !important;
        margin: 0 -5px;
        overflow: hidden !important;
        width: calc(100% + 10px);
        -webkit-overflow-scrolling: touch;
    }

    .lead {
        margin-bottom: 0 !important;
    }

    .about-section .lead {
        margin-bottom: 1.4em !important;
    }

}