/* Recent articles: an open-ended rail, with the next story entering from the right. */
.marketing-news {
    overflow: hidden;
}
.marketing-news__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}
.marketing-news__heading h2 {
    margin: 0;
}
.marketing-news__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.marketing-news__actions button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #dce4df;
    border-radius: 8px;
    background: #f5f7f6;
    cursor: pointer;
}
.marketing-news__actions button:disabled {
    opacity: 0.35;
    cursor: default;
}
.marketing-news__actions button:not(:disabled):hover {
    background: #e6eeea;
}
.marketing-news__entrance {
    animation: none;
}
.marketing-news__entrance.is-visible {
    animation: news-enter 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.marketing-news__track {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px max(var(--tg-page-gutter), calc((100% - var(--tg-width)) / 2))
        12px;
    scroll-padding-inline: max(
        var(--tg-page-gutter),
        calc((100% - var(--tg-width)) / 2)
    );
}
.marketing-news__track::-webkit-scrollbar {
    display: none;
}
.marketing-news__card {
    flex: 0 0 340px;
    max-width: 340px;
    scroll-snap-align: start;
    border: 1px solid #e4e9e6;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.marketing-news__card > a {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.marketing-news__image {
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 2;
    background: #edf3ef;
    color: #00754a;
    overflow: hidden;
}
.marketing-news__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.marketing-news__body {
    padding: 22px;
}
.marketing-news__category {
    display: inline-block;
    color: #00613e;
    background: #eaf4ee;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 13px;
    line-height: 1.5;
}
.marketing-news__body h3 {
    margin: 16px 0 0;
    font-size: clamp(19px, 1.8vw, 24px);
    font-weight: 500;
    line-height: 1.35;
}
.marketing-news__card a:hover h3 {
    color: #00754a;
}
.marketing-news :focus-visible {
    outline: 2px solid #00754a;
    outline-offset: 3px;
}
.marketing-news__card:focus-within {
    outline: 2px solid #00754a;
    outline-offset: 2px;
}
@keyframes news-enter {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@media (max-width: 900px) {
    .marketing-news__card {
        flex-basis: 44%;
    }
}
@media (max-width: 600px) {
    .marketing-news__heading {
        gap: 12px;
        margin-bottom: 24px;
    }
    .marketing-news__heading h2 {
        font-size: 28px;
    }
    .marketing-news__card {
        flex-basis: 82%;
    }
    .marketing-news__track {
        gap: 16px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .marketing-news__entrance.is-visible {
        animation: none;
    }
}
