/***************************
    Style for small devices
***************************/
@media screen and (max-width: 1150px) {

    header{
        height: auto;
    }

    header .wrapper {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    header #logo {
        width: calc(100% - 70px);
        float: none;
        margin: 0;
    }

    #logo .name {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    #logo .logo-pic {
        float: none;
        flex-shrink: 0;
    }

    #logo .logo-pic img {
        width: 58px;
        height: auto;
    }

    #logo .tagline {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-top: 0;
        min-width: 0;
        text-align: right;
    }

    #logo .tagline p {
        padding: 0;
        margin: 0;
        line-height: 1.05;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #logo .tagline .arabic {
        font-size: 14px;
    }

    #logo .tagline .english {
        font-size: 10px;
    }

    #nav-icon-container {
        display: block;
        float: none;
        width: 70px;
        margin: 0;
        margin-right: auto;
        padding-right: 0;
    }

    #nav-icon {
        display: block;
        width: 45px;
        height: 45px;
        position: relative;
        margin: 0 auto;
        transform: rotate(0deg);
        transition: .7s ease-in-out;
        cursor: pointer;
    }

    #nav-icon span {
        display: block;
        position: absolute;
        height: 5px;
        width: 80%;
        background: #fff;
        border-radius: 9px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .35s ease-in-out;
    }

    #nav-icon span:nth-child(1) {
        top: 0px;
    }

    #nav-icon span:nth-child(2),
    #nav-icon span:nth-child(3) {
        top: 15px;
    }

    #nav-icon span:nth-child(4) {
        top: 30px;
    }

    #nav-icon.open span:nth-child(1) {
        top: 18px;
        width: 0%;
        left: 50%;
    }

    #nav-icon.open span:nth-child(2) {
        transform: rotate(45deg);
    }

    #nav-icon.open span:nth-child(3) {
        transform: rotate(-45deg);
    }

    #nav-icon.open span:nth-child(4) {
        top: 18px;
        width: 0%;
        left: 50%;
    }

    nav {
        width: 100%;
        order: 3;
        display: block;
        height: auto;
        float: none;
        text-align: right;
        margin: 8px 0 0;
    }

    nav::before {
        content: "";
        display: block;
        clear: both;
    }

    nav ul li {
        display: block;
        width: 98%;
        text-align: right;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    nav ul{
        margin-top: 10px;
        background: #1d2730;
        display: none;
        border: 1px solid #FB9902;
        border-radius: 10px;
    }

    nav ul.open-nav{
        transition: .25s ease-in-out;
        display: block;
    }

    nav ul li{
        border-bottom: 1px solid #FB9902;
    }

    #language{
        border-bottom: none;
    }

    nav li a:hover, 
    .active{
        color: #033455;
        background: #FB9902
    }

    nav li img{
        padding-right: 10px
    }

    .caption-text h1{
        font-size: 1.5em
    }

    p{
        font-size: 18px;
    }

    .service-container{
        width: 50%;
    }

    .partner {
        width: 35%;
    }

    .contact-text{
        display: block;
        width: 95%;
        padding-top: 10px;
    }

    .contact-text{
        display: block;
        width: 95%;
        padding-top: 15px;
    }

    .location{
        display: block;
        width: 95%;
        padding-top: 10px;
        text-align: right
    }

}

@media screen and (max-width: 950px) {

    .caption-text h1{
        font-size: 1.2em
    }

    .service-container {
        width: 70%;
    }

    
}

@media screen and (max-width: 750px) {
    .signature {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }
    
    #banner {
        height: 450px;
    }

    #banner img {
        height: 450px;
    }
}


@media screen and (max-width: 650px) {
    .about-icons{
        display: block;
        width: 98%
    }

    .service-container {
        width: 85%;
    }
}

@media screen and (max-width: 550px) {

    .caption-text h1{
        font-size: 18px
    }

    .partner{
        display: block;
        width: 100%;
    }
    
     .icons-container,
    .rights{
        width: 95%;
        float: none;
        text-align: center;
    }


}

@media screen and (max-width: 450px) {
    
    .contact-text p{
        font-size: 16px;
    }
    
    #logo .tagline p{
        padding: 0;
        margin: 0;
        line-height: 1.05;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #logo .tagline{
        margin-top: 0;
    }

    #logo .tagline .english{
        font-size: 9px;  
    }
    
    #logo .tagline .arabic{
        font-size: 12px;
    }
    
    #banner {
        height: 300px;
    }

    #banner img {
        height: 300px;
    }

}
