/* ============================================
   Pagination - Mobile-first, brand-aligned
   ============================================ */

.pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px;
    flex-wrap: wrap;
    margin: 2rem 0;
    padding-left: 0;
    list-style: none;
}

.pagination .page-item {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.pagination .page-item .page-link {
    min-height: 44px;
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
    color: #c2976c;
    background-color: #fff;
    border: 1.5px solid #ddd0bf;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

/* Number buttons stay square-ish, prev/next grow naturally */
.pagination .page-item:not(:first-child):not(:last-child) .page-link {
    min-width: 200px !important;
}

.pagination .page-item .page-link:hover {
    background-color: #bcb5b0;
    color: #c2976c;
    border-color: #c2976c;
}

.pagination .page-item.active .page-link {
    background-color: #c2976c;
    color: #fff;
    border-color: #c2976c;
    box-shadow: 0 2px 6px rgba(121, 50, 52, 0.25);
}

.pagination .page-item.disabled .page-link {
    color: #aaa;
    background-color: #f8f8f8;
    border-color: #eee;
    cursor: not-allowed;
}

/* ============================================
   Mobile-specific tweaks (≤576px)
   ============================================ */

@media (max-width: 576px) {
    .pagination {
        gap: 16px;
    }

    .pagination .page-item .page-link {
        min-height: 48px;
        padding: 0.7rem 1.4rem;
        font-size: 1.05rem;
    }

    .pagination .page-item:not(:first-child):not(:last-child) .page-link {
        min-width: 200px !important;
    }

    /* Hide middle page numbers on mobile, keep prev/next + active page */
    .pagination .page-item:not(.active):not(:first-child):not(:last-child) {
        display: none;
    }

    .pagination .page-item.active {
        display: flex;
    }
    
    ul li a{
     width: 100px !important;   
    }
}