/*-- MOBILE MENU TRIGGER STYLES --*/

.parent-wrapper .nav-button .trigger {
  margin-top:10px;
}

.nav-button {
  display: inline-block;
  width: calc(100% - 175px);
  text-align:center;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.shrink .nav-button {
  display: inline-block;
  width: calc(100% - 120px);
  text-align:center;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.trigger {
  font-weight: 500;
  text-transform: uppercase;
  padding-right: 15px;
  color: #fff;
  font-size: 20px;
  padding-left: 22px;
}

span.menu-text.menu {
  background: url(https://www.youthranch.org/hubfs/Header%20Redesign%202020/hamburger-white.svg) no-repeat center left / 18px;
  padding-left: 22px;
}

span.menu-text.menu:hover {
  cursor:pointer;
}

span.menu-text.close {
  background: url(https://www.youthranch.org/hubfs/Header%20Redesign%202020/close-icon-white.svg) no-repeat center left / 18px;
  padding-left: 22px;
}

span.menu-text.close:hover {
  cursor:pointer;
}

/*-- MOBILE MENU STYLES --*/

.mobile-header .parent-wrapper {
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  z-index: 500;
  box-shadow: 0px 3px 6px rgba(0,0,0,.16);
}

.shrink .mobile-header .parent-wrapper {
  top:0px;
}

.mobile-header.active {
  background:#2FB1C9;
}

.mobile-header.ac .drop-down-wrapper {
  padding-top:180px;
}

.shrink .mobile-header.active .drop-down-wrapper {
    background: #2FB1C9;
    position: fixed;
    width: 100%;
    bottom: 0;
    top: 102px;
    overflow-y: scroll;
    -webkit-transition: all 0.2s ease-in-out; 
    -moz-transition: all 0.2s ease-in-out; 
    -o-transition: all 0.2s ease-in-out; 
    transition: all 0.2s ease-in-out;  
}

.mobile-header.active .drop-down-wrapper {
    background: #31b0c9;
    top: 228px;
    bottom: 0;
    position: fixed;
    width: 100%;
    -webkit-transition: all 0.2s ease-in-out; 
    -moz-transition: all 0.2s ease-in-out; 
    -o-transition: all 0.2s ease-in-out; 
    transition: all 0.2s ease-in-out;  
}

/* 
.shrink .mobile-header .drop-down-wrapper {
    padding-top: 88px;
    position: fixed;
    width: 100%;
    bottom: 0;
    top: 0;
    overflow-y: scroll;
    background: transparent;
} */

.mobile-header .megamenu-drop .childmenu-wrapper {
  position: relative !important;
  display: none;
}

.mobile-header .megamenu-drop.show {
  position: relative !important;
  display: block !important;
/*   width: 278px; */
  width:100%
  margin-left: auto;
  margin-right: auto;
}

.mobile-header .nav-button .trigger {
  display: none;
}

.mobile-header .nav-button .trigger.show {
  display: block;
}

.mobile-header .drop-down-column {
/*   width:278px; */
  margin-left:auto;
  margin-right:auto;
}

.mobile-header .drop-down-img {
  display:none;
}

.mobile-header .drop-down-desc {
  width:100%;
}

.mobile-header .drop-down-desc > div {
    width: calc(100% - 40px);
    float: left;
}

/* .mobile-header .drop-down-desc button */

.mobile-header .drop-down-desc button {
  width:30px;
  height: 30px;
  position: absolute;
  background: none;
  border: none;
  outline: 0;
  color: #fff;
  right:40px;
  top:20px;
}

/* .mobile-header .drop-down-desc button:before */

.mobile-header .drop-down-desc button:before {
  content: '\f067';
  font-family: 'FontAwesome';
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* .mobile-header .drop-down-desc button.active:before */

.mobile-header .drop-down-desc button.active:before {
  content: '\f068';
}

.mobile-header .column-one-wrapper {
    width: 100%;
}

.mobile-header .column-two-wrapper {
    width: 100%;
}

/*-- MENU PARENT ITEM STYLES --*/

.parent-wrapper {
  background:#31b0c9;
  box-shadow: 0px 3px 6px rgba(0,0,0,.16);
  -webkit-transition: all 0.4s ease-in-out;
  -moz-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}

.parent-wrapper .logo {
    display:inline-block;
    padding: 10px 0px 0px 10px;
}

.parent-wrapper .logo img {
  max-height:174px;
  width:150px !important;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.shrink .parent-wrapper .logo img {
  max-height:40px;
  width:52px !important;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.parent-wrapper .megamenu-parent-item {
  display: flex;
  overflow: hidden;
  flex-grow: 1;
  position: relative;
  text-align: center;
  flex-direction: column;
  background: url(https://www.youthranch.org/hubfs/Header%20Redesign%202020/parent-item-menu.svg) no-repeat center 140px / 20px rgba(255,255,255,.0);
  -webkit-transition: all .2s ease-in-out;
  -moz-transition: all .2s ease-in-out;
  -o-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;
  justify-content: center;
}

.parent-wrapper .megamenu-parent-item:hover {
  background:url(https://www.youthranch.org/hubfs/Header%20Redesign%202020/parent-item-menu.svg) no-repeat center bottom / 20px rgba(255,255,255,.25);
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.parent-wrapper .megamenu-parent-item a {
    color: #ffffff !important;
    text-transform: uppercase;
    position: absolute;
    font-size: 12px;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

/*-- MENU DROPDOWN STYLES --*/

.megamenu-drop {
  position: absolute;
  display: none;
  padding: 20px !important;
/*   width:calc(100% - 40px); */
  width:100%;
  padding:0px 20px;
  background:#2fb1c9;
}

.drop-down-img, .drop-down-desc, .column-one-wrapper, .column-two-wrapper {
  float:left;
}

.column-one-wrapper a, .column-two-wrapper a, .column-one-wrapper a:hover, .column-two-wrapper a:hover {
  color:#ffffff !important;
}

.drop-down-img {
  width:calc(25% - 20px);
  padding-right:20px;
}

.drop-down-img img {
  width:100%;
  object-fit:cover;
}

.drop-down-desc.small h2 {
  display:none;
}  

.drop-down-desc a h2 {
  display:inline;
  color:#ffffff;
  margin-top:0px;
  padding-top:0px;
  margin-bottom:20px;
  padding-bottom:0px;
  font-size:20px;
}

.drop-down-desc p {
  display:none;
  color:#ffffff;
  margin-top: 0px;
  padding-top: 0px;
  line-height: 1.25em;
  margin-top:0px;
  padding-top:0px;
}

.drop-down-desc .hs_cos_wrapper_type_inline_rich_text p, .drop-down-desc .hs_cos_wrapper_type_inline_rich_text span {
  color:#333333 !important;
}

.column-one-wrapper {
  width:calc(25% - 20px);
  padding-right:20px;
}

.column-two-wrapper {
  width:calc(25% - 20px);
  padding-right:20px;
}

.column-one-wrapper a, .column-two-wrapper a {
  color:#ffffff;
  display:block;
  padding:10px;
  background:rgba(255,255,255,0);
  border-bottom:1px solid rgba(255,255,255,.25);
  -webkit-transition: all 0.2s ease-in-out; 
  -moz-transition: all 0.2s ease-in-out; 
  -o-transition: all 0.2s ease-in-out; 
  transition: all 0.2s ease-in-out;  
}

.column-one-wrapper a:hover, .column-two-wrapper a:hover {
  color:#ffffff;
  display:block;
  background:rgba(255,255,255,.25);
  -webkit-transition: all 0.2s ease-in-out; 
  -moz-transition: all 0.2s ease-in-out; 
  -o-transition: all 0.2s ease-in-out; 
  transition: all 0.2s ease-in-out;   
}

.megamenu-drop.show-drop {
  display: block;
}

@media only screen and (min-width : 576px) { 
  .mobile-header .parent-wrapper {
  /*     top:48px; */
    top:96px; /*added height to accommodate search bar added*/
    position:fixed;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width:100%;
    z-index:500;
  }
  .drop-down-desc.small h2 {
    display:block;
  }  
  .mobile-header .megamenu-drop .drop-down-column.med {
    display: none;
  }
  .mobile-header .megamenu-drop .childmenu-wrapper {
    position: relative !important;
    display: block;
  }
  .mobile-header .drop-down-wrapper .drop-down-desc a h2 {
    font-size:1.5em;
  }
  .mobile-header.active .drop-down-wrapper {
    background: #31b0c9;
    top: 184px;
    bottom: 0;
    position: fixed;
    width: 100%;
    -webkit-transition: all 0.2s ease-in-out; 
    -moz-transition: all 0.2s ease-in-out; 
    -o-transition: all 0.2s ease-in-out; 
    transition: all 0.2s ease-in-out;  
  }
  .shrink .mobile-header.active .drop-down-wrapper {
    top: 62px;
    -webkit-transition: all 0.2s ease-in-out; 
    -moz-transition: all 0.2s ease-in-out; 
    -o-transition: all 0.2s ease-in-out; 
    transition: all 0.2s ease-in-out;  
  }
  .mobile-header.active .drop-down-wrapper, .shrink .mobile-header.active .drop-down-wrapper {
    background:#2fb1c9;
  }
  .megamenu-drop {
    padding: 0px 20px !important;
  }
  .parent-wrapper .logo {
    padding:10px;
  }
  .nav-button {
    text-align:right;
  }
  .shrink .nav-button {
    text-align: right;
  }
  .parent-wrapper .nav-button .trigger {
    margin-top: 20px;
  }
  .mobile-header .drop-down-column {
    width:496px;
  }
  .mobile-header .drop-down-desc {
    width: calc(50% - 10px);
    padding-right: 10px;
    padding-bottom: 0px;
    padding-top: 20px;
  }
  .drop-down-desc h2 {
    display:inline-block;
  }
  .drop-down-desc p {
    display:block;
  }
  .mobile-header .column-one-wrapper {
    width: calc(50% - 10px);
    padding-right: 0px;
    padding-top: 10px;
    padding-left: 10px;
  }
  .mobile-header .column-two-wrapper {
    padding-left: 10px;
    width: calc(50% - 10px);
    margin-left: calc(50% - 10px);
    padding-right: 0px;
  }
}

@media only screen and (min-width : 768px) {
  .mobile-header .drop-down-img {
    display:block;
    width: 100%;
    padding-right: 0px;
    margin-top:20px;
  }
  .mobile-header .drop-down-column {
    width:576px;
  }
  .mobile-header .drop-down-desc {
    width: 100%;
    padding-right: 10px;
    padding-bottom: 0px;
    padding-top: 20px;
  }
  .mobile-header .column-one-wrapper {
    clear: left;
    width: calc(50% - 10px);
    padding-right: 0px;
    padding-top: 0px;
    padding-left: 0px;
  }
  .mobile-header .column-two-wrapper {
    padding-left: 10px;
    width: calc(50% - 10px);
    padding-right: 0px;
    margin-left: 20px;
  }
  .mobile-header .parent-wrapper {
    top:48px;
  }
}

@media only screen and (min-width : 992px) {
  .header-container-wrapper.shrink {
    position:fixed !important;
  }
  .parent-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
  .parent-wrapper .megamenu-parent-item a {
    width:100%;
  }
  .mobile-header .drop-down-img {
    margin-top:0px;
  }
  .drop-down-desc {
    width:calc(25% - 20px);
    padding-right:20px;
  }
  .megamenu-drop {
    padding:20px 40px !important;
    box-shadow: 0px 3px 6px rgba(0,0,0,.16);
  }
}

@media only screen and (min-width : 1200px) {
  .parent-wrapper .megamenu-parent-item a {
    font-size:16px;
    padding:0px 10px;
  }
}