/* Custom Pagination */
.custom-pagination .page-item .page-link {
    border-radius: 6px;
    padding: 8px 12px;
}
.custom-pagination .page-item.active .page-link {
    background-color: #0d2235;
    color: white;
    border-color: #0d2235;
}
.custom-pagination .page-item .page-link:hover {
    background-color: #e9ecef;
}
.custom-pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}
.custom-pagination-wrapper nav {
    margin: 0 0 0 auto;
}
.page-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #333;
}
.page-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    min-width: 70px;
    display: flex;
    height: 42px;
    padding: 8px 15px;
    align-items: center;
    gap: 8px;
    align-self: stretch;
}

.custom-pagination-wrapper nav .pagination {
    margin: 0;
    gap: 8px;
}

.page-item:not(:first-child) .page-link {
    margin: 0;
}

.page-item:first-child .page-link {
    border-top-left-radius: .5rem;
    border-bottom-left-radius: .5rem;
}

.page-item:last-child .page-link {
    border-top-right-radius: .5rem;
    border-bottom-right-radius: .5rem;
}

.custom-pagination-wrapper .page-link {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    border: 1px solid #F1F1F1;
    background: #FFF;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background: var(--color-primary, #00264B);
    border-color: var(--color-primary, #00264B);
}

.page-item.disabled .page-link {
    border: 0;
    color: #333;
}

@media (max-width: 767px) {
    .pagination .m-hidden{
        display: none;
    }
    .custom-pagination-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .custom-pagination-wrapper nav {
        margin: 0;
    }
    .pagination {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
}