nav {
    position: sticky;
    top: 0px;

    z-index: 1030;
    background: #FFFFFF;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
}

nav .header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    max-width: 1440px;
    height: 5rem;
    margin: auto;
    padding: 0 6rem;
    user-select: none;
}

nav .header .logo img {
    height: 4rem;
}


.checkbtn {
    display: none;
    width: 3rem;
    color: #000000;
    cursor: pointer;
}

#check {
    display: none;
}

.trigram-icon {
    font-size: 1.3rem;
}

.times-icon {
    font-size: 2.1rem;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 0 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li a {
    display: inline-block;
    color: #169B4A;
    font-size: 1rem;
    font-weight: 400;
    padding: 7px 13px;
    transition: all 100ms;
}

nav ul li:not(.active) a:hover {
    text-shadow:
        0.1px 0.1px 0 currentColor,
        0.1px -0.1px 0 currentColor,
        -0.1px 0.1px 0 currentColor,
        -0.1px -0.1px 0 currentColor;
    /* font-weight: 700; */
    color: #169B4A !important;
}

.search-field {
    display: flex;
    place-content: center;
    padding: 0 13px;
    position: relative;
}

#search-toggle-button {
    position: relative;
    width: 9rem;
    height: 2rem;
    line-height: 2rem;
    font-size: 0.8rem;
    color: #FFFFFF;
    text-align: center;
    border: none;
    background-color: #D9D9D9;
    border-radius: 1rem;
    user-select: none;
    cursor: pointer;
}

#search-toggle-button i {
    position: absolute;
    display: inline-block;
    left: 0;
    top: 0;
    line-height: 2rem;
    padding: 0 0.5rem;
    color: #ffffff !important;
}

#search-toggle-check {
    display: none;
}

.search-field-input {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
}

.search-field-input::before {
    content: '';
    visibility: none;
    display: block;
    position: absolute;
    top: -1rem;
    right: calc(3.25rem + 13px);
    height: 0;
    width: 0;
    border: 0.5rem solid transparent;
    border-bottom-color: #169B4A;
}

.search-field-input input {
    height: 2rem;
    padding: 0 0.5rem;
    line-height: 2rem;
    border: none;
    box-shadow: 1px 1px 10px -2px #169B4A;
    outline: none;
    border-radius: 0.5rem;
}

#search-toggle-check:checked ~ .search-field-input {
    display: block;
}

nav .header input::placeholder {
    text-align: center;
    font-size: 12px;
    color: #FFFFFF;
}

li.active a {
    color: #169B4A;
    font-weight: bold;
    transition: .5s;
}

.btn-lang {
    display: flex;
    gap: 0;

    .btn-eng {
        width: 3rem;
        height: 1.8rem;
        border: none;
        border-radius: 12.5px 0px 0px 12.5px;
        color: #fff;
        background-color: #D9D9D9;
    }
    .btn-idn {
        width: 3rem;
        height: 1.8rem;
        border: none;
        border-radius: 0px 12.5px 12.5px 0px;
        color: #fff;
        background-color: #D9D9D9;
    }
}

.btn-active {
    background-color: #169B4A !important;
}


@media all and (max-width: 1024px) {
    nav .header {
        padding: 0 2rem;
    }
}

@media all and (max-width: 768px) {
    .checkbtn {
        display: flex;
        justify-content: center;
    }

    nav .header {
        height: 4rem;
        padding: 0 1rem;
    }

    nav .header .logo img {
        /* width: 100%; */
        height: 35px;
    }

    nav ul {
        flex-flow: column;
        position: fixed;
        align-items: stretch;
        top: 4rem;
        left: -100%;
        width: 100%;
        height: calc(100vh - 4rem);
        padding: 0 1.5rem;
        background: #FFFFFF;
        transition: left .5s;
    }

    nav ul li a {
        display: block;
        padding: .5rem 0;
        font-size: 16px;
        color: #000000;
    }

    nav ul li a:hover {
        color: #000000 !important;
        font-weight: bold;
    }

    .search-field {
        display: block;
        padding: 1rem 0;
    }

    .search-field label {
        display: none;
    }
    
    .search-field-input {
        display: block;
        position: initial;
    }

    .search-field-input::before {
        display: none;
    }
    
    .search-field-input input {
        display: block;
        width: 100%;
        height: 2rem;
        line-height: 2rem;
        font-size: 0.8rem;
        color: #FFFFFF;
        text-align: center;
        border: none;
        background-color: #D9D9D9;
        border-radius: 1rem;
        box-shadow: none;
        user-select: none;
        cursor: pointer;
    }

    #check:checked~ul {
        left: 0;
    }
    #check:checked ~ label .trigram-icon,
    #check:not(:checked) ~ label .times-icon {
        display: none;
    }
    #check:checked ~ label .times-icon,
    #check:not(:checked) ~ label .trigram-icon {
        display: inline-block;
    }
}