.header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #002374;
    z-index: 100;
    font-size: 18px;
    line-height: 100%;
    font-family: var(--font1);
    height: 136px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.header-spacer {
    height: 136px;
}

.navbar-text-content {
    margin-left: calc(22vw - 42px);
}

.header .medium-text,
.header .big-text,
.navbar-top-signin-links a {
    color: white;
    text-transform: none !important;
}

.navbar-top-signin-links a {
    font-weight: 500;
}

.header .big-text {
    font-size: 40px;
    line-height: 140%;
}

.header .medium-text {
    font-size: 26px;
    margin-bottom: 4px;
}

.navbar-top-signin-links {
    display: flex;
    gap: 23px;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.navbar-top {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-end;
    position: relative;
    height: 100%;
}

.socials {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 2;
    margin-top: 4px;
}

.social {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.social:hover .social-inner {
    transform: translateY(-2px);
}

.social-inner {
    width: 22px;
    min-width: 22px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    transform: translateY(0px);
    will-change: transform;
}

.social-inner-smaller {
    width: 21px;
    min-width: 21px;
}

#instagram,
#linkedin,
#pinterest {
    display: none;
}

.navbar-account-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
}

.account-button-wrapper {
    white-space: nowrap;
    display: none;
    align-items: center;
    gap: 6px;
}

.account-icon-wrapper {
    margin-top: 1px;
    width: 19px;
    min-width: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-buttons-separator {
    width: 1px;
    height: 21px;
    background-color: var(--text-color);
}

.subscribe-button {
    padding: 4px 26px;
    font-family: var(--font2);
    font-size: 20px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin-bottom: 4px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    height: calc(37px * var(--logo-scale));
    width: auto;
}

.navbar-logo-text {
    font-family: var(--font4);
    line-height: 80%;
    letter-spacing: -0.02em;
    font-size: 46px;
}

.navbar-links-outer {
    position: absolute;
    right: 21px;
    bottom: 74px;
    transform: translateY(100%);
    background-color: #fff3de;
    border: 1px solid var(--text-color);
    padding: 34px 64px 34px 22px;
    display: none;
}

.navbar-links-inner {
    display: flex;
    justify-content: flex-start;
}

.nav {
    display: none;
    flex-direction: column;
    row-gap: 12px;
}

.nav li {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    width: fit-content;
}

.nav-link:hover {
    text-decoration: none;
}

.nav-link, .links-label {
    line-height: 100%;
    position: relative;
    white-space: nowrap;
    color: var(--text-color);
    font-weight: 500;
}

.secondary-links .nav-link {
    width: 100%;
}

.links-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    background-color: #f9da005e;
}

.dropdown-arrow-svg {
    width: 12px;
    min-width: 12px;
    margin-top: 2px;
    position: absolute;
    right: -5px;
    transform: translateX(100%);
}

.secondary-links {
    z-index: 2;
    border: none;
    row-gap: 14px;
    overflow: hidden;
    height: 0px;
}

.secondary-links-inner {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 6px;
    background-color: #f9da005e;

}

.menu-button-wrapper {
    display: block;
    position: relative;
    z-index: 4;
}

.menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 6px;
    width: 28px;
    height: 28px;
}

.menu-line {
    width: 28px;
    height: 2px;
    background-color: white;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.subscribe-button-mobile-wrapper {
    display: none;
}

.navbar-image {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.navbar-image img {
    width: auto;
    object-fit: contain;
}

.menu-button[isopen="true"] .menu-line {
    background-color: var(--text-color);
}

/* Styles for large desktop */
@media (min-width: 1439px) {  
    .header {
        font-size: calc(1.25vw * var(--scale));
        height: 9.0vw;
    }

    .header-spacer {
        height: 9.0vw;
    }

    .navbar-text-content {
        margin-left: 22vw;
    }

    .header .big-text {
        font-size: calc(2.78vw * var(--scale));
    }

    .header .medium-text {
        font-size: calc(1.81vw * var(--scale));
        margin-bottom: calc(0.28vw * var(--scale));
    }

    .navbar-top-signin-links {
        gap: calc(1.6vw * var(--scale));
    }

    .socials {
        gap: calc(1.53vw * var(--scale));
        margin-top: calc(0.28vw * var(--scale));
    }

    .social-inner {
        width: calc(1.53vw * var(--scale));
        min-width: calc(1.53vw * var(--scale));
    }

    .social-inner-smaller {
        width: calc(1.46vw * var(--scale));
        min-width: calc(1.46vw * var(--scale));
    }

    .navbar-account-links {
        gap: calc(1.81vw * var(--scale));
    }

    .account-button-wrapper {
        gap: calc(0.42vw * var(--scale));
    }

    .account-icon-wrapper {
        width: calc(1.32vw * var(--scale));
        min-width: calc(1.32vw * var(--scale));
    }

    .account-buttons-separator {
        height: calc(1.46vw * var(--scale));
    }

    .navbar-links-outer {
        right: 1.8vw;
        bottom: calc(6.5vw * var(--scale));
        padding: calc(2.36vw * var(--scale)) calc(4.44vw * var(--scale)) calc(2.36vw * var(--scale)) calc(1.53vw * var(--scale));
    }

    .nav {
        row-gap: calc(0.83vw * var(--scale));
    }

    .dropdown-arrow-svg {
        width: calc(0.83vw * var(--scale));
        min-width: calc(0.83vw * var(--scale));
        right: calc(-0.35vw * var(--scale));
    }

    .secondary-links {
        row-gap: calc(0.97vw * var(--scale));
    }

    .secondary-links-inner {
        margin-top: calc(0.83vw * var(--scale));
        gap: calc(0.83vw * var(--scale));
        margin-bottom: calc(0.42vw * var(--scale));
    }

    .menu-button {
        row-gap: calc(0.42vw * var(--scale));
        width: calc(1.94vw * var(--scale));
        height: calc(1.94vw * var(--scale));
    }

    .menu-line {
        width: calc(1.94vw * var(--scale));
    }
}

/* Styles for tablet */
@media (max-width: 991px) { 
    .account-button-text,
    .account-buttons-separator,
    .subscribe-button,
    .socials {
        display: none;
    }

    .header {
        height: 96px;
    }

    .header-spacer {
        height: 96px;
    }

    .header .big-text {
        font-size: 39px;
    }

    .menu-button-wrapper {
        margin-left: 4px;
    }

    .navbar-account-links {
        gap: 16px;
        flex: 1;
    }

    .navbar-text-content {
        margin-left: 27vw;
    } 

    .extra-text,
    .navbar-top-signin-links {
        display: none;
    }

    .account-icon-wrapper svg path {
        fill: white;
    }
    
    .account-icon-wrapper {
        margin-top: 1px;
        width: 28px;
        min-width: 28px;
    }

    .logo-wrapper {
        flex: 2;
        margin-bottom: 0px;
    }

    .navbar-logo-text {
        font-size: 38px;
    }

    .account-button-wrapper {
        display: flex;
    }

    .navbar-links-outer {
        text-align: left;
        position: absolute;
        background-color: #fff3de;
        height: calc(100dvh);
        transform: translateY(100%);
        left: 0;
        right: 0;
        bottom: 0px;
        display: none;
        opacity: 0;
        flex-direction: column;
        justify-content: flex-start;
        margin-left: 0;
        border-top: none;
        border-bottom: none;
        padding: 0px;
    }

    .navbar-links-inner {
        padding-top: 15vh;
        padding-bottom: 16vh;
        flex-direction: column;
        align-items: center;
        row-gap: 23px;
        overflow-y: auto;
        justify-content: flex-start;
    }

    .nav {
        flex-direction: column;
        row-gap: 23px;
        min-width: 280px;
    }

    .nav-link, .links-label {
        line-height: 120%;
        font-size: 24px;
        width: fit-content;
    }

    .secondary-links {
        min-width: 100%;
        position: static;
        transform: unset;
        opacity: 1;
        transition-duration: 0.15s;
        transition-property: height;
        height: 0px;
        overflow: hidden;
    }

    .secondary-links-inner {
        align-items: flex-start;
        padding-top: 23px;
        margin-top: 25px;
        padding-bottom: 23px;
        border: none;
        row-gap: 14px;
        border-top: 1px solid var(--text-color);
        border-bottom: 1px solid var(--text-color) !important;
        overflow: hidden;
    }

    .nav li {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .secondary-links .nav-link {
        font-size: 20px;
        line-height: 150%;
        color: var(--text-color);
        padding: 0px;
        border-bottom: none;
        width: fit-content;
    }

    .secondary-links-inner .nav-link:hover {
        color: unset;
        background-color: unset;
    }

    .subscribe-button-mobile-wrapper {
        display: flex;
        min-width: 280px;
        padding-top: 30px;
        border-top: 1px solid var(--text-color);
    }
    
    .subscribe-button-mobile {
        font-family: var(--font1);
        display: block;
        font-size: 22px;
        padding: 5px 30px;
        margin-left: auto;
        margin-right: auto;
    }

    .logo-image {
        height: calc(30px * var(--logo-scale));
    }

    .social:hover .social-inner {
        transform: translateY(-2px);
    }

    .menu-button[isopen="true"] .menu-line {
        background-color: var(--background-color);
    }
}

/* Styles for mobile */
@media (max-width: 479px) { 
    .header {
        height: 69px;
    }

    .header-spacer {
        height: 69px;
    }

    .header .big-text {
        font-size: 24px;
    }

    .navbar-text-content {
        margin-left: 20vw;
    } 

    .navbar-account-links {
        gap: 10px;
    }
    
    .account-icon-wrapper {
        width: 26px;
        min-width: 26px;
    }


    .navbar-logo-text {
        font-size: 32px;
    }

    .menu-button {
        height: 28px;
        width: 28px;
    }

    .menu-line {
        width: 28px;
        height: 2px;
    }

    .nav {
        row-gap: 18px;
        min-width: 58vw;
    }

    .nav-link, .links-label {
        font-size: 22px;
    }

    .secondary-links-inner {
        padding-top: 18px;
        margin-top: 22px;
        padding-bottom: 18px;
        row-gap: 8px;
    }

    .subscribe-button-mobile-wrapper {
        min-width: 58vw;
        padding-top: 32px;
    }
    
    .subscribe-button-mobile {
        font-size: 21px;
    }

    .logo-image {
        height: calc(26px * var(--logo-scale));
    }
}

@media (max-width: 350px) { 
    .navbar-text-content {
        margin-left: 20vw;
    } 

    .header .big-text {
        font-size: 22px;
    }

    .account-icon-wrapper {
        width: 22px;
        min-width: 22px;
    }

    .menu-button {
        width: 23px;
        min-width: 23px;
        gap: 5px;
    }

    .navbar-account-links {
        gap: 6px;
    }

    .menu-line {
        width: 23px;
    }
}

@media (max-width: 290px) { 
    .navbar-text-content {
        margin-left: 0vw;
    } 
}