.header-top {
    background: #750000;
    padding: 8px 50px;
    font-size: 15px;
    display: flex;
    justify-content: space-between
}

.header-top i {
    font-size: 15px;
    color: #fff
}

.header-top .fa-phone {
    font-size: 13px;
    color: #fff
}

.header-top a {
    color: #fff;
}
.header-top .right a {
    border-right: 1px solid #fff;
    padding: 0px 10px;
}
.header-top .right a:nth-child(3) {
    border-right: none;
}

.header-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 50px;
}

.header-middle .sub-logo img {
    width: 90px;
}

.hiring {
    width: 17%;
    height: auto;
    position: relative;
    top: -8px;
    left: 0%;
    animation: moveIt 1.25s ease-in-out alternate infinite;
    background-position: center;
    display: flex;
    margin: auto;
}

@keyframes moveIt {
    0% {
        transform: translateX(-10px) scale(0., 1) rotateX(-30deg);
    }

    100% {
        transform: translateX(20px) scale(1, .9) rotateY(30deg);
    }
}

nav {
    background: #314F08;
    position: absolute;
    left: 60px;
    width: 90%;
    margin: auto;
    padding: 3px 0;
    text-align: center;
    z-index: 888;
    margin-bottom: 5%;
}

nav::after {
    content: '';
    clear: both;
    display: table;
}

.mobile-show {
    display: none;
}

nav ul {
    position: relative;
}

nav ul li {
    background: #314F08;
    display: inline-block;
    z-index: 100;
}

nav ul li a {
    color: #fff;
    line-height: 50px;
    font-size: 16px;
    padding: 0px 15px;
}

nav ul ul {
    position: absolute;
    top: 90px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: top .5s;
}

nav ul li:hover > ul {
    top: 48px;
    opacity: 1;
    visibility: visible;
}

nav ul li ul li a {
    line-height: 40px;
}

nav ul li ul li:hover {
    background: #750000;
}

nav ul ul li {
    position: relative;
    float: none;
    display: list-item;
    border: 0.5px solid #f1f1f1;
}

.show,
.icon,
input[type="checkbox"] {
    display: none;
}

.header-scrolled {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 40px;
    right: 40px;
    background-color: #6aaf08;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
}

.float1 {
    bottom: 100px;
    background-color: #750000;
    border-radius: 50%;
}

.float1 img {
    width: 45px;
    position: sticky;
    margin: 0 0 13px 1px;
}

.free_quote {
    position: fixed;
    right: -45px;
    bottom: 30%;
    transform: rotate(270deg);
    background-color: #314F08;
    padding: 15px 10px 10px 10px;
    color: #fff;
    font-size: 17px;
    z-index: 1000;
}

.free_quote_2 {
    position: fixed;
    left: -55px;
    bottom: 25%;
    transform: rotate(270deg);
    background-color: #750000;
    padding: 15px 10px 10px 10px;
    color: #fff;
    font-size: 17px;
    z-index: 1000;
}

.popup-box {
    background: #314F08;
    padding: 15px 10px;
    transform: rotate(270deg);
    display: inline-block;
    position: fixed;
    border: 1px solid #fff;
    bottom: 40%;
    right: -55px;
}

.button {
    font-size: 16px;
    padding: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease-out;
}

.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding-top: 10%;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
}

.overlay:target {
    visibility: visible;
    opacity: 1;
    z-index: 999;
}

.popup {
    margin: 0px auto;
    padding: 70px;
    background: #cccccc;
    color: #fff;
    border-radius: 5px;
    width: 60%;
    position: relative;
    transition: all 5s ease-in-out;
}

.popup h2 {
    margin-top: 0;
    color: #333;
    font-family: Tahoma, Arial, sans-serif;
}

.popup .close {
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.popup .close:hover {
    color: #314F08;
}

.popup .content {
    max-height: 30%;
    overflow: auto;
}

/*============================================ media =========================================== */

@media(max-width: 992px) {
    .hiring {
        display: none;
    }

    .header-top {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    nav {
        width: 100%;
        position: absolute;
        left: 0px;
        height: 50px;
        padding: 7px;
        z-index: 1000;
    }

    .mobile-show {
        position: absolute;
        left: 30px;
        color: #fff;
        display: block;
        font-size: 18px;
        padding: 7px 0 0 ;
    }

    nav ul {
        text-align: left;
        margin-right: 0;
    }

    nav ul li,
    nav ul ul li {
        display: block;
        width: 100%;
    }

    nav ul ul {
        top: 70px;
        position: static;
        float: none;
        display: none;
        opacity: 1;
        visibility: visible;
    }

    nav ul ul li {
        border: none;
    }

    .icon  {
        display: block;
        color: #fff !important;
        font-size: 30px !important;
        position: absolute;
        right: 40px;
        cursor: pointer;
    }

    .fa-solid.fa-bars  {
        color: #fff !important;
        font-size: 30px !important;
        position: absolute;
        right: -5px;
        top: 3px;
        cursor: pointer;
    }

    .show {
        display: block;
        color: #fff;
        font-size: 16px;
        cursor: pointer;
        line-height: 50px;
    }

    .show + a,
    nav ul {
        display: none;
    }

    [id^=btn]:checked + ul,
    [id^=btn1]:checked + ul,
    [id^=btn2]:checked + ul {
        display: block;
        left: -10px;
        top: 44px;
        z-index: 999;
        width: 110%;
    }


    nav ul li a,
    .show {
        padding-left: 40px;
    }

    nav ul li ul li:hover {
        background: none;
    }

    nav ul ul a {
        padding-left: 70px;
    }
}

@media(max-width: 800px) {
    .header-middle {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        flex-direction: column;
    }

    .sub-logos {
        margin-top: 10px;
        width: 80px !important;
    }
}

@media screen and (max-width: 700px) {
    .popup-box {
        width: 70%;
    }

    .popup {
        width: 70%;
    }
}

@media(max-width: 647px) {
    .header-top .left{
        display: none;
    }

    .header-top {
        padding: 0px 50px 8px;
    }

    .header-middle {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0px;
    }

    .header-top .left {
        text-align: center;
    }

    .header-top .right {
        margin-top: 10px;
    }

    .popup-box {
        padding: 10px;
        width: 150px;
        transform: rotate(270deg);
        display: block;
        position: fixed;
        bottom: 27%;
        z-index: 1000;
    }

    .free_quote_2 {
        position: fixed;
        left: -55px;
        bottom: 20%;
        padding: 10px;
        z-index: 1000;
    }

}

@media(max-width: 475px) {
    .header-before {
        padding-left: 0px !important;
    }

    .header-top {
        padding: 0px 10px 8px;
    }

    .header-gmail {
        margin-left: 0px !important;
    }

    .popup {
        margin: 100px auto;
        padding: 20px;
        width: 90%;
        z-index: 999;
    }
}
