.header {
  z-index: 999;
  background: #fff;
}

.header .btn-header a {
  width: auto;
  height: 48px !important;
  background: linear-gradient(141.82deg, #FF0000 -52.55%, #FF7700 70.34%);
  box-shadow: 0px 2px 0px rgba(12, 14, 25, 0.16);
  border-radius: 10px;
  color: white !important;
  font-family: 'Inter' !important;
  font-size: 16px !important;
  font-style: normal;
  font-weight: 700 !important;
  border: none;
  text-decoration: none;
  margin: 0 auto;
  transition: all 0.2s ease-in-out;
  padding: 14px 15px !important;
}

.header .btn-header a:hover {
  filter: brightness(1.3);
  transition: all 0.2s ease-in-out;
}

.item-menu-products li a {
  text-indent: -950px;
  background-repeat: no-repeat;
}

.item-learning-universe a:after, .item-awakening a:after, .item-math-basecamp a:after {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  display: block;
  position: absolute;
  color: #fff;
  height: 47px;
  width: 89%;
  right: 0;
  text-indent: 0px;
  bottom: 10px;
  margin: auto;
  left: 0;
  right: 0;
  text-align: center;
}

.item-learning-universe a:after {
  content: 'Over 2000 K-8 educational games to supercharge math and science lessons.';
}

.item-awakening a:after {
  content: 'Make learning math and science into a thrilling adventure.';
}

.item-math-basecamp a:after {
  content: 'Comprehensive Math Fact Fluency within an exciting world.';
}


@media (min-width: 1000px) {
  .header-menu-new-mobile {
    display: none;
  }

  .header .header__menu.header__menu_new .btn-login {
    margin-left: 15px !important;
  }

  .header--transparent .header__logo {
    background-image: url(../img/logo-black.png);
  }
  .header .header__menu.header__menu_new .menu-item.menu-item-has-children>a:first-child:after{
    margin-top: 0;
    color: #212121;
    border: solid #989EB3;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    margin-left: 11px;
  }
  .header .header__menu.header__menu_new .menu-item.menu-item-has-children.open>a:first-child:after{
    border: solid #F70;
    border-width: 0 2px 2px 0;
  }

  .button--login-secondary {
    background: #ff6d41;
    color: #fff;
    border: 2px solid #cb6442;
    box-shadow: 5px 5px 0px 0px rgba(0, 0, 0, 0.15);
    box-shadow: rgba(0, 0, 0, 0.15);
    text-decoration: none;
  }

  .item-menu-products li {
    overflow: hidden;
  }

  .item-menu-products li a {
    background-size: 307px 148px;
    min-height: 148px;
    filter: brightness(1.05);
    position: relative;
  }

  .item-menu-products li:hover a {
    transition: all 0.2s ease-in-out;
    filter: brightness(1);
  }

  .item-learning-universe a {
    background-image: url('../img/header-menu-nav-learning-universe.png');
  }

  .item-awakening a {
    background-image: url('../img/header-menu-nav-awakening.png');
  }

  .item-math-basecamp a {
    background-image: url('../img/header-menu-nav-math-basecamp.png');
  }

  .header-item-awakening {
    display: none;
    position: absolute;
    width: 620px;
    background: #fff;
    padding: 24px;
    border-radius: 24px;
    left: 315px;
    box-shadow: 0px 16px 64px 0px rgba(12, 14, 25, 0.12), 0px 0px 12px 0px rgba(12, 14, 25, 0.08);
  }

  .header-item-awakening:before {
    content: " ";
    display: block;
    position: absolute;
    top: 41%;
    left: -30px;
    transform: translateY(-50%);
    border-width: 15px;
    border-style: solid;
    border-color: transparent #ffffff transparent transparent;
    z-index: 99;
  }

  .header-item-awakening h3 {
    text-shadow: none;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    color: #0C0E19;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -2.88px;
    text-align: center;
    margin: 6rem auto;
  }

  .header-item-awakening-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin: 0;
    position: relative;
  }

  .header-item-awakening-columns img {
    display: none;
  }

  .header-item-awakening-columns a:hover {
    opacity: 0.85;
  }

  .header .header__menu.header__menu_new .menu-item>.sub-menu {
    min-width: 315px;
  }

  .header .header__menu.header__menu_new .menu-item.menu-item-has-children .sub-menu {
    top: 80px;
    background: #F4F6F9;
    box-shadow: 0px 16px 64px 0px rgba(12, 14, 25, 0.12), 0px 0px 12px 0px rgba(12, 14, 25, 0.08);
    border-radius: 20px;
    padding: 4px;
  }


  .header .header__menu.header__menu_new .menu>li.menu-item>a {
    align-items: center;
    height: 80px;
    color: #697089;
    text-align: center;
    font-family: 'Inter';
    font-size: 15px;
    line-height: 25px;
    border: none;
  }

  .header .header__menu_new .menu>li.menu-item>a:hover,
  .header .header__menu_new .menu>li.menu-item.current-menu-item.current_page_item.menu-item-has-children > a,
  .header .header__menu_new .menu>li .sub-menu li.menu-item.current-menu-item.current_page_item a{
    color: #0C0E19;
  }

  .header .header__menu.header__menu_new .menu li.menu-item .sub-menu a {
    padding: 14px 20px;
    display: block;
    color: #697089;
    font-family: 'Inter';
    font-size: 15px;
    font-weight: 500;
    line-height: normal;
    background-color: #fff;
    border-radius: 5px;
    border: none;
    text-align: left;
  }

  .header .header__menu.header__menu_new .menu li.menu-item .sub-menu a:hover {
    color: #0C0E19;
  }

  .header .header__menu.header__menu_new .menu li.menu-item .sub-menu li {
    margin: 0 0 2px 0;
  }

  .header .header__menu.header__menu_new .menu li.menu-item .sub-menu li:last-child {
    margin: 0;
  }

  .header .header__menu.header__menu_new .menu li.menu-item .sub-menu li:first-child a {
    border-radius: 20px 20px 5px 5px;
  }

  .header .header__menu.header__menu_new .menu li.menu-item .sub-menu li:last-child a {
    border-radius: 5px 5px 20px 20px;
  }

  .header .header__menu.header__menu_new .menu li.item-resources .sub-menu a {
    border-radius: 20px;
  }

  .header .header__menu.header__menu_new .menu li.menu-item .sub-menu .menu-item:hover a {
    background-color: rgb(233 233 233 / 8%);
    color: #000000;
  }

  .header .header__menu.header__menu_new .menu li.menu-item .sub-menu .menu-item {
    border-radius: 0;
  }
}

/* / min-width: 1000px */


@media only screen and (min-width: 999px) and (max-width: 1200px) {
  .header .btn-header a {
    height: 38px !important;
    font-size: 14px !important;
    padding: 8px 9px !important;
  }

  .header .header__menu.header__menu_new .menu>li.menu-item>a {
    font-size: 13px;
    line-height: 23px;
  }
}

@media (max-width: 1000px) {
  .header {
    height: auto !important;
  }

  .hero--dblue {
    margin-top: 66px !important;
    padding: 35px 0 35px;
  }

  .header-menu-new-mobile {
    display: flex;
    gap: 5px;
    align-items: center;
  }

  .header-menu-new-mobile .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: #fff;
    padding: 10px;
  }

  .header-menu-new-mobile .bar {
    background-color: #0C0E19;
    margin-top: 4px;
    display: flex;
    width: 24px;
    height: 4px;
    border-radius: 6px;
  }

  .menu-toggle.menu-open .bar {
    display: none;
  }

  .menu-toggle.menu-open {
    background: url(../img/header-menu-mobile-close-toggle.png) no-repeat;
    background-size: contain;
  }

  .header-menu-new-mobile .menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    width: 24px;
    height: 24px;
    transition: all 0.3s ease-in-out;
    margin-left: 10px;
  }

  .mobile-menu {
    display: none;
    background: #fff;
    position: absolute;
    top: 66px;
    width: 100%;
    left: 0;
    right: 0;
    padding: 16px;
  }

  .header-menu-new-mobile .mobile-menu li a,
  .header-menu-new-mobile a.login {
    color: #0C0E19;
    font-family: 'Inter';
    font-weight: 700;
    padding: 14px;
    display: block;
    transition: all 0.3s ease-in-out;
  }

  .header-menu-new-mobile .mobile-menu li a {
    font-size: 16px;
    line-height: 20px;
    background-color: #fff;
    border-radius: 5px;
    margin-bottom: 0;
  }

  .header-menu-new-mobile a.login {
    font-size: 14px;
    line-height: 20px;
  }

  .header-menu-new-mobile ul.menu li {
    position: relative;
  }

  .header-menu-new-mobile ul.menu li .submenu-toggle {
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    height: 48px;
    cursor: pointer;
  }

  .submenu-toggle:before {
    border-color: #F70;
    border-width: 0 3px 3px 0;
    display: block;
    content: " ";
    padding: 7px;
    transform: rotate(130deg);
    -webkit-transform: rotate(130deg);
    position: absolute;
    right: 10px;
    top: 10px;
    transition: all 0.3s ease-in-out;
    border-style: solid;
  }

  .header-menu-new-mobile .submenu-toggle.open:before {
    transform: rotate(222deg);
    border-color: #989EB3;
    top: 21px;
  }

  .header-menu-new-mobile .sub-menu {
    display: none;
    border-radius: 10px;
    background: #F4F6F9;
    padding-bottom: 5px;
  }

  .header-menu-new-mobile .sub-menu.open {
    display: block;
  }

  .header-menu-new-mobile .sub-menu li {
    padding: 5px 5px 0 5px;
  }

  .header-menu-new-mobile .submenu-toggle {
    display: inline-block;
  }

  .item-menu-products li a {
    background-size: contain;
    min-height: 91px;
    margin-bottom: 4px;
  }

  .header-menu-new-mobile .container-nav-mobile .btn-header.menu-item,
  .header-menu-new-mobile .container-nav-mobile .btn-login {
    display: none;
  }

  .item-learning-universe a:after, .item-awakening a:after, .item-math-basecamp a:after {
    height: 47px; 
    width: 42%;
    font-size: 15px;
    line-height: 24px;
    right: 4%;
    transform: translateY(-50%) translateX(-8%);
    top: 50%;
    margin: 0 0 0 auto;
    text-align: left;
  }
}

/* / max-width: 1000px */

@media only screen and (max-width: 1000px) {
  .header__menu.header__menu_new{
      display: none !important;
  }
  .item-awakening a,
  .item-learning-universe a,
  .item-math-basecamp a {
    border-radius: 10px;
    position: relative;
  }

  .item-learning-universe a {
    background: linear-gradient(180deg, rgba(255, 0, 0, 0) 0%, #FF7700 100%),
      url('../img/Pattern-LU_v2.png'), linear-gradient(141.82deg, #FF0000 -52.55%, #FF7700 70.34%);
    background-size: cover !important;
  }

  .item-learning-universe a:before,
  .item-awakening a:before,
  .item-math-basecamp a:before {
    content: " ";
    display: block;
    position: absolute;
    left: 11%;
    height: 60px;
  }

  .item-learning-universe a:before {
    background: url(../img/header-menu-nav-tablet-logo-learning-universe.png) no-repeat center center;
    background-size: contain;
    width: 215px;
    top: 15px;
  }

  .item-awakening a {
    background: linear-gradient(180deg, rgba(16, 192, 161, 0) 0%, #2CB8D7 100%), url('../img/Pattern-Awakening_v2.png'), linear-gradient(180deg, #10C0A1 0%, #2CB8D7 100%);
    background-size: cover !important;
  }

  .item-awakening a:before {
    background: url(../img/header-menu-nav-tablet-logo-awakening.png) no-repeat center center;
    background-size: contain;
    width: 215px;
    top: 19px;
  }

  .item-math-basecamp a {
    background: linear-gradient(180deg, rgba(20, 129, 224, 0) 0%, #2FBAE9 100%), url('../img/Pattern-MB_v2.png'), linear-gradient(180deg, #1481E0 0%, #2FBAE9 100%);
    background-size: cover !important;
  }

  .item-math-basecamp a:before {
    background: url(../img/header-menu-nav-tablet-logo-math-basecamp.png) no-repeat center center;
    background-size: contain;
    width: 200px;
    top: 17px;
  }

}

/* / max-width: 1000px  */

@media only screen and (min-width: 395px) and (max-width: 590px) {

  .item-learning-universe a:before,
  .item-awakening a:before,
  .item-math-basecamp a:before {
    left: 1%;
    height: 43px;
    top: 24px;
  }

  .item-learning-universe a:after,
  .item-awakening a:after,
  .item-math-basecamp a:after {
    font-size: 12px;
    line-height: 18px;
    width: 43%;
  }
}

/* / min-width: 395px and max-width: 590px  */

@media (max-width: 395px) {

  .container-nav-mobile .sub-menu li a:before,
  .container-nav-mobile .sub-menu li a:after {
    display: none;
  }

  .item-learning-universe a {
    background-image: url('../img/header-menu-nav-mobile-learning-universe.png');
  }

  .item-awakening a {
    background-image: url('../img/header-menu-nav-mobile-awakening.png');
  }

  .item-math-basecamp a {
    background-image: url('../img/header-menu-nav-mobile-math-basecamp.png');
  }
  .header-menu-new-mobile li.item-menu-products .sub-menu li a:after{
    display: block;
    font-size: 12px;
    line-height: 18px;
    right: 0;
    width: 165px;
    transform: translateY(-50%) translateX(0%);
    top: 50%;
  }
}

/* / min-width: 395px and max-width: 1000px  */