.custom-pagination-nav {
    display: flex;
}

.custom-pagination-nav ul.pagination {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.custom-pagination-nav .pagination .page-item .page-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 56px;
    height: 56px;
    text-decoration: none;
    color: #5C33B9;
    background-color: #EFF2FC;
    border: none;
    border-radius: 16px;
    transition: background-color 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
    font-size: 18px;
    font-weight: 500;
    line-height: 18px;
}

.custom-pagination-nav .pagination .page-item .page-link.back-arrow,
.custom-pagination-nav .pagination .page-item .page-link.forward-arrow {
    background-color: transparent;
    padding: 5px;
    min-width: auto;
}
.custom-pagination-nav .pagination .page-item .page-link.back-arrow svg,
.custom-pagination-nav .pagination .page-item .page-link.forward-arrow svg {
    width: 24px;
    height: 24px;
}

.custom-pagination-nav .pagination .page-item.active .page-link {
    background-color: #5C33B9;
    color: #FFFFFF;
    cursor: default;
}

.custom-pagination-nav .pagination .page-item.disabled .page-link {
    color: #A0AEC0;
    background-color: #F3F0FF;
    cursor: default;
    pointer-events: none;
}
.custom-pagination-nav .pagination .page-item.disabled .page-link.back-arrow,
.custom-pagination-nav .pagination .page-item.disabled .page-link.forward-arrow {
    background-color: transparent;
}
.custom-pagination-nav .pagination .page-item.disabled .page-link.back-arrow svg path,
.custom-pagination-nav .pagination .page-item.disabled .page-link.forward-arrow svg path{
    fill: #A0AEC0;
}

.custom-pagination-nav .pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #e9e4f9;
}

.custom-pagination-nav .pagination .page-item:not(.disabled) .page-link.back-arrow:hover svg path,
.custom-pagination-nav .pagination .page-item:not(.disabled) .page-link.forward-arrow:hover svg path {
    /* Optional: change fill color on hover if desired, e.g., a darker purple */
    /* fill: #3d227a; */
}

@media (max-width: 450px) {
    .custom-pagination-nav .pagination .page-item .page-link {
        width: 36px;
        height: 36px;
        font-size: 14px;
        font-weight: 500;
        line-height: 18px;
        border-radius: 8px;
    }
}
