/* ===================================
   CAROUSEL RESPONSIVE STYLES
   =================================== */

/* Base carousel styles */
.owl-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.owl-carousel .owl-wrapper-outer {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.owl-carousel .owl-item {
    float: left;
    position: relative;
}

/* Navigation buttons */
.owl-carousel .owl-buttons .owl-prev,
.owl-carousel .owl-buttons .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.owl-carousel .owl-buttons .owl-prev:hover,
.owl-carousel .owl-buttons .owl-next:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.owl-carousel .owl-buttons .owl-prev {
    left: 15px;
}

.owl-carousel .owl-buttons .owl-next {
    right: -20px;
}

/* Carousel indicators */
.owl-carousel .owl-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.owl-carousel .owl-page {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.owl-carousel .owl-page.active {
    background: white;
    transform: scale(1.2);
}

/* Responsive breakpoints */
@media screen and (max-width: 1024px) {
    .owl-carousel .owl-buttons .owl-prev,
    .owl-carousel .owl-buttons .owl-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .owl-carousel .owl-buttons .owl-prev {
        left: 10px;
    }
    
    .owl-carousel .owl-buttons .owl-next {
        right: 10px;
    }
}

@media screen and (max-width: 768px) {
    .owl-carousel .owl-buttons .owl-prev,
    .owl-carousel .owl-buttons .owl-next {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .owl-carousel .owl-buttons .owl-prev {
        left: 8px;
    }
    
    .owl-carousel .owl-buttons .owl-next {
        right: 8px;
    }
    
    .owl-carousel .owl-pagination {
        bottom: 15px;
    }
    
    .owl-carousel .owl-page {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
}

@media screen and (max-width: 480px) {
    .owl-carousel .owl-buttons .owl-prev,
    .owl-carousel .owl-buttons .owl-next {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .owl-carousel .owl-buttons .owl-prev {
        left: 5px;
    }
    
    .owl-carousel .owl-buttons .owl-next {
        right: 5px;
    }
    
    .owl-carousel .owl-pagination {
        bottom: 10px;
    }
    
    .owl-carousel .owl-page {
        width: 8px;
        height: 8px;
        margin: 0 2px;
    }
}

@media screen and (max-width: 360px) {
    .owl-carousel .owl-buttons .owl-prev,
    .owl-carousel .owl-buttons .owl-next {
        width: 25px;
        height: 25px;
        font-size: 11px;
    }
    
    .owl-carousel .owl-buttons .owl-prev {
        left: 3px;
    }
    
    .owl-carousel .owl-buttons .owl-next {
        right: 3px;
    }
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
    .owl-carousel {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    .owl-carousel .owl-item {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Smooth transitions */
.owl-carousel .owl-wrapper-outer.autoHeight {
    transition: height 500ms ease-in-out;
}

/* Loading state */
.owl-carousel.loading {
    opacity: 0.7;
}

/* Accessibility improvements */
.owl-carousel .owl-buttons .owl-prev:focus,
.owl-carousel .owl-buttons .owl-next:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .owl-carousel .owl-buttons .owl-prev,
    .owl-carousel .owl-buttons .owl-next {
        background: black;
        border: 2px solid white;
    }
    
    .owl-carousel .owl-page {
        background: white;
        border: 2px solid black;
    }
    
    .owl-carousel .owl-page.active {
        background: black;
        border-color: white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .owl-carousel .owl-wrapper-outer.autoHeight {
        transition: none;
    }
    
    .owl-carousel .owl-buttons .owl-prev:hover,
    .owl-carousel .owl-buttons .owl-next:hover {
        transform: translateY(-50%);
    }
}
