/* Banner Carousel Styles */

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

.svs-carousel-container {
    position: relative;
    width: 100%;
}

.svs-carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slide */
.svs-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

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

.svs-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slide Link (Clickable overlay) */
.svs-slide-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
}

/* Overlay */
.svs-slide-overlay {
    position: absolute;
    padding: 40px;
    /* Re-added padding from original */
    color: #fff;
    z-index: 4;
    pointer-events: none;
}

/* Vertical Positioning */
.svs-overlay-top {
    top: 0;
    bottom: auto;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
}

.svs-overlay-center {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent, rgba(0, 0, 0, 0.6));
}

.svs-overlay-bottom {
    bottom: 0;
    top: auto;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

/* Horizontal Positioning */
.svs-overlay-h-left {
    left: 0;
    right: auto;
    text-align: left;
}

.svs-overlay-h-center {
    left: 0;
    right: 0;
    text-align: center;
}

.svs-overlay-h-right {
    right: 0;
    left: auto;
    text-align: right;
}

.svs-slide-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.svs-slide-description {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
}

/* Arrows */
.svs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.svs-arrow svg {
    width: 50%;
    height: 50%;
}

.svs-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    opacity: 1 !important;
}

.svs-arrow-prev {
    left: 20px;
}

.svs-arrow-next {
    right: 20px;
}

/* Dots */
.svs-carousel-dots {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
}

.svs-dots-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.svs-dots-bottom-left {
    bottom: 20px;
    left: 20px;
}

.svs-dots-bottom-right {
    bottom: 20px;
    right: 20px;
}

.svs-dot {
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    opacity: 0;
    animation: dotFadeIn 0.5s ease forwards;
}

/* Entrance Animation - Fade In */
@keyframes dotFadeIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 0.6;
        transform: scale(1);
    }
}

/* Staggered Animation Delays */
.svs-dot:nth-child(1) {
    animation-delay: 0ms;
}

.svs-dot:nth-child(2) {
    animation-delay: 100ms;
}

.svs-dot:nth-child(3) {
    animation-delay: 200ms;
}

.svs-dot:nth-child(4) {
    animation-delay: 300ms;
}

.svs-dot:nth-child(5) {
    animation-delay: 400ms;
}

.svs-dot:nth-child(6) {
    animation-delay: 500ms;
}

.svs-dot:nth-child(7) {
    animation-delay: 600ms;
}

.svs-dot:nth-child(8) {
    animation-delay: 700ms;
}

.svs-dot:nth-child(9) {
    animation-delay: 800ms;
}

.svs-dot:nth-child(10) {
    animation-delay: 900ms;
}

.svs-dot:hover {
    opacity: 0.8 !important;
    transform: scale(1.2);
}

/* Active Dot */
.svs-dot.active {
    opacity: 1 !important;
    transform: scale(1.3);
}

/* Click Animation */
.svs-dot:active {
    transform: scale(1.5);
    transition: transform 0.1s ease;
}

/* Pulse Effect on Active Dot */
@keyframes dotPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.svs-dot.active {
    animation: dotPulse 2s ease infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .svs-slide-overlay {
        padding: 20px;
    }

    .svs-slide-title {
        font-size: 24px;
    }

    .svs-slide-description {
        font-size: 14px;
    }

    .svs-arrow {
        width: 40px !important;
        height: 40px !important;
    }

    .svs-arrow-prev {
        left: 10px;
    }

    .svs-arrow-next {
        right: 10px;
    }

    .svs-dots-bottom-center,
    .svs-dots-bottom-left,
    .svs-dots-bottom-right {
        bottom: 10px;
    }

    .svs-dots-bottom-left {
        left: 10px;
    }

    .svs-dots-bottom-right {
        right: 10px;
    }
}

/* Loading State */
.svs-slide img[loading="lazy"] {
    background: #f0f0f0;
}

/* Elementor Editor */
.elementor-editor-active .svs-banner-carousel {
    min-height: 300px;
}

.elementor-editor-active .svs-slide-link {
    pointer-events: none;
}