/* ABC Custom Image Slider Styles */

.abc-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.abc-slider-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 90px);
    max-height: 610px;
    overflow: hidden;
}

.abc-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.abc-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    transition: opacity 0.8s cubic-bezier(0.4, 0.0, 0.2, 1),
                visibility 0.8s cubic-bezier(0.4, 0.0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: opacity, transform;
}

.abc-slider-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1;
}

.abc-slider-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.abc-slider-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f0f0f0;
}

.abc-slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.abc-slider-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 90px;
    padding: 20px 40px;
    background-color: rgba(255, 255, 255, 0.95);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 5;
}

.abc-slider-title {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}

.abc-slider-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Navigation */
.abc-slider-navigation {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 0;
    width: auto;
    height: 90px;
    background-color: #ffffff;
    z-index: 10;
}

.abc-slider-prev,
.abc-slider-next {
    width: 45px;
    height: 45px;
    margin: 0 15px;
    border: none;
    background-color: var(--e-global-color-253b31d);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    padding: 0 !important;
    flex-shrink: 0;
}

/* Hover state now controlled via Elementor selectors */

.abc-slider-prev svg,
.abc-slider-next svg {
    width: 20px;
    height: 20px;
}

.abc-slider-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--e-global-color-text);
    font-size: 14px;
    font-weight: 500;
    padding: 0 15px;
    min-width: 60px;
}

.abc-slider-current {
    font-weight: 600;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .abc-slider-container {
        height: calc(100vh - 70px);
        max-height: 500px;
    }

    .abc-slider-caption {
        bottom: 0;
        height: 70px;
        padding: 15px 30px;
        width: 55%;
    }

    .abc-slider-navigation {
        height: 70px;
    }

    .abc-slider-prev,
    .abc-slider-next {
        width: 40px;
        height: 40px;
        margin: 0 12px;
    }

    .abc-slider-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .abc-slider-description {
        font-size: 14px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .abc-slider-container {
        height: auto;
        min-height: 400px;
    }

    .abc-slider-slide {
        position: relative;
        height: auto;
        display: none;
    }

    .abc-slider-slide.active {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .abc-slider-content {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .abc-slider-image {
        width: 100%;
        height: 50vh;
        min-height: 300px;
        max-height: 400px;
        position: relative;
    }

    .abc-slider-caption {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        height: auto;
        min-height: 60px;
        padding: 20px;
        background-color: #ffffff;
    }

    .abc-slider-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .abc-slider-description {
        font-size: 14px;
    }

    .abc-slider-navigation {
        position: relative;
        width: 100%;
        height: 60px;
        justify-content: center;
        background-color: #ffffff;
    }

    .abc-slider-prev,
    .abc-slider-next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
        background-color: var(--e-global-color-253b31d);
    }

    .abc-slider-prev svg,
    .abc-slider-next svg {
        width: 18px;
        height: 18px;
    }

    .abc-slider-counter {
        font-size: 13px;
        padding: 0 10px;
    }

    /* Touch swipe support */
    .abc-slider-track {
        touch-action: pan-y;
    }
}

@media (max-width: 480px) {
    .abc-slider-container {
        min-height: 350px;
    }

    .abc-slider-image {
        height: 40vh;
        min-height: 250px;
        max-height: 350px;
    }

    .abc-slider-caption {
        padding: 15px;
        min-height: 50px;
    }

    .abc-slider-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .abc-slider-description {
        font-size: 13px;
    }

    .abc-slider-navigation {
        height: 50px;
        background-color: #ffffff;
    }

    .abc-slider-prev,
    .abc-slider-next {
        width: 35px;
        height: 35px;
        margin: 0 8px;
        background-color: var(--e-global-color-253b31d);
    }

    .abc-slider-prev svg,
    .abc-slider-next svg {
        width: 16px;
        height: 16px;
    }
}

/* Loading State */
.abc-slider-wrapper.loading .abc-slider-slide {
    opacity: 0.5;
}

/* Accessibility */
.abc-slider-prev:focus,
.abc-slider-next:focus {
    outline: 2px solid #ffffff;
    outline-offset: -4px;
}

/* Print Styles */
@media print {
    .abc-slider-navigation {
        display: none;
    }

    .abc-slider-slide {
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        page-break-after: always;
    }
}
