/* ================================
   SPORTS CAROUSEL
================================ */

/* Carousel Wrapper */
.sports-slider {
    position: relative;
    width: 100%;
}

/* Main Carousel Image */
.sport-img {
    height: 70vh;
    /* fixed height */
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s, filter 0.5s, opacity 0.5s;
}

/* Previous and Next slides (blurred look preview) */
.prev-slide .sport-img,
.next-slide .sport-img {
    transform: scale(0.85);
    filter: blur(4px);
    opacity: 0.6;
}

/* Title text on image */
.sport-title {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    z-index: 10;
    text-align: center;
    width: auto;
    padding: 0 10px;
}

/* Carousel Controls */
.carousel-control-next-icon,
.carousel-control-prev-icon {
    filter: drop-shadow(0px 0px 3px black);
}

/* Hide controls background */
.carousel-control-prev,
.carousel-control-next {
    background: transparent !important;
    width: 5%;
}

/* Hover effect on arrow */
.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 992px) {
    .sport-img {
        height: 60vh;
    }

    .sport-title {
        font-size: 26px;
        bottom: 18px;
    }
}

@media (max-width: 768px) {
    .sport-img {
        height: 45vh;
    }

    .sport-title {
        font-size: 20px;
        bottom: 12px;
    }
}

@media (max-width: 480px) {
    .sport-img {
        height: 38vh;
    }

    .sport-title {
        font-size: 18px;
        bottom: 10px;
    }
}


.sport-title {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.55);
    padding: 10px 28px;
    border-radius: 30px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

/* ================================
   MOBILE SPORTS CAROUSEL FIXED
================================ */

/* Carousel wrapper */
.sports-slider-mobile {
    position: relative;
    width: 100%;
}

/* Main image */
.sport-img-mobile {
    height: 38vh;
    /* Mobile height */
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s, filter 0.5s, opacity 0.5s;
}

/* Previous and next slides blurred */
.carousel-item-prev .sport-img-mobile,
.carousel-item-next .sport-img-mobile {
    transform: scale(0.9);
    filter: blur(2px);
    opacity: 0.7;
}

/* Title overlay */
.sport-title-mobile {
    position: absolute;
    bottom: 35px;
    /* Moved up to avoid overlapping dots */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 16px;
    border-radius: 25px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 10;
}

/* Carousel indicators (dots) */
#sportsCarouselMobile .carousel-indicators {
    position: absolute;
    bottom: 10px;
    /* Keep dots at bottom */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    z-index: 10;
}

#sportsCarouselMobile .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    transition: background-color 0.3s, transform 0.3s;
}

#sportsCarouselMobile .carousel-indicators .active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .sport-img-mobile {
        height: 35vh;
    }

    .sport-title-mobile {
        font-size: 12px;
        padding: 4px 12px;
        bottom: 30px;
        /* Slightly higher for small screens */
    }

    #sportsCarouselMobile .carousel-indicators {
        bottom: 8px;
        /* Dots slightly above edge */
    }
}