.service_grid {
    margin: -160px 0 0; 
    .service_grid_inner {
        background: #FFFFFF;
        border: 1px solid #E0E6F2;
        box-sizing: border-box;
        box-shadow: 0px 6px 15px rgb(31 68 150 / 10%);
        border-radius: 20px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin: 0 0 80px;
        position: relative;
        overflow: hidden;
        .service_heading_box {
            width: 45%;
            display: inline-flex;
            flex-direction: column;
            justify-content: center;
            padding: 0 20px 0 50px;
            background-image: url('/images/service_shape_1.png');
            background-repeat: no-repeat;
            background-size: contain;
            .service_heading {
                font-weight: 800;
                font-size: 40px;
                line-height: 100%;
                color: #0B2766;
                span {
                    display: block;
                }
            }
            .subheading {
                font-size: 16px;
                line-height: 170%;
                color: #5673B1;
            }
        }
        .service_content_wrap {
            width: 55%;
            padding: 42px 0;
            h2 {
                font-weight: 800;
                font-size: 12px;
                line-height: 110%;
                letter-spacing: 0.2em;
                text-transform: uppercase;
                color: #0B2766;
                padding: 0 0 12px 6px;
            }
            ul {
                display: flex;
                flex-wrap: wrap;
                li {
                    padding: 0 6px;
                    p {
                        font-weight: 800;
                        font-size: 14px;
                        line-height: 150%;
                        color: #0B2766;
                        padding: 0 0 3px;
                    }
                    &:nth-child(1), &:nth-child(2) {
                        padding-bottom: 15px;
                    }
                    a {
                        display: inline-block;
                        width: 100%;
                        img {
                            border-radius: 5px;
                            width: 100%;
                            object-fit: cover;
                            display: flex;
                            transition: all 0.5s ease-in-out;
                            opacity: 0.7;
                        }
                        &:hover {
                            img {
                                opacity: 1;
                            }
                        }
                    }
                }
            }
        }
        &:nth-child(2) {
            .service_content_wrap {
                width: 65%;
                padding: 42px 0 42px 40px;
            }
            .service_heading_box {
                width: 35%;
                text-align: right;
                background-image: url(/images/service_shape_2.png);
                background-position: right;
                padding: 0 40px 0 20px;
            }
        }
        &:nth-child(3) {
            .service_heading_box {
                position: absolute;
                top: 50%;
                left: 0;
                transform: translate(0, -50%);
                background-image: url(/images/service_shape_3.png);
                height: 100%;
            }
            img {
                display: flex;
            }
        }
        &:nth-child(4) {
            .service_heading_box {
                position: absolute;
                top: 50%;
                right: 0;
                transform: translate(0, -50%);
                text-align: right;
                background-image: url(/images/service_shape_4.png);
                height: 102%;
                background-position: right;
                padding: 0 40px 0 20px;
            }
            img {
                display: flex;
            }
        }
        &:last-child {
            margin-bottom: 0;
        }
    }
}
@media (max-width: 767.5px) {
    .service_grid {
        margin: 0;
        padding: 40px 0 0;
        .service_grid_inner {
            padding: 30px 0 30px;
            margin: 0 0 30px;
            display: flex;
            flex-direction: column;
            .service_heading_box {
                width: 100%;
                background-image: none;
                text-align: center;
                padding: 0 20px 0 20px;
                order: 1;
                .service_heading {
                    font-size: 25px;
                    span {
                        display: inline;
                    }
                }
            }
            .service_content_wrap {
                width: 100%;
                padding: 30px 0 0;
                text-align: center;
                order: 2;
                h2 {
                    padding: 0 20px 12px 20px;
                }
                ul {
                    li {
                        width: 100%;
                        padding: 0 6px 15px;
                        a {
                            img {
                                margin: 0 auto;
                                width: initial;
                            }
                        }
                    }
                }
            }
            &:nth-child(2) {
                .service_content_wrap {
                    width: 100%;
                    padding: 30px 0px 0;
                }
                .service_heading_box {
                    width: 100%;
                    text-align: center;
                    background-image: none;
                    padding: 0 20px 0 20px;
                }
            }
            &:nth-child(3), &:nth-child(4) {
                padding: 0;
                min-height: 150px;
                flex-direction: initial;
                .service_heading_box {
                    background-image: none;
                    text-align: center;
                    background: linear-gradient(0deg, rgba(31, 68, 150, 0.85), rgba(31, 68, 150, 0.85));
                    transition: all 0.5s ease-in-out;
                    .service_heading {
                        color: #fff;
                    }
                    h1 {
                        font-size: 20px;
                    }
                    .subheading {
                        font-size: 14px;
                        line-height: 130%;
                        color: #fff;
                        padding: 10px 0 0;
                    }
                    &:hover {
                        background: linear-gradient(0deg, rgb(31 68 150 / 52%), rgb(31 68 150 / 52%));
                    }
                }
                img {
                    object-fit: cover;
                    height: 100%;
                }
            }
        }
    }
}
@media (min-width: 768px) and (max-width: 991.5px) {
    .service_grid {
        margin: 0;
        padding: 50px 0 0;
        .service_grid_inner {
            margin: 0 0 50px;
            .service_heading_box {
                padding: 0 20px 0 30px;
                width: 40%;
                .service_heading {
                    font-size: 25px;
                }
                .subheading {
                    font-size: 14px;
                    line-height: 130%;
                    padding: 10px 0 0;
                }
            }
            .service_content_wrap {
                width: 60%;
                ul {
                    li {
                        p {
                            font-size: 10px;
                        }
                    }
                }
            }
            &:nth-child(1) {
                .service_content_wrap {
                    padding: 20px 10px 20px 0px;
                    ul {
                        li {
                            &:nth-child(1), &:nth-child(2) {
                                width: 50%;
                            }
                            &:nth-child(3), &:nth-child(4), &:nth-child(5) {
                                width: 33.3%;
                            }
                        }
                    }
                }
            }
            &:nth-child(2) {
                .service_content_wrap {
                    padding: 20px 0px 20px 20px;
                    ul {
                        li {
                            width: 50%;
                        }
                    }
                }
            }
            &:nth-child(3) {
                .service_heading_box {
                    padding: 0 20px 0 30px;
                    width: 50%;
                }
            }
        }
    }
}
@media (min-width: 992px) and (max-width: 1199.5px) {
    .service_grid {
        margin: -50px 0 0;
        .service_grid_inner {
            margin: 0 0 50px;
            .service_heading_box {
                .service_heading {
                    font-size: 30px;
                }
            }
            &:nth-child(1) {
                .service_content_wrap {
                    padding: 42px 10px 42px 0px;
                    ul {
                        li {
                            &:nth-child(1), &:nth-child(2) {
                                width: 50%;
                            }
                            &:nth-child(3), &:nth-child(4), &:nth-child(5) {
                                width: 33.3%;
                            }
                        }
                    }
                }
            }
            &:nth-child(2) {
                .service_content_wrap {
                    padding: 42px 0px 42px 20px;
                    ul {
                        li {
                            width: 50%;
                        }
                    }
                }
            }
            .service_content_wrap {
                ul {
                    li {
                        p {
                            font-size: 13px;
                        }
                    }
                }
            }
        }
    }
}