/* CSS pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.page-item,
.first,
.prev,
.next,
.last {
    margin-right: 5px;
    color: #666;
    display: inline-block;
    border: 1px solid #dcdcdc;
    border-radius: 2px;
    background-color: #fff;
    -webkit-transition: background-color 0.15s ease;
    transition: background-color 0.15s ease;
    line-height: 1.5;
    vertical-align: middle;
}

.page-item a,
.page-item span,
.first a,
.prev a,
.next a,
.last a {
    display: block;
    padding: 6px 12px;
}

.page-item:hover,
.first:hover,
.prev:hover,
.next:hover,
.last:hover {
    background-color: #f7f7f7;
}

.page-item.active {
    background-color: #f7f7f7;
    font-weight: bold;
}

li.next.disabled,
li.last.disabled,
li.prev.disabled,
li.first.disabled {
    display: none;
}

.pagination li:last-of-type:not(.next):not(.last):not(.disabled) {
    margin-right: 0;
}

.pager {
    margin: 0 auto 20px;
    text-align: center;
}

.pager_itm {
    color: #666;
    display: inline-block;
    padding: 6px 10px;
    margin: 0 4px;
    border: 1px solid #dcdcdc;
    border-radius: 2px;
    background-color: #fff;
    -webkit-transition: background-color 0.15s ease;
    transition: background-color 0.15s ease;
}

.pager_itm:hover {
    color: #222;
    text-decoration: none;
    background-color: #f7f7f7;
}

.pager_itm.active {
    background-color: #f7f7f7;
    color: #222;
    font-weight: bold;
}