header {
    position: fixed;
    display: flex;
    align-items: center;
    width: 100%;
    height: 75px;
    z-index: 99;
}

.header__list {
    position: relative;
    width: 100%;
    max-height: 75px;
    display: grid;
    grid-template-columns: auto 4fr;
    gap: 100px;
    align-items: center;
    list-style: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background-color: var(--co-milkwhite);
    padding: 0 5px;
}

.header__item--menu {
    position: absolute;
    /* display: none; */
    right: 0;
    font-size: var(--fs-icon);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
}

.header__item--menu i:hover {
    color: var(--co-tertiary);
}

.header__item--menu .bx-menu-right,
.header__item--menu .bx-x {
    display: none;
}

/* .header__item {} */

/* .header__item--brand {} */

.header__brand {
    display: grid;
    grid-template-columns: auto;
    gap: 10px;
    align-items: center;
    text-decoration: none;
}

.header__brand-img {
    width: 50px;
}
/* .header__item--navigation {} */

.header__nav-list {
    position: relative;
    height: 75px;
    display: grid;
    grid-template-columns: 125px 125px 125px 125px 1fr;
    justify-content: center;
    align-items: center;
    list-style: none;
}

.header__nav-link {
    text-decoration: none;
    color: var(--co-primary);
    font-size: var(--fs-bodytext);
    text-align: center;
    transition: all 0.3s ease;
}

.header__nav-link:hover {
    color: var(--co-tertiary);
}

.header__nav-trigger {
    color: var(--co-primary);
    font-size: var(--fs-bodytext);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    margin: 0;
}

.header__nav-trigger:hover {
    color: var(--co-tertiary);

}

.header__nav-sublist {
    position: absolute;
    width: 100%;
    top: 75px;
    left: 0;
    right: 0;
    padding: 10px;
    display: none;
    /* display: grid; */
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background-color: var(--co-secondary);
    border: 0.25px solid var(--co-neutral);
    border-radius: var(--br-small);
    text-decoration: none;
    list-style: none;
    transition: all 0.3s ease;
}

.header__nav-sublist.active {
    display: grid;
}

.header__nav-subitem {
    padding: 5px;
    transition: all 0.3s ease;

}

.header__nav-subitem:hover {
    background-color: var(--co-border);
    cursor: default;
}

.header__nav-sublink {
    font-weight: 400;
    color: var(--co-tertiary);
    font-size: var(--fs-bodytext);
    text-decoration: none;
    text-align: center;
}

.header__nav-sublink strong {

    color: var(--co-secondary);
    text-decoration: none;
    background-color: var(--co-primary);
    padding: 0 2px;
    font-weight: 200;
    font-size: var(--fs-caption);
}

.header__nav-desc {
    color: var(--co-gray);
    text-align: justify;
    font-size: var(--fs-subtext);
    margin: 0;

}

.header__nav-item--account {
    display: grid;
    grid-template-columns: auto 120px;
    gap: 10px;
    justify-content: end;
    align-items: center;
    text-align: end;
}

.header__nav-trigger--globe {
    display: flex;
    align-items: center;
}

.header__nav-trigger--globe i {
    font-size: var(--fs-icon);
}

.header__nav-trigger--user {
    width: 40px;
    display: flex;
    align-items: center;
}

.header__nav-trigger--user i {
    font-size: var(--fs-icon);
    text-align: end;
}

.header__nav-button {
    width: 120px;
    height: 40px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

.header__nav-button--login {
    background-color: var(--co-tertiary);
    color: var(--co-secondary);
    transition: all 0.3s ease;
}

.header__nav-button--login:hover {
    background-color: var(--co-secondary);
    color: var(--fc-accent);
    border: 0.25px solid var(--co-tertiary);
}

.header__nav-sublist--account {
    top: 75px;
    grid-template-columns: 1fr;
    max-width: 200px;
    left: auto;
    right: 0;
    text-align: start;
}

/* responsive breakpoints */
@media (max-width:858px) {

    header {
        padding: 0 0;
    }

    .header__item--menu .bx-menu-right {
        display: block;
    }

    .header__item--menu .bx-x {
        display: none;
    }

    .header__brand {
        padding: 12.5px 10px;
        max-width: 200px;
    }

    .header__list {
        padding: 0;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .header__nav-list {
        /* position: absolute; */
        /* display: block; */
        display: none;
        width: 50%;
        margin-left: 50%;
        height: 80vh;
        background-color: var(--co-milkwhite);
        gap: 0px;
        padding: 10px;
        z-index: 999;
        border-left: 0.25px solid var(--co-border);
        transition: all 0.4s ease;
    }

    .header__nav-list.active {
        display: block;
    }

    .header__item--menu.active .bx-menu-right {
        display: none;
    }

    .header__item--menu.active .bx-x {
        display: inline-block;
    }

    .header__nav-item {
        margin: 10px 0;
    }

    .header__nav-link {
        text-decoration: none;
        color: var(--co-primary);
        font-weight: 400;
        font-size: var(--fs-bodytext);
        text-align: center;

    }

    .header__nav-trigger {
        font-size: var(--fs-bodytext);
        font-weight: 400;
        cursor: pointer;
        color: var(--co-primary);
        text-align: start;

    }

    .header__nav-sublist {
        /* min-width: 200px; */
        position: initial;
        grid-template-columns: 1fr;
        top: auto;
        left: auto;
        right: auto;
        border: none;
    }

    .header__nav-desc {
        display: none;
    }


    .header__nav-item--account {
        margin: 20px 0;
        text-align: start;
        grid-template-columns: 1fr;
    }


    .header__nav-button {
        width: 100%;
    }


}