/* Image Carousel Styles */

.image-carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 70vh; /* Fixed height for cinematic feel */
    min-height: 500px;
    background: #000;
}

.carousel-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 1.5rem;
    font-size: 0.875rem;
    text-align: center;
}

/* Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
    background: white;
    color: #0A2647;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border-color: white;
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-prev {
    left: 1rem;
}

.carousel-arrow-next {
    right: 1rem;
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-arrow:disabled:hover {
    transform: translateY(-50%) scale(1);
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

/* Counter */
.carousel-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
}

/* Thumbnails (optional) */
.carousel-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
}

.carousel-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.carousel-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.carousel-thumbnails::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.carousel-thumbnail {
    min-width: 80px;
    height: 60px;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.carousel-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-thumbnail:hover {
    border-color: #16A085;
    transform: scale(1.05);
}

.carousel-thumbnail.active {
    border-color: #16A085;
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
}

/* Loading State */
.carousel-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .carousel-wrapper {
        height: 50vh; /* Smaller height on mobile */
        min-height: 350px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-arrow-prev {
        left: 0.5rem;
    }
    
    .carousel-arrow-next {
        right: 0.5rem;
    }
    
    .carousel-counter {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .carousel-slide-caption {
        padding: 1rem;
        font-size: 0.75rem;
    }
    
    .carousel-thumbnail {
        min-width: 60px;
        height: 45px;
    }
    
    .carousel-indicators {
        bottom: 0.75rem;
        gap: 0.375rem;
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
    
    .carousel-indicator.active {
        width: 24px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .carousel-wrapper {
        height: 40vh;
        min-height: 300px;
    }
    
    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    
    .carousel-counter {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel-slide.active {
    animation: fadeIn 0.5s ease-in-out;
}

/* Touch/Swipe Support */
.carousel-wrapper.grabbing {
    cursor: grabbing;
}

.carousel-wrapper.grabbing .carousel-slides {
    transition: none;
}

/* Fullscreen Button */
.carousel-fullscreen-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

