/* Menu */

.menu--desktop {
  display: block;
  text-align: right;
}

.menu--mobile {
  display: none;
}

header.black-header .menu-wrap .hs_cos_wrapper a:last-child{border-color:var(--font-black) !important;}


@media (max-width: 992px) {
  .menu--desktop {
    display: none;
  }

  .menu--mobile {
    display: block;
  }
}

/* Menu items */

.menu__item {
  position: relative;
}





@media (max-width: 992px) {
  .menu__item {
    display: block;
    width: 100%;
  }

  .menu__link {
    display: block;
    font-size: 1.083rem;
  }
}

/* Menu items - top level */



/* .menu__item--depth-1:first-child .menu__link:after {
  position: absolute;
  content: "";
  left: -19px;
  background: url(https://2952860.fs1.hubspotusercontent-na1.net/hubfs/2952860/Casual_Films_2022/Images/Header/black-arrow.svg)no-repeat;
  background-position: center;
  background-size: cover;
  width: 22px;
  height: 43px;
  top: 0%;
}
 */


.menu__item--depth-1 {
  display: inline-block;
/*   margin-left: 2px; */
  padding-bottom:20px;
}

.menu__item--depth-1 > .menu__link--active-link:after {
  bottom: -3px;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  width: 100%;
}


@media(min-width:1200px) and (max-width:1201px){
.parentmenu-2:nth-child(2) .submenu-2 {left: -30%;transform: translateX(-25%);}  
}
@media(max-width:1200px){
  .menu__link{padding: 3px 25px;}
  
}



@media(max-width:1100px){
  .menu__link{padding: 3px 18px;}
}
@media (max-width:992px) {
  .menu__link {
    padding: 3px 33px;
    font-size: 15px;
  }
}

@media (max-width:992px) {
  .menu__link {
    padding: 3px 28px;
  }
}

@media (max-width:992px) {
  .menu__link {
    padding: 3px 25px;
    font-size: 14px;
  }
}

@media (max-width: 992px){
  .menu__link {
    padding: 2px 20px;
    font-size: 13px;
  }
  .menu__item--depth-1:first-child .menu__link:after {
    left: -16px;
    width: 18px;
    height: 39px;
  }
}

@media (max-width: 992px) {
  .menu__item--depth-1 {
    margin-left:0px;
  }

  .menu__item--depth-1 > .menu__link {
    padding: 7px 0px;
  }

  .menu__item--depth-1 > .menu__link--active-link:after {
    content: none;
  }
/*   .menu__item--depth-1:first-child{
    display:none;
  } */
  .menu__link {
    color:var(--font-black) !important;     
    font-weight: 400;
    margin: 0;
  }

}

/* Menu items - submenus */


.menu__item.menu__item--depth-2:last-child a{background: var(--primary-light) !important;    display: inline-block;  width: auto;border:1px solid var(--font-black) !important; border-radius:34px; padding:9px 15px; font-size:var(--font-16);}
.menu__item.menu__item--depth-2:last-child a:hover{background-color:var(--bs-gray-100) !important;}
.menu__submenu {  
  display: none;
  left: 0;
  position: absolute;
  text-align: left;
  text-transform: none;
  top: 100%;
  width: 100%;
/*   min-width:185px; */
  background-color:transparent !important;
  z-index: 99;
  padding:10px 0 20px;
  
}
.showfmenu{position:relative;}
.showfmenu:before {
   position: absolute;
    content: "";
    left: -50vw;
    top: 100%;
    width: 150vw;
    height: 34vh;
    background: #f8fafc;
    z-index: -1;
    transition: background-color 0.3s;
    display: block;
}


.showfmenu  ul.menu__submenu {display: block;}



.menu__submenu--level-2 {
/*   transform: translateX(-50%); */
}

/* Keeps the first menu item's drop down menu aligned to the left of the top level menu item */

.menu__item--depth-1:first-child .menu__submenu--level-2 {
  transform: unset;
}

.menu__submenu .menu__item {
/*   border-bottom: 1px solid #D1D6DC; */
  padding: 0;
  width: 100%;
}

.menu__submenu .menu__link {
  display: block;
  padding:4px 1.05rem;
  transition: background-color 0.3s;
  width: 100%;
  border:none; 
  border-radius:0;
  text-align:right;
  color:var(--font-black);
  font-size:var(--font-16);     
  margin:5px 0;
  line-height:19.36px;;
  background-color:transparent;  
}

/* .menu__submenu .menu__link:hover{color:#08effa;cursor:pointer;background:transparent;} */
.menu__submenu--level-3 {
  left: 100%;
  top: 0;
}

/* Flyouts for the last two top level menu items go left to keep page responsive */

.menu__item--depth-1:nth-last-child(-n+2) .menu__submenu--level-3 {
  left: auto;
  right: 100%;
  top: 0;
}

/* Accounts for child toggle */

.menu__submenu .menu__item--has-submenu > .menu__link {
  padding-right: 3rem;
}

/* Creates the triangle at the top of the submenu drop down */

@media (min-width: 993px) {
  .sticky .logo{top:-3px;}
  .menu__item--depth-1:first-child .menu__submenu { left: -15px; right: 0; width: 204px; }
  .menu__submenu{right:0;}
  .menu__item--depth-1:hover > a {background-color:rgba(79, 79, 79,0.20);}
  .menu__submenu .menu__item--depth-2 a:hover{background-color:rgba(255,255,255,0.40);}
  .menu__submenu .menu__item--depth-2 a{border-radius:10px;padding:10px;margin:0; letter-spacing: -0.8px;}
/*   header{padding-top:60px;} */
  header{padding:15px 0 0;}
  .body-container--resources header .logo-light{opacity:1;}
  .body-container--resources header.sticky .logo-light{opacity:0;}
  header.sticky {padding: 15px 0 0;}
  .menu__item.menu__item--depth-2:last-child {text-align: right;margin-top:10px}
  header .menu-wrap a{border:none !important;font-size: var(--font-20);}
  
  .menu__item--depth-1:last-child .menu__link{
 border: 1.74774px solid var(--primary-light) !important;
    background-image: linear-gradient(to left,transparent,transparent 50%,var(--secondry-dark) 50%,var(--secondry-dark));
    background-position: 100% 0;
    background-size: 200% 100%;
} 
  .menu__item--depth-1:last-child .menu__link:hover{
  background-color: #0e151f;
    background-image: #0e151f;
    background-position: 0 0;
    border-color: #0e151f !important;    
    color: #fff;
  }
  header.sticky .menu__item--depth-1:last-child .menu__link {  background-image: none;}
  header.sticky .menu__item--depth-1:last-child .menu__link:hover{background-color:#c4fc3f; border-color:#c4fc3f !important; background-position: 0 0; color: #0e151f;}
  
/*  .menu__item--depth-1:last-child .menu__link:hover{
  background: #08effa;
  color: #000000;
  border-color:#08effa;
} */
  .menu__submenu--level-2 > .menu__item:first-child:before {
    border-radius: 6px;
    /*box-shadow: 0 2px 9px 0 rgb(0 0 0 / 20%);*/
    content: '';
    display: none;
    height: 30px;
    left: 125px;
    margin-left: 1rem;
    overflow: hidden;
    position: absolute;
    top: -12px;
    transform: rotate(45deg);
    transition: background-color .3s;
    width: 30px;
    z-index: 2;
    
  }

  /* Keeps triangle to the left for the first menu item's drop down menu */

  .menu__item--depth-1:first-child > .menu__submenu--level-2 > .menu__item:first-child:before {
    left: 0;
  }

  .menu__submenu--level-2 > .menu__item:first-child > .menu__link {
    position: relative;
    z-index: 2;
    
  }
}

@media (max-width: 992px) {
  .menu__item--open > .menu__submenu{display:block;}
  .menu__submenu {
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: static;
    transform: unset;
    width: 100%;
  }

  .menu__submenu .menu__item {
    padding:5px 0;
  }
  

  .menu__submenu .menu__link {
    display: block;
    padding: 3px 0;
    transition: none;
    width: 100%;
    font-size: var(--font-16);
    text-align: left;
    margin: 0;
    background-color: transparent !important;
    border: none !important;
}

  .menu__submenu .menu__item .menu__link:hover,
  .menu__submenu .menu__item .menu__link:focus {
    background-color: inherit;
    transition: none;
  }

  .menu__item--has-submenu > .menu__link {
    width: 70%;
    border:none;
    border-radius:0;
  }

  .menu__submenu--level-3 .menu__item .menu__link {
    padding: 0.7rem 3rem;
  }
}

/* Menu icons */

@media(min-width: 993px) {
  .menu__submenu .menu__child-toggle {
    margin-left: auto;
    padding: 0 1.05rem;
  }

  .menu__child-toggle {
    position: absolute;
    right: 5px;
    top: 30px;
    z-index: 2;
  }

  .menu__item--depth-1 > .menu__child-toggle {
    position: static;
    right: 0;
    top: 0;
    vertical-align: middle;
    display:none;
  }

  .menu__child-toggle-icon {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top-style: solid;
    border-top-width: 7px;
    display: block;
    height: 0;
    margin-left: 1px;
    width: 0;
    display:none;
  }
}

@media (max-width: 992px) {
/*   .mobile-menu span{font-size:13.5px;position:relative; top:-3px;} */
  .mobile-menu span {
    font-size: 13.5px;
    position: absolute;
    top: -3px;
    cursor:pointer;
    right: 25px;
    line-height:23px;
}
  .menu-close{display:none;height:auto; margin-left: 5px; position: relative; width:50px;}
  .hclose-text{display:none;}
    .showmenus .hclose-text{display:block;color:#000}
  .showmenus .hmenu-text{display:none;}
  .showmenus   .menu-close{display:block;}
  .showmenus .menu-ico{display:none;}
  .showmenus .menu-close img {width: 15px;position: absolute;height: auto;display:block;}
  .showmenus  .menu-wrap {
    display: block;
    width: 100%;
    position: absolute;
    top: 99%;
    left: 0;
    right: 0;
    padding:20px;
    background: #f8fafc;
}
  li.menu__item.menu__item--depth-1 > a {font-size: var(--font-25); border:none !important}
  .menu__item.menu__item--depth-2:last-child{margin:10px 0 0;}
  li.menu__item.menu__item--depth-1:last-child a {
    border: 1px solid var(--font-black) !important;
    padding: 10px 15px;
}
  .menu__child-toggle {
    background-position: center right 30px;
    background-repeat: no-repeat;
    background-size: 20px;
    border: none;
    cursor: pointer;
    height:30px;
    padding:0;
    position: absolute;
    right: 0;
    top:12px;
    width: 30%;
  }
  button.menu__child-toggle.no-button.menu__child-toggle--open {
    top: 5px;
}

  .menu__child-toggle-icon {
/*     background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMTkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgc3Ryb2tlPSIjOTc5ODlGIiBzdHJva2Utd2lkdGg9IjIuNCIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCB4PSIxLjIiIHk9IjkuNiIgd2lkdGg9IjE2LjgiIGhlaWdodD0iMSIgcng9Ii41Ii8+PHJlY3QgdHJhbnNmb3JtPSJyb3RhdGUoOTAgOS42IDkuNikiIHg9IjEuMiIgeT0iOS42IiB3aWR0aD0iMTYuOCIgaGVpZ2h0PSIxIiByeD0iLjUiLz48L2c+PC9zdmc+);
    background-repeat: no-repeat; */
    border-left: solid 10px transparent;
    border-right: solid 10px transparent;
    border-bottom: solid 10px var(--font-black);
    display: block;
    height: 20px;
    margin-left: auto;
    margin-right: 1.05rem;
    transition: transform 0.4s;
    width: 20px;
     transform: rotate(-180deg);
    
  }

  .menu__item--open > .menu__child-toggle .menu__child-toggle-icon {
    transform: rotate(0deg);
    transition: transform 0.4s;
  }
}

@media(max-width:767px){
  li.menu__item.menu__item--depth-1 > a {font-size:20px; line-height:24px;} 
}

/* 
@media(max-width:1700px){

.menu__link{
   padding: 3px 15px;  
}
}

@media(max-width:1280px){

.menu__link {
    padding: 3px 5px;
} */
  
.header__logo {
    width: 200px;
}
}

