/* General box styling within impact block */
.impact-block-wrapper .box {
    min-height: 360px;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
    flex-basis: 30%;
    flex-grow: 1;
    margin-bottom: 30px;
    margin-right: 30px;
}

/* Specific styling for span2 class */
.impact-block-wrapper .box.span2 {
    flex-basis: 62%;
    flex-grow: 2;
}

/* Nested box reset height */
.impact-block-wrapper .box .box {
    height: unset;
}

/* Wrapper styling for impact block */
.impact-block-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 14px;
    margin-right: -30px;
    position: relative;
    z-index: 1;
}

/* Responsive styling for boxes on small screens */
@media screen and (max-width: 460px) {
    .impact-block-wrapper .box {
        margin-left: 0;
    }
}

/* Background pill styling */
.impact-block-wrapper.include-background-pill:after {
    position: absolute;
    width: calc(110% - 30px);
    left: -5%;
    height: 400px;
    content: ' ';
    background-color: #F4BD15;
    border-radius: 50rem;
    z-index: -2;
}

/* Background pill positioning */
.impact-block-wrapper.include-background-pill.middle:after {
    top: 225px;
}
.impact-block-wrapper.include-background-pill.top:after,
.impact-block-wrapper.include-background-pill.middle.height-1:after {
    top: 30px;
    bottom: 60px;
    height: unset;
}
.impact-block-wrapper.include-background-pill.middle.height-2-2:after {
    top: 60px;
    bottom: 90px;
    height: unset;
}

/* Background styling for box elements */
.box-background {
    height: 100%;
    width: 100%;
    background-position: center;
    background-size: cover;
}

/* Large stat box styling */
.impact-block-wrapper .box.large_stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #005777;
    color: #FFFFFF;
    font-family: "Heebo", sans-serif;
    font-weight: 500;
    padding: 0 30px 25px 30px;
}

/* Background image styling within large stat */
.large_stat .background-img {
    background-position: center;
    background-size: cover;
    width: 70%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styling for the large stat element */
.large_stat .background-img .large-stat {
    border-radius: 50rem;
    background-color: #D44427;
    height: 120px;
    width: 120px;
    font-size: 32px;
    line-height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Description styling for large stat */
.large_stat .description {
    font-size: 20px;
    line-height: 27px;
    text-align: center;
    padding-top: 11px;
}

/* Inner container styling */
.inner {
    height: 100%;
}

/* Blog post inner styling */
.blog_post .inner {
    display: flex;
    flex-direction: column;
}

/* Blog image styling */
.blog-img {
    height: 180px;
    background-position: center;
    background-size: cover;
}

/* Blog inner container styling */
.blog-inner {
    background-color: #D44427;
    padding: 13px 20px 20px 20px;
    display: block;
    position: relative;
    flex-grow: 1;
}
.blog-inner.red-bkgd {
    background-color: #D44427;
}

/* Blog heading styling */
.blog-inner h3 {
    color: #FFFFFF;
    font-family: "Heebo", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 27px;
    margin-bottom: 11px;
}

/* Blog button positioning */
.blog-inner .button {
    bottom: 0;
    right: 40px;
}

/* Embed styling */
.embed .blog-inner {
    min-height: 60%;
    height: unset;
}
.embed .blog-img {
    min-height: unset;
    height: 40%;
}
.embed iframe {
    height: 138px;
    width: 100%;
    position: absolute;
    bottom: 0;
}

/* Text with link and list styling */
.box.text_with_link .no-image,
.box.list {
    background-color: #005777;
    padding: 25px 30px;
}
.box.text_with_link .link-item-header,
.box.list .list-item-header {
    color: #FFFFFF;
    font-family: "Heebo", sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 47px;
    padding: 0 0 10px 0;
}
.box .link-item-text {
    color: #FFFFFF;
    font-family: "Heebo", sans-serif;
    font-size: 14px;
    line-height: 22px;
}
.box.text_with_link .no-image .button {
    bottom: 0;
    right: 40px;
}

/* Background styling for specific box types */
.success_story .box-background,
.box.text_with_link .box-background,
.box.list .box-background {
    display: block;
    position: relative;
    min-height: 360px;
    z-index: 0;
}

/* Additional styling for text with link */
.box.text_with_link .with-image .blog-inner {
    background-color: #FFFFFF;
}
.box.text_with_link .with-image .link-item-text {
    color: #000000;
}
.box.text_with_link .with-image h3 {
    font-weight: 500;
    color: #005777;
    font-size: 32px;
    line-height: 47px;
}

/* Button styling within box */
.impact-block-wrapper .box .button {
    padding: 9px 20px;
    font-weight: 500;
    color: #FFFFFF;
    font-family: "Heebo", sans-serif;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    background-color: #7cb0c6;
    position: absolute;
}
.impact-block-wrapper .box .button:hover {
    background: #7cb0c6;
    text-decoration: none;
}
.impact-block-wrapper .box .button:after {
    content: ' ';
    position: absolute;
    margin-left: 20px;
    top: 0px;
    padding: 18px 18px 0 0;
    background: #056C92 url(/wp-content/themes/understrap/assets/img/utility-sprites.png) no-repeat -23px -40px;
    border: solid #056C92 11px;
}

/* Success story specific styling */
.success_story .box-background {
    background-color: #333399;
}
.success_story .success-story-inner {
    position: absolute;
    background-color: #005777;
    bottom: 0;
    left: 0;
    width: calc(50% - 15px); /* Half of grid gap */
    padding: 28px 50px calc(63px - 1rem) 30px;
}
.success_story .button {
    bottom: 0;
    right: 40px;
}
.success_story h3 {
    text-align: center;
    padding-top: 75px;
    max-width: 600px;
    color: #FFFFFF;
    font-family: "Merriweather", serif;
    font-size: 30px;
    line-height: 38px;
    margin: auto;
}
.success_story .box-background::after {
    content: "";
    background-color: black;
    opacity: 0.4;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: -1;
}

/* Responsive styling for success story */
@media screen and (max-width: 615px) {
    .success_story .success-story-inner {
        width: calc(100% - 40px);
    }
}

/* Small stat box styling */
.impact-block-wrapper .small_stat.box {
    min-height: unset;
}
.small_stat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.small_stat .small-stat {
    margin-left: 20px;
    height: 165px;
    width: calc(100% - 20px);
    background-color: #D44427;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
    display: flex;
    position: relative;
    border-bottom-left-radius: 10rem;
    border-top-left-radius: 10rem;
}
.small_stat .small-stat:not(:first-child) {
    margin-top: 20px;
}
.small-stat .stat {
    width: 165px;
    border-radius: 50rem;
    background-color: white;
    color: #005777;
    font-family: "Heebo", sans-serif;
    font-weight: 700;
    font-size: 82px;
    line-height: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.small-stat .stat.small {
    font-size: 30px;
    font-weight: bold;
}
.small-stat .slider {
    flex-shrink: 33;
    color: #FFFFFF;
    font-family: "Heebo", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 21px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.impact-block-wrapper .box.small_stat {
    box-shadow: none;
}

/* Testimonial styling */
.testimonial {
    background-color: #ffffff;
    padding: 30px;
}
.testimonial .img-holder {
    height: 100px;
    width: 100px;
    margin-left: -30px;
    background-color: #005777;
    position: relative;
}
.testimonial .img-holder:after {
    content: '';
    height: 60%;
    width: 96px;
    position: absolute;
    top: 40%;
    left: 100px;
    z-index: 0;
    background-image: radial-gradient(#D44427 2px, transparent 2px);
    background-color: transparent;
    background-position: 0 0, 6px 6px;
    background-size: 6px 6px;
}
.testimonial .img-holder .testimonial-image {
    border-radius: 50rem;
    position: relative;
    left: 50px;
    z-index: 1;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
}

/* Alt image display for testimonial */
.testimonial .img-holder.alt-image-display {
    width: 150px;
}
.testimonial .img-holder.alt-image-display:after {
    width: 196px;
    height: 70%;
}
.testimonial .img-holder .testimonial-image.alt-image-display {
    border-radius: 5%;
    height: 110%;
    width: 110%;
}

/* Testimonial text styling */
.testimonial .quote {
    padding-top: 20px;
    color: #005777;
    font-family: "Merriweather", serif;
    font-size: 18px;
    line-height: 27px;
}
.testimonial .attribution {
    padding-top: 19px;
    color: #000000;
    font-family: "Heebo", sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
}
.testimonial .affiliation {
    padding-top: 7px;
    color: #000000;
    font-family: "Heebo", sans-serif;
    font-size: 14px;
    line-height: 22px;
}

/* News story styling */
.news_story .inner {
    padding: 30px;
    background-color: #ffffff;
}
.news_story .box-heading {
    text-transform: uppercase;
    color: #005777;
    font-family: "Heebo", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    padding-bottom: 8px;
    border-bottom: solid 1px #005777;
}
.news_story .story-heading {
    color: #000000;
    font-family: "Heebo", sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 30px;
}
.news_story .link-item-text {
    color: #000000;
    margin-bottom: 20px;
}

/* Image and text styling */
.image_and_text .image_and_text-inner {
    background-color: rgba(255, 255, 255, 0.75);
}
.image_and_text .image_and_text-inner p {
    color: black;
    text-decoration: none;
}
.image_and_text a:hover {
    text-decoration: none;
}

/* List type impact block styling */
.box.list {
    color: white;
    font-size: 120%;
}

/* Responsive styling for impact block wrapper */
@media (max-width: 767.98px) {
    .impact-block-wrapper {
        flex-direction: column;
    }
}

/* Responsive styling for impact block background pill */
@media (max-width: 991.98px) {
    .impact-block-wrapper.include-background-pill:after {
        top: -20px !important;
        height: 100% !important;
    }
    .impact-block-wrapper .box.text_with_link,
    .box.text_with_link .box-background,
    .success_story .box-background,
    .box.success_story {
        min-height: unset;
    }
    .box.text_with_link .no-image,
    .box.list .no-image {
        padding-bottom: 45px;
    }
    .success_story .success-story-inner {
        position: unset;
        width: 100%;
    }
    .success_story .button {
        right: 40px;
    }
    .success_story h3 {
        padding-top: 30px;
        margin-bottom: 30px;
    }
    .success_story .success-story-inner::before {
        display: none;
    }
}

/* Font family styling for link-item-header */
.link-item-header {
    font-family: "Merriweather", serif;
}

/* Bullets styling */
.bullets {
    font-family: 'Heebo', sans-serif;
}
