.apap-home-news {
    --home-news-accent: var(--apap-color-accent, #014098);
    --home-news-line: rgba(1, 64, 152, 0.12);
    --home-news-ink: #1f2937;
    --home-news-muted: #2f5f9d;
    background: #ffffff;
    color: var(--home-news-ink);
}

.apap-home-news__inner {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    padding: clamp(34px, 5vw, 70px) 0;
}

.apap-home-news__head {
    margin-bottom: 22px;
}

.apap-home-news__head h2 {
    margin: 0;
    color: var(--home-news-ink);
    font-size: clamp(1.55rem, 1.2vw + 1.2rem, 2.5rem);
    line-height: 1.18;
    letter-spacing: 0;
}

.apap-home-news__shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 250px);
    border: 1px solid var(--home-news-line);
    background: #ffffff;
}

.apap-home-news__viewport {
    min-width: 0;
    overflow: hidden;
}

.apap-home-news__track {
    display: flex;
    transition: transform 0.45s ease;
    will-change: transform;
}

.apap-home-news__item {
    flex: 0 0 calc(100% / 3);
    min-width: 0;
    border-right: 1px solid var(--home-news-line);
}

.apap-home-news__card {
    display: grid;
    align-content: start;
    min-height: clamp(150px, 10vw, 190px);
    padding: clamp(22px, 3vw, 34px);
    color: var(--home-news-ink);
    text-decoration: none;
}

.apap-home-news__card time {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--home-news-muted);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.2;
}

.apap-home-news__card time::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    background:
        linear-gradient(currentColor, currentColor) 0 3px / 100% 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) 3px -1px / 1.5px 5px no-repeat,
        linear-gradient(currentColor, currentColor) 8px -1px / 1.5px 5px no-repeat;
    box-sizing: border-box;
    transform: translateY(-1px);
}

.apap-home-news__card h3 {
    display: -webkit-box;
    margin: 12px 0 28px;
    overflow: hidden;
    color: var(--home-news-ink);
    font-size: clamp(1rem, 0.24vw + 0.96rem, 1.14rem);
    font-weight: 650;
    line-height: 1.42;
    letter-spacing: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.apap-home-news__arrow {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-top: auto;
    border: 1px solid var(--home-news-accent);
    border-radius: 999px;
    color: var(--home-news-accent);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.apap-home-news__arrow::before {
    content: "";
    width: 11px;
    height: 11px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translate(-1px, 1px);
}

.apap-home-news__arrow::after {
    content: "";
    position: absolute;
    width: 13px;
    height: 2px;
    background: currentColor;
    transform: rotate(-45deg) translate(-1px, 0);
    transform-origin: center;
}

.apap-home-news__card:hover h3,
.apap-home-news__card:focus-visible h3 {
    color: var(--home-news-accent);
}

.apap-home-news__card:hover .apap-home-news__arrow,
.apap-home-news__card:focus-visible .apap-home-news__arrow {
    background: #eef4fb;
    border-color: rgba(1, 64, 152, 0.42);
    transform: translate(1px, -1px);
}

.apap-home-news__more {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 14px;
    min-height: clamp(150px, 10vw, 190px);
    padding: 22px;
    color: var(--home-news-accent);
    font-weight: 700;
    text-decoration: none;
}

.apap-home-news__more-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: #eef4fb;
    color: var(--home-news-accent);
}

.apap-home-news__more-icon::before {
    content: "";
    width: 20px;
    height: 24px;
    border: 2px solid currentColor;
    border-radius: 3px;
    box-shadow: inset 0 5px 0 rgba(1, 64, 152, 0.12);
}

.apap-home-news__more-icon::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.apap-home-news__more:hover,
.apap-home-news__more:focus-visible {
    background: #f7fbff;
}

@media (max-width: 900px) {
    .apap-home-news__shell {
        grid-template-columns: 1fr;
    }

    .apap-home-news__item {
        flex-basis: 50%;
    }

    .apap-home-news__more {
        min-height: 96px;
        border-top: 1px solid var(--home-news-line);
    }
}

@media (max-width: 640px) {
    .apap-home-news__inner {
        width: min(100% - 32px, 1320px);
    }

    .apap-home-news__item {
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .apap-home-news__track,
    .apap-home-news__arrow {
        transition: none;
    }
}
