/* 
- Name: megamenu.js - megamenu-homepage.css
- Version: 1.2
- Latest update: 16.08.2017.
- Author: Mario Loncarek
- Author web site: https://marioloncarek.com
- Modified by Kayla Pratt - https://kaylapratt.com
********
- Modified by Dan Pindell
*/

/*
	Megamenu Styles for all Multisites
*/

#common-navigation {
  /* header is added to document flow */
  position: relative !important;
  background-color: #00205c;
}
#common-navigation.active {
  height: 160px;
}
/*WP ADMIN TOOLBAR FIX*/
.admin-bar #common-navigation {
  top: 0 !important;
}

/*
    Megamenu Styles for HOMEPAGE ONLY
*/
.visible {
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
}

/*
    General
*/
.megamenu-container {
  width: 100%;
  margin: 0 auto;
  background: transparent;
  transition: .2s ease all;
  padding: 2em 0;
  /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#000000+0,000000+100&0.3+1,0+100 */
  background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.3) 1%, rgba(0, 0, 0, 0) 100%);
  /* FF3.6-15 */
  background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.3) 1%, rgba(0, 0, 0, 0) 100%);
  /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.3) 1%, rgba(0, 0, 0, 0) 100%);
  /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#4d000000', endColorstr='#00000000', GradientType=0);
  /* IE6-9 */

}

.megamenu-container {
  background: #fff;
}

.megamenu-container .megamenu>ul>li a {
  color: #333;
  text-decoration: none;
}

/* flexbox layout */
.megamenu ul {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
}

/* LOGO effects */
.megamenu-container .logo {
  /*    DAN add relative and 9999*/
  position: relative;
  z-index: 1;
  max-width: 200px;
}

.mm-mobile-expand {
  cursor: pointer;
  padding-block: 1em;
  background: transparent;
  color: #ffcc00;
  cursor: pointer;
  display: none !important;
}
.mm-mobile-expand.fa-x {
  font-weight: 600;
}
.megamenu>ul {
  margin: 0 auto;
  width: 100%;
  list-style: none;
  padding: 0;
  position: relative;
  /* IF .megamenu position=relative -> ul = container width, ELSE ul = 100% width */
  box-sizing: border-box;
}

.megamenu>ul:before,
.megamenu>ul:after {
  content: "";
  display: table;
}

.megamenu>ul:after {
  clear: both;
}

.megamenu>ul>li {
  float: left;
  padding: 0;
  margin: 0;
}

/* primary top-tier menu content */
.megamenu>ul>li>div.menuItemHeader {
  text-decoration: none;
  align-items: center;
  color: #fff;
  /*    DAN increase font size to match homepage */
  font-size: 1.5rem;
  outline: 0;
  line-height: 2em !important;
  border-bottom: 3px solid transparent;
  margin: 0 2em;
}

.megamenu>ul>li>div.menuItemHeader:hover {
  border-bottom: 3px solid #007bb6;
}

/* dropdown menu */
.megamenu>ul>li>ul {
  display: none;
  opacity: 0;
  min-height: 300px;
  width: 100%;
  background: #fff;
  flex-flow: row nowrap;
  justify-content: space-around;
  align-items: stretch;
  z-index: 99;
  /* 99 */
  padding-top: 2.5em;
  list-style: none;
  box-sizing: border-box;
  position: absolute;
  visibility: hidden;
  left: 0;
  margin: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .15);
}

.megamenu>ul>li>ul.visible {
  display: flex;
}

.megamenu>ul>li>ul:before,
.megamenu>ul>li>ul:after {
  content: "";
  display: table;
}

.megamenu>ul>li>ul:after {
  clear: both;
}

/* individual menu lists in the dropdown menu */
.megamenu>ul>li>ul>li {
  margin: 0;
  padding-bottom: 0;
  list-style: none;
  width: 25%;
  background: unset;
  padding: 3em;
  /*    DAN match the following from homepage*/
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  flex: 1 1 auto;
  /*
    position:absolute;
    top:0;
    */
}

.megamenu>ul>li>ul>li:not(:last-child) {
  border-right: 1px solid rgba(0, 0, 0, .15);
}

/*
.megamenu > ul > li > ul > li:nth-of-type(1) {
    left:0;
}
.megamenu > ul > li > ul > li:nth-of-type(2) {
    left:25%;
}
.megamenu > ul > li > ul > li:nth-of-type(3) {
    left:50%;
}
.megamenu > ul > li > ul > li:nth-of-type(4) {
    left:75%;
}
*/

/* headers formenu lists in the drowdown menu */
.megamenu>ul>li>ul>li a {
  color: #777;
  padding: .2em 0;
  display: block;
  text-transform: uppercase;
  font-weight: bold;
  width: 100%;
}

.megamenu>ul>li>ul>li a:hover {
  text-decoration: underline;
}

.megamenu>ul>li>ul>li span {
  color: black;
  padding: .2em 0;
  display: block;
  text-transform: uppercase;
  font-weight: bold;
  width: 100%;
}

.megamenu>ul>li>ul>li>ul {
  display: block;
  padding: 0;
  /*DAN    margin: 10px 0 0;*/
  list-style: none;
  box-sizing: border-box;
  /*DAN remove because same as added above
    display:flex;
    flex-flow:column nowrap;
    justify-content:flex-start;
    flex: 1 1 auto;
*/
}

.megamenu>ul>li>ul>li>ul:before,
.megamenu>ul>li>ul>li>ul:after {
  content: "";
  display: table;
}

.megamenu>ul>li>ul>li>ul:after {
  clear: both;
}

.megamenu>ul>li>ul>li>ul>li {
  float: left;
  width: 100%;
  margin: 0;
  font-size: 1em;
}

/* items in the list for each section of dropdown menu */
.megamenu>ul>li>ul>li>ul>li a {
  border: 0;
  text-transform: none;
  font-weight: normal;
}

.megamenu>ul>li>ul>li>ul>li a:hover,
.megamenu>ul>li>ul>li>ul>li a:focus,
.megamenu>ul>li>ul>li>ul>li a:active {
  text-decoration: none;
}

.megamenu>ul>li>ul>li>ul>li a:hover:not(.button),
.megamenu>ul>li>ul>li>ul>li a:active:not(.button),
.megamenu>ul>li>ul>li>ul>li a:focus:not(.button) {
  color: #21759b !important;
}

.megamenu>ul>li>ul.normal-sub {
  width: 300px;
  left: auto;
  padding: 10px 20px;
}

.megamenu>ul>li>ul.normal-sub>li {
  width: 100%;
}

.megamenu>ul>li>ul.normal-sub>li a {
  border: 0;
  padding: 1em 0;
}

/*
    megamenu widget area
*/
.megamenu-widget {
  background: #fafafa !important;
  line-height: 2.2rem !important;
}

.megamenu-widget h3 {
  margin: .5em 0 !important;
}

.megamenu-widget ul>li a.button {
  font-size: 1em !important;
  padding: .75em 1em !important;
}

/* resize for screens less than 1500px width */
@media only screen and (max-width: 1500px) {

  .megamenu-widget ul>li a.button,
  .megamenu-widget ul>li a:not(.button) {
    font-size: inherit !important;
  }
}

.megamenu-widget ul>li a:hover {
  background: #fff;
}

.megamenu-widget ul>li>a i {
  width: 25px;
}

/*
    megamenu upcoming events area
*/
.megamenu-events {
  font-size: 1rem !important;
}

.megamenu-events .tribe-event-wrapper {
  width: 100%;
  max-width: 100%;
  padding-top: 1em !important;
  padding-bottom: 1em !important;
}

.megamenu-events .tribe-event-wrapper:not(last-child) {
  border-top: 1px solid #eee;
}

.megamenu-events .tribe-event-wrapper:last-child {
  border-bottom: 1px solid #eee;
}

.megamenu-events .tribe-event-wrapper:nth-of-type(even) {
  background: #fafafa;
}

.megamenu-events .tribe-event-wrapper .tribe-event {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

.megamenu-events .tribe-event-wrapper .tribe-event .tribe-event-date-wrap {
  display: flex;
  flex-flow: column nowrap;
  text-align: center;
  justify-content: center;
  min-width: 20%;
  max-width: 20%;
  flex-basis: auto;
  flex-grow: 1;
}

.megamenu-events .tribe-event-wrapper .tribe-event .tribe-event-date-wrap .date {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  color: #666 !important;
  background: transparent !important;
  margin: 0 !important;
  /*    DAN fix line height*/
  line-height: 1.9em !important;
  width: auto !important;
  height: auto !important;
}

.megamenu-events .tribe-event-wrapper .tribe-event .tribe-event-date-wrap .date.end:before {
  content: "\f175";
  font-family: fontawesome;
  padding: .5em 0;
  color: #666;
  /*DAN removed to match homepage
      font-style: normal!important;
      margin:0!important;
      font-size:inherit!important;
*/
}

.megamenu-events .tribe-event-wrapper .tribe-event .tribe-event-date-wrap .date .day {
  font-size: 2em !important;
  font-weight: bold;
}

.megamenu-events .tribe-event-wrapper .tribe-event .tribe-event-date-wrap .date .month {
  text-transform: lowercase;
  font-size: 1.5em !important;
}

/*    DAN clear padding margin */
.megamenu-events .tribe-event-wrapper .tribe-event .tribe-event-date-wrap .date .day,
.megamenu-events .tribe-event-wrapper .tribe-event .tribe-event-date-wrap .date .month {
  padding: 0 !important;
  margin: 0 !important;
}

.megamenu-events .tribe-event-wrapper .tribe-event .tribe-event-info {
  min-width: 80%;
  max-width: 80%;
  flex-basis: auto;
  flex-grow: 1;
}

.megamenu-events .tribe-event-wrapper .tribe-event .tribe-event-info .tribe-event-title a {
  text-decoration: none;
  color: #333;
  font-size: 1.35em !important;
  line-height: 1.35 !important;
  margin: 0 0 0 0 !important;
  padding: 0 !important;
}

.megamenu-events .tribe-event-wrapper .tribe-event .tribe-event-info .tribe-event-title a:hover {
  color: #248F8B;
}

.megamenu-events .tribe-event-wrapper .tribe-event .tribe-event-info .tribe-event-date-time {
  font-size: 1em !important;
  color: #666;
}

.megamenu-events .tribe-event-wrapper .tribe-event .tribe-event-info .tribe-event-date-time:before {
  content: "\f017";
  font-family: fontawesome;
  margin-right: .5em;
  color: #C29E57;
  /* hide time icon */
  visibility: hidden;
}

/*
  megamenu social media button clusters
*/
.megamenu-social {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}

.megamenu-social .button {
  width: 48%;
  line-height: 1rem;
  margin: .5rem 0 !important;
  font-size: 1em !important;
  /*DAN  padding: 1em!important;*/
}

/* ––––––––––––––––––––––––––––––––––––––––––––––––––
Mobile style
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.megamenu-mobile {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 1.5em;
  background: #00205c;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .15);
  outline: 0;
  text-align: center;
  height: 105px;
}

.megamenu-mobile:hover {
  color: #fff;
}

.megamenu-mobile-icon {
  font-family: "fontawesome";
  font-size: 2.5rem;
  padding: 0;
  float: right;
  position: relative;
  width: 2.5rem;
}
/* MegaMenu Mobile Hamburger icon with Animation to X */
#mega-menu-mobile-hamburger {
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  position: relative;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  cursor: pointer;
}

#mega-menu-mobile-hamburger span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: white;
  border-radius: 8px;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .20s ease-in-out;
  -moz-transition: .20s ease-in-out;
  -o-transition: .20s ease-in-out;
  transition: .20s ease-in-out;
}

#mega-menu-mobile-hamburger span:nth-child(1) {
  top: 0px;
}

#mega-menu-mobile-hamburger span:nth-child(2),#mega-menu-mobile-hamburger span:nth-child(3) {
  top: 10px;
}

#mega-menu-mobile-hamburger span:nth-child(4) {
  top: 20px;
}

#mega-menu-mobile-hamburger.open span:nth-child(1) {
  top: 18px;
  width: 0%;
  left: 50%;
}

#mega-menu-mobile-hamburger.open span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

#mega-menu-mobile-hamburger.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#mega-menu-mobile-hamburger.open span:nth-child(4) {
  top: 18px;
  width: 0%;
  left: 50%;
}

.megamenu-mobile-icon-container {
  display: flex;
  align-content: center;
  cursor: pointer;
}

@media only screen and (max-width: 959px) {
  .megamenu-container {
    width: 100%;
    padding: 0;
    background-color: transparent;
  }

  .mm-mobile-expand {
    display: block !important;
    width: 2.5rem;
    text-align: center;
  }
  .megamenu-mobile {
    display: flex;
  }

  .menuItemHeader > a {
    pointer-events: none;
  }
  .menuItemHeader > a.active {
    pointer-events: unset;
  }
  .megamenu-dropdown-icon:before {
    display: block;
  }

  .megamenu>ul>li {
    width: 100%;
    float: none;
    display: block;
  }

  .megamenu>ul>li>ul>li span {
    color: white;
  }

  .menuItemHeader {
    display: flex;
    justify-content: space-between;
    padding-inline: 1.5em;
  }

  .megamenu>ul>li>div.menuItemHeader {
    border-bottom: unset;
    margin: unset;
  }

  .megamenu>ul>li>div.menuItemHeader:hover {
    border-bottom: unset;
  }

  /*top level menu items in mobile menu*/
  .megamenu>ul>li a {
    display: block;
    color: #fff !important;
    line-height: 1em !important;
    font-weight: 500;
  }

  .megamenu-widget ul>li a:hover {
    background: unset;
  }

  .megamenu>ul>li:hover,
  .megamenu>ul>li:active,
  .megamenu>ul>li:focus {
    /* filter: brightness(1.25); */
    background: rgb(0, 37, 106) !important;
  }

  .megamenu>ul>li:hover {
    border-bottom: none;
  }

  .megamenu>ul>li>ul {
    display: flex;
    flex-wrap: wrap;
    z-index: 9999;
    background-color: transparent;
    padding-top: 0;
    position: relative;
    visibility: visible;
    border-bottom: unset;
    max-height: 0;
    transition: max-height 0.2s;
    pointer-events: none;
  }
  .megamenu>ul>li>ul.visible {
    max-height: 2000px;
    pointer-events: unset;
  }
  .megamenu>ul>li>ul.normal-sub {
    width: 100%;
  }

  .megamenu>ul>li>ul>li {
    float: none;
    width: 50%;
    background-color: unset !important;
    height: auto;
    padding: 1em !important;
  }

  .megamenu>ul>li>ul>li:nth-of-type(1),
  .megamenu>ul>li>ul>li:nth-of-type(2) {
    border-bottom: 1px solid rgba(0, 0, 0, .15);
  }

  /*
     .megamenu > ul > li > ul > li:nth-of-type(3) {
      top:50%;
      left:0;
    }
    .megamenu > ul > li > ul > li:nth-of-type(4) {
      top:50%;
      left:50%;
    }
    */
  /* dropdown menu */
  .megamenu>ul>li>ul {
    min-height: auto;
  }

  /* second level menu items*/
  .megamenu-dropdown-icon>ul>li>ul>li>a:not(.button) {
    color: black;
    padding: .5em;
    width: 100%;
  }

  .megamenu>ul>li>ul>li>ul>li a:hover:not(.button),
  .megamenu>ul>li>ul>li>ul>li a:active:not(.button),
  .megamenu>ul>li>ul>li>ul>li a:focus:not(.button) {
    color: unset !important;
  }

  .megamenu>ul>li>ul>li a.menuHeaderLink {
    padding-inline: unset !important;
    padding-block: 0.5em !important;
    color: white !important;
  }

  .megamenu>ul>li>ul>li>ul {
    position: relative;
    margin: 0 !important;
    color: white;
  }

  .megamenu>ul>li>ul>li>ul>li {
    float: none;
  }

  .megamenu .show-on-mobile {
    display: block;
    border-top: 1px solid rgba(255, 255, 255, .15);
  }

  .megamenu-container .logo {
    display: none !important;
  }

  .logo-mobile {
    max-width: 250px !important;
    margin-left: -12px;
  }
  .megamenu-dropdown-icon>ul>li>ul>li>a:not(.button) {
    color: white;
    padding: .5em;
    width: 100%;
  }
}

@media only screen and (max-width: 450px) {
  .logo-mobile {
    max-width: 175px !important;
  }

  .megamenu>ul>li>ul {
    flex-flow: column nowrap;
  }

  .megamenu>ul>li>ul>li {
    width: 100%;
  }
}