.header {
    z-index: 999;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 25px 0px;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 20vw;
}

.navbar-links-inner {
    display: flex;
    align-items: center;
    column-gap: 23px;
}

.logo .medium-text {
    color: var(--text-color1);
    line-height: 100%;
}

.logo image {
    width: 86px;
}

.nav {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 23px;
    row-gap: 4px;
}

.nav li {
    list-style-type: none;
    display: flex;
    position: relative;
}

.nav-link, .links-label, .search-button {
    line-height: 140%;
    font-size: 16px;
    color: var(--text-color2);
}

.links-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0px;
}

.nav li:hover .secondary-links, .nav .secondary-links:focus-within {
    opacity: 1;
    pointer-events: all;
}

.dropdown-arrow-svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin-left: 4px;
}

.secondary-links {
    position: absolute;
    bottom: 0px;
    left: -28px;
    transform: translateY(100%);
    padding: 22px 28px 24px 28px;
    border: 1px solid var(--text-color2-20-opacity);
    display: flex;
    opacity: 0;
    pointer-events: none;
    flex-direction: column;
    row-gap: 8px;
    width: 186px;
    border-radius: calc(1vw * var(--scale));
    background-color: var(--background-color2);
    box-shadow: 0px 6px 20px 0px var(--text-color2-20-opacity);
    transition-duration: 0.15s;
    transition-property: opacity;
}

.search-wrapper {
    border-left: 1px solid var(--text-color2-40-opacity);
    border-right: 1px solid var(--text-color2-40-opacity);
    height: 38px;
    padding-left: 18px;
    padding-right: 23px;
    display: flex;
    align-items: center;
}

.search-icon {
    display: flex;
    align-items: center;
    width: 20px;
    min-width: 20px;
    height: auto;
}

.search-button {
    display: flex;
    align-items: center;
    column-gap: 6px;
    cursor: pointer;
    font-family: var(--font1);
}

.mobile-navbar-icons {
    display: none;
}

.acc-button-wrapper {
    display: flex;
}

.logo img {
    height: calc(20px * var(--logo-scale));
    width: auto;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-links-outer {
    display: flex;
    opacity: 1;
}

.desktop-navbar {
    display: flex !important;
    opacity: 1 !important;
}

.light-logo-text {
    color: var(--text-color2) !important;
}

.light-logo {
    display: none;
}

/* Styles for large desktop */
@media (min-width: 1439px) { 
    .header {
        padding: calc(1.74vw * var(--scale)) 0px;
    }
    
    .navbar-links-inner {
        column-gap: calc(1.6vw * var(--scale));
        row-gap: calc(0.28vw * var(--scale));
    }
    
    .logo image {
        width: calc(6vw * var(--scale)) 0px;
    }
    
    .nav {
        column-gap: calc(1.6vw * var(--scale));
        row-gap: calc(0.28vw * var(--scale));
    }
    
    .nav-link, .links-label, .search-button {
        font-size: calc(1.11vw * var(--scale));
    }
    
    .links-label {
        padding: calc(0.56vw * var(--scale)) 0px;
    }
    
    .dropdown-arrow-svg {
        width: calc(1.25vw * var(--scale));
        height: calc(1.25vw * var(--scale));
        min-width: calc(1.25vw * var(--scale));
        min-height: calc(1.25vw * var(--scale));
        margin-left: calc(0.28vw * var(--scale));
    }
    
    .secondary-links {
        left: calc(-1.95vw * var(--scale));
        padding: calc(1.53vw * var(--scale)) calc(1.95vw * var(--scale)) calc(1.67vw * var(--scale)) calc(1.95vw * var(--scale));
        row-gap: calc(0.56vw * var(--scale));
        width: calc(12.9vw * var(--scale));
        box-shadow: 0px calc(0.42vw * var(--scale)) calc(1.39vw * var(--scale)) 0px var(--text-color2-20-opacity);
    }
    
    .search-wrapper {
        height: calc(2.64vw * var(--scale));
        padding-left: calc(1.4vw * var(--scale));
        padding-right: calc(1.85vw * var(--scale));
    }
    
    .search-icon {
        width: calc(1.39vw * var(--scale));
        min-width: calc(1.39vw * var(--scale));
    }
    
    .search-button {
        column-gap: calc(0.42vw * var(--scale))
    }

    .header .wide-container {
        padding-left: 3.6vw;
        padding-right: 3.6vw;
    }

    .logo img {
        height: calc(1.39vw * var(--scale) * var(--logo-scale));
    }
}

/* Styles for tablet */
@media (max-width: 991px) {
    .header {
        height: 74px;
        padding: 0;
        display: flex;
        justify-content: center;
    }

    .logo .medium-text, .logo img {
        color: var(--text-color2);
    }

    .mobile-navbar-icons {
        display: flex;
        align-items: center;
        column-gap: 16px;
    }

    .search-icon {
        width: 28px;
        min-width: 28px;
    }
    
    .search-button {
        column-gap: 0px;
    }

    .search-wrapper {
        display: none;
    }

    .menu-button {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        row-gap: 7px;
        height: 28px;
    }

    .menu-line {
        width: 30px;
        height: 2px;
        background-color: var(--text-color2);
        pointer-events: none;
        transition: transform var(--ease-transition);
    }

    .navbar-links-outer {
        text-align: center;
        position: absolute;
        background-color: var(--background-color2);
        height: calc(100dvh - 74px);
        transform: translateY(100%);
        left: 0;
        right: 0;
        bottom: 0;
        display: none;
        opacity: 0;
        flex-direction: column;
        justify-content: center;
    }

    .navbar-links-inner {
        padding-top: 15vh;
        padding-bottom: 15vh;
        flex-direction: column;
        row-gap: 17px;
        overflow-y: auto;
    }

    .nav {
        flex-direction: column;
        row-gap: 17px;
    }

    .nav-link, .links-label {
        line-height: 120%;
        font-size: 24px;
        font-weight: 600;
    }

    .dropdown-arrow-svg {
        display: none;
    }

    .secondary-links {
        position: static;
        transform: translateY(0%);
        padding: 0px;
        border: none;
        display: flex;
        opacity: 1;
        pointer-events: all;
        row-gap: 15px;
        width: auto;
        border-radius: 0px;
        background-color: transparent;
        box-shadow: none;
        transition-duration: unset;
    }

    .secondary-links a {
        line-height: 140%;
        font-size: 18px;
        font-weight: 400;
    }

    .nav li {
        flex-direction: column;
        align-items: center;
    }

    .links-label {
        display: flex;
        justify-content: center;
        padding: 0px;
        padding-bottom: 22px;
        margin-bottom: 25px;
        min-width: 236px;
        border-bottom: 1px solid var(--text-color2-40-opacity);
    }

    .acc-button-wrapper {
        justify-content: center;
        padding-top: 31px;
        margin-top: 8px;
        min-width: 236px;
        border-top: 1px solid var(--text-color2-40-opacity);
    }

    .hide-dark-logo {
        display: none;
    }

    .light-logo {
        display: flex;
    }
}

/* Styles for mobile */
@media (max-width: 479px) {
    .header {
        height: 64px;
    }

    .mobile-navbar-icons {
        display: flex;
        align-items: center;
        column-gap: 14px;
    }

    .search-icon {
        width: 26px;
        min-width: 26px;
    }

    .menu-line {
        width: 28px;
    }

    .navbar-links-outer {
        height: calc(100dvh - 64px);
    }

    .menu-button {
        height: 26px;
    }

    .logo img {
        height: calc(18px * var(--logo-scale));
    }
}