/* Advanced Carousel Slider - Final Production Version */

.acs-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    background: transparent;
    padding: 0;
}

.acs-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
    box-shadow: 0;
}

.acs-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acs-carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.acs-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.acs-carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.acs-carousel-slide a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

.acs-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding: 0;
}

.acs-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    outline: none;
}

.acs-dot.active {
    background: #007cba;
    transform: scale(1.3);
}

.acs-dot:hover {
    background: #007cba;
    transform: scale(1.1);
}

.acs-dot:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Desktop hover effect */
@media (min-width: 769px) {
    .acs-carousel-slide:hover img {
        transform: scale(1.05);
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .acs-carousel-wrapper {
        height: 350px;
        border-radius: 10px;
    }
    
    .acs-carousel-slide img,
    .acs-carousel-slide a img {
        border-radius: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .acs-carousel-container {
        margin: 20px auto;
        padding: 0 10px;
    }
    
    .acs-carousel-wrapper {
        height: 350px;
        border-radius: 0px;
        box-shadow: 0;
    }
    
    .acs-carousel-slide img,
    .acs-carousel-slide a img {
        border-radius: 0px;
    }
    
    .acs-carousel-dots {
        gap: 10px;
        margin-top: 20px;
    }
    
    .acs-dot {
        width: 10px;
        height: 10px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .acs-carousel-wrapper {
        height: 220px;
        border-radius: 6px;
    }
    
    .acs-carousel-slide img,
    .acs-carousel-slide a img {
        border-radius: 6px;
    }
    
    .acs-carousel-dots {
        gap: 8px;
        margin-top: 15px;
    }
    
    .acs-dot {
        width: 8px;
        height: 8px;
    }
}

/* Force proper display */
.acs-carousel-container img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Override WordPress/theme styles */
.acs-carousel-container .acs-carousel-slide {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

.acs-carousel-container .acs-carousel-dots {
    list-style: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: none !important;
}

/* Ensure images are visible */
.acs-carousel-slide img {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
}

/* Loading state */
.acs-carousel-container.loading {
    opacity: 0.7;
}

.acs-carousel-container.loaded {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Accessibility improvements */
.acs-carousel-slide img {
    user-select: none;
    -webkit-user-drag: none;
}

/* Better mobile touch targets */
@media (hover: none) and (pointer: coarse) {
    .acs-dot {
        width: 14px;
        height: 14px;
        margin: 2px;
    }
    
    .acs-dot:hover {
        transform: none;
    }
}