/* =========================================================
   Gau Mitra - Custom pagination component
   Auto-segregated from the original Gau Mitra stylesheet.
========================================================= */

/* Pagination Safety */
.gm-custom-pagination-wrap {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 92, 24, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.gm-pagination-info {
    color: #7a5c3a;
    font-size: 13px;
    font-weight: 800;
}

.gm-custom-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.gm-page-btn,
.gm-page-number,
.gm-page-dots {
    min-width: 38px;
    height: 38px;
    padding: 0 13px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none !important;
}

.gm-page-btn {
    color: #6b3f18;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(139, 92, 24, 0.16);
    box-shadow: 0 10px 24px rgba(107, 63, 24, 0.07);
}

.gm-page-btn:hover {
    color: #fff !important;
    background: linear-gradient(135deg, var(--saffron), var(--kumkum));
    border-color: transparent;
}

.gm-page-btn.disabled {
    color: #b8a28c;
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(139, 92, 24, 0.10);
    cursor: not-allowed;
    box-shadow: none;
}

.gm-page-number {
    color: #7a391c;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(139, 92, 24, 0.14);
}

.gm-page-number.active {
    color: #fff;
    background: linear-gradient(135deg, var(--saffron), var(--kumkum));
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(159, 18, 57, 0.20);
}

.gm-page-dots {
    color: #9a7352;
    background: transparent;
}

.pagination svg,
nav[role="navigation"] svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
}


@media (max-width: 767px) {
    .gm-custom-pagination-wrap {
        justify-content: center;
        text-align: center;
    }

    .gm-pagination-info {
        width: 100%;
    }

    .gm-custom-pagination {
        justify-content: center;
    }

    .gm-page-btn,
    .gm-page-number,
    .gm-page-dots {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        font-size: 12px;
        border-radius: 10px;
    }
}
