#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-spinner {
    width: 70px;
    height: 70px;
    position: relative;
    text-align: center;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.bounce1, .bounce2, .bounce3 {
    width: 18px;
    height: 18px;
    background-color: #fff;
    border-radius: 100%;
    display: inline-block;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.bounce1 {
    animation-delay: -0.32s;
}

.bounce2 {
    animation-delay: -0.16s;
}

@keyframes sk-bounce {
    0%, 100% { transform: scale(0.0) }
    50% { transform: scale(1.0) }
}

@keyframes sk-bouncedelay {
    0%, 80%, 100% { transform: scale(0.0); }
    40% { transform: scale(1.0); }
}

.col-lg-6:last-child {
    position: relative;
}

/* Overlay styling */
.overlayP {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

/* Pulsing and glowing animation */
@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)) 
                drop-shadow(0 0 20px rgba(0, 255, 255, 0.3)) 
                drop-shadow(0 0 30px rgba(0, 255, 255, 0.2));
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.05);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)) 
                drop-shadow(0 0 40px rgba(0, 255, 255, 0.6)) 
                drop-shadow(0 0 60px rgba(0, 255, 255, 0.4));
        opacity: 1;
    }
}

/* Alternative animation with box-shadow (if you prefer) */
@keyframes pulseGlowAlt {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.5),
                    0 0 40px rgba(0, 255, 255, 0.3),
                    0 0 60px rgba(0, 255, 255, 0.2);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.8),
                    0 0 60px rgba(0, 255, 255, 0.6),
                    0 0 90px rgba(0, 255, 255, 0.4);
        opacity: 1;
    }
}

/* Ensure the background image stays in place */
.col-lg-6 img {
    z-index: 1;
}