.widget-tab-post.style-card {
    margin-bottom: 10px;
}

.widget-tab-post.style-card > .relative {
    margin-bottom: 0 !important;
}

.widget-tab-post.style-card > .relative > .list-inline {
    display: flex;
    gap: 10px;
    padding: 18px 12px 14px;
    margin: 0;
    overflow-x: auto;
}

.widget-tab-post.style-card > .relative > .list-inline > li {
    margin: 0;
}

.widget-tab-post.style-card > .relative > .list-inline > li > a {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--muted-color, #6b7280);
    background: color-mix(in srgb, var(--main-bg-color, #fff) 88%, var(--focus-color, #22ab80));
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.widget-tab-post.style-card > .relative > .list-inline > li.active > a,
.widget-tab-post.style-card > .relative > .list-inline > li > a:hover {
    color: #fff;
    background: var(--focus-color, #22ab80);
    transform: translateY(-1px);
}

.widget-tab-post.style-card .tab-content {
    padding: 0 12px 12px;
}

.widget-tab-post.style-card .widget-ajaxpager {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.widget-tab-post.style-card .widget-ajaxpager > .posts-item.card,
.widget-tab-post.style-card .widget-ajaxpager > posts.posts-item.card {
    margin: 0 !important;
}

.widget-tab-post.style-card .ajax-pag,
.widget-tab-post.style-card .theme-pagination {
    flex: 0 0 100%;
    width: 100%;
}

@media (min-width: 992px) {
    .widget-tab-post.style-card .widget-ajaxpager > .posts-item.card,
    .widget-tab-post.style-card .widget-ajaxpager > posts.posts-item.card {
        flex: 0 0 calc(20% - 16px);
        width: calc(20% - 16px);
        max-width: calc(20% - 16px);
    }
}

@media (max-width: 991px) {
    .widget-tab-post.style-card .widget-ajaxpager > .posts-item.card,
    .widget-tab-post.style-card .widget-ajaxpager > posts.posts-item.card {
        flex: 0 0 calc(50% - 8px);
        width: calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
}

@media (max-width: 520px) {
    .widget-tab-post.style-card > .relative > .list-inline {
        padding: 14px 10px 10px;
    }

    .widget-tab-post.style-card .tab-content {
        padding: 0 10px 10px;
    }

    .widget-tab-post.style-card .widget-ajaxpager {
        gap: 12px;
    }
}

.dark-theme .widget-tab-post.style-card > .relative > .list-inline > li > a,
[data-theme=dark] .widget-tab-post.style-card > .relative > .list-inline > li > a {
    background: color-mix(in srgb, var(--main-bg-color, #22252b) 82%, var(--focus-color, #22ab80));
    color: var(--muted-color, #c6cad2);
}
