header {
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 99999;
    padding-bottom: 4px;
    background-color: #fff;
}

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

.logo {
    width: var(--logo);
}

nav {
    margin: auto;
}

nav ul {
    display: flex;
    gap: 10px;
}

nav a {
    display: block;
    padding: 20px;
    border-bottom: 3px solid transparent;
    color: #162433;
    font-weight: 600;
    font-size: 19px;
    text-transform: uppercase;
}

nav a:hover {
    background-color: #f5f5f7;
    border-bottom-color: rgb(31, 108, 252);
}

.searchBar {
    width: var(--searchBar);
    display: flex;
}

#search {
    flex: 1;
    height: var(--button);
    border-bottom: 2px solid #162433;
    font-size: 15px;
    font-weight: 600;
}

#go {
    width: var(--button);
    height: var(--button);
    color: #162433;
    border-bottom: 2px solid #162433;
}

#go .iconfont {
    font-size: 28px;
    font-weight: 500;
}

.progress-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #dfe5eb;
    height: 3px;
}

#progress {
    height: 3px;
    background-color: #0fa66a;
    position: absolute;
    left: 0;
    top: 0;
}

.padding {
    width: 100%;
    position: relative;
}

.btn {
    display: none;
}

@media screen and (max-width:769px) {
    header .center {
        justify-content: space-around;
        /* padding: 10px 0; */
        height: 20px;
        
    }
    .logo img{
        height: 20px;
        object-fit: contain;
    }
    .padding{
        height: 0px !important;
    }
    nav,
    .searchBar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        background-color: #fff;
        transform: translateX(100%);
        z-index: 1;
        padding: 15% 5px 0;
        transition: .4s;
       
    }

    nav ul {
        flex-direction: column;

    }

    nav ul a {
        padding: 10px;
    }

    .open-state {
        transform: translateX(0);
    }

    .btn {
        display: block;
    }

    .btn.iconfont {
        font-size: 20px;
    }

    .close-menu,
    .close-search {
        position: absolute;
        right: 10px;
        top: 10px;
    }
}