/* ================================================
   Enhanced Carousel Styles
   Smooth Animations & Modern Design
   ================================================ */

/* Body styles removed - conflicts with main layout */
/* Use wrapper-specific styles instead */

.carousel {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.carousel-container {
    max-width: 900px;
    width: 100%;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    animation: slideInUp 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    animation: fadeIn 0.6s ease;
}

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

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.carousel-slide iframe {
    width: 100%;
    height: 450px;
    max-height: 60vw;
    display: block;
    border: none;
}

.carousel-slide:hover img,
.carousel-slide:hover video {
    transform: scale(1.02);
}

/* Gradient Overlay on Images */
.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 100px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 60%,
        rgba(0, 0, 0, 0.7) 100%
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-slide:hover::before {
    opacity: 1;
}

.slide-text {
    padding: 24px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    z-index: 2;
    border-top: 3px solid #5381B7;
}

.slide-text h3 {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: -0.5px;
    animation: slideInLeft 0.6s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-text p {
    font-size: 16px;
    color: #5a6c7d;
    line-height: 1.7;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: slideInRight 0.6s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 20px;
    z-index: 10;
}

.nav-btn {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    color: #343089;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(52, 48, 137, 0.1);
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: linear-gradient(135deg, #5381B7 0%, #343089 100%);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 10px 30px rgba(52, 48, 137, 0.4);
}

.nav-btn:active {
    transform: scale(1.05);
}

#prevBtn {
    animation: bounceLeft 2s ease-in-out infinite;
}

#nextBtn {
    animation: bounceRight 2s ease-in-out infinite;
}

@keyframes bounceLeft {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator-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 rgba(255, 255, 255, 0.8);
}

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

.indicator-dot.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

/* Loading State */
.carousel-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid rgba(83, 129, 183, 0.2);
    border-top-color: #5381B7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-container {
        border-radius: 16px;
        max-width: 100%;
    }
    
    .carousel-slide img,
    .carousel-slide video {
        max-height: 300px;
    }
    
    .carousel-slide iframe {
        height: 300px;
    }
    
    .slide-text h3 {
        font-size: 20px;
    }
    
    .slide-text p {
        font-size: 14px;
    }
    
    .nav-btn {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    
    .carousel-nav {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .carousel-slide img,
    .carousel-slide video {
        max-height: 200px;
    }
    
    .carousel-slide iframe {
        height: 220px;
    }
    
    .slide-text {
        padding: 12px;
    }
    
    .slide-text h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .slide-text p {
        font-size: 12px;
        line-height: 1.5;
    }
}
