implemented pagination for search results (T399974)
changes made:
- Implemented safe parsing of page numbers to handle non-integer, negative, zero, and out-of-range values.
- Added redirects to ensure the URL always matches the actual displayed page.
- Ensured the pagination window adjusts dynamically based on the current page and total pages.
- Improved user experience by preventing confusing URL/page mismatches.
- Created a helper function to handle pagination for search results to reduce code redundancy.
- responsive pagination for a better user experience.
- Added text showing total search results to improve user experience and clarity about total results
preview of changes : lv_0_20251023220847