/* Campaign banner slider — homepage section between the hero and the about area */

.mr-campaigns__slide {
    padding: 0 6px;
}

.mr-campaigns__link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    line-height: 0;
}

/*
 * The banner is stored at a fixed 12:5 ratio, so a plain responsive image keeps
 * that ratio at every width without a wrapper hack. The explicit width/height
 * attributes on the tag reserve the space and prevent layout shift on load.
 */
.mr-campaigns__image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .5s ease;
}

.mr-campaigns__link:hover .mr-campaigns__image {
    transform: scale(1.03);
}

.mr-campaigns__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    padding: 40px 28px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0));
    color: #fff;
    line-height: 1.4;
}

.mr-campaigns__title {
    display: block;
    font-size: 22px;
    font-weight: 700;
}

.mr-campaigns__desc {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    opacity: .9;
}

/*
 * slick-theme.css paints its own glyphs through :before on the arrows and dots.
 * We supply FontAwesome icons instead, so those pseudo-elements are dropped —
 * otherwise both glyphs stack inside the same button.
 */
.mr-campaigns .slick-arrow:before,
.mr-campaigns .slick-dots li button:before {
    content: none;
}

/* Slick arrows, matched to the theme's blue */
.mr-campaigns .slick-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    line-height: 1;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: #0E47A1;
    font-size: 16px;
    cursor: pointer;
    transition: background .3s, color .3s;
}

.mr-campaigns .slick-arrow:hover {
    background: #0E47A1;
    color: #fff;
}

.mr-campaigns .slick-prev {
    left: 22px;
}

.mr-campaigns .slick-next {
    right: 22px;
}

/* The theme pins the dots absolutely under the track; we want them in flow. */
.mr-campaigns .slick-dots {
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.mr-campaigns .slick-dots li {
    width: auto;
    height: auto;
    margin: 0;
}

.mr-campaigns .slick-dots li button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c9d3e4;
    font-size: 0;
    cursor: pointer;
    transition: background .3s;
}

.mr-campaigns .slick-dots li.slick-active button {
    background: #0E47A1;
}

@media (max-width: 767px) {
    .mr-campaigns__caption {
        padding: 24px 16px 14px;
    }

    .mr-campaigns__title {
        font-size: 16px;
    }

    /* The blurb is unreadable over a banner this small */
    .mr-campaigns__desc {
        display: none;
    }

    .mr-campaigns .slick-arrow {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .mr-campaigns .slick-prev {
        left: 8px;
    }

    .mr-campaigns .slick-next {
        right: 8px;
    }
}
