﻿.slider-container {
    display: block;
    padding: 50px 0;

    background-image: url(/assets/images/hero.svg?v=2);
    background-position:center;
    background-size:cover;

    margin-bottom:40px;
}
    .slider-container h2 {
        background: none;
        font-size: 40px;
        text-align: center;
        margin: 0px 0px 30px;
        font-weight: 500;
        text-transform: uppercase;
        color: #fff;
        text-shadow: 0 0 8px rgba(255,255,255,0.9), 0 0 12px rgba(0, 200, 255, 0.6), 0 2px 6px rgba(0,0,0,0.6);
        letter-spacing: 1px;
    }

    .slider-container .carousel-subheading {
        font-size: 1rem;
        font-weight: 300;
        color: rgba(255, 255, 255, 0.9);
        text-align: center;
        margin-top: 20px;
        font-size:20px;
    }

        .slider-container .carousel-subheading a {
            color: #fff;
            display: inline-block;
            padding: 10px 10px 10px 28px;
            background-color: #1b1a1b;
            line-height: 20px;
            font-size: 15px;
            text-decoration: none;
            font-weight: 400;
            position: relative;
            border-radius: 8px;
            transition: background-color ease-in-out 0.3s;
            box-shadow: 0 0 8px rgba(0, 200, 255, 0.6);
            margin-left: 5px;
        }

            .slider-container .carousel-subheading a:before {
                content: "\2605";
                color: #00B67A;
                position: absolute;
                left: 10px; /* aligns inside left padding */
                top: 50%;
                font-size:20px;
                transform: translateY(-50%); /* vertically center */
            }

            .slider-container .carousel-subheading a:hover {
                color: #ffffff;
                text-decoration: none;
                background-color: #2f2d2f;
            }

.cm-hero-swiper {
    max-width: 1200px;
    width: 1200px;
    margin: 10px auto 24px;
    padding: 0;
    position: relative;
}

@media (max-width:1200px) {
    .cm-hero-swiper {
        max-width:600px;
        width:600px;
    }
}
@media (max-width:700px) {
    .cm-hero-swiper {
        max-width: 450px;
        width: 450px;
    }
}

@media (max-width:550px) {
    .cm-hero-swiper {
        max-width: 400px;
        width: 400px;
    }
}

@media (max-width:500px) {
    .cm-hero-swiper {
        max-width: 350px;
        width: 350px;
    }
}

.cm-swiper {
    padding-bottom:50px;
}

.cm-swiper .swiper-slide {
    width: 78vw; /* mobile: show edges of prev/next */
    max-width: 460px; /* desktop cap */
}

.cm-card {
    display: grid;
    grid-template-rows: auto min-content;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    background: #808080;
    box-shadow: 0 16px 34px rgba(0,0,0,.22);
}

    .cm-card img {
        width: 100%;
        height: 240px;
        object-fit: cover;
        display: block;
    }

.cm-meta {
    padding: 12px 14px 14px;
    color: #fff;
}

    .cm-meta h3 {
        margin: 10px 0 15px;
        font-weight: 800;
        font-size: 1.06rem;
        color:#000;
        line-height:30px;
        padding:10px 0px;
        text-align:center;
        background-color:#fff;
    }

    .cm-meta p {
        margin: 0 0 20px;
        font-size: .92rem;
        opacity: .9;
        text-align:center;
    }


/* Swiper nav/pagination */
.cm-hero-swiper .swiper-button-prev,
.cm-hero-swiper .swiper-button-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0,0,0,.6);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.cm-hero-swiper .swiper-pagination-bullet {
    background: rgba(255,255,255,.5);
}

.cm-hero-swiper .swiper-pagination-bullet-active {
    background: #16d4dd;
}

.swiper-pagination {
    top:auto;
    bottom:0px;
}

.swiper-slide {
    transition:opacity ease-in-out 0.5s;
    opacity:0;
}

.swiper-slide-next, .swiper-slide-prev {
    opacity: 0.7;
}
.swiper-slide-fully-visible {
    opacity:1;
}

/* larger screens: slightly narrower slide for stronger prev/next peek */
@media (min-width: 760px) {
    .cm-swiper .swiper-slide {
        width: 52vw;
    }
}

@media (min-width: 1024px) {
    .cm-swiper .swiper-slide {
        width: 36vw;
    }
}
