document.addEventListener('DOMContentLoaded', function() {
const pagination = document.querySelector('.navigation');
const postsContainer = document.querySelector('.postloopcontainer');
if (pagination && postsContainer) {
// Ensure we move the pagination after the last post
postsContainer.parentNode.insertBefore(pagination, postsContainer.nextSibling);
}
});