/* feature slider */
.custom-feature-slider-wrapper {
    padding-top: 80px;
    position: relative;
}

.custom-feature-slider-card-detail-wrapper {
    overflow: hidden;
}

.custom-feature-slider-arrow-title {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    padding-bottom: 60px;
}

.custom-feature-slider-arrow-wrapper {
    display: flex;
    gap: 20px;
}

.custom-feature-slider-arrow.custom-feature-slider-arrow-left,
.custom-feature-slider-arrow.custom-feature-slider-arrow-right {
    padding: 10px 12px;
    border: 1px solid #979797;
    border-radius: 100px;
    width: 70px;
    height: 50px;
    background-color: transparent;
}

.custom-feature-slider-arrow.custom-feature-slider-arrow-left:hover,
.custom-feature-slider-arrow.custom-feature-slider-arrow-right:hover {
    background-color: #5A34C0;
}

.custom-feature-slider-wrapper h2 {
    font-family: "Poppins", Sans-serif;
    font-size: 2.1rem;
    font-weight: 500;
    line-height: 2.3rem;
    letter-spacing: 0;
    vertical-align: middle;
    color: #FFFFFF;
    /* position: relative; */
    position: absolute;
    top: 17%;
    padding-left: 10px;
    /* top: 0%;
    left: 0; */
    text-align: left;
}

.custom-feature-slider-card-detail-wrapper p {
    font-family: "Poppins", Sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.7rem;
    letter-spacing: 0;
    vertical-align: middle;
    color: #fff;
    padding-left: 25%;
    letter-spacing: 1px;
    position: absolute;
    width: 100%;
}

.custom-feature-slider-card-detail-wrapper span {
    color: rgba(255, 255, 255, 1);
}

.custom-feature-slider-card {
    display: flex;
    /* margin-top: 6%; */
    margin-top: 0;
    /* justify-content: space-between; */
}

.custom-feature-slider-logos {
    display: flex;
    padding-left: 5%;
    padding-top: 10px;
    padding-bottom: 10px;
    background: linear-gradient(90deg, rgba(90, 52, 192, 1) 40%, rgba(0, 0, 0, 1) 100%);
    align-items: center;
}

.custom-feature-slider-logo img {
    width: 90%;
}

.custom-feature-slider-logo {
    width: 25%;
    object-fit: cover;
}

.custom-feature-slider-card-detail-wrapper {
    text-align: left;
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 360px;
}

.custom-feature-slider-img-container {
    position: relative;
    /* width: 100%; */
    width: 45%;
}

.custom-feature-slider-img-container .custom-feature-slider-image {
    width: 100%;
    height: 100%;
    /* position: absolute;
    margin-top: 5%; */
    /* height: 400px; */
    /* min-height: 380px; */
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    position: absolute;
    top: 5%;
    border: 10px solid #000;
    border-radius: 10px;
    overflow: hidden;
    object-fit: cover;
    background-color: #fff;
}

.custom-feature-slider-img-container .custom-feature-slider-image img {
    width: 100%;
    height: 100%;
    position: relative;
}

.custom-feature-slider-card-decription {
    width: 100%;
    position: relative;
}

.arrow-icon {
    display: flex;
    align-items: center;
}

.arrow-icon i {
    color: #fff;
    font-size: 18px;
}

.slider-pagination-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.slider-pagination-title-container {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

/* All slides overlap each other */
/* Base state - hidden */
[class^="custom-feature-slider-title-"],
[class^="custom-feature-slider-description-"],
[class^="custom-slide-image-"] {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    z-index: 1;
}

/* Active slide - visible */
.active-slide {
    display: block;
    z-index: 2;
}

/* Animation classes */
.slide-left-out {
    animation: slideLeftOutFade 0.3s ease forwards;
    display: block;
    /* Keep visible during animation */
}

.slide-left-in {
    animation: slideLeftInFade 0.3s ease forwards;
    display: block;
    /* Make visible before animation */
}

.slide-right-out {
    animation: slideRightOutFade 0.3s ease forwards;
    display: block;
    /* Keep visible during animation */
}

.slide-right-in {
    animation: slideRightInFade 0.3s ease forwards;
    display: block;
    /* Make visible before animation */
}

/* Keyframes remain the same */
@keyframes slideLeftOutFade {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-30%);
        opacity: 0;
    }
}

@keyframes slideLeftInFade {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideRightOutFade {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(30%);
        opacity: 0;
    }
}

@keyframes slideRightInFade {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Ensure parent containers keep height to avoid jump */
.custom-feature-slider-card-detail-wrapper,
.custom-feature-slider-img-container,
.custom-feature-slider-arrow-title {
    position: relative;
    min-height: 50px;
}


.slider-pagination {
    display: flex;
    gap: 5px;
}

.pagination-segment {
    height: 3px;
    border-radius: 4px;
    transition: all 0.4s ease;
    /* box-shadow: 0 0 10px currentColor; */
    width: 10px;
    /* default small width */
}

/* Segments colors - adjust to match your design */
.segment-1 {
    background-color: #d3ff2f;
    color: #d3ff2f;
}

/* yellow */
.segment-2 {
    background-color: #7e5bef;
    color: #7e5bef;
}

/* purple */
.segment-3 {
    background-color: #ff2ff2;
    color: #ff2ff2;
}

/* pink */
.segment-4 {
    background-color: #ffb347;
    color: #ffb347;
}

/* orange */
/* Active segment: bigger width and stronger glow */
.pagination-segment.active {
    width: 30px;
    /* box-shadow: 0 0 15px currentColor; */
}

/*  */



/* Feature Media Query */
@media (max-width: 767px) {

    /* feature slider */
    .custom-feature-slider-wrapper .slider-pagination-title-container,
    .custom-feature-slider-card .custom-feature-slider-card-detail-wrapper p {
        padding: 0 20px !important;
    }

    .custom-feature-slider-wrapper h2 {
        /* top: 11%; */
        /* padding-left: 20px; */
        width: 50%;
        top: 14% !important;
        padding-left: 20px !important;

        /* font-sizes */
        font-size: 1.5rem !important;
        line-height: 1.8rem !important;
    }

    /*  */


    /* .custom-feature-slider-wrapper h2 {
        font-size: 1.5rem;
        line-height: 1.8rem;
    } */

    .custom-feature-slider-card-detail-wrapper p {
        font-size: 0.9rem !important;
        line-height: 1.5rem !important;
    }
}

@media (max-width: 1024px) {

    /* feature slider */
    .slider-pagination-title-container,
    .custom-feature-slider-card-detail-wrapper p {
        padding: 0 40px !important;
    }

    /* .custom-feature-slider-wrapper h2 {
        padding-left: 40px;
    } */

    .custom-feature-slider-wrapper h2 {
        font-size: 1.7rem;
        line-height: 1.8rem;
        padding-left: 40px;
    }

    .custom-feature-slider-card-detail-wrapper p {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

@media (max-width: 999px) {
    .custom-feature-slider-card {
        flex-direction: column;
    }

    .custom-feature-slider-arrow.custom-feature-slider-arrow-left,
    .custom-feature-slider-arrow.custom-feature-slider-arrow-right {
        padding: 10px 12px;
        width: 60px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .custom-feature-slider-card-decription {
        height: 180px;
        margin-top: 5%;
        margin-bottom: 5%;
    }

    .custom-feature-slider-card-detail-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column-reverse;
        justify-content: space-between;
        height: auto;
        margin-top: 0;
    }

    .custom-feature-slider-logos {
        padding: 10px 10%;
        z-index: 2;
        background: linear-gradient(90deg, rgba(90, 52, 192, 1) 0%, rgba(0, 0, 0, 1) 100%);
    }

    .custom-feature-slider-img-container {
        width: 90%;
        left: 0%;
    }

    .custom-feature-slider-img-container .custom-feature-slider-image {
        position: relative;
        margin-top: 20px;
        border: 0;
        /* min-height: 250px; */
    }

    .custom-feature-slider-card-detail-wrapper p {
        /* font-size: 16px;
        line-height: 22px; */
        padding-left: 0;
        position: relative;
        width: 100%;
        padding: 0 10px;
    }

    /* .custom-feature-slider-wrapper h2 {
        font-size: 20px;
        line-height: 24px;
    } */

    .feature-img-overlay.elementor-widget.elementor-widget-image {
        top: 140px;
        left: 0 !important;
    }

    .custom-feature-slider-card {
        margin-top: 0;
    }

    .custom-feature-slider-wrapper h2 {
        top: 13%;
    }

    .custom-feature-slider-arrow-wrapper {
        gap: 10px;
        flex-wrap: wrap;
    }
}

@media (min-width: 999px) and (max-width: 1150px) {

    /* feature slider */
    .custom-feature-slider-wrapper {
        margin: 0 20px;
    }

    .custom-feature-slider-card-detail-wrapper {
        height: 320px;
        padding-top: 50px;
    }

    .custom-feature-slider-logos {
        background: linear-gradient(90deg, rgba(90, 52, 192, 1) 0%, rgba(0, 0, 0, 1) 100%);
        padding-left: 5%;
    }

    .custom-feature-slider-card-detail-wrapper p {
        /* font-size: 20px; */
        padding-left: 15%;
    }

    .custom-feature-slider-img-container .custom-feature-slider-image {
        margin-top: 1%;
    }

    .custom-feature-slider-card {
        /* margin-top: 3%; */
        margin-top: 0;
    }

    .feature-img-overlay.elementor-widget.elementor-widget-image {
        width: 55% !important;
    }

    .custom-feature-slider-wrapper h2 {
        top: 20%;
    }
}

/* -- */