.custom-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 30px 0
}

.custom-pagination .page-btn {
    background: #fff;
    border: 1px solid #0d438c;
    border-radius: 4px;
    color: #0d438c;
    cursor: pointer;
    padding: 8px 16px;
    transition: all .3s ease
}

.custom-pagination .page-btn:disabled {
    background: #f5f5f5;
    border-color: #ccc;
    color: #999;
    cursor: not-allowed;
    opacity: .5
}

.custom-pagination .page-btn:not(:disabled):hover {
    background: #0d438c;
    color: #fff
}

.custom-pagination .page-num{
    background: #fff;
    border: 1px solid #0d438c;
    border-radius: 4px;
    color: #0d438c;
    cursor: pointer;
    height: 40px;
    line-height: 40px;
    padding: 0 10px;
    position: relative;
    transition: all .3s ease;
    min-width: 40px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.custom-pagination .page-num.active {
    background: #0d438c;
    color: #fff;
    cursor: default
}

.custom-pagination .page-num:hover:not(.active):not(:disabled) {
    background: #e6f0ff
}

.custom-pagination .page-num.ellipsis {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none
}

.custom-pagination .page-num.ellipsis:hover:not(:disabled) {
    color: transparent
}

.custom-pagination .page-num.ellipsis:hover:not(:disabled)[data-direction=prev]:after {
    content: "←"
}

.custom-pagination .page-num.ellipsis:hover:not(:disabled)[data-direction=next]:after {
    content: "→"
}

.custom-pagination .page-num.ellipsis:hover:not(:disabled):after {
    color: #0d438c;
    font-size: 16px;
    font-weight: 700;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%,-50%)
}

@media(max-width:768px) {
    .custom-pagination {
        gap: 5px;
        padding: 15px 0
    }

    .custom-pagination .page-btn {
        font-size: 12px;
        padding: 5px 10px
    }

    .custom-pagination .page-num {
        font-size: 12px;
        height: 30px;
        line-height: 30px;
        width: 30px
    }
}
