html {
    font-family: sans-serif;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

.text-center {
    text-align: center;
}

.color-white {
    color: #fff;
}



.box-containerr {
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
    width: 100%;
    position: relative;
    z-index: 9;
    /* background: #F2F2F2; */

}

.flagbearer {
    width: 100%;
    position: relative;
    z-index: 10;
    background: rgb(214, 214, 214);
    background: linear-gradient(90deg, rgba(214, 214, 214, 1) 0%, rgba(192, 240, 176, 1) 100%);
    background: #F2F2F2;
    padding: 35px;
}

.box-itemm {
    position: relative;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    width: 313px;
    margin-bottom: 35px;
    /* max-width: 100%; */
}


.flip-boxx {
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

.flip-boxx-front,
.flip-boxx-back {
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    min-height: 250px;
    -ms-transition: transform 0.7s cubic-bezier(.4, .2, .2, 1);
    transition: transform 0.7s cubic-bezier(.4, .2, .2, 1);
    -webkit-transition: transform 0.7s cubic-bezier(.4, .2, .2, 1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: relative;
}

.flip-boxx-front {
    -ms-transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
    -webkit-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.flip-boxx:hover .flip-boxx-front {
    -ms-transform: rotateY(-180deg);
    -webkit-transform: rotateY(-180deg);
    transform: rotateY(-180deg);
    -webkit-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.flip-boxx-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    -ms-transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    -webkit-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
    background: #ee1e24;
    color: #fff;
}

.flip-boxx-back p {
    position: absolute;
    top: 105px;
    width: 92%;
    left: 4%;
}

.flip-boxx:hover .flip-boxx-back {
    -ms-transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
    -webkit-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.flip-boxx .inner {
    /* position: absolute;
    left: 0; */
    width: 100%;
    /* padding: 60px; */
    padding: 33px;
    outline: 1px solid transparent;
    -webkit-perspective: inherit;
    perspective: inherit;
    z-index: 2;

    transform: translateY(-50%) translateZ(60px) scale(.94);
    -webkit-transform: translateY(-50%) translateZ(60px) scale(.94);
    -ms-transform: translateY(-50%) translateZ(60px) scale(.94);
    top: 50%;
}

.flip-boxx-header {
    font-size: 22px;
    color: #ffffff;
    background-color: #ee1e24;
    position: absolute;
    top: 30px;
    padding: 5px;
    width: 100%;
    left: 0
}

.flip-boxx p {
    font-size: 17px;
    line-height: 1.5em;
}

.flip-boxx-img {
    /* margin-top: 154px; */
    width: 31px;
    color: #ee1e24;
    background-color: #00000038;
    border-radius: 50%;
    font-size: 30px;
    position: absolute;
    bottom: -210px;
}

.flip-boxx-button {
    /* border: 2px solid #F2F2F2; */
    /* border-radius: 2px; */
    color: #000;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
    /* padding: 15px 20px; */
    /* text-transform: uppercase; */
    font-weight: 400;
    position: relative;
    display: inline-block;
}

.color-black {
    color: #000;
    margin-bottom: 6px;
}

.flip-boxx-button::before {
    position: absolute;
    content: "";
    width: 30%;
    background-color: #ee1e24;
    height: 2px;
    bottom: 1px;
    left: 0;
    transition: all 1s ease;
}

.flip-boxx-button:hover::before {
    width: 100%;
}


.flagbearer .header {
    color: #000000;
    font-size: 40px;
    font-style: normal;
    font-weight: 600;
    line-height: 63px;
    text-align: center;
    margin-bottom: 24px;
}

@media only screen and (max-width: 777px) {
    .box-itemm {
        width: 92%;
        min-height: 225px;
        margin-bottom: 0;
    }

    .box-containerr {
        justify-content: space-around !important;
    }

    .bigfont {
        font-size: 23px;
        text-align: center;
        color: #000;
    }

    .service.page {
        padding-top: 0;
    }

    .section-header {
        margin-top: 30px !important;
    }

    .flip-boxx-front,
    .flip-boxx-back {
        min-height: 243px;
    }

    .flip-boxx .inner {
        padding: 5px;
    }

    .flip-boxx-header {
        font-size: 15px;
        top: 12px;
    }

    .flip-boxx p {
        font-size: 13px;
        line-height: 1.5em;
    }

    .flip-boxx-button {
        font-size: 13px;
    }

    .flip-boxx-img {
        margin-top: 25px;
        margin-top: 45px;
        width: 31px;
        bottom: -239px;
    }

    .flagbearer {
        padding: 10px;
    }

    .flagbearer .header {
        font-size: 27px;
        font-style: normal;
        font-weight: 600;
        line-height: 39px;
        margin-top: 20px;
    }
}