/* ============================================
   CDIFF Site Materials - mobile-first responsive
   Breakpoints match theme: sm 576px, md 768px, lg 992px
   ============================================ */

/* ---- Base ---- */
.cdiff-materials {
    font-family: "Open Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.6;

}

.cdiff-materials ol, 
.cdiff-materials ul {
    margin-left: 20px;
}

.cdiff-materials__section {
    margin-bottom: 2rem;
}

.cdiff-materials__heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.cdiff-materials__divider {
    border: 0;
    border-top: 1px solid #d9d9d9;
    margin: 1.5rem 0;
}

/* ---- Buttons ---- */
.cdiff-materials__btn {
    background: #33678b;
    border: 0;
    border-radius: 1rem;
    box-shadow: .25em .25em .25em #dedede;
    color: #fff;
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 1rem;
    padding: .85rem 1.25rem;
    text-align: center;
    text-decoration: none;
    width: 100%;
}

.cdiff-materials__btn:hover,
.cdiff-materials__btn:focus {
    background: #455171;
    color: #fff;
    text-decoration: none;
}

.cdiff-materials__btn::after {
    content: "\25b6";
    display: inline-block;
    margin-left: .5em;
}

.cdiff-materials__btn--center {
    margin-left: auto;
    margin-right: auto;
}

/* ---- Contact ---- */
.cdiff-materials__contact {
    font-size: 1rem;
    line-height: 1.8;
}

.cdiff-materials__contact a {
    color: inherit;
    text-decoration: none;
}

.cdiff-materials__contact a:hover,
.cdiff-materials__contact a:focus {
    text-decoration: underline;
}

/* ---- Hero card (stacked on mobile, side-by-side on md+) ---- */
.cdiff-hero {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: .25rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.cdiff-hero__row {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cdiff-hero__col {
    width: 100%;
}

.cdiff-hero__image-wrap {
    position: relative;
}

/* On mobile cap the hero image height so it does not dominate */
.cdiff-hero__image {
    display: block;
    height: 260px;
    object-fit: cover;
    width: 100%;
}

.cdiff-hero__overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .65) 100%);
    bottom: 0;
    color: #fff;
    left: 0;
    padding: 1rem;
    position: absolute;
    right: 0;
}

.cdiff-hero__overlay-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.cdiff-hero__overlay-text {
    font-size: .85rem;
    margin-bottom: .5rem;
}

.cdiff-hero__logos {
    max-height: 2rem;
    width: auto;
}

.cdiff-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.25rem;
    text-align: center;
}

.cdiff-hero__heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

/* ---- Two-column rows (stacked on mobile) ---- */
.cdiff-two-col {
    margin-bottom: 2rem;
}

.cdiff-two-col__row {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cdiff-two-col__col {
    width: 100%;
}

.cdiff-two-col__image {
    display: block;
    height: auto;
    width: 100%;
}

.cdiff-materials__section--enroll {
    border-bottom: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
    padding-bottom: 2.5rem;
    padding-top: 2.5rem;
}

/* ============================================
   sm: 576px and up
   ============================================ */
@media (min-width: 576px) {
    .cdiff-materials__btn {
        display: inline-block;
        font-size: 1.05rem;
        min-width: 14rem;
        width: auto;
    }
}

/* ============================================
   md: 768px and up - side-by-side layouts
   ============================================ */
@media (min-width: 768px) {
    .cdiff-materials__section {
        margin-bottom: 2.5rem;
    }

    .cdiff-materials__heading {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .cdiff-materials__divider {
        margin: 2rem 0;
    }

    .cdiff-materials__btn {
        font-size: 1.1rem;
        padding: .85rem 1.5rem;
    }

    .cdiff-materials__contact {
        font-size: 1.1rem;
    }

    /* Hero */
    .cdiff-hero {
        margin-bottom: 2.5rem;
    }

    .cdiff-hero__row {
        flex-direction: row;
    }

    .cdiff-hero--reverse .cdiff-hero__row {
        flex-direction: row-reverse;
    }

    .cdiff-hero__col {
        
        width: auto;
    }

    .cdiff-hero__image-wrap {
        height: 100%;
    }

    /* Remove the mobile cap so image fills card height on desktop */
    .cdiff-hero__image {
        height: 100%;
        min-height: 600px;
        min-width: 300px;
    }

    .cdiff-hero__overlay {
        padding: 1.25rem;
    }

    .cdiff-hero__overlay-heading {
        font-size: 1.15rem;
        margin-bottom: .5rem;
    }

    .cdiff-hero__overlay-text {
        font-size: .9rem;
        margin-bottom: .75rem;
    }

    .cdiff-hero__logos {
        max-height: 2.5rem;
    }

    .cdiff-hero__content {
        padding: 2rem;
    }

    .cdiff-hero__heading {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Two-col */
    .cdiff-two-col {
        margin-bottom: 2.5rem;
    }

    .cdiff-two-col__row {
        align-items: center;
        flex-direction: row;
        gap: 2rem;
    }

    .cdiff-two-col--reverse .cdiff-two-col__row {
        flex-direction: row-reverse;
    }

    .cdiff-two-col__col {
      
        width: auto;
    }
}

/* ============================================
   lg: 992px and up
   ============================================ */
@media (min-width: 992px) {
    .cdiff-hero__image {
        min-height: 600px;
        min-width: 300px;
    }

    .cdiff-two-col__row {
        gap: 2.5rem;
    }

    /* Divider only BETWEEN repeater rows, never after the last one */
    .cdiff-two-col + .cdiff-two-col {
        border-top: 1px solid #e0e0e0;
        padding-top: 2.5rem;
    }

   

    .cdiff-two-col__image {
        min-height: 350px;
        max-height: 460px;
        width: 560px;
    }
}
