.services h2 {
    font-size: 34px;
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
    margin-bottom: 63.34px;
    color: #17307A;
}

@media screen and (max-width: 576px) {
    .services h2 {
        margin-bottom: 30px;
        font-size: 27px;
    }
}

.services .wrap {
    width: 42%;
    text-align: center;
    box-shadow: 0px 0px 6px 0px rgba(97, 136, 255, 0.15), 10px 40px 50px 0px rgba(229, 233, 246, 0.40);
    border-radius: 15px;
    transition: all .4s ease-in-out;
}

.services .wrap:nth-child(1) {
    width: 38.24%;
}

.services .wrap:nth-child(2) {
    width: 31.35%;
}

.services .wrap:nth-child(3) {
    width: 24.38%;
}

.services .wrap:nth-child(4) {
    width: 22.48%;
}

.services .wrap:nth-child(5) {
    width: 39.45%;
}

.services .wrap:nth-child(6) {
    width: 31.35%;
}

.services .wrap:nth-child(3) p,
.services .wrap:nth-child(4) p {
    max-width: 210px;
    margin: 0 auto;
}

.services .wrap.hover_effect {
    width: 41%;
}

.services .wrap.previous {
    width: calc(29% - 30px);
}

.services img {
    width: 100%;
    height: 140px;
    -o-object-fit: contain;
    object-fit: contain;
    margin-bottom: 45px;
    -o-object-position: center;
    object-position: center;

    @media (max-width: 768px) {
        height: 90px;
    }
}

.services h3 {
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;

    @media (max-width: 992px) {
        font-size: 18px;
    }
}

.services p {
    color: #0D3380;
    line-height: 1.6;
    margin: 0 auto;

    @media screen and (max-width: 1200px) {
        font-size: 14px;
        font-weight: 300;
    }
}

.services .wrap a {
    transition: color 0.3s ease-in-out;
}

.services .wrap.hover_effect a {
    color: #2753D7;
}

.services {
    background-image: url('../../../../uploads/Group1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top left;
    position: relative;
    @media screen and (max-width: 567px) {
        background: linear-gradient(180deg, #FFF 0%, rgba(97, 136, 255, 0.30) 49%, #FFF 100%) !important;
    }

    @media screen and (min-width: 1200px) {
        margin-top: 33px;
    }
}

.services .container {
    position: relative;
    z-index: 1;
}

.services .wrapper {
    background-image: url('../../../../uploads/Ellipse-459.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-evenly;
}

@media screen and (min-width: 769px) and (max-width: 992px) {
    .services .wrapper {
        gap: 10px;
    }

    .services .wrapper .wrap {
        position: relative;

        a {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            text-wrap: nowrap;
        }
    }

    .rtl .services .wrapper .wrap a {
        left: unset;
        right: 50%;
        transform: translateX(50%);
    }
}

@media screen and (max-width: 768px) {
    .services .wrapper {
        flex-direction: column;
        gap: 25px;
    }

    .services .wrapper .wrap {
        width: 100% !important;
    }
}

@media screen and (max-width: 576px) {
    .services .wrapper {
        grid-template-columns: repeat(1, 1fr);
        padding-left: 16px;
        padding-right: 16px;
    }
}

.services img {
    width: 100%;
    height: 140px;
    -o-object-fit: contain;
    object-fit: contain;
    margin-bottom: 22px;
    -o-object-position: center;
    object-position: center;

    @media (max-width: 1200px) {
        height: 90px;
    }
}

.services h3,
.services p,
.services a {
    padding-left: 25px;
    padding-right: 25px;
}

.services .wrap {
    height: 320px;
    @media screen and (min-width: 1200px) {
        height: 359px;
    }
}

.services p {
    margin-block: 7px;
    @media screen and (min-width: 1200px) {
        font-weight: 300;
    }
}

.services .wrap {
    background: #fff;
    color: #0D3380;
    flex-direction: column;
    display: flex;
    justify-content: space-between;
    padding: 25px 0;
    max-height: 359px;

    @media screen and (max-width: 1200px) {
        padding: 42px 0;
        gap: 1.7em;
    }
}

.services .wrap .text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines to show */
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.services .wrap p {
    max-height: 174px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.services .wrap:nth-child(1) p,
.services .wrap:nth-child(5) p {
    width: 85%;
    transition: width 0.3s ease-in-out;
}

.services .wrap:nth-child(2) p,
.services .wrap:nth-child(6) p {
    width: 85%;
    transition: width 0.3s ease-in-out;
}

.services .wrap:nth-child(2).previous p,
.services .wrap:nth-child(6).previous p {
    width: 70%;
    transition: width 0.3s ease-in-out;
}

.services .wrap:nth-child(3) p,
.services .wrap:nth-child(4) p {
    width: 85%;
    transition: width 0.3s ease-in-out;
}

.services .wrap.hover_effect p {
    max-width: 85%;
    transition: width 0.3s ease-in-out;
}

.services a {
    color: #2C5CED;
    position: relative;
    font-weight: 700;

    @media screen and (max-width: 1200px) {
        color: #CFDBFC;
    }
}