/* 💎 APEX INFINITE SCROLL - SKELETON LOADERS */

.premium-skeleton-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 1.5rem !important;
    overflow: hidden !important;
    height: 368px !important;
    position: relative !important;
}

.skeleton-image {
    width: 100%;
    height: 65%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 2s ease-in-out infinite;
}

.skeleton-content {
    padding: 1rem;
}

.skeleton-title,
.skeleton-meta {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 2s ease-in-out infinite;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    height: 1.2rem;
}

.skeleton-title {
    width: 100%;
}

.skeleton-title:last-of-type {
    width: 70%;
}

.skeleton-meta {
    height: 0.8rem;
    width: 50%;
    margin-top: 1rem;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* 💎 SMOOTH FADE-IN FOR NEW CARDS */
.premium-news-card {
    animation: fadeInUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }


    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 💎 INFINITE SCROLL SENTINEL FIX */
#infinite-scroll-sentinel {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    height: 10px !important;
    margin-top: 20px !important;
    /* Increase bottom margin so it triggers BEFORE the user hits the fixed footer */
    margin-bottom: 200px !important;
    display: block !important;
    clear: both !important;
    pointer-events: none !important;
    position: relative !important;
    z-index: -1 !important;
}

/* 💎 FIXED FOOTER - PROFESSIONAL FULL WIDTH BAR */
footer {
    position: relative !important;
    width: 100% !important;
    z-index: 10 !important;
    background: rgba(22, 80, 77, 0.98) !important;
    /* Brand Teal Opaque */
    backdrop-filter: blur(10px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5) !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    /* Ensure no radius/oval shape */
    border-radius: 0 !important;
    transform: none !important;
    max-width: none !important;
}

/* Ensure footer spacer in body so content isn't covered initially if short */
body {
    padding-bottom: 0 !important;
    /* Approx footer height */
}

/* Adjust sticky nav in footer for a cleaner horizontal look */
footer nav {
    justify-content: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}

footer .container {
    max-width: 100% !important;
    padding: 0 40px !important;
}