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

 :root {
    --page-width: 100%;
    --side-margin: calc((100vw - var(--page-width) + 13px) / -2);
    --blue: #0070cd;
    --light-blue: #6ec4e8;
    --cyan: #0592e0;
    --purple: #9f26b4;
    --gray: #f5f5f5;
    --dark-blue: #192a38;
    overflow-x: hidden;
    font-family: 'Rubik', sans-serif;
    color: #4D4D4D;
    font-size: 16px;
}

@media (max-width: 500px) {
     :root {
        --side-margins: -15px;
    }
}

body {
    font-weight: 400;
    line-height: 24px;
    color: inherit;
}

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

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

body,
header,
footer,
header nav {
    font-family: inherit !important;
    font-size: inherit !important;
    /* Prevent MMS pages with hard-coded fonts from overwriting this  */
}

p {
    margin: 0;
}

p:not(:last-child) {
    margin-bottom: 20px;
}

#subpage-main p:empty {
    display: none;
}


/* H1 - H6 */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #333;
    margin: 0;
    padding: 0;
    margin-bottom: .5em;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
    font-family: inherit;
}

h1 {
    font-size: 55px;
}

h2 {
    font-size: 44px;
}

h3 {
    font-size: 30px;
}

h4 {
    font-size: 26px;
}

h5 {
    font-size: 24px;
}

h6 {
    font-size: 21px;
}

@media (min-width: 991px) {
    #subpage-main h1 {
        /* #mms-main h1 selector removed from style to prevent overwriting new MMS icon/h1 */
        font-size: 44px;
    }
    #subpage-main h2,
    #mms-main h2 {
        font-size: 30px;
    }
    #subpage-main h3,
    #mms-main h3 {
        font-size: 27px;
    }
    #subpage-main h4,
    #mms-main h4 {
        font-size: 24px;
    }
    #subpage-main h5,
    #mms-main h5 {
        font-size: 22px;
    }
    #subpage-main h6,
    #mms-main h6 {
        font-size: 20px;
    }
}

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

@media (max-width: 990px) {
    h1 {
        font-size: 32px;
    }
    h2 {
        font-size: 27px;
    }
    h3 {
        font-size: 24px;
    }
    h4 {
        font-size: 22px;
    }
    h5 {
        font-size: 20px;
    }
    h6 {
        font-size: 18px;
    }
}

h1.title {
    margin-top: .25em;
}

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

#subpage-main p:not(:empty)+h2,
#subpage-main p:not(:empty)+h3,
#subpage-main p:not(:empty)+h4,
#subpage-main ul+h2,
#subpage-main ul+h3,
#subpage-main ul+h4,
#subpage-main table+h2,
#subpage-main table+h3,
#subpage-main table+h4 {
    margin-top: 1.5em;
}

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


/*Links*/

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

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

#mms-main a {
    text-decoration: none;
}

.button-link {
    text-decoration: none;
    color: white;
    display: block;
    width: fit-content;
    background: var(--blue);
    padding: .5em 2ch;
    border-radius: 1.5em;
    transition: .125s background ease-in-out;
    border: none;
    text-transform: capitalize;
}

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

.button-link:not(:first-child) {
    margin-top: 1.5em;
}

.button-link:not(:last-child) {
    margin-bottom: 1.5em;
}


/*Objects*/

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


/*  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,
.banner-image {
    /* Make an element span the width of the viewport */
    position: relative;
    left: var(--side-margin);
    right: var(--side-margin);
    width: calc(100vw + 13px) !important;
}

img.banner-image,
.banner-image img {
    max-height: 50vh;
    object-fit: cover;
}

.banner-image img {
    width: 100%;
}

.banner-image>figcaption {
    position: absolute;
    top: calc(50% - 1em);
    text-align: center;
    width: 100%;
}

.banner-image>figcaption>*:not(.button-link) {
    color: white;
    text-shadow: 7px 0 5px rgb(0 0 0 / 10%);
}

.img-responsive.full-width:not(#mycanvas img),
.img-responsive.banner-image:not(#mycanvas img) {
    /* Make sure that when the system automatically adds the class .img-responsive that it doesn't break .full-width. This is not applied to images viewed on the Grid Editor page. */
    max-width: unset;
}

#gm-canvas .full-width,
#gm-canvas img.banner-image {
    left: unset;
    right: unset;
    width: unset;
}

.row-background:not(#mycanvas .row-background) {
    position: relative;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    padding-left: 15px;
}

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


/* Overlap rows */

@media (min-width: 991px) {
    #subpage-main [class*="overlap-row"] {
        display: grid;
        align-items: center;
        grid-template-columns: repeat(9, 1fr);
    }
    #subpage-main [class*="overlap-row"]>.column {
        width: unset;
        /* Overwrite BS defaults */
        grid-row: 1/1;
    }
    #subpage-main .overlap-row>.column:first-child {
        padding: 2rem 3rem;
        background: #F8F8F8;
        grid-column: 1/5;
    }
    #subpage-main .overlap-row>.column:last-child {
        grid-column: 4/-1;
        z-index: -1;
    }
    #subpage-main .overlap-row-reverse>.column:first-child {
        grid-column: 1/6;
        z-index: -1;
    }
    #subpage-main .overlap-row-reverse>.column:last-child {
        padding: 2rem 3rem;
        background: #eeeeee;
        grid-column: 5/-1;
    }
    #subpage-main .overlap-row>.column:last-child img,
    #subpage-main .overlap-row-reverse>.column:first-child img {
        width: 100% !important;
    }
}

@media (min-width: 992px) {
    .row-background:not(#mycanvas .row-background)>.col-md-9 {
        width: calc(75% - 15px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-8 {
        width: calc(66.7% - 15px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-7 {
        width: calc(58.3% - 15px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-6 {
        width: calc(50% - 15px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-5 {
        width: calc(41.7% - 15px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-4 {
        width: calc(33.3% - 20px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-3 {
        width: calc(25% - 20px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-2 {
        width: calc(20% - 20px);
    }
}

@media (max-width: 990px) {
    .container,
    .wrapper {
        /* Extra wiggle room at a breakpoint that needs it  */
        width: 100%;
    }
    .full-width {
        --side-margin: -15px;
        left: var(--side-margin);
        right: var(--side-margin);
        width: calc(100vw + 30px);
    }
    .row-background:not(#mycanvas .row-background) {
        padding-right: 15px;
    }
    .row-background::before {
        left: 0;
        right: 0;
    }
}

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

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


/* Slideshows defaults */

.carousel {
    font-size: 20px;
}

.carousel-control.left,
.carousel-control.right {
    display: none;
}

.caption-text:empty,
.alt-text:empty {
    display: none;
}


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

[class*="-background"] {
    position: relative;
}

[class*="-background"]:not(.gray-background) h1:not(#mycanvas *),
[class*="-background"]:not(.gray-background) h2:not(#mycanvas *),
[class*="-background"]:not(.gray-background) h3:not(#mycanvas *),
[class*="-background"]:not(.gray-background) h4:not(#mycanvas *),
[class*="-background"]:not(.gray-background) h5:not(#mycanvas *),
[class*="-background"]:not(.gray-background) h6:not(#mycanvas *),
[class*="-background"]:not(.gray-background) p:not(#mycanvas *),
[class*="-background"]:not(.gray-background) a:not(#mycanvas *):not(.button-link) {
    color: white;
}

[class*="-background"]::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
}

.row[class*="-background"]::before {
    left: var(--side-margin);
    right: var(--side-margin);
}

#mycanvas [class*="-background"]::before {
    /* Markup is different in the Grid Pages so styles don't work correctly */
    content: none;
}

main:not(#mms-main) .column[class*="-background"]:not([class*="-background"] [class*="-background"]) {
    /* If a column has a background applied to it, but the row containing it does not apply these styles */
    margin-top: -2rem;
    padding: 2rem 30px 3rem;
}

.blue-background::before {
    background: var(--blue);
}

.light-blue-background::before {
    background: var(--light-blue);
}

.cyan-background::before {
    background: var(--cyan);
}

.purple-background::before {
    background-image: url('../images/purple-background.png');
    background-repeat: repeat;
    background-position-y: -40px;
}

.gray-background::before {
    background: var(--gray);
}

.blue-background .button-link,
.blue-background .button-link:hover,
.blue-background .button-link:focus {
    border: 1px solid white;
}


/*
Header
*/

body>header {
    display: flex;
    padding-left: 50px;
    gap: 1rem 30px;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 200;
}

header>nav {
    display: flex;
    justify-content: space-between;
    align-items: inherit;
    width: 100%;
}

#main-logo {
    max-width: 100%;
    width: 145px;
    height: 100px;
    display: block;
}

.secondary-navigation {
    display: inherit;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: .5rem 20px;
}

.search-item {
    height: 18px;
}

.search-item a {
    text-decoration: none;
}

.search-item a::before {
    content: '';
    background: url('../images/search-icon.svg');
    background-size: cover;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    display: block;
}

.join-item .button-link {
    background: var(--purple);
    font-weight: bold;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: 1em 4ch;
    padding-right: 3ch;
    font-size: 18px;
}

.join-item .button-link:hover,
.join-item .button-link:focus {
    background: var(--blue);
}

@media (max-width: 1300px) {
    body>header {
        gap: 1rem 15px;
    }
    .secondary-navigation {
        gap: .5rem 15px;
    }
    .secondary-navigation .button-link {
        padding: .5em 1.5ch;
    }
    .join-item .button-link {
        font-size: 1rem;
        padding: .5rem 1.5ch .5rem 2ch;
    }
}

@media (max-width: 1200px) {
    .secondary-navigation {
        gap: .5rem 10px;
    }
    .us-span {
        display: none;
    }
}

@media (max-width: 1150px) {
    body>header {
        padding-left: 30px;
    }
    header .button-link,
    .join-item .button-link {
        font-size: 15px;
    }
}

@media (max-width: 1100px) {
    body>header {
        padding-left: 15px;
    }
}

@media (max-width: 990px) {
    body>header {
        justify-content: space-between;
        padding-top: 5px;
        padding-bottom: 5px;
    }
    header .button-link,
    .join-item .button-link {
        font-size: 1rem;
    }
    header>nav {
        width: unset;
        flex-direction: column;
        align-items: end;
        gap: 15px;
    }
}

@media (max-width: 500px) {
    body>header {
        padding-top: 10px;
    }
    #main-logo {
        width: 115px;
    }
}


/* Desktop Navigation */

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

#nav_menu {
    padding: 0;
}

#nav_menu>ul {
    display: flex;
    gap: .25rem 15px;
    flex-wrap: wrap;
}

#nav_menu a {
    text-decoration: none;
    padding: 3px 0;
    color: #4D4D4D;
    transition: .125s color ease-in-out;
    display: inline-block;
}

#nav_menu .nav .open>a,
#nav_menu .nav .open>a:focus,
#nav_menu .nav .open>a:hover,
#nav_menu a:hover,
#nav_menu a:focus {
    color: var(--purple);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    background: none;
}

#nav_menu .dropdown-menu {
    font-size: inherit;
    padding-left: 2ch;
    padding-right: 2ch;
}

@media (max-width: 1200px) {
    #nav_menu>ul {
        gap: .25rem 10px;
    }
}

@media (max-width: 1150px) {
    #nav_menu a {
        font-size: 15px;
    }
}

@media (max-width: 1030px) {
    header .button-link,
    .join-item .button-link,
    #nav_menu a {
        font-size: 14px;
    }
}


/* Social icons */

.social-icons {
    list-style: none;
    padding: 0;
}

body>.social-icons {
    position: fixed;
    top: calc(50vh - 60px);
    right: 0;
    z-index: 101;
}

.social-icons li {
    background: var(--purple);
    transition: .125s background ease-in-out;
    padding: 5px;
}

.social-icons li:hover,
.social-icons li:focus {
    background: var(--light-blue);
}

.social-icons li:first-child {
    border-top-left-radius: 5px;
}

.social-icons li:last-child {
    border-bottom-left-radius: 5px;
}

@media (max-width: 990px) {
    body>.social-icons {
        display: none;
    }
    .social-icons {
        display: flex;
        gap: .5rem 15px;
        margin-top: 1rem;
    }
    .social-icons li:first-child,
    .social-icons li:last-child {
        border-radius: 0;
    }
}


/* Mobile navigation */

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

button.mobileMenuTrigger {
    background: none;
    border: none;
}

#mobileMenuWrapper {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 201;
    overflow-y: auto;
    overflow-x: hidden;
    left: -120%;
    width: 300px;
    background-color: white;
    transition: left 300ms cubic-bezier(1.000, 0.010, 0.0, 1.000);
    box-shadow: 7px 0 5px rgb(0 0 0 / 10%);
}

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

#mobile-menu {
    padding: 1em 2ch;
    list-style-type: none;
}

#mobile-menu>li {
    margin-bottom: .5em;
}

#triggerClose {
    text-align: right;
    font-size: 1.5em;
}

#mobile-menu>li>a {
    text-decoration: none;
    color: #4D4D4D;
}

#mobileMenuWrapper .mDropdown {
    display: none;
}

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

@media (max-width: 600px) {
    /* At 600px the Member Portal button moves to the mobile menu */
    .button-link:not(banana)[data-target="#login-modal"] {
        /* Goofy selector needed to overwrite :not in root style */
        margin-top: 0;
    }
}


/* Main page */

#subpage-main,
#mms-main {
    min-height: calc(100vh - 54px - 167px - 4rem);
}

#subpage-main {
    /* Match subpage text to old website per Georgia */
    font-size: 18px;
    line-height: 1.7;
}

#mms-main {
    padding-top: 3rem;
}

main:not(#mms-main) .row:not(#slideshow-row) {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (max-width: 990px) {
    /*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*/
    main:not(#mms-main) .row:not(#slideshow-row) {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }
    main:not(#mms-main) .column+.column {
        margin-top: 1rem;
    }
}


/* Index / Home Page */

#slideshow-row {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#slideshow-row .carousel {
    display: flex;
}

#slideshow-row .carousel-indicators,
#slideshow-row img {
    display: none;
}

#slideshow-row .carousel-control.left,
#slideshow-row .carousel-control.right {
    display: block;
    text-decoration: none;
}

#slideshow-row .carousel-caption {
    position: relative;
    left: 0;
    right: 0;
    text-shadow: none;
    width: 750px;
    max-width: calc(100vw - 130px);
    padding: 0;
    bottom: 0;
    margin: auto;
    font-size: 16px;
    text-align: left;
}

#slideshow-row .carousel-control {
    background: var(--dark-blue);
    opacity: 1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    padding: .25rem;
    font-weight: bold;
    margin-top: auto;
    margin-bottom: auto;
    transition: .125s background ease-in-out;
}

#slideshow-row .carousel-control:hover,
#slideshow-row .carousel-control:focus {
    background: var(--purple);
}

#slideshow-row p {
    margin: 0;
    font-weight: normal;
    font-size: 1rem;
}

#slideshow-row p:not(:empty)+p {
    margin-top: .5rem;
}


/* Empowered row */

#empowered-row h1 {
    font-size: 90px;
    margin-bottom: .3em;
}

#empowered-row:not(#mycanvas #empowered-row) .column:nth-child(2) {
    display: flex;
    justify-content: flex-end;
}

@media (min-width: 991px) {
    #empowered-row img {
        width: 287px;
    }
}

@media (max-width: 1200px) {
    #empowered-row h1 {
        font-size: 70px;
    }
}

@media (max-width: 990px) {
    #empowered-row h1 {
        font-size: 60px;
    }
}

@media (max-width: 500px) {
    #empowered-row h1 {
        font-size: 40px;
    }
}


/* About row */

#about-row:not(#mycanvas .row) {
    display: flex;
    padding-left: 15px;
    padding-right: 15px;
}

#about-row:not(#mycanvas .row) .column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#about-row section {
    margin-bottom: 20px;
    overflow: hidden;
}

#about-row h2 {
    font-size: 30px;
    transform: translateX(-100%);
    transition: .5s transform ease-in-out;
}

#about-row .seen h2 {
    transform: translateX(0);
}

@media (max-width: 990px) {
    #about-row:not(#mycanvas .row) {
        flex-direction: column;
        margin-top: -1rem;
    }
    #about-row:not(#mycanvas .row) .column {
        width: 100%;
        margin-top: 0;
    }
    #about-row h2 {
        transition: .25s transform ease-in-out;
    }
}


/* Women Giving row */

main:not(#mms-main) #women-giving-row:not(#slideshow-row) {
    padding-top: 0;
    padding-bottom: 1rem;
}

#women-giving-row [alt="Women giving as one"] {
    margin: auto;
    max-width: 100%;
}


/* Membership row */

main:not(#mms-main) #membership-row:not(#slideshow-row),
main:not(#mms-main) #numbers-row:not(#slideshow-row),
main:not(#mms-main) #grantees-row:not(#slideshow-row) {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

#membership-row section {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

#membership-row section ul {
    display: flex;
    gap: 1rem 30px;
    list-style: none;
    padding: 0;
}

#membership-row .button-link {
    background: white;
    color: var(--blue);
    transition: .125s background ease-in-out, .125s color ease-in-out;
}

#membership-row .button-link:hover,
#membership-row .button-link:focus {
    background: var(--light-blue);
    color: white;
    transition: .125s background ease-in-out, .125s color ease-in-out;
}


/* Numbers row */

#numbers-row:not(#mycanvas .row) {
    display: grid;
    gap: 1rem 30px;
    grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
    padding-left: 15px;
    padding-right: 15px;
}

#numbers-row:not(#mycanvas .row) .column {
    padding: 2rem 30px 3rem;
    width: unset;
    border: 4px solid white;
    margin-top: 0;
}

#numbers-row h3 {
    font-size: 20px;
    text-transform: uppercase;
}

#numbers-row h3 span {
    font-size: 70px;
    display: block;
}

#numbers-row p {
    font-style: italic;
}


/* Grantees row */

#grantees-row p {
    font-size: 22px;
}

#grantees-row .carousel-indicators {
    bottom: 0;
}

#grantees-row .carousel-indicators li {
    background: var(--blue);
    border-color: var(--blue);
}

#grantees-row .carousel-indicators li:not(:last-child) {
    margin-right: 2px;
}

#grantees-row .carousel-indicators .active {
    background: white;
    border: none;
    width: 10px;
    height: 10px;
}

#grantees-row .carousel-caption {
    display: none;
}


/* Footer */

main:not(#homepage-main)+footer {
    padding-top: 2rem;
}

footer section:first-child {
    padding: 2rem 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1rem 30px;
}

.contact-section *:not(br) {
    display: block;
    margin-bottom: .5rem;
}

.contact-section br:not(address br) {
    display: none;
}

.contact-section a {
    width: fit-content;
}

.newsletter-section h2 {
    font-size: 20px;
}

.newsletter-form {
    max-width: 500px;
    display: grid;
    grid-template-columns: 304px 1fr;
    gap: 0 15px;
}

.newsletter-form .form-group {
    margin-left: 0;
    margin-right: 0;
}

#newsletter-form .form-group,
#newsletter-form p {
    grid-column: 1 / -1;
}

.newsletter-form .col-sm-6,
.newsletter-form .col-sm-12 {
    padding: 0;
    display: flex;
    align-items: center;
}

.newsletter-form .col-sm-6 {
    width: 50%;
}

.newsletter-form .form-group:first-of-type {
    display: flex;
    gap: 1rem 15px;
    margin-left: -15px;
    margin-right: -15px;
}

#newsletter-form .form-group:last-child,
#newsletter-form .form-group:nth-last-child(2) {
    display: contents;
}

.affiliations-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.affiliations-section h2 {
    font-size: 1rem;
    text-transform: uppercase;
    margin: 0;
}

footer #copyright-section {
    background: #192a38;
    color: white;
    padding: 1.25rem 15px;
}

footer #copyright-section p {
    text-align: center;
    margin: 0;
}

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

footer #copyright-section span::before {
    content: '|';
    display: inline-block;
    padding: 0 1ch;
}

@media (max-width: 1200px) {
    footer section:first-child {
        grid-template-columns: repeat(auto-fill, minmax(385px, 1fr));
    }
    .newsletter-section {
        order: -2;
        grid-row: 1/3;
    }
    .affiliations-section {
        order: -1;
    }
}

@media (max-width: 990px) {
    footer section:first-child {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 2rem 30px;
    }
    #homepage-main+footer {
        padding-top: 2rem;
    }
    footer section:first-child {
        padding: 1rem 15px;
    }
    .affiliations-section {
        max-width: 270px;
    }
    .newsletter-form {
        max-width: unset;
    }
}

@media (max-width: 500px) {
    .newsletter-form {
        display: block;
    }
    .newsletter-form .button-link {
        margin-top: 1em;
    }
}


/* MMS Styling */