/*** ESSENTIAL STYLES ***/
.sf-menu, .sf-menu > * {
    margin: 0;
    padding: 0;
    list-style: none;
}
.sf-menu li {
    position: relative;
}
.sf-menu ul {
    position: absolute;
    display: none;
    top: 100%;
    right: 0;

    z-index: 99;
}
.sf-menu li:hover > ul,
.sf-menu li.sfHover > ul {
    display: block;
}

.sf-menu a {
    display: block;
    position: relative;
}
.sf-menu ul ul {
    top: 0;
    left: 100%;
}


/*** DEMO SKIN ***/
.sf-menu {
    margin-bottom: 1em;
}
.sf-menu ul {
    box-shadow: 2px 2px 6px rgba(0,0,0,.2);
    min-width: 7em; /* allow long menu items to determine submenu width */
    *width: 7em; /* no auto sub width for IE7, see white-space comment below */
}

.sf-menu li:hover,
.sf-menu li.sfHover {
    /* only transition out, not in */
    -webkit-transition: none;
    transition: none;
}

/*** arrows (for all except IE7) **/
.sf-arrows .sf-with-ul {
    padding-right: 2.5em;
    *padding-right: 1em; /* no CSS arrows for IE7 (lack pseudo-elements) */
}
/* styling for both css and generated arrows */
.sf-arrows .sf-with-ul:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1em;
    margin-top: -3px;
    height: 0;
    width: 0;
    /* order of following 3 rules important for fallbacks to work */
    border: 5px solid transparent;
    border-top-color: #dFeEFF; /* edit this to suit design (no rgba in IE8) */
    border-top-color: rgba(255,255,255,.5);
}
.sf-arrows > li > .sf-with-ul:focus:after,
.sf-arrows > li:hover > .sf-with-ul:after,
.sf-arrows > .sfHover > .sf-with-ul:after {
    border-top-color: white; /* IE8 fallback colour */
}
/* styling for right-facing arrows */
.sf-arrows ul .sf-with-ul:after {
    margin-top: -5px;
    /*margin-right: -3px;*/
    border-color: transparent;
    border-left-color: #dFeEFF; /* edit this to suit design (no rgba in IE8) */
    border-left-color: rgba(255,255,255,.5);
}
.sf-arrows ul li > .sf-with-ul:focus:after,
.sf-arrows ul li:hover > .sf-with-ul:after,
.sf-arrows ul .sfHover > .sf-with-ul:after {
    border-left-color: white;
}

#menu-wrap {
  position: relative;
  z-index: 2;
  display: block;
  float: right;
}
#menu-wrap .sf-menu a {
  padding: 2em .75em;
}

#primary-menu > li > ul li.active > a {
  color: #79c34f !important;
}
#primary-menu > li > .sf-with-ul:after {
  border: none !important;
  position: absolute;
  float: right;
  margin-right: 5px;
  top: 50%;
  margin-top: -7px;
  content: "\e64b";
  color: #1fb5f6;
}
#primary-menu > li > ul li {
  position: relative;
}
#primary-menu > li > ul li > .sf-with-ul:after {
  border: none !important;
  position: absolute;
  float: right;
  margin-right: 10px;
  top: 13px;
  font-size: 12px;
  content: "\e649";
  color: rgba(255, 255, 255, 0.5);
}

#primary-menu .sub-menu {
  padding: 10px 7px 10px;
  background: #efefef;
  left: 0;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  -ms-border-radius: 2px;
  border-radius: 2px;
  -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  -ms-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  -o-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}
#primary-menu .sub-menu > li > .sub-menu {
  left: 100%;
}



#primary-menu .sub-menu .sub-menu:before {
  top: 6px;
  left: 100%;
}

#primary-menu .sub-menu .sub-menu:after {
  top: 7px;
  right: 100%;
  border: none !important;
}

.site-header.has-image #primary-menu .sub-menu {
  border-color: #ebebeb;
  -webkit-box-shadow: 0 5px 15px 4px rgba(0, 0, 0, 0.09);
  -moz-box-shadow: 0 5px 15px 4px rgba(0, 0, 0, 0.09);
  -ms-box-shadow: 0 5px 15px 4px rgba(0, 0, 0, 0.09);
  -o-box-shadow: 0 5px 15px 4px rgba(0, 0, 0, 0.09);
  box-shadow: 0 5px 15px 4px rgba(0, 0, 0, 0.09);
}
.site-header.has-image #primary-menu .sub-menu:before {
  display: none;
}

#primary-menu .sub-menu a {
  letter-spacing: 0;
  /*padding: 0 15px;*/
  /*font-size: 18px;*/
  line-height: 30px;
  color: #575757 !important;
  text-transform: none;
  background: none;
}
#primary-menu .sub-menu a:hover {
  color: #00aeda !important;
}

.sub-menu li a {
    margin-left: 0px !important;
}

.banner-text h2 {
    color: #eee;
    margin-bottom: 1.1em;
    font-size: 3.2em;

}
.banner-text p {
    color: #ddd;
    font-size: 1.2em;
    text-transform: none;
    letter-spacing: initial;
    margin-bottom: 0;
}

header.major {
    text-align: center;
    margin: 0em 0 4em 0;
}

.icon {
    text-decoration: none;
    border-bottom: none;
    position: relative;
}

.icon:before {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    text-transform: none !important;
}

.icon > .label {
    display: none;
}

.icon.major {
    display: inline-block;
    margin: 0 0 1.25em 0;
    color: #ffffff;
    background: #f26b28;
    width: 3em;
    height: 3em;
    font-size: 2em;
    text-align: center;
    line-height: 3em;
    border-radius: 100%;
    box-shadow: 0 0 0 10px #fff, 0 0 0 11px rgba(144, 144, 144, 0.25);
}


.box {
    border-radius: 6px;
    border: solid 1px rgba(144, 144, 144, 0.25);
    margin-bottom: 2em;
    padding-top: 3em;
    padding-bottom: 1em;
}

.box > :last-child,
.box > :last-child > :last-child,
.box > :last-child > :last-child > :last-child {
    margin-bottom: 0;
}

.box.alt {
    border: 0;
    border-radius: 0;
    padding: 0;
}

section.special, article.special {
    text-align: center;
}

.dark h2{
    color: white;
    padding-top: 1em;
}

.dark *{
    color: white;
}

.banner-text h2 {
    font-size: 4.5em;
    line-height: 1em;
    margin: 2.5em 0 1em 0;
    padding: 0;

}
.banner-text p {
    font-size: 1.5em;
    margin-bottom: 1em;
    text-align: center !important;
}

.bg-img{
    width: auto;
    height: 250px;
}

.bg-img img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    min-width: auto;
    padding: 15px;
    display: block;
    margin: auto;
}

@media (min-width: 980px) {
    .bg-img {
        height: auto;
    }
    .bg-img img {
        height: auto;
        min-height: auto;
        max-width: 80%;
        padding: 10px;
    }
}

@media (max-width: 980px) {
    .bg-img {
        height: auto;
        width: auto;
    }
    .bg-img img {
        height: auto;
        min-height: auto;
        /*width: auto;*/
        /*max-width: 100%;*/
        min-width: auto;
        padding: 25px;
    }
}
