.header {
  position: fixed;
  top: 16px;
  z-index: 101;
  margin: auto;
  left: 0;
  right: 0;
}

.header__container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
}

.header-logo {
  max-width: 156px;
}

.header a {
  text-decoration: none;
}

.menu-active {
  overflow: hidden;
}

.mega-menu-container {
  display: flex;
  justify-content: center;
  margin: auto;
}

.menu-item {
  color: #272727;
  font-size: 16px;
  line-height: 15px;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 4px;
}

.menu-item:hover {
  background: #F5F5F5;
}

.mega-menu {
  top: 70px;
  padding-top: 18px;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 10;
  display: none;
}

.mega-menu-table {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  background: #fff;
  border-radius: 0 0 8px 8px;
}

.mega-menu-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.mega-menu-sidebar {
  max-width: 290px;
  border-radius: 16px;
  background: #FAFAFA;
}

.sidebar-article {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-article-title {
  color: #272727;
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.32px;
}

.mega-menu-sidebar img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

.sidebar-article-subtitle {
  color: #272727;
  font-size: 14px;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: 0.32px;
}

.sidebar-article-subtitle svg {
  float: right;
  padding-top: 2px;
}

.mega-menu-item {
  padding: 24px;
  flex: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: all .18s ease;
}

.mega-menu-subtitle {
  color: #272727;
  font-size: 16px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid #EBE9E9;
  font-family: "Exo", Helvetica Neue, Helvetica, Arial, sans-serif;
}

.mega-menu-sidebar .mega-menu-subtitle {
  font-size: 20px;
  text-transform: initial;
  padding-bottom: 0;
  border: none;
}

a.mega-menu-subtitle svg rect {
  transition: all .1s ease;
}

.mega-menu-description {
  color: rgba(39, 39, 39, 0.60);
  font-size: 14px;
  line-height: 150%;
  padding-top: 16px;  
}

.mega-menu-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  width: 100%;
  padding-top: 24px;
}

.mega-menu-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 8px;
  color: #272727;
  border-radius: 8px;
}

.big-icons .mega-menu-list-item {
  align-items: center;
  max-width: 460px;
  padding: 32px 8px;
  position: relative;
}

.mega-menu-list-item,
.mega-menu-list-item span {
  transition: all .18s ease;
}

.mega-menu-column:first-child {
  flex: 1;
}

.mega-menu-column:first-child .mega-menu-item {
  height: 100%;
}

.mega-menu-column.column-full-width {
  flex-direction: row;
}

.mega-menu-list-item-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Exo", Helvetica Neue, Helvetica, Arial, sans-serif;
}

.mega-menu-list-item-label svg {
  opacity: 0;
}

.mega-menu-list-item-label span {
  color: #272727;
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.32px;
}

.big-icons .mega-menu-list-item-label {
  margin-bottom: 16px;
}

.big-icons .mega-menu-list-item-label span {
  font-size: 20px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.32px;
}

.mega-menu-list-item-description {
  color: #272727;
  font-size: 12px;
  font-weight: 400;
  line-height: 150%;
}

.mega-menu-list-item:hover {
  background: #FAFAFA;
}

.big-icons .mega-menu-list-item:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.33203 8H12.6654' stroke='%23272727' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8 3.33301L12.6667 7.99967L8 12.6663' stroke='%23272727' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
  opacity: 0;
  display: block;
  content:"";
  width: 16px;
  height: 16px;
  position: absolute;
  top: 32px;
  right: 24px;
  transform: translateX(-10px);
  transition: all 0.14s ease;
}

.big-icons  .mega-menu-list-item:hover::before {
  opacity: 1;
  transform: translateX(0px);
}

.small-icons .mega-menu-list-item:hover .mega-menu-list-item-icon{
  filter: invert(19%) sepia(99%) saturate(7404%) hue-rotate(359deg) brightness(105%) contrast(124%);
}

.header-extras {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-left: auto;
}

.sign-in-btn {
  color: #2C2C2C;
  font-size: 16px;
  min-width: 52px;
  display: flex;
  justify-content: center;
}

.sign-in-btn:hover {
  color: #2C2C2C;
  font-weight: 600;
}

.header-cta-btn {
  border: 1px solid #FF0101;
  border-radius: 4px;
  color: #FF0101;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  padding: 10px 30px;
  text-align: center;
  text-decoration: none;
  transition: all .22s ease-in;
}

.header-cta-btn:hover {
  border: 1px solid #b20000;
  background: #b20000;
  color: #fff;
}



@media all and (min-width:1024px) {
  #mega-menu-icon {
    display: none;
  }

  .header-wrap {
    justify-content: end;
  }

  .mega-menu {
    position: fixed;
    max-width: 90%;
  }

  .mega-menu-table {
    border: 1px solid #ccc;
    border-top: none;
  }
}

/*.mega-menu-column {
min-height: 500px;
}*/

.menu-dropdown:hover .mega-menu,
.mega-menu:hover {
  display: block;
}

.menu-dropdown:hover .mega-menu-item {
  animation: fadeInUp 150ms ease forwards;
}

.menu-dropdown:hover .mega-menu-column:nth-child(1) .mega-menu-item {
  animation-delay: 0ms;
}

.menu-dropdown:hover .mega-menu-column:nth-child(2) .mega-menu-item:nth-child(1) {
  animation-delay: 75ms;
}

.menu-dropdown:hover .mega-menu-column:nth-child(2) .mega-menu-item:nth-child(2) {
  animation-delay: 150ms;
}

.menu-dropdown:hover .mega-menu-column:nth-child(3) .mega-menu-item:nth-child(1) {
  animation-delay: 225ms;
}

.menu-dropdown:hover .mega-menu-column:nth-child(3) .mega-menu-item:nth-child(2) {
  animation-delay: 300ms;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#menu-icon {
  display: none;
}

.big-icons .mega-menu-subtitle {
  display: none;
}

@media all and (min-width:768px) and (max-width:1024px) {
  .mega-menu {
    margin-top: -40px;
  }

  .menu-item.menu-dropdown.open-item>span {
    z-index: 11;
    height: 34px;
    position: absolute;
    top: 0;
    width: 100%;
    max-width: 260px;
    opacity: 0;
  }

  .mega-menu-column.mega-menu-sidebar {
    height: fit-content;
  }

  .mega-menu-column.mega-menu-sidebar .mega-menu-subtitle {
    padding-left: 20px;
  }

  .mega-menu-column.mega-menu-sidebar .mega-menu-subtitle:before {
    background-image: url(data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='19' viewBox='0 0 18 19' fill='none'%3E%3Cpath d='M11.25 5L6.75 9.5L11.25 14' stroke='black' stroke-width='1.67' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 19px;
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 0;
  }
}

@media all and (max-width:1024px) {
  .header__container {
    justify-content: space-between;
  }

  .header__container .mega-menu-container {
    background: #fff;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 90%;
    max-height: calc(100vh - 92px);
    justify-content: flex-start;
    right: 0;
    left: 0;
    opacity: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 16px;
    position: fixed;
    top: 76px;
    margin: auto;
    border: 1px solid #ccc;
    border-top: none;
    padding-top: 24px;
    padding-bottom: 24px;
    border-radius: 0 0 8px 8px;
  }

  .header__container .menu-item {
    align-items: flex-start;
    background: #fff;
    box-sizing: border-box;
    flex-direction: column;
    padding: 16px 24px;
    position: relative;
    width: 100%;
    font-size: 16px;
    line-height: 15px;
    letter-spacing: 0.3px;
  }

  .menu-item.menu-dropdown>svg {
    display: none;
  }

  .menu-item.menu-dropdown:after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='19' viewBox='0 0 18 19' fill='none'%3E%3Cpath d='M6.75 14L11.25 9.5L6.75 5' stroke='black' stroke-width='1.67' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 19px;
    content: "";
    display: block;
    width: 18px;
    height: 19px;
    margin-left: auto;
    transition: all 0.2s ease;
    opacity: 1;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    right: 16px;
  }

  .menu-item.open-item>span {
    padding-left: 20px;
    transition: all 0.1s ease;
  }

  .menu-dropdown.open-item:before {
    opacity: 1;
  }

  .menu-item.open-item:after {
    opacity: 0;
  }

  .mega-menu {
    width: 100%;
  }

  .mega-menu-list {
    grid-template-columns: repeat(1, 1fr);
  }

  .mega-menu-item {
    opacity: 1;
    transform: translateY(0px);
    padding: 32px 0;
  }

  .mega-menu-item:before {
    content: "";
    position: absolute;
    width: calc(100% + 48px);
    height: 6px;
    top: -6px;
    left: -24px;
  }

  .mega-menu .container {
    padding: 0;
  }

  .menu-item.open-item .mega-menu-subtitle span {
    padding: 0;
  }

  .mega-menu-subtitle span br {
    display: none;
  }

  .mega-menu-table {
    gap: 24px;
  }

  .mega-menu-sidebar {
    max-width: 260px;
    padding: 0 16px;
  }

  #mega-menu-icon {
    display: flex;
  }

  .header-extras {
    margin-right: 30px;
  }
}

@media all and (min-width:768px) {
  .header-extras-m {
    display:none;
  }
}

@media all and (max-width:768px) {
  .header__container .menu-item {
    padding: 16px 0;
  }

  .mega-menu-table {
    flex-direction: column;
  }

  .mega-menu-list {
    padding-top: 8px;
    gap: 8px;
  }

  .mega-menu-item {
    padding: 8px 0 24px 0;
  }

  .menu-item.menu-dropdown:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='19' viewBox='0 0 18 19' fill='none'%3E%3Cpath d='M11.25 5L6.75 9.5L11.25 14' stroke='black' stroke-width='1.67' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 19px;
    content: "";
    display: block;
    width: 18px;
    height: 19px;
    position: absolute;
    opacity: 0;
    top: 14px;
  }

  .mega-menu-sidebar {
    order: 2;
    max-width: 100%;
    padding: 16px;
  }

  .menu-item.menu-dropdown.open-item>span {
    background: #fafafa;
    padding: 28px;
    padding-left: 38px;
    display: flex;
    align-items: center;
    width: 100%;
    border-radius: 16px;
    transition: none;
  }

  .menu-item.menu-dropdown.open-item:before {
    opacity: 1;
    top: 41px;
    left: 16px;
  }

  .header-extras {
    display:none;
  }


  .header-extras-m {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    border-top: 1px solid #eee;
    padding-top: 32px;
    margin-top: 16px;
  }
}

/* To2 - move to Global once UI design is complete */
/* To2 - parent theme is overriding padding settings */

.primary-btn {
  color: var(--White, var(--color-white-solid, #FFF));
  text-align: center;
  font-size: var(--font-size-16, 16px);
  font-weight: 500;
  line-height: var(--font-size-16, 16px);
  letter-spacing: var(--letter-spacing-0_32, 0.32px);
  border-radius: 4px;
  background: var(--color-red-50, #FF0101);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  text-decoration: none;
  transition: all .14s ease-in !important;
}

.primary-btn:hover,
.primary-btn:focus {
  color: var(--White, var(--color-white-solid, #FFF));
  background: #DB0505;
}

.text-btn {
  color: color: var(--color-black-solid, #000);
  text-align: center;
  font-size: var(--font-size-16, 16px);
  font-weight: 500;
  line-height: var(--font-size-16, 16px);
  letter-spacing: var(--letter-spacing-0_32, 0.32px);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  text-decoration: none;
  transition: all .14s ease-in !important;
}

.header-offset main {
  padding-top: 104px !important;
}

.sticky-header .body-wrapper {
  /*   padding-top: 0 !important; */
  scroll-padding-top: 0 !important;
}

.master-bright .body-wrapper,
.about-bright .body-wrapper,
.contact-bright .body-wrapper,
.product-bright .body-wrapper,
.split-hero-bright .body-wrapper,
.resources-bright .body-wrapper,
.blog-listing-background-bright .body-wrapper,
.blog-listing-bright .body-wrapper,
.flex-bright .body-wrapper {
  padding-top: 0 !important;
}

@media all and (min-width:1024px) {
  .hide-desktop {
    display: none !important;
  }
  
  .big-icons .mega-menu-list-item-icon {
    min-width: 120px;
}
}

@media all and (max-width:1024px) {
  .hide-tablet {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .module__related-section .related-blog-item {
    margin-top: 3.5em !important;
  }
}

/* Video wrapper */

.hs-video-wrapper {
  border-radius: 16px;
  overflow: hidden;
}

/* Editor */

.hs-inline-edit .header {
  position: relative;
  padding-bottom: 32px !important;
}

.hs-inline-edit main {
  padding-top: 0px !important;
}
