.flip-container {
    height: 525px;
    width: 400px;
    margin: 0px auto 20px;
}

.card-inner-text {
    text-align: center;
}

.card-inner-text h2 {
    font-size: 22px;
    color: #0083C3;
    font-weight: bold;
}

.card-inner-text p {
    font-size: 16px;
    color: #454545;
    font-weight: 600;
}

.flip-content {
    transition: transform 1s;
    transform-style: preserve-3d;
}

/* Front and Back for overall flip */
.flip-front,
.flip-back {
    position: absolute;
    backface-visibility: hidden;
}

.flip-back {
    transform: rotateY(180deg);
}

/* Styling for Ribbon */
.ribbon-container {
    width: 95%;
    margin: 0 auto;
    height: 50px;
    display: flex;
}

.ribbon {
    background: #125A9E;
    border: 1px solid #125A9E;
    color: white;
    font-size: 18px;
    font-weight: bold;
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 49.96px;
}

.ribbon-container .left-corner-ribbon {
    border: 25px solid #125A9E;
    border-left-color: transparent;
    height: 49.96px;
}

.ribbon-container .right-corner-ribbon {
    border: 25px solid #125A9E;
    border-right-color: transparent;
    transform-origin: 0 0;
    height: 49.96px;
}


.middle-text {
    background-color: #fff;
    color: #0083C3;
    font-size: 18px;
    line-height: 50px;
    font-weight: bold;
    text-align: center;
}


/* Card Styles */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.image-card {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.step-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(180deg, #EFF7FE -8.93%, rgba(248, 250, 251, 0.22) 206.25%);
    border: 1px solid #C8EDFF;
}

.flip-card {
    width: 170px;
    min-height: 216px;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    background: #FAFAFA;
    color: #03446A;
    border: 1px solid #C8EDFF;
    padding: 12px;
}

/* Front and Back for individual cards */


.flip-container .flip-content.flipped {
    transform: rotateY(180deg);
}

@media screen and (min-width: 786px) {
    .flip-container:hover .flip-content {
        transform: rotateY(180deg);
    }
}

@media screen and (max-width:768px) {
    .card-container {
        gap: 10px;
    }

    .ribbon-container {
        width: 100%;
    }

    .ribbon p {
        font-size: 21px;
    }

    .flip-container {
        position: relative;
        height: 515px;
        width: 330px;
        perspective: 5000px;
    }

    .middle-text {
        color: #0083c3;
        font-size: 18px;
        line-height: 50px;
        font-weight: 600;
        text-align: center;
    }

    .flip-card {
        width: 160px;
        /* height: 170px; */
        position: relative;
        border-radius: 5px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
        background: #fafafa;
        color: #03446a;
        border: 1px solid #c8edff;
    }

    .card-inner-text h2 {
        font-size: 16px;
    }

    .card-inner-text p {
        font-size: 13px;
    }

    .ribbon-container {
        position: relative;
    }

    .ribbon {
        margin: 0 auto;
        height: 49.96px;
    }

    .left-corner-ribbon,
    .right-corner-ribbon {
        position: absolute;
        z-index: -1;
    }

    .left-corner-ribbon {
        left: 0;
    }

    .right-corner-ribbon {
        right: 0;
    }
}