/*
 * Year-End Giving widget
 * Everything is scoped to .ccm-eoy so it can't leak into the rest of the site.
 */

.ccm-eoy {
    --ccm-eoy-blue: #263E8F;
    --ccm-eoy-blue-dark: #1B2D6B;
    --ccm-eoy-font: 'Proxima Nova', Arial, Helvetica, 'Nimbus Sans L', sans-serif;
    max-width: 900px;
    margin: 0 auto;
    color: var(--ccm-eoy-blue);
    font-family: var(--ccm-eoy-font);
    font-size: 19px;
    line-height: 1.4;
}

.ccm-eoy *,
.ccm-eoy *::before,
.ccm-eoy *::after {
    box-sizing: border-box;
}

.ccm-eoy .ccm-eoy__img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ---------- Hero ---------- */

.ccm-eoy .ccm-eoy__hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 520px;
    margin-top: 30px;
    background-color: #d8dbe3;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.ccm-eoy .ccm-eoy__hero-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 40px;
    background: var(--ccm-eoy-blue);
}

.ccm-eoy .ccm-eoy__hero-title {
    margin: 0;
    color: #fff;
    font-family: var(--ccm-eoy-font);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ccm-eoy .ccm-eoy__hero-logo {
    flex: 0 0 auto;
}

.ccm-eoy .ccm-eoy__hero-logo .ccm-eoy__img {
    width: auto;
    max-height: 70px;
}

/* ---------- Sections ---------- */

.ccm-eoy .ccm-eoy__section {
    padding: 40px 20px 10px;
}

.ccm-eoy .ccm-eoy__section--last {
    padding-bottom: 80px;
}

.ccm-eoy .ccm-eoy__heading {
    margin: 0 0 18px;
    color: var(--ccm-eoy-blue);
    font-family: var(--ccm-eoy-font);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ccm-eoy .ccm-eoy__body,
.ccm-eoy .ccm-eoy__body p,
.ccm-eoy .ccm-eoy__body li {
    color: var(--ccm-eoy-blue);
    font-family: var(--ccm-eoy-font);
    font-size: 19px;
    line-height: 1.4;
}

.ccm-eoy .ccm-eoy__body p {
    margin: 0 0 1em;
}

.ccm-eoy .ccm-eoy__body strong {
    font-weight: 700;
}

/* ---------- Buttons ---------- */

.ccm-eoy .ccm-eoy__button-wrap {
    margin: 10px 0 20px;
    text-align: center;
}

.ccm-eoy a.ccm-eoy__button,
.ccm-eoy a.ccm-eoy__button:visited {
    display: inline-block;
    padding: 22px 60px;
    border-radius: 40px;
    background: var(--ccm-eoy-blue);
    color: #fff;
    font-family: var(--ccm-eoy-font);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .2s ease;
}

.ccm-eoy a.ccm-eoy__button[href]:hover,
.ccm-eoy a.ccm-eoy__button[href]:focus {
    background: var(--ccm-eoy-blue-dark);
    color: #fff;
}

/* ---------- Bullets + side image ---------- */

.ccm-eoy .ccm-eoy__split {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 10px;
}

/* Custom dots so they always sit on the title line (a block-level title
   pushes the native list marker onto its own line). */
.ccm-eoy .ccm-eoy__bullets {
    flex: 1 1 55%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ccm-eoy .ccm-eoy__bullets li {
    position: relative;
    margin: 0 0 1.1em;
    padding: 0 0 0 1.4em;
    color: var(--ccm-eoy-blue);
    font-size: 19px;
    line-height: 1.3;
    list-style: none;
}

.ccm-eoy .ccm-eoy__bullets li::before {
    content: '';
    position: absolute;
    top: .5em;
    left: .3em;
    width: .35em;
    height: .35em;
    border-radius: 50%;
    background: currentColor;
}

.ccm-eoy .ccm-eoy__bullets strong {
    font-weight: 700;
}

.ccm-eoy .ccm-eoy__bullets span {
    display: block;
}

.ccm-eoy .ccm-eoy__split-image {
    flex: 1 1 45%;
}

.ccm-eoy .ccm-eoy__split-image .ccm-eoy__img {
    width: 100%;
}

/* ---------- Closing ---------- */

.ccm-eoy .ccm-eoy__deadline {
    margin: -6px 0 0;
    color: var(--ccm-eoy-blue);
    font-size: 19px;
    text-align: center;
}

.ccm-eoy .ccm-eoy__thanks {
    margin: 40px 0 0;
    color: var(--ccm-eoy-blue);
    font-size: 19px;
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
    .ccm-eoy .ccm-eoy__hero {
        min-height: 360px;
        margin-top: 0;
    }

    .ccm-eoy .ccm-eoy__hero-band {
        padding: 16px 20px;
    }

    .ccm-eoy .ccm-eoy__hero-title {
        font-size: 24px;
    }

    .ccm-eoy .ccm-eoy__hero-logo .ccm-eoy__img {
        max-height: 50px;
    }

    .ccm-eoy .ccm-eoy__heading {
        font-size: 24px;
    }

    .ccm-eoy,
    .ccm-eoy .ccm-eoy__body,
    .ccm-eoy .ccm-eoy__body p,
    .ccm-eoy .ccm-eoy__bullets li,
    .ccm-eoy .ccm-eoy__deadline,
    .ccm-eoy .ccm-eoy__thanks {
        font-size: 17px;
    }

    .ccm-eoy .ccm-eoy__split {
        flex-direction: column;
        align-items: stretch;
    }

    .ccm-eoy a.ccm-eoy__button,
    .ccm-eoy a.ccm-eoy__button:visited {
        padding: 18px 32px;
        font-size: 16px;
    }
}
