/*!
 * SUNY Upstate MegaMenu v1.2.6
 *
 * Author: German Drulyk
 *
 * Changelog:
 * 20220513 - drulykg - Remove gradient background
 * 20220513 - drulykg - v1.2.6 released
 * 20180716 - drulykg - v1.2.4 released
 *                      nav-rule.jpg now loads root-relative instead of absolute
 * 20180125 - drulykg - v1.2.3 released
 *                      Changed the fallback color to #2b6990
 * 20171205 - drulykg - v1.2.2 released
 *                      No CSS changes; just keeping up with the JS release
 * 20171002 - drulykg - v1.2.1 released
 *                      No CSS changes; just keeping up with the JS release
 * 20170921 - drulykg - Added wrapping support for items in the classic-menu dropdown
 *                      Fixed mega-menu right border for columns since we got rid of the final div with clr
 * 20170919 - drulykg - v1.2.0 released
 *                      Removed unnecessary right-border CSS target
 * 20170912 - drulykg - Added CSS to fix an iPad issue
 * 20170831 - drulykg - Added CSS for mega-edition <a>'s within the .container
 * 20170825 - drulykg - v1.1.1 released
 *                      No CSS changes; just keeping up with the JS release
 * 20170824 - drulykg - v1.1.0 released
 *                      No CSS changes; just keeping up with the JS release
 * 20170808 - drulykg - v1.0.0 released
 */

/* Color reference
 *
 * Light Blue  =  #09a0cf  =  rgba(9, 160, 207, 1)
 * Dark Blue   =  #2b6990  =  rgba(43, 105, 144, 1)
 * Khaki       =  #e3e5c0  =  rgba(227, 229, 192, 1)
 */


/*
 * GD - Custom Nav Bar; configured at URL below
 *      http://bootstrapdesigntools.com/tools/bootstrap-menu-builder/
 *      and then modified
 */
.suny-upstate-mega-menu {
  background-color: #2b6990;  
  border-width: 0px;
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  -ms-border-radius: 0px;
  -o-border-radius: 0px;
  border-radius: 0px;
  margin-bottom: 0px;
  /*
   * Add a z-index to fix iPad issue
   * Menu items would appear behind page content
   */
  z-index:10;
}

/*
 * Make the navbar height 40px
 * https://stackoverflow.com/a/29285935
 */
.suny-upstate-mega-menu.navbar {
    min-height:40px !important;
}
.navbar-brand,
.suny-upstate-mega-menu .navbar-nav > li > a {
    padding-top:5px !important; padding-bottom:0 !important;
    height: 40px;
}
/* /Make the navbar height 40px */

.suny-upstate-mega-menu .navbar-collapse {
  /*
  * We are not using .navbar-header so we end up with too much padding
  * This is safe to eliminate because the mobile view uses SmartMenus
  */
  padding-left: 0px;
  padding-right: 0px;
}

.suny-upstate-mega-menu .navbar-nav > li.separator {
    background: rgb(9,160,207,0.3);
    width: 1px;
    min-height: 24px;
    margin: 8px 0;
}

.suny-upstate-mega-menu .navbar-nav > li > a {
  font-family: opensansb,arial,sans-serif;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  text-shadow: none;

}

.suny-upstate-mega-menu .navbar-nav > li > a:hover,
.suny-upstate-mega-menu .navbar-nav > li.active > a {
  color: #18264e !important;
  background:none !important;
  background-color: #efefef !important;
}


/*
 * GD - Target the expanded dropdown menu
 */

.suny-upstate-mega-menu .navbar-nav ul.dropdown-menu {
  background-color: rgba(239, 239, 239, .95);
  /* Get rid of the border supplied by Bootstrap */
  border: none;
  /* Bootstrap applies a radius, remove it */
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  -ms-border-radius: 0px;
  -o-border-radius: 0px;
  border-radius: 0px;
}

/*
 * GD - Full-width MegaMenu
 *      Courtesy of https://stackoverflow.com/q/23547665
 */
.suny-upstate-mega-menu.mega-edition .navbar-nav > li.dropdown.open {
  position: static;
}
.suny-upstate-mega-menu.mega-edition .navbar-nav > li.dropdown.open ul.dropdown-menu {
  /* Give the menu some breathing room */
  padding: 20px 0px;
  /* Height of 1 header-link plus 4 regular ones plus padding declared above */
  min-height: 251px;
  width: 100%;
  left: 0;
  right: 0;
}
.suny-upstate-mega-menu.mega-edition .navbar-nav > li.dropdown.open .dropdown-menu {
  display: table;
}

.suny-upstate-mega-menu.mega-edition .navbar-nav > li.dropdown.open .dropdown-menu > li {
  display: table-cell;
}
/*
 * /Full-width MegaMenu
 */

/*
 * GD - Add a right border to all MegaMenu columns except for the last child
 */
.suny-upstate-mega-menu.mega-edition .navbar-nav > li.dropdown > ul.dropdown-menu > li > .container > .row > div[class^="col-"]:not(:nth-last-child(1)) {
  border-right: solid 1px #fff;
}
/*
 * /Add right border
 */

.suny-upstate-mega-menu.mega-edition .megamenu-links a{
  line-height: 30px;
}

/*
 * GD - Within the MegaMenu, apply styles to <a> tags
 */
.suny-upstate-mega-menu.mega-edition .navbar-nav > .dropdown li .container a{
	color:#444;
	text-decoration:none;
}
.suny-upstate-mega-menu.mega-edition .navbar-nav > .dropdown li .container a:hover{
	color:#33678c;
	text-decoration:underline;
}

/*
 * Upstate classic dropdown menu
 */
.suny-upstate-mega-menu.classic-edition .navbar-nav ul.dropdown-menu{
  border-width:0.25em;
  -moz-box-shadow:3px 3px 3px #818574;
  -webkit-box-shadow:3px 3px 3px #818574;
  box-shadow:3px 3px 3px #818574;
  font-weight:normal;
  height:auto;
  left:-999em;
  list-style:outside none none;
  margin:0;
  padding:0;
  width:237px;
  left:auto;
  padding:0;
  padding-left:0;
}
.suny-upstate-mega-menu.classic-edition .navbar-nav ul.dropdown-menu li{
  color:#fff;
  display:inline-block;
  float:left;
  padding-left:0;
  position:relative;
  width:auto;
  border-bottom:solid 1px #fff;
  float:left;
  padding:0;
  width:237px;
}
.suny-upstate-mega-menu.classic-edition .navbar-nav ul.dropdown-menu li a{
  color:#18264e;
  display:block;
  padding-bottom:7px;
  padding-left:10px;
  padding-top:7px;
  text-decoration:none;
  width:237px;
  font-family: opensansb,arial,sans-serif;
  white-space: normal;
}
.suny-upstate-mega-menu.classic-edition .navbar-nav ul.dropdown-menu li a:hover{
  background:#fff;
}
/*
 * /Upstate classic dropdown menu
 */