/* Scope everything under the unique container */
.news-carousel-container .carousel {
    position: relative;
}
.paddingsidesClass {
    margin-left:20px;
    margin-right:20px;
}

/* Flex cards to fill width minus gaps */
.news-carousel-container .carousel-item .d-flex .card {
    flex: 0 0 calc((100% - 30px) / 3); /* adjust “3” to however many per slide */
    margin-right: 15px;
    border-radius: 30px;
    overflow: hidden;
    border: none;
    display: flex;
    flex-direction: column;
}

    /* No margin on the last card each row */
    .news-carousel-container .carousel-item .d-flex .card:last-child {
        margin-right: 0;
    }

/* Image and body */
.news-carousel-container .card-img-top {
    height: 350px;
    width: 100%;
    object-fit: cover;
}

.news-carousel-container .card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

/* Side arrows styling */
.news-carousel-container .carousel-control-prev,
.news-carousel-container .carousel-control-next {
    width: 5%;
    top: 0;
    bottom: 0;
    opacity: 0.7;
    z-index: 2;
}

.news-carousel-container .carousel-control-prev-icon,
.news-carousel-container .carousel-control-next-icon {
    background-size: 2rem 2rem;
    filter: invert(1);
}

/* ?? MOBILE: force each card 100% width ?? */
@media (max-width: 576px) {
    .news-carousel-container .carousel-item .d-flex {
        justify-content: center !important;
    }

        .news-carousel-container .carousel-item .d-flex .card {
            flex: 0 0 100% !important;
            margin-right: 0 !important;
        }
}
.nhsuk-hero--image .nhsuk-hero__overlay {
    background-color: rgba(0, 0, 0, 0) !important;
}

.card {
    display: inline-block;
    width: 250px;
    overflow: hidden;
    border-radius: 6px;
    /* …etc… */
}

    .card img {
        display: block;
        width: 100%;
        height: 150px;
        object-fit: cover;
    }

.caption {
    padding: 24px 16px;
    text-align: center;
    font-weight: bold;
    font-size: 2rem;
    line-height: 1.2;
}

a {
    white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
    white-space: -webkit-pre-wrap; /* Chrome & Safari */
    white-space: -pre-wrap; /* Opera 4-6 */
    white-space: -o-pre-wrap; /* Opera 7 */
    white-space: pre-wrap; /* CSS3 */
    word-wrap: break-word; /* Internet Explorer 5.5+ */
    word-break: break-all;
    white-space: normal;
}
