span>
                  {% endif %}
                </div>
              </div>
            </a>
          {% endfor %}
        </div>
      </div>
      {% if is_paginated %}
        <div class="flex justify-center mt-6">
          <nav class="inline-flex rounded-md shadow">
            {% if page_obj.has_previous %}
              <a href="?page=1"
                 class="px-3 py-2 rounded-l-md border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-700 dark:text-gray-200 hover:bg-g