main section,
header {
    opacity: 0;
}
main.loaded section {
    opacity: 1;
}
.dash-board-animation {
    position: relative;
    z-index: 1;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Default background (desktop 1440px) */
.dash-board-animation::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/wp-content/uploads/2025/10/Sceleton1440px-webp.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 9999;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.8s ease;
}

/* SHIMMER overlay - initially hidden */
.dash-board-animation::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10000; 
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.65) 45%,
        rgba(255,255,255,0.9) 50%,
        rgba(255,255,255,0.65) 55%,
        rgba(255,255,255,0) 100%
    );
    transform: translateX(-100%);
    will-change: transform, opacity;
    animation: shimmer 1.6s linear infinite;
    mix-blend-mode: screen; 
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Show background when ready */
.dash-board-animation.background-ready::before {
    opacity: 1;
}

/* Show shimmer when background is ready */
.dash-board-animation.shimmer-ready::after {
    opacity: 0.9;
}

/* Large desktop (≥1920px) */
@media screen and (min-width: 1920px) {
    .dash-board-animation::before {
        background-image: url('/wp-content/uploads/2025/10/Sceleton1920px_webpr.webp');
    }
}

/* Tablet screens (≤1024px) */
@media screen and (max-width: 1024px) {
    .dash-board-animation::before {
        background-image: url('/wp-content/uploads/2025/10/Sceleton1440px-webp.webp');
    }

    .dash-board-animation.shimmer-ready::after {
        /* softer band on medium screens */
        opacity: 0.85;
        animation-duration: 1.9s;
    }
}

/* Mobile screens (≤767px) */
@media screen and (max-width: 767px) {
    .dash-board-animation::before {
        top: -100px;
        background-image: url('/wp-content/uploads/2025/10/sceleton_mobile_webp-scaled.webp');
    }

    .dash-board-animation.shimmer-ready::after {
        /* reduce intensity for performance and visual balance */
        opacity: 0.78;
        animation-duration: 2.4s;
        /* optionally reduce mix-blend-mode effect on mobile */
        mix-blend-mode: normal;
    }
}

/* shimmer keyframes: slide the highlight left -> right */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .dash-board-animation::after {
        animation: none;
        opacity: 0.0; /* hide shimmer when reduced motion preferred */
    }
}

/* Hide both skeleton and shimmer when loaded */
.dash-board-animation.loaded::before,
.dash-board-animation.loaded::after {
    display: none !important;
}
/**
Only for news from dashboard
 */
@media (min-height: 1000px) {
    .eqvor-news-outer {
        height: 91vh;
        max-height: 100%!important;
    }

    .eqvor-news-list {
        height: 100% !important;
    }
}