/* ===== CAROUSEL & BANNER STYLES ===== */

.carousel-banner-img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.carousel-item {
    position: relative;
    min-height: 400px;
    background-color: #f5f5f5;
}

@media (min-width: 768px) {
    .carousel-item {
        min-height: 500px;
    }
}

@media (min-width: 1024px) {
    .carousel-item {
        min-height: 600px;
    }
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Custom carousel indicators */
.carousel-indicators-custom {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 0 20px;
}

.carousel-indicators-custom .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.carousel-indicators-custom .dot:hover {
    background: rgba(255, 215, 0, 0.7);
    transform: scale(1.2);
}

.carousel-indicators-custom .dot.active {
    background: #ffd700;
    transform: scale(1.25);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* Carousel caption animations */
.carousel-caption {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    padding: 40px 20px 20px;
    border-radius: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.carousel-caption h5 {
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 12px;
    animation: slideInDown 0.6s ease-out;
}

.carousel-caption p {
    font-size: 1.2rem;
    animation: slideInUp 0.6s ease-out 0.2s both;
}

.carousel-caption .btn {
    animation: fadeIn 0.6s ease-out 0.4s both;
}

/* Carousel progress bar */
.carousel-progress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 12px;
}

.carousel-progress .progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #ffd700, #ffe55c);
    animation: carouselProgress 6s linear infinite;
}

@@keyframes carouselProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Banner overlay for text contrast */
.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
    pointer-events: none;
}

/* Responsive banner adjustments */
@media (max-width: 576px) {
    .carousel-item {
        min-height: 300px;
    }

    .carousel-caption h5 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .carousel-caption {
        padding: 20px 15px 10px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
}

/* Smooth fade between carousel items */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transition-duration: .6s;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

.carousel-fade .carousel-item-start,
.carousel-fade .carousel-item-end {
    opacity: 0;
}

.carousel-fade .carousel-item-start.active,
.carousel-fade .carousel-item-end.active {
    opacity: 1;
}

/* Image info overlay */
.carousel-image-info {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.carousel-image-info i {
    font-size: 14px;
}

/* Accessibility - keyboard navigation */
.carousel-control-prev:focus,
.carousel-control-next:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}
