body {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: #030303;
    line-height: 160%;
}

#foundation {
    
    section:first-child{
        padding-top:0px;
    }
    
    h1 {
        margin-top: 50px;
        font-size: 45px;
        line-height: 120%;
        text-align: center;
    }
}

.main-nav {
    margin-bottom: 0;
}
img {
    max-width: 100%;
    height: auto;
}
header {
    #header-content {
        height: 12rem;
        
        .button {
            text-align: center;
        }
        
        .navbar-toggle#menu-button {
            margin-right: 0;
            margin-left: 0;
        }
                
        .displayen {
             opacity: 1;
        }
        
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
        
        #search, #logo {
             display: none;
        }
        
        #logo {
            margin-right: auto;
            padding-right: 15px;
            
            @media (max-width: 767px) {
                max-width: 240px;
            }
        }
        #main-nav-toggle,
        #toggle-search {
            width: 59px;
            height: 59px;
            margin-left: 40px;

        }
        #main-nav-toggle {
            padding: 15px 1px;
            max-width: 40px;
        }
        
        a {
            i.search-toggle {
                content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" width="24" height="26" fill="none"><g class="layer"><title>Layer 1</title><g id="svg_3"><path d="m10.55,20.26c5.22,0 9.45,-4.23 9.45,-9.45c0,-5.22 -4.23,-9.45 -9.45,-9.45c-5.22,0 -9.46,4.23 -9.46,9.45c0,5.22 4.24,9.45 9.46,9.45z" id="svg_1" stroke="%23003A5F" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"/><path d="m22.91,24.63l-5.82,-5.82" id="svg_2" stroke="%23003A5F" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"/></g></g></svg>');
                height: 100%;
                display: block;
                padding: 15px;
            }
            &.open i.search-toggle {
                content: url('data:image/svg+xml,<svg width="22" height="22" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" fill="none"><g class="layer"><title>Layer 1</title><g id="svg_3"><path d="m20.64,1.35l-19.28,19.29" id="svg_1" stroke="%23003A5F" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"/><path d="m1.36,1.35l19.28,19.29" id="svg_2" stroke="%23003A5F" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"/></g></g></svg>');
            }
        }
        
        #search.displayen, #logo.displayen {
             display: block;
        }
        #search-form, #logo img {
            transition: opacity 0.4s, background 0.4s;
            height: 50px;
        }
        #search-form:not(.displayen), #logo img:not(.displayen){
            opacity: 0;
        }
        #search {
            flex-grow: 1;
            
            #search-form {
                display:flex;
                align-items: center;
                >div {
                    flex-grow:1;
                    display: inline-block;
                }
            }
            #search-input-group {
                font-size: 16px;
                height: 30px;
                display: flex;
                align-items: center;
                border-bottom: 1px solid var(--deep-blue);
                margin-right: 30px;
                padding-bottom: 5px;
                i {
                 padding: 4px;
                }
                i.search {
                 content:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="18" viewBox="0 0 17 18" fill="none"><path d="M7.5 14C11.0899 14 14 11.0899 14 7.5C14 3.91015 11.0899 1 7.5 1C3.91015 1 1 3.91015 1 7.5C1 11.0899 3.91015 14 7.5 14Z" stroke="%23003A5F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 17L12 13" stroke="%23003A5F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
                }
                input{
                    border:none;
                    outline: none;
                    width:100%;
                    font-family: 'Open Sans';
                }
            }
        }
    }
}

nav.main-nav {
    background-color: var(--deep-blue);
    
    @media (min-width: 768px) {
        ul.nav {
            display: flex;
            justify-content: left;
            width: 100%;
            
            &::before, 
            &::after {
                display: none;
            }
        }
    }
}


.header .menu-top.navbar-right li a, .header .menu-top.navbar-left li a, .header .menu-top li#search {
    color: #007fb5;
}
.header .menu-top li#search {
    background-color: rgba(0,0,0,0);
    font-size: 1.6em;
    width: 100%;
    text-align: right;
    padding: 10px 20px 14px 20px;
}
.header .menu-top li:last-child a {
    padding-right: 10px;
}
header.titleArea h1 {
    color: #ffffff;
    padding-left: 13px;
}


.tag-line {
    text-align: center;
    margin: 20px 15px;
    
    span {
        /*background-color: var(--light-blue);*/
        padding: 10px 20px;
        color: var(--dark-blue);
        font-size: 24px;
    }
}

#foundation section.row {
    &:has(.banner) {
        padding-bottom: 0;
    }
    
    &.bg-white {
        background-color: white;
    }
    &.bg-pale-blue {
        background-color: var(--pale-blue);
    }
    &.bg-dark-blue {
        background-color: var(--dark-blue);
        color: white;
        
        .row > h1, h2, h3, p {
            color: white;
        
        }
    }
    
    h1 {
        font-size: 45px;
        margin-bottom: 80px;
    }
    h2 {
        margin-top: 0;
        font-size: 40px;
    }
    
    .heading-row {
        margin-bottom: 40px
    }
    
    @media (min-width: 768px) {
        .col-md-6:not(.col-md-push-6) {
            &.text {
                padding-right: 70px;
            }
        }
        
        .col-md-6.col-md-push-6 {
            &.text {
                padding-left: 70px;
            }
        }
    }
}

#foundation {
    .button {
        width: max-content;
    }
    .two-column-text-with-image {
        background-color: var(--pale-blue);
        
        &.text-and-image {
            .row {
                margin-bottom: 50px;
            }
        }
        
        &.banner, &.hero-banner {
            padding: 0;
            
            .container {
                width: auto;
                
                .col-md-6 {
                    padding: 0;
                }
            }
            
            .image,
            .text {
                height: 400px; 
                background-size: cover;
                background-position: center;
            }
            
            .text {
                background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../../Foundation/_images/background-stairwell.png");
                /* Optional: ensure text over the dark overlay is readable */
                background-size: cover;
                background-position: center;
                color: white; 
                
                
                
                >div {
                    margin: 0 auto;
                    padding: 40px 50px 40px 50px;
                }
                
                @media (min-width: 768px) {
                    >div {
                        max-width: 85%;
                    }
                }
                
                h1 {
                    text-align: left;
                    margin-bottom: 10px;
                }
                p:last-of-type {
                    margin-bottom: 10px;
                }
                p,h2,h3 {
                    color: white;
                }
            }
        }
        
        &.hero-banner {
            
            .image, .text {
                min-height: 250px; 
                height:unset;
            }
            
            @media (min-width: 768px) {
                .row {
                    display: flex;
                    align-items: stretch;
                }
                .image, .text {
                    min-height: 400px; 
                    height:unset;
                }
                
                 .text {
                    >div {
                        padding: 40px 50px 60px 50px;
                    }
                }
            }
            
            
            .text {
                
                background: linear-gradient(rgba(224, 246, 255, 0.7), rgba(224, 246, 255, 0.7)), url("../../Foundation/_images/background-stairwell.png");
                background-size: cover;
                >div {
                    padding: 40px 50px 60px 50px;
                }
                
                h1,p {
                    color: var(--deep-blue);
                }
                
                p {
                    font-size: 20px;
                }
            }
            
            .button {
                margin-top: 40px;
                
            }
            
            
        }
    }
}

#foundation section.cta-make-a-difference {
    padding: 0;
    
    .container {
        padding-left: 0;
        padding-right: 0;
        width: auto;
    }
}
#cta-banner-block {
    .col-md-6 {
        padding: 0;
    }
    
    .cta-banner-block-text-container {
        background: 
            linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
            url('../../Foundation/_images/background-stairwell.png');
        background-size: cover;
        background-position: center;
        /* Optional: ensure text over the dark overlay is readable */
        
        p, h2 {
            color: white;
        }
    }
    
    .cta-banner-block-text,
    .cta-banner-block-img {
        height: 450px;
    }
    
    .cta-banner-block-text {
        margin: 0 auto;
        padding: 40px 50px 40px 50px;
        max-width: 85%;
        
        p, h2 {
            color: white;
        }
    }
    
    .cta-banner-block-img {
        background-size: cover;
        background-position: center;
    }
}

.stats {
    .stat-blocks {
        display: flex;
        justify-content: space-between;
        @media(max-width: 767px){
            flex-direction: column;
        }
            
        .stat-block {
            flex-grow: 1;
            padding: 30px;
            background: #03030308;
            border-radius: 6px;

        
            &:not(:last-child) {
                margin-right: 15px;
            }
            
            @media (max-width: 767px) {
                
                margin-bottom: 15px;
                
                &:not(:last-child) {
                    margin-right: 0;
                }
            }
            
            .statValue {
                text-align:center;
                font-size: 64px;
                font-weight: 700;
                line-height: 1;
                color:var(--bright-blue);
                
                span {
                    font-size: 16px;
                }
            }
            
            &.highlighted{
                background: var(--light-blue);
                
                .statValue {
                    color:var(--deep-blue);
                }
            }
            
            .statDescription {
                margin-top: 10px;
                text-align: center;
            }
        }
    }
}

.image-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
}

.image-boxes.image-left {
    
     .image-block {
        margin-bottom: 40px;
        display: flex;
        width: 49%;
        min-height: 200px;
        border-radius: 6px;
        overflow: hidden;
        background-color: #f8f8f8;

        
        
        @media(max-width: 767px) {
            margin-bottom: 20px;
            width: 100%;
            min-height: 130px;
        }
        
        .image {
            background-size: cover;
            background-repeat: no-repeat;
            background-position: top;
            flex-basis: 33.333%;
        }
        
        .text {
            flex: 1;
            padding: 30px;
            transition: background-color 0.4s ease;
            
            &:hover{
                background: var(--light-blue);
            }
        }
        
        
        
    }
    
}

.image-boxes.image-top {
    

    
    @media(max-width: 767px) {
        flex-direction: column;
    }
    
    a {
        width: 49%;
        
        @media(max-width: 767px) {
            width: 100%;
        }
    }
    
    .image-block {
        min-height: 400px;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: top;
        margin-bottom: 40px;
        
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        border-radius: 6px;
        overflow:hidden;
        
        
        
        
        .text {
            display: flex;
            justify-content: space-between;
            background-color: var(--deep-blue);
            padding: 0 20px;
            
            h4, p {
                color: white!important;
            }
            
            .icon {
                display: flex;
                align-items: flex-end;
                padding-bottom: 22px;
                padding-left: 25px;
            }
        }
    }
}

.featured-quotes {
    .quoteImage {
        height: 100%;
        background-size: cover;
        background-position: center;
        @media (max-width: 767px) {
            height: 200px;
        }
        @media (max-width: 991px) {
            background-position: top;
            height: 500px;
        }
    }
    .quote {
        display: flex;
        
        img { 
            width: 20%;
        }
    }
}

/*Accordion styles*/
.panel-group {
    .panel {
        border: unset;
        transition: border 0.3s ease; 
        webkit-box-shadow: unset;
        box-shadow: unset;
    }
    .panel-heading {
        /* Set the default background for closed state (optional, but good practice) */
        background-color: #FFF;
        transition: background-color 0.3s ease,
                    border 0.3s ease; /* Smooth transition */
        
        .panel-title {
            
            margin-top: 10px !important;
            
            a:before {
                content: "" !important;
            }
            a.collapsed:before {
                 content: "" !important;
            }
            a::after {
                font-family: FontAwesome;
                content: "\f077";
                float: right;
            }
            
            a.collapsed:after {
                font-family: FontAwesome;
                content: "\f078";
                float: right;
            }
        }
                
        a {
            color: var(--dark-blue) !important;
        }
    }
    
    .panel-body{
        border: 1px solid var(--light-blue) !important;
    }
    .panel-heading:has(a[aria-expanded="true"]) {
        /* Target the anchor tag inside the heading when it is expanded */
        background-color: var(--light-blue) !important; /* Blue background */
        border-color: var(--light-blue) !important;
    }
}

#customSlider {
    height: 500px; /* Define the fixed height for the slider */
    color: #fff;
}

/* Ensure each item fills the full height of the slider */
#customSlider .item {
    height: 500px;
    /* Hide the default Bootstrap carousel caption overlay */
    background-color: transparent !important;
}

/* Content Container inside the item */
.slider-content-container {
    /* Position content vertically center using display: table/cell layout */
    display: table;
    width: 100%;
    height: 400px;
}

.slider-row {
    display: table-row;
}

.slider-cell {
    display: table-cell;
    vertical-align: middle;
    float: none; /* Override default float behavior for table-cell layout */
}

/* Styling for the Text Content Column */
.text-content-column {
    padding: 60px;
    margin-left: 20px; /* Space between image and text */
    color: white!important; 
    background: linear-gradient(rgba(0, 58, 95, 0.95), rgba(0, 58, 95, 0.95)), url('');
    border-radius: 6px;
    
    h4, p {
        color: white!important; 
    }
    h4 {
        font-size: 23px;
    }
}

.text-content-column h2 {
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #4ed9c0;
}

.text-content-column p {
    font-size: 16px;
    line-height: 1.6;
}

/* Styling for the Image Column */
.image-column img {
    max-width: 100%;
    height: auto;
}

/* Customize control arrows */
.carousel-control {
    width: 50px;
    opacity: 0.8;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}
.carousel-control:hover {
    opacity: 1;
    /*background-color: rgba(0, 0, 0, 0.4);*/
}
.carousel-control .glyphicon {
    font-size: 24px;
    color: #4ed9c0;
    top: 50%;
    margin-top: -12px;
}

.slider-btn {
    height: 35px;
    padding: 0px;
    background: unset;
    
    &:hover {
        background: unset;
    }
    
    svg {
        height: 150%;
    }
    &:focus, &:active, &:active:focus  {
        outline: unset;
        background:unset;
        box-shadow: unset;

    }
}

/* Responsive adjustments for mobile */
@media (max-width: 991px) {
    #customSlider {
        height: auto; /* Allow height to collapse on mobile */
    }
    #customSlider .item {
        height: auto;
        padding-bottom: 30px;
    }
    .slider-content-container {
        height: auto;
        padding: 15px;
        display: block;
    }
    .slider-row {
        display: block;
    }
    .slider-cell {
        display: block;
        padding: 10px 0;
    }
    .image-column {
        text-align: center;
    }
    /* Stack image and text vertically on small screens */
    .text-content-column {
        margin-left: 0;
        margin-top: 20px;
        padding: 30px;
    }
}

#foundation .story-feed {
    .title {
        font-weight: 400;
        font-size: 20px;
        line-height: 146.18%;
        color: #003A5F;
    }
    #mediaroom-content {
        text-align: left;
    }
    
    .description {
        font-weight: 400;
        font-size: 16px;
        line-height: 19px;
        color: #000000;
    }
    .date {
        font-weight: 600;
        font-size: 12px;
        line-height: 16px;
        letter-spacing: 0.04em;
        color: #778287;
        text-transform: uppercase;
        width: 100%;
        height: auto;
    }
    .arrow i {
        font-size: 24px;
        padding-bottom: 10px;
    }
    
    .read-more .link-button-dark {
        background: #003A5F;
        text-align: center;
        color: #FFFFFF;
        padding: 10px 25px;
        display: inline-block;
        margin-top: 45px;
        border-radius: 3px;
        font-weight: 600;
        font-size: 16px;
        line-height: 22px;
    }
}

#foundation {
    .banner {
        background: linear-gradient(rgba(0, 58, 95, 0.7), rgba(0, 58, 95, 0.7)), url('../../Foundation/_images/celebrationBanner.jpg');
        background-size: cover;
        background-position: center;
        padding: 80px 20px;
        text-align: center;
        
        h1 {
            color: white;
            font-size:54px;
            margin: 0!important;
        }
        
        div {
            color: white;
            font-size: 18px;
            font-weight: 400;
        }
    }
}

.campaign-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    
    .campaign-block {
        margin-bottom: 40px;
        border-radius: 6px;
        overflow: hidden;
        background-color: #fcfcfc;
        width: 32%;
        display: flex;
        flex-direction: column;
        /*border: var(--deep-blue) 1px solid;*/
    
        h4 {
          margin-top: 0px!important;
          padding-top: 20px;
        }
        @media(max-width: 1199px) {
            width: 48%;
        }
        
        @media(max-width: 767px) {
            width: 100%;
        }
        
        .text {
            display:flex;
            flex-grow: 1;
            flex-direction: column;
            border: var(--deep-blue) 1px solid; 
            border-top: none;
            border-bottom-left-radius: 6px;
            border-bottom-right-radius: 6px;
    
            .BB-goal-meter {
                width: 99%!important;
            }
            
            h4,a {
                margin: 20px;
                margin-top: 0px;
            }
            
            h4,a:not(.button) {
                padding-top: 20px;
            }
        }
    }
    .image-block {
        height: 200px;
        background-position: center;
        background-size: cover;
    }
}

/* Mail chimp styles */

#mc_embed_signup, #mc_embed_signup h3{
    width: 100%!important;
    color: black!important;
}

@media (min-width: 992px) {
    #mc_embed_shell {
        margin-top: -20px;
    }
}

/* Footer */

.footer {
    .footer-content {
        font-size: 16px;
    }

    #footer-menu-links {
        >div{
            display: flex;
            
            @media(max-width: 767px) {
                flex-direction: column;
                >div {
                    padding-bottom: 30px;
                }
            }
            
            >div {
                padding-right: 50px;
            }
            #donate-button {
                margin-left: 0;
            }
            
            a {
                color: white;
                transition: 0.4s ease-in-out;
            }
            
            a:hover{
                color: var(--light-blue);
            }
        }
    }
}