/* ========================================
   TILE IMAGE HOVER
   ======================================== */

.page-list-carousel .tileimage {
    position: relative;
    overflow: hidden;
}

.page-list-carousel .tileimagelink {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page-list-carousel .tileimagelink img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.4s ease;
}


/* ========================================
   BLACK HOVER OVERLAY
   ======================================== */

.page-list-carousel .tileimagelink::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 1;

    background: rgba(0, 0, 0, 0);

    pointer-events: none;

    transition: background 0.4s ease;
}


/* ========================================
   BOTTOM RIGHT ARROW
   ======================================== */

.page-list-carousel .tileimagelink::before {
    content: "→";

    position: absolute;
    right: 15px;
    bottom: 12px;
    z-index: 2;

    color: #fff;

    font-size: 22px;
    line-height: 1;
    font-weight: 400;

    pointer-events: none;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* ========================================
   HOVER
   ======================================== */

.page-list-carousel .tileimagelink:hover img {
    transform: scale(1.05);
}

.page-list-carousel .tileimagelink:hover::after {
    background: rgba(0, 0, 0, 0.3);
}

.page-list-carousel .tileimagelink:hover::before {
    transform: translateX(4px);
}


/* ========================================
   KEYBOARD FOCUS
   ======================================== */

.page-list-carousel .tileimagelink:focus-visible {
    outline: 3px solid #ccc;
    outline-offset: -3px;
}


/* ========================================
   PAGE LIST CAROUSEL
   ======================================== */

.page-list-carousel {
    position: relative;
}

.page-list-carousel-container {
    position: relative;
    padding-top: 0px;
}


/* ========================================
   CAROUSEL TRACK
   ======================================== */

.page-list-carousel .ccm-block-page-list-pages {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;

    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.page-list-carousel .ccm-block-page-list-pages::-webkit-scrollbar {
    display: none;
}


/* ========================================
   BASE CARD
   ======================================== */

.page-list-carousel .tile-item {
    min-width: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    scroll-snap-align: start;

    background-color: #eaf0f8 !important;
}


/* ========================================
   IMAGE
   ======================================== */

.page-list-carousel .tile-item .tileimage {
    flex: none;

    width: 100% !important;
    margin: 0;

    aspect-ratio: 16 / 9;

    overflow: hidden;
}

.page-list-carousel .tile-item .tileimage img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: none;
    margin: 0;

    object-fit: cover;
}


/* ========================================
   CARD TEXT
   ======================================== */

.page-list-carousel .tile-item .tiletext {
    box-sizing: border-box;

    flex: 1 1 auto;
    width: 100% !important;

    display: flex;
    flex-direction: row;
    align-items: stretch;

    padding: 0;
}


/* ========================================
   INSIGHT AREA - LEFT 25%
   ======================================== */

.page-list-carousel .tile-item .tilearea {
    flex: 0 0 25%;
    width: 25%;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    padding: 25px;
}

.page-list-carousel .tile-item .tilearea-inner {
    width: 100%;
}


/* ========================================
   MAIN TILE CONTENT - RIGHT 75%
   ======================================== */

.page-list-carousel .tile-item .tilecontent {
    flex: 0 0 75%;
    width: 75%;

    display: flex;
    flex-direction: column;
    justify-content: center;

    box-sizing: border-box;

    padding: 15px;
}


/* ========================================
   CARD TITLE
   ======================================== */

.page-list-carousel .tile-item .ccm-block-page-list-title {
    color: #2261ad;

    font-size: 1.25rem;
    line-height: 120%;

    margin-bottom: 1rem;
}

.page-list-carousel .tile-item .ccm-block-page-list-title a {
    color: #2261ad;

    font-size: inherit;
    line-height: inherit;

    text-decoration: none;
}

.page-list-carousel .tile-item .ccm-block-page-list-title a:hover {
    text-decoration: underline;
}


/* ========================================
   CAROUSEL ARROWS
   ======================================== */

.page-list-carousel-arrow {
    position: absolute;

    top: 50px;
    z-index: 10;

    width: 50px;
    height: 50px;

    padding: 0;

    border: 0;
    border-radius: 0;

    background: #fff;

    font-size: 32px;
    line-height: 50px;
    text-align: center;

    cursor: pointer;

    box-shadow: none;

    transition: opacity 0.3s ease;
}


/* Previous - top left */

.page-list-carousel-prev {
    left: 0;
    right: auto;
}


/* Next - top right */

.page-list-carousel-next {
    left: auto;
    right: 0;
}


.page-list-carousel-arrow:hover {
    opacity: 0.75;
}

/* ========================================
   WIDE DESKTOP - 4 CARDS
   ======================================== */

@media (min-width: 1300px) {

    /*
     * three cards across.
     *
     * There are three 30px gaps between
     * four cards = 90px total.
     */
    .page-list-carousel .tile-item {
        flex: 0 0 calc((100% - 60px) / 2.5)!important;
        flex-direction: column;
    }

    .page-list-carousel .tile-item .tileimage,
    .page-list-carousel .tile-item .tiletext {
        width: 100% !important;
    }

}


/* ========================================
   DESKTOP - 4 CARDS
   ======================================== */

@media (min-width: 992px) {

    /*
     * three cards across.
     *
     * There are three 30px gaps between
     * four cards = 90px total.
     */
    .page-list-carousel .tile-item {
        flex: 0 0 calc((100% - 60px) / 2.5);
        flex-direction: column;
    }

    .page-list-carousel .tile-item .tileimage,
    .page-list-carousel .tile-item .tiletext {
        width: 100% !important;
    }

}


/* ========================================
   TABLET
   ======================================== */

@media (min-width: 768px) and (max-width: 991.98px) {

    .page-list-carousel .tile-item {
        flex: 0 0 75%;
        flex-direction: column;
    }

    .page-list-carousel .tile-item .tileimage,
    .page-list-carousel .tile-item .tiletext {
        width: 100% !important;
    }

    .page-list-carousel .tile-item .tiletext {
        padding: 0px;
    }

}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 767.98px) {

    .page-list-carousel-container {
        padding-top: 0;
    }

    .page-list-carousel .ccm-block-page-list-pages {
        gap: 20px;
    }

    .page-list-carousel .tile-item {
        flex: 0 0 85%;
        flex-direction: column;
    }

    .page-list-carousel .tile-item .tileimage,
    .page-list-carousel .tile-item .tiletext {
        width: 100% !important;
    }

    .page-list-carousel .tile-item .tiletext {
        padding: 0px;
    }


    /* ========================================
       MOBILE ARROWS
       ======================================== */

    .page-list-carousel .page-list-carousel-arrow {
        position: relative !important;

        top: auto !important;
        bottom: auto !important;

        z-index: 10;

        width: 50px;
        height: 50px;

        padding: 0;

        border: 0;
        border-radius: 0;

        background: #fff;

        font-size: 32px;
        line-height: 50px;
        text-align: center;

        cursor: pointer;

        box-shadow: none;

        transform: none !important;
    }

    .page-list-carousel .page-list-carousel-prev {
        position: absolute !important;

        left: 0 !important;
        right: auto !important;
        top: 50px !important;
    }

    .page-list-carousel .page-list-carousel-next {
        position: absolute !important;

        
        
        right: 0px !important;
        top: 50px !important;
    }

}

/*tiling*/

.tile-item { border-bottom-left-radius: 25px !important;}
.tile-text {padding:20px!important;}
.tile-text span.thedate {display:block!important; width:100%!important;}
.insightarea .tilearea {background: #2261ad; border-bottom-left-radius: 25px !important;}