@media(min-width:1200px){
  .custom-mega-menu {
    position: relative;
  }
  .custom-mega-menu > ul{
    margin: 0 0 0 -15px;
    padding: 0;
    list-style: none;
    display: flex;
  }
  .custom-mega-menu > ul > li {
    padding: 0 15px;
    position: relative;
  }
  /* .custom-mega-menu > ul > li.submenu-items:before {
    content: "";
    height: 56px;
    background: transparent;
    width: 100%;
    top: 38px;
    display: block;
    position: absolute;
    left: 0;
    z-index: 99;
  } */
  .custom-mega-menu > ul > li > a {
    font-size: 14px;
    font-family: Foundry Monoline ,sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding: 10px 0;
    display: inline-block;
  }
  .custom-mega-menu > ul > li i {
    color: #ef3f4d;
    margin-left: 5px;
  }
  .custom-mega-menu > ul > li > a:before {
    content: "";
    width: 0;
    height: 3px;
    background: rgba(239,63,77,1.0);
    display: block;
    position: absolute;
    transition: 0.3s ease all;
    left: 0;
    right: 0;
    top: 0;
  }
  .custom-mega-menu > ul > li > a:hover:before {
    width:100%;
  }

  .with_content .primary-dropdown-menu * {
    color: #fff;
  }
  .primary-dropdown-menu {
    position: absolute;
    background: #292a33;
    padding: 40px;
    top: 45px;
    margin-top: 30px !important;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
  }
  .with_content .primary-dropdown-menu {
    max-width: 776px;
    min-width: 776px;
    width: 100%;
    padding: 40px;
    left: 50%;
    transform: translateX(-50%);
    top: 45px;
  }

  .custom-mega-menu > ul > li:hover .primary-dropdown-menu {
    display: block;
    margin-top: 0 !important;
    opacity: 1;
    visibility: visible;
  }
  .primary-dropdown-menu > ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display:block;
  }
  .with_content .primary-dropdown-menu > ul {
    display: flex;
    flex-wrap: wrap;
  }
  .with_content .primary-dropdown-menu > ul > li {
    width: 33.33%;
    padding: 0 15px;
  }
  .with_content .primary-dropdown-menu h3 {
    margin-bottom: 10px;
    font-size: 20px;
  }
  .with_content .primary-dropdown-menu p {
    margin-bottom: 0;
    font-size: 14px;
    font-family: Foundry Monoline Regular,sans-serif;
  }
  .custom-mega-menu .with_content .with-content-arrow i {
    color: #ffffff;
    margin-top: 20px;
  }
  .no_child .fa.fa-caret-down {
    display: none;
  }

  /* Submenu */
  .custom-mega-menu > ul > li.hs-submenu .primary-dropdown-menu {
    padding: 0;
  }
  .custom-mega-menu > ul > li.hs-submenu ul {
    display: block;
    min-width: 230px;
    padding: 0px;
  }
  .custom-mega-menu > ul > li.hs-submenu ul li a {
    padding: 10px 20px;
    position: relative;
    display: block;
    z-index: 99;
  }
  .custom-mega-menu > ul > li.hs-submenu ul li:hover > a {
    color: #fff;
  }
  .custom-mega-menu > ul > li.hs-submenu ul li > a:after {
    background-color: rgba(46,50,77,0.5);
    transition: width 0.3s ease;
    content: "";
    display: block;
    width: 0;
    height: 100%;
    position: absolute;
    bottom: 0;
    left:0;
    z-index: -1;
    border-left:none;
  }
  .custom-mega-menu > ul > li.hs-submenu ul li:hover > a:after {
    width: 100%;
  }

  .custom-mega-menu > ul > li.hs-submenu .primary-dropdown-menu ul li.hs-item-has-children ul {
    position: absolute;
    left: 235px;
    top: 0;
    background: #EF3F4D;
    display: none;
  }
  .custom-mega-menu > ul > li.hs-submenu .primary-dropdown-menu ul li.hs-item-has-children{
    position: relative;
  }
  .custom-mega-menu > ul > li.hs-submenu .primary-dropdown-menu ul li.hs-item-has-children:hover > ul {
    display: block;
  }

  .fixed .primary-dropdown-menu {
    top: 68px;
  }
  .fixed .custom-mega-menu > ul > li.submenu-items:before {
    height: 32px;
  }


}

@media (max-width: 1199px) {
  .with_content .primary-dropdown-menu,
  .primary-dropdown-menu{
    top:70px;
  }
}

/* @media (max-width: 980px) and (min-width: 768px){
  .custom-mega-menu > ul > li {
    padding: 0 10px;
  }
  .custom-mega-menu > ul > li.submenu-items:before {
    content: "";
    height: 33px;
    background: transparent;
    width: 100%;
    top: 100%;
    display: block;
    position: absolute;
    left: 0;
  }
  .primary-dropdown-menu {
    position: absolute;
    background: #EF3F4D;
    padding: 40px;
    top: 70px;
  }
  .with_content .primary-dropdown-menu {
    max-width: 600px;
    min-width: 600px;
    width: 100%;
    padding: 40px;
    left: 50%;
    transform: translateX(-50%);
    top: 70px;
  }
  .with_content .primary-dropdown-menu > ul > li {
    width: 50%;
    padding: 0 15px;
    margin-bottom: 30px;
  }
} */

@media(min-width:1200px){
  li.dl-back {
    display: none !important;
  }
}

@media(max-width:1199px){
  .custom-mega-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .custom-mega-menu ul li {
    border-bottom: 1px solid #fff;
  }
  .custom-mega-menu ul li a {
    font-size: 20px;
    color: #fff;
    line-height: 2;
    padding: 18px 30px;
    display: block;
  }
  .custom-mega-menu ul li > i {
    display: none;
  }

  .primary-dropdown-menu ul {
    display: block;
  }
  .primary-dropdown-menu ul li a {
    padding: 10px 20px;
  }
  .custom-mega-menu ul li.hs-item-has-children > a:after {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\f178";
    float: right;
    margin-top: 10px;
  }
  .custom-menu-primary  ul > li.hs-item-has-children .primary-dropdown-menu .hs-menu-wrapper  > ul,
  .custom-menu-primary  ul > li.hs-item-has-children .primary-dropdown-menu > ul,
  .primary-dropdown-menu .hs-menu-wrapper > ul li.hs-item-has-children ul{
    position: absolute !important;
    top: 0;
    left: 0;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
    background: #fff;
    box-shadow: rgb(0 0 0 / 17%) 0 6px 12px 0;
    height: calc(100vh - 77px);
    min-width: unset !important;
    -webkit-transform: translateX(100%);
    -ms-transform: translateX(100%);
    transform: translateX(100%);
    transition: all 0.3s !important;
    background: #ef3f4d;
  }
  .custom-menu-primary  ul > li.hs-item-has-children.child-open .primary-dropdown-menu .hs-menu-wrapper  > ul,
  .custom-menu-primary  ul > li.hs-item-has-children.child-open .primary-dropdown-menu > ul,
  .primary-dropdown-menu .hs-menu-wrapper > ul li.hs-item-has-children.child-open ul{    
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
  }

  .custom-mega-menu ul{
    display: block;
    border-top: 1px solid #fff;
  }
  .primary-dropdown-menu ul li a {
    color: #fff;
    padding: 15px 25px;
  }
  .primary-dropdown-menu ul li a:hover {
    background-color: rgba(46,50,77,1.0);
    color: #fff;
  }
  .with_content .primary-dropdown-menu ul li {
    padding: 20px;
    color: #fff;
  }
  .primary-dropdown-menu .dl-back {
    padding: 0;
  }

  .custom-mega-menu ul li a:hover {
    color: #fff;
    background-color: rgba(46,50,77,1.0);
  }
  li.dl-back a {
    background: transparent !important;
    padding: 0 !important;
  }
  li.dl-back i {
    margin-right: 20px;
  }
  .with-content-desc * {
    color: #fff;
  }
  .with-content-arrow {
    margin-top: 20px;
  }

}
@media (min-width: 768px) {
  .header-inner .custom-mega-menu>ul>li.hs-submenu ul li>a:after {
      background-color: rgb(239 64 78);
  }
}