#theader { z-index: 995; position: relative; width: 100%; height: 108px; background: #fff; border-bottom: 1px solid #ebebeb; }
#theader .contwrap { height: 100%; }

#theader .logo { display: block; float: left; height: 100%; writing-mode: vertical-lr; text-align: center; }
#theader .logo img { width: 165px; }

#theader nav { display: block; float: right; height: 100%; }
#theader nav .menu1 { position: relative; display: flex; flex-wrap: nowrap; height: 100%; }
#theader nav .menu1 li { position: relative; height: 100%; }
#theader nav .menu1 li > a { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; padding: 0 45px; }
#theader nav .menu1 li > a > span { display: block; text-align: center; font-size: 22px; color: #282363; font-weight: 700;}
#theader nav .menu1 li > a::after { z-index: 1; display: block; content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 0; height: 2px; background-color: #444fe8; transition: width .2s; }
#theader nav .menu1 li:hover > a::after { width: 100%; }
#theader nav .menu1 li.utility-menu {display: flex;flex-direction: column;align-items: center;min-width: 126px;justify-content: flex-start;margin-top: 6px;}
#theader .member-links { position: relative; z-index: 3; display: flex; align-items: center; gap: 8px; margin: 0 0 6px 9px; color: #777; }
#theader .member-links a { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 20px; font-size: 15px; color: inherit; cursor: pointer; pointer-events: auto; transition: color .2s; }
#theader .member-links a:hover { color: #282363; }
#theader .member-links span { font-size: 11px; color: #c9c9c9; }
#theader nav .menu1 li > a.contact-btn {z-index: 2;height: 44px;margin: 0 0 0 9px;padding: 0 45px;border-radius: 22px;background: #282363;transition: background-color .2s;}
#theader nav .menu1 li > a.contact-btn:hover { background: #78b931; }
#theader nav .menu1 li > a.contact-btn span { color: #fff; font-size: 20px; }
#theader nav .menu1 li > a.contact-btn::after { display: none; }

#theader nav .menu1 .menu2 { display: none; position: absolute; left: 0; width: 100%; padding: 8px 0; background: rgba(38, 35, 88, .96); }
#theader nav .menu1 .menu2 a { display: block; padding: 8px 5px; text-align: center; font-size: 16px; color: #fff; line-height: 1.4; transition: background-color .2s; }
#theader nav .menu1 .menu2 a:hover { background-color: rgba(255,255,255,.15); }

/* langbtn */
#theader .langbtn { display: flex; align-items: center; height: 100%; margin-left: 20px; }
#theader .langbtn .btnwrap { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; padding: 8px 10px; background-color: #282363; border: 1px solid #dbdbdb; border-radius: 100px; }
#theader .langbtn .btnwrap a { position: relative; display: inline-block; padding: 0 7px; font-size: 12px; color: #fff; }
#theader .langbtn .btnwrap a:first-of-type::after { display: block; content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 70%; background-color: #fff; }


/* .header_block { display: none; } */

@media (max-width: 1660px) {
    #theader nav .menu1 li > a { padding: 0 15px; }

        /* langbtn */
    #theader .langbtn { margin-left: 0; }
    #theader .langbtn .btnwrap { padding: 7px 9px; }
}
@media (max-width: 1440px) {
    #theader .contwrap { width: calc(100% - 100px); }

        /* langbtn */
    #theader .langbtn .btnwrap { padding: 6px 8px; }
}
@media (max-width: 1023px) {
    #theader { height: 60px; }
    #theader .contwrap { width: 100%; max-width: 100%; }
    #theader.scrollh { background-color: #fff; box-shadow: 0 4px 4px -4px #fff; }
    #theader.active { background-color: #fff; box-shadow: none !important; border-bottom: 1px solid #777; }

    #theader .logo { margin-left: 40px; }
    .logo-mark { transform: scale(.8); transform-origin: left center; width: 35px; }
    .logo-text strong { font-size: 18px; }
    .logo-text small { font-size: 18px; }

    #theader nav { display: none; float: none; height: initial; position: absolute; left: 0; width: 100%; top: 60px; background-color: rgba(38, 35, 88, .98); box-shadow: 0 4px 4px -4px #fff; }
    #theader.active nav { display: block; }
    #theader nav .menu1 { left: 0; display: block; height: initial; }
    #theader nav .menu1 li { height: initial; }
    #theader nav .menu1 li > a { height: initial; padding: 13px 5px; }
    #theader nav .menu1 li > a.no_link { pointer-events: none; }
    #theader nav .menu1 li > a > span { top: initial; transform: translateY(0); font-weight: normal; font-size: 18px; color: #fff; }
    #theader nav .menu1 li > a::after { display: none; }
    #theader nav .menu1 li:hover > a { background-color: #333; }

    #theader nav .menu1 li > a.contact-btn span {font-size: 18px; padding: 13px 5px; }
    #theader nav .menu1 li.utility-menu { display: block; min-width: 0; }
    #theader .member-links { justify-content: center; margin: 0; padding: 13px 5px; color: #fff; }
    #theader .member-links a { font-size: 15px; }
    #theader .member-links span { font-size: 16px; color: rgba(255,255,255,.5); }

    #theader nav .menu1 .menu2 { position: relative; background-color: #555; }
    #theader nav .menu1 .menu2 a { padding: 12px 5px; font-size: 18px; }
    #theader nav .menu1 .menu2 a:hover { background-color: #777; }
    #theader nav .menu1 li > a.contact-btn { display: flex; height: initial; margin: 0; border-radius: 0; background: transparent; }

    
    /* langbtn */
    #theader .langbtn { height: initial; padding: 10px; justify-content: center; }
}
@media (max-width: 767px) {
    #theader .logo { margin-left: 30px; }
    #theader .logo img {width: 105px;}
}
@media (max-width: 460px) {
    #theader .logo { margin-left: 20px; }
}

/* hamburgerBtn */
.hamburgerBtn { z-index: 10; position: absolute; right: 40px; top: 50%; transform: translateY(-50%); width: 20px; height: 15px; display: none; flex-direction: column; justify-content: space-between; cursor: pointer; }
.hamburgerBtn > div { position: relative; width: 100%; height: 2px; background-color: #2c3077; transition: all 0.3s ease; }
#theader.active .hamburgerBtn > div, #theader.scrollh .hamburgerBtn > div { background-color: #2c3077; }
#theader.active .hamburgerBtn > div:nth-child(1) { transform: rotate(45deg); transform-origin: top left; }
#theader.active .hamburgerBtn > div:nth-child(2) { opacity: 0; }
#theader.active .hamburgerBtn > div:nth-child(3) { top: 0; transform: rotate(-45deg); transform-origin: bottom left; }
@media (max-width: 1023px) {
    .hamburgerBtn { display: flex; }
}
@media (max-width: 767px) {
    .hamburgerBtn { right: 30px; }
}
@media (max-width: 767px) {
    .hamburgerBtn { right: 20px; }
}