﻿.newsCarouselBlock {
    /* background-image: url(../images/backgroundimg.jpg), linear-gradient(rgba(20, 20, 22, 0.8), rgba(20, 20, 22, 0.8)); */
    /* background-color: rgba(20, 20, 22, 0.5); */
    /* background-position: center; */
    /* background-size: cover; */
    /* background-repeat: no-repeat; */
    /* background-blend-mode: overlay; */
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}


.newsCarouselContainer {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    padding: 0 5.5%;
}

    .newsCarouselContainer .carouselArrow {
        background: none;
        border: none;
        position: relative;
        width: 8rem !important;
        font-size: 5.5rem;
        color: #003b8d;
        display: flex;
        height: 100%;
        justify-content: center;
        align-items: center;
        font-family: 'ccicons';
        cursor: pointer;
        z-index: 2;
        transition: all .05s ease;
        -webkit-text-stroke: 1px rgba(0 0 0 / .7);
    }

        .newsCarouselContainer .carouselArrow:hover,
        .newsCarouselContainer .carouselArrow:focus {
            color: var(--cc-yellowAccent);
            font-size: 7rem;
        }

        .newsCarouselContainer .carouselArrow.left {
            left: 0.25em;
        }

        .newsCarouselContainer .carouselArrow.right {
            /* right: 0.25em; */
        }

.newsCarousel {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    overflow: hidden;
    padding: 2rem 0 4rem 0;
    margin: 0 3rem;
}

    .newsCarousel .news-item {
        /*changed from 15em per judge feedback*/
        height: 100%; /*changed from 22em per judge feedback*/
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: hidden;
        /* margin: 1rem 0; */
        /* position: relative; */
        /* background: #fff; */
        border-radius: .25rem; /*changed from 5px per judge feedback*/
        /* padding: 0 .5rem 0 2.65rem; */
        /* padding-bottom: .5em; */
        /* transition: transform .2s ease, box-shadow .25s ease-out; */
        /* background: #f5f5f5; */
        box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.25);
    }

    .newsCarousel a.newsCardLink::before {
        content: "";
        position: absolute;
        top: 0;
        width: 1px;
        right: -8%;
        height: 100%;
        /* background: linear-gradient(to bottom, white, #ccc, white); */
        border-radius: 50%;
        display: none;
    }

    .newsCarousel .news-item:hover {
        transform: scale(1.05);
        /* box-shadow: rgba(0, 0, 0, 0.6) 5px 5px 16px;*/
    }


    .newsCarousel .news-item .newsImage {
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        height: 14rem; /*changed from 7em per judge feedback*/
        /* text-align: end; */
        display: flex;
        width: 90%;
        justify-content: center;
        align-items: flex-end;
        margin: 1rem 0 .5rem 0;
        /* border-radius: .5rem; */
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .newsCarousel .news-item .newsDate {
        border-bottom: 1px solid #333;
        width: 90%;
        text-align: right;
        margin-bottom: 1rem;
        color: #333;
    }

    .newsCarousel .news-item .news-text {
        margin: 0 .5em .5em .5em;
    }

        .newsCarousel .news-item .news-text h3 {
            color: #333;
            font-size: 1.2em !important;
            font-weight: bold;
            border-bottom: 0;
            margin-bottom: 1.25rem;
        }

        .newsCarousel .news-item .news-text p {
            /* font-size: .9em !important; */
            /* padding: .5rem .25em 0 .25em; */
            color: #333;
        }

    .newsCarousel a.newsCardLink {
        display: flex;
        /* height: 28rem; */
        flex: 0 0 22em;
        text-decoration: none;
        margin: 1rem;
        position: relative;
        background: #fff;
        /* border-radius: .25rem; */
        /* padding: 0 .5rem; */
        /* padding-bottom: .5em; */
        /* border: 1px solid #ddd; */
        /* background: #f5f5f5; */
    }

        .newsCarousel a.newsCardLink:visited {
            color: inherit;
        }

        .newsCarousel a.newsCardLink:hover,
        .newsCarousel a.newsCardLink:focus,
        .newsCarousel a.newsCardLink:active {
            color: inherit;
            text-decoration: none;
        }



/* Extra large desktops */
@media (max-width: 1500px) {
}
/* Tablets 11 ipadpro*/
@media (max-width: 1210px) {
    .newsCarouselContainer {
        padding: .5rem;
    }

        .newsCarouselContainer .carouselArrow {
            width: 2rem !important;
            font-size: 2rem;
        }
}

/* Tablets 12.9 ipadpro*/
@media (max-width: 1366px) {
}


/* Large desktops */
@media (max-width: 1200px) {
}


/* Small desktops / large tablets */
@media (max-width: 992px) {
}

/* Tablets */
@media (max-width: 768px) {
    .newsCarousel {
        margin: 0 1rem;
        padding: 2rem 0 2rem 0;
    }

    .newsCarouselContainer {
        padding: 0;
    }

    .newsCarousel a.newsCardLink {
        flex: 0 0 16em;
        height: 25rem;
    }
}

/* Large phones */
@media (max-width: 576px) {
    .newsCarousel {
        gap: 1rem;
    }
        .newsCarousel .news-item .news-text h3 {
            margin-top: .15rem;
        }
        .newsCarousel .news-item .news-text {
            height: 17rem;
        }

        .newsCarousel .news-item .newsImage {
            display: block;
            padding: 55px;
        }

    .newsCarouselContainer .carouselArrow:hover, .newsCarouselContainer .carouselArrow:focus {
        font-size: 3rem;
    }
}
/* Small phones */
@media (max-width: 480px) {
}

/* Very small devices */
@media (max-width: 360px) {
}
