.image-carousel {
    padding: 40px 0 90px;
    position: relative;
}

/* Border styles with responsive padding to match container */
.image-carousel.border-top {
    padding-top: 90px;
}

.image-carousel.border-top::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 60px;
    right: 60px;
    height: 2px;
    background-color: #05ACDD;
    max-width: 1410px;
    margin: 0 auto;
}

.image-carousel.border-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 60px;
    right: 60px;
    height: 2px;
    background-color: #05ACDD;
    max-width: 1410px;
    margin: 0 auto;
}

.image-carousel.border-both {
    padding-top: 90px;
}

.image-carousel.border-both::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    height: 2px;
    background-color: #05ACDD;
}

.image-carousel.border-both::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 60px;
    right: 60px;
    height: 2px;
    background-color: #05ACDD;
}

/* Splide Core Styles */
.splide {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.splide__track {
    overflow: hidden;
    margin-left: 70px;
    margin-right: 70px;
}

.splide__list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.splide__slide {
    flex-shrink: 0;
    padding: 0 5px;
    box-sizing: border-box;
}

.image-carousel__slide-content {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.image-carousel__image {
    width: 80%;
    height: auto;
    margin: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.image-carousel__slide-content:hover .image-carousel__image {
    transform: scale(1.05);
}

/* Custom Arrow Styles */
.splide__arrow {
    align-items: center !important;
    background: transparent !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    display: -ms-flexbox !important;
    display: flex !important;
    height: 3rem !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    padding: 0 !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 3rem !important;
    z-index: 1 !important;
    transition: all 0.3s ease;
}

.splide__arrow svg {
    height: 100% !important;
    width: auto !important;
    transition: all 0.3s ease;
}

.splide__arrow svg path {
    fill: #05ACDD !important;
    transition: all 0.3s ease;
}

.splide__arrow:hover svg path {
    fill: #36C166 !important;
}

.splide__arrow--prev {
    left: 10px !important;
}

.splide__arrow--next {
    right: 10px !important;
}

/* Custom Pagination Styles */
.splide__pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 0 0;
    padding: 0;
    list-style: none;
}

.splide__pagination__page {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.splide__pagination__page:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.2);
}

.splide__pagination__page.is-active {
    background: #007cba;
    transform: scale(1.3);
}

/* Responsive Design */
@media (max-width: 1440px) {
    .image-carousel.border-top::before,
    .image-carousel.border-bottom::after,
    .image-carousel.border-both::before,
    .image-carousel.border-both::after {
        left: 45px;
        right: 45px;
    }
    
    .splide__arrow {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 1024px) {
    
    .splide__arrow {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 768px) {
    .image-carousel.border-top::before,
    .image-carousel.border-bottom::after,
    .image-carousel.border-both::before,
    .image-carousel.border-both::after {
        left: 45px;
        right: 45px;
    }
    .splide__arrow {
        width: 35px !important;
        height: 35px !important;
    }
    .image-carousel {
        padding: 30px 0 60px;
    }
    
    .image-carousel.border-top {
        padding-top: 80px;
    }
    
    .image-carousel.border-top::before,
    .image-carousel.border-both::before {
        top: 30px;
    }
}

@media (max-width: 660px) {
.image-carousel.border-top::before,
.image-carousel.border-bottom::after,
.image-carousel.border-both::before,
.image-carousel.border-both::after {
    left: 30px;
    right: 30px;
}
}

@media (max-width: 480px) {
    .splide__arrow {
        width: 30px !important;
        height: 30px !important;
    }

    .splide__arrow svg {
        height: 100% !important;
        width: auto !important;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .image-carousel__image,
    .splide__arrow,
    .splide__pagination__page {
        transition: none;
    }
}