.header {
    background-color: var(--white);
    color: var(--text-grey);
    padding-top: 20px;
    border-bottom: 1px solid var(--grey);
}

.header > div {
    margin: auto;
    width: 100%;
    max-width: 1220px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
}

.header_logo {
    display: block;
    transform: scale(1);
    overflow: hidden;
    max-width: 200px;
}

.navigation__desktop > ul {
    display: flex;
    justify-content: flex-end;
    height: 100%;
}

.navigation__desktop > ul > li {
    display: block;
    margin: 0 1rem;
}

/* desktop menu */
.sub-menu-item {
    display: none;
    position: absolute;
    padding: 20px 0;
    background-color: var(--white);
    /* box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    clip-path: inset(0px -16px -16px -16px); */
    z-index: 1000;
}

.sub-menu-item ul {
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sub-menu-item li {
    padding: 0.5em 2rem;
}

.sub-menu-item li:hover {
    background-color: var(--dialog-light-grey);
}

.material-symbols--logout-rounded {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238c9091' d='M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h6q.425 0 .713.288T12 4t-.288.713T11 5H5v14h6q.425 0 .713.288T12 20t-.288.713T11 21zm12.175-8H10q-.425 0-.712-.288T9 12t.288-.712T10 11h7.175L15.3 9.125q-.275-.275-.275-.675t.275-.7t.7-.313t.725.288L20.3 11.3q.3.3.3.7t-.3.7l-3.575 3.575q-.3.3-.712.288t-.713-.313q-.275-.3-.262-.712t.287-.688z'/%3E%3C/svg%3E");
}

.logout-btn {
    display: flex;
    gap: 5px;
}


/* mobile menu */

.btn_menu_mobile {
    background-color: transparent;
    border: 0;
}

.btn_menu_mobile-icon-bar {
    background-color: var(--dark);
    width: 30px;
    height: 2px;
    margin-bottom: 8px;
    display: block;
}

.btn_menu_mobile-icon-bar:last-child {
    margin-bottom: 0;
}

.btn_menu_mobile[aria-expanded='true'] .btn_menu_mobile-icon-bar {
    opacity: 0;
}

.btn_menu_mobile[aria-expanded='true'] .btn_menu_mobile-icon-bar:first-of-type {
    transform: translateY(10px) rotate(45deg);
    opacity: 1;
}

.btn_menu_mobile[aria-expanded='true'] .btn_menu_mobile-icon-bar:last-child {
    transform: translateY(-10px) rotate(-45deg);
    opacity: 1;
}

dialog[id='menu-mobile'] {
    width: 100%;
    border: 0;
    z-index: 999;
}

.navigation__mobile > ul {
    display: grid;
    justify-items: start;
    justify-content: space-around;
    padding: 0;
}

.navigation__mobile > ul > li {
    list-style: none;
    padding: 0;
}

.container_desktop, .container_mobile {
    display: flex;
}

.container_mobile {
    padding-bottom: 8px;
    gap: 8px;
}

.show-sub-menu-btn {
    background-color: var(--white);
    border: none;
    font-weight: bold;
}

.show-sub-menu-btn-icon-bar {
 background-color: var(--dark);
    width: 10px;
    height: 2px;
    margin-bottom: 6px;
    display: block;
}

.show-sub-menu-btn-icon-bar:first-child {
    transform: translateY(8px) rotate(90deg);
}

.expanded .sub-menu-item {
    display: block;
}

.expanded .show-sub-menu-btn-icon-bar:first-child {
    display: none;
}


/* language swithcer */
.dropbtn {
    margin-top: 16px;
    background-color: var(--white);
    padding-left: 12px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    min-width: 40px;
    text-transform: uppercase;
  }
  
  
  .lang_dropdown {
    position: relative;
    display: inline-block;
  }
  
  .lang_dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 40px;
    z-index: 1000;
  }
  
  .lang_dropdown-content a {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }

  .lang_dropdown-content a:first-of-type {
      padding-top: 24px;
  }
  
  .lang_dropdown:hover .lang_dropdown-content {
    display: block;
  }
  
  .lang_dropdown-content a {
    text-transform: uppercase;
  }


/* RESPONSIVE */

@media (min-width: 1024px) {
    #menu-mobile{
        display: none;
    }
    .show-sub-menu-btn {
        display: none;
    }
    .container_mobile {
        display: none;
    }
    .dropdown-menu-item:hover .sub-menu-item {
        display: block;
    }
}

@media (max-width: 1023px) {
    .container_desktop {
        display: none;
        position: absolute; 
        left: -999em;
    }
    .dropbtn {
        margin-top: 0px;
    }
    .sub-menu-item {
        position: static;
        padding: 0.5em 0;
    }
    .sub-menu-item li {
        padding: 0 2rem;
    }
}
