.card-carousel {
    /* --card-radius: 16px;
    --card-background: #fff;
    --card-title-color: #151515;
    --card-meta-color: #6f6f6f;
    --card-duration-background: rgb(0 0 0 / 75%);
    --card-play-size: 56px; */

    overflow: hidden;
    width: 100%;
}

.card-carousel__container {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 16px;
}

/* ==========================================================================
   Card Carousel
   ========================================================================== */

.card-carousel__heading {
    color: #005E9E;
    font-size: 28px;
    line-height: 40px;
    font-weight: 600;
    margin: 0 0 32px;
    text-align: center;
}

.card-carousel__swiper {
    visibility: hidden;
    opacity: 0;
    transition: opacity .2s ease;
    overflow: hidden;
}

/* Swiper 6.x initialization styles */
.card-carousel__swiper.swiper-container-initialized {
    visibility: visible;
    opacity: 1;
}

.card-carousel__swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
    margin-top: 0;
}

.card-carousel__swiper .swiper-slide {
    display: flex;
    flex-shrink: 0;
    height: auto;
    text-align: left;
    padding-left: 0;
}

.video-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ==========================================================================
   Media
   ========================================================================== */

.video-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 16 / 10;
    background: #f4f4f4;
    text-decoration: none;
}

.video-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.video-card__media:hover .video-card__image,
.video-card__media:focus-visible .video-card__image {
    transform: scale(1.04);
}

/* ==========================================================================
   Play Button
   ========================================================================== */

.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.video-card__play-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ==========================================================================
   Duration
   ========================================================================== */

.video-card__duration {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* min-width: 58px; */
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: #ffffff;
    color: #1C2633;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}

/* ==========================================================================
   Content
   ========================================================================== */

.video-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding-top: 20px;
}

.video-card__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #1C2633;
    text-align: start;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.video-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 14px;
    color: #7a7f8d;
    font-size: 12px;
    line-height: 1;
}

.card-carousel .video-card__views,
.card-carousel .video-card__published-date {
    white-space: nowrap;
    /* OVERRIDE: An unknown rule forces "margin: 0 auto !important" on swiper spans. */
    margin: 0 !important;
}

.card-carousel .video-card__separator {
    /* OVERRIDE: An unknown rule forces "margin: 0 auto !important" on swiper spans. */
    margin: 0 8px !important;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.card-carousel__pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
}

.card-carousel__pagination .swiper-pagination-bullet {
    width: 24px;
    height: 6px;
    margin: 0 4px !important;
    border-radius: 999px;
    background: #d6deef;
    opacity: 1;
    transition: all .25s ease;
}

.card-carousel__pagination .swiper-pagination-bullet-active {
    width: 72px;
    background: #ef233c;
}


@media screen and (max-width:767px) {
    .card-carousel__pagination {
        justify-content: center;
    }

    /* OVERRIDE: global swiper styles */
    .card-carousel__swiper.swiper-container {
        padding-left: 0 !important;
        padding-bottom: 48px !important;
    }

    /* OVERRIDE: global swiper styles */
    .card-carousel__swiper.swiper-container-horizontal>.swiper-pagination-bullets,
    .card-carousel__swiper .swiper-pagination-fraction {
        bottom: 0px !important;
        left: auto !important;
    }

    .card-carousel__heading {
        font-size: 24px;
        line-height: 36px;
        margin-bottom: 24px;
    }
}