header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 10;
    background: transparent;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

header.scrolled {
    background: #333333;
}

body:not(.home) header {
    background: #333333 !important;
}

#navbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

#nav_logo {
    font-size: 26px;
    color: #fff;
    flex-shrink: 0;
}

#nav_list {
    display: flex;
    list-style: none;
    gap: 2px;
    margin-left: auto;
    margin-right: 16px;
    flex-wrap: wrap;
}

#navbar a {
    color: white;
    text-decoration: none;
    padding: 0 10px;
}

#navbar .btn-default {
    background-color: #fff;
    color: #000;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
}

#navbar .btn-default:hover {
    color: #000000;
    background-color: #cecece;
}

.nav-item a {
    text-decoration: none;
    color: #fff;
    display: inline-block;
    min-width: max-content;
    font-weight: 300;
    white-space: nowrap;
}

.div-nav {
    font-style: normal;
}

.nav-item a:hover {
    font-weight: 300;
    text-shadow: 0 0 1px rgba(255, 255, 255, 1.5);
    color: #fff;
}

.nav-item.active a {
    color: #fff;
    font-weight: 600;
}

#mobile_btn {
    display: none;
    color: #fff;
}

#mobile_menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333333;
    z-index: 9;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#mobile_nav_list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0px;
}

#mobile_nav_list .nav-item {
    list-style: none;
    text-align: center;
}

#mobile_nav_list .nav-item a {
    display: block;
    width: 100%;
    padding: 10px 0;
    color: #fff;
    background: #333333;
}

#mobile_close_btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

@media screen and (max-width: 1170px) {
    header {
        background: #333333 !important;
    }

    #nav_list,
    #navbar .btn-default {
        display: none;
    }

    #mobile_btn {
        display: block;
        border: none;
        background-color: transparent;
        font-size: 1.5rem;
        cursor: pointer;
    }

    #mobile_menu.active {
        display: flex;
    }
}