*,
*:before,
*:after {
    box-sizing: border-box;
}

:root {
    --page-width: 100vw;
    --side-margin: calc((100vw - var(--page-width)) / -2);
    overflow-x: clip;
    --primary: #21417e; /*from logo*/
    --secondary: #5a7384;
    --accent: #25882b; 
    --dark-hover: #25882b;
    --light-hover: #4aa84f; /*from logo*/
    --text-color1: #0f1a42;
    --text-color2: #666666;
    --red: #cc3a30; /*from logo*/
    --gray: #e9e9e9;
    --header-height: 149px;
    --footer-height: 335px;
    /*total height of the header section*/
    font-size: 16px;
    font-weight: 400;
    font-family: 'Lato', sans-serif;
    color: var(--text-color2);
    --gap: 30px;
    --radius: 4px;
}

* {
    scroll-margin-top: var(--header-height);
}

@media (min-width: 768px) {
     :root {
        --page-width: 750px;
    }
}

@media (min-width: 992px) {
     :root {
        --page-width: 970px;
        --scrollbarWidth: 17px;
    }
}

@media (max-width: 991px) {
     :root {
        --scrollbarWidth: auto !important;
    }
}

@media (min-width: 1201px) {
     :root {
        --page-width: 1170px;
    }
}

@media (max-width:990px) {
     :root {
        --side-margin: 0px;
    }
}

body {
    overflow-x: hidden;
    color: var(--text-color2);
    font-size: inherit;
    font-family: inherit;
}


/*
--------------------------------------------------------------------------
 Typography 
--------------------------------------------------------------------------
 */

p {
    line-height: 1.35em;
    margin: 0 0 20px;
}

p+p {
    margin-top: .25em;
}

p:empty {
    display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 900;
    color: var(--text-color1);
    line-height: 1.3em;
    margin-top: 0;
    margin-bottom: .5em;
    padding: 0;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 26px;
}

h4 {
    font-size: 22px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 16px;
}

h1.title {
    display: none;
}

h1.title:empty {
    display: none;
}


/*  Links ------------------- */

a {
    color: #396ac5;
    text-decoration: none;
    transition: all .25s ease-in-out;
}

a:hover,
a:focus,
a.button:hover,
a.button:focus {
    text-decoration: none;
    color: var(--dark-hover);
}

/* Buttons */

.btn-wrap {
    background: var(--dark-hover);
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 22px 12px;
    color: #fff;
    transition: .25s all ease-in;
    display: block;
    width: max-content;
    margin-top: 25px;
    margin-bottom: 25px;
}

.btn-wrap:hover {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 0 0 1px var(--dark-hover);
}

.btn-wrap.centered {
    margin: 0 auto;
}


.button-link {
    color: #fff;
    border: none;
    font-weight: 600;
    padding: .75em 2ch;
    display: block;
    width: fit-content;
    margin: 1.25em 0;
    transition: .125s background-color ease-in-out;
    line-height: 1;
    text-decoration: none;
    background-color: var(--dark-hover);
    border-radius: var(--radius);
    white-space: nowrap;
}

.button-link.blue {
        background-color: var(--primary);
}

.button-link.red {
        background-color: var(--red);
}

.button-link:first-child {
    margin-top: 0;
}

.button-link:last-child {
    margin-bottom: 0;
}

.button-link:is(:hover, :focus) {
    background: #fff;
    color: var(--primary);
    text-decoration: none;
    box-shadow: 0 0 0 1px var(--dark-hover);
}


/*----------------------Wrappers----------------------*/

.wrapper {
    /* .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  */
    margin-right: auto;
    margin-left: auto;
    max-width: 100%;
    position: relative;
    height: inherit;
    padding-left: 15px;
    padding-right: 15px;
    width: calc(var(--page-width) - 30px);
    width: var(--page-width);
    transition: .25s all ease-in-out;
}

.full-width {
    /* Make an element span the width of the viewport */
    position: relative;
    left: var(--side-margin);
    right: var(--side-margin);
    width: calc(100vw + var(--scrollbarWidth));
}

.full-width>.column {
    padding-left: 0;
    padding-right: 0;
}

#gm-canvas .full-width,
#gm-canvas .background-row {
    left: unset;
    right: unset;
    width: unset;
}

.background-row:not(#mycanvas .background-row) {
    padding: 1rem 15px;
    position: relative;
    left: var(--side-margin);
    right: var(--side-margin);
    display: flex;
    width: calc(100vw + var(--scrollbarWidth));
    background-color: #e9e9e9;
}

.background-row.blue:not(#mycanvas .background-row) {
        background-color: var(--primary);
}

.background-row:not(#mycanvas .background-row)>.column {
    /* Since element is extended past where the scrollbar is, extra padding is added to make sure it's content is not hidden under the scrollbar */
    padding-right: calc(15px + var(--scrollbarWidth));
}

#subpage-main:has(.background-row:last-child) {
    /* If .background-row is the last row, don't include a gap between main and footer */
    margin-bottom: 0;
    padding-bottom: 0;
}

#subpage-main>.background-row:last-child {
    /* If .background-row is the last row, don't include a gap between main and footer */
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .background-row:not(#mycanvas .background-row)>.column {
        font-size: 20px;
    }
}

@media (max-width: 990px) {
    .container,
    .wrapper {
        /* Extra wiggle room at a breakpoint that needs it  */
        width: 100%;
    }
    .full-width,
    .background-row {
        left: var(--side-margin);
        right: var(--side-margin);
        width: calc(100vw + var(--scrollbarWidth));
    }
}

#homepage-main .background-row:before,
#homepage-main .background-row:after,
#subpage-main .background-row:before,
#subpage-main .background-row:after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    display: block;
}

.offscreen {
    /* This class allows an element to be read by a screenreader without appearing in the viewport  */
    position: absolute;
    left: -666vw;
}

@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;
}

ol,
ul {
    margin-bottom: 1.5em;
}


/*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 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 */

.feed-item {
    padding: .25rem 20px;
    border-radius: 5px;
}

.feed-item h3 {
    font-size: 1.1rem;
}

.feed-item *:not(:last-child) {
    margin-bottom: .5rem;
}


/* Slideshow defaults */

.carousel {
    font-size: 20px;
}

.caption-text {
    font-size: 28px;
    font-weight: bold;
    display: block;
    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 #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);
}


/* Social list */

.social-list {
    display: flex;
    align-items: center;
    position: relative;
    list-style: none;
    gap: 5px;
    padding: 0;
    margin: 0;
}

#mobile-menu .social-list::before {
    color: var(--purple);
}


/*--------------------------------------------------------
                      MAIN HEADER
--------------------------------------------------------*/

header {
    width: 100%;
    position: relative;
    z-index: 2;
    background: #fff;
    transition: .25s all ease-in-out;
    padding-top: 2rem;
    padding-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem 30px;
}

header.scrolled {
    position: fixed;
    z-index: 999;
    transition: .25s all ease-in-out;
    text-align: center;
    left: 0;
    right: 0;
    gap: 0;
    margin: 0 auto;
    padding-top: .5rem;
    padding-bottom: 1rem;
}

header::before {
    content: '';
    top: 0;
    bottom: 0;
    left: -666vw;
    right: -666vw;
    background: #fff;
    position: absolute;
    z-index: -1;
    transition: .25s all ease-in-out;
    box-shadow: 0 8px 16px rgba(10, 38, 71, .05), 0 4px 8px rgba(10, 38, 71, .05);
}

header.scrolled>section {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    transition: all .25s ease-in-out;
}

@media (max-width: 767px) {
    header {
        padding-top: 1.5rem;
        padding-bottom: 1rem;
    }
    header.scrolled {
        padding-top: 0.8rem;
        padding-bottom: 0.5rem;
    }
}

.logo-link svg,
.logo-link img {
    max-width: 100%;
    transform: scale(1);
    height: auto;
    transition: all .25s ease-in-out;
}

header.scrolled .logo-link svg,
header.scrolled .logo-link img {
    transform: scale(.8);
    transition: all .25s ease-in-out;
}

.header-top {
    display: flex;
    align-items: center;
    transition: all .25s ease-in-out;
}

.login-link {
    display: inline-block;
}

.button-link.login-link {
    background-color: var(--primary);
    margin: 0 0 0 15px;
    border-radius: 3px;
    transition: all .25s ease-in-out;
}

.button-link.login-link:is(:hover, :focus) {
    background-color: var(--dark-hover);
    color: white;
    box-shadow: none;
}

.search-menu-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
    transition: all .25s ease-in-out;
}

@media (min-width: 768px) and (max-width: 990px) {
    .search-menu-wrap {
        gap: 0.5rem;
    }
}

@media (max-width: 767px) {
    .search-menu-wrap {
        gap: 0;
    }
    .header-top {
        margin-bottom: 15px;
    }
}
@media (max-width: 400px) {
    .header-top {
        display: none;
    }
}


header.scrolled .search-menu-wrap {
    gap: 0;
}


/*--------------------------------------------------------
                    Search Bar
--------------------------------------------------------*/

.searchbox {
    width: 250px;
    max-width: 45vw;
    display: inline-block;
    vertical-align: middle;
    color: #4D4D4D;
    position: relative;
    padding: 5px 1.5ch;
    border: 1px solid #E6E6E6;
    border-radius: 3px;
    height: 42px;
    max-height: 42px;
    overflow-y: hidden;
    transition: all .25s ease-in-out;
}

@media (max-width: 767px) {
    .search-menu-wrap .searchbox {
        display: none;
    }
}

@media (max-width: 420px) {
    .searchbox {
        max-width: 230px;
    }
}

header.scrolled .searchbox, header.scrolled .login-link {
    height: 0;
    max-height: 0;
    width: 0;
    margin: 0;
    transition: all .25s ease-in-out;
    opacity: 0;
    padding: 0;
}

.searchbox ::-webkit-input-placeholder {
    color: #4D4D4D;
}

.searchbox :-moz-placeholder {
    /* Firefox 18- */
    color: #4D4D4D;
}

.searchbox ::-moz-placeholder {
    /* Firefox 19+ */
    color: #4D4D4D;
}

.searchbox :-ms-input-placeholder {
    color: #4D4D4D;
}

.search-input {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border: none;
    width: 100%;
    padding: inherit;
    background: #fff;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Lato', sans-serif;
}

.search-button {
    color: transparent;
    background-color: var(--primary);
    border: none;
    background-image: url(../images/search-new.svg.php?fc=ffffff);
    position: absolute;
    right: 0;
    top: -1px;
    bottom: 0;
    width: 36px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    border-left: 2px solid var(--primary);
    transition: .25s all ease-in-out;
}

.search-button:hover {
    background-color: var(--accent);
    border-left: 2px solid var(--accent);
}

@media (max-width: 767px) {
    .search-button {
        top: 0px;
    }
}


/*--------------------------------------------------------
                    Desktop Navigation
--------------------------------------------------------*/

header nav .triggerClose,
header nav .menu-search {
    display: none;
}

.dropdown-menu li {
    width: 100%;
}

.nav>li>a:hover,
.nav>li>a:focus {
    background-color: transparent;
}


/*------------------------Menu Opens on Hover, .dropdown-submenu takes care of 2nd tier menu hover*/

.dropdown:hover .men-level-0,
.dropdown:hover .men-level- {
    display: block;
}


/* .dropdown:hover .men-level-1 {
    display: none;
}*/

.dropdown-submenu:hover .men-level-1,
.dropdown-submenu .dropdown-submenu:hover .men-level-2 {
    display: block;
}

.men-level-1,
.men-level-2 {
    left: 100%;
}


/*--------------------Ends Menu Opens on Hover*/


/*------------------------2nd Tier Nav*/

.nav li {
    position: relative;
    float: left;
    list-style-type: none;
}

.open>#nav_menu .dropdown-menu {
    display: block;
}

.men-level-1 {
    top: -3px;
}


/*--------------------End-2nd Tier Nav*/


/*----------------------------
    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;
    }
}


/*------------------------------------------------------------------------------------
                            Main Menu CSS
--------------------------------------------------------------------------------------*/

#nav-wrap {
    display: block;
}

.nav-container {
    float: right;
    margin-top: 15px;
}

header#header-outer-wrap.scrolled .nav-container {
    margin-top: -5px;
    transition: all .25s ease-in-out;
}

.nav-inside-wrap {
    display: inline-block;
    vertical-align: middle;
    width: 100%;
}

.nav-main-wrapper {
    float: right;
    margin-top: 15px;
}

.navbar-custom-wrapper {
    display: inline-block;
    vertical-align: middle;
}

#nav_menu {
    padding-left: 0px;
    padding-right: 0px;
}

#nav_menu .navbar-nav {
    width: 100%;
    padding: 0;
    margin: 0;
}

#nav_menu .navbar-nav li {
    text-align: center;
}

#nav_menu .navbar-nav>li a {
    color: var(--text-color1);
    font-size: 18px;
    font-weight: 400;
    font-family: 'Lato', sans-serif;
    padding: 5px 15px;
    transition: .25s ease-in;
    text-transform: capitalize;
}

#nav_menu .navbar-nav>li>a:hover,
#nav_menu .navbar-nav>li>a:focus {
    background: transparent;
    color: var(--accent);
}

#nav_menu .navbar-nav .open>a,
#nav_menu .navbar-nav .open>a:focus,
#nav_menu .navbar-nav .open>a:hover {
    background: transparent;
    color: var(--accent);
}

#nav_menu .navbar-nav>li:last-child a {
    border-right: 0px;
    padding-right: 0px;
}

.caret {
    margin-left: 8px;
}


/*------------------------------------------------------------------------------------
                            Dropdown Menus - full/collapsed
--------------------------------------------------------------------------------------*/

#nav_menu .dropdown-menu {
    background-color: var(--primary);
    border: 0;
    border-radius: 0px;
    padding: 0px;
}

#nav_menu .dropdown-menu li {
    width: 100%;
    border-bottom: 1px solid #0C5F84;
}

#nav_menu .dropdown-menu li:last-child {
    border-bottom: 0px;
}

#nav_menu .dropdown-menu li a {
    font-size: 16px;
    font-weight: 500;
    font-family: 'Lato', sans-serif;
    color: #fff;
    padding-top: 0px;
    padding-bottom: 0px;
    border: 0;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 8px 20px;
    text-align: left;
    transition: .25s ease-in background;
}

#nav_menu .dropdown-menu li a:hover,
#nav_menu .dropdown-menu li a:focus {
    background: var(--accent);
    color: #fff;
}


/*-----------------toggle--------------------*/

button#mobile-toggle {
    width: 37px;
    height: 37px;
    display: none;
    position: absolute;
    right: 15px;
    bottom: 30px;
    border: 2px solid #002857;
    border-radius: 4px;
    padding: 8px 5px;
    background-color: white;
    box-shadow: 0px 1.5px 1px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

@media (max-width: 990px) {
    button#mobile-toggle {
        display: inline-block;
    }
}

button#mobile-toggle svg * {
    fill: #002857;
}


/*-----------end--toggle---------------------*/

#mobile-menu>li#triggerClose {
    display: inline;
    float: right;
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    font-size: 40px;
    cursor: pointer;
    color: #333333;
}

#mobile-menu>li>a {
    width: 174px;
    min-height: 32px;
    margin-bottom: 6px;
    border-radius: 3px;
    background-color: transparent;
    padding-left: 8px;
    padding-top: 10px;
    padding-right: 5px;
    display: inline-block;
    font-size: 16px;
    font-weight: 400;
    color: #5485A3;
    -webkit-transition: color .25s;
    transition: color .25s;
    text-decoration: none;
}

#mobileMenuWrapper {
    position: fixed;
    top: 0px;
    bottom: 0px;
    z-index: 1001;
    overflow-y: auto;
    overflow-x: hidden;
    left: -120%;
    width: 300px;
    background-color: var(--primary);
    border-right: 3px solid var(--dark-hover);
    -webkit-transition: all 300ms cubic-bezier(1.000, 0.010, 0.0, 1.000);
    -moz-transition: all 300ms cubic-bezier(1.000, 0.010, 0.0, 1.000);
    -o-transition: all 300ms cubic-bezier(1.000, 0.010, 0.0, 1.000);
    transition: all 300ms cubic-bezier(1.000, 0.010, 0.0, 1.000);
}

#mobileMenuWrapper.open {
    left: 0px;
    bottom: 0px;
}


/* REQUIRED - Dropdown menu item transition states*/

#mobileMenuWrapper .mDropdown {
    display: none;
}

#mobileMenuWrapper .mDropdown.open {
    display: block;
}


/* REQUIRED - Sets the ULs to not have dots, or be spaced in the typical UL fashion. */

#mobileMenuWrapper ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
}


/* OPTIONAL-ISH - These are the settings for the base menu UL */


/* OPTIONAL-ISH - This sets each link on its own line fo' sho' */


/*#mobileMenuWrapper a, #mobileMenuWrapper div{
    display: block;
}*/


/* OPTIONAL - The actual A's. Style them as you wish*/


/* Top Level / all*/

#mobileMenuWrapper #mobile-menu a {
    display: inline-block;
    width: 100%;
}


/* dropdown only */

#mobileMenuWrapper #mobile-menu .mDropdown a {
    padding: 8px 20px;
}

#mobileMenuWrapper #mobile-menu .mDropdown.open a {
    color: #fff;
}

#mobile-menu>li>ul {
    background-color: transparent;
    border: 0;
    border-radius: 0px;
    padding: 0px 0;
    box-shadow: none;
}

#mobileMenuWrapper #mobile-menu .mDropdown a:hover,
#mobileMenuWrapper #mobile-menu .mDropdown a:focus {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}

#mobileMenuWrapper .caret {
    display: block;
}


/* Mobile menu trigger  */

.mobileMenuTrigger:not(.triggerClose) {
    border: 2px solid currentColor;
    padding: 10px 5px;
    color: var(--primary);
    transition: color .125s ease-in-out;
    display: inline-flex;
    border-radius: 5px;
    background: transparent;
    border: none;
    border: 1px solid var(--primary);
    padding: 8px 5px;
}

.mobileMenuTrigger:not(.triggerClose):hover,
.mobileMenuTrigger:not(.triggerClose):focus {
    color: var(--secondary);
    outline: none;
}

.menu-trigger {
    padding: 5px;
    height: 30px;
}

@media (min-width: 991px) {
    .mobileMenuTrigger:not(.triggerClose),
    nav .home-link {
        display: none;
    }
}


/*--------------------------------------------------------
    MOBILE MENU
--------------------------------------------------------*/

#mobileMenuWrapper.open {
    left: 0px;
    bottom: 0px;
}

#mobileMenuWrapper #mobile-menu {
    overflow: unset;
    padding: 0px 0px 10px 0px;
}

#mobileMenuWrapper ul {
    margin: 0px;
    padding: 0px;
    list-style-type: none;
}

#mobileMenuWrapper #mobile-menu li.menu-search,
#mobileMenuWrapper #mobile-menu li.home-link {
    border-top: 0px;
}

#mobileMenuWrapper #mobile-menu li.menu-search {
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    #mobileMenuWrapper #mobile-menu li.menu-search {
        display: none;
    }
}

#mobileMenuWrapper #mobile-menu li {
    border-top: 1px solid var(--dark-hover);
    display: block;
}

#mobileMenuWrapper #mobile-menu li:last-child {
    /*border-bottom: 1px solid var(--dark-hover);*/
}

#mobileMenuWrapper #mobile-menu li:hover,
#mobileMenuWrapper #mobile-menu li:focus {
    background: transparent;
}

#mobileMenuWrapper #mobile-menu li:hover a,
#mobileMenuWrapper #mobile-menu li:focus a {
    color: var(--accent);
}

#mobileMenuWrapper #mobile-menu>li#triggerClose {
    color: #FFFFFF;
    float: right;
    display: inline;
    font-size: 38px;
    cursor: pointer;
    transform: rotate(45deg);
    border-bottom: 0px;
    padding-right: 20px;
    border-top: 0px;
}

#mobileMenuWrapper #mobile-menu a {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Lato', sans-serif;
    background: transparent;
    padding: 8px 0px;
    margin: 0px;
    padding-left: 20px;
    padding-right: 20px;
    text-transform: capitalize;
}

#mobileMenuWrapper #mobile-menu a:hover,
#mobileMenuWrapper #mobile-menu a:focus {
    background: transparent;
    color: #fff;
}

#mobileMenuWrapper #mobile-menu li:last-child a {
    /*border-bottom: 0px;*/
}

li.mobile-what-licensed-wrap {
    margin-top: 15px;
}

#mobileMenuWrapper ul.mDropdown {
    display: none;
}

#mobileMenuWrapper .mDropdown.open {
    display: block;
}

#mobile-menu a {}

#mobile-menu-col {
    top: 5px;
    padding: 0px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    float: right;
    margin-left: 15px;
    width: 100%;
}

#mobile-toggle {
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

svg#burger-menu {
    width: 28px;
    height: 20px;
}

svg#burger-menu .d {
    fill: var(--primary) !important;
}

#mobileMenuWrapper #mobile-menu a b.caret {
    float: right;
    position: relative;
    top: 10px;
}

li.mobile-tagline-wrap {
    margin-top: 20px;
}

svg#xs-tagline {
    width: 250px;
    height: 48px;
}

.triggerClose {
    text-align: right;
}

.triggerClose button {
    background: none;
    border: none;
    font-size: 2rem;
    padding: 10px;
    line-height: 1;
    color: #fff;
}


/*------------------------------------------------------------------------------------
                                @Media and Sizes
--------------------------------------------------------------------------------------*/


/*------ Nav collapse @ Tablet size ------*/

@media (max-width: 991px) {
    .navbar-header {
        float: none;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-nav {
        float: none!important;
        margin: 7.5px -15px;
    }
    #nav_menu .navbar-nav>li {
        float: none;
    }
    #nav_menu .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    /* since 3.1.0 */
    .navbar-collapse.collapse.in {
        display: block!important;
    }
    .collapsing {
        overflow: hidden!important;
    }
}


/*--------------------------------------------------------
                    Index / Main Body
--------------------------------------------------------*/

main {
    min-height: calc(100vh - 180px);
    /*The minimum height of the main section of the page should be the height of the screen minus the header and footer*/
    position: relative;
}


main>.row {
    position: relative;
    padding-block: var(--gap);
}

main#subpage-main {
    padding-top: 20px;
}

body:has(header.scrolled) main {
    margin-top: var(--header-height);
}

#subpage-main #mms-main {
    margin-bottom: 2.5em;
}

@media (max-width: 900px) {
    #subpage-main #mms-main {
        margin-bottom: 2em;
    }
}

@media (min-width: 767px) {
    #subpage-main .row {
        margin-bottom: 1em;
    }
}

@media (max-width: 767px) {
    #subpage-main div[class^="col-md"] {
        margin-bottom: 1em;
    }
}


/*^^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*/

/*---- Classified Ads ----*/
#homepage-main .classified-search-box {
    display:none;
}

/*----------------Slideshow----------*/
#slideshow-wrap {
    padding-top: 0;
    padding-bottom: 0px;
}

main#homepage-main #slideshow-wrap .carousel.slide {
    position: relative;
}

#homepage-main #slideshow-wrap .container {
    width: 100%;
}

#slideshow-wrap .carousel.slide {
    max-width: 1950px;
    margin: 0 auto;
}

#slideshow-wrap img {
    width: 100%;
}

#slideshow-wrap .carousel-inner {
    width: calc(100% - var(--scrollbarWidth));
}

/*#slideshow-wrap .carousel-inner .item:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 1;
    z-index: 0;
    background-position: center;
    overflow: hidden;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    background-blend-mode: multiply;
    background: rgba(15, 26, 66, 0.15);
    background-size: cover;
}*/

#slideshow-wrap .carousel-inner .item .carousel-caption:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 1;
    z-index: -1;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    background-blend-mode: multiply;
    /* background: var(--primary); */
}

@media (max-width: 1200px) {
    #slideshow-wrap .carousel-inner .item .carousel-caption:after {}
}

#slideshow-wrap .carousel-inner .item img {
    object-fit: cover;
    max-width: 100%;
    width: 100%;
    object-position: center;
    background-position: center;
    background-size: cover;
}

#slideshow-wrap a {
    text-decoration: none;
}

#slide-row {
    margin-bottom: 10px;
}

@media (min-width: 1200px) {}

#slideshow-wrap .carousel-control.left,
#slideshow-wrap .carousel-control.right,
#slideshow-wrap .carousel-control:hover {
    background-image: none;
    z-index: 101;
}

#slideshow-wrap .carousel-control {
    margin: auto 0px;
    display: block;
    text-indent: -9999px;
    line-height: 0;
    transition: .25s all ease-in;
}

#slideshow-wrap .carousel-control.left {
    height: 50px;
    width: 50px;
    color: #fff;
    top: 0px;
    left: auto;
    bottom: 0;
    margin: auto;
    opacity: 1;
    text-shadow: none;
    font-family: 'Lato', sans-serif;
    background: var(--primary);
    vertical-align: middle;
    text-align: center;
    padding-right: 5px;
    border: 0px;
    border-radius: 30px;
    margin-left: 15px;
}

#slideshow-wrap .carousel-control.left:after {
    content: url(../images/prev-btn.png);
    width: 15px;
    height: 22px;
    display: block;
    text-indent: 0;
    position: relative;
    top: 13px;
    left: 15px;
}

#slideshow-wrap .carousel-control.right {
    height: 50px;
    width: 50px;
    color: #fff;
    top: 0px;
    left: auto;
    right: 0px;
    bottom: 0;
    margin: auto;
    opacity: 1;
    text-shadow: none;
    font-family: 'Lato', sans-serif;
    background: var(--primary);
    vertical-align: middle;
    text-align: center;
    padding-left: 5px;
    border: 0px;
    border-radius: 30px;
    margin-right: 15px;
}

@media (min-width: 1000px) {
    #slideshow-wrap .carousel-control.right {
        margin-right: 35px;
    }
}

#slideshow-wrap .carousel-control.right:after {
    content: url(../images/next-btn.png);
    width: 15px;
    height: 22px;
    display: block;
    text-indent: 0;
    position: relative;
    top: 13px;
    left: 15px;
}

#slideshow-wrap .carousel-control:hover {
    background: var(--accent);
}

@media (min-width: 768px) and (max-width: 990px) {
    #slideshow-wrap .carousel-control.left,
    #slideshow-wrap .carousel-control.right {
        bottom: 35%;
    }
}

@media (max-width: 767px) {
    #slideshow-wrap .carousel-control.left,
    #slideshow-wrap .carousel-control.right {
        bottom: 60%;
        width: 35px;
        height: 35px;
    }
    #slideshow-wrap .carousel-control.left:after {
        left: 8px;
        top: 6px;
        transform: scale(.7);
    }
    #slideshow-wrap .carousel-control.right:after {
        left: 6px;
        top: 6px;
        transform: scale(.7);
    }
}

#slideshow-wrap .caption-wrapper {
    max-width: 1170px;
    margin: 0 auto;
    padding-right: 20px;
    padding-left: 20px;
}

/* circle background before */
#slideshow-wrap .item:has(.carousel-caption)::before{
    content: '';
    position: absolute;
    z-index: 99;
    background: transparent;
    left: auto;
    top: 0px;
    right: 0px;
    bottom: 0px;
    width: 1200px;
    height: 1200px;
    background-color: rgba(24, 29, 99, 0.8);
    transform: rotate(25deg) translateX(300px) translateY(-350px);
    border-radius: 1030px;
}

@media (max-width: 1120px) {
    #slideshow-wrap .item::before{
        opacity: 0;
    }
}

#slideshow-wrap .carousel-caption {
    position: absolute;
    z-index: 100;
    background: transparent;
    left: auto;
    top: 50px;
    right: 110px;
    bottom: 110px;
    max-width: 470px;
    text-align: left;
    text-shadow: none;
    padding: 20px 0 60px;
    margin: 0;
    min-height: 103px;
}

@media (min-width: 890px) and (max-width: 1120px) {
    #slideshow-wrap .carousel-caption {
        max-width: 470px;
    }
}

@media (min-width: 990px) {
    #slideshow-wrap .carousel-caption {
        /* width: 100%; */
        min-height: auto;
    }
}

@media (max-width: 1120px) {
    #slideshow-wrap .carousel-caption {
        position: relative;
        background: var(--text-color1);
        padding: 20px 0 30px;
        max-width: 100%;
        top:100%;
        bottom: 0px;
        left: auto;
        right: auto;
    }
}



#slideshow-wrap p.caption-text {
    font-size: 30px;
    font-weight: 900;
    display: block;
    color: #ffffff;
    font-family: 'Nunito Sans', sans-serif;
    text-align: left;
    margin-bottom: 15px;
    word-wrap: break-word;
    line-height: 1.05em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
}

#slideshow-wrap p.alt-text {
    font-size: 22px;
    font-weight: 400;
    font-family: 'Nunito Sans', sans-serif;
    color: #ffffff;
    margin-bottom: 0px;
    text-align: left;
    display: inline-block;
    word-wrap: break-word;
    line-height: 1.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
}

@media (min-width: 990px) and (max-width: 1199px) {
    #slideshow-wrap p.caption-text {
        font-size: 28px;
    }
    #slideshow-wrap p.alt-text {
        font-size: 16px;
    }
}

@media (min-width: 768px) and (max-width: 990px) {
    #slideshow-wrap p.caption-text {
        font-size: 24px;
    }
    #slideshow-wrap p.alt-text {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    #slideshow-wrap p.caption-text {
        font-size: 30px;
    }
    #slideshow-wrap p.alt-text {
        font-size: 17px;
    }
}

#slideshow-wrap .carousel-indicators {
    display: none;
}

#slideshow-wrap .carousel-indicators {
    bottom: 0px;
    margin-bottom: 7px;
}

#slideshow-wrap .carousel-indicators li {
    width: 10px;
    height: 10px;
    margin-left: 8px;
    margin: 0 auto;
    background-color: #B8BFD1;
    border: 1px solid #B8BFD1;
    border-radius: 15px;
}

#slideshow-wrap .carousel-indicators li.active {
    width: 10px;
    height: 10px;
    margin-left: 8px;
    margin: 0 auto;
    background-color: #fff;
    border: 1px solid #fff;
    border-radius: 15px;
}


#slideshow-wrap .btn-wrap {
    margin: 5px 0;
}

/*----------------End Slideshow------*/


/*--------------------------------------------------------
                    Index / Home Page
--------------------------------------------------------*/


/* Row Background */

#row-background {
    position: relative;
    z-index: 1;
    padding-top: 55px;
    padding-bottom: 65px;
}

#row-background:not(#gm-canvas #row-background):before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -666vw;
    right: -666vw;
    display: block;
    background-color: var(--primary);
    z-index: -1;
}

#row-background *:not(#gm-canvas #row-background *, #row-background .btn-wrap) {
    color: #fff;
}



/* -- Home page styling -- */


/* #three-row */

#three-row:not(#gm-canvas #three-row)  {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

#three-row .column:not(#gm-canvas .column) {
    margin-top: -120px;
    padding: 25px;
}

@media (min-width: 800px) and (max-width: 1120px) {
    #three-row .column {
        margin-top: -20px !important;
    } 
}

@media (max-width: 800px) {
    #three-row .column {
        margin-top: 0px !important;
    } 

    #three-row:not(#gm-canvas #three-row)  {
        flex-direction: column;
        padding-top: 0px;
    }
}

#three-row .column::before, #three-row .column::after {
    display: none;
}

#three-row .column:first-of-type {
    background-color: var(--primary);
    color: white;
}

#three-row .column:nth-child(2) {
    background-color: var(--dark-hover);
    color: white;
}

#three-row .column:last-of-type {
    background-color: var(--red);
    color: white;
}

#three-row:not(#gm-canvas #three-row)  h2 {
    color: white;
}

#three-row:not(#gm-canvas #three-row)  a {
    color: white;
}

#three-row a:is(:hover, :focus) {
    text-decoration: underline;
}


/* Welcome Section */

#welcome-section-wrap {
    position: relative;
    margin-top: 1em;
    margin-bottom: 1em;
}


/* #event-column */

#event-column .events-item {
    background: var(--primary);
}


/* #involved-column */

@media (max-width: 990px) {
    main:is(#homepage-main, #subpage-main) > .row > .column#involved-column:not(:first-child) {
        margin-top: var(--gap);
    }
}

/* #sponsor-row */

#sponsor-row {
    padding-left: 20px;
    padding-right: 20px;
}

#sponsor-row h2 {
    font-size: 20px;
    padding-bottom: 20px;
}

#sponsor-row:not(#gm-canvas #sponsor-row) .column{
    display: flex;
    flex-direction: column;
}

#sponsor-row:not(#gm-canvas #sponsor-row) .column>.row {
    /* display: grid;
    grid-template-columns: repeat(4, 1fr); */
    gap: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    #sponsor-row:not(#gm-canvas #sponsor-row) .column>.row {
        justify-content: center;
        margin-top: 30px;
    }
}

#sponsor-row:not(#gm-canvas #sponsor-row) .column>.row>.column {
    /* width: 100%; */
    width: 250px;
}

#sponsor-row .column>.row::before, #sponsor-row .column>.row::after {
    display: none;
}


/* #treaty-row */

#gm-canvas .gray-background-row {
    left: unset;
    right: unset;
    width: unset;
}

.gray-background-row:not(#mycanvas .gray-background-row)::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    display: block;
    background: var(--gray);
}

#subpage-main:has(.gray-background-row:last-child) {
    /* If .gray-background-row is the last row, don't include a gap between main and footer */
    margin-bottom: 0;
    padding-bottom: 0;
}

#subpage-main>.gray-background-row:last-child {
    /* If .background-row is the last row, don't include a gap between main and footer */
    margin-bottom: 0;
}

#treaty-row {
    margin-top: var(--gap);
    /* margin-bottom: var(--gap); */
}


/* Featured Section */

#featured-section-wrap:not(#gm-canvas #featured-section-wrap) {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 2.3rem 30px;
    margin-top: 4.5rem;
    margin-bottom: 2.5rem;
    margin-left: 0px;
    margin-right: 0px;
}

@media (max-width: 580px) {
    #featured-section-wrap:not(#gm-canvas #featured-section-wrap) {
        display: block;
        padding-bottom: 5px;
    }
}

#featured-section-wrap:not(#gm-canvas #featured-section-wrap):before,
#featured-section-wrap:not(#gm-canvas #featured-section-wrap):after {
    display: none;
}

#featured-section-wrap:not(#gm-canvas #featured-section-wrap) .column.col-md-12 {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

#featured-section-wrap:not(#gm-canvas #featured-section-wrap) .column {
    width: auto;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0;
    float: none;
    margin-bottom: 2.5rem;
}

#featured-section-wrap:not(#gm-canvas #featured-section-wrap) .column img {
    width: 60px !important;
    max-width: 100%;
    height: auto;
}

#featured-section-wrap:not(#gm-canvas #featured-section-wrap) .column a {
    font-size: 18px;
    color: var(--primary);
    font-family: 'Lato', sans-serif;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.3em;
    text-decoration-color: transparent;
    transition: 0.25s;
    margin-bottom: 0px;
}

#featured-section-wrap:not(#gm-canvas #featured-section-wrap) .column a:hover {
    text-decoration: underline;
    color: var(--dark-hover);
}

@media (max-width: 1200px) {
    #featured-section-wrap:not(#gm-canvas #featured-section-wrap) .column {
        text-align: center;
        display: block;
    }
    #featured-section-wrap:not(#gm-canvas #featured-section-wrap) .column img {
        margin: 0 auto;
    }
    #featured-section-wrap:not(#gm-canvas #featured-section-wrap) .column a {
        width: auto;
        margin: 25px 0px 0px;
        display: block;
    }
}


/* Box Three Featured Image */

#box-three-wrap:not(#gm-canvas #box-three-wrap) {
    margin-top: 40px;
}

#box-three-wrap:not(#gm-canvas #box-three-wrap) .column {
    padding: 0;
}

#box-three-wrap:not(#gm-canvas #box-three-wrap) img {
    max-width: 100%;
    width: 100% !important;
    background: rgba(18, 40, 70, 1);
    height: 400px !important;
    object-fit: cover;
    object-position: center;
    background-position: center;
    background-size: cover;
}

#box-three-wrap:not(#gm-canvas #box-three-wrap) .box-three-content {
    position: absolute;
    z-index: 100;
    left: auto;
    top: 0;
    right: 0px;
    bottom: 0px;
    width: 100%;
    text-align: center;
    background-blend-mode: multiply;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 40, 70, 0.6);
    padding: 10px 15px;
}

@media (max-width: 580px) {
    #box-three-wrap:not(#gm-canvas #box-three-wrap) .box-three-content {
        padding: 10px 30px;
    }
}

#box-three-wrap:not(#gm-canvas #box-three-wrap) .box-three-content a {
    color: #fff;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 900;
    font-size: 32px;
    padding: 0;
    margin: 0;
    text-decoration: none;
    text-decoration-color: transparent;
    transition: 0.25s;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

#box-three-wrap:not(#gm-canvas #box-three-wrap) .box-three-content a:hover {
    text-decoration: underline;
}


/* Upcoming Events */

#events-section-wrap {
    position: relative;
    z-index: 1;
}

#events-section-wrap h2:not(#gm-canvas #events-section-wrap h2) {
    padding-bottom: 10px;
    color: #fff;
}

#events-section-wrap:not(#mycanvas #events-section-wrap) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 0.3rem 30px;
}

@media (max-width: 767px) {
    #events-section-wrap:not(#mycanvas #events-section-wrap) {
        display: block;
    }
}

#events-section-wrap:not(#mycanvas #events-section-wrap) h2,
#events-section-wrap:not(#mycanvas #events-section-wrap) p,
#events-section-wrap:not(#mycanvas #events-section-wrap) .btn-wrap {
    grid-column: 1 / -1;
}

#events-section-wrap:not(#mycanvas #events-section-wrap) p {
    font-size: 18px;
    font-weight: 500;
    font-family: 'Nunito Sans', sans-serif;
    margin-bottom: 0.5em;
    line-height: 1em;
}

.events-item {
    background: var(--secondary);
    /* box-shadow: 0px 1px 10px rgb(0 0 0 / 10%); */
    border-radius: 3px;
    min-height: 80px;
    margin-bottom: 5px;
    padding: 5px 20px 15px;
    margin-top: 20px;
}

.events-item h3 {
    font-size: 18px;
    margin-top: 10px;
}

a.ev-title-link {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2em;
    font-family: 'Nunito Sans', sans-serif;
    text-decoration-color: transparent;
    transition: 0.25s;
}

a.ev-title-link:hover {
    color: #fff;
    text-decoration: underline;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
}

.events-item date {
    margin-bottom: 6px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 16px;
}

.events-item date img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
    width: 17px;
}

.events-item date span {
    display: inline-block;
    vertical-align: text-top;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
}

.event-description {
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    color: #ABC8D8;
    margin-top: 3px;
    margin-bottom: 3px;
}

#events-section-wrap .btn-wrap {
    margin-bottom: 5px;
    margin-top: 40px;
}


/* News */

#news-section-outer-wrap:not(#gm-canvas #news-section-outer-wrap) {
    position: relative;
    overflow: hidden;
}

#news-section-wrap:not(#gm-canvas #news-section-wrap):before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -666vw;
    right: -666vw;
    display: block;
    background-color: var(--secondary);
    z-index: -1;
}

#news-section-wrap:not(#gm-canvas #news-section-wrap) img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: -1;
    max-width: 100%;
    background-position: top;
    background-size: cover;
    object-fit: cover;
    object-position: top;
}

#news-section-outer-wrap:not(#gm-canvas #news-section-outer-wrap) .news-inner-wrap {
    position: relative;
    z-index: 2;
    padding: 50px 25px 35px 5px;
}

@media (max-width: 990px) {
    #news-section-outer-wrap:not(#gm-canvas #news-section-outer-wrap) .news-inner-wrap {
        padding: 40px 15px 35px;
    }
}

#news-section-wrap:not(#gm-canvas #news-section-wrap) h2 {
    color: #fff;
    font-size: 30px;
    padding-bottom: 25px;
}

.news-inner-wrap:not(#mycanvas .news-inner-wrap) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 0.3rem 30px;
}

@media (max-width: 767px) {
    .news-inner-wrap:not(#mycanvas .news-inner-wrap) {
        display: block;
    }
}

.news-inner-wrap:not(#mycanvas .news-inner-wrap) h2,
.news-inner-wrap:not(#mycanvas .news-inner-wrap) .btn-wrap {
    grid-column: 1 / -1;
}

.news-item {
    background: #FFFFFF;
    border-radius: 3px;
    margin-bottom: 20px;
    border: 1px solid #F2F2F2;
    padding: 11px 20px;
}

.news-item img+h4 {
    margin-top: .5em;
}

.news-image img {
    max-width: 100%;
    width: 100%;
    min-height: 200px;
    height: 200px;
    object-fit: cover;
    object-position: center;
    background-position: center;
    background-size: cover;
    border-radius: 3px;
    margin-bottom: 8px;
}

.news-item h3 {
    font-size: 20px;
    margin-bottom: 0px;
    line-height: 0.85em;
}

a.news-title-link {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    font-family: 'Nunito Sans', sans-serif;
    text-decoration: none;
    text-decoration-color: transparent;
    transition: 0.25s;
}

a.news-title-link:hover {
    color: var(--primary);
    text-decoration: underline;
}


/*--------------------------------------------------------
                        Footer
--------------------------------------------------------*/

footer {
    position: relative;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
}

.footer-top {
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

@media (max-width: 440px) {
    .footer-top {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        margin-top: 25px;
        margin-bottom: 25px;
    }
    .footer-top .button-link {
            margin: 0 0 !important;
    }
}

.footer-top .button-link {
    margin: 1.25em 0;
    min-width: 110px;
    text-align: center;
}

.footer-bottom {
    background-color: var(--primary);
}

.footer-bottom>div {
    position: relative;
    padding: 50px 0px 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 30px;
}

@media (max-width: 991px) {
    .footer-bottom>div {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width:  767px) {
    .footer-bottom>div {
    justify-content: center;
    flex-direction: column;
    }
}


/* footer::before {
    content: '';
    top: 0;
    bottom: 0;
    left: -666vw;
    right: -666vw;
    background: var(--primary);
    position: absolute;
    z-index: -1;
} */

footer * {
    color: #fff;
}

footer p {
    color: #fff;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    margin: 0;
    line-height: 1.8em;
    font-weight: 400;
    padding-bottom: 0px;
}

footer a {
    color: #fff;
    text-decoration: underline;
    font-weight: 400;
}

footer a:hover {
    color: var(--light-hover);
}

footer strong {
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

footer span.footer-privacy {
    border-left: 1px solid #AFC6DB;
    margin-left: 14px;
    padding-left: 14px;
}

footer .text-right a {
    text-decoration: underline;
    font-weight: 400;
}

footer .footer-credit {
    margin-bottom: 5px;
}

footer address {
    margin-bottom: 5px;
}

@media (min-width: 768px) and (max-width: 990px) {}

@media (max-width: 768px) {
    .footer-bottom {
        display: grid;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 50px 0px;
        width: 100%;
    }
    footer p {
        margin-bottom: 5px;
    }
    footer span.footer-privacy {
        display: block;
        border-left: 0px;
        padding-left: 0px;
        margin-left: 0px;
    }
}

footer .text-left,
footer .text-left * {
    color: #fff;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
}

.footer-logo-wrap {
    display: flex;
    gap: 1.5em;
}

.footer-logo-wrap>* {
    padding-bottom: 20px;
}

.footer-logo-wrap svg,
.footer-logo-wrap img {
    max-width: 100%;
    height: auto;
    vertical-align: unset;
}

.footer-logo-wrap svg#main-logo .cls-1 {
    fill: #fff;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .footer-logo-wrap {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .footer-logo-wrap {
        display: block;
    }
}

.footer-social-contact-wrap {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 30px;
}

@media (max-width: 767px) {
    .footer-social-contact-wrap {
        align-items: center;
        margin-top: 2em;
    }
}


/* Social Media Icons */

footer .social-list {
    gap: 10px;
}

footer .social-list svg {
    width: 37px;
    height: 37px;
    transition: .25s all;
    display: inline-block;
    vertical-align: middle;
    border-radius: 5px;
}

footer .social-list svg path {
    fill: var(--primary) !important;
}

footer .social-list a:hover svg rect {
    fill: var(--accent) !important;
    transition: .25s all;
}

footer .social-list a:hover svg path,
footer .social-list a:hover svg circle {
    fill: #fff !important;
    transition: .25s all;
}

.footer-contact-wrap a {
    background: var(--dark-hover);
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 17px 12px;
    color: #fff;
    transition: .25s all ease-in;
    white-space: nowrap;
}

.footer-contact-wrap a:hover {
    background: #fff;
    color: var(--primary);
}


/*--------------------------------------------------------
                        MMS Styling
--------------------------------------------------------*/

.grid-slideshow-content {
    background: transparent;
    margin-left: 0px;
    padding: 0px 15px;
}

.grid-bottom-featured-wrap {
    background-image: none;
}

.grid-bottom-featured-wrap-h2 {
    color: #527785;
    margin-bottom: 0px;
}

.grid-bottom-featured-wrap-p {
    color: #323233;
}


/* 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;
}

.modal-content .login-form input[type="submit"] {
    background: var(--primary);
    border: 0px;
    padding: 0.4em 1em 0.5em;
    color: #fff;
    outline: none;
}


/*--------------------------------------------------------
                        MMS Styling
--------------------------------------------------------*/


/*----------- MEDIA QUERY --------------------*/

@media (max-width: 1200px) {
    .caption-wrapper {
        max-width: 970px;
    }
}

@media (min-width: 1000px) {
    .container {}
}

@media (min-width: 990px) and (max-width: 1199px) {
    .container {}
}

@media (max-width: 991px) {
    .caption-wrapper {
        max-width: 750px;
    }
}

@media (min-width: 768px) and (max-width: 990px) {
    .container {}
    .search-sm-btns {
        margin-bottom: 10px;
    }
    #top-right-wrap {}
    .news-item {
        min-height: auto;
    }
    .news-image,
    .news-details {
        width: 50%;
    }
}

@media (max-width: 767px) {
    .container {}
    #featured-section-wrap:not(#gm-canvas #featured-section-wrap) .column a {
        font-size: 16px;
    }
    .footer-contact-info {
        margin-top: 20px;
    }
}

@media (min-width: 560px) and (max-width: 767px) {
    .news-item {
        min-height: auto;
    }
    .news-image,
    .news-details {
        width: 50%;
    }
}

@media (max-width: 580px) {
    .main-header {
        padding: 0 0 15px;
    }
    #join-wrap {
        margin-left: 10px;
    }
    #login-wrap a,
    #join-wrap a {
        padding: 7px 12px 10px;
        font-size: 16px;
    }
    #featured-section-wrap:not(#gm-canvas #featured-section-wrap) .column {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {}
}


/* Safari Browser */

@media only screen and (-webkit-min-device-pixel-ratio: 1) {
     ::i-block-chrome,
    .div {}
}


/* Internet Browser */

@media screen and (-ms-high-contrast: active),
(-ms-high-contrast: none) {}

/* MMS Styling - classified Widget */

.classified-search-box, .nothing-found-ads {
    display: none;
}