/* Blog Card Slider & Pagination */
.bpcs-wrap {
    --bpcs-gap: 24px;
    --bpcs-radius: 16px;
    --bpcs-border: #e8e8e8;
    --bpcs-text: #171717;
    --bpcs-muted: #707070;
    --bpcs-accent: #111111;
    width: 100%;
    margin: 32px 0;
    box-sizing: border-box;
}

.bpcs-wrap *,
.bpcs-wrap *::before,
.bpcs-wrap *::after {
    box-sizing: border-box;
}

.bpcs-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.bpcs-title {
    margin: 0;
    color: var(--bpcs-text);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

.bpcs-arrows {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.bpcs-arrow {
    width: 50px;
    height: 50px;
    border: 1px solid var(--bpcs-border);
    border-radius: 50%;
    background: #ff0000;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.bpcs-arrow:hover {
    transform: translateY(-1px);
    background: var(--bpcs-accent);
    color: #fff;
}

.bpcs-arrow:focus-visible,
.bpcs-read-more:focus-visible,
.bpcs-card-title a:focus-visible,
.bpcs-thumb:focus-visible,
.bpcs-pagination a:focus-visible {
    outline: 3px solid rgba(0, 115, 170, .35);
    outline-offset: 3px;
}

.bpcs-slider {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 3px 2px 12px;
}

.bpcs-slider::-webkit-scrollbar {
    display: none;
}

.bpcs-track {
    display: flex;
    gap: var(--bpcs-gap);
    align-items: stretch;
}

.bpcs-card {
    flex: 0 0 calc((100% - (var(--bpcs-gap) * 2)) / 3);
    min-width: 280px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--bpcs-border);
    border-radius: var(--bpcs-radius);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .06);
    display: flex;
    flex-direction: column;
}

.bpcs-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f2f2f2;
}

.bpcs-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.bpcs-thumb:hover img {
    transform: scale(1.04);
}

.bpcs-no-thumb {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--bpcs-muted);
    font-weight: 600;
}

.bpcs-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bpcs-meta {
    display: flex;
    gap: 8px;
    color: var(--bpcs-muted);
    font-size: 13px;
    margin-bottom: 9px;
}

.bpcs-card-title {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.3;
}

.bpcs-card-title a {
    color: var(--bpcs-text);
    text-decoration: none;
}

.bpcs-excerpt {
    margin: 0 0 18px;
    color: var(--bpcs-muted);
    line-height: 1.65;
}

.bpcs-read-more {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    color: var(--bpcs-text);
    font-weight: 700;
    text-decoration: none;
}

.bpcs-read-more span {
    transition: transform .2s ease;
}

.bpcs-read-more:hover span {
    transform: translateX(4px);
}

.bpcs-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.bpcs-pagination a,
.bpcs-pagination span {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--bpcs-border);
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--bpcs-text);
    background: #fff;
}

.bpcs-pagination .current {
    background: var(--bpcs-accent);
    color: #fff;
    border-color: var(--bpcs-accent);
}

.bpcs-empty {
    padding: 24px;
    border: 1px dashed var(--bpcs-border);
    border-radius: 12px;
}

@media (max-width: 900px) {
    .bpcs-card {
        flex-basis: calc((100% - var(--bpcs-gap)) / 2);
    }
}

@media (max-width: 620px) {
    .bpcs-heading-row {
        align-items: flex-start;
    }

    .bpcs-card {
        flex-basis: 86%;
        min-width: 0;
    }

    .bpcs-card-body {
        padding: 17px;
    }
}
