/* ==============================
   Header
================================= */

.site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #fff;
}

.header-main {
    width: 100%;
    background: #fff;
}

.header-main-inner {
    display: flex;
    min-height: 106px;
    align-items: center;
    gap: 20px;
}

/* ==============================
   Logo
================================= */

.header-logo {
    display: flex;
    flex: 0 0 211px;
    width: 211px;
    height: 58px;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
}

.header-logo img {
    display: block;
    width: 211px;
    height: 58px;
    max-width: none;
    object-fit: contain;
}
.header-logo h1 {
   position: absolute; clip-path: inset(100%);
}
/* ==============================
   Search
================================= */

.header-search {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-width: 220px;
    height: 50px;
    margin-left: 30px;
    overflow: hidden;
    border-radius: 11px;
    background: #f4f4f4;
}

.header-search input {
    display: block;
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 58px 0 20px;
    box-sizing: border-box;
    border: 0;
    outline: none;
    background: transparent;
    color: #142432;
    font-size: 15px;
}

.header-search input::placeholder {
    color: #667985;
    opacity: 1;
}

.header-search button {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: 54px;
    height: 50px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    outline: none;
    background: transparent;
    color: #9babb3;
    font-size: 23px;
    cursor: pointer;
    transition: color 0.25s ease;
}

.header-search button:hover {
    color: #309a63;
}

.header-search:focus-within {
    box-shadow: 0 0 0 2px rgba(48, 154, 99, 0.14);
}

/* ==============================
   Header Buttons
================================= */

.header-button {
    display: inline-flex;
    flex: 0 0 auto;
    height: 50px;
    padding: 0 28px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.header-button:hover {
    transform: translateY(-1px);
}

.header-button .fa {
    font-size: 17px;
}

.header-upload-button {
    min-width: 181px;
    border-color: #309a63;
    background: #fff;
    color: #309a63;
}

.header-upload-button:hover {
    background: #309a63;
    color: #fff;
}

.header-sign-button {
    min-width: 151px;
    background: #359a63;
}

.header-sign-button:hover {
    background: #278552;
    color: #fff;
}

.header-register-button {
    min-width: 151px;
    background: #52ad7d;
}

.header-register-button:hover {
    background: #409c6c;
    color: #fff;
}

/* ==============================
   Language
================================= */

.header-language {
    position: relative;
    flex: 0 0 120px;
    width: 120px;
}

.header-language-current {
    display: flex;
    width: 100%;
    height: 50px;
    padding: 0;
    box-sizing: border-box;
    align-items: center;
    gap: 10px;
    border: 0;
	border-top: 1px solid #e1e4e5;
    border-bottom: 1px solid #e1e4e5;
    outline: none;
    background: #fff; 
    color: #333;
    font-size: 15px;
    cursor: pointer;
}

.header-language-current img,
.header-language-item img {
    display: block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.header-language-current > span {
    flex: 1;
    overflow: hidden;
    text-align: left;
    white-space: nowrap;
}

.header-language-arrow {
    flex: 0 0 auto;
    font-size: 17px;
    color: #29333a;
    transition: transform 0.25s ease;
}

.header-language.is-open .header-language-arrow {
    transform: rotate(180deg);
}

.header-language-menu {
    position: absolute;
    top: calc(100% + 8px); z-index:999;
    right: 0;
    display: none;
    width: 166px;
    padding: 7px;
    box-sizing: border-box;
    border: 1px solid #e5e9e7;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(18, 45, 32, 0.13);
}

.header-language.is-open .header-language-menu {
    display: block;
}

.header-language-item {
    display: flex;
    width: 100%;
    height: 43px;
    padding: 0 11px;
    box-sizing: border-box;
    align-items: center;
    gap: 11px;
    border: 0;
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: #263238;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.header-language-item:hover {
    background: #edf8f2;
    color: #309a63;
}

/* ==============================
   Navigation
================================= */

.header-navigation {
    width: 100%;
    background: #f6f6f6;
}

.header-navigation-list {
    display: flex;
    min-height: 74px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 16px;
    list-style: none;
}

.header-navigation-list li {
    margin: 0;
    padding: 0;
}

.header-navigation-list a {
    display: flex;
    height: 48px;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #0B1F2A;
    font-size: 20px;
    font-weight: bold;
    line-height: 48px;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

/* Hover effect only */
.header-navigation-list a:hover {
    background: #309a63;
    color: #fff;
}

/* ==============================
   Mobile Toggle
================================= */

.header-mobile-toggle {
    display: none;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce4df;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #263238;
    font-size: 21px;
    cursor: pointer;
}

.header-mobile-toggle:hover {
    border-color: #309a63;
    color: #309a63;
}
/* ==============================
   Account Menu
================================= */

#eso-menu {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

#eso-menu .header-button {
    flex-shrink: 0;
    margin: 0;
}
/* ==============================
   Mobile
================================= */

@media (max-width: 768px) {

    .header-main-inner {
        min-height: 0;
        padding-top: 12px;
        padding-bottom: 12px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-logo {
        flex: 0 0 auto;
        width: 158px;
        height: auto;
    }

    .header-logo img {
        width: 158px;
        height: auto;
    }

    .header-language {
        flex: 0 0 106px;
        width: 106px;
        margin-left: auto;
    }

    .header-language-current {
        height: 42px;
        gap: 7px;
        font-size: 13px;
    }

    .header-language-current img,
    .header-language-item img {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
    }

    .header-language-menu {
        right: 0;
        width: 155px;
    }

    .header-mobile-toggle {
        display: flex;
    }

    .header-search {
        order: 10;
        flex: 0 0 100%;
        width: 100%;
        height: 46px;
        min-width: 0;
        margin-left: 0;
    }

    .header-search input {
        height: 46px;
        padding-left: 16px;
    }

    .header-search button {
        height: 46px;
    }

  /* Upload button takes one third */
      .header-upload-button {
          order: 11;
          flex: 0 0 calc(33.333% - 7px);
          min-width: 0;
          height: 42px;
          padding: 0 8px;
          border-radius: 7px;
          font-size: 12px;
          line-height: 42px;
      }
  
      /* Account menu takes two thirds */
      #eso-menu {
          order: 11;
          display: flex;
          flex: 1 1 calc(66.666% - 3px);
          min-width: 0;
          gap: 10px;
      }
  
      #eso-menu .header-button {
          order: initial;
          flex: 1 1 0;
          width: auto;
          min-width: 0;
          height: 42px;
          padding: 0 8px;
          border-radius: 7px;
          font-size: 12px;
          line-height: 42px;
      }

    .header-upload-button .fa {
        font-size: 14px;
    }

    .header-navigation {
        display: none;
        border-top: 1px solid #e9ecea;
    }

    .header-navigation.is-open {
        display: block;
    }

    .header-navigation-list {
        display: block;
        min-height: 0;
        padding: 8px 0;
    }

 
.header-navigation-list li {
        width: 100%;
        border-bottom: 1px solid #e5e9e7;
    }

    .header-navigation-list li:last-child {
        border-bottom: 0;
    }

    .header-navigation-list a {
        width: 100%;
        height: auto;
        padding: 16px 26px;
        box-sizing: border-box;
        justify-content: flex-start;
        border-radius: 0;
        font-size: 16px;
        line-height: 24px;
    }

    .header-navigation-list a:hover {
        background: #edf8f2;
        color: #309a63;
    }


}


/* ==============================
   Fixed Navigation
================================= */

.header-navigation {
    position: relative;
    z-index: 990;
    width: 100%;
    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

.header-navigation.current {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    background: #f6f6f6;
    box-shadow: 0 5px 20px rgba(4, 51, 107, 0.12);
    animation: headerNavigationDown 0.35s ease both;
}

/* Keep the page from jumping after navigation becomes fixed */
.site-header.nav-fixed {
    padding-bottom: 74px;
}

@keyframes headerNavigationDown {

    from {
        opacity: 0;
        transform: translateY(-100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* ==============================
   Mobile
================================= */

@media (max-width: 768px) {

    .site-header.nav-fixed {
        padding-bottom: 0;
    }

    .header-navigation.current {
        position: fixed;
        top: 0;
        max-height: 100vh;
        overflow-y: auto;
        box-shadow: 0 6px 18px rgba(4, 51, 107, 0.15);
    }

}