/* Carousel styles */
.carousel-card {
    height: 250px;
    /* Fixed height to match image height */
    overflow: hidden;
    position: relative;
    padding: 0;
}

.carousel-slide {
    display: none;
    /* Hidden by default */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide.active {
    display: block;
    /* Show active slide */
    z-index: 10;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Caption styling inheritance is good, but ensure it sits on top */
.carousel-slide .caption {
    z-index: 20;
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    z-index: 30;
    line-height: 1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.carousel-nav:hover {
    background-color: rgba(226, 35, 34, 0.9);
    /* Hoke Red */
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}