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

:root {
    --page-width: 100vw;
    --primary: #007668;
    --primary-light: #0f9787;
    --secondary: #7122AC;
    --secondary-light: #8B2AD5;
    --pink: #C103A1;
    --accent: #8ABA13;
    --gray: #312A33;
    --background: #406273;
    --text: #514653;
    --radius: 5px;
    font-size: 17px;
    --side-margin: calc((100vw - var(--page-width)) / -2);
    font-family: "Work Sans", sans-serif;
    font-weight: 400;
    overflow-x: clip;
    /*--scrollbarWidth: 5px; add mq*/
    --header-height: 183px;
    --footer-height: 104px;
}

/* @media (min-width: 768px) {
     :root {
        --page-width: 750px;
    }
}  */

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

@media (min-width: 1201px) {
     :root {
        --page-width: 1170px;
    }
}

* {
    scroll-margin-top: 0;
}

body {
    color: var(--text-gray);
    position: relative;
    max-width: 100%;
    overflow-x: inherit;
}

body,
header,
nav,
footer {
    font-family: inherit !important;
    font-size: inherit !important;
    /*^^ Overwrites mms_styles.css*/
}


/*--------------------------------------------------------
	H1 - H6
--------------------------------------------------------*/

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    margin-bottom: .5em;
    padding: 0;
    font-weight: 600;
    line-height: 1.5em;
    color: var(--primary);
    font-family: "Roboto Slab", sans-serif;
}

h1 {
    font-size: 36px;
}

h1.title:empty {
    /*^^Hides the extra margin that is added on pages without a title*/
    display: none;
}

h2 {
    font-size: 32px;
}

h3 {
    font-size: 28px;
}

h4 {
    font-size: 24px;
}

h5 {
    font-size: 22px;
}

h6 {
    font-size: 18px;
}

p+h1,
p+h2,
p+h3,
p+h4 {
    margin-top: 1.25em;
}


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

a {
    color: var(--primary);
    text-decoration: none;
    transition: .125s color ease-in-out;
}

a:is(:hover, :focus) {
    color: var(--secondary);
    /* text-decoration: underline; */
}

.button-link,
#login-modal input[type="submit"],
.addl-text {
    color: white;
    border: solid 2px white;
    text-transform: capitalize;
    font-weight: 700;
    padding: .75em 2ch;
    display: block;
    width: fit-content;
    margin: 1.25em 0;
    transition: .125s background ease-in-out, .125s color ease-in-out;
    line-height: 1;
    text-decoration: none;
    background-color: var(--primary);
    border-radius: var(--radius);
    white-space: nowrap;
}

.button-link.center {
    margin: 1.25em auto;
}
.button-link.right {
    margin: 1.25em 0 1.25em auto;
    float: unset;
}
.button-link.small{
    font-size: 16px;
    padding: .5em 2ch;
}

.button-link:first-child {
    margin-top: 0;
}

.button-link:last-child {
    margin-bottom: 0;
}

#login-modal input[type="submit"] {
    margin: 0;
}

.button-link:is(:hover, :focus),
#login-modal input[type="submit"]:is(:hover, :focus) {
    background: var(--secondary);
    color: white;
    text-decoration: none;
}

/* simple button - if they leave the color blank this will work */

:is(#homepage-main, #subpage-main) .simple-button-plugin {
    color: white;
    background-color: var(--primary);
    white-space: nowrap;
    border: solid 2px white;
}

:is(#homepage-main, #subpage-main) .simple-button-plugin:is(:hover, :focus) {
    background: var(--secondary);
    text-decoration: none;
}

/* 3d-button */

.button-link.shadow {
    box-shadow:5px 5px 6px #888888;
    border: none;
}

.button-link.shadow:is(:active) {
    box-shadow: 4px 4px 6px #666666;
}

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

.offscreen {
    position: absolute;
    left: -200vw;
}


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

.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)::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    display: block;
    background: var(--accent);
}

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

.background-row:not(#mycanvas .background-row) :is(h1,h2,h3,h4,h5,h6,p) {
    color: white;
}


#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: 991px) {
    .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));
    }
}

/* additional colors for background-row */

/* green */
.background-row:not(#mycanvas .background-row).green::before {
    background: var(--primary);
}

/* purple */
.background-row:not(#mycanvas .background-row).purple::before {
    background: var(--secondary);
}
/* pink */
.background-row:not(#mycanvas .background-row).pink::before {
    background: var(--pink);
}

/* blue-gray */
.background-row:not(#mycanvas .background-row).blue-gray::before {
    background: var(--background);
}






/* Lists */

.three-column-grid {
    display: grid;
    gap: 1rem 20px;
    grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
}

ul.three-column-grid {
    list-style: none;
    padding: 0;
    margin: 0;
}


/* Tables */

#subpage-main table {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 990px) {
    #subpage-main table {
        max-width: 100%;
    }
}

@media (max-width: 550px) {
    #subpage-main table {
        font-size: 15px;
        line-height: 1.25em;
    }
}

#subpage-main *+table {
    margin-top: 2em;
}

#subpage-main table+* {
    margin-top: 3em;
}

#subpage-main table caption {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

#subpage-main table tr {
    border-left: .35em solid white;
    border-right: .35em solid white;
}

#subpage-main table *+strong {
    margin-top: .75em;
}

#subpage-main table tbody>tr:nth-of-type(even) {
    background: #F6F6F6;
    border-left: .35em solid #F6F6F6;
    border-right: .35em solid #F6F6F6;
}


/*Feed items */

[class*="item"] img[src=""] {
    /* Don't display a broken image if no image has been added to a feed item */
    display: none;
}

main [class*="item"] br {
    /* Remove gaps in description text of feed items */
    /* <main> included in selector to prevent the inclusion of ...-items in the footer*/
    display: none;
}


/* Slideshow defaults */

.carousel {
    font-size: 20px;
}

.carousel-control.left,
.carousel-control.right {
    display: none;
    background: none;
    /* font-size: 50px; */
}

.caption-text {
    font-size: 28px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    text-shadow: rgb(0, 0, 0) 1px 0 10px;
}

.alt-text {
    font-size: 16px;
    color: white;
    text-shadow: rgb(0, 0, 0) 1px 0 10px;
    margin-bottom: 10px;
}


/*Responsive Nivo Slideshow*/

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


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


/*Misc. Objects */

.script-row:not(#mycanvas .script-row) {
    /* Allows scripts to be added via the Grid Editor without displaying the padding, etc that would be included on the published page */
    display: none;
}

address {
    margin-bottom: unset;
    /*Overwrites Bootstrap style*/
}


/*--------------------------------------------------------
						Login Modal
--------------------------------------------------------*/

.modal-header {
    /*Applies to any modal on the site*/
    border: none;
}

.close,
.close:hover {
    opacity: 1;
}

.close svg.menu-trigger {
    width: 30px;
    height: 30px;
}

.close svg.menu-trigger line {
    stroke-width: 4px;
}

.close svg.menu-trigger .line-1 {
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: left;
    transform-origin: left;
}

.close svg.menu-trigger .line-4 {
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: right;
    transform-origin: right;
}

.close svg.menu-trigger .line-2 {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transform-origin: center;
    transform-origin: center;
}

.close svg.menu-trigger .line-3 {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-transform-origin: center;
    transform-origin: center;
}

#login-modal .modal-dialog {
    max-width: 260px;
    font-size: 16px;
}

#login-modal h2 {
    font-size: 1.4em;
    text-transform: capitalize;
    letter-spacing: -0.4px;
}

#login-modal label {
    position: absolute;
    left: -200vw;
}

#login-modal input[name="Username"],
#login-modal input[name="Password"] {
    width: 100%;
    padding-left: .25em;
    padding-right: .25em;
    margin-bottom: 0.5em;
    height: 2em;
}

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


/* Pop-up Modal */

.modal-content h1 {
    color: black;
    font-size: 24px;
}

.modal-header .close {
    margin-top: -15px;
    margin-right: -15px;
}

/* square videos */

.short {
    width: 300px !important;
    margin: 0 auto;
}


/* Header */

#top-header-list {
    margin-bottom: 0;
    display: flex;
    justify-content: end;
    background-color: var(--primary);
    list-style-type: none;
    padding-inline-start: 0;
}

#top-header-list a {
    display: block;
    padding: 10px 20px;
    background-color: var(--secondary);
    border-right: solid 1px var(--secondary-light);
    color: white;
    text-decoration: none;
    text-wrap-mode: nowrap;
    transition: .125s background-color ease-in-out;
}

#top-header-list button {
    display: block;
    padding: 10px 20px;
    background-color: var(--secondary);
    border-right: solid 1px var(--secondary-light);
    color: white;
    text-decoration: none;
    text-wrap-mode: nowrap;
    transition: .125s background-color ease-in-out;
    border-style: none;
}

#top-header-list div {
    margin-right: 25px;
}

#top-header-list a:is(:hover, :focus) {
    background-color: var(--secondary-light);
}

#top-header-list button:is(:hover, :focus) {
    background-color: var(--secondary-light);
}

@media (max-width: 700px) {
    #top-header-list {
        justify-content: center;
    }

    #top-header-list div {
        margin-right: 0px;
    }
}

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


.social-dropdown {
    position: relative;
}

.social-dropdown:is(:hover, :focus) {
    .social-list {
        display: flex;
    }
}

.social-list {
    position: absolute;
    top: 100%;
    right: 0;
    display: none;
    flex-direction: row;
    list-style-type: none;
}

#top-header-list .social-list a {
    padding: 10px;
    border-right: none;
}

.social-list li:first-of-type a {
    border-bottom-left-radius: var(--radius);
    padding-left: 15px !important;
}

.social-list li:last-of-type a {
    border-bottom-right-radius: var(--radius);
    padding-right: 15px !important;
}

.social-list svg {
    width: 20px;
    height: 20px;
    fill: white;
}


/* bottom section of the header */

#bottom-header {
    display: flex;
    align-items: center;
}

#bottom-header img:not(.mobile-social-list img) {
    padding: 15px 25px;
}

@media (max-width: 600px) {
    #bottom-header img:not(.mobile-social-list img) {
        width: 180px;
    }
    
}



/* Navigation */

header nav {
    /* display: flex; */
    width: 100%;
}

@media (max-width: 1040px) {
    header nav {
        text-align: right;
    }
}

#nav_menu {
    padding: 0;
    margin-top: 20px;
    margin-bottom:20px;
}

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

#nav_menu>ul {
    display: flex;
    justify-content: center;
    gap: 1rem 20px;
    /* Overwrite BS defaults */
    float: none;
    margin: 0 91px 0 0;
    align-items: flex-start;
}

@media (min-width: 1144px) and (max-width: 1200px) {
    #nav_menu>ul {
        gap: 1rem 10px;
    }
}

@media (max-width: 1144px) {
    #nav_menu>ul {
        gap: 1rem 0px;
    }
}

#nav_menu li { 
     transition: .125s box-shadow ease-in-out, .125s border-radius ease-in-out;
}

#nav_menu .nav>li.mobile-login {
    position: absolute;
}

#nav_menu li:not(li:last-of-type, .dropdown-menu li):is(li:hover, li:focus) {
    color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
    border-radius: var(--radius);
}

#nav_menu a {
    font-weight: 400;
    color: var(--text);
    text-decoration: none;
    transition: .125s color ease-in-out;
    font-family: "Work Sans", sans-serif;
}

#nav_menu>.nav>li>a {
    padding: 8px;
    position: relative; 
    font-size: 17px;
    line-height: 1;
    text-wrap-mode: nowrap;
    transition: .125s color ease-in-out;
}


#nav_menu>.nav>li>a::before {
    --size: 9px;
    content: '';
    position: absolute;
    bottom: calc(var(--size) * -1);
    left: 0;
    right: 0;
    height: var(--size);
    background: var(--red);
    opacity: 0;
    transition: .125s opacity ease-in-out;
    z-index: -1;
}

#nav_menu>.nav>li>a:is(a:hover, a:focus)::before {
    opacity: 1;
}

#nav_menu>.nav>li>a:focus,
#nav_menu>.nav>li>a:hover {
    /* Overwrite BS defaults */
    background: unset;
    color: var(--primary);
}

#nav_menu .nav .open>a,
#nav_menu .nav .open>a:focus,
#nav_menu .nav .open>a:hover {
    transition: .125s background ease-in-out;
    background: none;
    border: none;
}

#nav_menu .caret {
    position: absolute;
    color: var(--text);
    bottom: .8em;
    margin-left: 5px;
}

#nav_menu .dropdown-submenu .caret {
    bottom: unset;
    top: 15px;
}

#nav_menu .caret::after {
    /* content: url(../images/dropdown-arrow.svg); */
}

#nav_menu li:has(.caret) {
    /* Adjust width for absolutely positioned caret */
    padding-right: 15px;
}

#nav_menu .dropdown-menu {
    top: calc(100% + 9px);
    border: none;
    font-size: 1rem;
}

#nav_menu .dropdown-menu:is(.men-level-1, .men-level-2) {
    top: -7px;
    margin-left: 15px;
}

#nav_menu .dropdown-menu>li {
    position: relative;
}

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

/* log in button */ 

.mobile-login {
    position: absolute;
    right: 0;
    line-height: 1;
    text-align: right;
}

.mobile-login a {
    padding: 8px;
    margin-right: 25px;
    border: none;
    background: none;
    text-wrap-mode: nowrap;
    font-weight: 400;
    color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
    border-radius: var(--radius);
    transition: .125s color ease-in-out, .125s box-shadow ease-in-out, .125s border-radius ease-in-out;
}

.mobile-login a:is(:hover, :focus) {
    color: var(--secondary);
    box-shadow: 0 0 0 2px var(--secondary);
    border-radius: var(--radius);
}

#mobileMenuWrapper .mobile-login {
    display: none;
    margin-top: 4px;
    text-align: left;
}

#mobileMenuWrapper .mobile-login a {
    color: var(--primary);    
    font-weight: 500;
    padding: 0;
}

#mobileMenuWrapper .mobile-login a:is(:hover, :focus) {
    color: var(--secondary); 
    box-shadow: none;
    text-decoration: underline;
}

@media (max-width:990px) {
    #nav_menu {
        margin-bottom: 30px;
        display: block;
        /* Overwrite .collapse that hides desktop menu on smaller screens */
    }
    #nav_menu>.nav>li>a {
        font-size: 17px;
    }
}

@media (max-width:767px) {
    #nav_menu {
        margin-top: 0;
    }
}

@media (max-width:550px) {
    #nav_menu {
        margin-bottom: 18px;
    }
    #nav_menu>.nav>li>a {
        font-size: 14px;
    }
}


/* Site originally had no Mobile Navigation per design from outside designers, but this was abandoned by Ilana during Content Population */

#mobileMenuWrapper {
    position: fixed;
    background: var(--primary);
    z-index: 100;
    top: 0;
    bottom: 0;
    left: -200vw;
    overflow-y: auto;
    overflow-x: hidden;
    width: 300px;
    transition: .125s left ease-in-out;
    padding: .5rem 2ch;
    box-shadow: 7px 0 5px rgba(0, 0, 0, 0.1);
}

#mobileMenuWrapper.open {
    left: 0;
}

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

button.mobileMenuTrigger {
    background: none;
    border: none;
    margin-right: 25px;
    margin-left: auto;
    color: var(--primary);
}

.mobileMenuTrigger label {
    position: absolute;
    left: -200vw;
}

#mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: .25rem;
    padding-inline-start: 0px;
    font-size: 20px;
    list-style-type: none;
    text-align: left;
}

.triggerClose {
    display: block;
    margin-left: auto;
}

.triggerClose button {
    margin-bottom: 5px;
    background: none;
    border: none;
    color: white;
    font-size: 2em;
    line-height: 1;
}

.mDropdown {
    display: none;
}

.mDropdown.open {
    display: block;
    margin: 0px 0;
    padding-inline-start: 0px;
    list-style-type: none;
}

.mDropdown.open li {
    margin-top: 2px;
    margin-bottom: 2px;
    border-top-style: solid;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.2);
}

#mobile-menu li {
    text-wrap-mode: nowrap;
    line-height: 1.7;
}

#mobile-menu>li:not(.mobileMenuTrigger) {
    width: 100%;
}

#mobile-menu>li:not(.mobileMenuTrigger, .mobile-top-list, .mobile-bottom, .mobile-social-list) {
    width: 100%;
    border-bottom-style: solid;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.2);
}

#mobile-menu>li>a {
    color: white;
    font-weight: 400;
    text-decoration: none;
}

#mobile-menu .caret {
    margin-left: 10px;
    border-top-color: var(--red);
}

.mDropdown a {
    padding-inline-start: 15px;
    font-size: 20px;
    font-weight: 400;
    color: white;
    text-decoration: none;
}

.mDropdown .mDropdown a {
    padding-inline-start: 30px;
}

@media (max-width: 1040px) {
    body:has(.mobileMenuTrigger) #nav_menu {
        display: none !important;
    }
}

/* top link section in the mobile menu */

#mobile-menu .mobile-top-list ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
    list-style-type: none;
    padding-inline-start: 0;
    margin-bottom: 35px;
}


#mobile-menu .mobile-top-list a{
    display: block;
    background-color: var(--secondary);
    text-align: center;
    color: white;
    text-decoration: none;
    transition: .125s background-color ease-in-out;
}

#mobile-menu .mobile-top-list a:is(:hover, :focus) {
    background-color: var(--secondary-light);
}

/* bottom mobile menu social media links */

#mobile-menu li.mobile-bottom {
    margin-top: 35px;
}

#mobile-menu .mobile-social-list ul{
    display: flex;
    list-style-type: none;
    padding-inline-start: 0;
}

#mobile-menu li.mobile-bottom p {
    color: white;
    margin: 0;
}

#mobile-menu .mobile-social-list li {
    transition: .125s background-color ease-in-out;
}

#mobile-menu .mobile-social-list li:is(:focus, :hover) {
    background-color: rgba(255, 255, 255, 0.2);
}

#mobile-menu .mobile-social-list a{
    text-decoration: none;
    padding: 15px 10px;
}

#mobile-menu .mobile-social-list svg {
    fill: white;
}

/* #mobile-menu .mobile-social-list a:first-of-type {
    padding-left: 0;
} */

/* Search */

.searchbox {
    position: relative;
    --size: 17.5px;
}

.searchbox .search-input {
    padding: .5em 2ch;
    padding-left: calc(2ch + (var(--size)));
    border: none;
    border-radius: .75em;
    font-size: 1rem;
    width: 507px;
    max-width: 100%;
}

.searchbox .search-button {
    background: url(../images/search-new.svg.php?fc=000);
    background-size: 120%;
    height: var(--size);
    width: var(--size);
    position: absolute;
    left: calc(var(--size) / 1.5);
    top: calc(50% - (var(--size) / 2));
    color: transparent;
    border: none;
    outline: none;
}


/* Main */

@media (max-width: 990px) {
    main:is(#homepage-main, #subpage-main) > .row#welcome-row > .column:not(:last-child) {
        margin-bottom: var(--gap);
    }
    
    main:is(#homepage-main, #subpage-main) > .row > .column:not(:first-child) {
        margin-top: var(--gap);
    }
}

main {
    --gap: 70px;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

main>.row {
    position: relative;
    padding-block: var(--gap);
    /* padding-top: var(--gap); */
}

main:is(#subpage-main, #mms-main)>.row {
    padding-block: calc(var(--gap) / 4);
}

main:is(#subpage-main, #mms-main)>.row:first-child {
    padding-top: var(--gap);
}

main:is(#subpage-main, #mms-main)>.row:last-child {
    padding-bottom: var(--gap);
}

@media (max-width: 767px) {
    main {
        --gap: 45px;
    }
}

@media (max-width: 550px) {
    main {
        --gap: 24px;
    }
}

main:is(#homepage-main) h2 {
    font-size: 36px;
}

/* slldeshow-row */

#slideshow-row {
    --gap: 0px;
}

#slideshow-row .carousel {
    margin: 0px auto;
    padding-left: 25px;
    padding-right: calc(25px + var(--scrollbarWidth));
}

#slideshow-row .carousel-inner {
    border-radius: 10px;
}

#slideshow-row img {
    border-radius: 10px;
}
#slideshow-row .carousel-indicators li {
    width: 14px;
    height: 14px;
    border: none;
    margin-right: 5px;
    background-color: #858585; 
}

#slideshow-row .carousel-indicators .active {
    width: 14px;
    height: 14px;
    border: none;
    margin-bottom: 1px;
    background-color: var(--secondary);   
}

@media (max-width: 991px) {
    #slideshow-row .carousel {
        padding-left: 5px;
        padding-right: 5px;
    } 
}

@media (max-width: 500px) {
    #slideshow-row .carousel-indicators {
        bottom: 0;
    }
}

@media (max-width: 380px) {
    #slideshow-row .carousel-indicators li {
        width: 10px;
        height: 10px;
    }

    #slideshow-row .carousel-indicators .active {
        width: 10px;
        height: 10px;
    }
}


/* cta-row - (feeds) */

#cta-row img {
    border-radius: 8px;
}

@media (min-width: 825px) and (max-width: 991px) {
    #cta-row .col-sm-12 {
        width: 33.33%
    }
}

@media (min-width: 825px) and (max-width: 990px) {
    main:is(#homepage-main, #subpage-main) > #cta-row .column:not(:first-child) {
        margin-top: 0;
    }
}

/* event-column */

#event-column .feed-item {
    margin-top: 15px;
    display: flex;
    align-items: center;
}

#event-column .feed-item:first-of-type {
    margin-top: 32px;
}

#event-column .feed-item time::before {
    content: url(../images/calendar-icon.svg);
    position: absolute;
    top: -8px;
    left: -13px;
    z-index: -1;
}

#event-column .feed-item time {
    position: relative;
    display:flex;
    flex-direction: column;
    align-items: center;
    margin-right: 35px;
    margin-left: 10px;
    color: white;
}

#event-column .feed-item time section:first-child {
   margin-top: 1px;
   font-size: 14px;
}

#event-column .feed-item time section:last-child {
    margin-top: 5px;
    font-size: 20px;
}

#event-column .feed-item h3 {
    font-size: 17px;
    color: #514653;
    transition: .125s color ease-in-out;
}

#event-column .feed-item h3:is(:hover, :focus) {
    color: var(--primary);
}

#event-column hr {
    border-top: 1px solid #e6e6e6;
    margin-bottom: 15px;
}

#event-column hr:last-of-type {
    border-top: none;
    margin-top: 0;
    margin-bottom: 34px;
}

@media (min-width: 590px) and (max-width: 824px) {
    #event-column {
        padding-left: 100px;
        padding-right: 100px;
    }

    #event-column :is(h1,h2) {
        margin-left: -85px;
    }
}


/* news-column */

#news-column .feed-item {
    margin-top: 15px;
    display: flex;
    align-items: center;
}

#news-column .feed-item:first-of-type {
    margin-top: 32px;
}

#news-column .feed-item time::before {
    content: url(../images/calendar-icon.svg);
    position: absolute;
    top: -8px;
    left: -13px;
    z-index: -1;
}

#news-column .feed-item time {
    position: relative;
    display:flex;
    flex-direction: column;
    align-items: center; 
    margin-right: 35px;
    margin-left: 10px;
    color: white;
}

#news-column .feed-item time section:first-child {
    margin-top: 1px;
    font-size: 14px;
 }

#news-column .feed-item time section:last-child {
    margin-top: 5px;
    font-size: 20px;
}

#news-column .feed-item h3 {
    font-size: 17px;
    color: #514653;
    transition: .125s color ease-in-out;
}

#news-column .feed-item h3:is(:hover, :focus) {
    color: var(--primary);
}

#news-column hr {
    border-top: 1px solid #e6e6e6;
    margin-bottom: 15px;
}

#news-column hr:last-of-type {
    border-top: none;
    margin-top: 0;
    margin-bottom: 34px;
}

@media (min-width: 590px) and (max-width: 824px) {
    #news-column {
        padding-left: 100px;
        padding-right: 100px;
    }

    #news-column h2 {
        margin-left: -85px;
    }
}


/* news-community-column */

#news-com-column .feed-item {
    margin-top: 18px;
    border: solid 2px #cecece;
    border-radius: 8px;
    padding: 10px 20px;
}

#news-com-column .feed-item:first-of-type{
    margin-top: 32px;
}

#news-com-column .feed-item h3 {
    margin-bottom: 0px;
    font-size: 17px;
    color: #514653;
    transition: .125s color ease-in-out;
}

#news-com-column .feed-item h3:is(:hover, :focus)  {
    color: var(--primary);
}

#news-com-column .button-link {
    margin-top: 1.35em;
}

@media (min-width: 590px) and (max-width: 824px) {
    #news-com-column {
        padding-left: 100px;
        padding-right: 100px;
    }

    #news-com-column h2 {
        margin-left: -85px;
    }
}


/* welcome-row - half and half */

#homepage-main #welcome-row {
    display: flex;
    flex-wrap: wrap;

}

#homepage-main #welcome-row:not(#mycanvas #welcome-row)  {
    /* margin-bottom: 40px; */
}

#welcome-row:not(#mycanvas #welcome-row) {
    position: relative;
    color: white;
}

#welcome-row:not(#mycanvas #welcome-row)::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    width: calc(100vw + var(--scrollbarWidth));
    z-index: -2;
    background: var(--background);
}

#welcome-row:not(#mycanvas #welcome-row) .column:first-child::before {
    content: '';
    display: block;
    position: absolute;
    top: -70px;
    bottom: -70px;
    left: var(--side-margin);
    right: 0;
    z-index: -1;
    background: var(--secondary);
}

@media (min-width: 550px) and (max-width: 767px) {
    #welcome-row:not(#mycanvas #welcome-row) .column:first-child::before {
        bottom: -45px;
    }
}

@media (max-width: 550px) {
    #welcome-row:not(#mycanvas #welcome-row) .column:first-child::before {
        top: -25px;
        bottom: -25px;
    }
}

#welcome-row .column:first-child {
    padding-right: 35px;
}

#welcome-row .column:last-child {
    padding-left: 35px;
}

#welcome-row:not(#mycanvas #welcome-row) :is(h1,h2,h3,h4,h5,h6) {
    color: white;
}


/* Newsletter Sign-up */

#newsletter-column .form-group label:not(:has(img)), #newsletter-column #contact_form_required_div  {
    display: none;
}

#newsletter-column .form-group .col-sm-10 {
    width: 100%;
    margin-left: 0;
}

#newsletter-column .form-group .form-control {
    height: 60px;
    font-size: 16px;
}

#newsletter-column .form-group .control-label {
    padding-top: 0;
    margin-bottom: 15px;
}

#newsletter-column .col-sm-offset-2:has(.button-link) {
    margin-left: 0;
}


/* Footer */

footer {
    background-color: var(--gray);
    color: white;
}

footer .wrapper {
    display: flex;
    justify-content: space-between;
    padding: 40px 25px;
}

footer p {
    margin: 0;
}

footer a {
    color: white;
    text-decoration: underline;
    transition: .125s color ease-in-out;
}

footer a:is(:hover, :focus) {
    color: var(--accent);
}

@media (max-width: 1033px) {
    footer .wrapper {
        display: block; 
    }
}

@media (max-width: 476px) {
    footer .wrapper section {
        text-align: center;
    }

    footer .wrapper section:first-child {
        margin-bottom: 20px;
    }
}



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

/* this will remove labels from contact forms that they add the .no-labels class to at wider screen widths - newsletter page */

@media (min-width: 991px) {
    :is(#subpage-main, #homepage-main) .no-labels label{
        display: none;
    }  

    :is(#subpage-main, #homepage-main) .no-labels #contact_form_required_div div:first-of-type{
        display: none;
    }

    :is(#subpage-main, #homepage-main) .no-labels .form-group:has(.g-recaptcha) div{
        margin-left: 0;
    }

    :is(#subpage-main, #homepage-main) .no-labels .form-group:last-of-type div:last-of-type {
        margin-left: 0;
    }
}

@media (min-width: 767px) and (max-width: 991px) {
    :is(#subpage-main, #homepage-main) .no-labels #contact_form_required_div div:last-of-type{
        margin-left: 125px;
    }
}


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

#mms-main *[face] {
    font-family: inherit;
    font-size: inherit;
}

#mms-main *[style*="erdana"],
#mms-main *[font-family*="erdana"],

/*^^Targets both elements with Verdana and verdana spec'd*/

#mms-main div,
#mms-main span:not([class^="fa"]),

/*Allows the Font Awesome icons in the Grid Editor to show*/

#mms-main td,
#mms-main tr,
#mms-main table,
#mms-main input,
#mms-main textarea,
#mms-main label
/*^^Styles are meant to overwrite the MMS styles that set everything to Verdana*/

{
    font-family: inherit !important;
}

/* default accordion */

:is(#homepage-main, #subpage-main) .panel-heading {
    position: relative;
}
:is(#homepage-main, #subpage-main) .panel-heading .panel-title a::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}


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

#mycanvas a {
    text-decoration: none;
}

#mycanvas a::before {
    position: initial;
    bottom: initial;
    left: initial;
    right: initial;
    background: initial;
    height: initial;
    transition: initial;
    display: initial;
    z-index: initial;
}