html {
    --accent: #53284F;
    --primary: #1A5632;
    --text: #545454;
    overflow-x: hidden;
    font-size: 17px;
    font-family: 'Roboto', sans-serif;
}

body {
    font-family: inherit !important;
    font-size: inherit !important;
    /* Properties !important'd to prevent the MMS pages with body styles from overwriting them */
    color: var(--text);
}

p {
    margin-bottom: .75em;
}


/*--------------------------------------------------------
    Headings
--------------------------------------------------------*/

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 .75em;
    padding: 0px;
    font-family: 'Raleway', sans-serif;
    text-transform: capitalize;
}

h1 {
    font-size: 35px;
}

h2 {
    font-size: 33px;
}

h3 {
    font-size: 30px;
}

h4 {
    font-size: 27px;
}

h5 {
    font-size: 24px;
}

h6 {
    font-size: 20px;
}


/*--------------------------------------------------------
LINKS
--------------------------------------------------------*/

a {
    color: #4C9C2E;
    transition: color .125s ease-in-out
}

a:not(nav a):not(.carousel a):not(.button-link):hover,
a:not(nav a):not(.carousel a):not(.button-link):focus,
#mms-main a:not(.button-link):hover,
#mms-main a:not(.button-link):focus {
    color: var(--primary);
}

a:focus,
a:hover {
    outline: 0;
}

a:focus-visible {
    outline: 2px solid var(--text);
}

.button-link,
.login-form input[type="submit"] {
    background: transparent;
    transition: background-color .125s ease-in-out;
    display: inline-block;
    color: #4C9C2E;
    padding: .5em 4ch;
    text-decoration: none;
    border: 1px solid currentColor;
    font-size: 1.1em;
}

.button-link:hover,
.button-link:focus,
.login-form input[type="submit"]:hover,
.login-form input[type="submit"]:focus {
    background: var(--accent);
    transition: background-color .125s ease-in-out;
    color: white;
    text-decoration: none;
}

.row_background .button-link {
    background: transparent;
    border: 1px solid white;
}

.row_background .button-link:hover,
.row_background .button-link:focus {
    color: white;
    background: var(--accent);
}


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

video {
    max-width: 100%;
}

.offscreen {
    /* This class allows an element to be read by a screenreader without appearing in the viewport  */
    position: absolute;
    left: -666vw;
}

.row_background {
    background-color: var(--accent);
    color: #fff;
}

.row_background *:not(input) {
    color: #fff;
}

.row_background input {
    color: var(--text);
}

#mycanvas .hidden {
    display: block !important;
}


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

.full-width {
    /* Make an element span the width of the viewport */
    --side-margin: calc((100vw - var(--page-width) + 13px) / -2);
    /* 13px to compensate for width of scrollbar */
    position: relative;
    left: var(--side-margin);
    right: var(--side-margin);
    width: calc(100vw + 13px);
}

#gm-canvas .full-width {
    left: unset;
    right: unset;
    width: unset;
}

@media (min-width:992px) {
     :root {
        --page-width: 970px;
    }
    .wrapper {
        width: 970px;
    }
}

@media (min-width:1200px) {
     :root {
        --page-width: 1170px;
    }
    .wrapper {
        width: 1170px;
    }
}

@media (max-width: 990px) {
    .container,
    .wrapper {
        /* Extra wiggle room at a breakpoint that needs it  */
        width: 100%;
    }
    .full-width {
        --side-margin: unset;
        left: unset;
        right: unset;
        width: unset;
    }
}

.row_background {
    color: white;
    position: relative;
    padding-top: 2rem;
    padding-bottom: 2rem;
    background-color: #000;
}

.row_wrapper.row_background {
    margin-top: 50px;
}

.row_background::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -666vw;
    right: -666vw;
    display: block;
    background-color: var(--primary);
    background-color: #866479;
    /*background-color: #53284F;
    background-color: #1A5632;*/
    background-color: #000;
}

#mycanvas .row_background::before {
    z-index: -1;
}

.row_background *:not(input) {
    color: white;
}

@media (max-width: 767px) {
    .row_background {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

.black-background {
    background: #000;
    padding: 30px 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #fff;
}

.black-background * {
    color: #fff !important;
}


/*--------------------------------------------------------
                HEADER
--------------------------------------------------------*/

.top-header-wrap {
    background: #1A5632;
}

#header-top {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 16px;
    background: #1A5632;
}


/*#header-top::before,
header::before,
footer::before {
    content: '';
    position: absolute;
    left: -666vw;
    right: -666vw;
    top: 0;
    bottom: 0;
    z-index: -1;
    background: #fff;
}*/

@media (max-width: 767px) {
    #header-top {
        display: none;
    }
}

header::before {
    background: white;
    opacity: .95;
}

#header-top a {
    color: white;
}

header img {
    width: 400px;
    padding: .5em 0;
    padding-right: 1ch;
}


/* --- Search ---  */

.searchbox {
    outline: 1px solid white;
    max-width: 100%;
    position: relative;
    width: 230px;
    height: 2em;
    transition: outline .25s ease-in-out;
    overflow: hidden;
    margin: .5em 2ch;
}

.searchbox:focus-within {
    outline: 2px solid var(--accent);
}

.search-input {
    border: none;
    padding: .5em 1ch;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.search-input:focus {
    outline: none;
}

.search-button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    border: 0;
    width: 2em;
    background-image: url(../images/search-icon.png);
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--accent);
    background-color: #1a5632;
}

header.wrapper {
    /*position: sticky;*/
    top: 0;
    z-index: 10;
    padding-top: .5rem;
    padding-bottom: .5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    /* Font-size included because some pages of the MMS try to override the body's font-size */
}


/*--------------------------------------------------------
            Desktop Navigation
--------------------------------------------------------*/

#nav_menu,
.social-wrapper {
    display: inline-block !important;
    vertical-align: middle;
}

.social-wrapper {
    margin-left: 15px;
}

#nav_menu {
    position: relative;
    z-index: 1;
    padding: 0;
}

#nav_menu>ul {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

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

#nav_menu>ul>li>a {
    color: var(--text);
    transition: background .125s ease-in-out, color .125s ease-in-out;
}

#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 {
    text-decoration: none;
    background-color: #eee;
    background: var(--primary);
    color: white;
}

#nav_menu .caret {
    margin-left: .5ch;
}

#nav_menu .dropdown-menu {
    /* Dropdown menu  */
    /* background: var(--primary); */
    font-size: inherit;
    padding: .75em 0;
    min-width: 20ch;
}

@media (max-width: 1200px) {
    #nav_menu ul>li>a {
        padding: 10px 10px;
    }
}

@media (max-width: 990px) {
    #nav_menu ul>li>a {
        padding: 10px 5px;
    }
    #nav_menu ul>li>.home-link {
        /* Verbose selector needed to override BS defaults */
        display: none;
    }
}


/*--------------------------------------------------------
    Mobile navigation
    --------------------------------------------------------*/

button.mobileMenuTrigger {
    display: none;
    background: transparent;
    color: var(--primary);
    border: none;
}

.mobileMenuTrigger rect {
    fill: var(--primary) !important;
}

@media (max-width: 767px) {
    header nav {
        display: none;
    }
    header .mobileMenuTrigger {
        display: block;
    }
}

#mobileMenuWrapper {
    position: fixed;
    background: white;
    top: 0;
    bottom: 0;
    z-index: 50;
    overflow-y: auto;
    overflow-x: hidden;
    left: -120%;
    width: 300px;
    box-shadow: 0 3px 14px -2px rgba(0, 0, 0, 0.4);
    transition: left .125s ease-in-out;
}

#mobileMenuWrapper.open {
    left: 0;
}

#mobileMenuWrapper ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#mobileMenuWrapper li {
    display: block;
    margin-bottom: .7rem;
}

#mobileMenuWrapper a {
    background-color: transparent;
    text-decoration: none;
    color: var(--text);
}

#mobileMenuWrapper .mDropdown {
    display: none;
    padding-top: .7rem;
}

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

#mobileMenuWrapper .mDropdown a {
    color: #333;
}

#triggerClose {
    font-size: 22px;
    cursor: pointer;
    text-align: right;
}

#mobileMenuWrapper #mobile-menu {
    overflow: auto;
    padding: 1rem;
}

#mobile-search .searchbox {
    outline: 1px solid var(--primary);
    margin: 0;
}

.mobile-sm-wrap {
    display: inline-block !important;
    vertical-align: middle;
    margin-top: 10px;
}


/*--------------------------------------------------------
    Log In modal
--------------------------------------------------------*/


/* Login modal */

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

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

.modal-content {
    margin-top: 20px;
    border-radius: 0;
}

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

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

.modal h2 {
    font-size: 24px;
}

.modal-header,
.modal-body {
    padding: 1em 2ch;
}

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

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


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

#subpage-main,
#mms-main {
    padding-top: 3rem;
    min-height: calc(100vh - (101px + 50px + 141px + 3rem));
}

main .row+.row {
    margin-top: 3rem;
}

@media (max-width: 990px) {
    #subpage-main,
    #mms-main {
        padding-top: 2rem;
    }
    main .row+.row {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    #subpage-main,
    #mms-main {
        min-height: calc(100vh - (120px + 52px + 157px));
        padding-top: 1rem;
    }
    main [class*="col-"]+[class*="col-"] {
        margin-top: 1rem;
    }
}


/* Slideshows defaults */

.carousel {
    font-size: 20px;
}

.carousel-indicators {
    z-index: 5;
}


/* Homepage slideshows */

.home-main-slideshow {
    margin-bottom: 50px;
}

.home-main-slideshow .container {
    width: 100%;
}

.home-main-slideshow [class*="col-"] {
    padding: 0;
}

.home-main-slideshow img {
    width: 100%;
}

#slide-row .carousel-indicators {
    top: 1rem;
    right: 1rem;
    left: unset;
    bottom: unset;
    text-align: right;
    margin: unset;
}

#secondary-slide-row,
#secondary-slide-row::before {
    background-color: transparent;
}

#secondary-slide-row .carousel.slide {
    background: #1A5632;
    padding: 30px 30px;
}

#secondary-slide-row .carousel-indicators {
    top: unset;
    bottom: 1rem;
    left: 1rem;
    right: unset;
    text-align: left;
    margin: unset;
}

#slide-row .carousel-indicators li,
#secondary-slide-row .carousel-indicators li {
    border-color: var(--primary);
    background: white;
}

#slide-row .carousel-indicators li.active,
#secondary-slide-row .carousel-indicators li.active {
    background: #71A850;
}

#secondary-slide-row .item.active {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#slide-row img {
    min-height: 525px;
    height: 525px;
    max-width: 100%;
    width: 100%;
    object-fit: cover;
    object-position: bottom;
    background-position: center;
}

@media (max-width: 767px) {
    #slide-row img {
        min-height: auto;
        height: auto;
    }
}

#slide-row .carousel-caption a {
    color: #fff;
    text-decoration: none;
}

#slide-row .carousel-caption a:empty,
#slide-row .carousel-btn a:empty,
#secondary-slide-row .carousel-caption a:empty,
#secondary-slide-row .carousel-btn a:empty {
    display: none;
}

#slide-row .carousel-caption .carousel-btn {
    margin-top: 25px;
}

#slide-row .carousel-caption .carousel-btn a {
    padding: 12px 20px;
    background: #71A850;
    font-size: 18px;
    border-radius: 2px;
    display: none;
}

#slide-row .carousel-caption .carousel-btn a:hover {
    background: #1a5632;
}

#slide-row .carousel-caption.no-caption {
    margin-bottom: 0px !important;
    bottom: auto;
    padding-bottom: 0px;
}

#slide-row .carousel-caption.no-caption .carousel-btn {
    position: relative;
    top: -60px;
    margin-top: 0px;
}

#secondary-slide-row img {
    width: calc(50% - 15px);
    object-fit: cover;
}

#slide-row .carousel-caption,
#secondary-slide-row .carousel-caption {
    position: absolute;
    z-index: 2;
    color: #fff;
    left: 0;
    bottom: 0;
    right: 0;
    top: auto;
    width: 100%;
    text-align: left;
    text-shadow: none;
    margin: auto;
    padding: 0 15px;
    /* Style needed to overwrite BS defaults */
}

#secondary-slide-row .carousel-caption {
    position: relative;
}

#slide-row .caption-wrapper {
    position: relative;
    padding: 1.25rem 0 2rem;
}

#secondary-slide-row .caption-wrapper {
    padding: 1rem 30px;
    padding-right: 0;
}

#slide-row .caption-wrapper::before {
    content: '';
    position: absolute;
    /*    background: #1A5632;*/
    background: rgba(128, 128, 128, 1);
    top: 0;
    bottom: 0;
    left: -666vw;
    right: -666vw;
    z-index: -1;
    opacity: .9;
}

#slide-row .caption-text {
    font-size: 30px;
    /* font-weight: bold; */
    line-height: 1.2;
    text-transform: capitalize;
    font-family: 'Raleway', sans-serif;
    margin-bottom: .5rem;
}

#secondary-slide-row .caption-text {
    font-size: 24px;
    font-family: 'Raleway', sans-serif;
    text-transform: capitalize;
    line-height: 1.1;
    margin-bottom: .5rem;
}

#slide-row .alt-text {
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

#secondary-slide-row .alt-text {
    margin-bottom: 0;
    font-size: 18px;
}

#slide-row .carousel-control.left,
#slide-row .carousel-control.right,
#secondary-slide-row .carousel-control.left,
#secondary-slide-row .carousel-control.right {
    display: none;
}

@media (min-width: 1171px) {
    /*#slide-row .carousel-caption {
        width: 1170px;
    }*/
}

@media (max-width: 1200px) {
    #slide-row .carousel-caption {
        width: 960px;
        max-width: 100%;
    }
}

@media (max-width: 990px) {
    #slide-row .carousel-caption {
        position: relative;
    }
    #slide-row .carousel-caption::before {
        opacity: 1;
    }
    #slide-row .caption-wrapper::before {
        opacity: 1;
    }
    #slide-row .caption-text {
        font-size: 22px;
    }
    #slide-row .alt-text {
        font-size: 1rem;
    }
    #secondary-slide-row .carousel-indicators {
        bottom: unset;
    }
    #secondary-slide-row .item.active {
        flex-direction: column;
    }
    #secondary-slide-row .carousel-caption,
    #secondary-slide-row img {
        width: 750px;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
    }
    #secondary-slide-row .caption-wrapper {
        padding-left: 0;
    }
}


/* Introduction row  */

#introduction-row .column {
    text-align: center;
}

#introduction-row svg {
    width: 120px;
    height: 120px;
}

#introduction-row circle {
    fill: transparent;
    stroke: #4C9C2E;
    stroke-miterlimit: 10;
    stroke-width: 5px;
}

#introduction-row path {
    fill: #4C9C2E;
}

#introduction-row h3 {
    margin-top: .5em;
    margin-bottom: .5em;
}


/* #introduction-row h3 a {
    color: inherit;
} */

#introduction-row section>div {
    text-align: left;
}

@media (max-width: 767px) {
    #introduction-row .column {
        width: 100%;
        text-align: left;
        display: flex;
        flex-direction: row;
    }
    #introduction-row svg {
        margin-right: 15px;
        max-width: 15vw;
    }
    #introduction-row h3 {
        margin-bottom: .25em;
    }
}


/*---------------- Featured Three column section ----------*/

#featured-section-wrap {
    margin: 60px 0px;
}

#who-we-are-wrap,
#what-we-do-wrap,
#contact-us-wrap {
    text-align: center;
}

#who-we-are-wrap svg,
#what-we-do-wrap svg,
#contact-us-wrap svg {
    width: 120px;
    height: 120px;
}

.who-we-are-title h3,
.what-we-do-title h3,
.contact-us-title h3 {
    font-family: "Arimo", sans-serif;
    font-weight: 700;
    margin-top: 20px;
    color: #4c4c4c;
}

#who-we-are-wrap a:hover,
#what-we-do-wrap a:hover,
#contact-us-wrap a:hover,
#who-we-are-wrap a:focus,
#what-we-do-wrap a:focus,
#contact-us-wrap a:focus {
    text-decoration: none;
}

.who-we-are-desc,
.what-we-do-desc,
.contact-us-desc {
    text-align: left;
    margin-top: 20px;
}

@media (max-width: 767px) {
    #who-we-are-wrap,
    #what-we-do-wrap,
    #contact-us-wrap {
        margin: 30px 0;
    }
}

.btn-view-all-news,
.btn-view-all-events {
    text-align: center;
}

.btn-view-all-news a,
.btn-view-all-events a {
    text-align: center;
    margin-top: 40px;
    background-color: #71A850;
    border: 1px solid #71A850;
    color: #fff;
    padding: 11px 35px;
    font-family: "Arimo", sans-serif;
    font-size: 18px;
    border-radius: 2px;
    display: inline-block;
}

.btn-view-all-news a:hover,
.btn-view-all-events a:hover,
.btn-view-all-news a:focus,
.btn-view-all-events a:focus {
    background-color: #1A5632;
    /* REPLACE_COLOR:COLOR_2 */
    border: 1px solid #1A5632;
    /* REPLACE_COLOR:COLOR_2 */
    text-decoration: none;
    transition: .3s;
    outline: none;
    color: #fff !important;
}


/* News feed  */

.news-item {
    border-bottom: 1px solid rgba(255, 255, 255, .25);
    padding: 2rem 0;
}

.news-item:last-of-type {
    margin-bottom: 2rem;
}

.news-item h3 {
    margin-bottom: .5em;
    position: relative;
}

.news-item h3:before {
    content: '';
    position: absolute;
    width: 0.5em;
    height: 0.5em;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    left: -2ch;
    top: .25em;
}

.news-title-link:hover,
.news-title-link:focus {
    /* color: var(--accent);
    transition: color .125s ease-in-out;
    text-decoration: none; */
    filter: none !important;
}

.news-item .date {
    margin-bottom: .25em;
    display: block;
}

@media (max-width: 767px) {
    .news-item {
        padding: 1rem 0;
    }
    .news-item:last-of-type {
        margin-bottom: 1rem;
    }
}


/* Events feed  */

.events-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1rem 30px;
    margin-bottom: 2rem;
}

.event-item {
    display: flex;
    border: 1px solid currentColor;
    /* max-width: calc(33% - 15px); */
}

.event-item time {
    background: var(--accent);
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    width: 100px;
    line-height: 1.1;
    padding: 1ch;
}

.event-item .month {
    font-size: .6em;
}

.event-item section {
    padding: 1.1rem 1rem;
    /* padding-left: 1rem; */
    line-height: 1.2;
}

.event-item h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: .5em;
}

.event-item h3 a {
    color: inherit;
}

@media (max-width: 990px) {
    .events-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .events-wrapper {
        display: block;
        margin-bottom: 1rem;
    }
    .event-item+.event-item {
        margin-top: 1rem;
    }
}

#sponsor-slideshow-wrap {
    margin-top: 50px;
}


/*--------------------------------------------------------
FOOTER
--------------------------------------------------------*/

footer {
    margin-top: 3rem;
    padding: 2rem 0 1.5rem;
    color: white;
    border-top: 1px solid var(--text);
    background: #000;
}

footer::before {
    background: none;
}

footer .contact {
    display: block;
    margin: 5px 0;
}

footer .contact:empty {
    display: none;
}

.social-wrapper a:hover,
.social-wrapper a:focus {
    text-decoration: none;
}

header svg,
footer svg,
.mobile-sm-wrap svg {
    width: 30px;
    height: 30px;
    margin-right: 5px;
}

header a:last-child svg,
footer a:last-child svg {
    margin-right: 0px;
}

header rect,
footer rect,
.mobile-sm-wrap svg rect {
    stroke: #4C9C2E !important;
    transition: stroke .125s ease-in-out;
}

header path,
footer path,
.mobile-sm-wrap svg path {
    fill: #4C9C2E!important;
    transition: fill .125s ease-in-out;
}

header svg:hover rect,
header svg:focus rect,
footer svg:hover rect,
footer svg:focus rect,
.mobile-sm-wrap svg:hover rect,
.mobile-sm-wrap svg:focus rect {
    stroke: var(--primary) !important;
}

header svg:hover path,
header svg:focus path,
footer svg:hover path,
footer svg:focus path,
.mobile-sm-wrap svg:hover path,
.mobile-sm-wrap svg:focus path {
    fill: var(--primary) !important;
}

header linearGradient,
footer linearGradient,
.mobile-sm-wrap svg linearGradient {
    display: none;
}

@media (max-width: 990px) {
    footer {
        border: none;
    }
}

@media (max-width: 767px) {
    footer {
        margin-top: 1rem;
    }
}


/*--------------------------------------------------------
MMS 
--------------------------------------------------------*/


/* MMS Member Icons Menu */

@media (min-width: 1200px) {
    .nav-tabs li.dropdown {
        width: 190px;
    }
}

@media (min-width: 990px) and (max-width: 1200px) {
    .nav-tabs li.dropdown {
        width: 155px;
    }
}

@media (min-width: 767px) and (max-width: 990px) {
    .nav-tabs li.dropdown {
        width: 120px;
    }
}


/* New Mem Reg */

.member-plan-card {
    background-color: #71A850;
    color: white;
}

.member-plan-card:hover {
    background-color: #487629;
}

.show-details {
    color: black;
}