:root {
    --apa-blue: #045FE6;
    --blue: #203D69;
    --light-gray: #666666;
    --text: #2D2D2D;
    --gap-1: 8px;
    --gap-2: 13px;
    --gap-3: 23px;
    --gap-4: 46px;
    --gap-5: 57px;
    font-size: 16px;
}


/*^^These are CSS variables. They allow us to declare NEMOA's colors once and then reference those values through out the styles. Read more about CSS variables at https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables*/

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


/*This changes the box model of everything in the website and can be overwriten per component if needed. To read more about box-sizing and why you'd want to overwrite it see https://css-tricks.com/international-box-sizing-awareness-day/ or https://www.w3schools.com/cssref/css3_pr_box-sizing.asp*/


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

body {
    font-size: 16px;
    color: #666666;
    color: var(--text);
    font-family: 'Arimo', sans-serif;
}

p {
    margin-bottom: .5em;
}

@media (max-width: 992px) {
    .container {
        width: 900px;
        /*Bootstrap's 750px is too narrow for laptops or large tablets*/
        max-width: 100%;
    }
}


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

h1,
h2,
h3,
h4 {
    margin: 0px;
    margin-bottom: .5rem;
    padding: 0px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: var(--blue);
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 18px;
}

h1.title {}

h1.title:empty {
    display: none;
}


/*^^Hides the extra margin that is added on pages without a title*/

aside h1 {
    font-size: 24px;
}


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

a {
    color: inherit;
    text-decoration: underline;
    -webkit-text-decoration-color: var(--blue);
    text-decoration-color: var(--blue);
}

a:hover,
a:focus {
    color: inherit;
}


/*--------------------------------------------------------
	IMAGES, Objects
--------------------------------------------------------*/

img {
    border: none;
}

.apa-blue {
    color: var(--apa-blue);
}


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

header {
    height: 102px;
    position: relative;
    margin: var(--gap-3) 0;
}

#header-row {
    margin: 0;
    /*Replaced the standard .row/.col-md-xx with this single div to allow me to change the stacking over at different screen sizes.*/
    height: inherit;
    position: relative;
}

header .logo {
    display: inline-flex;
    flex-direction: row;
    height: 100%;
    margin-left: -5px;
    text-decoration: none;
}

header .logo img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-right: var(--gap-2);
    margin-top: auto;
    margin-bottom: auto;
}

header .logo .org-name {
    max-width: 220px;
    margin-top: auto;
    margin-bottom: auto;
    text-transform: uppercase;
    font-size: 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    line-height: 1;
}

@media (max-width: 990px) {
    header .logo img {
        width: 70px;
        max-height: 81px;
        /*^^ Added because height:auto isn't doing its job in IE or Edge*/
    }
    header .logo .org-name {
        font-size: 23px;
        max-width: 180px;
    }
}

@media (max-width: 630px) {
    header .logo {
        height: unset;
        max-width: calc(100% - 30px - 15px);
        position: absolute;
        bottom: 0;
    }
    header .logo img,
    header .logo .org-name {
        margin-bottom: unset;
    }
    header .logo img {
        width: 50px;
        margin-right: var(--gap-1);
        max-height: 57px;
        /*^^ Added because height:auto isn't doing its job in IE or Edge*/
    }
    header .logo .org-name {
        font-size: 20px;
        max-width: unset;
    }
}

@media (max-width: 500px) {
    header .logo .org-name {
        font-size: calc(3vw + 7px);
    }
}


/*--------------------------------------------------------
					Social/Search Bar
--------------------------------------------------------*/

#social-search {
    position: absolute;
    right: 0;
    top: 0;
}

.social-links {
    display: inline-flex;
    flex-direction: row;
    justify-content: space-between;
    width: 120px;
    margin-right: var(--gap-3);
}

@media (max-width: 800px) {
    .social-links {
        margin-right: var(--gap-2);
    }
}

@media (max-width: 800px) {
    .social-links {
        margin-right: var(--gap-1);
    }
}

.social-links svg {
    border: 1px solid var(--light-gray);
    border-radius: 50%;
    padding: 2px;
    width: 34px;
    height: 34px;
    transition: .25s border-color;
}

.social-links a:hover svg {
    border-color: var(--apa-blue);
}

.social-links svg g[class*="-icon"] path {
    fill: var(--light-gray);
    transition: .25s fill;
}

.social-links a:hover svg g[class*="-icon"] path {
    fill: var(--apa-blue);
}

.searchbox {
    position: relative;
    width: 150px;
    top: -10px;
    display: inline-block;
}

.search-input {
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    width: 100%;
    padding: 5px 1em;
}

.search-button {
    background: none;
    border: none;
    background-image: url(../images/search.svg);
    background-repeat: no-repeat;
    width: 19px;
    background-position: center;
    position: absolute;
    right: 11px;
    top: 4px;
}


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

header nav {
    position: absolute;
    width: calc(100% - 323px);
    bottom: 0;
    right: 5px;
}

@media(max-width: 990px) {
    header nav {
        width: calc(100% - 240px);
    }
}

header nav>ul {
    list-style: none;
    text-align: right;
    display: flex;
    justify-content: space-between;
}

header nav>ul>li {
    display: inline-block;
    text-align: left;
    position: relative;
}

header nav>ul>li>a {
    text-decoration: none;
    transition: .25s color;
}

header nav>ul>li>a:hover,
header nav>ul>li>a:focus {
    background-color: transparent;
    color: var(--apa-blue);
    text-decoration: none;
}


/*Carats*/

nav a.submenu-parent:after {
    content: "\25BE";
    font-size: .9em;
    padding-left: .25em;
    display: inline-block;
}

.submenu-parent+ul {
    display: none;
    position: absolute;
    top: calc( 100% + 5px);
    left: 0;
    z-index: 5;
    min-width: 210px;
    margin: 0px;
    font-size: inherit;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: none;
    border-radius: 0px;
    box-shadow: 0px 0px 20px 9px rgba(0, 0, 0, .05);
    padding: .5em 1em;
}


/* ^^ Dropdown submenus*/

.submenu-parent+ul li {
    display: block;
    float: none;
    padding-right: .5em;
}


/* ^^ Dropdown submenu list items*/

.submenu-parent+ul a {
    width: auto;
    padding: .5em 0;
    display: inline-block;
    text-decoration: none;
    color: var(--blue);
    transition: .25s color;
}

.submenu-parent+ul a:hover {
    color: var(--apa-blue);
}

.login-link {
    color: var(--apa-blue);
}

@media (min-width: 800px) {
    nav ul li a.submenu-parent.active+ul {
        display: block;
    }
    nav li.close-menu {
        display: none;
    }
}

@media (min-width: 860px) {
    #mobileMenuWrapper {
        display: none;
    }
}

@media (max-width: 860px) {
    header nav {
        display: none;
    }
    #mobileMenuWrapper {
        width: 250px;
        position: fixed;
        top: 0;
        left: -120%;
        bottom: 0;
        background: white;
        box-shadow: 0px 0.86px 0.43px rgba(0, 0, 0, 0.5);
        z-index: 200;
        max-width: 90vw;
        overflow: auto;
        padding: 1.5em;
        transition: all 300ms cubic-bezier(1.000, 0.010, 0.0, 1.000);
    }
    #mobileMenuWrapper.open {
        left: 0;
    }
    #mobile-menu,
    #mobile-menu ul {
        list-style-type: none;
        margin-left: 0;
        padding-left: 0;
    }
    #mobile-menu li {
        display: block;
        margin-bottom: .75em;
        margin-left: 0;
        padding-left: 0;
    }
    #mobile-menu a {
        display: inline-block;
        width: 100%;
        text-decoration: none;
    }
    .mDropdown {
        margin-top: 0.75em;
        color: var(--blue);
    }
}

@media (max-width: 990px) and (min-width: 860px) {
    #home-link {
        display: none;
    }
}

#mobileMenuWrapper .mobileMenuTrigger {
    text-align: right;
}

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

svg.mobileMenuTrigger {
    fill: none;
    stroke: var(--apa-blue);
    stroke-width: 2;
    border: 1px solid #666;
    width: 30px;
    height: 30px;
    padding: 5px;
    border-radius: .25em;
    position: absolute;
    right: 0;
    bottom: 0;
    stroke-width: 3.5px;
    cursor: pointer;
}


/*--------------------------------------------------------
					Index / Main Body
--------------------------------------------------------*/

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

main>.row {
    margin-bottom: var(--gap-4);
}

@media (max-width: 767px) {
    main>.row {
        margin-bottom: var(--gap-3);
    }
}


/*----------------Slideshow----------*/

#slide-row {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: var(--gap-5);
}

#slide-row>.column {
    padding: 0;
}

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

.carousel-indicators {
    top: var(--gap-2);
    right: var(--gap-2);
    left: inherit;
    bottom: inherit;
    margin: 0;
    width: 100%;
    text-align: right;
}

.carousel-indicators li {
    border-color: white;
    background: white;
    margin-left: 3px;
    border-width: 2px;
}

.carousel-indicators li.active {
    margin-left: 3px;
    background: var(--blue);
    border: none;
}

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

.carousel-caption {
    position: absolute;
    z-index: 100;
    background: rgba(102, 102, 102, 0.8);
    padding: 10px 15px;
    left: 0;
    bottom: 0;
    right: 0;
    top: inherit;
    max-width: 1140px;
    text-align: center;
    text-shadow: none;
    color: white;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 860px) {
    .carousel-caption {
        position: relative;
    }
}

@media (max-width: 600px) {
    .carousel-caption {
        padding: 10px;
        text-align: left;
    }
}

.carousel-caption p.caption-text {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.1em;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    display: block;
    color: white;
    margin-bottom: var(--gap-1);
}

@media (max-width: 860px) {
    .carousel-caption p.caption-text {
        margin-bottom: var(--gap-2);
    }
}

.carousel-caption p.alt-text {
    margin-bottom: 0;
}

.carousel a {
    text-decoration: none;
}


/*----------------End Slideshow------*/


/*--------------------------------------------------------
					Content Row
--------------------------------------------------------*/

@media (max-width: 767px) {
    #content-row {
        display: flex;
        flex-direction: column-reverse;
    }
}


/*--------------------------------------------------------
					Welcome Section
--------------------------------------------------------*/

#welcome section {
    padding: var(--gap-4) 0;
    border-bottom: 1px solid var(--light-gray);
}

#welcome section:first-of-type {
    padding-top: 0;
}

#welcome section:last-of-type {
    padding-bottom: 0;
    border: none;
}

#other-orgs ul {
    padding-left: 0;
    list-style: none;
}

#other-orgs li {
    margin-bottom: .5em;
}


/*--------------------------------------------------------
					News and Events Feeds
--------------------------------------------------------*/

#home-feeds section {
    margin-bottom: var(--gap-4);
}

#event-feed {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

#event-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem 30px;
}

.event-item {
    display: flex;
    flex-direction: column;
    width: calc( 50% - var(--gap-1));
    box-shadow: 0px 0.86px 0.43px rgba(0, 0, 0, 0.25);
    background: #F4F7F9;
    text-decoration: none;
    transition: .25s box-shadow;
}

.event-item {
    display: block;
    width: calc(50% - var(--gap-1));
    box-shadow: none;
    background: unset;
    text-decoration: none;
    transition: .25s filter ease-in-out;
    width: unset;
    filter: drop-shadow(0px 3px 11.8px rgba(0, 0, 0, 0));
    background: #F4F7F9;
    overflow: clip;
    border-top-right-radius: var(--gap-1);
    position: relative;
}

.event-item:is(:hover, :focus) {
    filter: drop-shadow(0px 3px 11.8px rgba(0, 0, 0, 0.25))
}

.event-title {
    padding: 5px 10px;
}

.ev-title-link::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
}

@media(max-width: 990px) {
    #home-feeds section {
        margin-bottom: var(--gap-3);
    }
}

@media(max-width: 990px) and (min-width: 500px) {
    /* .event-item:last-of-type {
        margin-bottom: 0;
    } */
}

@media(max-width: 767px) and (min-width: 500px) {
    /* #event-feed, */
    #facebook-feed {
        display: block;
        max-width: calc( 50% - var(--gap-3));
        float: left;
    }
}

#event-feed .event-date {
    font-size: 13px;
    color: white;
    height: inherit;
    background: var(--blue);
    border-top-right-radius: none;
    display: block;
}

#event-feed .event-date::before {
    content: url(../images/calendar.svg);
    display: inline-block;
    padding: 5px;
    height: inherit;
    background: #F4F7F9;
    margin-right: .5rem;
    vertical-align: middle;
    padding: 3px;
    padding-top: 9px;
}


/*--------------------------------------------------------
				Sponsors Row
--------------------------------------------------------*/

#sponsors-row>div {
    /*display: -ms-grid;*/
    /*^^ IE's buggy grid implementation isn't worth it*/
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 1em 2em;
}

@media (max-width: 990px) {
    #sponsors-row>div {
        -ms-grid-columns: (1fr)[5];
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 800px) {
    #sponsors-row>div {
        -ms-grid-columns: (1fr)[4];
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    #sponsors-row>div {
        -ms-grid-columns: (1fr)[3];
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    #sponsors-row>div {
        -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    #sponsors-row>div {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }
}

#sponsors-row img {
    /*This will be applied if the browser doesn't support display: grid*/
    display: inline-block;
    max-width: calc(100% / 4);
    max-height: 86px;
    margin: 20px 10px;
}

@supports ((display: -ms-grid) or (display: grid)) {
    #sponsors-row img {
        /*This will be applied if the browser supports display: grid*/
        margin: auto;
        max-width: 100%;
        max-height: 80px;
        margin: auto;
    }
    @media (max-width: 500px) {
        #sponsors-row img {
            max-width: 200px;
        }
    }
}


/*--------------------------------------------------------
				CSS Styles for Inner Pages
--------------------------------------------------------*/


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


/*--------------------------------------------------------
						Footer
--------------------------------------------------------*/

footer {
    background: var(--blue);
    padding-top: var(--gap-3);
    padding-bottom: var(--gap-4);
    color: white;
}

footer p a {
    text-decoration: underline;
}

footer .social-links {
    position: absolute;
    right: 0;
    top: -10px;
}

@media (max-width: 800px) {
    footer .social-links {
        position: relative;
        top: unset;
    }
}

footer .social-links svg {
    border: 1px solid #91A1B4;
}

footer .social-links svg g[class*="-icon"] path {
    fill: #91A1B4;
}


/*--------------------------------------------------------
						IE Fixes
--------------------------------------------------------*/


/*IE doesn't support CSS Variables */


/*See ie-styles.css for explicitly stated values in place of css variables*/

@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
    /*@import url('/css/ie-styles.css') ;*/
}


/*--------------------------------------------------------
						Safari Fixes
--------------------------------------------------------*/