/* 
- 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;
}
/*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;
}
/* 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:9999;
  max-width: 200px;
}
.megamenu-dropdown-icon:before {
    content: "\f067";
    font-family: "fontawesome";
    display: none;
    cursor: pointer;
    padding: 1em;
    background: transparent;
    color: #ffcc00;
    position: absolute;
    right: 10px;
    z-index:999;
}

.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 > a {
    text-decoration: none;
    display: block;
    color: #fff;
/*    DAN increase font size to match homepage */
    font-size: 1.5rem;
    margin:0 2em;
    outline:0;
    line-height:2em!important;
    border-bottom:3px solid transparent;
}
.megamenu > ul > li > a:hover:not(.button) {
    border-bottom:3px solid #007bb6;
}
/* dropdown menu */
.megamenu > ul > li > ul {
    visibility: hidden;
    opacity: 0;
    min-height: 300px;
    width: 100%;
    background: #fff;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-around;
    align-items:stretch;
    position: absolute;
    z-index: 99; /* 99 */
    left: 0;
    margin: 0;
    padding-top: 2.5em;
    list-style: none;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0,0,0,.15);
}


.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: none;
    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: #777;
    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;
  }
 .megamenu-widget ul > li a:not(.button) {
/*    padding:.75em!important;*/
/*    font-size:1.25em!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;
    padding: 20px;
    background:#00205c;
    color:#fff;
    border-top:1px solid rgba(255,255,255,.15);
    outline:0;
}
.megamenu-mobile:hover {
    color:#fff;
}

.megamenu-mobile:after {
    content: "\f0c9";
    font-family: "fontawesome";
    font-size: 2.5rem;
    padding: 0;
    float: right;
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-25%);
    -ms-transform: translateY(-25%);
    transform: translateY(-25%);
}

@media only screen and (max-width: 959px) {
    .megamenu-container {
        width: 100%;
        padding:0;
        background:#00205c!important;
    }
    .megamenu-mobile {
        display: block;
    }
    .megamenu-dropdown-icon:before {
        display: block;
    }
    .megamenu > ul {
        display: none;
    }
    .megamenu > ul > li {
        width: 100%;
        float: none;
        display: block;
    }
    /*top level menu items in mobile menu*/
    .megamenu > ul > li a {
        width: 100%;
        display: block;
        color:#fff!important;
        padding:1em!important;
        line-height:1em!important;
    }
    .megamenu > ul > li a:hover,
    .megamenu > ul > li a:focus,
    .megamenu > ul > li a:active {
      filter:brightness(1.25);
      background:#00205d!important;
    }
    .megamenu > ul > li > ul {
        flex-wrap:wrap;
        z-index:9999;
    }
    .megamenu > ul > li > ul.normal-sub {
        width: 100%;
    }
    .megamenu > ul > li > ul > li {
        float: none;
        width: 50%;
        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 > ul > li > ul > li a:not(.button) {
      color:#666!important;
      padding:.5em!important;
      width:100%;
    }
    .megamenu > ul > li > ul > li a:not(.button):hover,
    .megamenu > ul > li > ul > li a:not(.button):active,
    .megamenu > ul > li > ul > li a:not(.button):focus {
      background:#fff!important;
    }

    .megamenu > ul > li > ul > li > ul {
        position: relative;
        margin:0!important;
    }
    .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;
    }
}
@media only screen and (max-width: 450px) {
  .logo-mobile {
    max-width:175px!important;
  }
  .megamenu-mobile:after {
    font-size:1.5rem;
    transform: translateY(0);
  }
  .megamenu > ul > li > ul {
    flex-flow:column nowrap;
  }
  .megamenu > ul > li > ul > li {
    width:100%;
  }
}