/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    width: 100%;
}

.hero-carousel .carousel {
    border-radius: 10px;
    overflow: hidden;
}

.hero-carousel .carousel-image {
    height: 400px;
    width: 100%;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.hero-carousel .carousel-item {
    transition: transform 0.6s ease-in-out;
    width: 100%;
}

.hero-carousel .carousel-item:hover .carousel-image {
    transform: scale(1.05);
}

/* Carousel Caption Styling */
.hero-carousel .carousel-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    border-radius: 10px;
    padding: 20px;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.hero-carousel .carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-carousel .carousel-caption p {
    font-size: 1rem;
    color: #f8f9fa;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Carousel Controls */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.hero-carousel .carousel-control-prev {
    left: 20px;
}

.hero-carousel .carousel-control-next {
    right: 20px;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Carousel Indicators */
.hero-carousel .carousel-indicators {
    bottom: 10px;
    margin-bottom: 0;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

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

.hero-carousel .carousel-indicators button:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-carousel {
        padding: 10px;
    }

    .hero-carousel .carousel-image {
        height: 250px;
    }

    .hero-carousel .carousel-caption {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 15px;
    }

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

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

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

    .hero-carousel .carousel-control-prev {
        left: 10px;
    }

    .hero-carousel .carousel-control-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .hero-carousel .carousel-image {
        height: 200px;
    }

    .hero-carousel .carousel-caption {
        display: none !important;
    }
}

/* Animation for carousel items */
@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-carousel .carousel-item.active {
    animation: slideInFromRight 0.6s ease-in-out;
}

/* Loading animation */
.hero-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}