/*=======================================================================*/
/* header_menu */
/*=======================================================================*/

.header-container-wrapper {
  position: fixed !important;
  width: 100%;
  z-index: 9999;
  transition: all .3s;
}

#header > .container > .row {
  position:relative;
}

@media screen and (max-width: 767px) { 

  .header-container-wrapper {
    position: absolute !important;
  }
}

#header img.hs-image-widget {
  max-width: 200px;
}

.sticky-header #header{
  position: fixed;
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.1) !important;
  -moz-box-shadow: 0 0 7px rgba(0, 0, 0, 0.1) !important;
  -webkit-box-shadow: 0 0 7px rgba(0, 0, 0, 0.1) !important;
  transition: top .5s 0.1s;
}

#header .col_logo {
  display: flex;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  align-items: center;
}

#header .logo {
  transition: all 0.3s;
}

.hs-menu-wrapper.hs-menu-flow-horizontal>ul {
  float: right;
}

.custom-menu-primary .hs-menu-wrapper>ul>li>a {
  position:relative;
  color: #000;
  transition: all 0.3s;
}

.custom-menu-primary .hs-menu-wrapper.hs-menu-flow-horizontal>ul li.hs-item-has-children > a {
  position:relative;
}

.hs-menu-wrapper.hs-menu-flow-horizontal>ul li.hs-item-has-children {
  position: relative !important;
}

#header li.hs-menu-item.hs-menu-depth-1 {
  font-size: 14px;
  line-height: 1em;
  margin-right: 3.5px;
  padding-right: 22px;
  background: transparent;
}

#header li.hs-menu-item.hs-menu-depth-1:last-of-type {
  padding-right:0px;
  margin-right:0px;
}

@media screen and (min-width:992px) {
  #header .custom-menu-primary .hs-menu-wrapper>ul li.hs-menu-depth-1 > a:before, 
  #header .custom-menu-primary .hs-menu-wrapper>ul li.hs-menu-depth-1 > a:after {
    content: "";
    position: absolute;
    top: 13px;
    left: 0;
    width: 80px;
    height: 80px;
    border: 1px solid #333333;
    border-width: 1px 0 0 1px;
    opacity: 0;
    transition: all 0.2s ease-in-out 0s;
  }

  #header .custom-menu-primary .hs-menu-wrapper>ul li.hs-menu-depth-1 > a:before {
    top: -15px;
    left: -15px;
    border-width: 1px 0 0 1px;
  }

  #header .custom-menu-primary .hs-menu-wrapper>ul li.hs-menu-depth-1 > a:after {
    top: auto;
    left: auto;
    bottom: 15px;
    right: -15px;
    border-width: 0 1px 1px 0;
  }

  #header .custom-menu-primary .hs-menu-wrapper>ul li.hs-menu-depth-1 > a:hover:before, 
  #header .custom-menu-primary .hs-menu-wrapper>ul li.hs-menu-depth-1 > a:hover:after {
    width: 20px;
    height: 20px;
    opacity: 1;
  }
}

@media screen and (max-width:1200px) {

  #header li.hs-menu-item.hs-menu-depth-1 {
    padding-right: 15px;
  }

  #header img.hs-image-widget {
    max-width: 150px;
  }
}

#header .header-container {
  top: 0px;
  z-index: 10;
  transition: all 0.3s;
}

.hs-menu-wrapper.hs-menu-flow-horizontal > ul li.hs-item-has-children ul.hs-menu-children-wrapper li.hs-item-has-children ul.hs-menu-children-wrapper {
  left: 100% !important;
  top:-12px !important;
}

#header .hs-menu-wrapper.hs-menu-flow-horizontal>ul li a {
  font-size: 17px !important;
  letter-spacing: 0.25px !important;
  text-decoration: none;
  position: relative;
  color: #262626;
}

.custom-menu-primary .hs-menu-wrapper>ul ul li.hs-menu-item.hs-menu-depth-3 a {
  white-space: initial !important;
}

#header .hs-menu-wrapper.hs-menu-flow-horizontal>ul {
  margin-bottom: 0;
  z-index: 9;
  position: relative;
  padding-top: 33px;
  background:#fff !important;
}

@media screen and (min-width:991px) {

  #header .custom-menu-primary .hs-menu-wrapper>ul ul li.hs-menu-item.hs-menu-depth-3 {
    min-width: 250px;
  }

  .hs-menu-wrapper.hs-menu-flow-horizontal>ul li.hs-item-has-children:first-of-type > a {
    padding-top: 0px !important;
  }

  .hs-menu-wrapper.hs-menu-flow-horizontal>ul li.hs-item-has-children:last-of-type > a {
    padding-bottom: 0px !important;
  }

  #header .hs-menu-wrapper.hs-menu-flow-horizontal>ul li a {
    padding: 0px 0px 33px 0px;
  }

  #header .hs-menu-wrapper.hs-menu-flow-horizontal > ul li.hs-item-has-children ul.hs-menu-children-wrapper li a,
  #header .hs-menu-wrapper.hs-menu-flow-horizontal > ul li.hs-item-has-children ul.hs-menu-children-wrapper li.hs-item-has-children ul.hs-menu-children-wrapper li a{
    font-size:17px !important;
  }

  #header .hs-menu-wrapper.hs-menu-flow-horizontal>ul li.hs-item-has-children ul.hs-menu-children-wrapper li a {
    text-decoration: none;
    padding: 10px 20px;
    position: relative;
    color: #262626;
  }

  #header .custom-menu-primary .hs-menu-wrapper>ul ul li.hs-menu-item.hs-menu-depth-3:first-of-type a {
    padding-top:0px;
  }

  #header .custom-menu-primary .hs-menu-wrapper>ul ul li.hs-menu-item.hs-menu-depth-3:last-of-type a {
    padding-bottom:0px;
  }

}

@media screen and (max-width:767px) {

  #header .custom-menu-primary .hs-menu-wrapper>ul ul li.hs-menu-item.hs-menu-depth-3 a {
    text-indent: 0 !important;
    margin-left: 20px;
    line-height: 30px;
  }

  #header .custom-menu-primary.js-enabled .hs-menu-wrapper {
    top: -9px !important;
  }

}

#header .custom-menu-primary .hs-menu-wrapper > ul ul{
  padding: 10px;
}

#header .custom-menu-primary .hs-menu-wrapper > ul ul li a{
  color:#707070;
}
#header .custom-menu-primary .hs-menu-wrapper > ul ul li a:hover{
  color:#00A6FF;
}

#header .custom-menu-primary .hs-menu-wrapper > ul li a, 
#header .hs-menu-wrapper.hs-menu-flow-horizontal > ul li.hs-item-has-children ul.hs-menu-children-wrapper li a {
  overflow: visible !important;
  max-width: none !important;
  width: auto;
}

@media screen and (min-width:992px) {
  #header .custom-menu-primary .hs-menu-wrapper { 
    display:block !important;
  }

  #header .template-site .custom-menu-primary .hs-menu-wrapper > ul{ 
    float:right;
  }

  #header .custom-menu-primary .hs-menu-wrapper > ul ul{
    box-shadow: 0px 3px 7px rgba(0, 0, 0, 0.21);
  }

  #header .custom-menu-primary .hs-menu-wrapper > ul ul{
    background-color:#fff;
  }

  #header .hs-menu-wrapper.hs-menu-flow-horizontal>ul li.hs-item-has-children ul.hs-menu-children-wrapper {
    background-color: #ffffff;
    font-family: "Helvetica", Sans-serif;
    border-style: solid;
    border-width: 0px;
    border-radius: 3px;
    top:40px;
    padding: 12px 0px;
  }

}

@media screen and (max-width:991px) {

  #header .language_switch {
    position: absolute;
    right: 6px;
    top: -66px;
  }

  #header .globe_class:after {
    top:17px;
    left:40px;
  }

  #header .custom-menu-primary .hs-menu-wrapper > ul li a, 
  #header .hs-menu-wrapper.hs-menu-flow-horizontal > ul li.hs-item-has-children ul.hs-menu-children-wrapper li a {
    overflow: hidden !important;
    max-width: none !important;
    width: auto;
    white-space: normal;
    text-indent: 0;
    padding-left:20px;
    line-height:30px;
    padding-top: 10px;
    padding-bottom: 10px;
  }


  #header .hs-menu-wrapper.hs-menu-flow-horizontal>ul li a {
    color: #262626;
  }

  #header .hs-menu-wrapper.hs-menu-flow-horizontal>ul li.hs-item-has-children ul.hs-menu-children-wrapper li a {
    color: #262626;
    padding: 0px !important;
    font-size:15px !important;
  }

  #header .hs-menu-wrapper.hs-menu-flow-horizontal>ul li.hs-item-has-children ul.hs-menu-children-wrapper li:last-of-type a {
    border: 0px;
  }

  #header .hs-menu-wrapper.hs-menu-flow-horizontal>ul {
    margin-bottom: 0;
    z-index: 999999999;
    position: relative;
    padding: 10px 20px !important;
    color: #fff;
    box-shadow: 0px 6px 4px 0px #0003 !important;
  }

  .hs-menu-wrapper, .hs-menu-wrapper * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
    width: 100%;
  }

  #header .header-container .hs_cos_wrapper_type_logo a img {
    max-width: 170px !important;
  }
  #header {
    min-height: 64px;
    padding:20px 0px;
  }
}

#header .mobile-trigger, 
#header .child-trigger{
  display: none;
}

@media (max-width: 991px){

  #header .globe_class:before {
    top:15px !important;
    left:10px !important;
  }

  #header .col_menu {
    position: absolute !important;
    top: 53px;
    left: 0;
    right: 0;
    transition: all .3s;
    background: #fff0;
    border-radius: 0px;
  }

  .mobile-open #header .col_menu {
    position: absolute !important;
    top: 53px;
    left: 0;
    right: 0;
    transition: all .3s;
    border-radius: 0px;
  }

  #header .custom-menu-primary,
  #header .custom-menu-primary .hs-menu-wrapper > ul,
  #header .custom-menu-primary .hs-menu-wrapper > ul li,
  #header .custom-menu-primary .hs-menu-wrapper > ul li a{
    float: none;
    position: static;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    padding: 0px;
    margin: 0px;
    background-image: none;
    background-color: transparent;
    border: 0px;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
    -webkit-box-shadow: none;
    -moz-box-shadow:    none;
    box-shadow:         none; 
    max-width: none;
    width: 100%;
    height: auto;
    line-height: 1;  
    font-weight: normal;
    text-decoration: none;
    text-indent: 0px;
    text-align: left;
  }

  #header .mobile-trigger{
    display: inline-block !important;
    cursor: pointer;
    position: absolute;
    top: -63px;
    right: 0px;
    width: auto;
    height: auto;     
    padding: 8px 10px;
    font-size: 30px;
    border-width: 1px;
    border-radius: 12px;
    transition: all 0.3s;
  }

  .mobile-open #header .mobile-trigger{
    color:#fff;
  }

  #header .mobile-trigger i{
    display: inline-block;
    position: relative;
    top: -8px;
  }
  #header .mobile-trigger i:before, 
  #header .mobile-trigger i:after{
    position: absolute;
    content: '';
  }

  #header .mobile-trigger i:before{
    top: -7px;
  }
  #header .mobile-trigger i:after{
    top: 7px;
  }

  .mobile-open #header  .mobile-trigger i {
    background-color: transparent !important;
  }

  .mobile-open #header .mobile-trigger i:before {
    transform: rotate(45deg);
    top: 0;
  }

  .mobile-open #header  .mobile-trigger i:after {
    transform: rotate(-45deg);
    top: 0;
  }

  #header .child-trigger{
    display: block !important;
    cursor: pointer;
    position: absolute;
    top: 0px;
    right: 0px;
    width: 55px !important;
    min-width: 55px !important;
    height: 45px !important; 
    padding: 0 !important;
  }
  #header ul.hs-menu-children-wrapper li .child-trigger {
    height: 30px !important;
  }
  #header .child-trigger:hover{
    text-decoration: none;
  }
  #header .child-trigger i{
    position: relative;
    top: 50%;
    margin: 0 auto !important;
  }

  #header .child-trigger.child-open i:after {
    transform: rotate(225deg);
    transition: all 0.3s;
  }

  #header .custom-menu-primary.js-enabled{
    position: relative;
  }

  #header .custom-menu-primary.js-enabled .hs-menu-wrapper,
  #header .custom-menu-primary.js-enabled .hs-menu-children-wrapper{
    display: none;
  }  

  #header .custom-menu-primary ul.hs-menu-children-wrapper{
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    display: none;
  }

  #header .custom-menu-primary.js-enabled .hs-menu-wrapper{
    width: 100%;
    position: relative;
    top: 0;
    left: 0;
    padding: 0;
  }
  #header .custom-menu-primary .hs-menu-wrapper{
    width: 100%;
  }

  #header .custom-menu-primary .hs-menu-wrapper > ul > li{
    position: relative;
  }
  #header .custom-menu-primary .hs-menu-wrapper > ul > li a{
    font-size: 18px !important;
    line-height: 34px;
    overflow: visible;
  }

  #header .custom-menu-primary .hs-menu-wrapper > ul ul li{
    background-color: rgba(255, 255, 255, .08);
  }
  #header .custom-menu-primary .hs-menu-wrapper > ul ul li a{
    text-indent: 10px;
    font-size: 16px;
  }

  #header .custom-menu-primary .hs-menu-wrapper > ul ul ul li a{
    text-indent: 30px;
  }
  #header .custom-menu-primary .hs-menu-wrapper > ul ul ul ul li a{
    text-indent: 50px;
  }
}