/* ============================================
   MOBILE CAROUSEL NAVIGATION - PREMIUM DESIGN
   Vision Global School
   Clean, minimal arrows & dots for mobile view
   ============================================ */

/* Mobile-only styles (≤768px) */
@media (max-width: 768px) {

    /* ========== NAVIGATION ARROWS ========== */

    /* Reduce arrow size and make semi-transparent */
    .carousel-nav {
        width: 32px !important;
        height: 32px !important;
        background: rgba(80, 96, 62, 0.75) !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
        opacity: 0.9;
        transition: all 0.3s ease !important;
    }

    .carousel-nav:active {
        background: rgba(80, 96, 62, 0.9) !important;
        transform: scale(0.95) !important;
    }

    .carousel-nav i {
        font-size: 0.875rem !important;
        color: rgba(255, 255, 255, 0.95) !important;
    }

    /* Position arrows closer to image edges */
    .carousel-prev {
        left: 8px !important;
    }

    .carousel-next {
        right: 8px !important;
    }

    /* Auto-hide arrows - fade in on interaction */
    .carousel-wrapper {
        position: relative;
    }

    .carousel-wrapper .carousel-nav {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .carousel-wrapper:active .carousel-nav,
    .carousel-wrapper.show-controls .carousel-nav {
        opacity: 0.9;
        pointer-events: all;
    }

    /* ========== PAGINATION DOTS ========== */

    /* Reduce dot size and improve spacing */
    .carousel-indicators {
        margin-top: 12px !important;
        gap: 8px !important;
    }

    .carousel-indicators .indicator {
        width: 6px !important;
        height: 6px !important;
        background: rgba(80, 96, 62, 0.25) !important;
        border-radius: 50% !important;
        transition: all 0.3s ease !important;
        cursor: pointer;
    }

    /* Active dot - Alpine Lake Green */
    .carousel-indicators .indicator.active {
        width: 20px !important;
        height: 6px !important;
        background: #50603E !important;
        border-radius: 3px !important;
    }

    /* Hover state for dots */
    .carousel-indicators .indicator:active {
        background: rgba(80, 96, 62, 0.5) !important;
        transform: scale(1.2);
    }

    /* ========== SLIDE BEHAVIOR ========== */

    /* Ensure smooth transitions */
    .carousel-track {
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* Touch-friendly slide area */
    .carousel-track-container {
        touch-action: pan-y pinch-zoom;
        -webkit-overflow-scrolling: touch;
    }

    /* ========== CAPTION ADJUSTMENTS ========== */

    /* Make captions more subtle on mobile */
    .carousel-caption {
        padding: 8px 12px !important;
        font-size: 0.875rem !important;
    }

    .carousel-caption h3 {
        font-size: 0.875rem !important;
        margin: 0 !important;
    }

    /* ========== COMPACT LAYOUT ========== */

    /* Reduce overall carousel padding */
    .campus-carousel-section {
        padding: var(--space-lg) 0 !important;
    }

    .carousel-wrapper {
        margin-bottom: 0 !important;
    }
}

/* Extra small devices (≤480px) */
@media (max-width: 480px) {

    /* Even smaller arrows for tiny screens */
    .carousel-nav {
        width: 28px !important;
        height: 28px !important;
    }

    .carousel-nav i {
        font-size: 0.75rem !important;
    }

    /* Minimal dots */
    .carousel-indicators .indicator {
        width: 5px !important;
        height: 5px !important;
    }

    .carousel-indicators .indicator.active {
        width: 16px !important;
        height: 5px !important;
    }

    /* Tighter spacing */
    .carousel-indicators {
        margin-top: 8px !important;
        gap: 6px !important;
    }
}

/* ========== JAVASCRIPT HELPER CLASSES ========== */

/* Show controls class (added via JS on touch) */
.show-controls .carousel-nav {
    opacity: 0.9 !important;
    pointer-events: all !important;
}

/* Fade out animation */
@keyframes fadeOut {
    from {
        opacity: 0.9;
    }

    to {
        opacity: 0;
    }
}

.carousel-wrapper.fade-controls .carousel-nav {
    animation: fadeOut 0.5s ease forwards;
}