@media (min-width: 1200px){
  .custom-menu-primary .submenu.level-1>li>a {
    cursor: pointer;
  }
  .submenu.level-1 {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    flex-direction: row;
    margin-left: auto;
  }
  .submenu.level-1 > li.has-submenu {
    position: relative;
  }
  .submenu.level-1 > li > a{
    display: block;
    padding: .5rem;
    text-transform: uppercase;
    font-family: Montserrat, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    font-size: .85rem;
    text-decoration: none;
  }

  .submenu.level-2 {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 10rem;
    background: #ededed;
    border-radius: 2px;
    border: 0;
    box-shadow: 0 4px 7px -4px #555;
    padding: 0;
    width: auto;
    min-width: 294px;
    margin: 0;
    font-size: 1rem;
    color: #666;
    text-align: left;
    list-style: none;
    display:none;
  }
  .submenu.level-1 > li:hover .submenu.level-2 {
    display:block;
  }
  
  .submenu.level-1 > li.has-submenu:hover:after {
    content: "";
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ededed;
    position: absolute;
    margin-top: -8px;
    margin-right: auto;
    margin-left: 45%;
  }
  .child-trigger {
    display: none;
  }
  .submenu.level-2 .menu-item .menu-link {
    display: block;
    width: 100%;
    padding: .75rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    font-family: "Montserrat",sans-serif;
    line-height: 1.5;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    text-decoration:none
  }
  .submenu.level-2 .menu-item .menu-link:hover {
    background: linear-gradient(to top right,#7a88e8,#0c7bf2);
    color: #fff;
  }

  /* Hide navigation dropdown in the inline editor */
  .hs-inline-edit .submenu.level-1 > li.has-submenu:hover .submenu.level-2,
  .hs-inline-edit > li.has-submenu.focus .submenu.level-2 {
    visibility: hidden;
  }
  /*
  .custom-menu-primary .submenu.level-1 > li:first-child > ul {
    display: none !important;
    flex-wrap: wrap;
    margin-top: -28px !important;
    width: 80% !important;
    left: 10%;
  }
  .custom-menu-primary .submenu.level-1>li:first-child:hover>ul {
    display: flex !important;
  }
  */

}

@media (min-width: 992px){
  /* First Child Mega Menu 

  .custom-menu-primary .submenu.level-1>li.has-submenu:first-child {
    position: static;
  }
  
  .custom-menu-primary .submenu.level-1 > li:first-child > ul > li > a {
    color: #6c757d;
    padding: 1rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: montserrat, sans-serif;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0,0,0,.1);
    white-space: normal;
  }
  */
  .custom-menu-primary .submenu.level-1 > li > ul ul  {
    list-style: none;
    padding: 0; 
    margin: 0;
  }
  .custom-menu-primary .submenu.level-3 > li {
    /*padding-left: 30px;*/
  }
  .custom-menu-primary li a[href=""], .custom-menu-primary li a[href="#"], .custom-menu-primary li a:not([href]) {
    pointer-events:none;
}
.custom-menu-primary .submenu.level-1>li:nth-child(2)>ul>li>a {
    border-bottom: 1px solid #dee2e6;
    color: rgba(33,37,41,.5);
    cursor: text;
    font-size: .85rem;
    font-weight: 300;
    line-height: 1.2;
    padding: 0.5rem 1rem;
    white-space: normal;
  }
  .custom-menu-primary .submenu.level-1 > li:first-child > ul > li a span {
    font-size: .65625rem;
    display: block;
    padding-left: 0;
    padding-top: .25rem;
    color: #666;
  }
  .custom-menu-primary .submenu.level-1 > li:first-child > ul > li > a {
    border-bottom: 1px solid #dee2e6;
    display: inline-block;
    padding: 16px 0 16px 70px;
    position: relative;
    white-space: normal;
}
  }
  .custom-menu-primary .submenu.level-1 > li:first-child > ul > li > a:before {
    background-position: 50%;
    background-repeat: no-repeat;
    content: "";
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 70px;
    z-index: 999;
  }
/*
  .custom-menu-primary .submenu.level-1 > li:first-child > ul > li > ul > li:first-child {
    width: 33.33333%;
    border-right: 1px solid #dee2e6;
  }
  .custom-menu-primary .submenu.level-1 > li:first-child > ul > li > ul > li:last-child {
    width: 66.66667%;
  }
  .custom-menu-primary .submenu.level-1 > li:first-child > ul > li:nth-child(2) > ul > li > a {
    padding: .5rem 1rem;
    font-size: .85rem;
    font-weight: 300;
    line-height: 1.2;
    border-bottom: 1px solid #dee2e6;
    white-space: normal;
    color: rgb(33 37 41 / 0.5);   
    cursor: text;
  }
  .custom-menu-primary .submenu.level-1 > li:first-child > ul > li:nth-child(2) > ul > li > ul > li {
    width: 100%;
    display: block;
  }
  .custom-menu-primary .submenu.level-1 > li:first-child > ul > li:nth-child(2) > ul > li > ul > li > a {
    color: #6c757d;
    padding: .5rem 1rem;
    border-bottom: 1px solid #dee2e6;
    display: block;
    width: 100%;
    clear: both;
    font-weight: 400;
    text-align: inherit;
    white-space: normal;
  }
  .custom-menu-primary .submenu.level-1 > li.has-submenu:first-child:hover:after {
    margin-left: 50px;
  }
  .custom-menu-primary .submenu.level-1 > li:first-child > ul > li:nth-child(2) > ul > li > ul > li {
    width: 100%;
    display: block;
  }
  .custom-menu-primary .submenu.level-1 > li:first-child > ul > li:first-child > ul > li {
    width: 100%;
    border-right: 0;
  }
  .custom-menu-primary .submenu.level-1>li:first-child>ul>li>a:hover, 
  .custom-menu-primary .submenu.level-1>li:first-child>ul>li:first-child>ul>li>a:hover, 
  .custom-menu-primary .submenu.level-1>li:first-child>ul>li:nth-child(2)>ul>li>ul>li>a:hover,
  .custom-menu-primary .submenu.level-1>li:first-child>ul>li:nth-child(2)>ul>li>a:hover{
    background: transparent;
  }
  */
}


@media (max-width: 1200px){
  .submenu.level-1 {
    width: 100%;
    margin:0;
    padding:0;
    list-style:none;
  }
  .submenu.level-1 > li {
    display: block;
    padding: 0;
    width: 100%;
    border-bottom: 1px solid #ededed;
    float: left;
    width: 100%;
  }
  .submenu.level-1 > li > a{
    padding: .75rem 0;
    display: block;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 400;
    line-height: 1.5;
    font-family: montserrat,sans-serif;
    font-size: .85rem;
  }
  input[type="checkbox"]:checked ~ .submenu {
    display: block;
  }
  input[type="checkbox"]:checked ~ .menu-arrow .menu-arrow-bg {
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transition: -webkit-transform 0.4s;
    transition: -webkit-transform 0.4s;
    -o-transition: transform 0.4s;
    transition: transform 0.4s;
    transition: transform 0.4s, -webkit-transform 0.4s;
  }
  .submenu.level-2 {
    border: none;
    box-shadow: none;
    opacity: 1;
    position: static;
    -webkit-transform: unset;
    -ms-transform: unset;
    transform: unset;
    visibility: visible;
    width: 100%;
    margin:0;
    padding:.0;
    list-style:none;
    display:none;
    margin: .125rem 0 0;
    font-size: 1rem;
    color: #666;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: .25rem;
    min-width: 100%;
    padding: 0 0 1rem;
    float: left;
    width: 100%;
    border: 0 !important;
  }
  .submenu.level-2 .menu-item {
    background-color: #FFF;
    border-bottom: 0;
    border-top: 0;
    padding: 0;
  }
  .submenu.level-2 .menu-item .menu-link {
    display: block;
    width: 100%;
    padding: .25rem 1.5rem;
    clear: both;
    font-weight: 400 ;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent !important;
    border: 0;
  }
  body .custom-menu-primary .submenu.level-2 .menu-item .menu-link,
  body .custom-menu-primary .submenu.level-2 {
    background-color: transparent !important;
    box-shadow: none !important;
    border: 0 ;
  }
  .submenu.level-2 .menu-item .menu-link:hover {
    background-color: inherit;
  }
  .submenu.level-2:hover {
    border: 0 !important;
  }
  .submenu.level-2 .menu-item .menu-link:hover {
    color: #16181b !important;
    text-decoration: none;
    background-color: #f8f9fa !important;
  }
  nav.navigation-primary {
    max-height: 67vh;
    overflow-y: auto;
  }
}
@media(max-width:1200px) and (min-width:992px){
  /*
  .custom-menu-primary .submenu.level-1>li:first-child>ul ul {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .custom-menu-primary .submenu.level-1>li:first-child>ul>li:first-child,
  .custom-menu-primary .submenu.level-1>li:first-child>ul>li:last-child {
    float: left;
  }
  .custom-menu-primary .submenu.level-1 > li:first-child > ul > li > a {
    border-bottom: 1px solid rgba(0,0,0,.1) !important;
  }
  .custom-menu-primary .submenu.level-1>li:first-child>ul>li:first-child,
  .custom-menu-primary .submenu.level-1>li:first-child>ul>li>ul>li:first-child{
    border: 0;
  }
  .custom-menu-primary .submenu.level-1>li:first-child>ul>li:nth-child(2)>ul>li>ul>li>a {
    padding: .5rem 1.5rem;
  }
  .custom-menu-primary .submenu.level-1>li:first-child>ul>li:first-child>ul>li a:before {
    width: 16.366%;
  }
  */
}

.mobileView{
  display:none;
}

@media (max-width: 991px){
  .mobileView{
    display:block;
  }
  .desktopView{
    display:none;
  }
  /*
  .custom-menu-primary .submenu.level-1>li:first-child>ul ul {
    display: block !important;
    overflow: unset !important;
    height: 100% !important;
  }
  .custom-menu-primary .submenu.level-1 > li:first-child > ul > li > a {
    padding: .75rem .25rem;
    border-bottom: 1px solid #dee2e6 !important;
    white-space: normal !important;
  }
  .custom-menu-primary .submenu.level-1 > li:first-child > ul > li.has-submenu > a {
    padding: .5rem 1rem;
    font-size: .85rem;
    font-weight: 300;
    line-height: 1.2;
    border-bottom: 1px solid #dee2e6;
    white-space: normal;
    color: rgb(33 37 41 / 0.5);
    white-space: normal !important;

  }
  .custom-menu-primary .submenu.level-1 > li:first-child > ul > li > ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .custom-menu-primary .submenu.level-1 > li:first-child > ul > li > ul > li > a {
    color: #6c757d;
    display: block;
    width: 100%;
    padding: .5rem 1.5rem;
    clear: both;
    font-weight: 400;
    text-align: inherit;
    font-size: 1rem;
    line-height: 1.5;
    white-space: normal !important;
    border-bottom: 1px solid #dee2e6 !important;
  }
  .custom-menu-primary .submenu.level-1 > li:first-child > ul > li > a:hover {
    color: #666 !important;
  }
  .custom-menu-primary .submenu.level-1>li:first-child>ul>li.has-submenu>a:hover{
    color: rgb(33 37 41 / .5) !important;
  }
  body .custom-menu-primary ul li:not(:first-child) .submenu.level-2 .menu-item .menu-link:hover {
    text-decoration: none;
    background-color: #f8f9fa !important;
  }

  body .custom-menu-primary .submenu.level-2 .menu-item {
    background-color: transparent;
  }
  .custom-menu-primary .submenu.level-1>li:first-child>ul>li.has-submenu>a {
    cursor: text;
  }
  */
}
@media (max-width: 575px){
  /*.custom-menu-primary .submenu.level-1>li:first-child>ul>li>a {
    border-top: 1px solid transparent !important;
  }
  .custom-menu-primary .submenu.level-1>li:first-child>ul>li.has-submenu>a {
    border-top: 0 !important;
  }*/
}