.wp-block-govuk-theme-recent-news-block {
    max-width: none !important;
    width: 100% !important;
}

.recent-news-block {
    background: #fff;
    padding: 72px 0;
}

.recent-news-block__inner {
    max-width: 1256px;
    margin: 0 auto;
    padding: 0 32px;
}

.recent-news-block__heading {
    margin: 0 0 28px;
    color: #292478;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.recent-news-block__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.recent-news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #292f8f;
    color: #fff;
    min-height: 100%;
}

.recent-news-card__image-link {
    display: block;
    background: #fff;
}

.recent-news-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.recent-news-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 24px;
}

.recent-news-card__label {
    display: inline-flex;
    align-self: flex-start;
    margin: 0 0 24px;
    padding: 4px 10px;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;
}

.recent-news-card__title {
    margin: 0 0 34px;
    color: #fff;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 600;
}

.recent-news-card__title a {
    color: inherit;
    text-decoration: none;
}

.recent-news-card__title a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.recent-news-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: auto;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 600;
    text-decoration: none;
}

.recent-news-card__button:hover {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.recent-news-card__button:focus-visible,
.recent-news-card__title a:focus-visible {
    outline: 4px solid #ffdd00;
    outline-offset: 4px;
}

.recent-news-block__footer {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.recent-news-block__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 999px;
    background: #292478;
    color: #fff;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 600;
    text-decoration: none;
}

.recent-news-block__button:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.recent-news-block__button:focus-visible {
    outline: 4px solid #ffdd00;
    outline-offset: 4px;
}

.recent-news-block__editor-note {
    padding: 32px;
    border: 2px dashed #292478;
    color: #292478;
    font-weight: 600;
}

@media (max-width: 1000px) {
    .recent-news-block__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .recent-news-block {
        padding: 52px 0;
    }

    .recent-news-block__inner {
        padding: 0 24px;
    }

    .recent-news-block__grid {
        grid-template-columns: 1fr;
    }
}