#header
{
    position: relative;
    z-index: 50;
    display: flex;
    width: 100%;
    min-height: 66px;
    box-sizing: border-box;
    align-items: center;
    gap: 28px;
    padding: 10px max(20px, calc((100% - 1180px) / 2));
    background: #ffffff;
    border-bottom: 1px solid #e3e8ec;
}

#header > a
{
    flex: 0 0 auto;
    color: #17212b;
    font-weight: inherit;
    text-decoration: none;
}

#header #logo
{
    display: flex;
    align-items: center;
    gap: 9px;
}

#header #logo span
{
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

#header #logo img
{
    display: block;
    width: auto;
    height: 30px;
}

#header > .search_box
{
    display: flex;
    flex: 1 1 420px;
    max-width: 430px;
    margin: 0;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}

#header > .search_box .form-group
{
    margin: 0;
}

#header > .search_box .form-group:first-child
{
    flex: 1 1 auto;
}

#header .search_box input.search_term
{
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 7px;
    color: #17212b;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

#header .search_box input.search_term:focus
{
    border-color: #176b75;
    box-shadow: 0 0 0 3px rgba(23, 107, 117, 0.12);
}

#header .search_box button.search_button
{
    margin: 0;
    padding: 10px 15px;
    border-radius: 7px;
    background: #176b75;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
}

#header .search_box button.search_button:hover
{
    background: #10545c;
}

#top-right-menu
{
    position: static;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.top-right-menu_item
{
    display: flex;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.72;
    border-radius: 7px;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.top-right-menu_item:hover
{
    opacity: 1;
    background: #f3f6f7;
}

#top-right-menu_user-button
{
    width: 40px;
    cursor: pointer;
}

#top-right-menu_user-button > a
{
    display: flex;
    align-items: center;
    justify-content: center;
}

#top-right-menu_user-button img
{
    width: 26px;
    height: 26px;
    object-fit: contain;
}

#header #button_to_make_dropdown_menu_appear
{
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#header #button_to_make_dropdown_menu_appear img
{
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.dropdown
{
    position: relative;
}

.dropdown-content
{
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    overflow: hidden;
    z-index: 1000;
    background: #ffffff;
    border: 1px solid #e3e8ec;
    border-radius: 10px;
    box-shadow: 0 14px 35px rgba(23, 33, 43, 0.14);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content
{
    display: block;
}

.dropdown-content a
{
    display: block;
    padding: 12px 16px;
    color: #17212b;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
}

.dropdown-content a:hover
{
    background: #f4f7f8;
}

.login-button
{
    margin: 0;
    padding: 10px 17px;
    background: #176b75;
    color: #fff;
    border: 0;
    border-radius: 7px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.login-button:hover
{
    background: #10545c;
}

#top-right-menu_item_login-button
{
    display: block;
}

#dropdown-box-login-button
{
    display: none;
}

#search-icon
{
    display: none;
    cursor: pointer;
}

#search-icon img
{
    width: 24px;
    height: 24px;
    object-fit: contain;
}

#hidden-search-box-in-the-header
{
    display: none;
    position: absolute;
    z-index: 1100;
    top: 0;
    right: 0;
    left: 0;
    padding: 10px 18px;
    background: #ffffff;
    border-bottom: 1px solid #e3e8ec;
    box-shadow: 0 8px 24px rgba(23, 33, 43, 0.12);
}

#hidden-search-box-in-the-header .search_box
{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    max-width: 680px;
    margin: 0 auto;
}

#hidden-search-box-in-the-header .form-group
{
    margin: 0;
}

#logout-form
{
    padding: 8px 16px 14px;
}

#logout-form .form-group
{
    margin: 0;
}

#logout-form input[type=submit]
{
    width: 100% !important;
}

@media only screen and (max-width: 700px)
{
    #header
    {
        min-height: 62px;
        gap: 10px;
        padding: 8px 14px;
    }

    #header > .search_box,
    #top-right-menu_item_login-button
    {
        display: none;
    }

    #search-icon,
    #dropdown-box-login-button
    {
        display: flex;
    }

    #dropdown-box-login-button
    {
        display: block;
    }

    #header #logo img
    {
        height: 32px;
    }

    #header #logo span
    {
        font-size: 21px;
    }
}

@media only screen and (max-width: 420px)
{
    #header #logo span
    {
        display: none;
    }
}
