.body .headerSection {
    background-image: url('../jpg/donate_header.jpg');
    background-position: 50%;
    background-size: cover;
    background-repeat: no-repeat;
}

.body .headerSection .headerTextContainer {
    padding-top: 75px;
    padding-bottom: 150px;
    width: 90%;
    margin: 15px auto;
}

.body .headerSection .headerTextContainer h2 {
    color: #0B1541;
    font-family: Montserrat;
    font-size: 42px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%; /* 54.6px */
}

.body .headerSection .headerTextContainer p {
    color: #0B1541;
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 28px */
}

.body .donateSection {
    /* Add your background properties here */
}

.body .donateSection .docThumbnail {
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    margin: -125px auto 50px;
}

.body .donateSection .docThumbnail img {
    border-radius: 24px;
    border: 3px solid #FFF;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 500px;
}

.body .donateSection h1 {
    color: #275CE4;
    text-align: center;
    font-family: Montserrat;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 50.4px */
    width: 75%;
    display: block;
    margin: 15px auto;
}

.body .donateSection p {
    color: #0B1541;
    text-align: center;
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 28px */
    width: 75%;
    display: block;
    margin: 15px auto;
}

.body .donateSection h2 {
    color: #0B1541;
    text-align: center;
    font-family: Montserrat;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 50.4px */
    width: 75%;
    display: block;
    margin: 50px auto 15px;
}

.body .donateSection .ctaImage {
    margin: 5px auto;
    max-height: 150px;
    max-width: 250px;
    display: block;
}

.body .donateSection .ctaText {
    color: #275CE4;
    text-align: center;
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 28px */
    text-transform: uppercase;
}

.body .ourImpactSection {
    background-image: linear-gradient(118deg, #275CE4 39.56%, #1A3BAD 71.08%);
    /* Add other background properties if needed */
    padding: 25px;
}

.body .ourImpactSection p {
    color: #FFF;
    font-family: Montserrat;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 33.6px */
    margin: 25px auto;
    display: block;
    text-align: center;
    width: 60%;
}

.body .ourImpactSection .metricNumber {
    color: #FFF;
    text-align: center;
    font-family: Montserrat;
    font-size: 52px;
    font-style: normal;
    font-weight: 700;
    margin: 10px auto;
    width: 95%;
}

.body .ourImpactSection .metricText {
    color: #FFF;
    text-align: center;
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    margin: 10px auto;
    width: 95%;
}

.body .ourImpactSection .metricDescription {
    color: #FFF;
    text-align: center;
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    margin: 10px auto;
    width: 95%;
}

.body .testimonialsSection {
    background-image: url('../jpg/donor_testimonials_friends_background.jpg');
    background-position: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0 auto;
    padding-top: 50px;
    padding-bottom: 50px;
}

.testimonialsContainer {
    text-align: center;
    padding-top: 30px;
    padding-bottom: 50px;
}

#testimonialsContainer-carousel {
    width: 75%;
    display: block;
    margin: 25px auto;
    border-radius: 18px;
    box-shadow: 1px 1px 5px #666666;
}

.testimonials-carousel .carousel-inner .item {
    padding: 25px;
}

.testimonials-carousel .carousel-inner .item.active {
    display: block;
}

.testimonials-carousel .left.carousel-control,
.testimonials-carousel .right.carousel-control {
    width: 5%;
    opacity: 1; /* Full opacity */
    transition: opacity 0.3s ease; /* Smooth transition for opacity change */
}

.testimonials-carousel .left.carousel-control:hover,
.testimonials-carousel .right.carousel-control:hover {
    opacity: 0.7; /* Change to 70% opacity on hover */
}

.testimonials-carousel .left.carousel-control {
    left: -75px;
    top: -20%;
    background-image: none; /* Remove default image */
}

.testimonials-carousel .right.carousel-control {
    right: -75px;
    top: -20%;
    background-image: none; /* Remove default image */
}

.testimonials-carousel .left.carousel-control .glyphicon-chevron-left,
.testimonials-carousel .right.carousel-control .glyphicon-chevron-right {
    font-size: 30px; /* Increase size of the arrows */
    color: white; /* Change color to white */
    height: 45px;
    width: 45px;
}

.testimonialSquares {
    border-radius: 18px;
    background: #FFF;
    height: 250px;
}


.testimonialSquares h1 {
    color: #275CE4;
    text-align: center;
    font-family: Montserrat, sans-serif;
    font-size: 52px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 72.8px */
}

.testimonialsContainer h2 {
    color: #0B1541;
    text-align: center;
    font-family: Montserrat;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    margin: 25px auto;
}

.testimonialSquares p {
    color: #000;
    font-family: Montserrat;
    font-size: 20px;
    font-style: italic;
    font-weight: 400;
    line-height: 160%; /* 32px */
    text-align: left;
}

p.testimonialName {
    color: #000;
    text-align: right;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 19.6px */
    text-transform: uppercase;
}

.testimonialSquares img {
    width: 60px;
    margin: 5px auto 20px 5px;
    display: block;
}

.body .testimonialsSection h2 {
    color: #0B1541;
    text-align: center;
    font-family: Montserrat;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 50.4px */
    margin: 25px auto;
    display: block;
}

.body .testimonialsSection p.friendsBlurb {
    color: #0B1541;
    text-align: center;
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 28px */
    width: 70%;
    margin: 25px auto;
    display: block;
}

.body .testimonialsSection img {
    max-height: 175px;
    max-width: 275px;
    margin: 5px auto;
    display: block;
}

.body .contactSection {
    background-image: url('../png/screenshot%202024-05-24%20at%2012.07%201.png');
    background-position: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 100px 5px;
}

.body .contactSection h2 {
    color: #FFF;
    font-family: Montserrat;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 50.4px */
}

.body .contactSection p {
    color: #FFF;
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 28px */
    margin: 25px auto 50px;
}

.body .contactSection a {
    border-radius: 10px;
    background-color: #275CE4;
    padding: 16px 18px;
    color: #FFF;
    text-align: center;
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 25px auto 25px 0;
    display: block;
    max-width: 400px;
}

.body .contactSection .form990Container {
    border-radius: 19px;
    background: #FFF;
    padding: 15px;
    margin: 50px auto;
}

.body .contactSection .form990Container p {
    color: #0B1541;
    text-align: center;
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    margin: 15px auto 40px;
}

.body .contactSection .form990Container a {
    border-radius: 10px;
    border: 2px solid #275CE4;
    background: #FFF;
    color: #275CE4;
    text-align: center;
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 5px auto;
    display: block;
    max-width: 400px;
}

.body .footnotesSection {
    padding: 25px;
    width: 80%;
    display: block;
    margin: 5px auto;
}

.body .footnotesSection p {
    color: #000;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 19.6px */
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 24px 12px;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal .modal-content {
    background-color: #fefefe;
    margin: 0 auto 24px;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    line-height: 140%;
}

.modal .modal-content .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.modal .modal-content .close:hover,
.modal .modal-content .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Documentary modal (scoped) */
#importantDocModal .modal-content {
    width: 80vw;
    max-width: 1400px;
}

#importantDocModal .modal-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
}

/* DAF modal (scoped) */
#dafModal .modal-content {
    width: 90%;
    max-width: 820px;
    margin: 0 auto 24px;
    padding: 28px 28px 22px;
    font-family: Montserrat, sans-serif;
}

#dafModal h2 {
    color: #0B1541;
    font-size: 28px;
    font-weight: 700;
    line-height: 140%;
    margin: 0 0 12px;
}

#dafModal p {
    color: #0B1541;
    font-size: 16px;
    font-weight: 400;
    line-height: 140%;
    margin: 0 0 10px;
    text-align: left;
    width: auto;
    display: block;
}

#dafModal .dafProviderDetails {
    margin-bottom: 0;
}

#dafModal .dafModalContentRow {
    margin-top: 10px;
}

#dafModal .dafDirectContainer {
    width: 100%;
    margin: 14px 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

/* Best-effort widening for DAF Direct embed */
#dafModal .dafDirectContainer iframe {
    width: 100% !important;
    max-width: 100% !important;
}

/* Prevent injected widget fields from overflowing modal */
#dafModal .dafDirectContainer,
#dafModal .dafDirectContainer * {
    box-sizing: border-box;
}

#dafModal .dafDirectContainer form,
#dafModal .dafDirectContainer table {
    width: 100% !important;
    max-width: 100% !important;
}

#dafModal .dafDirectContainer table td,
#dafModal .dafDirectContainer table th,
#dafModal .dafDirectContainer div[style*="width"] {
    max-width: 100% !important;
}

#dafModal .dafDirectContainer input,
#dafModal .dafDirectContainer select,
#dafModal .dafDirectContainer textarea {
    width: 100% !important;
    max-width: 100% !important;
}

#dafModal .dafDirectContainer img {
    max-width: 100% !important;
    height: auto;
}

/* DAF Direct concrete selectors from injected HTML */
#dafModal .dafDirectContainer #dafdirectdiv,
#dafModal .dafDirectContainer #dafdirect,
#dafModal .dafDirectContainer #notwhatisthis {
    width: 100% !important;
    max-width: 420px !important;
    min-width: 0 !important;
    margin-left: auto;
    margin-right: auto;
}

#dafModal .dafDirectContainer #dafdirect > img {
    display: block;
    width: 55% !important;
    max-width: 280px !important;
    min-width: 220px;
    height: auto !important;
}

#dafModal .dafDirectContainer #amountNextContain {
    width: 100% !important;
    display: flex !important;
    align-items: flex-end;
    gap: 10px;
}

#dafModal .dafDirectContainer .dafdirectInputAmount {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
}

#dafModal .dafDirectContainer .dafdirectButtonContain {
    flex: 0 0 auto !important;
    width: auto !important;
}

#dafModal .dafDirectContainer .dafdirectInput,
#dafModal .dafDirectContainer .dafdirectSelect,
#dafModal .dafDirectContainer .dafdirectInputFull,
#dafModal .dafDirectContainer #dafprovider,
#dafModal .dafDirectContainer #dafdirect_dsgtxt,
#dafModal .dafDirectContainer #dafdirect_amnt {
    width: 100% !important;
    max-width: 100% !important;
}

#dafModal .dafProviderBlock {
    margin-top: 14px;
}

#dafModal .dafProviderIntro,
#dafModal .dafProviderDetails {
    font-size: 15px;
    line-height: 1.4;
}

#dafModal .dafProviderDetails strong {
    font-weight: 700;
}

/* Keep injected form typography consistent across donate modals */
#checkModal .modal-content *,
#transferModal .modal-content *,
#contactModal .modal-content *,
#dafModal .modal-content * {
    font-family: Montserrat, sans-serif !important;
}

@media (min-width: 992px) {
    #dafModal .dafProviderBlock {
        margin-top: 22px;
    }
}


@media (max-width: 992px) {
    .body .headerSection {
        background-image: url('../jpg/donor_page_background_tablet.jpg');
    }

    .body .donateSection .ctaText {
        margin: -10px auto 25px;
    }

    .body .ourImpactSection .metricDescription {
        margin: 10px auto 50px;
    }

    .testimonialSquares {
        height: 325px;
    }

    .body .testimonialsSection img {
        max-height: 150px;
        max-width: 150px;
    }
}

@media (max-width: 600px) {
    .body .headerSection {
        background-image: url('../png/donor_pg_background_mobile%402x.png');
    }

    .body .headerSection .headerTextContainer h2 {
        color: white;
    }

    .body .headerSection .headerTextContainer p {
        color: white;
        padding-bottom: 50px;
    }

    .body .donateSection h1 {
        font-size: 28px;
    }

    .body .donateSection p {
        font-size: 18px;
    }

    .body .donateSection h2 {
        font-size: 28px;
    }

    .body .ourImpactSection p {
        font-size: 22px;
    }


    .testimonialSquares {
        height: auto;
    }

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


