/* --- Minimal Bootstrap Carousel CSS (corrected full version) --- */

/* Responsive images */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Carousel wrapper */
.carousel {
    position: relative;
}

/* Carousel inner container */
.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Carousel items */
.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
}

    .carousel-item.active,
    .carousel-item-next,
    .carousel-item-prev {
        display: block;
    }

        /* NEXT: active slide goes left, new slide comes in from right */
        .carousel-item-next:not(.carousel-item-start),
        .active.carousel-item-end {
            transform: translateX(-100%);
        }

        /* PREV: active slide goes right, new slide comes in from left */
        .carousel-item-prev:not(.carousel-item-end),
        .active.carousel-item-start {
            transform: translateX(100%);
        }

/* Controls (prev/next buttons) */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
    padding: 0;
    color: #fff;
    text-align: center;
    background: none;
    border: 0;
    opacity: .5;
    transition: opacity 0.15s ease;
    z-index: 1;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        opacity: .9;
    }

.carousel-control-prev {
    left: 0;
}

.carousel-control-next {
    right: 0;
}

/* Control icons */
/* Carousel control icons (match stock Bootstrap) */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background: no-repeat 50% / 100% 100%;
}

/* Left arrow (prev) */
.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

/* Right arrow (next) */
.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3e%3cpath d='M4.646 1.646a.5.5 0 0 0 0 .708L10.293 8l-5.647 5.646a.5.5 0 0 0 .708.708l6-6a.5.5 0 0 0 0-.708l-6-6a.5.5 0 0 0-.708 0z'/%3e%3c/svg%3e");
}


/* Indicators (dots) */
.carousel-indicators {
    position: absolute;
    right: 0;
    bottom: 1rem;
    left: 0;
    z-index: 15;
    display: flex;
    justify-content: center;
    padding-left: 0;
    margin-right: 15%;
    margin-left: 15%;
    list-style: none;
}

    .carousel-indicators [data-bs-target] {
        box-sizing: content-box;
        flex: 0 1 auto;
        width: 30px;
        height: 3px;
        margin-right: 3px;
        margin-left: 3px;
        cursor: pointer;
        background-color: #fff;
        background-clip: padding-box;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        opacity: .5;
        transition: opacity 0.6s ease;
    }

    .carousel-indicators .active {
        opacity: 1;
    }

/* Accessibility helper */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


