﻿/* Root */

:root {
    --plum: #5D243B;
    --font-color: #22262A;
    --light-plum: #9A3D63;
    --teal: #1E4E5E;
    --light-teal: #2A9D8F;
    --light-grey: #F4F4F4;
    --mid-grey: #4C545D;
    --title-font: "dunbar-text", sans-serif;
    --body-text: "ofelia-text", sans-serif;
}

/* Home Banner */


section.home-banner-wrapper {
    margin-top: 155px;
}

section.home-banner-wrapper,
section.home-banner-wrapper div#top-carousel,
section.home-banner-wrapper .carousel-inner,
section.home-banner-wrapper .carousel-inner .item {
    max-height: 550px;
}

section.home-banner-wrapper img.desktop {
    width: 100%;
    height: 550px;
    object-fit: cover;
    object-position: center;
}

section.home-banner-wrapper .carousel-caption {
    padding-bottom: 0px;
    inset: 0;
    padding-top: 0px;
    text-align: left;
    background: linear-gradient(90deg, #2A9D8F 0%, rgba(30, 78, 94, 0.85) 59.9%, rgba(30, 78, 94, 0.00) 100%);
    display: flex;
    align-items: center;
}

section.home-banner-wrapper .carousel-caption .cms-content > *:first-child {
    margin-top: 0px;
}

section.home-banner-wrapper .carousel-caption .cms-content > *:nth-last-child(1) {
    margin-bottom: 0px;
}

section.home-banner-wrapper .carousel-caption .cms-content :is(h1,h2,h3,h4,h5,h6,p) {
    color: #ffffff;
    text-shadow: none;
    margin-bottom: 20px;
}

section.home-banner-wrapper .carousel-caption .cms-content .button {
    outline: 3px solid rgba(255,255,255,0.5);
}

section.home-banner-wrapper .carousel-caption .cms-content .button:hover {
    outline: 3px solid rgba(255,255,255,0.9);
}

section.home-banner-wrapper .controls-wrapper {
    background: var(--plum);
    position: absolute;
    bottom: -28px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    width: fit-content;
    padding: 8px 8px;
    border-radius: 55px;
    gap: 15px;
    border: 2px solid #ffffff;
}

section.home-banner-wrapper .controls-wrapper .carousel-control {
    position: relative;
    width: unset;
    background-image: none;
    opacity: 1;
    transition: all .5s ease;
}

section.home-banner-wrapper .carousel-indicators li {
    padding-left: 0px;
}

section.home-banner-wrapper .carousel-indicators li:before {
    display: none;
}

section.home-banner-wrapper .controls-wrapper .carousel-indicators {
    position: relative;
    left: unset;
    width: unset;
    margin-left: unset;
    margin: 0px;
    bottom: unset;
    display: flex;
    align-items: center;
    gap: 5px;
}

section.home-banner-wrapper .controls-wrapper .circle-wrapper {
    border: 3px solid #ffffff;
    border-radius: 50%;
    height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .5s ease;
}

section.home-banner-wrapper .carousel-indicators .active,
section.home-banner-wrapper .carousel-indicators li {
    width: 15px;
    height: 15px;
    margin: 1px;
}

section.home-banner-wrapper .controls-wrapper .carousel-control:hover .circle-wrapper {
    border: 3px solid rgba(255,255,255,0.6);
}

section.home-banner-wrapper .controls-wrapper .carousel-control .circle-wrapper i {
    transition: all .5s ease;
}

section.home-banner-wrapper .controls-wrapper .carousel-control:hover i {
    color: rgba(255,255,255,0.6);
}

@media (min-width: 767px) {
    section.home-banner-wrapper .item {
        background: none !important;
    }
}

/* Quick Links */

section.home-quick-links-wrapper {
    background: var(--light-grey);
    padding: 80px 0px;
}

section.home-quick-links-wrapper .container .row {
    display: flex;
    flex-wrap: wrap;
}

section.home-quick-links-wrapper .container .row > * .border-box{
    height: 100%;
}

section.home-quick-links-wrapper .border-box ul,
section.home-quick-links-wrapper .border-box ol {
    margin: 0px;
}

section.home-quick-links-wrapper .border-box ul {
    list-style: disc;
    padding-left: 20px;
}

section.home-quick-links-wrapper .border-box ul li {
    padding-left: 0px;
    margin-bottom: 3px;
}

section.home-quick-links-wrapper .border-box ul li a {
    color: var(--font-color);
    font-size: 16px;
    font-weight: 400;
}

section.home-quick-links-wrapper .border-box ul li a:hover {
    color: var(--light-teal);
}

section.home-quick-links-wrapper .border-box ul li::before {
    display: none;
}

/* Home Content */

section.home-content-wrapper {
    padding: 100px 0px;
}

section.home-content-wrapper .img-wrapper {
    height: unset;
    aspect-ratio: 4 / 3.5;
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
}

section.home-content-wrapper .img-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

section.home-content-wrapper .container .row {
    display: flex;
}

section.home-content-wrapper .subtitle {
    margin-bottom: 0px;
    font-family: var(--title-font);
    color: var(--light-teal);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.5px;
}

section.home-content-wrapper h2 {
    margin-top: 0px;
    margin-bottom: 25px;
}

section.home-content-wrapper .button,
section.home-content-wrapper .sm-btn {
    margin-top: 10px;
}

section.home-content-wrapper .cms-content > p {
    margin-bottom: 25px;
}

section.home-content-wrapper .cms-content > *:nth-last-child(1) {
    margin-bottom: 0px;
}

/* Case Studies */

section.case-studies-wrapper {
    background: var(--light-grey);
    padding: 75px 0px;
}

section.case-studies-wrapper .flex-wrap {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    align-items: center;
}

section.case-studies-wrapper .flex-wrap h2 {
    margin-top: 0px;
    margin-bottom: 0px;
}

section.case-studies-wrapper .border-box .border-box-title {

    font-size: 27px;
}

section.case-studies-wrapper .case-study-wrapper {
    border-bottom: 2px solid rgba(34,38,42,0.1);
    padding-bottom: 25px;
    margin-bottom: 25px;
}

section.case-studies-wrapper .case-study-wrapper:nth-last-child(1) {
    border-bottom: none;
    padding-bottom: 0px;
    margin-bottom: 0px;
}

section.case-studies-wrapper .case-study-wrapper:first-child {
    margin-top: 15px;
}

section.case-studies-wrapper p.sm-btn-wrapper {
    margin-bottom: 0px;
    line-height: 17px;
}

section.case-studies-wrapper h5 {
    margin-top: 0px;
}

section.case-studies-wrapper .case-study-wrapper p {
    font-weight: 300;
}

section.case-studies-wrapper .case-study-wrapper h5 {
    color: var(--font-color);
}

@media (min-width: 1200px) {
    section.case-studies-wrapper .flex-wrapper {
        display: flex;
    }
}

section.case-studies-wrapper .flex-wrapper .border-box {
    height: 100%;
}


/* Funding Block */

/*section.funding-block-wrapper {
    padding: 50px 0px;
    text-align: center;
}

section.funding-block-wrapper img {
    margin: auto;
    margin-bottom: 15px;
}

section.funding-block-wrapper .cms-content > *:nth-last-child(1) {
    margin-bottom: 0px;
}*/


@media (min-width: 1368px) and (max-width: 1600px) {

    /* Home Banner */

    section.home-banner-wrapper {
        margin-top: 141px;
    }

    /* Case Studies */

    section.case-studies-wrapper h5 {
        font-size: 18px;
        line-height: 26px;
    }

    section.case-studies-wrapper p {
        font-size: 16px;
        line-height: 26px;
    }

    /* Funding Block */
}

@media (min-width: 1200px) and (max-width: 1368px) {

    /* Home Banner */

    section.home-banner-wrapper {
        margin-top: 125px;
    }

    /* Case Studies */

    section.case-studies-wrapper h5 {
        font-size: 17px;
        line-height: 25px;
    }

    section.case-studies-wrapper p {
        font-size: 16px;
        line-height: 26px;
    }

    /* Funding Block */
}

@media (min-width: 992px) and (max-width: 1200px) {
    /* Home Banner */

    section.home-banner-wrapper .carousel-caption {
        background: linear-gradient(90deg, rgba(42, 157, 143, 0.90) 0%, rgba(30, 78, 94, 0.90) 99.99%);
    }

    section.home-banner-wrapper .carousel-caption .cms-content h1 {
        font-size: 40px;
        line-height: 52px;
    }

    section.home-banner-wrapper,
    section.home-banner-wrapper div#top-carousel,
    section.home-banner-wrapper .carousel-inner,
    section.home-banner-wrapper .carousel-inner .item,
    section.home-banner-wrapper img.desktop {
        max-height: 450px;
    }

    section.home-banner-wrapper {
        margin-top: 115px;
    }

    /* Quick Links */

    .border-box.two-col-list .links-wrapper ul {
        display: block;
    }

    .border-box.two-col-list .links-wrapper ul li {
        width: 100%;
    }


    /* Home Content */

    /* Case Studies */

    section.case-studies-wrapper .flex-wrapper > div:nth-of-type(2) {
        margin-top: 60px;
    }

    /* Funding Block */
}

@media (min-width: 767px) and (max-width: 992px) {
    /* Home Banner */

    section.home-banner-wrapper .carousel-caption {
        background: linear-gradient(90deg, rgba(42, 157, 143, 0.90) 0%, rgba(30, 78, 94, 0.90) 99.99%);
    }

    section.home-banner-wrapper .carousel-caption .cms-content h1 {
        font-size: 35px;
        line-height: 47px;
    }

    section.home-banner-wrapper,
    section.home-banner-wrapper div#top-carousel,
    section.home-banner-wrapper .carousel-inner,
    section.home-banner-wrapper .carousel-inner .item,
    section.home-banner-wrapper img.desktop {
        max-height: 450px;
    }

    section.home-banner-wrapper {
        margin-top: 115px;
    }

    /* Quick Links */

    .col-sm-12.col-md-4.col-lg-6.tab-padding {
        padding-top: 50px;
    }

    /* Home Content */

    section.home-content-wrapper {
        padding: 75px 0px;
    }

    section.home-content-wrapper .container .row {
        display: block;
    }

    section.home-content-wrapper .img-wrapper {
        aspect-ratio: 4 / 2.5;
        margin-bottom: 30px;
    }


    /* Case Studies */

    section.case-studies-wrapper .flex-wrapper > div:nth-of-type(2) {
        margin-top: 60px;
    }

    /* Funding Block */
}

@media (max-width: 767px) {
    /* Home Banner */
    section.home-banner-wrapper .carousel-caption {
        position: relative !important;
        background: linear-gradient(180deg, rgba(30, 78, 94, 0.90) 0%, rgba(42, 157, 143, 0.90) 100%);
        padding: 45px 0px 65px;
    }

    section.home-banner-wrapper .carousel-caption .cms-content h1 {
        font-size: 34px;
        line-height: 46px;
    }

    section.home-banner-wrapper,
    section.home-banner-wrapper div#top-carousel,
    section.home-banner-wrapper .carousel-inner,
    section.home-banner-wrapper .carousel-inner .item {
        max-height: unset;
    }

    section.home-banner-wrapper img.desktop {
        display: none;
    }

    section.home-banner-wrapper .item {
        background-position: center!important;
        background-size: cover!important;
    }

    section.home-banner-wrapper .controls-wrapper {
        width: 100%;
        border-radius: 0px;
        border-left: none;
        border-right: none;
        justify-content: space-between;
    }

    section.home-banner-wrapper {
        margin-top: 110px;
    }

    /* Quick Links */

    section.home-quick-links-wrapper {
        padding: 80px 0px 50px;
    }

    section.home-quick-links-wrapper .container .row {
        display: block;
    }

    .border-box.two-col-list .links-wrapper ul {
        display: block;
    }

    .border-box.two-col-list .links-wrapper ul li {
        width: 100%;
    }

    section.home-quick-links-wrapper .container .row > * {
        margin-bottom: 40px;
    }

    section.home-quick-links-wrapper .container .row > *:nth-last-child(1) {
        margin-bottom: 0px;
    }

    /* Home Content */

    section.home-content-wrapper {
        padding: 50px 0px;
    }

    section.home-content-wrapper .container .row {
        display: block;
    }

    section.home-content-wrapper .img-wrapper {
        aspect-ratio: 4 / 2.5;
        margin-bottom: 30px;
    }

    section.home-content-wrapper .subtitle {
        font-size: 18px;
    }

    /* Case Studies */

    section.case-studies-wrapper .flex-wrapper > div:nth-of-type(2) {
        margin-top: 60px;
    }

    section.case-studies-wrapper h5 {
        font-size: 17px;
        line-height: 25px;
    }

    section.case-studies-wrapper p {
        font-size: 16px;
        line-height: 26px;
    }

    section.case-studies-wrapper {
        padding: 45px 0px;
    }

    /* Funding Block */
}

@media (max-width: 550px) {
    section.case-studies-wrapper .flex-wrap {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 50px;
    }
}