.howitworks-block {
    background: #fff;
    height: 100vh;
}
/* .d-slider {
    position: relative;
} */
.steps-container h3 {
    color: #1D1F2A;


}
body #primary{
    overflow: visible !important;
}
.dot-navigation .d-dot.show:hover {
    cursor: pointer;
    color: #1D1F2A;
}
.d-slider {
    position: relative;
    height: 200vh;
    background-color: #fff;
    z-index: 10;
    /* padding: 90px 0 !important; */
}

.sticky-container {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    bottom: 0;
    height: 100vh;
    z-index: 10;
    background-color: inherit;
    overflow: hidden;
    /* transform: translateY(-50%); */
    padding: 112px 0 !important;
    display: flex;
    width: 100% !important;
    align-items: center;
    justify-content: center;
}
.container.sticky-container .row {
    width: 100%;
    height: 100%;
    align-items: center;
}
.d-slider{
    padding:0 !important;
}
/* .container.sticky-container  .d-steps{
    height: 100%;
} */

.container.sticky-container h2{
    color: #1D1F2A;
font-family: "Bai Jamjuree";
font-size: 60px;
font-style: normal;
font-weight: 600;
line-height: 1; /* 84px */
}
.dot-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 100px;
    position: relative;
}

.dot-navigation .d-dot {
    display: none;
}


.dot-navigation .d-dot.show{
    display: inline-flex;
    position: relative;
    z-index: 101;
        transition: opacity 0.4s ease, color 0.4s ease; /* Transition for opacity and color */

}
.dot-navigation:before {
    content: "";
    width: 1px;
    height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    /* right: 0; */
    /* bottom: 0; */
    background: #9BA1BB;
    transform: translate(-50%, -50%);
    z-index: 100;
}
.d-dot.show.active {
    border-radius: 50%;
    border: 2px solid transparent;
    color: color: #1D1F2A;
    color: #1D1F2A;
    position: relative;
}

.dot-navigation .d-dot.show span {
    position: relative;
    z-index: 99;
}


.d-dot.show:after {
    position: absolute;
    content: " ";
    width: 100%;
    height: 100%;
    background: linear-gradient(white, white) padding-box, linear-gradient(90deg, #FFAE00, #FF574D 17%, #FF0099 34%, #4739EA 73.5%) border-box;
    /* z-index: 101 !important; */
    top: 0;
    left: 0;
    opacity: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: opacity 0.4s ease;

}
.d-dot.show.active:after {
    opacity: 1;
}
.d-dot.show.active {
    opacity: 1; /* Fade in when active */
    color: #1D1F2A;
}



.d-dot.show {
    width: 56px;
    height: 56px;
    color: #9BA1BB;;
    text-align: center;
    font-family: "Bai Jamjuree";
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
    border: solid 2px #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: color 0.4s ease;

}

@keyframes fadeToGradient {
    0% {
       
        opacity: 0;
    }
    100% {
        opacity: 1;
      
    }
}

/* @keyframes fadeToWhite {
    0% {
        opacity: 0;
        background: linear-gradient(white, white) padding-box, 
                    linear-gradient(90deg, #FFAE00, #FF574D 17%, #FF0099 34%, #4739EA 73.5%) border-box;
    }
    100% {
        opacity: 1;
        background: #fff;
    }
} */
/* section.text-block {
    background: #1D1F2A;
    color: #fff;
} */
.d-slider:before{
    content: "";
    position: absolute;
    top:0;
    right:0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 100;
    transform-origin: top center;
    left: 0;
    margin: 0 auto;
    transition: width .6s cubic-bezier(0.76,0,0.24,1);

}
.d-slider{
    background-color: #252836;
}
.scroll-at-top.d-slider:before{
    width:90%;
}
.container.sticky-container{
    background-color: #fff;
    z-index: 101;
}
.d-slider h3{
    cursor: pointer;
    color: #9BA1BB;
    font-family: "Bai Jamjuree";
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 67.2px */
    text-align: left;
	    transition: unset;
}
.d-slider h3.active,
.d-slider h3:hover {
    color: #1D1F2A;
    transition: all 0.2s ease-in;
}
.steps-container {
    position: relative;
    width: 100%;
    height: 100%;

}


/* Base styles for all steps */
.step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    text-align: left;
    opacity: 0; /* Hidden by default */
    pointer-events: none; /* Prevent interaction while inactive */
}

/* Keyframes for fading in and moving upwards */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px); /* Start from below */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* End at original position */
    }
}

/* Keyframes for fading out and moving upwards */
@keyframes fadeOutUp {
    0% {
        opacity: 1;
        transform: translateY(0); /* Start at original position */
    }
    100% {
        opacity: 0;
        transform: translateY(-50px); /* Move upwards and fade out */
    }
}

/* Active step (fading in and moving up) */
.step.active {
    animation: fadeInUp 0.3s cubic-bezier(0.25, 0.8, 0.25, 1)  forwards; /* Fade in from below and move up */
    
    pointer-events: all; /* Enable interaction when active */
    z-index: 1; /* Ensure it's on top */
}

/* Step that is exiting (fading out) */
.step.prev {
    animation: fadeOutUp 0.3s cubic-bezier(0.25, 0.8, 0.25, 1)  forwards; /* Fade out and move up */
    pointer-events: none; /* Disable interaction during fade out */
    z-index: 0; /* Lower z-index for exiting steps */
}




.container.sticky-container h2 {
    margin-bottom: -28px;
   
}
.container.sticky-container .col-12-md{
    margin:0;
    
}

.step h4 {
    margin-top: 30px;
    color: #1D1F2A;
    font-family: "Bai Jamjuree";
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
    border-bottom: solid 1px #9BA1BB;
    display: block;
    padding-bottom: 10px;
}

.step h4 span{
    color: #9BA1BB;
font-family: "Bai Jamjuree";
font-size: 24px;
font-style: normal;
font-weight: 300;
line-height: 140%;

padding: 0 10px;
}
.step p{
    color: #252836;
font-family: "Bai Jamjuree";
font-size: 20px;
font-style: normal;
font-weight: 500;
line-height: 140%; /* 28px */
}

@media (max-width:768px){
    .container.sticky-container h2 {
        margin-bottom: 30px;
        padding: 0 20px;
        font-size: 36px;
        text-align: center;
     
    }
    .container.sticky-container {
        background-color: #fff;
        z-index: 101;
    }

    .d-slider h3{
        font-size: 28px;
    }  
    .dot-navigation{
        flex-direction: row;
    }  
    .dot-navigation:before {
        content: "";
        width: 90%;
        height: 1px;
        position: absolute;
        top: 50%;
        left: 50%;
        right: 0;
        bottom: 0;
        background: #9BA1BB;
        transform: translate(-50%, -50%);
        z-index: 100;
        /* left: 0; */
        /* right: 0; */
        /* margin: 0 auto; */
    }
    .container.sticky-container{
        position: relative;
    }
    /* .d-slider{
        height: 120vh;
    } */
    .row.slider .col-5-md{
        flex-wrap: nowrap !important;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 25px;
    }
    .d-slider:before{
        display: none;
    }
    .container.sticky-container .d-steps,
    .container.sticky-container,
    .d-slider{
        height: auto;
    }
    .dot-navigation{
        justify-content: space-between;
        max-width: 450px;
        margin: 0 auto;
    }
}