/*
 * Homepage "Leveraged on the news" section. Bootstrap's .row is already a
 * flex container, so centering an incomplete last row (fewer than 3 picks)
 * only needs justify-content — no swiper/inline-style fighting like the
 * courses carousel required.
 */
.newsMediaSection {
    margin-bottom: 2rem;
}

.newsMediaSection .secTitle {
    text-align: center;
    margin-bottom: 20px;
}

.newsMediaGrid {
    justify-content: center;
}

/*
 * The mounted Lottie animation is an absolutely-positioned <svg> appended
 * into .bg-video with no z-index, so by default it paints on top of the
 * static-flow .py-hero title. This scrim sits between them (z-index 1, vs
 * the svg's implicit 0 and the title's explicit 2) and blurs the animation
 * behind it for legibility. Scoped to this archive's body class only, since
 * .bg-video/.py-hero are shared site-wide (e.g. the homepage hero).
 */
.post-type-archive-news_article .bg-video::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(4, 40, 32, 0.55);
    backdrop-filter: blur(5.4px);
    -webkit-backdrop-filter: blur(5.4px);
    z-index: 1;
}

.post-type-archive-news_article .bg-video .py-hero {
    position: relative;
    z-index: 2;
}

.newsMediaCard {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.newsMediaCard__imageWrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    background: #042820;
    margin-bottom: 1rem;
}

.newsMediaCard__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newsMediaCard__logo {
    position: absolute;
    left: 12px;
    bottom: 12px;
    max-height: 50px;
    max-width: 150px;
    width: auto;
    background: transparent;
}

.newsMediaCard__title {
    color: var(--mint);
    margin-bottom: 0.5rem;
}

.newsMediaCard__date {
    display: block;
    font-size: 13px;
    color: var(--g-text);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.newsMediaCard__excerpt {
    color: var(--g-text);
    margin-bottom: 1rem;
}

.newsMediaCard__cta {
    color: var(--lev-yellow);
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
}

.newsMediaCard__cta:hover {
    text-decoration: underline;
}