/* Custom Carousel Styles */
.carousel-wrapper-custom {
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: #fff;
    padding-bottom: 0; /* Remove wrapper padding */
    border-radius: 8px; 
    overflow: hidden; 
}

#header-carousel {
    /* Padding removed as indicators are hidden */
}

#header-carousel .carousel-item {
    min-height: 200px;
    background-color: #f8f9fa;
}

#header-carousel .carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Indicators - Force Circle Shape with High Specificity */
html body #header-carousel .carousel-indicators {
    bottom: 0px !important; /* Align to bottom of the padded container */
    margin-bottom: 10px !important;
    justify-content: center;
    align-items: center;
    display: flex !important;
    left: 0;
    right: 0;
}

html body #header-carousel .carousel-indicators li {
    box-sizing: border-box !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 100% !important; /* Force true circle */
    margin: 0 6px !important;
    background-color: #b0c4de !important; /* Light Steel Blue */
    border: none !important; /* Remove Bootstrap's transparency borders */
    border-top: none !important;
    border-bottom: none !important;
    opacity: 1 !important;
    cursor: pointer;
    flex: 0 0 12px !important; 
    max-width: 12px !important;
    text-indent: -999px;
    padding: 0 !important;
    background-clip: border-box !important; 
}

html body #header-carousel .carousel-indicators .active {
    background-color: #0056b3 !important; /* Deep Blue Active */
    width: 12px !important;
    height: 12px !important;
    transform: scale(1.2);
}

/* Custom Navigation */
#header-carousel .carousel-control-prev,
#header-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 45%; 
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    z-index: 99;
}

#header-carousel:hover .carousel-control-prev,
#header-carousel:hover .carousel-control-next {
    opacity: 1;
}

#header-carousel .carousel-control-prev:hover,
#header-carousel .carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

/* Responsive - iPad/Tablets (max-width: 992px) */
@media (max-width: 992px) {
    .carousel-wrapper-custom {
        padding-bottom: 45px;
    }

    #header-carousel .carousel-control-prev,
    #header-carousel .carousel-control-next {
        width: 45px;
        height: 45px;
        margin: 0 15px;
    }
}

/* Responsive - Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .carousel-wrapper-custom {
        padding-bottom: 40px;
    }

    html body #header-carousel .carousel-indicators li {
        width: 10px !important;
        height: 10px !important;
        flex: 0 0 10px !important;
        max-width: 10px !important;
        margin: 0 4px !important;
    }

    html body #header-carousel .carousel-indicators .active {
        width: 10px !important;
        height: 10px !important;
    }
    
    #header-carousel .carousel-control-prev,
    #header-carousel .carousel-control-next {
        width: 35px;
        height: 35px;
        margin: 0 5px;
    }
}

/* Extra small devices (max-width: 576px) */
@media (max-width: 576px) {
    .carousel-wrapper-custom {
        padding-bottom: 35px; /* Smaller space */
    }

    /* Adjust padding/margins inside carousel item if needed */
    #header-carousel .carousel-item {
        min-height: 150px;
    }
    
    html body #header-carousel .carousel-indicators {
        bottom: 8px !important;
    }
}
