/* ================================ */
/* ✅ RESPONSIVE BOOTSTRAP CAROUSEL */
/* CSS-ONLY (no JS)                 */
/* ================================ */

/* ------- Base (desktop/tablet) ------- */
.carousel-item {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.carousel-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* may crop */
    object-position: center;
}

/* Controls & indicators */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, .5);
    border-radius: 50%;
    z-index: 10;
    opacity: .8;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 16px;
    height: 16px;
    background-size: 16px 16px;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-indicators {
    bottom: 10px;
    margin: 0;
    justify-content: center;
    padding-left: 0;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    margin: 0 4px;
    border-radius: 50%;
    background: #ccc;
    opacity: .6;
    border: 0;
}

.carousel-indicators button.active {
    background: #fff;
    opacity: 1;
}

/* Captions */
.carousel-caption {
    left: 5%;
    right: 5%;
    bottom: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, .3);
    border-radius: 4px;
    text-align: center;
}

.carousel-caption h1,
.carousel-caption h2 {
    font-size: 24px !important;
    line-height: 32px !important;
}

.carousel-caption p {
    font-size: 16px !important;
    line-height: 24px !important;
}

/* ------- Medium screens (≤768px) ------- */
@media (max-width: 768px) {

    .carousel-inner::before,
    .carousel-inner::after {
        display: none !important;
        content: none !important;
    }

    .carousel-inner {
        height: auto !important;
        overflow: hidden;
        min-height: 200px;
    }

    .carousel-item {
        height: 70vh;
        /* still hero-like but shorter */
    }

    .carousel-caption h1,
    .carousel-caption h2 {
        font-size: 20px !important;
        line-height: 28px !important;
    }

    .carousel-caption p {
        font-size: 14px !important;
        line-height: 20px !important;
    }
}

/* ------- Small phones (≤430px wide) ------- */
/* Show entire image: no crop */
@media (max-width: 430px) {
    .carousel-item {
        height: auto;
        /* let it expand */
    }

    .carousel-item img {
        position: static;
        width: 100%;
        height: auto;
        object-fit: contain;
        /* no cropping */
        object-position: center;
    }
}