/*
Theme Name: Aquaya Theme
Description: Theme created by <a href="http://www.2leaf.com/">2Leaf</a>. All rights reserved.
Version: 1.1.1 (2020-11-18)
Author: 2Leaf
Author URI: http://www.2leaf.com/
*/

@import url("https://use.typekit.net/khi6tec.css");
* {
    box-sizing: border-box;
}

html:not(.category-page) {
    scroll-behavior: smooth;
}

body {
    font-family: 'Europa';
    font-weight: 400;
    color: #444444;
    font-size: 18px;
}

.btn.focus, .btn:focus {
    box-shadow: none;
    outline: none;
}

a {
    color: #444444;
    transition: color 0.3s;
}

hr {
    margin-top: 0!important;
    margin-bottom: 24px!important;
}

.dropdown-menu li.active, .dropdown-item:focus, .dropdown-item:hover {
    background-color: #e9eef1;
    color: #005987;
}

.dropdown-toggle::after {
    border: 0;
    border: solid #005987;
    border-width: 0 1px 1px 0;
    padding: 3px;
    display: inline-block;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

.navbar-brand {
    max-width: 150px;
}

.navbar {
    background: #FFF;
    padding: 20px 20px;
    text-align: center;
}

.navbar-brand img.desktop {
    display: none;
}

.navbar-brand img {
    width: 100%;
}

.navbar-light .navbar-nav .nav-link {
    color: #005987;
    font-weight: 400;
}

.navbar-light .navbar-nav .active .nav-link, .navbar-light .navbar-nav .dropdown>.nav-link {
    color: #005987;
    font-weight: 400;
    transform-origin: 0% 50%;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #005987;
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgb(139,228,251)' stroke-width='2' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

.dropdown-menu {
    text-align: center;
}

.dropdown-item {
    color: #005987;
}

.navbar-light .navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    outline: none;
    border: none;
}

.header-top {
    background: url('images/hero-top.png');
    background-repeat: no-repeat;
    height: 100%;
    width: 100%;
    background-position: center;
    background-size: cover;
}

.header-bottom {
    background: url('images/hero-bottom.png');
    background-repeat: no-repeat;
    display: none;
    width: 100%;
    background-size: cover;
}

.header-content {
    position: relative;
    height: 600px;
}

.header-text-contain {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
}

.header-text {
    position: absolute;
    text-align: center;
}

.header-text p {
    margin-bottom: 0;
    font-size: 23px;
}

.header-text p:first-of-type {
    background: #005987;
    color: #8be4fb;
    padding: 10px 20px;
}

.header-text p:last-of-type {
    padding: 10px 20px;
    background-color: #8be4fb;
    color: #005987;
    margin: auto;
}

/** who we are **/

.btn {
    padding: 16px 28px;
    border-radius: 0;
    letter-spacing: 1.29px;
    font-size: 14px;
    text-transform: uppercase;
}

.btn.btn-outline {
    border: 3px solid #8be4fb;
}

.btn.btn-outline:hover {
    background-color: #8be4fb;
}

.hide-img-mobile .image-side {
    display: none;
}

section:not(.overlap):not(.standard-page):not(#post-content) {
    overflow-x: hidden;
}

section.with-padding {
    padding: 80px 20px
}

hr {
    background-color: #8be4fb;
    height: 3px;
    transition: height 0.3s;
}

hr.short {
    width: 50px;
    margin-left: 0;
    margin-right: auto;
}

section.corner-img .container {
    position: relative;
}

section.corner-img .container>img {
    position: absolute;
    right: 0;
    top: 0;
}

.small-heading {
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 24px;
    letter-spacing: 2.4px;
    color: #444444;
}

.blue .small-heading {
    color: #FFFFFF;
}

.subheading {
    font-size: 34px;
    color: #005987;
    margin-bottom: 21px;
}

.buttons-contain {
    text-align: center;
}

.buttons-contain .btn {
    margin-bottom: 20px;
    display: block;
}

section.corner-img .columns {
    padding-top: 170px;
}

ul {
    margin-bottom: 20px;
}

ul li {
    margin-bottom: 10px;
}

/** status **/

#stats.parallax-background {
    background-image: url('images/stats.jpg');
    min-height: 400px;
}

.parallax-background {
    background-position: center;
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    background-size: cover;
    /* background-size: 300%; */
    -moz-transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    position: relative;
    z-index: 0;
    background-attachment: fixed;
}

.overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: rgb(19, 92, 128);
    opacity: 0.6;
}

.stats-numbers {
    height: 100%;
    width: 100%;
    min-height: 400px;
    color: #FFF;
    font-weight: 700;
    font-size: 24px;
}

.stats-numbers>div>div {
    flex: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}

.stats-numbers h4 {
    font-size: 110px;
    font-weight: 700;
    letter-spacing: -1.15px;
    font-weight: 700;
    color: #FFF;
    text-align: center;
    flex: 1 100%;
}

/** what we do **/

#caseCarousel {
    max-width: 300px;
    margin: auto;
}

#caseCarousel .carousel-item img {
    width: 80%;
    margin: auto;
    display: block;
    max-height: 180px;
    object-fit: cover;
}

#caseCarousel .case-card {
    margin-bottom: 30px;
}

.carousel-side {
    padding: 0 20px;
}

#caseCarousel .carousel-item p {
    width: 95%;
    background: #e0eced;
    padding: 22px 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.66px;
    text-align: center;
    color: #444444;
    margin: auto;
}

.line-container {
    height: 9px;
}

.line-container.thick {
    height: 17px;
}

.small-heading.light {
    color: #cccccc;
}

.carousel-control-prev-icon {
    background-image: url('images/carousel-prev.svg');
}

.carousel-control-next-icon {
    background-image: url('images/carousel-next.svg');
}

.carousel-control-next, .carousel-control-prev {
    width: 50px;
    align-items: flex-start;
    padding-top: 80px;
}

.carousel-control-next-icon, .carousel-control-prev-icon {
    width: 50px;
    background-size: 100%;
    height: 20px;
}

.carousel-control-prev {
    left: -20px;
}

.carousel-control-next {
    right: -20px;
}

.carousel-control-next, .carousel-control-prev {
    opacity: 1;
}

#caseCarousel .subheading {
    font-size: 22px;
    margin-bottom: 58px;
}

.text-carousel .text-side {
    margin-bottom: 80px;
}

.text-carousel .text-side .buttons-contain {
    justify-content: center;
}

#caseCarousel hr {
    margin-bottom: 0;
}

#caseCarousel .line-container {
    margin-bottom: 41px!important;
}

#caseCarousel .carousel-item:hover hr {
    height: 8px;
}

#caseCarousel .carousel-item .subheading {
    transition: 0.3s;
}

#caseCarousel .carousel-item:hover .subheading {
    color: #8be4fb;
}

ol.carousel-indicators {
    position: absolute;
    bottom: 0;
    margin: 0;
    left: 0;
    right: 0;
    width: auto;
    z-index: 0;
}

ol.carousel-indicators li, ol.carousel-indicators li.active {
    float: left;
    width: 12px;
    height: 12px;
    margin: 4px;
    border-radius: 50%;
    border: 2px solid #8be4fb;
    background: transparent;
}

ol.carousel-indicators li.active {
    background: #8be4fb;
}

/** sponsors **/

.blue {
    background-color: #005987;
    color: #FFF;
}

.blue .modes .btn.btn-outline {
    color: #8be4fb;
    background: none;
}

.blue .modes .btn.btn-outline.active {
    background: #8be4fb;
    color: #005987;
}

.btn.active {
    background: #8be4fb;
}

.blue .modes .btn.btn-outline:hover {
    background: #8be4fb;
    color: #005987;
}

.sponsor-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.sponsor-logos>.sponsor {
    flex: 0 0 25%;
    margin-right: 4%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.sponsor-logos>.sponsor:nth-of-type(3n) {
    margin-right: 0;
}

.sponsor img {
    max-width: 100%;
}

#sponsors .buttons-contain {
    margin-bottom: 90px;
}

#national {
    display: none;
}

#national ul {
    padding-left: 20px;
}

.light-blue-heading {
    color: #8be4fb;
}

.light-blue-heading-normal {
    color: #8be4fb;
}

#nationalCarousel .carousel-item ul li {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
}

#nationalCarousel .carousel-control-next, #nationalCarousel .carousel-control-prev {
    align-items: center;
    padding: 0;
    z-index: 5;
    height: 50px;
    margin-bottom: 0;
    margin-top: auto;
}

#nationalCarousel .carousel-flex {
    padding: 0 40px;
}

#nationalCarousel .carousel-flex>div {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

#nationalCarousel .carousel-flex>div>div {
    flex: 0 0 300px;
}

#nationalCarousel .carousel-flex h4 {
    flex: 1 100%;
    text-align: left;
    margin-bottom: 20px;
}

#nationalCarousel .carousel-control-next {
    right: 0;
}

#nationalCarousel .carousel-control-prev {
    left: 0;
    display: none;
}

#nationalCarousel ul li {
    margin-bottom: 0;
}

.blue .carousel-control-prev-icon {
    background-image: url('images/carousel-prev-white.png');
}

.blue .carousel-control-next-icon {
    background-image: url('images/carousel-next-white.png');
}

/* thought leadership */

.btn.loadmore {
    display: block;
    margin: auto;
}

.top-heading {
    margin-bottom: 65px;
}

.top-heading p {
    margin-bottom: 20px;
}

.article-grid>a {
    margin-bottom: 60px;
    display: block;
    text-decoration: none;
}

.article-grid>a:hover hr {
    height: 16px;
}

.article-grid>a:hover .subheading {
    color: #8be4fb;
}

.article-grid .subheading {
    font-size: 24px;
    transition: color 0.3s;
}

.article-grid .date {
    color: #444444;
    font-size: 16px;
}

.article-grid .line-container {
    margin: 0 0 26px 0;
}

#blog-body .overlapped p {
    margin-bottom: 50px;
}

.blog-posts article .title {
    transition: color 0.3s;
}

.blog-posts article:hover .title {
    color: #8be4fb;
}

.blog-posts .post-top {
    width: 100%;
}

.blog-posts article {
    position: relative;
}

.blog-posts article>a {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 9;
}

/* where we've worked */

#where-we-work.parallax-background {
    background-image: url('images/map-section-overlay.png');
}

.map-top {
    text-align: center;
    margin-bottom: 80px;
}

.map-top hr {
    margin: auto;
}

.blue .subheading {
    color: #FFF;
}

#where-we-work img {
    width: 100%;
}

#where-we-work .image-side {
    margin-bottom: 60px;
}

.map-flex>div>div {
    margin-bottom: 30px;
}

.map-flex .text-side {
    text-align: center;
}

/** footer**/

footer {
    padding: 100px 20px 60px 20px;
    text-align: center;
}

footer .top img {
    margin-bottom: 60px;
}

footer a {
    color: #005987;
}

a:hover {
    color: #8be4fb;
    text-decoration: none;
}

footer ul {
    list-style-type: none;
    padding: 0;
}

footer .buttons-contain {
    text-align: center;
    justify-content: center;
}

footer .container>div {
    margin-bottom: 50px;
}

footer .left>div {
    margin-bottom: 50px;
}

footer .right>div {
    margin-bottom: 50px;
}

footer .right>div:last-of-type {
    margin-bottom: 0;
}

footer .footer-socials svg {
    width: 35px;
    height: 35px;
    fill: #005987;
    transition: fill 0.3s;
}

footer .footer-socials svg:hover {
    fill: #8be4fb;
}

/** organization page **/

.capabilities .header-content, .our-team .header-content {
    height: 500px;
}

.capabilities .header-top {
    background-image: url('images/organization-header1.jpg');
}

.capabilities .header-bottom {
    background-image: url('images/organization-header2.png');
}

.image-under img {
    width: 100%;
    margin-top: 60px;
    z-index: -1;
}

.overlapped {
    z-index: 5000;
}

.overlap.tall .buttons-contain>.btn {
    display: block;
    width: auto;
}

/** organization our values **/

#our-values {
    background-image: url('images/organization-values-bg.png');
}

.values {
    margin-top: 70px;
}

.values>div {
    text-align: center;
    margin-bottom: 60px;
}

.values>div img {
    margin-bottom: 40px;
    max-height: 70px;
}

.values>div h3 {
    font-size: 34px;
}

/* organization open source database */

section#database.corner-img .corner-img, section#our-process.corner-img .corner-img, section.corner-img.corner-left .corner-img {
    left: 15px;
}

.with-block img, section.text-image .image-side img {
    width: 100%;
}

section.text-image .image-side:not(.with-block) img {
    max-width: 500px;
    margin-top: 100px;
}

section#database .columns>div:first-of-type, section#our-process .columns>div:first-of-type {
    padding-top: 100px;
}

/* organization our team */

.our-team .header-text p:first-of-type {
    display: none;
}

.mobile-title {
    padding-bottom: 60px;
}

.underline {
    text-decoration: underline;
}

#our-team-intro {
    text-align: center;
    background-image: url('images/our-team-bg.jpg');
}

#our-team-intro .container {
    max-width: 800px;
}

#our-team-intro hr {
    margin: auto;
}

.blue .btn {
    color: #8be4fb;
}

.blue .btn:hover {
    color: #444444;
}

.blue .btn.btn-outline:hover {
    background: #8be4fb;
}

#our-team-intro p {
    max-width: 559px;
    margin: auto;
    margin-bottom: 33px;
}

#our-team-intro .overlay {
    background-color: #005987;
    opacity: 0.6;
}

/* organization philanthropy */

section.corner-img#philanthropy .subheading {
    max-width: none;
}

/** organization we're here for you **/

#contact-blurb.parallax-background {
    background-image: url('images/organization-contact-bg.png');
}

#contact-blurb {
    text-align: center;
}

#contact-blurb hr {
    margin: auto;
}

#contact-blurb p {
    margin-bottom: 28px;
}

/* team page */

.our-team .header-text {
    margin: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.our-team .header-text p:first-of-type {
    max-width: none;
    max-height: none;
    max-width: 850px;
    padding: 30px 60px 30px 60px;
    background: #FFF;
    text-align: left;
    margin-left: 0;
    margin-top: 100px;
}

.our-team .header-top {
    background-image: url('images/team-header1.png');
}

.our-team .header-bottom {
    background-image: url('images/team-header2.png');
}

.our-team .subheading {
    font-size: 20px;
}

.team-members h4 {
    color: #005987;
    font-size: 24px;
}

.team-members img {
    width: 100%;
}

.team-members {
    margin-top: 50px;
}

.team-members .bottom-text {
    padding-top: 12px;
}

.team-members p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: normal;
    line-height: normal;
}

.not-uppercase {
    text-transform: none;
}

.team-members>article {
    max-width: 236px;
    margin: auto;
    margin-bottom: 56px;
}

.team-members>article a {
    color: #444444;
}

.team-members>article h4 {
    transition: color 0.3s;
}

.team-members>article:hover h4 {
    color: #8be4fb;
}

.team-members>article img {
    border-bottom: solid #8be4fb 0;
    transition: all 0.3s;
    object-fit: cover;
    height: 100%;
}

.blog-posts article a>div {
    display: flex;
    flex-wrap: wrap;
}

.blog-posts .post-all {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* .team-members>article:hover img {
    border-bottom: solid #8be4fb 16px;
} */

.team-members .member-photo .line-container {
    height: 16px;
}

.team-members .member-photo .line-container hr {
    height: 0;
    transition: height 0.3s;
}

.team-members>article:hover .line-container hr {
    height: 100%;
}

/** team join our team **/

#join-team.parallax-background {
    background-image: url('images/our-team-join-bg.png');
}

#join-team .overlay {
    background-color: #005987;
    opacity: 0.6;
}

#join-team {
    text-align: center;
    min-height: 750px;
    display: flex;
    align-items: center;
}

#join-team hr {
    margin: auto;
}

#join-team p {
    margin-bottom: 38px;
}

#join-team .subheading {
    max-width: 780px;
    margin: auto;
    font-size: 34px;
    margin-bottom: 20px;
}

/** team board of directors **/

.directors a h4 {
    color: #005987;
    transition: color 0.3s;
}

.directors article:hover a h4 {
    color: #8be4fb;
}

.directors a {
    color: #444444;
    ;
}

.directors {
    margin-top: 56px;
}

.four-column>article {
    margin-bottom: 60px;
}

/** team bios **/

#our-team .subheading {
    font-size: 34px;
    max-width: 700px;
}

.team-bios h4, .board-bios h4 {
    color: #005987;
    font-size: 28px;
}

.team-bios article {
    text-align: left;
    margin-bottom: 90px;
}

.team-bios article:last-of-type {
    margin-bottom: 0;
}

.team-bios {
    margin-top: 49px;
    font-size: 16px;
}

.board-bios {
    margin-top: 40px;
    font-size: 16px;
}

.board-bios .board-title {
    font-weight: 700;
}

.board-bios>article {
    margin-bottom: 96px;
}

#our-team {
    padding-bottom: 120px;
}

.team-bios img {
    min-width: 232px;
    min-height: 232px;
    object-fit: cover;
    margin-bottom: 32px;
}

/** THOUGHT LEADERSHIP PAGE **/

.thought-leadership .header-top {
    background-image: url('images/thought-leadership-header1.jpg');
}

.thought-leadership .header-bottom {
    background-image: url('images/thought-leadership-header2.jpg');
}

#blog-body .overlapped .buttons-contain {
    display: flex;
    flex-wrap: wrap;
}

#blog-body .overlapped .buttons-contain>.btn {
    flex: 1 100%;
}

.blog-posts hr {
    transition: all 0.3s;
    margin: 0!important;
}

.blog-posts article:hover hr {
    height: 16px;
}

.blog-posts article img {
    border-bottom: 0 solid #8be4fb;
    transition: all 0.3s;
}

.blog-posts article:hover img {
    border-bottom: 16px solid #8be4fb;
}

.three-column article {
    max-width: 350px;
    margin: auto;
    margin-bottom: 84px;
    display: flex;
    flex-wrap: wrap;
}

.three-column .line-container {
    align-self: flex-end;
    flex: 0 0 16px;
    width: 100%;
}

.three-column article img {
    width: 100%;
}

.blog-posts {
    padding-top: 80px;
}

.blog-posts.three-column article img {
    height: 242px;
    object-fit: cover;
}

.blog-posts article a {
    width: 100%;
}

.blog-posts .post-bottom {
    padding: 27px 0 0 0;
    width: 100%;
    flex: 1;
}

.category, .category ul a {
    color: #cccccc;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2.4px;
    display: flex;
    justify-content: flex-start;
}

.category span {
    margin-right: 8px;
}

.title {
    color: #005987;
    font-size: 24px;
}

.date {
    color: #444444;
    font-size: 16px;
}

#blog-body .buttons-contain {
    text-align: center;
    width: 100%;
    justify-content: center;
}

.centered {
    text-align: center;
}

.centered hr {
    margin: auto;
}

#newsletter-join form {
    max-width: 600px;
    margin: auto;
    text-align: left;
}

#newsletter-form input[type='submit'] {
    margin-top: 32px;
}

form input {
    background: none;
    border: none;
    padding-left: 15px;
    color: #444444;
    width: 100%;
}

input:focus {
    outline: none;
}

.blue form input {
    color: #FFF;
}

.blue form .input-group {
    border-bottom: 2px solid #FFF;
}

form label {
    margin: 0;
}

form .input-group {
    border-bottom: 2px solid #444444;
    margin-bottom: 30px;
    padding: 0 0 10px 0;
}

fieldset label {
    display: inline-block!important;
    border-bottom: none!important;
    margin-bottom: 0;
    vertical-align: middle;
}

fieldset input {
    width: auto!important;
}

input[type='checkbox'] {
    -webkit-appearance: none;
    background: none;
    border: 2px solid #FFF;
    padding: 9px;
    display: inline-block;
    position: relative;
}

input[type='checkbox']:checked:after {
    content: '\2714';
    font-size: 14px;
    position: absolute;
    top: -3px;
    left: 3px;
    color: #FFF;
}

form input[type='submit'] {
    max-width: 148px;
    font-size: 14px;
}

form .buttons-contain {
    text-align: center;
    justify-content: center;
}

form .buttons-contain .btn {
    margin: auto;
}

#newsletter-join.parallax-background {
    background-image: url('images/map-section-overlay.png');
}

/* post page */

.header-content .header-full {
    background-size: cover;
    width: 100%;
    height: 100%;
    background-position: center;
    z-index: -1;
    max-width: 1200px;
    margin: auto;
}

#post-content {
    width: 100%;
    position: relative;
}

#post-content a {
    font-weight: bold;
}

#post-content .container {
    position: relative;
}

#post-content article {
    background: #FFF;
    padding: 50px 40px;
    max-width: 768px;
    margin: auto;
    margin-top: -150px;
}

#post-content .post-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    width: 100%;
}

#post-content .subheading {
    font-size: 30px;
    margin-bottom: 50px;
}

.post-categories {
    padding: 0;
    list-style-type: none;
}

/*contact page*/

.contact .header-top {
    background-image: url('images/contact-header1.jpg');
}

.contact .header-bottom {
    background-image: url('images/contact-header2.png');
}

.contact-subtext {
    max-width: 150px;
    display: none;
}

label[for="message"] {
    border-bottom: none;
    margin-bottom: 0;
}

textarea {
    width: 100%;
    resize: none;
    outline: none;
    border: none;
    border-bottom: 2px solid #444444;
    color: #444444;
}

#contact-section .buttons-contain {
    text-align: right;
    margin-top: 45px;
}

#contact-section .subheading {
    margin-bottom: 45px;
}

.error-404 .header-text {
    max-width: none;
    justify-content: center;
    height: 100%;
    align-items: center;
    display: flex;
}

.error-404 .header-text h1 {
    background: #005987;
    color: #8be4fb;
    padding: 10px 20px;
}

/* project W page */

.project-w .header-top {
    background: url('images/projectw-header1.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.project-w .header-bottom {
    background: url('images/projectw-header2.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.subsection {
    min-height: 600px;
    display: flex;
    align-items: center;
}

.subsection .overlay {
    opacity: 0.84;
}

.subsection .container {
    max-width: 800px;
}

.data-item {
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
}

.data-item p {
    flex: 1 100%;
    font-size: 28px;
}

.data-item img {
    max-width: 60px;
    max-height: 60px;
    margin: auto;
    margin-bottom: 30px;
}

#data-types {
    max-width: 850px;
    margin: auto;
}

@media only screen and (min-width:500px) {
    .overlap.tall .buttons-contain {
        display: flex;
    }
    .overlap.tall .buttons-contain>.btn {
        width: auto;
        margin-right: 15px;
    }
    .overlap.tall .buttons-contain>.btn:last-of-type {
        margin-right: 0;
    }
    form label {
        display: flex;
        white-space: nowrap;
    }
}

@media only screen and (min-width:600px) {
    #blog-body .overlapped .buttons-contain {
        justify-content: space-between;
    }
    #blog-body .overlapped .buttons-contain>.btn {
        flex: 0 0 45%;
        margin-right: 10%;
    }
    #blog-body .overlapped .buttons-contain>.btn:last-of-type, #blog-body .overlapped .buttons-contain>.btn:nth-of-type(even) {
        margin-right: 0;
    }
    section.overlap#contact-section .container .overlapped {
        max-width: 670px;
        padding: 40px 50px;
    }
    .buttons-contain {
        display: flex;
    }
    .buttons-contain>.btn {
        margin-right: 15px;
    }
    .buttons-contain>.btn:last-of-type {
        margin-right: 0;
        margin-left: 0;
    }
}

@media only screen and (min-width:768px) {
    .navbar-brand img.mobile {
        display: none;
    }
    .navbar-brand img.desktop {
        display: block;
    }
    .header-content {
        height: 800px;
    }
    .header-text p {
        font-size: 40px;
    }
    /* .buttons-contain {
        text-align: left;
        display:flex;
    } */
    .buttons-contain .btn {
        margin-bottom: 0;
        margin-right: 45px;
    }
    #blog-body .buttons-contain .btn {
        margin-right: 15px;
    }
    .buttons-contain .btn:last-of-type {
        margin-right: 0;
        margin-left: 0;
    }
    .stats-numbers {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .stats-numbers>div {
        display: flex;
        align-items: flex-start;
    }
    .carousel-control-next, .carousel-control-prev {
        width: 70px;
    }
    .carousel-control-next-icon, .carousel-control-prev-icon {
        width: 70px;
        background-size: 100%;
        height: 40px;
    }
    .carousel-control-prev {
        left: -70px;
    }
    .carousel-control-next {
        right: -70px;
    }
    /* .parallax-background {
        background-size: 200%;
    } */
    .sponsor-logos>.sponsor {
        flex: 0 0 19%;
        margin-right: 3%;
        display: flex;
    }
    .sponsor-logos>.sponsor:nth-of-type(3n) {
        margin-right: 3%;
    }
    .sponsor-logos>.sponsor:nth-of-type(4n) {
        margin-right: 0;
    }
    .top-heading {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
    }
    .top-heading p {
        margin-bottom: 0;
    }
    .article-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .article-grid>a {
        flex: 0 0 45%;
        margin-right: 5%;
    }
    .article-grid>a:nth-of-type(even) {
        margin-right: 0;
    }
    .team-members {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .team-members>article {
        flex: 0 0 30%;
        margin: 0 2% 56px 0;
    }
    .team-members>article:nth-of-type(3n) {
        margin-right: 0;
    }
    .four-column {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .four-column>article {
        flex: 0 0 40%;
        /* margin-right: 20%; */
        border-top: 0 solid #8be4fb;
        transition: all 0.3s;
        padding-top: 8px;
    }
    .four-column>article:nth-of-type(even), .four-column>article:last-of-type {
        margin-right: 0;
    }
    /* .four-column>article:hover {
        border-top: 3px solid #8be4fb;
    } */
    .four-column .line-container {
        height: 3px;
        margin-bottom: 10px;
    }
    .four-column .line-container hr {
        width: 0;
        height: 0;
        transition: height 0.3s;
    }
    .four-column>article:hover .line-container hr {
        width: 100%;
        height: 100%;
    }
    #blog-body .overlapped .subheading, .project-w .overlapped .subheading {
        max-width: none;
        font-size: 50px;
        margin-bottom: 21px;
    }
    #blog-body .overlapped .buttons-contain>.btn {
        margin-bottom: 20px;
        margin-right: 0;
    }
    .three-column>div, .three-column {
        display: flex;
        flex-wrap: wrap;
    }
    .three-column article {
        flex: 0 0 45%;
        margin: 0 10% 84px 0;
    }
    .three-column article:nth-of-type(even), .three-column article:last-of-type {
        margin-right: 0;
    }
    form .form-flex {
        display: flex;
        flex-wrap: wrap;
    }
    form .form-flex>.input-group {
        margin-right: 10%;
        flex: 0 0 45%;
    }
    form .form-flex>label:last-of-type, form .form-flex>.input-group:nth-of-type(even) {
        margin-right: 0;
    }
    form input {
        flex: 1;
        width: 100%;
    }
    #post-content .subheading {
        font-size: 50px;
    }
    #sponsors .buttons-contain .btn {
        margin-right: 11px;
    }
    #sponsors .buttons-contain .btn:last-of-type {
        margin-right: 0;
    }
}

@media only screen and (min-width:992px) {
    .dropdown-menu {
        text-align: left;
    }
    .navbar-nav .nav-item {
        margin-right: 25px;
    }
    .navbar-nav .nav-item:last-of-type {
        margin-right: 0;
    }
    .dropdown-menu .nav-item {
        margin: 0;
    }
    .header-content {
        display: flex;
        height: 750px;
    }
    .capabilities .header-content, .our-team .header-content {
        height: 750px;
    }
    .header-text-contain {
        padding-top: 80px;
        justify-content: flex-end;
    }
    .header-top, .header-bottom {
        height: 100%;
    }
    .header-bottom {
        background-position: right;
        display: block;
    }
    .header-top {
        /* background-position: top; */
        flex: 0 0 60%;
    }
    .header-text {
        display: flex;
    }
    .header-text p {
        font-size: 50px;
    }
    .header-text p:first-of-type {
        max-width: 360px;
        padding: 20px;
        max-height: 153px;
        line-height: 56px;
    }
    .header-text p:last-of-type {
        max-width: 300px;
        padding: 20px 26px 26px 26px;
        line-height: 56px;
        margin-top: 58px;
    }
    .hide-img-mobile .image-side {
        display: block;
        display: flex;
        align-items: flex-end;
        position: relative;
    }
    section.corner-img .columns {
        padding-top: 0;
    }
    .with-block img, section.text-image .image-side.with-block img {
        width: 80%;
        z-index: 1;
    }
    .with-block>div {
        position: relative;
    }
    #grow-block-right-block_5fcfe5827b803 .with-block>div {
        width: 470px;
    }
    .with-block .grow-block {
        width: 100%;
        height: 162px;
        background-color: #e0eced;
        position: absolute;
        left: 0;
        bottom: 0;
        z-index: -1;
        width: 0;
    }
    section.image-top.hide-img-mobile .image-side.with-block {
        align-items: center;
    }
    section.image-top.hide-img-mobile .image-side.with-block img {
        margin-left: 25px;
    }
    .columns {
        display: flex;
        justify-content: space-between;
    }
    .image-text .columns>div:first-of-type {
        margin-right: 70px;
        flex: 0 0 300px;
    }
    section.corner-img .subheading {
        max-width: 400px;
    }
    .text-carousel {
        display: flex;
        align-items: center;
    }
    .text-carousel .carousel-side {
        flex: 0 0 350px;
        min-height: 660px;
    }
    .text-carousel .text-side {
        margin-right: 120px;
        margin-bottom: 0;
    }
    .text-carousel .text-side .buttons-contain {
        justify-content: flex-start;
    }
    .carousel-control-next, .carousel-control-prev {
        width: 80px;
    }
    .carousel-control-next-icon, .carousel-control-prev-icon {
        width: 80px;
        background-size: 100%;
        height: 50px;
    }
    .carousel-control-prev {
        left: -60px;
    }
    .carousel-control-next {
        right: -60px;
    }
    /* .parallax-background {
        background-size: 150%;
    } */
    .sponsor-logos>.sponsor {
        flex: 0 0 12%;
        margin-right: 1%;
        margin-bottom: 90px;
    }
    .sponsor-logos>.sponsor:nth-of-type(3n) {
        margin-right: 1%;
    }
    .sponsor-logos>.sponsor:nth-of-type(4n) {
        margin-right: 1%;
    }
    .sponsor-logos>.sponsor:nth-of-type(6n) {
        margin-right: 0;
    }
    .sponsor-logos>.sponsor:nth-last-of-type(-n+5) {
        margin-bottom: 0;
    }
    #nationalCarousel .carousel-flex {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 0;
        padding-bottom: 80px;
    }
    #nationalCarousel .carousel-flex>div {
        flex: 0 0 32%;
        margin-right: 2%;
        margin-bottom: 0;
    }
    #nationalCarousel .carousel-flex>div>div {
        flex: 0 1 auto;
    }
    #nationalCarousel .carousel-flex>div:last-of-type {
        margin-right: 0;
    }
    #nationalCarousel .carousel-flex h4 {
        text-align: left;
    }
    #nationalCarousel .carousel-control-next, #nationalCarousel .carousel-control-prev {
        align-items: flex-end;
    }
    .article-grid>a {
        flex: 0 0 29%;
        margin-right: 2%;
    }
    .article-grid>a:nth-of-type(even) {
        margin-right: 2%;
    }
    .article-grid>a:nth-of-type(3n) {
        margin-right: 0;
    }
    .map-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .map-flex .text-side {
        text-align: left;
        max-width: 190px;
        margin-right: 30px;
        order: 1;
    }
    #where-we-work .image-side {
        margin-bottom: 0;
        order: 2;
    }
    footer {
        text-align: left;
    }
    footer .top {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    footer .top .buttons-contain {
        display: flex;
        flex: 1;
        justify-content: flex-end;
    }
    footer .top .buttons-contain>.btn:first-of-type {
        flex: 0 0 224px;
    }
    footer .top .buttons-contain>.btn:last-of-type {
        flex: 0 0 280px;
    }
    .sf-office {
        flex: 0 0 224px;
    }
    .nairobi-office {
        flex: 0 0 280px;
    }
    footer .middle .left>div {
        margin-right: 44px;
    }
    footer .middle .left>div:last-of-type {
        margin-right: 0;
    }
    footer .middle .left, footer .middle .right {
        display: flex;
        justify-content: space-between;
    }
    footer .middle .right {
        /* flex: 1; */
        flex: 0 0 549px;
    }
    footer .container>div {
        margin-bottom: 0;
    }
    footer .container .middle {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 90px;
    }
    footer .left>div {
        margin-bottom: 0;
    }
    footer .right>div {
        margin-bottom: 0;
    }
    footer .right>div:last-of-type {
        margin-bottom: 0;
    }
    .nav-item:after {
        display: block;
        content: '';
        border-bottom: 3px solid #8be4fb;
        transform: scaleX(0);
        transition: transform 250ms ease-in-out
    }
    .dropdown-menu .nav-item:after {
        border-bottom: 0;
    }
    .nav-item:hover:after, .nav-item.active:after {
        transform: scaleX(1);
    }
    .nav-item:after {
        transform-origin: 0% 50%;
    }
    .navbar {
        text-align: left;
    }
    section.overlap .container {
        position: relative;
    }
    section.overlap .container .overlapped {
        position: absolute;
        right: 0;
        top: -300px;
        background: #FFF;
        padding: 40px 60px 47px 60px;
        max-width: 760px;
        margin-right: 0;
        margin-left: auto;
    }
    .image-under img {
        width: 70%;
        margin-top: 200px;
    }
    .values {
        display: flex;
        justify-content: center;
    }
    .values>div {
        flex: 0 0 29%;
        margin-right: 5%;
        margin-bottom: 0;
    }
    .values>div:last-of-type {
        margin-right: 0;
    }
    section#database .columns>div:first-of-type {
        flex: 0 0 454px;
        padding-top: 200px;
    }
    section#our-process .columns>div:first-of-type, section.text-image .columns>div:first-of-type {
        flex: 0 0 500px;
        padding-top: 200px;
    }
    section.corner-img#our-process .subheading, section.corner-img.text-image .subheading {
        max-width: none;
    }
    section#database.hide-img-mobile .image-side, section.image-top.hide-img-mobile .image-side {
        align-items: flex-start;
        margin-left: 30px;
    }
    section.corner-img#philanthropy .text-side {
        padding-top: 150px;
    }
    #philanthropy.hide-img-mobile .image-side {
        align-items: flex-start;
    }
    .our-team .header-text {
        align-items: flex-end;
    }
    .our-team .header-text p:first-of-type {
        margin-top: 0;
        padding: 30px 60px 0 60px;
        display: block;
    }
    .our-team .subheading {
        font-size: 50px;
    }
    .team-members>article {
        flex: 0 0 23%;
        margin-right: 2%;
    }
    .team-members>article:nth-of-type(3n) {
        margin-right: 2%;
    }
    .team-members>article:nth-of-type(4n) {
        margin-right: 0;
    }
    .mobile-title {
        display: none;
    }
    /* .team-members>article:nth-last-of-type(3){
        flex:0 0 46%;
        max-width:none;
        margin-right:0;
    }
    .team-members>article:nth-last-of-type(1){
        flex:0 0 69%;
        max-width:none;
    }
    .team-members>article:nth-last-of-type(3) img, .team-members>article:nth-last-of-type(1) img{
        max-width:236px;
    } */
    .four-column {
        justify-content: flex-start;
    }
    .four-column>article {
        flex: 0 0 23%;
        margin-right: 2%;
    }
    .four-column>article:nth-of-type(even) {
        margin-right: 2%;
    }
    .four-column>article:nth-of-type(4n) {
        margin-right: 0;
    }
    .team-bios article {
        display: flex;
        text-align: left;
    }
    .team-bios article>div:first-of-type {
        margin-right: 50px;
    }
    .board-bios {
        display: flex;
        flex-wrap: wrap;
    }
    .board-bios>article {
        flex: 0 0 46%;
        margin-right: 8%;
    }
    .board-bios>article:nth-of-type(even), .board-bios>article:last-of-type {
        margin-right: 0;
    }
    section.overlap.left .container .overlapped {
        left: 0;
        margin-left: 0;
        margin-right: auto;
        top: -350px;
        max-width: 840px;
        padding: 39px 49px 20px 58px;
    }
    #blog-body .overlapped .buttons-contain>.btn {
        margin-bottom: 0;
        flex: 0 0 auto;
    }
    .three-column article {
        flex: 0 0 30%;
        margin-right: 5%;
    }
    .three-column article:nth-of-type(even) {
        margin-right: 5%;
    }
    /* comment this rule and uncomment the rules below to bring back rectangles */
    .three-column article:nth-of-type(3n), .three-column article:last-of-type {
        margin-right: 0;
    }
    /* .three-column article:nth-of-type(5n+3), .three-column article:last-of-type {
        margin-right: 0;
    }
    .blog-posts.three-column article:nth-of-type(10n+5) {
        flex: 0 0 65%;
        margin-right: 0;
        max-width: none;
    }
    .blog-posts.three-column article:nth-of-type(10n+9) {
        flex: 0 0 65%;
        max-width: none;
        margin-right: 5%;
    }
    .blog-posts.three-column article:nth-of-type(10n+9)+article {
        margin-right: 0;
    } */
    #contact-section {
        padding-bottom: 650px;
    }
    .contact-subtext {
        display: block;
    }
    #contact-section .subheading {
        font-size: 50px;
    }
    section.overlap#contact-section .container .overlapped {
        top: -300px;
        margin-right: 40px;
        min-height: 800px;
    }
    .contact-contain {
        width: 730px;
        height: 294px;
        position: absolute;
        margin-right: 0;
        margin-left: auto;
        right: 0;
    }
    .contact-contain .grow-block {
        height: 100%;
    }
    footer .bottom {
        text-align: center;
    }
}

@media only screen and (min-width:1200px) {
    .image-text .columns>div:first-of-type {
        margin-right: 70px;
        flex: 0 0 427px;
    }
    .team-members p {
        font-size: 14px;
    }
    .contact-subtext {
        max-width: 220px;
    }
    footer .bottom nav {
        margin-left: 5px;
    }
    footer .bottom nav ul li {
        margin-right: 10px;
    }
    footer .bottom nav ul li:last-of-type {
        margin-right: 0;
    }
    footer .bottom, footer .bottom nav ul, footer .left {
        display: flex;
    }
    footer p, footer ul, footer ul li {
        margin: 0;
    }
    footer .container>.bottom {
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
    }
    footer .bottom .right p {
        font-size: 18px;
        font-weight: 700;
        text-transform: uppercase;
        margin: 0;
        margin-right: 10px;
    }
    footer .bottom .right {
        display: flex;
        align-items: center;
    }
    footer .bottom .right a {
        margin-right: 10px;
        display: block;
    }
    footer .bottom .right a:last-of-type {
        margin-right: 0;
    }
    section.overlap#contact-section .container .overlapped {
        max-width: 733px;
    }
    .contact-contain {
        width: 800px;
    }
}

/* wp forms */

div.wpforms-container-full .wpforms-form .wpforms-required-label {
    color: #444444!important;
}

div.wpforms-container-full .wpforms-form input {
    border: none!important;
    background: none!important;
}

div.wpforms-container-full .wpforms-form textarea {
    border: none!important;
    background: none!important;
}

div.wpforms-container-full .wpforms-form .wpforms-field {
    border-bottom: 2px solid #444444;
    margin-bottom: 30px;
    padding: 0 0 10px 0!important;
}

div.wpforms-container-full .wpforms-form .wpforms-field:last-of-type {
    margin-bottom: 0;
}

div.wpforms-container-full .wpforms-form .wpforms-field-label {
    font-size: 18px!important;
    font-weight: 400!important;
}

div.wpforms-container-full .wpforms-form button.btn.btn-outline[type=submit] {
    border: 3px solid #8be4fb!important;
    background: none!important;
    color: #444444!important;
    font-weight: 400!important;
    padding: 16px 28px!important;
    border-radius: 0!important;
    letter-spacing: 1.29px!important;
    display: block!important;
    margin-right: 0!important;
    margin-left: auto!important;
    margin-top: 45px!important;
}

div.wpforms-container-full .wpforms-form button.btn.btn-outline[type=submit]:hover {
    background-color: #8be4fb!important;
}

@media only screen and (min-width:600px) {
    div.wpforms-container-full .wpforms-form .wpforms-field, form .input-group {
        display: flex;
        align-items: flex-end;
    }
    div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-field-textarea {
        display: block;
    }
    div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-field-textarea textarea {
        max-height: 114px!important;
    }
    div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-field-textarea {
        max-height: none;
    }
    div.wpforms-container-full .wpforms-form .wpforms-field {
        max-height: 42px;
    }
}

@media only screen and (min-width:768px) {
    .contact-form .wpforms-field-container {
        display: flex;
        flex-wrap: wrap;
    }
    div.contact-form.wpforms-container-full .wpforms-form .wpforms-field.half {
        flex: 0 0 45%;
        margin-right: 10%;
    }
    div.contact-form.wpforms-container-full .wpforms-form .wpforms-field.half:nth-of-type(even) {
        margin-right: 0;
    }
    div.contact-form.wpforms-container-full .wpforms-form .wpforms-field.half:last-of-type {
        margin-right: 0;
    }
    div.contact-form.wpforms-container-full .wpforms-form .wpforms-field.full {
        flex: 1 100%;
    }
}

h1, h2, h3, h4, h5, h6 {
    color: #005987;
}

/* secondary pages */

.standard-page img {
    width: 100%;
    object-fit: cover;
    display: block;
    margin: 25px 0;
}

/* mailchimp */

#mce-success-response, #mce-error-response {
    margin-bottom: 30px;
}

/* search bar */

#search-bar {
    display: flex;
    margin-top:40px;
    max-width: 740px;
}

#search-bar input:not(.btn) {
    border: 2px solid #8be4fb;
}

#search-bar .btn {
    background: #8be4fb;
    border-radius: 0;
    color: white;
}

#search-bar input[type='submit']{
    max-width:100px;
    padding:10px;
}

@media only screen and (min-width:600px){
    #search-bar {
      margin-left: 0;
    }

    #search-bar input[type='submit']{
        max-width:148px;
        padding:16px 28px;
    }
}

@media only screen and (min-width:1200px){
  #search-bar {
    margin-left: 40px;
  }
}
