/* Elementor Card Slider Styles */

.ecs-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.ecs-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.ecs-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    margin: 0;
    padding: 0;
}

.ecs-card {
    flex-shrink: 0;
    position: relative;
    background: #fff;
    overflow: hidden;
    height: 400px;
    box-sizing: border-box;
    margin-right: 0;
    min-width: 0;
}

.ecs-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.ecs-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
}

.ecs-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    z-index: 2;
}

.ecs-card-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.ecs-card-description {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.ecs-card-link {
    display: inline-block;
    padding: 10px 20px;
    background: #ffffff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    align-self: flex-start;
    font-size: 14px;
    font-weight: 600;
}

.ecs-card-link:hover {
    background: #0073aa;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Navigation */
.ecs-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 20px;
    box-sizing: border-box;
}

.ecs-nav-prev,
.ecs-nav-next {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ecs-nav-prev:hover,
.ecs-nav-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.ecs-nav-prev:disabled,
.ecs-nav-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ecs-nav-prev:disabled:hover,
.ecs-nav-next:disabled:hover {
    transform: none;
}

/* Pagination */
.ecs-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 0;
}

.ecs-pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.ecs-pagination-dot:hover {
    background: #999;
}

.ecs-pagination-dot.active {
    background: #0073aa;
    width: 30px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 1024px) {
    .ecs-card-title {
        font-size: 18px;
    }

    .ecs-card-description {
        font-size: 13px;
    }

    .ecs-navigation {
        padding: 0 10px;
    }

    .ecs-nav-prev,
    .ecs-nav-next {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 768px) {
    .ecs-card {
        height: 350px;
    }

    .ecs-card-content {
        padding: 20px;
    }

    .ecs-card-title {
        font-size: 20px;
    }

    .ecs-card-description {
        font-size: 13px;
    }

    .ecs-nav-prev,
    .ecs-nav-next {
        width: 30px;
        height: 30px;
    }

    .ecs-nav-prev svg,
    .ecs-nav-next svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .ecs-card {
        height: 300px;
    }

    .ecs-card-content {
        padding: 15px;
    }

    .ecs-card-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .ecs-card-description {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .ecs-card-link {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Editor Mode */
.elementor-editor-active .ecs-slider-track {
    transition: none !important;
}
