.services-dir{
    direction: rtl;
}

.headerservices {
    background: #1b427e;
    color: #ffffff;
    text-align: center;
}
.headerservices1 {
    background: url(../images/service.png) no-repeat;
    background-size: 25%;
    height: 250px;
    background-position: center;
}

@media (max-width: 767px) {
    .headerservices1 {
        display: none;
    }
}


.servicesBox {
    height: 100%;
    padding: 110px 20px 10px;
    background: #fff;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 55px 5px rgba(137, 173, 255, 0.35);
}

.servicesBox .service-icon {
    color: #3765ad;
    line-height: 300px;
    font-size: 50px;
    position: absolute;
    top: -90px;
    left: 50%;
    transform: scale(1) translateX(-50%);
    transition: all 0.8s ease 0s;
}
.servicesBox .service-icon img{
    width: 40%;
}

.servicesBox:hover .service-icon {
    font-size: 65px;
}

.servicesBox .title {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin: 0 0 50px 0;
}

.servicesBox:hover .title {
    color: #2b2bb9;
}

.servicesBox .description {
    font-size: 14px;
    color: #808080;
    line-height: 21px;
    margin-bottom: 10px;
}

.servicesBox .read-more {
    position: absolute;
    bottom: 15px;
    left: 30%;
    display: inline-block;
    padding: 5px 15px;
    font-size: 14px;
    color: #fff !important;
    background: linear-gradient(to top, #4049a9, #89ace0);
    border-radius: 10px 10px 0 0;
    transform: translateY(150px);
    transition: all 0.5s ease 0s;
}

.servicesBox .read-more:hover {
    color: #fff;
    box-shadow: 0 0 5px #000;
}

.servicesBox:hover .read-more {
    transform: translateY(0);
}

.services-close {
    margin: -1rem auto -1rem -1rem !important;
}

.services4 {
    color: #2c64a0;
}

.services-modal.modal.fade.show{
    background-color: #07215aba;
}

.services-modal .modal-content{
    background-color: transparent !important;
    color: white;
    direction: rtl;
    border: 0 !important;
}

.services-modal .close , .services-modal .close:hover {
    font-size: 40px;
    color: #ffffff;
}

.services-modal .modal-body {
    text-align: justify;
}

.services-modal .modal-body i ,.services-modal .modal-body p  {
    float: right;
}

.services-modal .modal-title {
    text-align: right;
}

.services-modal .modal-footer .btn-order{
    color: #fff;
    background-color: #0022e2;
    border-color: #111c9b;
    padding: 8px 20px;
}

@media (min-width: 576px){
    .services-modal .modal-dialog {
        max-width: 600px ;
        margin-top: 6rem ;
    }
}

@media only screen and (max-width: 1200px) {
    .servicesBox .service-icon {
        width: 160px;
        height: 160px;
        line-height: 240px;
        top: -80px;
    }
}

@media only screen and (max-width: 990px) {
    .servicesBox {
        margin-bottom: 30px;
    }

    .servicesBox .service-icon {
        width: 200px;
        height: 200px;
        line-height: 300px;
        top: -90px;
    }
}

.contentbox {
    box-shadow: 0 10px 55px 5px rgba(137, 173, 255, 0.35);
    border-radius: 20px;
}

@media (max-width: 767px) {
    .headerservices h1 {
        font-size: 20px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .headerservices {
        height: 150px;
    }
}

@media (max-width: 575px) {
    .headerservices {
        background: #1b427e;
        height: 150px;
    }
}

.modal-header .close {
    padding: 0.5rem !important;
}
