﻿/* Card Container Styling */
.carousal-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.carousal-card-body {
    padding: 0 !important;
    background-color: #0b0f19;
}

.slider-home-banner {
    position: relative;
    overflow: hidden;
}

    /* Smooth Hardware-Accelerated Fade & Zoom Transition */
    .slider-home-banner.carousel-fade .carousel-item {
        opacity: 0;
        transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
        transform: scale(1.03);
    }

        .slider-home-banner.carousel-fade .carousel-item.active {
            opacity: 1;
            transform: scale(1);
        }

    .slider-home-banner.carousel-fade .carousel-item-next.carousel-item-left,
    .slider-home-banner.carousel-fade .carousel-item-prev.carousel-item-right {
        opacity: 1;
    }

    .slider-home-banner.carousel-fade .active.carousel-item-left,
    .slider-home-banner.carousel-fade .active.carousel-item-right {
        opacity: 0;
    }

/* Image Aspect Ratio & Gradient Overlay for Contrast */
.banner-img-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
}

    .banner-img-wrapper::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, rgba(11, 15, 25, 0.88) 0%, rgba(11, 15, 25, 0.45) 55%, rgba(11, 15, 25, 0.1) 100%);
        pointer-events: none;
    }

    .banner-img-wrapper img {
        object-fit: cover;
        height: 100%;
        width: 100%;
    }

/* Caption Positioning to Left Side Middle */
.custom-caption {
    position: absolute;
    top: 50%;
    left: 7%;
    right: auto;
    bottom: auto;
    transform: translateY(-50%);
    text-align: left;
    max-width: 580px;
    z-index: 10;
    color: #ffffff;
    padding: 0;
}

    .custom-caption h1 {
        font-size: 2.25rem;
        font-weight: 700;
        line-height: 1.25;
        margin-bottom: 0.75rem;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    }

    .custom-caption h6 {
        font-size: 1.05rem;
        font-weight: 400;
        opacity: 0.9;
        line-height: 1.5;
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
    }

.letter-spacing {
    letter-spacing: 1px;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Modern Indicator Bar Design */
.custom-indicators {
    bottom: 25px;
    left: 7%;
    margin-left: 0;
    justify-content: flex-start;
}

    .custom-indicators li {
        width: 30px;
        height: 4px;
        border-radius: 2px;
        background-color: rgba(255, 255, 255, 0.35);
        border: none;
        transition: all 0.3s ease;
    }

        .custom-indicators li.active {
            width: 50px;
            background-color: #007bff;
        }

/* Control Buttons Fade-in on Hover */
.custom-control {
    width: 5%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-home-banner:hover .custom-control {
    opacity: 0.8;
}

.custom-control:hover {
    opacity: 1 !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .banner-img-wrapper {
        height: 360px;
    }

    .custom-caption {
        left: 5%;
        max-width: 90%;
    }

        .custom-caption h1 {
            font-size: 1.5rem;
        }

        .custom-caption h6 {
            font-size: 0.875rem;
        }
}
