/* General paragraph styles, utility classes */
body.page-node-type-component-page .region-content > .paragraph,
body.page-node-type-component-page .region-content .field--name-field-body-components > .field--item {
    margin-bottom: 6%;
}

/* Hero links grid paragraph */
.hero--content .paragraph--type--links-grid .field--name-field-components > .field--item {
    border-top: 3px solid #171415;
    padding: 2.8rem 2.2rem;
    background-color: #fff;
}

.hero--content .paragraph--type--links-grid .field--name-field-components > .field--item:last-child {
    border-bottom: 3px solid #171415;
}

@media all and (min-width: 640px) {
    .hero--content .paragraph--type--links-grid .field--name-field-components {
        display: grid;
        grid-template-columns: minmax(0, max-content) minmax(0, max-content);
        column-gap: 22px;
    }
}

@media all and (min-width: 640px) and (max-width: 839px) {
    .hero--content .paragraph--type--links-grid .field--name-field-components > .field--item:nth-last-child(-n+2) {
        border-bottom: 3px solid #171415;
    }
}

@media all and (min-width: 840px) {
    .hero--content .paragraph--type--links-grid .field--name-field-components {
        grid-template-rows: 1fr 1fr;
        grid-template-columns: minmax(0, max-content) minmax(0, max-content) minmax(0, max-content);
    }

    .hero--content .paragraph--type--links-grid .field--name-field-components > .field--item:nth-last-child(-n+3) {
        border-bottom: 3px solid #171415;
    }
}

.links-grid a {
    width: 100%;
}

.links-grid .arrow-link svg:last-child {
    margin-left: auto;
}

/* Content region links grid paragraph */
.region-content .paragraph--type--links-grid a {
    border: 1px solid #D0D5DD;
    border-radius: 8px;
    padding: 12px 40px 12px 12px;
    background: url(../../images/arrow--right--black.svg) no-repeat center right 12px;
    color: #171415;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 3px;
    text-decoration: none;
}

.region-content .paragraph--type--links-grid a:hover,
.region-content .paragraph--type--links-grid a:active,
.region-content .paragraph--type--links-grid a:focus {
    border: 2px solid #171415;
    box-shadow: 0px 2px 8px -2px #2121210F, 0px 4px 32px -2px #2121210D;
    margin-top: -6px;
}

@media (prefers-reduced-motion) {
    .region-content .paragraph--type--links-grid a:hover,
    .region-content .paragraph--type--links-grid a:active,
    .region-content .paragraph--type--links-grid a:focus {
        margin-top: 0;
        border-width: 1px;
    }
}

.region-content .paragraph--type--links-grid .field--name-field-components > * {
    margin-bottom: 22px;
}

@media all and (min-width: 800px) {
    .region-content .paragraph--type--links-grid .field--name-field-components {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-gap: 22px;
    }

    .region-content .paragraph--type--links-grid .field--name-field-components > * {
        margin-bottom: 0;
    }
}

/* Icon link paragraph */
.paragraph--type--icon-link {
    display: flex;
    align-items: center;
}

.hero--content .paragraph--type--icon-link a {
    font-family: "abril_textbold", 'Times', 'Times New Roman', serif;
    color:#171415;
    text-decoration: none;
    font-size: 2.4rem;
    background: url(../../images/arrow--right--red.svg) no-repeat right center;
    padding-right: 50px;
}

.hero--content .paragraph--type--icon-link a:hover,
.hero--content .paragraph--type--icon-link a:active,
.hero--content .paragraph--type--icon-link a:focus {
    color: #A34039;
    text-decoration: underline;
}

/* Hero unformatted text paragraph */
.hero--content .paragraph--type--unformatted-text {
    max-width: 486px;
}

/* Paragraph with two sets of headings and plain text, top and bottom borders. Used for donation dedication on homepage */
.paragraph--type--dedication {
    padding: 3.5rem 0;
    text-align: center;
}

.paragraph--type--dedication .section--first {
    margin-bottom: 2.5rem;
}

/* Text & image side-by-side paragraph */
.paragraph--type--text-and-image,
.text-image-50 {
    border-radius: 8px;
}

.paragraph--type--text-and-image .field--name-field-image,
.text-image-50 .image {
    background-repeat: no-repeat;
    background-position: center center;
}

.paragraph--type--text-and-image.image-type--graphic .field--name-field-image {
    background-size: contain;
}

.paragraph--type--text-and-image.image-type--photo .field--name-field-image,
.text-image-50 .image {
    background-size: cover;
    min-height: 200px;
}

.text-image-50.image-first .image {
    border-radius: 8px 8px 0 0;
}

.paragraph--type--text-and-image.image-type--photo .field--name-field-image,
.text-image-50.image-second .image {
    border-radius: 0 0 8px 8px;
}

@media all and (min-width: 900px) {
    .paragraph--type--text-and-image,
    .text-image-50 {
        display: flex;
        flex-wrap: nowrap;
    }

    .paragraph--type--text-and-image > *,
    .text-image-50 > * {
        flex: 1 1 50%;
    }

    .paragraph--type--text-and-image.image-type--photo .field--name-field-image,
    .text-image-50 .image {
        min-height: auto;
    }

    .text-image-50.image-first .image {
        border-radius: 8px 0 0 8px;
    }

    .paragraph--type--text-and-image.image-type--photo .field--name-field-image,
    .text-image-50.image-second .image {
        border-radius: 0 8px 8px 0;
    }
}

.paragraph--type--text-and-image .field--name-field-text-component,
.text-image-50 .text {
    padding: 40px;
}

@media all and (min-width: 1100px) {
    .paragraph--type--text-and-image .field--name-field-text-component,
    .text-image-50 .text  {
        padding: 90px 40px;
    }
}

.paragraph--type--text-and-image .paragraph--type--text-headings-link p.cta-link {
    margin-top: 3.5rem;
}

/* Half and three-quarters content width paragraphs. Top level paragraph with headings, text, and optional CTA link */
.paragraph--type--text-headings-link.dark-line-sandwich.top-level {
    padding: 3rem 0;
}

.paragraph--type--text-headings-link.dark-line-sandwich.top-level.style--half {
    padding: 7rem 0;
}

.paragraph.top-level.style--half .paragraph--content {
    max-width: 588px;
    margin: 0 auto;
    text-align: center;
    font-size: 2.4rem;
}

.paragraph.top-level.style--half .field--name-field-body {
    text-align: left;
}

.paragraph.top-level.style--three_quarters .paragraph--content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* solid text/image paragraph list checkmark style */
.paragraph--type--text-and-image.region--red-dark ul {
    list-style: none;
    padding-left: 0;
}

.paragraph--type--text-and-image.region--red-dark ul li {
    display: flex;
    margin-bottom: 1.25rem;
}

.paragraph--type--text-and-image.region--red-dark ul li:before {
    content: '';
    background: url(../../images/checkmark--circle.svg) no-repeat center center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    margin-right: 1.6rem;
}

/* columns layout paragraph */
.columns--4 {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

@media all and (min-width: 460px) {
    .columns--4.column-width--fixed > * {
        flex: 0 0 50%;
    }

    .columns--4.column-width--variable > * {
        flex: 1 1 50%;
    }
}

@media all and (min-width: 1000px) {
    .columns--4 {
        flex-wrap: nowrap;
    }

    .columns--4.column-width--fixed > * {
        flex: 0 0 25%;
    }

    .columns--4.column-width--variable > * {
        flex: 1 1 25%;
    }
}

/* Statistics paragraph - large number & small label */
@media all and (min-width: 460px) {
    .paragraph--type--columns.columns--4 .paragraph--type--statistic:nth-child(2n+1) {
        border-right: 1px dashed #D85849;
    }

    .paragraph--type--columns.columns--4 .paragraph--type--statistic {
        padding-left: 5%;
        padding-right: 5%;
        margin-bottom: 2rem;
    }

    .paragraph--type--columns.columns--4 .paragraph--type--statistic > * {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media all and (min-width: 1000px) {
    .paragraph--type--columns.columns--4 .paragraph--type--statistic {
        margin-bottom: 0;
    }

    .paragraph--type--columns.columns--4 .paragraph--type--statistic:not(:last-child) {
        border-right: 1px dashed #D85849;
    }

    .paragraph--type--columns.columns--4 .paragraph--type--statistic:last-child {
        border-right: none;
    }

    .paragraph--type--columns.columns--4 .paragraph--type--statistic:first-child {
        padding-right: 5%;
        padding-left: 0;
    }

    .paragraph--type--columns.columns--4 .paragraph--type--statistic:last-child {
        padding-left: 5%;
        padding-right: 0;
    }

    .paragraph--type--columns.columns--4 .paragraph--type--statistic:first-child > * {
        align-items: flex-start;
    }
    
    /*.paragraph--type--columns.columns--4 .paragraph--type--statistic:last-child > * {
        align-items: flex-end;
    }*/
}

.statistic--number {
    font-family: 'abril_textextrabold', 'Times', 'Times New Roman', serif;
    font-size: 7.2rem;
    font-weight: 700;
    color: #D85849;
}

.statistic--label {
    font-size: 2.4rem;
}
