.header__mega-menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-flow: row wrap;
  flex-flow: row wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}
.header__mega-menu a {
  text-decoration: none;
}

.header__hamburger {
  margin: 1em 8px 1em 0;
  width: 24px;
  height: 24px;
  position: relative;
  transform: rotate(0deg);
  transition: 0.5s ease-in-out;
  cursor: pointer;
}
.header__hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #011425;
  border-radius: 9px;
  opacity: 1;
  left: 0;g);
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.header__hamburger span:nth-child(1) {
  top: 2px;
}

.header__hamburger span:nth-child(2),
.header__hamburger span:nth-child(3) {
  top: 10px;
}

.header__hamburger span:nth-child(4) {
  top: 18px;
}

.header__hamburger.open span:nth-child(1) {
  top: 18px;
  width: 0%;
  left: 50%;
}

.header__hamburger.open span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

.header__hamburger.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.header__hamburger.open span:nth-child(4) {
  top: 18px;
  width: 0%;
  left: 50%;
}
.header__logo {
  width: 40%;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  -ms-grid-column-align: left;
  justify-self: left;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.header__logo a {
  width: 100%;
}
.header__logo img {
  -o-object-fit: contain;
  object-fit: contain;
  width: 100%;
	max-width: 350px;
  margin: 1rem !important;
}

@media (min-width: 767px) and (max-width: 1200px) {
  .header__logo img {
    max-width: 250px;
  }
}
.header-container .header__logo .hs_cos_wrapper_type_logo a img {
  margin-top: 0;
  display: block;
	padding: 5px 0px;
  margin-left: 40px;
}
.header__cta {
  font-size: 8px;
  max-width: 30%;
}
.header__cta .btn {
  background-color: #00B1E2;
  padding: 6px 8px;
  color: #fff;
}
@media screen and (min-width: 280px) {
  .header__cta {
    font-size: 10px;
    margin: 0 0 0 8px;
  }
}
.header__menu {
  height: 100%;
  display: none;
  width: 100%;
}
.header__menu ul {
  list-style: none;
  padding: 0;
}
.header__menu > nav > ul {
  background: rgba(23, 23, 23, 0.95);
  margin: 0;
}
.header__menu > nav > ul > li {
  width: 100%;
}
.header__menu > nav > ul > li a {
  transition: all 0.3s ease;
}
.header__menu > nav > ul > li a:hover {
  opacity: 0.6;
}
.header__menu > nav > ul > li > a, .header__menu > nav > ul > li .header__link-wrapper {
  /*width: calc(100% - 32px);*/
  padding: 24px 18px 28px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  color: #fff;
}
.header__menu > nav > ul > li .header__link-wrapper__sublist {
  padding: 0;
  background-color: transparent;
}
.header__menu > nav > ul > li .no-headline .header__link-wrapper__sublist {
  display: none !important;
}
.header__link-wrapper {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.header__link-wrapper a, .header__link-wrapper .expand-trigger {
  display: block;
  color: #fff;
}
.header__link-wrapper .expand-trigger {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  align-self: flex-end;
  position: relative;
  top: -4px;
}
.header__link-wrapper .expand-trigger i {
  display: block;
  text-align: right;
  font-size: 24px;
}
.header__item-content {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  display: none;
}
.header__item-content.open {
  max-height: 99rem;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.header__subitem {
  padding: 1rem 1rem 0;
}
.header__subitem:last-child {
  padding-bottom: 1rem;
}
.header__subitem.no-headline {
  padding: 0 !important;
  margin: -27px -4px -33px;
}
.header__subitem * {
  color: #fff;
}
.header__subitem a {
  color: #00B1E2;
}
.header__subitem.no-headline a {
  padding: 14px 20px;
  display: inline-block;
  opacity: 1;
  width: 100%;
  font-size: 13px;
}
.header__subitem.no-headline li {
  margin: 0;
}
.header__subitem h4 {
  font-size: 14px;
  margin-bottom: 1.2em;
}
.header__subitem h3 {
  font-size: 16px;
  margin-bottom: 0;
}
.header__subitem p {
  font-size: 12px;
  margin-top: 0;
}
.header__subitem__copy {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  max-width: calc(100% - 62px);
  -ms-flex-item-align: center;
  align-self: center;
  margin: 0 auto;
  padding-top: 32px;
}
.header__subitem__copy p:last-child {
  margin-bottom: 0;
}
.header__subitem__copy img {
  margin-bottom: 20px;
}
.header__subitem__menu ul {
  display: none;
  line-height: 1.2;
  margin-top: 10px;
}
.header__subitem__menu.no-headline ul {
  display: block !important;
  margin-bottom: 0;
}
.header__subitem__menu ul li {
  margin-bottom: 0.46666em;
}
.header__subitem__resource h6 {
  margin: 8px 0 0;
  text-transform: uppercase;
  color: #00B1E2;
}
.header__subitem__resource h4 {
  margin: 11px 0 15px;
}
.header__subitem__resource h4 a {
  color: #fff;
  transition: all 0.3s ease;
}
.header__subitem__resource h4 a:hover {
  opacity: 0.6;
}
.header__subitem__resource img {
  max-height: 140px;
  margin: 8px 0 18px;
  object-fit: contain;
}
.header__subitem__resource a img {
  transition: all 0.3s ease;
}
.header__subitem__resource a img:hover {
  opacity: 0.6;
}
@media screen and (min-width: 992px) {
  .header__mega-menu {
    padding: 0;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
  }
  .header__hamburger {
    display: none;
  }
  .header__logo {
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
    -webkit-box-flex: 0;
    -ms-flex-positive: 0;
    flex-grow: 0;
    width: auto;
  }
  .header__menu {
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    width: auto;
    flex: auto 1 1;
    justify-content: flex-end;
    margin: 0 30px 0 0;
  }
  .header__menu > nav > ul {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row;
    flex-flow: row;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    background-color: transparent;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    justify-content: flex-end;
  }
  .header__menu nav > ul > li {
    width: auto;
    cursor: pointer;
  }
  .header__menu nav > ul > li.active .header__item-content {
    visibility: visible;
    opacity: 1;
  }
  .saas-theme .header__menu > nav > ul > li.active > .header__link-wrapper {
    position: relative;
    z-index: 1;
  }
  .header__menu nav > ul > li.active .expand-trigger i {
    -webkit-transform: translateX(6px) rotate(-180deg);
    -ms-transform: translateX(6px) rotate(-180deg);
    transform: translateX(6px) rotate(-180deg);
  }
  .header__menu nav > ul > li > a, .header__menu nav > ul > li > .header__link-wrapper {
    background-color: transparent;
    color: #00558C;
  }
  .header__menu nav > ul > li > a a, .header__menu nav > ul > li > a i, .header__menu nav > ul > li > .header__link-wrapper a, .header__menu nav > ul > li > .header__link-wrapper i {
    color: #00558C;
  }
  .header__menu nav > ul > li > .header__link-wrapper:hover {
    position: relative;
    z-index: 1;
  }
  .header__menu nav > ul > li > .header__link-wrapper:hover > a {
    color: rgba(0,0,0,0.6);
  }
  .header__menu nav ul li .header__link-wrapper__sublist {
    width: 100%;
  }
  .header__cta {
    -webkit-box-ordinal-group: 4;
    -ms-flex-order: 3;
    order: 3;
    margin: 0;
  }
  .header__cta .btn {
    font-size: 18px;
    padding: 7px 30px 8px;
  }
  .header__link-wrapper .expand-trigger i {
    -webkit-transform: translateX(6px);
    -ms-transform: translateX(6px);
    transform: translateX(6px);
    -webkit-transform-origin: center;
    -ms-transform-origin: center;
    transform-origin: center;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
  .header__link-wrapper__sublist .expand-trigger {
    display: none;
  }
  .header__item-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    cursor: initial;
    opacity: 0;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    visibility: hidden;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row;
    flex-flow: row;
    position: absolute;
    -webkit-transform: translate(0, 100%);
    -ms-transform: translate(0, 100%);
    transform: translate(0, 100%);
    padding: 27px 4px 33px;
    bottom: 0;
  }

  .header__subitem {
    max-width: 280px;
    padding: 0 18px 5px;
    flex: 280px 1 1;
  }
  .header__subitem h6 {
    font-size: 10px;
  }
  .header__subitem h4 {
    font-size: 16px;
  }
  .header__subitem h3 {
    font-size: 16px;
    margin-bottom: 6px;
    margin-top: 0;
  }
  .header__subitem p {
    font-size: 14px;
    padding: 0 12px;
  }
  .header__subitem li {
    font-size: 14px;
  }
  .header__subitem__menu > *,
  .header__subitem__copy > * {
    max-width: 280px;
  }
  .header__subitem__copy:not(:last-child) {
    border-right: 1px solid #ccc;
  }
  .header__subitem__menu ul {
    margin-top: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  .header__subitem__menu ul li a {
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
  .header__subitem__menu ul li a:hover {
    opacity: 0.6;
  }
  .header__subitem__resource img {
    display: none;
  }
}
@media screen and (min-width: 1200px) {
  .header__menu {
    padding-left: 50px;
  }
  .header__menu > nav > ul > li {
    font-size: 16px;
  }
  .header__subitem {
    max-width: 280px;
    padding: 0 36px 10px;
  }
  .header__subitem h6 {
    font-size: 14px;
  }
  .header__subitem h4 {
    font-size: 18px;
  }
  .header__subitem h3 {
    font-size: 24px;
    margin-bottom: 15px;
    margin-top: 0;
  }
  .header__subitem p {
    font-size: 16px;
    padding: 0 24px;
  }
  .header__subitem li {
    font-size: 18px;
  }
  .header__subitem__resource {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 2fr 3fr;
    grid-template-columns: 2fr 3fr;
    grid-gap: 16px;
    max-width: 560px;
    min-width: 500px;
  }
  .header__subitem__resource + .header__subitem{
    min-width: 270px;
  }
  .header__subitem__resource > a {
    -ms-grid-column: 1;
    -ms-grid-row: 1;
  }
  .header__subitem__resource > .header__subitem__inner-content {
    -ms-grid-column: 2;
    -ms-grid-row: 1;
  }
  .header__subitem__resource img {
    display: block;
    max-height: none;
    max-width: 100%;
    margin: initial;
  }
}


.header__menu .fa-angle-down:before {
  display: inline-block;
  color: var(--text);
  font-size: 16px;
}

@media(min-width: 992px) {
  .header__menu nav > ul > li {
    position: relative;
  }
  .header__item-content:not(.only-links) {
    min-width: 550px;
    right: 0;
  }
  .header__subitem.no-headline {
    min-width: 160px;
  }
}

@media(min-width: 991px) {
  .mobile { display: none; }
  
  .header__subitem__menu ul {
    border-top: 4px solid var(--teal);
  }
}

@media(max-width: 991px) {
  .desktop { display: none; }
  
  .header__hamburger {
    margin-left: 1rem;
    margin-right: auto;
  }
  .header__menu {
    max-height: 500px;
    overflow: scroll;
  }
  .header__subitem.header__subitem__menu ul {
    display: block !important;
  }
  .header__menu>nav>ul {
    background: var(--lightgray);
  }
  .header__subitem.header__subitem__menu .expand-trigger {
    display: none !important;
  }
  .header-container .header__logo .hs_cos_wrapper_type_logo a img {
    margin-left: 10px;
  }
  .header__logo {
    width: auto;
    flex-grow: 0;
    flex-shrink: 0;
  }
  .header__logo img {
    max-width: 65px;
    margin-right: 0;
  }
  .header__cta {
    max-width: 38%;
  }
  .header__mega-menu .header__cta a.button-wide {
    font-size: 14px;
    padding: 20px;
  }
  .header__subitem__menu ul li:last-of-type,
  .header__subitem__menu.no-headline ul,
  .header__subitem.no-headline {
    margin: 0 !important;
  }
  .header__subitem__menu ul li:last-of-type {
    padding-bottom: 30px;
  }
	.header__menu > nav > ul {
		position: absolute;
		left: 0;
		right: 0;
	}
	.nav-up .header__menu > nav > ul {
		position: relative;
	}
  .header__menu > nav > ul > li > a, 
  .header__menu > nav > ul > li .header__link-wrapper {
    padding: 10px 15px;
  }
  .header__subitem__copy {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
  }
  .header__link-wrapper.header__link-wrapper__sublist {
    padding: 14px 0 18px !important;
  }
}