.hrmg-news,
.hrmg-news * {
    box-sizing: border-box;
}

.hrmg-news {
    --hrmg-ink: #151a24;
    --hrmg-muted: #67758a;
    --hrmg-line: #dbe2ea;
    --hrmg-orange: #ff642d;
    --hrmg-cyan: #35bde5;
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: clamp(22px, 3vw, 42px) 0;
    color: var(--hrmg-ink);
    font-family: inherit;
}

.hrmg-news__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
}

.hrmg-news__heading-copy {
    max-width: 760px;
}

.hrmg-news__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #d94b1b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hrmg-news h2 {
    margin: 0;
    color: var(--hrmg-ink);
    font-family: inherit;
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.035em;
}

.hrmg-news__heading-copy > p {
    margin: 10px 0 0;
    color: var(--hrmg-muted);
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.55;
}

.hrmg-news__controls {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.hrmg-news__arrow {
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--hrmg-line);
    border-radius: 999px;
    background: #fff;
    color: var(--hrmg-ink);
    box-shadow: 0 8px 20px rgba(25, 38, 55, .08);
    cursor: pointer;
    font: inherit;
    font-size: 22px;
    transition: color .2s ease, background .2s ease, transform .2s ease, opacity .2s ease;
}

.hrmg-news__arrow:hover:not(:disabled),
.hrmg-news__arrow:focus-visible {
    background: var(--hrmg-orange);
    border-color: var(--hrmg-orange);
    color: #fff;
    transform: translateY(-2px);
}

.hrmg-news__arrow:disabled {
    opacity: .35;
    cursor: default;
}

.hrmg-news__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(310px, 34%);
    gap: 20px;
    overflow-x: auto;
    padding: 2px 2px 20px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

.hrmg-news__track::-webkit-scrollbar {
    display: none;
}

.hrmg-news__card {
    display: flex;
    min-width: 0;
    min-height: 505px;
    overflow: hidden;
    flex-direction: column;
    scroll-snap-align: start;
    border: 1px solid var(--hrmg-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(26, 38, 53, .09);
    transition: transform .25s ease, box-shadow .25s ease;
}

.hrmg-news__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(26, 38, 53, .15);
}

.hrmg-news__card--event {
    border-color: rgba(53, 189, 229, .48);
}

.hrmg-news__media {
    position: relative;
    display: block;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #061526, #172a43);
}

.hrmg-news__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.hrmg-news__card:hover .hrmg-news__media img {
    transform: scale(1.035);
}

.hrmg-news__card--event .hrmg-news__media img {
    object-position: center 22%;
}

.hrmg-news__fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: rgba(255, 255, 255, .28);
    font-size: 44px;
    font-weight: 800;
    letter-spacing: .08em;
}

.hrmg-news__type {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(20, 25, 35, .88);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.hrmg-news__card--event .hrmg-news__type {
    background: var(--hrmg-cyan);
    color: #061526;
}

.hrmg-news__body {
    display: flex;
    padding: 22px;
    flex: 1;
    flex-direction: column;
}

.hrmg-news__meta {
    display: flex;
    min-height: 20px;
    margin-bottom: 11px;
    flex-wrap: wrap;
    gap: 7px 15px;
    color: #d94b1b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hrmg-news__meta span + span {
    position: relative;
}

.hrmg-news__meta span + span::before {
    position: absolute;
    left: -9px;
    content: "·";
}

.hrmg-news h3 {
    margin: 0 0 12px;
    font-family: inherit;
    font-size: clamp(22px, 2vw, 29px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.hrmg-news h3 a {
    color: var(--hrmg-ink);
    text-decoration: none;
}

.hrmg-news h3 a:hover,
.hrmg-news h3 a:focus-visible {
    color: #d94b1b;
}

.hrmg-news__body > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 18px;
    color: var(--hrmg-muted);
    font-size: 15px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.hrmg-news__cta {
    display: inline-flex;
    margin-top: auto;
    align-items: center;
    gap: 9px;
    color: #d94b1b;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.hrmg-news__cta span {
    transition: transform .2s ease;
}

.hrmg-news__cta:hover span,
.hrmg-news__cta:focus-visible span {
    transform: translateX(4px);
}

.hrmg-news__progress {
    width: 100%;
    height: 3px;
    overflow: hidden;
    margin-top: 2px;
    border-radius: 999px;
    background: #e9edf2;
}

.hrmg-news__progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--hrmg-orange), var(--hrmg-cyan));
    transition: width .15s linear;
}

@media (min-width: 1050px) {
    .hrmg-news__track:has(.hrmg-news__card--event:first-child) {
        grid-auto-columns: minmax(320px, 32%);
    }

    .hrmg-news__card--event:first-child {
        grid-column: span 2;
        min-height: 505px;
        flex-direction: row;
    }

    .hrmg-news__card--event:first-child .hrmg-news__media {
        width: 51%;
        height: auto;
        flex: 0 0 51%;
    }

    .hrmg-news__card--event:first-child .hrmg-news__body {
        padding: 30px;
        justify-content: center;
    }
}

@media (max-width: 1049px) {
    .hrmg-news {
        padding-right: 4px;
        padding-left: 4px;
    }

    .hrmg-news__track {
        grid-auto-columns: minmax(300px, 65%);
    }
}

@media (max-width: 640px) {
    .hrmg-news {
        padding-top: 24px;
    }

    .hrmg-news__header {
        align-items: flex-start;
    }

    .hrmg-news__heading-copy > p {
        font-size: 15px;
    }

    .hrmg-news__controls {
        display: none;
    }

    .hrmg-news__track {
        margin-right: -18px;
        grid-auto-columns: calc(100% - 32px);
        gap: 14px;
    }

    .hrmg-news__card {
        min-height: 475px;
        border-radius: 18px;
    }

    .hrmg-news__media {
        height: 225px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hrmg-news__track {
        scroll-behavior: auto;
    }

    .hrmg-news__card,
    .hrmg-news__media img,
    .hrmg-news__arrow,
    .hrmg-news__cta span {
        transition: none;
    }
}
