.video-content-slider {
    position: relative;
}

.video-content-slider__bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
}

.video-content-slider::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #001637;
    opacity: 0.69;
}

.content-slider,
.full-width-video {
    position: relative;
    z-index: 1;
}

.full-width-video {
    padding-top: 30px;
}

.video-listing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.video-list {
    display: flex;
    align-items: center;
    background: var(--color-white);
    padding: 10px 30px 10px 8px;
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 10px;
    color: #303030;
    font-size: 18px;
    line-height: 1.3em;
    font-family: var(--font-primary-bold);
    font-weight: normal;
}

.video-list__check {
    width: 27px;
    height: 27px;
    position: relative;
    background: var(--color-light-grey);
    border-radius: 5px;
    font-size: 23px;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video {
    margin-top: 33px;
    position: relative;
    height: 196px;
}

.video::after {
    content: '';
    position: absolute;
    border-radius: var(--border-radius);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #010220;
    opacity: 0.27;
}

.video img {
    border-radius: var(--border-radius);
}

.video-bttn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-white);
    font-family: var(--font-primary-bold);
    font-size: 25px;
    font-weight: normal;
    line-height: 1.3em;
    text-decoration: none;
    z-index: 1;
}

.video-bttn svg {
    width: 85px;
    height: auto;
}

.video-bttn span {
    margin-left: -15px;
    position: relative;
}

.video__left-line {
    position: absolute;
    left: 28px;
    top: 23px;
    width: 1px;
    height: calc(100% - 51px);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.38) 100%);
    z-index: 1;
    
    /* CSS Variables for animation */
    --height-percent: 100;
    --before-height: 85px;
    --circle-scale: 1;
    --circle-opacity: 1;
    
    /* Apply variables */
    height: calc((var(--height-percent) * 1%) - 51px);
}

.video__bottom-line {
    position: absolute;
    left: 28px;
    bottom: 28px;
    width: calc(100% - 56px);
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    
    /* CSS Variables for animation */
    --line-width-percent: 100;
    --before-width: 95px;
    --circle-scale: 1;
    --circle-opacity: 1;
    
    /* Apply variables */
    width: calc((var(--line-width-percent) * 1%) - 56px);
}

.video__left-line:after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: 0 0 4px 0 var(--color-white);
    left: 50%;
    top: 38px;
    transform: translate(-50%, 0) scale(var(--circle-scale));
    opacity: var(--circle-opacity);
}

.video__left-line::before {
    content: '';
    position: absolute;
    width: 1px;
    height: var(--before-height);
    left: 0;
    top: 0px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
}

.full-width-video--innerpage .video-listing {
    align-items: flex-start;
}

.full-width-video--innerpage .video-list span {
    width: calc(100% - 40px);
}

.full-width-video--homepage .video-list {
    justify-content: center;
}

.full-width-video--homepage .video-list span {
    flex: 2;
}

@media (min-width: 768px) {

    .full-width-video {
        padding-top: 50px;
    }

    .video-wrapper {
        position: relative;
    }

    .video-listing {
        position: absolute;
        top: 42px;
        left: 41px;
        z-index: 2;
        align-items: flex-start;
    }

    .video-listing:not(.has-video) {
        position: static;
    }

    .video-list br {
        display: none;
    }

    .video-list {
        font-size: 20px;
        padding-left: 11px;
    }

    .full-width-video--homepage .video-list {
        justify-content: flex-start;
    }

    .video-list__check {
        background: none;
        z-index: 1;
        margin-top: -9px;
    }

    .video-list__check::before {
        content: '';
        width: 100%;
        height: 100%;
        position: absolute;
        background: var(--color-light-grey);
        border-radius: 5px;
        top: 5px;
        left: -3px;
        z-index: -1;
    }

    .video {
        margin-top: 0;
        height: 395px;
    }

    .video-bttn {
        width: auto;
        height: auto;
        top: auto;
        left: auto;
        right: 40px;
        bottom: 10px;
        font-size: 29px;
    }

    .video-bttn svg {
        width: 124px;
    }

    .video-bttn span {
        margin-left: -27px;
    }

    .video__left-line {
        left: 64px;
        top: 32px;
        height: calc(100% - 98px);
    }

    .video__bottom-line {
        left: 66px;
        bottom: 66px;
        width: calc(100% - 100px);
    }

    .video__left-line:after {
        width: 6px;
        height: 6px;
        top: 211px;
    }

    .video__left-line::before {
        height: 50px;
        top: 188px;
    }

    .full-width-video--innerpage .video-list {
        font-size: 25px;
        width: 100%;
    }

    .full-width-video--innerpage .video-list span {
        width: calc(100% - 37px);
    }

    .full-width-video--innerpage .video-listing {
        top: 24px;
    }

    .full-width-video--innerpage {
        padding-top: 85px;
    }
}

@media (min-width: 1200px) {

    .video-wrapper {
        max-width: 1250px;
        margin: 0 auto;
    }

    .video-listing {
        top: 46px;
        left: 39px;
    }

    .video-list {
        font-size: 25px;
    }

    .video {
        height: 738px;
    }


    .video-bttn svg {
        width: 150px;
        transition: all ease 0.3s;
    }

    .video-bttn span {
        margin-left: -33px;
        position: relative;
        z-index: 1;
    }

    .video__left-line {
        left: 85px;
        top: 60px;
        height: calc(100% - 140px);
    }

    .video__bottom-line {
        left: 85px;
        bottom: 80px;
        width: calc(100% - 142px);
    }

    .video__left-line:after {
        width: 10px;
        height: 10px;
        /* top: 352px; */
        top: var(--circle-top);
    }

    .video__left-line::before {
        height: 95px;
        top: 309px;
    }

    .video__bottom-line:after {
        content: '';
        position: absolute;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--color-white);
        box-shadow: 0 0 4px 0 var(--color-white);
        top: 50%;
        left: var(--circle-bottom);
        transform: translate(0, -50%) scale(var(--circle-scale));
        opacity: var(--circle-opacity);
    }

    .video__bottom-line::before {
        content: '';
        position: absolute;
        width: var(--before-width);
        height: 1px;
        left: 541px;
        top: 0px;
        background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
    }

    .video-bttn:hover svg {
        transform: scale(1.2);
    }

    .full-width-video--innerpage .video-listing {
        top: 45px;
        left: 56px;
    }

    .full-width-video--innerpage .video-list {
        width: max-content;
    }

    .full-width-video--innerpage {
        padding-top: 120px;
    }    

}

@media (max-width: 1024px) {
    .full-width-video--innerpage .video-listing {
        display: none;
    }
}

@media (min-width: 1600px) {

    .full-width-video {
        padding-top: 120px;
    }

    .video-bttn {
        right: 65px;
    }

    .video__bottom-line:after {
        left: var(--circle-bottom);
    }

    .video__bottom-line::before {
        left: 275px;
    }
}

.content-slider__headlines {
    padding-bottom: 30px;
    text-align: center;
    color: var(--color-white);
}

.content-slider__headlines h2 {
    color: var(--color-white);
}

.text-cards-slider {
    margin: 0 -17px;
    padding-bottom: 79px;
}

.text-card-item {
    padding: 0 17px;
}

.text-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    height: 100%;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8.850000381469727px);
    -webkit-backdrop-filter: blur(8.850000381469727px); /* Safari support */
    padding: 34px 25px;
    color: var(--color-white);
    /* Create stacking context for better Safari compatibility */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.text-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    background: linear-gradient(180deg, #1058B8 0%, #032F6A 100%);
    opacity: 0;
    transition: opacity .3s ease-in-out;
    pointer-events: none;
    /* Use z-index: 0 and isolate parent instead of negative z-index */
    z-index: 0;
}

.text-card > * {
    /* Ensure content appears above the ::before gradient */
    position: relative;
    z-index: 1;
}

.text-cards-slider .slick-track {
    display: flex !important;
}

.text-cards-slider .slick-slide {
    height: inherit !important;
}

.text-cards-slider .slick-slide div {
    height: 100%;
}

.text-cards-slider .slick-slide .text-card div {
    height: auto;
}

/* Below slick responsive breakpoint 768 (adaptiveHeight): flex-stretch + height:100%
   forces all slides to the tallest card, so slick-list never shrinks. */
@media (max-width: 767px) {
    .text-cards-slider .slick-track {
        align-items: flex-start;
    }

    .text-cards-slider .slick-slide {
        height: auto !important;
    }

    .text-cards-slider .slick-slide > div {
        height: auto;
    }

    .text-cards-slider .slick-slide .text-card {
        height: auto;
    }
}

.text-card__title {
    color: var(--color-white);
    font-size: 28px;
    line-height: normal;
    padding-bottom: 20px;
    border-bottom: 1px solid #67728A;
    margin-bottom: 25px;
}

.text-card__sub-title {
    color: var(--color-white);
    font-size: 20px;
    line-height: normal;
    margin-bottom: 30px;
}

.text-card__bottom {
    margin-top: 30px;
}

.text-card__bottom .btn {
    border: none;
    display: flex;
    justify-self: flex-start;
    gap: 3px;
}

.text-card__bottom .btn.stretched-link {
    position: static;
}

.text-card__bottom .btn.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
    transform: none;
}

/* Make links inside text-card content clickable even with stretched-link */
.text-card__description a:not(.btn) {
    position: relative;
    z-index: 2;
}

.text-card__info {
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.17);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.10) 100%);
    margin-top: 25px;
    margin-bottom: 25px;
    padding: 15px 25px;
    position: relative;
    overflow: visible;
}

.text-card__info::before {
    content: "";
    position: absolute;
    left: 15px;
    top: -1px;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
    transition: width 0.6s ease-out;
}

.text-card__info.is-animating::before {
    width: 95px;
}

.text-card__info::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: 0 0 4px 0 var(--color-white);
    offset-path: inset(0 round var(--border-radius));
    offset-anchor: 50% 50%;
    --offset-start: 5%;
    offset-distance: var(--offset-start);
    offset-rotate: 0deg;
    opacity: 0;
}

.text-card__info.is-animating::after {
    opacity: 1;
    animation: dotRunAroundCardInfo 10.5s ease-in-out 1;
}

.text-card__bottom .btn i{
    font-size: 13px;
	display: flex;
	align-items: center;
}

@keyframes dotRunAroundCardInfo {
    0% {
        opacity: 1;
        offset-distance: var(--offset-start);
    }
    63.64% {
        opacity: 1;
        offset-distance: calc(var(--offset-start) + 100%);
    }
    100% {
        opacity: 1;
        offset-distance: calc(var(--offset-start) + 100%);
    }
}

.top-left-dot {
    display: none;
}

.text-card__info-details {
    color: var(--color-white);
    font-size: 18px;
    font-family: var(--font-primary-bold);
    font-weight: normal;
    line-height: normal;
    display: block;
}

.text-card__count {
    color: var(--color-white);
    font-size: 40px;
    font-family: var(--font-primary-bold);
    font-weight: normal;
    line-height: normal;
    margin-bottom: 15px;

    sup {
        top: 0;
        font-size: inherit;
    }
}

.bottom-left-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: 0 0 4px 0 var(--color-white);
    width: 10px;
    height: 10px;
    bottom: -6px;
    left: 54px;
}

.bottom-left-dot::after {
    content: '';
    position: absolute;
    width: 95px;
    height: 1px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
}

.video-content-slider .text-card__sub-title {
    font-size: 22px;
    margin-bottom: 14px;
}

.video-content-slider .text-card__description {
    margin-bottom: 45px;
    margin-bottom: 0;

    p {
        font-size: 20px;
        line-height: 1.45em;
    }
}

.video-content-slider .text-card__description :where(h2,h3,h4,h5,h6,ul li, p, a:not(.btn)) {
    color: var(--color-white);
}

.video-content-slider .text-card__description p a:not(.btn)::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, var(--color-white) 49.52%, rgba(255, 255, 255, 0.00) 98.56%);
}

.video-content-slider .text-card__description p a:not(.btn)::after {
    background: var(--color-white);
    box-shadow: 0 0 4px 0 var(--color-white);
}

.video-content-slider .slick-current .text-card::before {
    opacity: 1;
}

.video-content-slider .slick-current .text-card__title {
    border-color: #4373DB;
}

.video-content-slider .text-card__title {
    font-size: 35px;
    padding-bottom: 25px;
}

.video-content-slider .text-card__bottom {
    margin-top: 75px;
    margin-top: auto;
}

.video-content-slider .content-slider__headlines {
    padding-bottom: 45px;
    text-align: left;
}

.video-content-slider .content-slider__headlines .content-slider__title {
    padding-left: 26px;
}

.video-content-slider .content-slider__details {
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.17);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.10) 100%);
    padding: 15px 25px;
    position: relative;
    overflow: visible;
}

.video-content-slider .content-slider__details p {
    font-size: 18px;
    line-height: 1.39em;
}

.video-content-slider .content-slider__details::before {
    content: "";
    position: absolute;
    left: 15px;
    top: -1px;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
    transition: width 0.6s ease-out;
}

.video-content-slider .content-slider__details.is-animating::before {
    width: 95px;
}

.video-content-slider .content-slider__details::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: 0 0 4px 0 var(--color-white);
    offset-path: inset(0 round var(--border-radius));
    offset-anchor: 50% 50%;
    --offset-start: 4%;
    offset-distance: var(--offset-start);
    offset-rotate: 0deg;
    opacity: 0;
}

.video-content-slider .content-slider__details.is-animating::after {
    opacity: 1;
    animation: dotRunAroundContentSliderDetails 10.5s ease-in-out 1;
}

@keyframes dotRunAroundContentSliderDetails {
    0% {
        opacity: 1;
        offset-distance: var(--offset-start);
    }
    63.64% {
        opacity: 1;
        offset-distance: calc(var(--offset-start) + 100%);
    }
    100% {
        opacity: 1;
        offset-distance: calc(var(--offset-start) + 100%);
    }
}

.video-content-slider + .page-footer {
    margin-top: var(--section-margins);
}


@media (min-width: 768px) {
    .content-slider__headlines {
        padding-bottom: 50px;
    }

    .text-cards-slider {
        padding-bottom: 99px;
        margin-right: -69px;
    }

    .text-cards-slider:not(.slick-initialized) {
        padding-bottom: 0;
    }

    .text-card {
        padding: 34px 40px 47px;
        width: 574px;
        color: #fff;
    }

    .video-content-slider .slick-current .text-card-item .text-card {
        /* padding-top: 47px; */
    }

    .text-card__title {
        font-size: 35px;
        padding-bottom: 20px;
    }

    .text-card__sub-title {
        font-size: 23px;
        margin-bottom: 10px;
    }

    .text-card__bottom {
        margin-top: 50px;
    }

    .text-card__description {
        margin-bottom: 50px;
    }

    .text-card__info {
        padding: 7px 25px;
        display: flex;
        align-items: center;
        gap: 16px;
        min-height: 105px;
        margin-bottom: 35px;
    }

    .text-card__info-details {
        color: var(--color-white);
        font-size: 18px;
        font-family: var(--font-primary-bold);
        font-weight: normal;
        line-height: normal;
        display: block;
    }

    .text-card__count {
        margin-bottom: 0;
    }

    /* .text-cards-slider .slick-prev {
        margin-left: -83px;
    }

    .text-cards-slider .slick-next {
        margin-right: -31px;
    } */

    .video-content-slider .content-slider__details p {
        font-size: 32px;
    }

    .video-content-slider .text-cards-slider {
        margin: 0 -52px;
    }

    .video-content-slider .text-card-item {
        padding: 13px 17px;
        transition: all .3s ease-in-out;
    }

    .video-content-slider .slick-current .text-card-item {
        /* padding: 0 17px; */
    }

    .text-card__top {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .text-card__top-heading {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }


    .text-card__description {
        flex-grow: 1;
    }

    /* Innerpage-specific overrides */
    .video-content-slider--innerpage .slick-current .text-card {
        /* padding: 47px 40px; */
        transition: padding .3s ease-in-out;
    }
}

@media (min-width: 1200px) {
    .content-slider__headlines {
        padding-bottom: 50px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        text-align: left;
    }

    .content-slider__title h2 {
        margin-bottom: 0;
    }

    .video-content-slider .content-slider__headlines .content-slider__title {
        flex: 2;
        padding-left: 0;
        padding-right: 15px;
    }

    .video-content-slider .content-slider__headlines.is-stacked-content {
        flex-direction: column;
    }

    .content-slider__details {
        flex: 1;
        border-radius: var(--border-radius);
        border: 1px solid rgba(255, 255, 255, 0.17);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.10) 100%);
        padding: 15px 25px;
        position: relative;
        overflow: visible;
    }

    .content-slider__details::before {
        content: "";
        position: absolute;
        left: 15px;
        top: -1px;
        width: 0;
        height: 1px;
        background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
        transition: width 0.6s ease-out;
    }

    .content-slider__details.is-animating::before {
        width: 95px;
    }

    .content-slider__details::after {
        content: '';
        position: absolute;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--color-white);
        box-shadow: 0 0 4px 0 var(--color-white);
        offset-path: inset(0 round var(--border-radius));
        offset-anchor: 50% 50%;
        --offset-start: 5%;
        offset-distance: var(--offset-start);
        offset-rotate: 0deg;
        opacity: 0;
    }

    .content-slider__details.is-animating::after {
        opacity: 1;
        animation: dotRunAroundContentSliderDetails 10.5s ease-in-out 1;
    }

    .content-slider__details p {
        font-size: 25px;
        line-height: 1.39em;
    }

    .text-cards-slider {
        margin-right: -80px;
    }

    .text-card-item {
        padding: 13px 17px;
        transition: all .3s ease-in-out;
    }

    .text-cards-slider .slick-prev {
        margin-left: 17px;
        left: 0;
    }

    .text-cards-slider .slick-next {
        right: auto;
        margin-right: auto;
        left: 0;
        margin-left: 81px;
    }

    /* Hover states - consolidated */
    .text-card-item:hover {
        padding: 0 17px;
    }

    .text-card-item:hover .text-card::before {
        opacity: 1;
    }

    .text-card-item:hover .text-card__title {
        border-color: #4373DB
    }

    /* Innerpage-specific overrides */
    .video-content-slider--innerpage .content-slider__details p {
        font-size: 25px;
    }

    .video-content-slider--innerpage .text-cards-slider {
        margin: 0 -63px;
    }

    .video-content-slider--innerpage .slick-current .text-card,
    .video-content-slider--innerpage .text-card-item:hover .text-card {
        /* padding: 47px 40px; */
        transition: padding .3s ease-in-out;
    }

    .video-content-slider--innerpage .text-card__description {
        padding-right: 0;
    }

    .video-content-slider--innerpage .text-cards-slider .slick-prev {
        left: 50%;
        margin-left: -57px;
    }

    .video-content-slider--innerpage .slick-next {
        right: 50%;
        margin-right: -57px;
        left: auto;
    }

    .video-content-slider .text-card__description p a:not(.btn) {
        --underline-color: var(--color-white);
    }

    .text-card__info {
        margin-bottom: 75px;
        margin-top: 35px;
    }
    
    .text-card__info-details {
        flex: 1;
    }

}

@media (min-width: 1600px) {

    .content-slider__details p {
        font-size: 32px;
    }

    .video-content-slider .content-slider__details p {
        font-size: 32px;
    }

    .text-cards-slider {
        margin-right: -17px;
    }

    .text-card {
        width: 100%;
        padding: 34px 40px;
        transition: padding .3s ease-in-out;
    }

    .video-content-slider .slick-current .text-card-item .text-card {
        /* padding-top: 47px; */
    }

    .video-content-slider .slick-current .text-card-item {
        /* padding-top: 47px; */
        padding: 0 17px;
    }

    .text-cards-slider .slick-prev {
        margin-left: -57px;
        left: 50%;
    }

    .text-cards-slider .slick-next {
        right: 50%;
        margin-right: -57px;
        left: auto;
        margin-left: auto;
    }

    .video-listing {
        left: 63px;
    }

    /* Innerpage-specific overrides */
    .video-content-slider--innerpage .text-cards-slider {
        margin: 0 -17px;
    }

    .video-content-slider--innerpage .content-slider__details {
        margin-right: 18px;
    }

}

@media ( min-width: 1920px ) {
    .video-content-slider .text-cards-slider {
        margin: 0 -17px;
    }
}

.text-card__count .count-prefix {
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}