/* ===== Bootstrap Hero Carousel Styles ===== */

/* Main carousel container */
.hero-carousel {
    width: 100%;
    min-height: 500px;
    max-height: 800px;
    height: 80vh;
    position: relative;
    overflow: hidden;
}

@media screen and (min-width: 1920px) {
    .hero-carousel {
        height: 100vh;
    }
}

/* Carousel inner container */
.hero-carousel .carousel-inner {
    height: 100%;
}

/* Individual slide */
.hero-carousel .carousel-item {
    height: 100%;
    position: relative;
}

/* Slide background image */
.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Dark overlay on slides */
.hero-carousel .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(10, 59, 108, 0.75) 0%,
        rgba(10, 59, 108, 0.5) 50%,
        rgba(13, 25, 95, 0.55) 100%
    );
    z-index: 1;
}

/* Slide content wrapper - centered */
.hero-carousel .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: auto;
    right: auto;
    width: 100%;
    max-width: 900px;
    padding: 20px;
    text-align: center;
    z-index: 2;
}

/* Slide label (small text above title) */
.hero-carousel .slide-label {
    font-size: 40px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

/* Slide title (main heading) */
.hero-carousel .slide-title {
    font-size: clamp(2.3rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.6s ease forwards;
    animation-delay: 0.4s;
}

/* Animation keyframes */
@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reset animation for non-active slides */
.hero-carousel .carousel-item:not(.active) .slide-label,
.hero-carousel .carousel-item:not(.active) .slide-title {
    opacity: 0;
    transform: translateY(20px);
    animation: none;
}

/* Restart animation when slide becomes active */
.hero-carousel .carousel-item.active .slide-label {
    animation: fadeSlideUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.hero-carousel .carousel-item.active .slide-title {
    animation: fadeSlideUp 0.6s ease forwards;
    animation-delay: 0.4s;
}

/* Navigation arrows - REMOVED (not using arrows)
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    ...
}
*/

/* Pagination indicators */
.hero-carousel .carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
    z-index: 3;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 6px;
    opacity: 1;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators .active {
    background-color: var(--color-gold, #F2C01E);
    transform: scale(1.3);
}

/* ===== Responsive Adjustments ===== */

@media (max-width: 991.98px) {
    .hero-carousel {
        height: 60vh;
        min-height: 450px;
    }
    
    .hero-carousel .carousel-caption {
        padding: 15px;
    }
}

@media (max-width: 767.98px) {
    .hero-carousel {
        height: 55vh;
        min-height: 400px;
    }
    
    .hero-carousel .slide-label {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .hero-carousel .slide-overlay {
        background: linear-gradient(
            to bottom,
            rgba(10, 59, 108, 0.7) 0%,
            rgba(10, 59, 108, 0.8) 100%
        );
    }
    
    .hero-carousel .carousel-indicators {
        bottom: 20px;
    }
}

@media (max-width: 575.98px) {
    .hero-carousel {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-carousel .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}
