/* Modern Carousel Styles */
.carousel-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    overflow: hidden;
    height: 500px;
    display: flex;
    flex-direction: column;
}

/* Carousel Header */
.carousel-header {
    background: rgba(102, 126, 234, 0.1);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
    backdrop-filter: blur(10px);
}

.carousel-title {
    color: #495057;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.carousel-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
    margin: 0.5rem 0 0 0;
    font-weight: 500;
}

/* Carousel Content */
.carousel-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* Modern Carousel Overrides */
.carousel-modern {
    height: 100%;
    border-radius: 0;
    background: transparent;
}

.carousel-modern .carousel-inner {
    height: 100%;
    border-radius: 0;
}

.carousel-modern .carousel-item {
    height: 100%;
    border-radius: 0;
}

.carousel-modern .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* Carousel Controls */
.carousel-modern .carousel-control-prev,
.carousel-modern .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(102, 126, 234, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 1rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-modern .carousel-control-prev:hover,
.carousel-modern .carousel-control-next:hover {
    background: rgba(102, 126, 234, 1);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.carousel-modern .carousel-control-prev {
    left: 0;
}

.carousel-modern .carousel-control-next {
    right: 0;
}

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

/* Carousel Indicators */
.carousel-modern .carousel-indicators {
    bottom: 1rem;
    margin: 0;
    padding: 0;
}

.carousel-modern .carousel-indicators li {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.carousel-modern .carousel-indicators li.active {
    background: rgba(102, 126, 234, 1);
    transform: scaleX(1.2);
}

.carousel-modern .carousel-indicators li:hover {
    background: rgba(102, 126, 234, 0.8);
}

/* Carousel Caption */
.carousel-modern .carousel-caption {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    margin: 0 1rem 1rem 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-modern .carousel-caption h5 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-modern .carousel-caption p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
}

/* Empty State */
.carousel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    padding: 2rem;
}

.carousel-empty-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.carousel-empty-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-container {
        height: 400px;
        border-radius: 15px;
    }

    .carousel-header {
        padding: 1rem;
    }

    .carousel-title {
        font-size: 1.3rem;
    }

    .carousel-modern .carousel-control-prev,
    .carousel-modern .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 0.5rem;
    }

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

    .carousel-modern .carousel-indicators {
        bottom: 0.5rem;
    }

    .carousel-modern .carousel-indicators li {
        width: 30px;
        height: 3px;
        margin: 0 0.2rem;
    }

    .carousel-modern .carousel-caption {
        margin: 0 0.5rem 0.5rem 0.5rem;
        padding: 0.75rem 1rem;
    }

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

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

/* Animation for carousel items */
.carousel-modern .carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-modern .carousel-item.active {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading state */
.carousel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: rgba(248, 249, 250, 0.8);
}

.carousel-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hover effects for carousel */
.carousel-modern:hover .carousel-control-prev,
.carousel-modern:hover .carousel-control-next {
    opacity: 1;
}

.carousel-modern .carousel-item:hover img {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}