/* Preloader safety fix - ensures content is visible even if JS fails */
#page-preloader {
    opacity: 1;
    transition: opacity 0.5s ease;
}

#page-preloader.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

/* Force hide after 6 seconds max using animation */
@keyframes preloaderAutoHide {
    0%, 99% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; pointer-events: none; display: none; }
}

#page-preloader {
    animation: preloaderAutoHide 0.5s forwards;
    animation-delay: 6s;
}

/* Ensure body is always visible */
body {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure main content is accessible */
#main, .page-content, .site-content {
    visibility: visible !important;
    opacity: 1 !important;
}
