.funeral-steps {
    display: flex;
}

.funeral-step-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 45px 30px;
    overflow: hidden !important;
}

.funeral-step-content {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #f4f7f8;
    border-bottom: 3px solid #00344a;
    border-radius: 40px 40px 0 0;
    overflow: hidden;
    width: calc(25% - 30px);
    text-align: center;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 0px 9px 0px rgb(0 52 74 / 5%);
}

.funeral-step-content:hover {
    border-bottom-color: #b01129;
}

.funeral-step-content img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.funeral-step-title {
    color: #00344a;
    text-transform: uppercase;
    z-index: 1;
    height: 100%;
}

.funeral-step-title h3 {
    font-size: 18px !important;
    line-height: 22px !important;
    padding: 0 30px;
    display: grid;
    height: 100%;
}

.funeral-step-content span.number {
    background: #fff;
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin: -35px auto 15px auto;
    border-radius: 50%;
    box-shadow: 0px 0px 5px 0px rgb(0 52 74 / 30%);
    z-index: 9;
}

.funeral-step-content #arrow {
    position: absolute;
    left: calc(50% - 20px);
    bottom: 12px;
    width: 36px;
    height: 36px;
    background: #00344a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 12px;
    transition: .3s;
}

.funeral-step-content:hover #arrow {
    background: #b01129;
}


.funeral-step-content #arrow svg{
    font-size: 20px;
    fill: #fff;
}

.funeral-step-content .step-link {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    height: 100%;
    padding: 130px 0 45px 0;
    justify-content: flex-start;
}

@media (max-width: 1260px) {
    .funeral-step-menu {
        padding: 0 30px;
    }
}

@media (max-width: 1024px) {
    .funeral-step-content {
        width: calc(33% - 30px);
    }
    .funeral-step-menu {
        gap: 30px;
    }
}


@media (max-width: 768px) {
    .funeral-step-content {
        width: calc(50% - 15px);
    }
}

@media (max-width: 480px) {
    .funeral-step-content {
        width: 100%;
    }
    .funeral-step-menu {
        padding: 0 15px;
    }
}




/*SINGLE-----------*/

#single-step-container{
    display: flex;
}

/*left menu*/

.funeral-step-menu-left {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px 15px;
    width: 340px;
    background: #f4f7f8;
    padding: 15px 15px 15px 5px;
    border-radius: 5px;
}

.funeral-step-menu-left .funeral-step-content {
    width: 100%;
    border-radius: 0 20px 20px 0;
    border-bottom: 1px solid #f4f7f8;
    border-left: 2px solid #00344a;
    margin-left: 20px;
    overflow: visible;
}

.funeral-step-menu-left .funeral-step-content a.link{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px 15px 0;
}

.funeral-step-menu-left .funeral-step-content a.link .link-title{
    width: calc(100% - 35px);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.funeral-step-menu-left .funeral-step-content span.number {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    margin: 0 0 0 -16px;
    text-align: center;
    background: #00344a;
    color: #fff;
}

.funeral-step-menu-left .funeral-step-content p {
    width: calc(100% - 40px);
    text-transform: uppercase;
    font-size: 16px;
    line-height: 21px;
    margin: 0;
    color: #00344a;
    font-weight: 500;
}

.funeral-step-menu-left .funeral-step-content .elementor-icon-wrapper{
    width: 25px;
    height: 22px;   
}

.funeral-step-menu-left .funeral-step-content svg{
    fill: #00344a;
    font-size: 22px;
}

/*left menu survols*/



/*left menu active class*/

.funeral-step-menu-left .funeral-step-content.active {
    /*border-left-color: #b01129;*/
    background-color: #00344a;
}
.funeral-step-menu-left .funeral-step-content.active a.link{
    pointer-events: none;
}
.funeral-step-menu-left .funeral-step-content.active span.number {
    width: 29px;
    height: 29px;
    border: 1px solid #ffffff;
    line-height: 29px;
}
.funeral-step-menu-left .funeral-step-content.active p {
    color: #fff;
    font-weight: 400;
}
.funeral-step-menu-left .funeral-step-content.active svg{
    /*fill: #b01129;*/
}


/*content*/

.funeral-steps:has(.funeral-step-menu-left){
    display: flex;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.funeral-step-content-text{
    width: calc(100% - 340px);
    padding-left: 60px;
}

.funeral-step-content-text{
    width: calc(100% - 340px);
    padding-left: 60px;
}

.funeral-step-content-text h1 {
    display: flex;
    flex-direction: column;
    gap: 0 12px;
    text-align: center;
    font-size: 36px !important;
    line-height: 44px !important;
    font-weight: 500 !important;
    background: #f4f7f8;
    color: #00344a;
    padding: 15px 30px 30px 30px;
    margin: 0;
    border-radius: 20px 20px 0 0;
}


.funeral-step-content-text .description p{
    text-align: center;
    background: #f4f7f8;
    margin-bottom: 0;
    padding: 0 30px 30px 30px;
}

.funeral-step-content-text img{
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0 0 20px 20px;

}

.funeral-step-content-text .points-importants {
    margin: 30px 0 45px 0;
    border-left: 2px solid #95c11f;
    padding-left: 30px;
}

.funeral-step-content-text .points-importants h2{
    font-size: 24px!important;
    line-height: 24px!important;
}

.funeral-step-content-text .content{
    margin: 30px 0 60px 0;
    padding-top: 30px;
    border-top: 2px solid #f4f7f8;
}

/*Single responsive*/

@media (max-width: 1260px) {
    #single-step-container {
        padding: 0 15px;
    }
}

@media (max-width: 1024px) {
    .funeral-step-menu-left {
        width: 280px;
    }
    .funeral-step-content-text {
        width: calc(100% - 280px);
        padding-left: 30px;
    }
    .funeral-step-content-text h1 {
        font-size: 30px !important;
        line-height: 38px !important;
    }
    .funeral-step-content-text .points-importants {
        padding-left: 18px;
    }
    .funeral-step-menu-left .funeral-step-content p{
        font-size: 14px;
        line-height: 18px;
    }
    .funeral-step-menu-left .funeral-step-content svg {
        font-size: 20px;
        margin-top: 1px;
    }
}


@media (max-width: 768px) {
    .funeral-steps:has(.funeral-step-menu-left) {
        margin-top: -90px;
    }
    #single-step-container {
        flex-direction: column-reverse;
    }
    .funeral-step-menu-left, .funeral-step-content-text {
        width: 100%;
    }
    .funeral-step-content-text{
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .funeral-steps:has(.funeral-step-menu-left) {
        margin-top: -105px;
    }
    #single-step-container {
        padding: 0 5px;
    }
    .funeral-step-content-text h1 {
        font-size: 28px !important;
        line-height: 36px !important;
    }
}
