/*--------------------------------------------------------
	FONT ASSIGNMENTS
--------------------------------------------------------*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&display=swap');
html {
    --primary: #8D1F61;
    --accent: #FAB433;
    --bright-blue: #166da8;
    --bright-aqua: #7fc6c7;
    --secondary: #D00A46;
    --text: #1c2327;
    --gray: #d9d8d6;
    --radius: .3rem;
    --big-radius: .5rem;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text);
    font-size: inherit !important;
    /* Overwrites inline style added to some MMS pages */
}

@media (max-width: 500px) {
    body {
        overflow-x: hidden;
    }
}

p {
    margin-bottom: .5em;
}


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

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
    font-family: 'Raleway', sans-serif;
    font-weight: bold;
    margin-bottom: .25em;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 25px;
}

h4 {
    font-size: 21px;
}

h5 {
    font-size: 19px;
}

h6 {
    font-size: 18px;
}


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

a {
    color: var(--secondary);
    transition: color .125s ease-in-out;
}

a:hover,
a:focus {
    color: var(--primary);
}

header a:hover,
header a:focus {
    text-decoration: none;
}

a.button {
    display: inline-block;
    margin-top: 2rem;
    background: var(--primary);
    padding: .5em 2ch;
    color: white;
    transition: background .125s ease-in-out;
    border-radius: var(--radius);
}

a.button:hover,
a.button:focus {
    background: var(--accent);
    color: white;
    text-decoration: none;
}



.btn:not(#mheader_5_wrapper .btn) {
    display: inline-block;
    border-width: 1px;
    border-style: solid;
    border-radius: 20px;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 700;
    transition: all .3s ease;
    text-transform: uppercase;
    text-decoration: none;
    color: #D00A46;
    border-color: #D00A46;
    margin-right: 24px;
    margin-bottom: 20px;
    letter-spacing: .5px;
}
.btn:hover {
    color: #fff;
    background: #D00A46;
}
.btn-red {
    color: #D00A46;
    border-color: #D00A46;
}
.btn-red:hover {
    color: #fff;
    background: #D00A46;
}
.btn-blue {
    color: #28929E;
    border-color: #28929E;
}
.btn-blue:hover {
    color: #fff;
    background: #28929E;
}




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


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

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

.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:not(#mycanvas .row-background) {
    color: white;
    position: relative;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.row-background::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -666vw;
    right: -666vw;
    display: block;
    background-color: var(--color-1);
}

.row-background:not(#mycanvas .row-background) * {
    color: white;
}

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

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


/* Slideshows defaults */

.carousel {
    font-size: 20px;
}


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


/*---------------------------------------------
    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;
    text-transform: none;
}

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


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


/* Top section  */

header>ul::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -666vw;
    right: -666vw;
    background: var(--secondary);
    z-index: -1;
}

header ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    padding: 0;
}

header>ul {
    align-items: center;
    justify-content: flex-end;
    padding: .25rem 0;
}

@media (max-width: 500px) {
    header li:nth-of-type(2) {
        display: none;
    }
}

header>ul>li:not(:last-child)::after {
    content: '';
    border-right: 2px solid white;
    opacity: .25;
}

header>ul a {
    color: white;
    padding: 0 2ch;
}

header>ul a:hover,
header>ul a:focus {
    color: var(--accent);
}

header .social-media {
    padding-left: calc(2ch - 5px);
}

.social-media>li>a {
    padding: 0 5px;
}

.social-media svg {
    border-radius: var(--radius);
    overflow: hidden !important;
}

.social-media path {
    transform: scale(.8);
    transform-origin: center;
}


/* Logo section  */

header>section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0 1.2rem;
    gap: 30px;
}

.logo-link img {
    width: 165px;
    max-width: 100%;
    height: auto;
}

header div {
    text-align: right;
}

.searchbox {
    position: relative;
    width: 300px;
    height: 2.5rem;
    border: 2px solid var(--gray);
    max-width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
}

.searchbox:focus-within {
    border-color: var(--primary);
    transition: border-color .125s ease-in-out;
}

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

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

.search-button {
    background-color: var(--primary);
    background-image: url(../images/search-icon.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 1rem;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 2.5rem;
    border: none;
}

@media (max-width: 767px) {
    header>section {
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 0 30px;
        grid-template-areas: "logo search" "logo toggle";
    }
    .logo-link {
        grid-area: logo;
    }
    .searchbox {
        grid-area: search;
        width: 230px;
        justify-self: flex-end;
    }
    #mobile-toggle {
        grid-area: toggle;
        justify-self: flex-end;
    }
}

@media (max-width: 510px) {
    header>section {
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 0 30px;
        grid-template-areas: "search search" "logo toggle";
    }
    .searchbox {
        justify-self: stretch;
        width: 100%;
        top: -.75rem;
    }
    #mobile-toggle {
        align-self: start;
    }
}


/* Desktop menu */

#main-menu::before,
footer::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -666vw;
    right: -666vw;
    background: var(--primary);
    z-index: -1;
}

#main-menu {
    position: relative;
}

#nav_menu {
    padding: 0;
}

#nav_menu>ul {
    float: none;
    display: flex;
    justify-content: space-between;
}

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

#nav_menu .nav>li {
    width: 100%;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, .25);
    align-self: center;
}

#nav_menu .nav>li:last-child {
    border-right: 1px solid rgba(255, 255, 255, .25);
}

#nav_menu .nav>li>a {
    font-family: inherit;
    font-size: 1rem;
    text-transform: capitalize;
    padding-left: clamp(5px, 10px, 15px);
    padding-right: clamp(5px, 10px, 15px);
}

@media (min-width: 991px) {
    #nav_menu .nav>li>a {
        white-space: nowrap;
    }
}

#nav_menu .nav>li a {
    color: #fff;
    transition: color .125s ease-in-out, background .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:hover,
#nav_menu .nav>li a:focus {
    background: var(--accent);
    color: white;
}


/* Dropdowns */

#nav_menu .dropdown-menu {
    border: 0;
    border-radius: 0px;
    padding: 0;
    background: var(--accent);
    font-size: 1rem;
}

#nav_menu .dropdown-menu li {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, .25);
    position: relative;
}

#nav_menu .dropdown-menu>li>a {
    color: #fff;
    padding-top: 15px;
    padding-bottom: 15px;
    transition: background .125s ease-in-out;
}

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

#nav_menu .dropdown-menu ul {
    top: 0;
}


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


/* Toggle*/

#mobile-toggle {
    border: none;
    display: inline-flex;
    transition: background .125s ease-in-out;
    z-index: 10;
    background: var(--primary);
    margin-top: .5rem;
    height: 40px;
    align-items: center;
    width: 40px;
    border-radius: var(--radius);
}

@media (min-width: 768px) {
    #mobile-toggle {
        display: none;
    }
}

#mobile-toggle:hover,
#mobile-toggle:focus {
    background: var(--accent);
    outline: none;
}

#mobile-toggle path {
    fill: white;
}

#mobileMenuWrapper {
    position: fixed;
    top: 0px;
    bottom: 0px;
    z-index: 200;
    overflow-y: auto;
    overflow-x: hidden;
    left: -120%;
    width: 300px;
    background: var(--primary);
    box-shadow: 0 3px 14px -2px rgba(0, 0, 0, .4);
    transition: left 300ms cubic-bezier(1.000, 0.010, 0.0, 1.000);
    padding: 0 1rem 1rem;
}

#mobileMenuWrapper.open {
    left: 0;
    bottom: 0;
}

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

#mobileMenuWrapper .mDropdown {
    display: none;
}

#mobileMenuWrapper .mDropdown.open {
    display: block;
    background: var(--accent);
}

#mobile-menu a {
    display: inline-block;
    width: 100%;
    color: white;
    padding: .75rem 0;
    border-bottom: 1px solid var(--gray);
}

#mobile-menu a:hover,
#mobile-menu a:focus {
    text-decoration: none;
}

#mobile-menu .mDropdown a {
    border-bottom-color: var(--bright-aqua);
    padding-left: 1ch;
    padding-right: 1ch;
}

#triggerClose {
    text-align: right;
    padding: 0;
}

#triggerClose button {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    padding: 0;
    line-height: 1;
}


/*--------------------------------------------------------
	INDEX / MAIN BODY
--------------------------------------------------------*/

main {
    min-height: calc(100vh - 242px - 233px);
    /*The minimum height of the main section of the page should be the height of the screen minus the header and footer*/
    position: relative;
}

@media (min-width: 768px) {
    #homepage-main .row:not(#banner-row),
    #subpage-main .row {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    #subpage-main>h1 {
        /* On pages where no BS rows and columns are used, add some padding to the page */
        padding-top: 4rem;
    }
    #subpage-main>:last-child:not(.row) {
        /* On pages where no BS rows and columns are used, add some padding to the page */
        padding-bottom: 4rem;
    }
}

@media (max-width: 767px) {
    #homepage-main div[class^="col-md"]:not(#banner-row>div),
    #subpage-main div[class^="col-md"] {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    #subpage-main>h1 {
        /* On pages where no BS rows and columns are used, add some padding to the page */
        padding-top: 2rem;
    }
    #subpage-main>:last-child:not(.row) {
        /* On pages where no BS rows and columns are used, add some padding to the page */
        padding-bottom: 2rem;
    }
}


/* Banner row */

#banner-row {
    padding: 0;
}

#banner-row img {
    width: 100%;
}

.carousel-caption {
    position: relative;
    background: var(--primary);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: .5rem;
    text-shadow: none;
}

.carousel-indicators {
    display: none;
}

.caption-text {
    font-size: 26px;
    font-weight: bold;
    font-family: 'Raleway', sans-serif;
    margin-bottom: .25em;
    line-height: 1.1;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.alt-text {
    margin-bottom: 0;
}

.carousel-control::before {
    content: '';
    position: absolute;
    top: .25em;
    bottom: -.25em;
    left: 0;
    right: 0;
    background: black;
    z-index: -1;
}

.carousel-control {
    width: 50px;
    height: 50px;
    opacity: 0.3;
    font-size: 50px;
    font-weight: bold;
    text-shadow: none;
    font-family: sans-serif;
    transition: opacity .125s ease-in-out;
}

.carousel-control.right,
.carousel-control.left {
    background-image: none;
    top: calc(50% - 2em);
    margin: 0 15px;
}

.carousel-control:hover::before,
.carousel-control:focus::before {
    background: var(--primary);
    transition: background .125s ease-in-out;
}

.carousel-control:hover,
.carousel-control:focus {
    background-image: none;
}

@media (max-width: 990px) {
    .carousel-control.right,
    .carousel-control.left {
        top: 0;
        opacity: .9;
        font-size: 2rem;
        width: 30px;
        height: 32px;
    }
    .carousel-control::before {
        background: var(--primary);
    }
    .caption-text {
        font-size: 20px;
    }
    .alt-text {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .carousel-caption {
        min-height: 8rem;
    }
}


/* Banner Story row */

#subpage-main .row#story-row:not(#gm-canvas #subpage-main .row#story-row)  {
    padding: 0;
    z-index: -1;
    position: relative;
    margin-top: -50px;
}
#story-row img {
    width: 100% !important;
}




/* News Events row  */

#news-events-row>.column:first-child {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: 2rem 30px;
}

#news-events-row>.column:first-child>*:not(.news-item) {
    /* Make anything that is not a .news-item ignore the grid columns  */
    grid-column: 1 / -1;
    max-width: fit-content;
    justify-self: flex-start;
}

#news-events-row>.column:first-child h2 {
    margin-bottom: calc(.25em - 1rem);
}

.news-item {
    border: 1px solid var(--gray);
    border-radius: var(--big-radius);
    padding: 1rem;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-item h3,
.event-item h3 {
    font-size: 1rem;
    font-family: inherit;
    text-transform: capitalize;
    margin-bottom: .5rem;
}

.news-item img {
    width: calc(100% + 2rem);
    margin: -1rem -1rem 1rem;
}

.news-item img[src=""] {
    display: none;
}

.news-item time {
    margin-top: 1rem;
    display: block;
    padding-top: .5rem;
    border-top: 1px solid var(--gray);
}

.news-item time::before {
    content: '';
    background-image: url(../images/calendar-icon.svg);
    background-size: cover;
    background-repeat: no-repeat;
    height: 1.3em;
    display: inline-block;
    margin-right: .5ch;
    width: 1.2em;
    position: relative;
    top: 3px;
}

.event-item {
    display: grid;
    grid-template-columns: 6ch 1fr;
    gap: 0 1ch;
    border-bottom: 1px solid var(--gray);
    padding: 1rem 0;
}

.event-item:last-of-type {
    border-bottom: none;
}

.event-item time {
    background: var(--primary);
    font-weight: bold;
    color: white;
    border-radius: var(--radius);
    text-align: center;
    padding: 1ch 5px;
    max-height: 4em;
    font-family: 'Raleway', sans-serif;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.event-item time span {
    display: block;
    font-size: 1.25rem;
    line-height: 1.2;
}

.event-item time span:first-child {
    font-size: 1rem;
}

.event-item p {
    margin: 0;
}

@media (max-width: 990px) and (min-width: 768px) {
    .event-item {
        grid-template-columns: 4.5ch 1fr;
    }
    .event-item time {
        max-height: 3.2em;
        padding: 5px;
    }
    .event-item time span {
        font-size: 1rem;
    }
    .event-item p {
        line-height: 1.3;
    }
}


/* CTA row  */

#cta-row::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -666vw;
    right: -666vw;
    background-color: var(--primary);
    z-index: -1;
    display: block;
}

#cta-row {
    position: relative;
}

#cta-row:not(.gm-editing) * {
    /* Don't apply this style when it is shown in the GPE */
    color: white;
}

.cta-list {
    list-style: none;
    padding: 0;
    font-weight: bold;
    gap: 2rem 30px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-list li {
    text-align: center;
    position: relative;
    flex-grow: 1;
}

#cta-row:not(.gm-editing) .cta-list a::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
}

.cta-list img {
    margin: auto;
    background: white;
    border-radius: var(--big-radius);
    height: 143px !important;
    padding: .8rem;
    margin-bottom: 1rem;
    aspect-ratio: 1/1;
}


/* News row  */

#news-row>.column {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 2rem 30px;
}

#news-row>.column>*:not(.news-item) {
    /* Make anything that is not a .news-item ignore the grid columns  */
    grid-column: 1 / -1;
    max-width: fit-content;
    justify-self: flex-start;
}

#news-row img {
    display: none;
}


/* Videos row  */

#videos-row::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -666vw;
    right: -666vw;
    z-index: -1;
    display: block;
    background: var(--gray);
    opacity: .5;
}

#videos-row {
    position: relative;
}

#videos-row>.column {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(365px, 1fr));
    gap: 2rem 30px;
}

#videos-row>.column>*:not(iframe) {
    /* Make anything that is not a video ignore the grid columns  */
    grid-column: 1 / -1;
    max-width: fit-content;
    justify-self: flex-start;
}

#videos-row iframe {
    width: calc(100% - 30px);
    aspect-ratio: 16 / 9;
    min-height: 200px;
}

@media (min-width: 1170px) {
    #videos-row iframe {
        min-height: 290px;
    }
}


/*--------------------------------------------------------
	CSS STYLE FOR INNER PAGES
--------------------------------------------------------*/


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

footer {
    color: white;
}

footer section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 767px) {
    footer section:last-of-type {
        display: block;
    }
}

footer a {
    color: inherit;
    text-decoration: underline;
}

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

footer section p:empty {
    display: none;
}

footer .umacha-logo * {
    fill: white !important;
}

footer .social-media {
    list-style: none;
    display: flex;
    flex-direction: row;
    padding: 0;
}

footer .social-media svg {
    border: 1px solid;
}

footer .social-media rect {
    stroke: white;
    fill: none !important;
    border-radius: none;
}

footer .social-media a:hover path,
footer .social-media a:focus path {
    fill: currentColor;
    transition: fill .125s ease-in-out;
}

.org-name {
    font-weight: bold;
    display: inline-block;
    margin-right: .5ch;
    border-right: 1px solid rgba(255, 255, 255, .5);
    padding-right: 1ch;
}


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


/*------------------------------------------------------------------------------------
                                @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-nav {
        float: none!important;
        margin: 7.5px -15px;
    } */
    .navbar-nav>li {
        float: none;
    }
    .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;
    }
}