.kd-single-slider.owl-carousel {
    position: relative;
    min-height: 90vh;
}

.kd-single-slider::before {
    z-index: 0;
    bottom: 100%;
    content: "";
    height: 37vh;
    left: 0;
    pointer-events: none;
    position: absolute;
    width: 100%;
    background-image: linear-gradient(to top,
        rgba(235, 63, 67, 1.000) 0%,
        rgba(235, 63, 67, 0.976) 10%,
        rgba(235, 63, 67, 0.905) 20%,
        rgba(235, 63, 67, 0.794) 30%,
        rgba(235, 63, 67, 0.655) 40%,
        rgba(235, 63, 67, 0.500) 50%,
        rgba(235, 63, 67, 0.345) 60%,
        rgba(235, 63, 67, 0.206) 70%,
        rgba(235, 63, 67, 0.095) 80%,
        rgba(235, 63, 67, 0.024) 90%,
        rgba(235, 63, 67, 0.000) 100%
    );
}

.kd-single-slider .kd-single-slider-item::before {
    z-index: 0;
    bottom: 0%;
    content: "";
    height: 37vh;
    left: 0;
    pointer-events: none;
    position: absolute;
    width: 100%;
    background-image: linear-gradient(to top,
        rgba(235, 63, 67, 1.000) 0%,
        rgba(235, 63, 67, 0.976) 10%,
        rgba(235, 63, 67, 0.905) 20%,
        rgba(235, 63, 67, 0.794) 30%,
        rgba(235, 63, 67, 0.655) 40%,
        rgba(235, 63, 67, 0.500) 50%,
        rgba(235, 63, 67, 0.345) 60%,
        rgba(235, 63, 67, 0.206) 70%,
        rgba(235, 63, 67, 0.095) 80%,
        rgba(235, 63, 67, 0.024) 90%,
        rgba(235, 63, 67, 0.000) 100%
    );
}
.kd-single-slider .kd-single-slider-item {
    display: flex;
    align-items: center;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-repeat: no-repeat;
}

.kd-single-slider .swiper-slide-inner {
    width: 100%;
    max-width: 1310px;
    padding: 0;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

.kd-single-slider .elementor-slide-heading {
    color: #fff;
    font-size: 64px;
    font-weight: 300;
    line-height: 1.4;
}

.kd-single-slider .elementor-slide-heading:not(:last-child),
.kd-single-slider .elementor-slide-description:not(:last-child) {
    margin-bottom: 30px;
    margin-top: 0;
}

.kd-single-slider .elementor-slide-description {
    color: #fff;
    font-size: 24px;
    line-height: 125%;
}

.kd-single-slider .elementor-slide-button {
    display: inline-block;
    font-size: 16px;
    padding: 0;
    position: relative;
    color: #fff;
}

.kd-single-slider .kd-single-slider-content-inner {
    max-width: 917px;
}
/* Text fade-in from bottom when the slide becomes active */
.kd-single-slider .owl-item .kd-single-slider-content-inner {
    opacity: 0;
}

.kd-single-slider .owl-item.active .kd-single-slider-content-inner {
    animation: kd-single-slider-fade-up 0.8s ease-out 0.2s both;
}

@keyframes kd-single-slider-fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes kd-single-slider-bg-pan {
    from { background-position: 0% 50%; }
    to   { background-position: 50% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .kd-single-slider .owl-item.active .kd-single-slider-item {
        animation: none !important;
    }

    .kd-single-slider .owl-item .kd-single-slider-content-inner {
        opacity: 1;
        animation: none !important;
    }
}

.kd-single-slider .elementor-slide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.kd-single-slider .elementor-slide-button::after {
    content: '';
    background-image: url("../img/arrow.svg");
    width: 42px;
    height: 8px;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Numbered pagination */
.kd-single-slider .owl-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1310px;
    padding: 0;
    z-index: 1;
}

.kd-single-slider .owl-dots .owl-dot {
    width: auto;
    height: auto;
    background: none;
    border: 0;
    border-radius: 0;
    color: #fff;
    font-size: 16px;
    opacity: 1;
    padding: 0;
}

.kd-single-slider .owl-dots .owl-dot.active {
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

/* Arrows */
.kd-single-slider .owl-nav button.owl-prev,
.kd-single-slider .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #000;
    font-size: 28px;
    line-height: 1;
}

.kd-single-slider .owl-nav button.owl-prev {
    left: 16px;
}

.kd-single-slider .owl-nav button.owl-next {
    right: 16px;
}

@media (max-width: 1280px) {
    .kd-single-slider .swiper-slide-inner {
        padding: 0 15px 24px;
    }
}

@media (max-width: 767px) {
    .kd-single-slider .kd-single-slider-item {
        align-items: flex-end;
    }

    .kd-single-slider .owl-item.active .kd-single-slider-item {
        animation: kd-single-slider-bg-pan 12s linear both;
    }

    .kd-single-slider .owl-dots {
        display: none;
    }

    .kd-single-slider .elementor-slide-heading {
        font-size: 40px;
    }

    .kd-single-slider .elementor-slide-description {
        font-size: 20px;
    }

    .kd-single-slider .elementor-slide-button {
        font-size: 14px;
    }

    .kd-single-slider .elementor-slide-heading:not(:last-child),
    .kd-single-slider .elementor-slide-description:not(:last-child) {
        margin-bottom: 24px;
    }
}
