﻿/* ===== MEDTIUM CAROUSEL STYLES ===== */

/* Carousel Container */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding-bottom: 45.83%; /* 1920x880 aspect ratio */
    height: 0;
}

/* Carousel Wrapper */
.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Individual Slides */
.carousel-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-slide video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Slide Content Overlay */
.slide-content {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 25px;
    border-radius: 6px;
    backdrop-filter: blur(5px);
}

.slide-content h3 {
    margin: 0 0 8px 0;
    font-size: clamp(18px, 3vw, 28px);
    font-weight: bold;
}

.slide-content p {
    margin: 0;
    font-size: clamp(12px, 2vw, 16px);
    opacity: 0.9;
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 52, 77, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(0, 52, 77, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

/* Carousel Dots/Indicators */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot.active {
    background: #00344d;
    border-color: white;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Auto-play pause button */
.carousel-play-pause {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 52, 77, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-play-pause:hover {
    background: rgba(0, 52, 77, 1);
    transform: scale(1.1);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .slide-content {
        bottom: 15px;
        padding: 10px 15px;
    }

    .carousel-dots {
        bottom: 10px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

/* Touch/Swipe Support Indicators */
.carousel-container.dragging {
    cursor: grabbing;
}

.carousel-container:not(.dragging) {
    cursor: grab;
}

/* Fade transition alternative (optional) */
.carousel-container.fade .carousel-wrapper {
    position: relative;
}

.carousel-container.fade .carousel-slide {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-container.fade .carousel-slide.active {
    opacity: 1;
}