/* Footer Fix CSS - Prevents page from looping back to header */
html {
    height: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Ensure content doesn't loop */
.footer::after {
    content: "";
    display: block;
    height: 1px;
    clear: both;
}

/* Fix for mobile devices */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        position: relative;
    }
}
