.news-section {
    --nw-accent: #00E7F3;
    --nw-ink: #39008D;
    --nw-hover-bg: #2F0075;
    --nw-card-bg: #EAF8F8;
    --nw-date: #292929;
    position: relative;
    overflow: hidden;
    padding: 40px 0;
    padding-bottom: 170px;
    background-color: var(--section-bg);
}


.news-section__swirl,
.news-section__triangles {
    position: absolute;
    z-index: 0;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.news-section__swirl {
    left: -120px;
    top: 50%;
    transform: translateY(-50%);
    width: 620px;
    height: 620px;
    background-image: url('../../../images/news-swirl.svg');
}

.news-section__triangles {
    right: 0;
    bottom: 0;
    width: 260px;
    height: 220px;
    background-position: right bottom;
    background-image: url('../../../images/news-triangles.svg');
}

.news-section__inner {
    position: relative;
    z-index: 1;
}

.news-section__head {
    margin-bottom: 75px;
}

.news-section__body {
    display: flex;
    gap: 60px;
    padding-left: 50px;
}

.news-section__intro {
    /* flex: 0 0 410px; */
    max-width: 410px;
    width: 100%;
    position: relative;
}

.news-section__intro::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url(../../../images/scrolling-bg1.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 0;
    height: 625px;
    width: 1634px;
    top: 84%;
    bottom: auto;
    transform: rotate(215deg);
}

.news-section__intro::after {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url(../../../images/scrolling-bg2.svg);
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        z-index: -1;
        height: 657px;
        width: 180vw;
        top: 0;
        left: -70vw;
        transform: rotate(215deg);
}

/* Rendered as <h2>; keep the h3 type scale it was designed with. */
.news-section__title {
    margin: 27px 0 20px;
    font-size: 45px;
    line-height: 53px;
    color: var(--nw-ink);
    text-transform: uppercase;
}

@media (max-width: 767.98px) {
    .news-section__title {
        font-size: 26px;
        line-height: 32px;
    }
}

.news-section__description {
    margin: 0 0 40px;
    max-width: 260px;
    color: var(--nw-date);
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 22px;
}

.news-section__list {
    flex: 1 1 auto;
    min-width: 0;
}

.news-section__swiper {
    overflow: visible;
}

.news-section__swiper .swiper-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: none;
}

.news-section__swiper .swiper-slide {
    width: 100%;
    height: auto;
}

.news-card {
    display: flex;
    align-items: stretch;
    min-height: 150px;
    color: #292929;
    text-decoration: none;
    overflow: hidden;
}

.news-card:hover,
.news-card:focus-visible {
    color: #fff;
}

/* Kept off the .news-card anchor itself: that element also carries
   data-aos/data-aos-delay, and AOS's own rules would fight a
   transition:...!important declared on the same element (killing the
   per-card stagger delay). card-wrapper has no data-aos, so it's safe here. */
.card-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
    background-color: var(--nw-card-bg);
    transition: all 1s !important;
}

.news-card:hover .card-wrapper,
.news-card:focus-visible .card-wrapper {
    background-color: var(--nw-hover-bg);
    transition: all 1s !important;
}

.news-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 78px;
    padding: 32px 40px 40px;
    min-width: 0;
    position: relative;
}

.news-card__body::before {
    content: '';
    position: absolute;
    background-image: url('../../../images/new-hover.svg');
    background-repeat: no-repeat;
    background-size: contain;
    width: 80px;
    height: 80px;
    left: 0;
    bottom: 0;
    opacity: 0;
    transition: all .7s ease;
    transform: translate(-15px, 15px);
}

.news-card:hover .news-card__body::before {
    opacity: 1;
    transition: all .7s ease;
    transform: translate(0, 3px);
}

/* Rendered as <h3>; keep the h6 type scale it was designed with. */
.news-card__title {
    margin: 0;
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
}

.news-card__date {
    align-self: flex-end;
    font-weight: 500;
}

.news-card__media {
    flex: 0 0 300px;
    overflow: hidden;
}

.news-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.07);
    transition: transform .7s ease;
    aspect-ratio: 300/220;
}

.news-card:hover .news-card__image,
.news-card:focus-visible .news-card__image {
    transform: scale(1);
}

@media (max-width: 1280px) {
    .news-section__intro {
        max-width: 300px;
    }
}

@media (max-width: 1024px) {
    .news-section__body {
        gap: 40px;
        padding-left: 0;
    }

    .news-section__intro {
        flex-basis: 350px;
    }

    .news-section__title {
        font-size: 34px;
    }

    .news-card__media {
        flex-basis: 190px;
        flex: 0 0 250px;
    }

    .news-card__body {
        padding: 25px;
    }
}

@media (max-width: 767.96px) {
    .news-section {
        padding-block: 100px 140px;
    }

    .news-section__head {
        margin-bottom: 28px;
    }

    .news-section__body {
        display: block;
        padding-left: 20px;
    }

    .news-section__intro {
        flex-basis: auto;
        max-width: none;
        margin-bottom: 40px;
    }

    .news-section__title {
        font-size: 26px;
        line-height: 32px;
        margin-bottom: 12px;
        margin-top: 41px;
    }

    .news-section__description {
        max-width: none;
        margin: 0 0 20px;
    }

    .news-section__list {
        /* margin-right: -20px; */
    }

    .news-section__swiper {
        overflow: visible;
    }

    .news-section__swiper .swiper-wrapper {
        flex-direction: row;
        gap: 0;
    }

    .news-section__swiper .swiper-slide {
        width: 82vw;
        max-width: 300px;
        height: auto;
        background-color: var(--nw-hover-bg);
        color: #fff;
    }

    .news-card {
        min-height: 0;
        height: 100%;
    }

    /* .card-wrapper is now the flex container for body+media (see base
       rules above); it must also flip to a column stack on mobile, and its
       background needs to match the always-dark mobile card look that used
       to live on .swiper-slide before .card-wrapper started covering it. */
    .card-wrapper {
        flex-direction: column;
        height: 100%;
        background-color: var(--nw-hover-bg);
    }

    .news-card__body {
        gap: 74px;
        padding: 30px;
    }

    .news-card__media {
        flex: 0 0 auto;
        height: 160px;
    }

    .news-section__bar {
        width: 47px;
        height: 10px;
    }

    .news-section__eyebrow {
        font-size: 15px;
        line-height: 22px;
    }

    .news-card__body::before {
        opacity: 1;
        transform: translate(0, 3px);
    }

    .news-card__title {
        font-size: 15px;
        line-height: 22px;
    }

    .news-section__intro::before {
        height: 466px;
        width: 1220px;
        top: 50vh;
        left: -40vw;
        bottom: auto;
    }

    .news-section__intro::after {
        height: 466px;
        width: 1939px;
        top: 11vh;
        left: -235vw;
    }
}
