*,
*:before,
*:after {
    box-sizing: border-box;
    -webkit-box-sizing: border-box; 
    -moz-box-sizing: border-box; 
}


/*
--------------------------------------------------------------------------
 Typography 
--------------------------------------------------------------------------
 */

:root {
    font-size: 16px;
    font-family: 'Nunito Sans', sans-serif;
    --blue: #1181BF;
    --green: #77A52F;
    --darkgreen: #557A14;
    --black: #000000;
    --gray: #4D4D4D;
}

body {
    font-family: 'League Spartan', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--gray);
}
p {
    font-family: 'League Spartan', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--gray);
    line-height: 24px;
    margin-bottom: 20px;
    position: relative;
    z-index: 101;
}
p+p {
    margin-top: .25em;
}

p:empty {
    display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Quicksand', sans-serif;
    color: var(--black);
    margin-top: 0;
    margin-bottom: 20px;
    padding: 0;
    font-weight: bold;
    padding-right: 20px;
    position: relative;
    z-index: 100;
    background-color: #FFF;
    overflow: hidden;
}
#homepage-main h1,
#homepage-main h2,
#homepage-main h3,
#homepage-main h4,
#homepage-main h5,
#homepage-main h6 {
    display: inline;  
}
h1 {
    font-size: 40px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 26px;
}

h4 {
    font-size: 24px;
}

h5 {
    font-size: 22px;
}

h6 {
    font-size: 20px;
}
#homepage-main h1::after, #homepage-main h2::after, #homepage-main h3::after {
    content: "";
    margin-top: 24px;
    width: 100vw;
    height: 1px;
    position: absolute;
    background-color: #f2f2f2;
    z-index: -1;
    right: 12px;
    left: 100%;
    overflow: visible;
}
h2::after {
    margin-top: 18px;
}
h3::after {
    margin-top: 16px;
}
.column {
    overflow: hidden;
}
#homepage-main .column::before {
    content: "";
    position: absolute;
    width: 15px;
    height: 100%;
    right: 0;
    left: auto;
    background-color: #FFF;
    z-index: 1000;
}
#homepage-main h1 + p, #homepage-main h2 + p, #homepage-main h3 + p, #homepage-main h3 + div, #homepage-main h3 + section {
    margin-top: 20px;
}
main#subpage-main {
    padding: 15px;
}
/*  Links -------------------

 */

a {
    color: var(--darkgreen);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--green);
    text-decoration: underline;
}

a.button-link,
input[type="submit"]:not(#mms-main input),
.mobile-login button {
    /* :not exception needed to avoid messing with all sorts of different buttons in the MMS  */
    /*background: var(--secondary);*/
    font-size: inherit;
    padding: .8em 4ch;
    display: inline-block;
    /*color: white;*/
    border-radius: 2em;
    margin-right: 2ch;
    position: relative;
    left: -.25em;
    /*^^ Optically adjust for rounded left edge */
    border: none;
    text-align: center;
}

.button-link:not(:last-child) {
    margin-bottom: .5em;
}

a.button-link:hover,
a.button-link:focus {
    text-decoration: none;
}

a.button-link+*:not(.button-link) {
    padding-top: 1.5em;
}

*+.button-link {
    margin-top: 1em;
}

li:not(:last-child) .button-link {
    margin-bottom: .75rem;
}

#homepage-main h1 + hr {
    margin-top: -44px;
}
/*
--------------------------------------------------------------------------
 Objects
--------------------------------------------------------------------------
 */


/*  Wrappers
    *.wrapper acts as a more symantic stand in for <container><row><col-md-12></col-md-12></row></container> in sections of this build that don't require stacking columns 
 */

.wrapper {
    margin-right: auto;
    margin-left: auto;
    max-width: 100%;
    position: relative;
    height: inherit;
    /*padding-left: 15px;*/
    /*padding-right: 15px;*/
}

@media (min-width:768px) {
    body {
        --side-margin: calc((100vw - 750px) / 2);
    }
    .wrapper {
        width: 750px;
    }
}

@media (min-width:992px) {
    body {
        --side-margin: calc((100vw - 987px) / 2);
    }
    .wrapper {
        width: 970px;
    }
}

@media (min-width:1200px) {
    body {
        --side-margin: calc((100vw - 1170px) / 2);
    }
    .wrapper {
        width: 1170px;
    }
}

@media (min-width: 767px) {
    /*The following styles are meant to give more space to the label column in contact forms that are too narrow for the entire label to be read normally*/
    .col-md-5 form[action="contact_form_resp.php"] .col-sm-2,
    .col-md-4 form[action="contact_form_resp.php"] .col-sm-2,
    .col-md-3 form[action="contact_form_resp.php"] .col-sm-2,
    .col-md-2 form[action="contact_form_resp.php"] .col-sm-2,
    .col-md-1 form[action="contact_form_resp.php"] .col-sm-2 {
        width: 25%;
        padding-right: 1em;
    }
    .col-md-5 form[action="contact_form_resp.php"] .col-sm-10,
    .col-md-4 form[action="contact_form_resp.php"] .col-sm-10,
    .col-md-3 form[action="contact_form_resp.php"] .col-sm-10,
    .col-md-2 form[action="contact_form_resp.php"] .col-sm-10,
    .col-md-1 form[action="contact_form_resp.php"] .col-sm-10 {
        width: 75%;
        padding-left: 0;
    }
    .col-md-5 form[action="contact_form_resp.php"] .col-sm-offset-2,
    .col-md-4 form[action="contact_form_resp.php"] .col-sm-offset-2,
    .col-md-3 form[action="contact_form_resp.php"] .col-sm-offset-2,
    .col-md-2 form[action="contact_form_resp.php"] .col-sm-offset-2,
    .col-md-1 form[action="contact_form_resp.php"] .col-sm-offset-2 {
        margin-left: 25%;
    }
    /*^^Adjusts the form-group placement of the reCAPTCHA iframe and submit buttom to match the new widths from the styles above*/
}

blockquote {
    font-size: inherit;
    border-left-color: var(--secondary);
}

blockquote p {
    font-size: 1.05em;
}


/*Styles below are taken from Bootstrap's table style to ensure that tables on content pages are responsive and neat whether Bootstrap classes are added or not. :not added to prevent styling Google Custom Search tables*/

#subpage-main table {
    max-width: 100%;
    border-collapse: collapse;
    color: #212529;
    margin-bottom: 1em;
    font-size: 16px;
    border-bottom: 1px solid #dee2e6;
    margin-top: 2em;
}

#subpage-main thead {
    font-weight: bold;
}

#subpage-main td,
#subpage-main th {
    padding: .75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
    text-align: inherit;
}

#subpage-main thead th {
    vertical-align: bottom;
    border-top: none;
}

#subpage-main table caption {
    color: currentColor;
    text-align: left;
    font-size: 1.375em;
    font-weight: bold;
    padding: 0;
}

#subpage-main tbody tr:hover {
    color: #212529;
    background-color: rgba(0, 0, 0, .075);
}

@media (max-width: 767px) {
    #subpage-main table {
        font-size: 14px;
    }
    #subpage-main td:first-child,
    #subpage-main th:first-child {
        padding-left: 5px;
    }
    #subpage-main td:last-child,
    #subpage-main th:last-child {
        padding-right: 5px;
    }
}

@media (max-width: 500px) {
    #subpage-main td,
    #subpage-main th {
        padding: 5px 2px;
    }
}

grammarly-btn {
    display: none;
    /*If someone copy/pastes text from Grammarly it will add this invisible button and cause the page to scroll horizontally. This style hides that.*/
}

.ui-widget {
    /* Part of some pages in the MMS, this style tells it not to overwrite the font with Verdana */
    font-family: revert;
}


/* Feed items */
.news-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    grid-gap: 20px;
}
.feed-item {
    padding: .25rem 20px;
    border-radius: 5px;
    display: flex;
    padding: 0;
    margin: 0 0 30px 0;
}
.feed-item.news-feed {
    flex-direction: column;
    border: 1px solid #f2f2f2;
    padding: 13px 15px;
    margin-bottom: 0;
}
.feed-item.news-feed:last-of-type {
    margin-right: 0;
}
.feed-item h3 {
    font-size: 1.1rem;
}

.feed-item *:not(:last-child) {
    margin-bottom: .5rem;
}

.feed-item div:first-of-type {
    width: 54px;
    height: auto;
    max-height: 64px;
    min-width: 54px;
    background-color: #FFF;
    margin-right: 15px;
    border-radius: 2px;
}
.feed-item div span {
    width: 100%;
    display: block;
}
.feed-item div span:first-of-type {
    background-color: var(--blue);
    color: #fff;
    text-align: center;
    border: 1px solid var(--blue);
    margin: 0;
    border-radius: 2px 2px 0 0;
}
.feed-item div span:last-of-type {
    color: var(--blue);
    font-size: 26px;
    font-weight: 600;
    text-align: center;
    padding: 8px 0 2px 0;
    line-height: 25px;
    border-radius: 0 0 2px 2px;
    border: 1px solid #e6e6e6;
}

/* Slideshow defaults */

.carousel-caption {
    position: absolute;
    z-index: 100;
    background-color: #002857;
    background: rgba(0, 0, 0, .6);
    padding: 10px 15px;
    left: inherit;
    bottom: 0px;
    right: 0px;
    top: inherit;
    width: 100%;
    text-align: left;
    text-shadow: none;
}

@media (max-width: 600px) {
    .carousel-caption {
        padding: 0px 10px;
    }
}

.caption-text {
    font-size: 28px;
    font-weight: 600;
    line-height: 33px;
    display: block;
    color: initial;
    margin-bottom: 10px;
}

.alt-text {
    font-size: 16px;
    color: initial;
    margin-bottom: 10px;
}


/*--end slideshow-defaults---------*/


/*----------Responsive Nivo*/

div[id^=slider-container-FD],
div[id^=slider_FD],
.nivoSlider img {
    max-width: 100% !important;
    height: auto !important;
}


/*----------Nivo Controls*/

.nivo-prevNav,
.nivo-nextNav {
    background-image: none !important;
    width: 25px !important;
    top: 25% !important;
    /*Fallback for browsers that don't support calc*/
    top: calc( 50% - 50px) !important;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 75px;
    font-family: Arial, sans-serif;
    text-shadow: 0px 0px 10px rgba(51, 51, 51, 0.4);
}

.nivo-prevNav:hover,
.nivo-nextNav:hover {
    text-decoration: none;
    color: #ae0e0d;
    text-shadow: none;
}

.nivo-prevNav {
    left: 10px !important;
}

.nivo-nextNav {
    right: 10px !important;
}

.nivo-prevNav:after {
    content: "‹";
}

.nivo-nextNav:after {
    content: "›";
}


/*  Modals ---------------------------------
    ----------------------------------------
 */

.modal-open .modal {
    display: flex;
}

.modal-dialog {
    max-width: 260px;
    font-size: 16px;
    margin: auto;
}

.modal-header,
.modal-body {
    padding: .5rem 1rem;
}

.modal-header .close {
    opacity: 1;
    z-index: 1;
    position: relative;
}

.modal h2 {
    font-size: 20px;
    opacity: .9;
}

.modal a {
    display: block;
    margin-bottom: .5em;
}


/*  Login Forms ----------------------------
----------------------------------------
*/

.modal input[name="Username"],
.modal input[name="Password"] {
    width: 100%;
    padding-left: .25em;
    padding-right: .25em;
    margin-bottom: 0.5em;
    height: 2em;
    border: 1px solid rgba(68, 68, 68, .5);
}


/*
--------------------------------------------------------------------------
 Header
--------------------------------------------------------------------------
 */
header {
    padding: 20px 0;
}
.header-inner {
    display: flex;
    width: 100%;
    justify-content: space-between;
}
.logo-wrapper {
  display: flex;
}
a.logo-wrapper svg {
    max-height: 86px;
}
#right-side-wrap {
  padding-right: 0;
  padding-top: .5rem;
}
.top-right {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    color: #444;
    transition: padding .125s ease-in, color .125s ease-in;
    gap: 20px;
    grid-template-rows: auto;
}
ul.social-list {
    display: flex;
    margin: 0;
    padding: 0;
    gap: 6px;
}
ul.social-list li {
    list-style: none;
    height: 28px;
}
ul.social-list li a {
    display: inline-flex;
}
ul.social-list li a svg {
    border-radius: 3px;
    background-color: #77A52F;
    max-width: 28px;
    max-height: 28px;
    padding: 2px;
}
ul.social-list li a:hover svg {
    background-color: #557A14;
    transition: .3s;
}
ul.social-list li svg rect {
    display: none;
}

form.searchbox {
    display: flex;
}
.mobile-search-wrap a {
    margin-top: 10px;
}
.searchbox input[type="search"] {
    outline: none;
    border: 1px solid #E6E6E6;
    height: 30px;
    padding: 7px 10px 5px;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    font-size: 16px;
    left: 0;
}
#search-input .searchbox input.search-button, #mobile-menu .mobile-search-wrap .search-button {
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    border-radius: 0;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    content: '';
    background: url(../images/search-icon.svg);
    background-size: 14px 14px;
    background-repeat: no-repeat;
    background-color: #77A52F;
    background-position: 8px;
}
#contact-wrap {
    height: 30px;
}
#contact-wrap a, #mobileMenuWrapper #mobile-menu .contact-mobile-wrap a {
    background-color: #E59B18;
    color: #fff;
    padding: 7px 15px 5px;
    border-radius: 3px;
    display: inline-block;
    line-height: 20px;
}
#mobileMenuWrapper #mobile-menu .contact-mobile-wrap a {
    display: none;
}
li.mobile-social-wrapper {
    display: none;
}
#contact-wrap a:hover {
    text-decoration: none;
    background-color: #CC8719;
    transition: .3s;
}

/*  Desktop Menu ---------------------------
    ----------------------------------------
 */
#nav_menu {
  padding-right: 0;
  padding-left: 6rem;
}

#nav_menu>ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    height: 40px;
    list-style: none;
    padding-left: 0;
    position: relative;
    margin: 0;
    padding-bottom: 0;
    transition: .125s height ease-in;
}

#nav_menu>ul>li>ul {
    /* 1st tier submenus */
}

#nav_menu>ul>li:last-child>ul {
    /* Submenu of the last top-level menu item */
    left: -100%;
}

#nav_menu>ul::before,
#nav_menu>ul::after {
    content: none;
}

#nav_menu .navbar-nav>li>a {
    color: var(--gray);
    padding: 0;
    font-size: 16px;
    white-space: nowrap;
    font-weight: 500;
}

.caret {
    /* Convert Bootstrap style into em's so carets scale with type */
    border-top: .2em dashed;
    border-right: .2em solid transparent;
    border-left: .2em solid transparent;
}

.dropdown-menu {
    font-size: inherit;
}

.dropdown-menu>li>a {
    font-size: inherit;
    padding: .5rem 1rem;
}

.nav .open>a,
.nav .open>a:focus,
.nav .open>a:hover,
.nav>li>a:focus,
.nav>li>a:hover {
    /* Overwriting BS defaults */
    background-color: transparent;
    color: inherit;
    transition: color .125s ease-in;
}

.nav .open>a:hover,
.dropdown-menu>li>a:focus,
.dropdown-menu>li>a:hover {
    color: var(--green);
    background-color: transparent;
}

#nav_menu li.greyed a {
    opacity: .75;
}


/*  Mobile Header Nav ----------------------
    ----------------------------------------
 */

@media (max-width: 1200px) {
    #nav_menu {
        padding-left: 2rem;
    }
    #search-input .searchbox input.search-button {
        border-top-left-radius: 3px;
        border-bottom-left-radius: 3px;
        left: 0;
    }
    .searchbox input[type="search"] {
        display: none;
    }
    #mobile-menu .searchbox input[type="search"] {
        display: block;
        width: 100%;
    }
}
@media (max-width: 991px) {
    #nav_menu {
        display: none !important;
    }
    #right-side-wrap nav {
        display: flex;
        flex-direction: row-reverse;
        margin-top: 15px;
    }
}
@media (max-width: 767px) {
    #subpage-main .row, #homepage-main .row {
        margin-bottom: 2em;
    }
    .mobileMenuTrigger label {
        display: none;
    }
    ul.social-list {
        display: none;
    }
    #mobile-menu ul.social-list {
        display: block;
    }
    #mobile-menu ul.social-list li {
        display: inline-block;
    }
    .logo-wrapper {
        display: flex;
        max-width: calc(100% - 130px);
    }
    .mobile-search #search-input {
        display: block !important;
    }
    #mobile-menu #search-input {
        display: none;
    }
    li.mobile-social-wrapper {
        display: block;
    }
}
@media (max-width: 480px) {
    header {
        padding: 12px 0;
    }
    #contact-wrap {
        display: none;
    }
    #right-side-wrap nav {
        margin-top: 20px;
    }
    a.logo-wrapper svg {
        height: auto;
    }
    .logo-wrapper {
        max-width: calc(100% - 60px);
    }
    #mobileMenuWrapper #mobile-menu .contact-mobile-wrap a {
        display: block;
    }
}

.mobileMenuTrigger {
    background: none;
    border: none;
    height: 30px;
    padding: 0;
    margin: 0;
    text-align: right;
    font-size: 32px;
    line-height: 24px;
    height: 24px;
}
.mobileMenuTrigger label {
    display: none;
}
.mobileMenuTrigger svg {
    padding: 0;
}
.menu-trigger {
    cursor: pointer;
    margin: 0;
    width: 30px;
    height: 30px;
    padding: 5px;
}

.menu-trigger:hover,
.menu-trigger:focus {
    color: var(--secondary);
}


/*  Mobile Menu-----------------------------
    ----------------------------------------
 */

#mobileMenuWrapper {
    box-shadow: 7px 0 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 200;
    overflow-y: auto;
    overflow-x: hidden;
    left: -120%;
    width: 300px;
    background-color: white;
    transition: left 300ms cubic-bezier(1.000, 0.010, 0.0, 1.000);
    color: #444;
}

#mobileMenuWrapper.open {
    left: 0;
}

#mobile-menu {
    list-style: none;
    overflow-y: auto;
    overflow-x: visible;
    padding: 1em 1.5em;
}

.triggerClose {
    text-align: right;
}

#mobile-menu button {
    border: none;
}

.triggerClose button {
    background: none;
    font-weight: bold;
}

#mobileMenuWrapper #mobile-menu a {
    display: inline-block;
    width: 100%;
    margin-bottom: .75em;
    color: #000;
}

#mobileMenuWrapper .mDropdown {
    display: none;
    list-style: none;
    padding: 0;
    background: none;
    border-top: 1px solid var(--secondary);
    border-bottom: 1px solid var(--secondary);
    padding-top: .75em;
    margin-bottom: .75em;
}

#mobileMenuWrapper .mDropdown.open {
    display: block;
}

.mDropdown>li>a {
    padding: 0;
}

.mDropdown-parent {
    color: var(--primary);
}


/*
--------------------------------------------------------------------------
 Main
--------------------------------------------------------------------------
 */

main {
    min-height: calc(100vh - 118px - 143px);
    position: relative;
}

@media (min-width: 992px) {
    button.mobileMenuTrigger {
        display: none;
    }
}
@media (min-width: 767px) {
    #subpage-main .row,
    #homepage-main .row {
        /*These two styles can be tweaked if needed, but they are a handy default for spacing rows (and then columns once the screen hits the col-xs breakpoint on subpages*/
        margin-bottom: 2.5em;
    }
    div[class^="col"]+.col-md-12 {
        margin-top: 2em;
    }
}

@media(max-width: 1200px) {
    #homepage-main article>section,
    #subpage-main {
        padding: 3.5em 0;
    }
}

@media(max-width: 990px) {
    #homepage-main article>section,
    #subpage-main {
        padding: 2.5em 0;
    }
    .col-md-6.col-sm-12+.col-sm-12 {
        margin-top: 30px;
    }
}

@media (max-width: 900px) {
    #subpage-main:not(.full-background),
    #mms-main {
        margin-bottom: 2em;
    }
    main div[id^="section-"] {
        padding: 3.5em 0;
    }
}

@media (max-width: 767px) {
    #homepage-main article>section,
    #subpage-main {
        padding: 1.5em 0;
    }
    #subpage-main [class*="col-md"]+[class*="col-md"] {
        margin-top: 1rem;
    }
    #subpage-main div[class^="col-md"],
    #homepage-main div[class^="col-md"] {
        margin-bottom: 1em;
    }
    #homepage-main article>section {
        padding: 3em 0;
    }
}

@media (max-width: 450px) {
    #homepage-main article>section {
        padding: 2em 0;
    }
}


/*  Home Slideshow  ------------------------
    ----------------------------------------
 */
.carousel.slide {
    display: flex;
    align-items: center;
}

#banner-row .carousel-indicators {
  display: none;
}
#banner-row .carousel-control.left,
#banner-row .carousel-control.right {
    /* Remove carousel controls from homepage slideshow
    background: none;*/

    width: 40px;
    height: 40px;
    content-visibility: hidden;
    top: auto;
    bottom: auto;
    opacity: .8;
    transition: .3s;
}
#banner-row .carousel-control.left {
    background: url("../images/prev-icon.svg") no-repeat;
    left: 15px;
}
#banner-row .carousel-control.right {
    background: url("../images/next-icon.svg") no-repeat;
    right: 15px;
}

#banner-row img {
    object-fit: cover;
}

#banner-row .carousel-caption {
    position: relative;
    z-index: 100;
    background: var(--blue);
    left: 1px;
    bottom: 10vh;
    right: 0;
    top: -1px;
    width: 100%;
    text-align: left;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 15px;
}

#banner-row .caption-wrapper {
    padding-left: 10px;
    padding-right: 10px;
}

#banner-row .caption-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 26px;
    font-weight: bold;
    line-height: .9;
    display: block;
    color: white;
    margin-bottom: 10px;
}

#banner-row .alt-text {
    font-size: 18px;
    line-height: 1.2;
    color: white;
    margin: 0;
}

@media (max-width: 990px) {
    #banner-row .caption-text {
        font-size: 26px;
        line-height: 1.2;
    }
    #banner-row .alt-text {
        font-size: 18px;
    }
    #banner-row .carousel-control.left, #banner-row .carousel-control.right {
        left: auto;
        right: 10px;
        top: 15px;
        width: 30px;
        height: 30px;
        background-size: cover;
    }
    #banner-row .carousel-control.left {
        right: 50px;
    }
}


/*  Subpages -------------------------------
    ----------------------------------------
 */


/*  Grid Page Editor workarounds -----------
----------------------------------------
 */
.col-sm-6 {
    width: 50%;
}
#headlines-wrapper h2, #headlines-wrapper h3 {
    margin-top: 2rem;
}
@media (max-width: 991px) {
    .footer-contact, .footer-copyright {
        text-align: center;
    }
}
@media (max-width: 684px) {
    .feed-item.news-feed {
        margin-bottom: 0px;
    }
}

/*  Footer -------------------
    ----------------------------------------
 */
footer .wrapper {
    background-color: var(--darkgreen);
    color: #fff;
    padding: 30px 0;
}
footer .wrapper .row > div:last-of-type {
  text-align: right;
}
footer a, footer a:hover, footer a:focus {
    color: #fff;
    text-decoration: underline;
}