.afjs-slider {
    --afjs-blue: #000acc;
    --afjs-red: #dd3333;
    --afjs-ink: #333355;
    --afjs-gap: 18px;
    --afjs-per-view: var(--afjs-desktop, 4);
    box-sizing: border-box;
    clear: both;
    margin: 28px auto 42px;
    max-width: 100%;
    padding: 0 4px;
    color: var(--afjs-ink);
}

.afjs-slider *, .afjs-slider *::before, .afjs-slider *::after { box-sizing: border-box; }
.afjs-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.afjs-heading {
    position: relative; margin: 0 !important; padding: 0 0 9px 16px !important;
    border: 0 !important; background: none !important; color: var(--afjs-ink) !important;
    font-size: clamp(20px, 2vw, 27px) !important; font-weight: 700; line-height: 1.35;
}
.afjs-heading::before {
    content: ""; position: absolute; inset: 3px auto 8px 0; width: 5px; border-radius: 999px;
    background: linear-gradient(180deg, var(--afjs-blue), var(--afjs-red));
}
.afjs-controls { display: flex; flex: 0 0 auto; gap: 8px; }
.afjs-arrow {
    display: grid; width: 40px; height: 40px; padding: 0; place-items: center;
    border: 1px solid #dfe1ef; border-radius: 50%; background: #fff; color: var(--afjs-ink);
    font: inherit; font-size: 27px; line-height: 1; cursor: pointer;
    box-shadow: 0 5px 14px rgba(26, 28, 70, .08);
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.afjs-arrow:hover, .afjs-arrow:focus-visible { transform: translateY(-1px); border-color: var(--afjs-blue); background: var(--afjs-blue); color: #fff; }
.afjs-arrow:focus-visible, .afjs-dot:focus-visible, .afjs-card:focus-visible { outline: 3px solid rgba(0, 10, 204, .28); outline-offset: 3px; }
.afjs-arrow[hidden] { display: none; }
.afjs-viewport { overflow: hidden; touch-action: pan-y; }
.afjs-track { display: flex; gap: var(--afjs-gap); will-change: transform; transition: transform .55s cubic-bezier(.22, .8, .25, 1); }
.afjs-slide { flex: 0 0 min(var(--afjs-image-width, 300px), calc(100vw - 40px)); min-width: 0; margin: 0; }
.afjs-card {
    display: flex; height: 100%; overflow: hidden; flex-direction: column;
    border: 1px solid #e6e7f0; border-radius: 14px; background: #fff; color: var(--afjs-ink) !important;
    text-decoration: none !important; box-shadow: 0 8px 24px rgba(29, 31, 74, .08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.afjs-card:hover { transform: translateY(-4px); border-color: rgba(0, 10, 204, .24); color: var(--afjs-ink) !important; box-shadow: 0 14px 34px rgba(29, 31, 74, .14); }
.afjs-media { position: relative; display: block; overflow: hidden; width: 100%; height: min(var(--afjs-image-height, 169px), 75vw); background: #edf0ff; }
.afjs-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.afjs-card:hover .afjs-media img { transform: scale(1.035); }
.afjs-media--empty { display: grid; place-items: center; background: linear-gradient(135deg, #eef0ff, #fff0f0); }
.afjs-placeholder { color: var(--afjs-blue); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.afjs-body { display: flex; flex: 1; align-items: flex-start; flex-direction: column; padding: 15px 16px 16px; }
.afjs-category { display: inline-flex; margin-bottom: 8px; padding: 4px 9px; border-radius: 999px; background: #eef0ff; color: var(--afjs-blue); font-size: 11px; font-weight: 700; line-height: 1.35; }
.afjs-title { display: -webkit-box; overflow: hidden; color: var(--afjs-ink); font-size: 16px; font-weight: 700; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.afjs-excerpt { display: -webkit-box; overflow: hidden; margin-top: 8px; color: #66677a; font-size: 13px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.afjs-more { margin-top: auto; padding-top: 13px; color: var(--afjs-red); font-size: 12px; font-weight: 700; }
.afjs-dots { display: flex; min-height: 10px; align-items: center; justify-content: center; gap: 8px; margin-top: 17px; }
.afjs-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #c8c9d8; cursor: pointer; transition: width .2s ease, background-color .2s ease; }
.afjs-dot.is-active { width: 26px; background: var(--afjs-blue); }

@media (max-width: 960px) { .afjs-slider { --afjs-per-view: var(--afjs-tablet, 2); } }
@media (max-width: 600px) {
    .afjs-slider { --afjs-gap: 13px; --afjs-per-view: var(--afjs-mobile, 1); margin-block: 22px 32px; padding-inline: 12px; }
    .afjs-heading { font-size: 20px !important; }
    .afjs-arrow { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    .afjs-track, .afjs-card, .afjs-media img, .afjs-arrow, .afjs-dot { transition: none !important; }
}
