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


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

 :root {
    --primary: #800637;
    --secondary: #2a3763;
    --accent: #cf4f20;
    --light-gray: #ededed;
    --padding: 1.25rem;
    --auto-2-columns: repeat(auto-fill, minmax(380px, 1fr));
    --auto-3-columns: repeat(auto-fill, minmax(310px, 1fr));
    --auto-4-columns: repeat(auto-fill, minmax(240px, 1fr));
    font-size: 18px;
    --side-margin: 15px;
}

@media (max-width: 500px) {
     :root {
        --auto-2-columns: repeat(auto-fill, minmax(330px, 1fr));
    }
}

body {
    color: #444;
    font-size: inherit;
    overflow-x: hidden;
    font-family: 'Nunito Sans', sans-serif;
    position: relative;
    /*^^Added to make scrollSpy.js work */
}

p {
    font-size: inherit;
    line-height: unset;
}

p+p {
    margin-top: .25em;
}

p:empty {
    display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: .5em;
    padding: 0;
    font-weight: bold;
    /* font-weight: 800; */
    color: inherit;
    line-height: 1.1;
    font-family: 'Nunito Sans', sans-serif;
    /* font-family: 'Andada Pro', serif; */
    letter-spacing: -.04ch;
    text-transform: none;
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 30px;
}

h4 {
    font-size: 28px;
}

h5 {
    font-size: 25px;
}

h6 {
    font-size: 20px;
}

@media (max-width: 1200px) {
    h1 {
        font-size: 40px;
    }
    h2 {
        font-size: 32px;
    }
    h3 {
        font-size: 27px;
    }
    h4 {
        font-size: 24px;
    }
    h5 {
        font-size: 22px;
    }
}

h1+h2,

/* Or in the case of a Grid page... */

h1+.row>div[class*="col-md-"]>h2,
h2+h3,
h3+h4,
h4+h5,
h5+h6 {
    margin-top: -1em;
}

#homepage-main h2 {
    font-size: 48px;
}

#homepage-main h3 {
    font-size: 36px;
}

#homepage-main h4 {
    font-size: 30px;
}

@media (max-width: 1200px) {
    #homepage-main h2 {
        font-size: 40px;
    }
    #homepage-main h3 {
        font-size: 32px;
    }
    #homepage-main h4 {
        font-size: 27px;
    }
    #homepage-main h5 {
        font-size: 24px;
    }
    #homepage-main h6 {
        font-size: 22px;
    }
}

@media (max-width: 990px) {
    #homepage-main h2 {
        font-size: 32px;
    }
    #homepage-main h3 {
        font-size: 27px;
    }
    #homepage-main h4 {
        font-size: 24px;
    }
    #homepage-main h5 {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    #homepage-main h2 {
        font-size: 30px;
    }
    #homepage-main h4 {
        font-size: 26px;
    }
    #homepage-main h5 {
        font-size: 23px;
    }
}

[id*="row-"],
[id*="row-"]>[class*="col-"]:first-child {
    /* Offset content so when clicking on a link targeting an ID, the title of the section is not covered up by the header */
    padding-top: 90px;
    margin-top: -90px;
}

@media (max-width: 767px) {
    /* [id*="row-"] {
       padding-top: 0;
       margin-top: 0;
   } */
}

[id*="row-"]:not(:first-child):not(.alternating-row)::before {
    /* Hide the border between rows because the psuedo element creating it will be re-ordered with the row-reverse applied to every other .row */
    content: '';
    border-top: 1px solid #0078C1;
    padding-top: 2.5em;
    margin-left: 15px;
    margin-right: 15px;
    display: block;
}

[id*="row-"] .column>:last-child:not(h2) {
    margin-bottom: 0;
}

#subpage-main *:not(:empty)+h2,
#subpage-main *:not(:empty)+h3,
#subpage-main *:not(:empty)+h4,
#subpage-main *:not(:empty)+h5,
#subpage-main *:not(:empty)+h6 {
    margin-top: 1em;
}

#subpage-main h2+ul,
#subpage-main h3+ul,
#subpage-main h4+ul {
    margin-top: -.75rem;
    /*Adjusts for the margin-bottom placed on these headings to make the ul's look like they belong to that heading*/
}


/*  Links -------------------

*/

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

a:hover,
a:focus {
    /* filter: brightness(1.1);
   transition: filter .125s ease-in; */
    /* Commented out style removed because it was causing elements inside of a CSS column to reflow on hover */
    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;
}


/*
--------------------------------------------------------------------------
Objects
--------------------------------------------------------------------------
*/

.disappear {
    transition: opacity .25s ease-in-out;
    /* opacity: 0; */
}

.centered {
    text-align: center;
}

main:not(#mms-main) ul:not[class]>li+*:not(li) {
    /* Anytime a list item proceeds something other than a list item inside of an unordered list with no class applied to it, do this: */
    margin-top: 1em;
}

main:not(#mms-main) ul:not[class]>li+li {
    /* Anytime a list item proceeds another list item inside of an unordered list with no class applied to it, do this: */
    margin-top: .25em;
}

ul.unstyled {
    padding: 0;
    list-style: none;
}

ul.two-columns {
    columns: 2;
}

ul.multi-column-list {
    padding: 0;
    list-style: none;
    line-height: 1;
    columns: 3;
    column-gap: 30px;
}

.multi-column-list li {
    margin-bottom: .5em;
}

@media(max-width: 767px) {
    ul.multi-column-list {
        columns: 2;
        column-gap: 15px;
    }
}

@media(max-width: 500px) {
    ul.multi-column-list {
        columns: 1;
    }
}

.timeline-list {
    padding: 0;
    list-style: none;
}

.timeline-list li {
    margin-bottom: var(--padding);
}

.timeline-list h3 {
    margin-bottom: .25rem;
    font-size: 25px;
}


/*  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;
    }
}

#subpage-main img {
    display: block;
    max-width: 100%;
    height: auto;
}

@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-bottom: 2px solid #dee2e6; */
    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;
}

#members-feed {
    /* temporary style to hide feeds while logos are added */
    display: none;
}

.members-feed-scrolling {
    padding: 10px 0;
    list-style: none;
    display: flex;
    overflow: hidden;
    height: 170px;
    position: relative;
    /* --number-of-logos: 15; */
    --distance-travelled: calc(160px * var(--number-of-logos));
    --time: calc(var(--number-of-logos) * 2.5);
    --math: calc(var(--time) / var(--number-of-logos));
    --offset: calc(6s * var(--math));
    /* Offset adjusted to prevent blank gap at beginning of scroll */
}

.members-feed-scrolling li {
    padding: 0 5px;
    animation: calc(var(--time) * 1s) infinite normal backwards running memberFeedScroll;
    animation-timing-function: linear;
    position: absolute;
    right: -160px;
    width: 150px;
    height: 150px;
    background: white;
    display: flex;
}

.members-feed-scrolling img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    margin: auto;
}

@keyframes memberFeedScroll {
    from {
        transform: translateX(0);
    }
    to {
        /* Move feed items the width of the .members-feed-scrolling container, plus the width of a logo and its padding to get it out of view */
        transform: translateX(calc((var(--distance-travelled) * -1) - 160px));
    }
}

@media (max-width: 500px) {
    .members-feed-scrolling {
        --time: calc(var(--number-of-logos) * 4);
    }
}


/*  Backgrounds-----------------------------
   ----------------------------------------
*/

[class*="-background"]::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc((100vw - 100%) / 2 * -1);
    right: calc((100vw - 100%) / 2 * -1);
    z-index: -1;
}

:not(#gm-canvas)>.gray-background::after {
    background-color: var(--light-gray);
}

:not(#gm-canvas)>.gradient-background::after {
    background: linear-gradient(120deg, var(--accent), var(--primary));
    opacity: .9;
}

.gradient-background h1,
.gradient-background h2,
.gradient-background h3,
.gradient-background h4,
.gradient-background p {
    color: white;
}


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

.modal-open #login-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);
}


/*  Cards ----------------------------------
   ----------------------------------------
*/

.card-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
    font-size: .9em;
    --margin: 10px;
    margin-left: calc(var(--margin) * -1);
    margin-right: calc(var(--margin) * -1);
}

[class*="-card"] {
    border: 1px solid #aaa;
    position: relative;
    background: white;
    margin-bottom: 1em;
    width: calc(33% - (var(--margin) * 2) + 3px);
    margin-left: var(--margin);
    margin-right: var(--margin);
}

.card-grid:not(:last-child) {
    margin-bottom: 1rem;
}

.card-grid [class*="-card"] {
    margin: 0;
}

.event-card>* {
    margin: 0;
}

.event-card>*+* {
    margin-top: 1.25rem;
}

.event-card h3 {
    font-size: 18px;
}

.event-card .block-link {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

#homepage-main *[class$="-card"] h3 {
    color: inherit;
    font-size: 18px;
}

#homepage-main .event-card h3 {
    min-height: 2em;
}

.event-card a::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

#homepage-main .event-card img {
    display: block;
    width: calc(100% + 3rem);
    height: auto;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}
#homepage-main .event-card img:empty {
    display: none;
}

#homepage-main *[class$="-card"] p {
    color: unset;
}

.news-card {
    display: flex;
    flex-direction: column;
    width: calc(25% - (var(--margin) * 2));
}

.news-card img {
    display: block;
    width: 100%;
    height: 20vh;
    object-fit: cover;
}

.news-card figcaption {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    background: white;
    height: 100%;
}

.event-card {
    padding: 1.5rem 1.5rem 4.5rem;
    padding: 1.5rem 1.5rem calc(4.5rem + 2.25rem);
    width: calc(25% - (var(--margin) * 2));
}

time>span {
    display: block;
    color: var(--secondary);
    font-size: 18px;
    line-height: 1;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .125ch;
}

time .day {
    font-size: 3.5em;
    font-weight: bolder;
    letter-spacing: -.125ch;
}

.event-card .description br {
    display: none;
}

.event-card .location {
    display: block;
    position: absolute;
    bottom: 1rem;
    bottom: calc(2rem + 1.25rem + 50px);
    bottom: calc(4.25rem);
    line-height: 1.3;
    max-width: calc(100% - 3rem);
    /* Item is set to be absolute so max-width is needed to conform to the padding from parent element */
    pointer-events: none;
}

.event-card .location::before {
    content: '';
    width: 1em;
    height: 1em;
    background-image: url(../images/location.svg);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    position: relative;
    bottom: -1px;
    margin-right: 2px;
}

.event-card .location:empty {
    display: none;
}

@media (max-width: 1200px) {
    .event-card {
        padding: 1rem 1rem 4.5rem;
    }
    .news-card figcaption {
        padding: 1rem;
    }
    #homepage-main .event-card img {
        width: calc(100% + 2rem);
        margin-left: -1rem;
        margin-right: -1rem;
    }
}

@media (max-width: 990px) {
    .event-card>*+* {
        margin-top: .75rem;
    }
    .event-card {
        width: calc(50% - 20px);
    }
    .news-card {
        display: flex;
        flex-direction: column;
        width: calc(50% - (var(--margin) * 2));
    }
}

@media (max-width: 600px) {
    .news-card,
    .event-card {
        width: 100%;
    }
    .event-card>*+* {
        margin-top: 15px;
    }
}


/*
--------------------------------------------------------------------------
Header
--------------------------------------------------------------------------
*/

body>header {
    background: white;
    position: fixed;
    top: 0;
    z-index: 20;
    width: 100%;
    color: inherit;
    box-shadow: 0 3px 14px -2px rgba(0, 0, 0, .2);
    transition: color .15s ease-in, box-shadow .15s ease-in, background .2s ease-in;
}

#subpage>header,
#mms-header {
    position: sticky;
}

#homepage header.unscrolled {
    background: transparent;
    color: white;
    box-shadow: 0 3px 14px -2px rgba(0, 0, 0, 0);
    transition: color .15s ease-in, box-shadow .15s ease-in, background 0s ease-in;
    transition-duration: 0s;
}

body>header a {
    color: inherit;
}

body>header a:hover,
body>header a:focus {
    text-decoration: none;
    color: inherit;
}

#logo-wrapper {
    display: flex;
    justify-content: space-between;
    padding-top: 13px;
    padding-bottom: 13px;
    gap: 30px;
}

#logo-wrapper img,
#logo-wrapper svg {
    max-width: 475px;
    height: auto;
    display: block;
}

@media (max-width: 500px) {
    html {
        overflow-x: hidden;
    }
    body>header {
        width: 100vw;
    }
}


/*  Top Menu -------------------------------
   ----------------------------------------
*/

.menus {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    width: 100%;
}

#top-menu {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    color: #444;
    transition: padding .125s ease-in, color .125s ease-in;
    list-style: none;
    font-size: 16px;
}

@media (max-width: 1200px) {
    #top-menu {
        padding-top: 5px;
        padding-bottom: 5px;
    }
}

#homepage .unscrolled #top-menu {
    color: white;
}

#homepage .unscrolled #nav_menu>ul>li>a,
#homepage .unscrolled #top-menu a,
#homepage .unscrolled #top-menu ::placeholder {
    /* Increase contrast between text and background image  */
    text-shadow: 0px 0px 4px black;
}

#top-menu ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    max-width: 100%;
    margin-bottom: 0;
    color: inherit;
    padding-left: 0;
}

#top-menu li {
    white-space: nowrap;
    margin-left: 2ch;
}

#top-menu li:first-child {
    margin-left: 0;
}

#top-menu a::before {
    width: 1em;
    height: .9em;
    display: inline-block;
    background-repeat: no-repeat;
    content: '';
    background-size: contain;
    position: relative;
    top: .125em;
    margin-right: .5ch;
}

.contact-item a::before {
    background-image: url(../images/contact-new.svg.php?fc=666);
}

#top-menu .login-item a::before {
    background-image: url(../images/login-new.svg.php?fc=666);
    margin-right: .75ch;
    top: .1em;
}

.search-item a::before {
    background-image: url(../images/search-new.svg.php?fc=666);
    position: absolute;
    top: calc(50% - .5em);
    left: 0;
}

#homepage .unscrolled .login-item a::before {
    background-image: url(../images/login-new.svg.php?fc=eee);
}

#homepage .unscrolled .contact-item a::before {
    background-image: url(../images/contact-new.svg.php?fc=eee);
}

#homepage .unscrolled .search-item a::before {
    background-image: url(../images/search-new.svg.php?fc=eee);
}

@media (max-width: 550px) {
    #top-menu ul {
        flex-wrap: wrap;
    }
    #top-menu li {
        margin-left: 1.5ch;
    }
    #top-menu a::before {
        content: none;
    }
}


/* Search */

.searchbox,
#searchbox {}

.search-input {
    background: transparent;
    padding: 5px;
    margin-left: -5px;
    color: inherit;
    border: 1px solid transparent;
    border-radius: .25em;
    width: 7ch;
    transition: width .25s ease-in-out, border-color .25s ease-in-out;
    cursor: pointer;
}

.search-input::placeholder {
    color: inherit;
    opacity: 1;
}

.search-item:focus .search-input,
.search-item:hover .search-input {
    width: 200px;
    border-color: currentColor;
    outline: none;
}

.searchbox .search-button,
#searchbox .search-button {
    display: none !important;
}

@media (max-width: 1200px) {
    .search-input:focus,
    .search-input:hover {
        width: 170px;
    }
}


/*  Desktop Menu ---------------------------
   ----------------------------------------
*/

#nav_menu {
    padding: 0;
}

@media (max-width: 990px) {
    #nav_menu {
        font-size: 16px;
    }
}

@media (max-width: 850px) {
    #nav_menu {
        font-size: 14px;
    }
}

#homepage .unscrolled #nav_menu>ul {
    height: unset;
}

#nav_menu>ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    height: 65px;
    height: 45px;
    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 */
    top: calc(100% + 1rem);
}

#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 {
    padding: 0;
    font-size: 16px;
    white-space: nowrap;
}

#nav_menu .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;
}

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

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

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

#homepage .unscrolled .nav .open>a,
#homepage .unscrolled .nav .open>a:focus,
#homepage .unscrolled .nav .open>a:hover,
#homepage .unscrolled .nav>li>a:focus,
#homepage .unscrolled .nav>li>a:hover {
    /* Overwriting BS defaults */
    background-color: transparent;
    color: white;
}

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

@media (max-width: 990px) {
    nav#nav_menu li:not(:first-child):not(:last-child) {
        display: none;
    }
}

@media (max-width: 900px) and (min-width: 768px) {
    #nav_menu .navbar-nav>li>a {
        font-size: 14px;
    }
}


/*  Scrolled/Unscrolled styles 
   ----------------------------------------
*/

@media (min-width: 767px) {
    #top-menu {
        font-size: 13px;
    }
}


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

@media (max-width: 990px) {
    #nav_menu {
        display: none !important;
    }
}

.menus>.mobileMenuTrigger {
    background: transparent;
    border: 1px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    align-self: flex-end;
}

@media (min-width: 991px) {
    .menus>.mobileMenuTrigger {
        display: none;
    }
}

.mobileMenuTrigger label {
    display: none;
}

.menu-trigger {
    cursor: pointer;
    margin: 0;
    width: 30px;
    height: 30px;
    padding: 5px;
}

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

@media (max-width: 990px) {
    #logo-wrapper {
        width: 100%;
        padding: 5px 15px;
        display: grid;
        grid-template-columns: 1fr 40px;
        gap: 0 30px;
        grid-template-areas: "top-row top-row" "logo trigger";
    }
    #logo-wrapper .menus {
        display: contents;
    }
    #logo-wrapper>a:first-child {
        grid-area: logo;
    }
    #logo-wrapper>a:first-child svg,
    #logo-wrapper>a:first-child img {
        max-width: 100%;
    }
    #top-menu {
        grid-area: top-menu;
        padding: 0;
        margin: 0;
        grid-row: 1/1;
        grid-column: 1/-1;
    }
    button.mobileMenuTrigger {
        grid-area: trigger;
        margin-top: auto;
        margin-bottom: auto;
    }
}


/*  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;
}

#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);
}

.mobile-login {
    margin-top: .5em;
}

.mobile-login~ul {
    /* Unordered list of Foundation links added to mobile menu */
    list-style: none;
    padding: 0;
}


/*
--------------------------------------------------------------------------
Page Titles on Main Site
--------------------------------------------------------------------------
*/

#page-title {
    font-size: 48px;
    height: 300px;
    display: flex;
    position: relative;
    z-index: 1;
    color: white;
}

#page-title::before,
#page-title::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

#page-title::before {
    z-index: -1;
    background: rgba(74, 74, 74, 0.55);
}

#page-title::after {
    z-index: -2;
    background-position: center;
    background-size: cover;
}

h1.title {
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 990px) {
    #page-title {
        height: 20vh;
    }
    h1.title {
        margin: auto 0;
        line-height: .9;
        font-size: .7em;
    }
}


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

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

#homepage-main article>section,
#subpage-main,
#search-main,
#news-manager-main {
    padding: 4.5em 0;
    padding: min(9vh, 80px) 0;
    position: relative;
    z-index: 1;
}

#mms-main {
    font-size: 16px;
}

#news-manager-main img {
    max-width: 100%;
    height: auto !important;
    display: block;
}

@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;
    }
}

#on-demand-row ul {
    padding: 0;
    margin: 0;
    list-style: none;
}


/*  Home Slideshow  ------------------------
   ----------------------------------------
*/

#banner-row {
    overflow: hidden;
}

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

#banner-row img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

#banner-row .carousel-caption {
    position: absolute;
    z-index: 100;
    background: transparent;
    left: 0;
    bottom: 10vh;
    right: 0;
    top: unset;
    width: 100%;
    text-align: left;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 0 4px black;
}

#banner-row .carousel-caption::after {
    content: '';
    position: absolute;
    top: -100vw;
    bottom: -100vw;
    left: calc(var(--side-margin) * -1 - 30px);
    right: calc(var(--side-margin) * -1 - 30px);
    z-index: -1;
    background: #2A3763;
    opacity: .3;
    mix-blend-mode: multiply;
}

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

@media (min-width: 991px) {
    #banner-row .caption-wrapper {
        padding-left: 0;
        padding-right: 10%;
    }
}

#banner-row .caption-text {
    font-size: 58px;
    font-weight: bold;
    line-height: .9;
    display: block;
    color: white;
    margin-bottom: 10px;
}

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

@media (max-width: 990px) {
    #banner-row .caption-text {
        font-size: 38px;
    }
    #banner-row .alt-text {
        font-size: 20px;
    }
}


/*  Home Test Protocols --------------------
   ----------------------------------------
*/


/*  Subpage Styles -------------------------
   ----------------------------------------
*/


/*--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: "›";
}


/*  Contact banner aside -------------------
   ----------------------------------------
*/

#contacts-banner {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: unset;
    z-index: 10;
    background: #4a4a4a;
    background: transparent;
    background: rgba(74, 74, 74, .2);
    background: white;
    transition: bottom .25s ease-in-out;
    transition-delay: .125s;
    box-shadow: 0 5px 17px 0 rgba(0, 0, 0, .15);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

@media (max-width: calc(333px + 62px + 20px + 20px)) {
    /* Calc formula referrs to:
       * width of #contacts-banner,
       * width of Zoho help widget,
       * distance of Zoho widget from right edge of screen,
       * margin between #contact-banner and Zoho widget */
    #contacts-banner {
        display: none;
    }
}

#mms #contacts-banner {
    display: none;
}

.unscrolled~#contacts-banner,
#contacts-banner.hide {
    bottom: -5rem;
    box-shadow: none;
}

#contacts-banner>div {
    display: flex;
    justify-content: flex-end;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    padding: .5em 1em;
}

#contacts-banner h1 {
    font-size: inherit;
    font-weight: normal;
    padding-right: 1em;
}

@media (max-width: 500px) {
    #contacts-banner h1 {
        display: none;
    }
}

#contacts-banner .social-media {
    display: inherit;
    align-items: inherit;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
    gap: 10px;
}

.social-media svg {
    width: 34px;
    height: 34px;
}

#contacts-banner a:not(.button-link) {
    height: 30px;
    display: block;
}

#close-button {
    -webkit-appearance: none;
    background: none;
    border: none;
    color: #444;
    font-weight: bold;
    font-size: 1.3em;
    transition: color .125s ease-in;
    margin-left: 1em;
    padding: 0;
}

#close-button:focus,
#close-button:hover {
    outline: none;
    color: #E61F25;
}


/*  Subpage styles -------------------------
   ----------------------------------------
*/

#subpage-main h2 {
    grid-column: 1 / -1;
}

.foundation-home-main [class*="-grid"],
#subpage-main [class*="-grid"] {
    display: grid;
    grid-gap: 30px 2rem;
}

#subpage-main [class*="-grid"]>[class*="-card"] {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    #subpage-main [class*="-grid"] {
        grid-gap: 1.2rem 30px;
    }
}


/* Full screen background  */

#subpage-main.full-background {
    padding-top: 0;
    min-height: calc(100vh - 85px);
    /* Full background pages should be tall enough to push the footer off screen  */
}

#subpage-main.full-background::before,
#subpage-main.full-background::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--side-margin) * -1);
    right: calc(var(--side-margin) * -1);
    z-index: -1;
}

#subpage-main.full-background::before {
    background-image: var(--background-image);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

#subpage-main.full-background::after {
    background: rgba(74, 74, 74, 0.55);
}

@media (max-width: 767px) {
    #subpage-main.full-background::before,
    #subpage-main.full-background::after {
        left: 0;
        right: 0;
    }
}

.full-background * {
    color: white;
    text-shadow: 0 0 3px rgba(0, 0, 0, .5);
}

.full-background a:not(.button-link) {
    text-decoration: underline;
    position: relative;
    background: transparent;
    transition: background .125s ease-in-out, color .125s ease-in-out;
}

.full-background a:not(.button-link):hover,
.full-background a:not(.button-link):focus {
    text-shadow: none;
    background: var(--secondary);
    color: white;
    display: inline-block;
}

.full-background #page-title::before {
    content: none;
}

@media (max-width: 1560px) {
    #subpage-main.full-background {
        display: block;
    }
}


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


/*  Grid Page Editor workarounds -----------
----------------------------------------
*/

#gm-canvas section[id^="section-"] {
    /* Remove padding from sections in GPE so editor page isn't so long in length */
    padding-top: unset;
    padding-bottom: unset;
}

#gm-canvas .gm-tools a {
    /* Uses hover style for normal state so that the normally blue icons can be still be seen no matter what the background color is  */
    background-color: #666;
    color: white !important;
    text-decoration: none;
}

#gm-canvas .gm-editing {
    /* Replace border styles that add extra pixels to the side of the elements */
    border: none;
    outline: solid 1px #2fa4e7;
}

@supports (display:block) {
    /* We move the display:flex from the "...-wrapper" element to the element actually wrapping the content to be flex in the GPE */
    .gm-editing [class*="-wrapper"] {
        display: block;
    }
    .gm-editing [class*="-wrapper"] .gm-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

#gm-canvas .gradient-background h1,
#gm-canvas .gradient-background h2,
#gm-canvas .gradient-background h3,
#gm-canvas .gradient-background h4,
#gm-canvas .gradient-background p {
    color: unset;
}


/*  System pages and MMS ---------------
----------------------------------------
*/

.eachvideo h3 {
    font-size: 24px;
}


/*  Footer -------------------
   ----------------------------------------
*/

footer {
    padding-top: 10vh;
    padding-top: 5vh;
    padding-bottom: 7.5vh;
    color: white;
    background-color: #4a4a4a;
    position: relative;
    z-index: 11;
}

footer ul {
    list-style: none;
    padding-left: 0;
}

footer a,
footer a:hover,
footer a:focus {
    color: inherit;
    position: relative;
    z-index: 2;
    text-decoration: none;
    filter: none;
    display: inline-block;
}

footer nav a {
    line-height: 1.1;
}

footer a::before {
    content: '';
    background: var(--secondary);
    opacity: .7;
    position: absolute;
    top: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    transition: top .125s ease-out;
    z-index: -1;
}

footer a:focus::before,
footer a:hover::before {
    top: 0;
}

footer a.button-link::before {
    content: none;
}

footer nav>ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    grid-gap: 30px;
}

footer nav>ul ul {
    font-size: 16px;
}

footer nav>ul>li>h2 {
    font-size: 1rem;
    font-weight: normal;
    padding-bottom: .25em;
    border-bottom: 2px solid var(--secondary);
    margin-bottom: 1em;
    display: block;
}

footer nav li {
    display: block;
    margin-bottom: .75rem;
}

footer nav a[href*="tel:"] {
    display: inline-block;
}

footer address {
    /* Overwrite BS defaults */
    margin-bottom: inherit;
    font-style: inherit;
    line-height: inherit;
}