/**
 * Najibul — Shared Design System (Base Stylesheet) — v4.2.0
 *
 * ⚡ This is the FOUNDATION used by:
 *    • Main Homepage (all languages)
 *    • News Homepage
 *    • FullForms Homepage
 *    • Q&A Homepage
 *    • (Future) Stories / Poems / Tools / Shorts homepages
 *
 * ⚡ Provides:
 *    • CSS Custom Properties (design tokens)
 *    • Reset & base typography
 *    • Layout primitives (grid, stack, cluster)
 *    • Reusable component styles (cards, badges, buttons, loaders)
 *    • 🆕 PREMIUM NEON GRADIENT LOADER (glassmorphism + 12-dot spinner)
 *    • 🆕 Live percentage counter styling (with milestone animations)
 *    • 🆕 Circular progress ring (optional)
 *    • 🆕 Particle celebration for end-of-feed
 *    • 🆕 Haptic-ready feedback (transform-based)
 *    • 🆕 Milestone micro-animations (25/50/75/100%)
 *    • 🆕 GPU-optimized rendering hints
 *    • Dark mode support
 *    • Reduced motion support
 *    • High contrast mode support
 *    • Print styles
 *    • RTL-ready foundations
 *    • 4K / Ultra-wide responsive breakpoints
 *
 * ⚡ Does NOT contain:
 *    • Any language-specific overrides (those live in home-{lang}.css)
 *    • Any CPT-specific overrides (those live in each CPT's CSS)
 *
 * All styles are namespaced under .najibul-* to prevent theme conflicts.
 *
 * ⚡ v4.2.0 CRITICAL FIXES + ENHANCEMENTS:
 *     • 🔥 FIXED: Spinner dots now use SOLID color (like original plugin)
 *       — gradient on individual dots was causing visual ambiguity
 *     • 🔥 FIXED: Per-dot color variation restored (premium neon look)
 *     • 🔥 FIXED: Loader display:flex vs display:block selector mismatch
 *     • 🆕 Particle celebration for end-of-feed
 *     • 🆕 Haptic-ready CSS (transform for vibration feedback)
 *     • 🆕 Milestone micro-animations (25/50/75/100%)
 *     • 🆕 GPU-optimized rendering hints
 *     • 🆕 Better inline-style attribute matching (robust selector)
 *     • 🆕 Display state classes (.is-visible, .is-loading)
 *
 * @package    GeneratePress_Child
 * @subpackage Najibul_Multilang
 * @version    4.2.0
 * @license    GPL-2.0-or-later
 */

/* ============================================================
   🎨 1. DESIGN TOKENS — CSS Custom Properties
   ============================================================ */

:root {
    /* ── Brand Colors ── */
    --najibul-primary:         #D42D3C;
    --najibul-primary-dark:    #A52A2A;
    --najibul-primary-light:   #FFE5E5;
    --najibul-secondary:       #006B6B;
    --najibul-accent:          #5A3E8A;
    --najibul-accent-light:    #EDE9FE;

    /* ── Gradients ── */
    --najibul-gradient-1: linear-gradient(135deg, #FF6B6B, #FF8E53);
    --najibul-gradient-2: linear-gradient(135deg, #4ECDC4, #556270);
    --najibul-gradient-3: linear-gradient(135deg, #834D9B, #D04ED6);
    --najibul-gradient-4: linear-gradient(135deg, #56AB2F, #A8E063);
    --najibul-gradient-5: linear-gradient(135deg, #FF9966, #FF5E62);
    --najibul-gradient-6: linear-gradient(135deg, #3494E6, #EC6EAD);

    /* ── 🆕 NEON LOADER — SOLID COLORS (v4.2.0 FIX) ── */
    /* Original plugin used SOLID colors for each dot, not gradient.
       This restores the exact visual from the original design. */
    --najibul-neon-1:          #667eea;   /* Neon purple-blue */
    --najibul-neon-2:          #764ba2;   /* Deep purple */
    --najibul-neon-3:          #00f2fe;   /* Cyan */
    --najibul-neon-4:          #4facfe;   /* Sky blue */
    --najibul-neon-pink-1:     #ff416c;   /* Neon pink-red */
    --najibul-neon-pink-2:     #ff4b2b;   /* Neon orange-red */

    /* 🆕 Per-dot solid colors (premium neon look) */
    --najibul-dot-1:           #667eea;   /* purple */
    --najibul-dot-2:           #00f2fe;   /* cyan */
    --najibul-dot-3:           #764ba2;   /* dark purple */
    --najibul-dot-4:           #4facfe;   /* light blue */

    /* Gradients used elsewhere (not for dots) */
    --najibul-neon-spinner:    linear-gradient(to bottom, #667eea, #00f2fe);
    --najibul-neon-ring:       linear-gradient(135deg, #667eea, #764ba2, #00f2fe);
    --najibul-neon-label:      linear-gradient(135deg, #667eea, #764ba2);
    --najibul-neon-counter:    linear-gradient(135deg, #ff416c, #ff4b2b);
    --najibul-neon-progress:   conic-gradient(from 0deg, #667eea, #764ba2, #00f2fe, #667eea);

    /* ── Text Colors (Light Mode) ── */
    --najibul-text:            #0A0C0E;
    --najibul-text-secondary:  #1A2A3A;
    --najibul-text-muted:      #405160;
    --najibul-text-faint:      #94A3B8;

    /* ── Surfaces (Light Mode) ── */
    --najibul-bg:              #F0F4FA;
    --najibul-bg-gradient:     linear-gradient(135deg, #F0F4FA 0%, #E4E9F2 100%);
    --najibul-card-bg:         #FFFFFF;
    --najibul-card-bg-subtle:  #F8FAFC;
    --najibul-header-bg:       rgba(255, 255, 255, 0.95);
    --najibul-glass-bg:        rgba(255, 255, 255, 0.9);
    --najibul-end-bg:          rgba(255, 255, 255, 0.9);
    --najibul-border:          #E0E4E9;
    --najibul-border-soft:     #F1F5F9;

    /* ── 🆕 LOADER SURFACES (Light Mode) ── */
    --najibul-loader-bg:       rgba(255, 255, 255, 0.72);
    --najibul-loader-border:   rgba(118, 75, 162, 0.2);
    --najibul-loader-shadow-1: rgba(118, 75, 162, 0.15);
    --najibul-loader-shadow-2: rgba(0, 242, 254, 0.10);
    --najibul-loader-shadow-hover-1: rgba(118, 75, 162, 0.25);
    --najibul-loader-shadow-hover-2: rgba(0, 242, 254, 0.20);

    /* ── Meta Colors ── */
    --najibul-meta-bg:         #FFFFFF;
    --najibul-meta-border:     #E0E4E9;
    --najibul-meta-author:     #A52A2A;
    --najibul-meta-author-bg:  rgba(212, 45, 60, 0.04);

    /* ── Badge Gradients ── */
    --najibul-breaking-badge:  linear-gradient(135deg, #C41E3A, #A0142C);
    --najibul-new-badge:       linear-gradient(135deg, #E65C5C, #E67E3C);
    --najibul-trending-badge:  linear-gradient(135deg, #E67E22, #E65C3C);
    --najibul-news-badge:      linear-gradient(135deg, #D42D3C, #B03042);
    --najibul-tools-badge:     linear-gradient(135deg, #2B3A4A, #3A4A5A);
    --najibul-qa-badge:        linear-gradient(135deg, #006B6B, #008B8B);
    --najibul-stories-badge:   linear-gradient(135deg, #6A4E9B, #8A6EB0);
    --najibul-poems-badge:     linear-gradient(135deg, #1A7A8A, #2A9AAB);
    --najibul-full-forms-badge:linear-gradient(135deg, #2A5A8A, #3A6AA0);
    --najibul-shorts-badge:    linear-gradient(135deg, #FF1493, #FF69B4);
    --najibul-article-badge:   #FFE5B4;
    --najibul-article-text:    #8B4513;

    /* ── Shadows ── */
    --najibul-shadow-sm:       0 2px 8px rgba(0, 0, 0, 0.06);
    --najibul-shadow-md:       0 4px 16px rgba(0, 0, 0, 0.08);
    --najibul-shadow-lg:       0 8px 24px rgba(0, 0, 0, 0.12);
    --najibul-shadow-xl:       0 12px 32px rgba(0, 0, 0, 0.14);

    /* ── Border Radii ── */
    --najibul-radius-sm:       8px;
    --najibul-radius-md:       12px;
    --najibul-radius-lg:       16px;
    --najibul-radius-xl:       20px;
    --najibul-radius-2xl:      28px;
    --najibul-radius-pill:     40px;

    /* ── Spacing ── */
    --najibul-space-xs:        6px;
    --najibul-space-sm:        10px;
    --najibul-space-md:        14px;
    --najibul-space-lg:        18px;
    --najibul-space-xl:        22px;
    --najibul-space-2xl:       28px;
    --najibul-space-3xl:       36px;

    /* ── Typography ── */
    --najibul-font-sans:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, system-ui, sans-serif;
    --najibul-font-mono:       'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    --najibul-font-bengali:    'Noto Sans Bengali', 'Kalpurush', 'SolaimanLipi', var(--najibul-font-sans);
    --najibul-font-hindi:      'Noto Sans Devanagari', 'Mangal', 'Nirmala UI', var(--najibul-font-sans);

    /* ── Motion ── */
    --najibul-transition:      0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --najibul-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --najibul-transition-slow: 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    --najibul-easing-bounce:   cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* ── Layout ── */
    --najibul-container-max:   1400px;
    --najibul-grid-gap:        22px;
    --najibul-grid-columns:    3;

    /* ── 🆕 LOADER GEOMETRY ── */
    --najibul-loader-card-w:   200px;
    --najibul-loader-card-h:   210px;
    --najibul-loader-card-w-lg:230px;
    --najibul-loader-card-h-lg:250px;
    --najibul-loader-spinner:  70px;
    --najibul-loader-ring-size: 76px;
    --najibul-loader-ring-width: 4px;
}

/* ============================================================
   🧹 2. RESET — Scoped to .najibul-home & .najibul-* containers
   ============================================================ */

.najibul-home,
.najibul-home *,
.najibul-home *::before,
.najibul-home *::after {
    box-sizing: border-box;
}

.najibul-home {
    margin: 0;
    padding: 0;
}

/* ============================================================
   🏠 3. MAIN CONTAINER — Base layout for all homepages
   ============================================================ */

.najibul-home {
    max-width: var(--najibul-container-max);
    margin: 0 auto;
    padding: var(--najibul-space-xl);
    font-family: var(--najibul-font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--najibul-text);
    background: var(--najibul-bg-gradient);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@media (max-width: 768px) {
    .najibul-home {
        padding: var(--najibul-space-md);
    }
}

@media (max-width: 480px) {
    .najibul-home {
        padding: var(--najibul-space-sm);
    }
}

/* ============================================================
   ♿ 4. SCREEN READER UTILITIES
   ============================================================ */

.najibul-home .screen-reader-text,
.najibul-skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.najibul-skip-link:focus {
    position: fixed;
    top: var(--najibul-space-sm);
    left: var(--najibul-space-sm);
    width: auto;
    height: auto;
    padding: 10px 20px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--najibul-primary);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: var(--najibul-radius-md);
    font-weight: 700;
    font-size: 14px;
    z-index: 99999;
    box-shadow: var(--najibul-shadow-lg);
}

.najibul-skip-link:focus-visible {
    outline: 3px solid #FFFFFF;
    outline-offset: 2px;
}

/* ============================================================
   🎯 5. DROPDOWN FILTER — Section navigation
   ============================================================ */

.najibul-home .dropdown-filter-wrapper {
    text-align: center;
    margin-bottom: var(--najibul-space-2xl);
    padding: var(--najibul-space-xl) var(--najibul-space-lg);
    border-radius: var(--najibul-radius-xl);
    background: var(--najibul-header-bg);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--najibul-shadow-md);
}

/* Glass effect support */
.najibul-home .glass-effect {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.najibul-home .dropdown-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: var(--najibul-space-md);
    font-size: clamp(18px, 4vw, 22px);
    font-weight: 700;
    line-height: 1.3;
    background: var(--najibul-gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--najibul-primary);
}

.najibul-home .label-icon {
    font-size: 24px;
    line-height: 1;
    -webkit-text-fill-color: initial;
    color: initial;
}

.najibul-home .select-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.najibul-home .select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--najibul-primary);
    pointer-events: none;
    font-size: 12px;
    line-height: 1;
}

.najibul-home .dropdown-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 12px 40px 12px 20px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.4;
    color: var(--najibul-text);
    background-color: #FFFFFF;
    background-image:
        linear-gradient(#FFFFFF, #FFFFFF),
        var(--najibul-gradient-1);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border: 2px solid transparent;
    border-radius: var(--najibul-radius-pill);
    width: min(350px, 100%);
    max-width: 100%;
    cursor: pointer;
    transition: transform var(--najibul-transition-fast),
                box-shadow var(--najibul-transition-fast);
}

.najibul-home .dropdown-select:hover {
    transform: translateY(-1px);
    box-shadow: var(--najibul-shadow-sm);
}

.najibul-home .dropdown-select:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 45, 60, 0.2);
}

.najibul-home .dropdown-select:focus-visible {
    outline: 2px solid var(--najibul-primary);
    outline-offset: 2px;
}

/* ============================================================
   📦 6. CONTENT SECTION — Main wrapper for the feed
   ============================================================ */

.najibul-home .content-section {
    position: relative;
    padding: clamp(var(--najibul-space-lg), 5vw, var(--najibul-space-2xl));
    background: var(--najibul-card-bg);
    border-radius: var(--najibul-radius-xl);
    box-shadow: var(--najibul-shadow-lg);
}

/* Top gradient bar */
.najibul-home .content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--najibul-radius-xl) var(--najibul-radius-xl) 0 0;
    background: var(--najibul-gradient-1);
}

/* ============================================================
   📰 7. SECTION TITLE
   ============================================================ */

.najibul-home .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 var(--najibul-space-2xl);
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 800;
    line-height: 1.3;
}

.najibul-home .title-gradient {
    background: var(--najibul-gradient-2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--najibul-secondary);
    font-weight: 800;
}

.najibul-home .title-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-size: 18px;
    line-height: 1;
    color: #FFFFFF;
    background: var(--najibul-gradient-1);
    border-radius: var(--najibul-radius-pill);
    flex-shrink: 0;
}

.najibul-home .title-badge.pulse {
    animation: najibul-pulse 2s ease-in-out infinite;
}

@keyframes najibul-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

/* ============================================================
   📐 8. ARTICLE GRID — Responsive 3 / 2 / 1 columns
   ============================================================ */

.najibul-home .article-grid {
    display: grid;
    gap: var(--najibul-grid-gap);
    grid-template-columns: repeat(var(--najibul-grid-columns), minmax(0, 1fr));
    min-height: 100px;
}

/* Tablet: 2 columns */
@media (min-width: 641px) and (max-width: 1023px) {
    .najibul-home .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
    .najibul-home .article-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Ultra-wide: 4 columns */
@media (min-width: 1600px) {
    .najibul-home {
        --najibul-grid-columns: 4;
    }
}

/* ============================================================
   🎴 9. ARTICLE CARD — The main feed card
   ============================================================ */

.najibul-home .article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    background: var(--najibul-card-bg);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: var(--najibul-radius-lg);
    overflow: hidden;
    box-shadow: var(--najibul-shadow-md);
    transition: transform var(--najibul-transition),
                box-shadow var(--najibul-transition);
    will-change: transform;
    /* Performance: paint isolation for smoother scrolling */
    content-visibility: auto;
    contain-intrinsic-size: 380px;
}

.najibul-home .article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--najibul-shadow-xl);
}

.najibul-home .article-card:focus-within {
    outline: 2px solid var(--najibul-primary);
    outline-offset: 3px;
}

/* ============================================================
   🔗 10. ARTICLE LINK — Full card clickable
   ============================================================ */

.najibul-home .article-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.najibul-home .article-link:focus {
    outline: none;
}

.najibul-home .article-link:focus-visible {
    outline: 2px solid var(--najibul-primary);
    outline-offset: -2px;
    border-radius: var(--najibul-radius-lg);
}

/* ============================================================
   🖼️ 11. ARTICLE THUMBNAIL
   ============================================================ */

.najibul-home .article-thumbnail-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--najibul-card-bg-subtle);
    flex-shrink: 0;
}

.najibul-home .article-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
}

.najibul-home .responsive-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--najibul-card-bg-subtle);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.najibul-home .article-card:hover .responsive-thumbnail {
    transform: scale(1.05);
}

/* Fallback thumbnail (no featured image) */
.najibul-home .fallback-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--najibul-gradient-1);
}

.najibul-home .fallback-icon {
    font-size: clamp(40px, 8vw, 60px);
    line-height: 1;
    color: #FFFFFF;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Variant fallbacks (cycled by index) */
.najibul-home .fallback-1 { background: var(--najibul-gradient-1); }
.najibul-home .fallback-2 { background: var(--najibul-gradient-2); }
.najibul-home .fallback-3 { background: var(--najibul-gradient-3); }
.najibul-home .fallback-4 { background: var(--najibul-gradient-4); }
.najibul-home .fallback-5 { background: var(--najibul-gradient-5); }
.najibul-home .fallback-6 { background: var(--najibul-gradient-6); }

/* ============================================================
   🏷️ 12. BADGES — Positioned over thumbnails
   ============================================================ */

.najibul-home .badges-container {
    position: absolute;
    top: var(--najibul-space-sm);
    left: var(--najibul-space-sm);
    right: var(--najibul-space-sm);
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--najibul-space-xs);
    pointer-events: none;
}

.najibul-home .badges-left,
.najibul-home .badges-right {
    display: flex;
    flex-direction: column;
    gap: var(--najibul-space-xs);
    max-width: 70%;
    min-width: 0;
}

.najibul-home .badges-right {
    align-items: flex-end;
}

.najibul-home .post-badge,
.najibul-home .post-type-badge {
    display: inline-block;
    max-width: 100%;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--najibul-radius-pill);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: auto;
}

/* ── Post type badges ── */
.najibul-home .news-badge        { background: var(--najibul-news-badge); }
.najibul-home .tools-badge       { background: var(--najibul-tools-badge); }
.najibul-home .qa-badge          { background: var(--najibul-qa-badge); }
.najibul-home .stories-badge     { background: var(--najibul-stories-badge); }
.najibul-home .poems-badge       { background: var(--najibul-poems-badge); }
.najibul-home .full-forms-badge  { background: var(--najibul-full-forms-badge); }
.najibul-home .shorts-badge      { background: var(--najibul-shorts-badge); }

/* ── Article badge (light variant) ── */
.najibul-home .article-badge-dark,
.najibul-home .post-badge.article-badge-dark,
.najibul-home .post-type-badge.article-badge-dark {
    background: var(--najibul-article-badge) !important;
    color: var(--najibul-article-text) !important;
    border-color: #CD853F !important;
    font-weight: 800 !important;
    text-shadow: none !important;
    box-shadow: 0 2px 6px rgba(139, 69, 19, 0.2) !important;
}

/* ── Status badges (new / trending / breaking) ── */
.najibul-home .new-badge      { background: var(--najibul-new-badge); }
.najibul-home .trending-badge { background: var(--najibul-trending-badge); }
.najibul-home .breaking-badge { background: var(--najibul-breaking-badge); }

/* ============================================================
   📝 13. ARTICLE CONTENT — Title + excerpt
   ============================================================ */

.najibul-home .article-content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: var(--najibul-space-lg) var(--najibul-space-lg) var(--najibul-space-md);
}

.najibul-home .article-title {
    display: -webkit-box;
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--najibul-text);
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.najibul-home .article-excerpt {
    display: -webkit-box;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--najibul-text-secondary);
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

/* ============================================================
   📅 14. ARTICLE META — Author + Time footer
   ============================================================ */

.najibul-home .article-meta {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
    min-width: 0;
    padding: var(--najibul-space-md) var(--najibul-space-lg);
    background: var(--najibul-meta-bg);
    border-top: 1px solid var(--najibul-meta-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-top: auto;
}

.najibul-home .article-meta::-webkit-scrollbar {
    display: none;
}

.najibul-home .meta-author,
.najibul-home .meta-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    border-radius: 30px;
    background: var(--najibul-meta-bg);
    border: 1px solid rgba(212, 45, 60, 0.15);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.najibul-home .meta-author {
    color: var(--najibul-meta-author);
    background: var(--najibul-meta-author-bg);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.najibul-home .meta-time {
    color: var(--najibul-text-secondary);
    background: rgba(0, 0, 0, 0.01);
}

.najibul-home .meta-icon {
    font-size: 12px;
    line-height: 1;
    flex-shrink: 0;
}

.najibul-home .meta-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.najibul-home .meta-separator {
    flex-shrink: 0;
    font-size: 12px;
    line-height: 1;
    color: var(--najibul-text-muted);
    opacity: 0.3;
}

/* ============================================================
   🔄 15. INFINITE SCROLL — Sentinel + Loader + End + Retry
   ============================================================ */

.najibul-home .infinite-sentinel {
    width: 100%;
    height: 1px;
    margin: 0;
    padding: 0;
    visibility: hidden;
}

/* ────────────────────────────────────────────────────────────
   🎨 15.1 PREMIUM NEON GRADIENT LOADER
   ────────────────────────────────────────────────────────────
   World-class glassmorphism card with:
     • 12-dot neon spinner (SOLID colors per dot — original look)
     • Animated glow pulse ring
     • Live percentage counter (gradient text)
     • Gradient text label
     • Hardware-accelerated animations
     • Fully responsive (mobile → 4K)
     • 🆕 Circular progress ring (optional)
     • 🆕 Milestone micro-animations
     • 🆕 Haptic-ready CSS
   ──────────────────────────────────────────────────────────── */

.najibul-home .najibul-loader-wrap {
    display: none;
    width: 100%;
    padding: var(--najibul-space-3xl) var(--najibul-space-lg);
    margin: var(--najibul-space-xl) 0;
    text-align: center;
    /* Prevent layout shift while loading */
    min-height: 260px;
}

/* 🔥 CRITICAL FIX: Match BOTH display:block AND display:flex
   (JS in home-infinite.js v6 sets display:flex)
   Also match the .is-visible state class (state-based toggle) */
.najibul-home .najibul-loader-wrap[style*="display: block"],
.najibul-home .najibul-loader-wrap[style*="display:block"],
.najibul-home .najibul-loader-wrap[style*="display: flex"],
.najibul-home .najibul-loader-wrap[style*="display:flex"],
.najibul-home .najibul-loader-wrap.is-visible,
.najibul-home .najibul-loader-wrap.is-loading {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* 🆕 When loader is set to flex via JS, its direct children
   should center too (defensive) */
.najibul-home .najibul-loader-wrap[style*="display: flex"] > *,
.najibul-home .najibul-loader-wrap[style*="display:flex"] > * {
    margin-left: auto;
    margin-right: auto;
}

/* ── Loader Card (Glassmorphism) ── */
.najibul-home .najibul-visual-box-archive {
    position: relative;
    width: var(--najibul-loader-card-w);
    height: var(--najibul-loader-card-h);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--najibul-loader-bg);
    border-radius: var(--najibul-radius-2xl);
    border: 1px solid var(--najibul-loader-border);
    box-shadow:
        0 12px 40px var(--najibul-loader-shadow-1),
        0 0 20px var(--najibul-loader-shadow-2);
    padding: 20px;
    box-sizing: border-box;
    will-change: transform, opacity;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* 🆕 GPU layer promotion for smooth animation */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.najibul-home .najibul-visual-box-archive:hover {
    transform: translateY(-4px) translateZ(0);
    box-shadow:
        0 16px 50px var(--najibul-loader-shadow-hover-1),
        0 0 30px var(--najibul-loader-shadow-hover-2);
}

/* ── 12-dot Neon Spinner ── */
.najibul-home .najibul-visual-spinner-archive {
    position: relative;
    width: var(--najibul-loader-spinner);
    height: var(--najibul-loader-spinner);
}

/* Neon glow ring behind the spinner */
.najibul-home .najibul-visual-spinner-archive::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--najibul-neon-ring);
    z-index: -1;
    animation: najibul-glow-pulse 2s linear infinite;
    filter: blur(6px);
    opacity: 0.7;
    will-change: transform, opacity;
}

/* 🔥 v4.2.0 FIX: Individual dots use SOLID colors (like original plugin).
   Previous version used gradient on each dot, causing visual ambiguity
   and making the spinner icon barely visible.
   Now: solid colors with per-dot variation for premium neon look. */
.najibul-home .najibul-visual-spinner-archive div {
    position: absolute;
    width: 5px;
    height: 18px;
    background: var(--najibul-dot-1);   /* Default: purple */
    border-radius: 10px;
    top: 0;
    left: 32.5px;
    transform-origin: 2.5px 35px;
    animation: najibul-absolute-spin-archive 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    opacity: 0.15;
    will-change: transform, opacity;
}

/* 🆕 Per-dot color variation — premium neon look */
.najibul-home .najibul-visual-spinner-archive div:nth-child(4n+1) {
    background: var(--najibul-dot-1);   /* #667eea purple */
}
.najibul-home .najibul-visual-spinner-archive div:nth-child(4n+2) {
    background: var(--najibul-dot-2);   /* #00f2fe cyan */
}
.najibul-home .najibul-visual-spinner-archive div:nth-child(4n+3) {
    background: var(--najibul-dot-3);   /* #764ba2 dark purple */
}
.najibul-home .najibul-visual-spinner-archive div:nth-child(4n+4) {
    background: var(--najibul-dot-4);   /* #4facfe light blue */
}

.najibul-home .najibul-visual-spinner-archive div:nth-child(1)  { transform: rotate(0deg);   animation-delay: -0.733s; }
.najibul-home .najibul-visual-spinner-archive div:nth-child(2)  { transform: rotate(30deg);  animation-delay: -0.666s; }
.najibul-home .najibul-visual-spinner-archive div:nth-child(3)  { transform: rotate(60deg);  animation-delay: -0.599s; }
.najibul-home .najibul-visual-spinner-archive div:nth-child(4)  { transform: rotate(90deg);  animation-delay: -0.532s; }
.najibul-home .najibul-visual-spinner-archive div:nth-child(5)  { transform: rotate(120deg); animation-delay: -0.465s; }
.najibul-home .najibul-visual-spinner-archive div:nth-child(6)  { transform: rotate(150deg); animation-delay: -0.398s; }
.najibul-home .najibul-visual-spinner-archive div:nth-child(7)  { transform: rotate(180deg); animation-delay: -0.331s; }
.najibul-home .najibul-visual-spinner-archive div:nth-child(8)  { transform: rotate(210deg); animation-delay: -0.264s; }
.najibul-home .najibul-visual-spinner-archive div:nth-child(9)  { transform: rotate(240deg); animation-delay: -0.197s; }
.najibul-home .najibul-visual-spinner-archive div:nth-child(10) { transform: rotate(270deg); animation-delay: -0.130s; }
.najibul-home .najibul-visual-spinner-archive div:nth-child(11) { transform: rotate(300deg); animation-delay: -0.063s; }
.najibul-home .najibul-visual-spinner-archive div:nth-child(12) { transform: rotate(330deg); animation-delay: 0s; }

@keyframes najibul-absolute-spin-archive {
    0%   { opacity: 1;    transform: scaleY(1.2); }
    100% { opacity: 0.15; transform: scaleY(0.8); }
}

@keyframes najibul-glow-pulse {
    0%   { transform: rotate(0deg)   scale(1);    opacity: 0.5; }
    50%  { transform: rotate(180deg) scale(1.08); opacity: 0.8; }
    100% { transform: rotate(360deg) scale(1);    opacity: 0.5; }
}

/* ── 🆕 Circular Progress Ring (Optional backup indicator) ── */
.najibul-home .najibul-visual-progress-ring {
    position: absolute;
    width: var(--najibul-loader-ring-size);
    height: var(--najibul-loader-ring-size);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

.najibul-home .najibul-visual-progress-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--najibul-neon-progress);
    -webkit-mask: radial-gradient(
        farthest-side,
        transparent calc(100% - var(--najibul-loader-ring-width) - 1px),
        #000 calc(100% - var(--najibul-loader-ring-width))
    );
    mask: radial-gradient(
        farthest-side,
        transparent calc(100% - var(--najibul-loader-ring-width) - 1px),
        #000 calc(100% - var(--najibul-loader-ring-width))
    );
    animation: najibul-ring-rotate 3s linear infinite;
}

@keyframes najibul-ring-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Gradient text label ── */
.najibul-home .najibul-visual-label-archive {
    margin-top: 16px;
    font-family: var(--najibul-font-sans);
    font-size: 13px;
    font-weight: 600;
    background: var(--najibul-neon-label);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

/* ── Live percentage counter ── */
.najibul-home .najibul-visual-counter-archive {
    margin-top: 4px;
    font-family: var(--najibul-font-sans);
    font-size: 28px;
    font-weight: 800;
    background: var(--najibul-neon-counter);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
    filter: drop-shadow(0 2px 4px rgba(255, 65, 108, 0.2));
    line-height: 1.1;
    transition: transform 0.15s ease;
    transform-origin: center center;
    will-change: transform;
}

/* 🆕 Milestone micro-animation — fires at 25%, 50%, 75%, 100% */
.najibul-home .najibul-visual-counter-archive.milestone-bounce {
    animation: najibul-counter-bounce 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes najibul-counter-bounce {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.18); }
    60%  { transform: scale(0.95); }
    80%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 🆕 Final milestone (100% completion) — stronger celebration */
.najibul-home .najibul-visual-counter-archive.milestone-complete {
    animation: najibul-counter-complete 0.65s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes najibul-counter-complete {
    0%   { transform: scale(1);   filter: drop-shadow(0 2px 4px rgba(255, 65, 108, 0.2)); }
    25%  { transform: scale(1.35); filter: drop-shadow(0 4px 12px rgba(255, 65, 108, 0.5)); }
    50%  { transform: scale(1.15); filter: drop-shadow(0 6px 16px rgba(0, 242, 254, 0.6)); }
    75%  { transform: scale(1.08); filter: drop-shadow(0 3px 10px rgba(255, 65, 108, 0.4)); }
    100% { transform: scale(1);   filter: drop-shadow(0 2px 4px rgba(255, 65, 108, 0.2)); }
}

/* 🆕 Haptic-ready state — used by JS to trigger subtle scale
   (visual proxy for vibration on devices that don't support it) */
.najibul-home .najibul-visual-box-archive.haptic-pulse {
    animation: najibul-haptic-pulse 0.18s ease-out;
}

@keyframes najibul-haptic-pulse {
    0%   { transform: translateZ(0) scale(1); }
    50%  { transform: translateZ(0) scale(0.97); }
    100% { transform: translateZ(0) scale(1); }
}

/* ── Multi-language font support ── */
.najibul-home-bn .najibul-visual-label-archive,
.najibul-home-bn .najibul-visual-counter-archive {
    font-family: var(--najibul-font-bengali);
    line-height: 1.6;
}

.najibul-home-hi .najibul-visual-label-archive,
.najibul-home-hi .najibul-visual-counter-archive {
    font-family: var(--najibul-font-hindi);
    line-height: 1.55;
}

/* ── Loader responsive scaling ── */
@media (min-width: 1025px) {
    .najibul-home .najibul-visual-box-archive {
        width: var(--najibul-loader-card-w-lg);
        height: var(--najibul-loader-card-h-lg);
    }
    .najibul-home .najibul-visual-spinner-archive {
        transform: scale(1.4);
        margin-bottom: 14px;
    }
    .najibul-home .najibul-visual-label-archive {
        font-size: 15px;
        margin-top: 20px;
    }
    .najibul-home .najibul-visual-counter-archive {
        font-size: 32px;
        margin-top: 6px;
    }
    .najibul-home .najibul-visual-progress-ring {
        --najibul-loader-ring-size: 100px;
    }
}

@media (min-width: 1600px) {
    .najibul-home .najibul-visual-box-archive {
        width: 260px;
        height: 280px;
    }
    .najibul-home .najibul-visual-spinner-archive {
        transform: scale(1.6);
        margin-bottom: 18px;
    }
    .najibul-home .najibul-visual-label-archive {
        font-size: 16px;
        margin-top: 24px;
    }
    .najibul-home .najibul-visual-counter-archive {
        font-size: 36px;
        margin-top: 8px;
    }
    .najibul-home .najibul-visual-progress-ring {
        --najibul-loader-ring-size: 120px;
    }
}

@media (max-width: 480px) {
    .najibul-home .najibul-loader-wrap {
        min-height: 220px;
        padding: var(--najibul-space-2xl) var(--najibul-space-md);
    }
    .najibul-home .najibul-visual-box-archive {
        width: 170px;
        height: 180px;
        padding: 16px;
        border-radius: 22px;
    }
    .najibul-home .najibul-visual-spinner-archive {
        transform: scale(0.9);
    }
    .najibul-home .najibul-visual-label-archive {
        font-size: 12px;
        margin-top: 12px;
    }
    .najibul-home .najibul-visual-counter-archive {
        font-size: 24px;
    }
    .najibul-home .najibul-visual-progress-ring {
        --najibul-loader-ring-size: 60px;
        --najibul-loader-ring-width: 3px;
    }
}

/* ────────────────────────────────────────────────────────────
   🎉 15.2 END MESSAGE (Celebration)
   ──────────────────────────────────────────────────────────── */

.najibul-home .end-message {
    display: none;
    padding: var(--najibul-space-2xl) var(--najibul-space-lg);
    margin: var(--najibul-space-xl) 0;
    text-align: center;
    background: var(--najibul-end-bg);
    border-radius: var(--najibul-radius-lg);
    border: 1px solid var(--najibul-border-soft);
    position: relative;
    overflow: hidden;
}

/* 🆕 State class support (in addition to inline display) */
.najibul-home .end-message[style*="display: block"],
.najibul-home .end-message[style*="display:block"],
.najibul-home .end-message.is-visible {
    display: block;
}

.najibul-home .end-icon {
    display: block;
    margin-bottom: 8px;
    font-size: 42px;
    line-height: 1;
    animation: najibul-end-celebrate 1.6s ease-in-out infinite;
    will-change: transform;
}

@keyframes najibul-end-celebrate {
    0%, 100% { transform: scale(1)    rotate(0deg); }
    25%      { transform: scale(1.12) rotate(-6deg); }
    75%      { transform: scale(1.12) rotate(6deg); }
}

.najibul-home .end-message p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--najibul-text-muted);
}

.najibul-home .end-message .end-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--najibul-text-secondary);
}

.najibul-home .end-message .end-subtext {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 400;
    color: var(--najibul-text-faint);
}

/* ── 🆕 Particle Celebration (end-of-feed) ── */
.najibul-home .najibul-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.najibul-home .najibul-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--najibul-neon-1);
    opacity: 0;
    animation: najibul-particle-float 2.5s ease-out forwards;
    will-change: transform, opacity;
}

.najibul-home .najibul-particle:nth-child(2n)  { background: var(--najibul-neon-3); }
.najibul-home .najibul-particle:nth-child(3n)  { background: var(--najibul-neon-pink-1); }
.najibul-home .najibul-particle:nth-child(5n)  { background: var(--najibul-neon-4); }

@keyframes najibul-particle-float {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--najibul-particle-x, 20px), var(--najibul-particle-y, -120px)) scale(0.3);
    }
}

/* ────────────────────────────────────────────────────────────
   🎯 15.3 NO CONTENT MESSAGE (Empty State)
   ──────────────────────────────────────────────────────────── */

.najibul-home .no-content-message {
    grid-column: 1 / -1;
    padding: var(--najibul-space-2xl) var(--najibul-space-lg);
    margin: var(--najibul-space-xl) 0;
    text-align: center;
    background: var(--najibul-glass-bg);
    border-radius: var(--najibul-radius-lg);
}

.najibul-home .message-icon {
    display: block;
    margin-bottom: 12px;
    font-size: 48px;
    line-height: 1;
}

.najibul-home .no-content-message p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--najibul-text-muted);
}

/* ────────────────────────────────────────────────────────────
   🔄 15.4 RETRY BUTTON (Premium Gradient)
   ──────────────────────────────────────────────────────────── */

.najibul-home .retry-wrap {
    text-align: center;
    padding: var(--najibul-space-lg);
    margin: var(--najibul-space-lg) 0;
    display: none;
}

/* 🆕 State class support */
.najibul-home .retry-wrap[style*="display: block"],
.najibul-home .retry-wrap[style*="display:block"],
.najibul-home .retry-wrap.is-visible {
    display: block;
}

.najibul-home .retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #FFFFFF;
    background: var(--najibul-gradient-1);
    border: none;
    border-radius: var(--najibul-radius-pill);
    cursor: pointer;
    box-shadow: var(--najibul-shadow-md);
    transition: transform var(--najibul-transition),
                box-shadow var(--najibul-transition);
    will-change: transform;
}

.najibul-home .retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--najibul-shadow-lg);
}

.najibul-home .retry-btn:active {
    transform: translateY(0) scale(0.98);
}

.najibul-home .retry-btn:focus-visible {
    outline: 2px solid var(--najibul-primary);
    outline-offset: 3px;
}

/* ============================================================
   🦴 16. SKELETON LOADER — Content placeholder
   ============================================================ */

.najibul-home .skeleton-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--najibul-card-bg);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: var(--najibul-radius-lg);
    overflow: hidden;
    box-shadow: var(--najibul-shadow-sm);
    animation: najibul-skeleton-pulse 1.5s ease-in-out infinite;
}

.najibul-home .skeleton-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--najibul-border-soft);
    position: relative;
}

.najibul-home .skeleton-body {
    padding: var(--najibul-space-lg);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.najibul-home .skeleton-line {
    height: 14px;
    background: var(--najibul-border-soft);
    border-radius: 4px;
}

.najibul-home .skeleton-line.skeleton-title {
    height: 18px;
    width: 85%;
}

.najibul-home .skeleton-line.skeleton-excerpt {
    width: 100%;
}

.najibul-home .skeleton-line.skeleton-meta {
    height: 12px;
    width: 40%;
}

/* 🆕 Skeleton badges overlay */
.najibul-home .skeleton-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
}

.najibul-home .skeleton-badge {
    height: 20px;
    width: 60px;
    border-radius: var(--najibul-radius-pill);
    background: rgba(255, 255, 255, 0.35);
    animation: najibul-skeleton-pulse 1.5s ease-in-out infinite;
}

.najibul-home .skeleton-badge-right {
    width: 48px;
}

/* 🆕 Skeleton meta footer */
.najibul-home .skeleton-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: var(--najibul-space-md) var(--najibul-space-lg);
    border-top: 1px solid var(--najibul-border-soft);
}

.najibul-home .skeleton-meta-pill {
    height: 22px;
    width: 90px;
    border-radius: 30px;
    background: var(--najibul-border-soft);
    animation: najibul-skeleton-pulse 1.5s ease-in-out infinite;
}

.najibul-home .skeleton-meta-pill-short {
    width: 60px;
}

.najibul-home .skeleton-meta-separator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--najibul-border-soft);
}

.najibul-home .skeleton-line.skeleton-title-short {
    width: 60%;
}

.najibul-home .skeleton-line.skeleton-excerpt-short {
    width: 75%;
}

@keyframes najibul-skeleton-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.6; }
}

/* ============================================================
   🌙 17. DARK MODE — System preference
   ============================================================ */

@media (prefers-color-scheme: dark) {

    :root {
        --najibul-text:           #F1F5F9;
        --najibul-text-secondary: #CBD5E1;
        --najibul-text-muted:     #94A3B8;
        --najibul-text-faint:     #64748B;

        --najibul-bg:             #0F172A;
        --najibul-bg-gradient:    linear-gradient(135deg, #12181F, #1A222A);
        --najibul-card-bg:        #1E293B;
        --najibul-card-bg-subtle: #334155;
        --najibul-header-bg:      rgba(30, 41, 59, 0.92);
        --najibul-glass-bg:       rgba(30, 41, 59, 0.9);
        --najibul-end-bg:         rgba(30, 41, 59, 0.9);
        --najibul-border:         #334155;
        --najibul-border-soft:    #334155;

        --najibul-meta-bg:        #2C3A47;
        --najibul-meta-border:    #3B4B5C;
        --najibul-meta-author:    #FCA5A5;
        --najibul-meta-author-bg: rgba(212, 45, 60, 0.15);

        --najibul-primary-light:  #0C4A6E;
        --najibul-accent-light:   #4C1D95;

        /* 🆕 Loader surfaces (dark) */
        --najibul-loader-bg:      rgba(30, 41, 59, 0.72);
        --najibul-loader-border:  rgba(118, 75, 162, 0.35);
        --najibul-loader-shadow-1: rgba(0, 0, 0, 0.45);
        --najibul-loader-shadow-2: rgba(0, 242, 254, 0.15);
        --najibul-loader-shadow-hover-1: rgba(0, 0, 0, 0.55);
        --najibul-loader-shadow-hover-2: rgba(0, 242, 254, 0.28);

        --najibul-shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.3);
        --najibul-shadow-md:      0 4px 16px rgba(0, 0, 0, 0.3);
        --najibul-shadow-lg:      0 8px 24px rgba(0, 0, 0, 0.4);
        --najibul-shadow-xl:      0 12px 32px rgba(0, 0, 0, 0.5);
    }

    .najibul-home .dropdown-select {
        background-color: #2A3845;
        background-image:
            linear-gradient(#2A3845, #2A3845),
            var(--najibul-gradient-1);
        color: #F1F5F9;
    }

    .najibul-home .article-card {
        border-color: rgba(255, 255, 255, 0.05);
    }

    .najibul-home .article-title {
        color: #F1F5F9;
    }

    .najibul-home .article-excerpt {
        color: #CBD5E1;
    }

    .najibul-home .title-gradient {
        background: linear-gradient(135deg, #60A5FA, #38BDF8);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .najibul-home .article-badge-dark,
    .najibul-home .post-badge.article-badge-dark,
    .najibul-home .post-type-badge.article-badge-dark {
        background: #CD853F !important;
        color: #FFFFFF !important;
        border-color: #DEB887 !important;
    }

    .najibul-home .skeleton-thumb,
    .najibul-home .skeleton-line,
    .najibul-home .skeleton-meta-pill {
        background: #334155;
    }

    .najibul-home .skeleton-badge {
        background: rgba(255, 255, 255, 0.15);
    }
}

/* ============================================================
   🎬 18. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .najibul-home *,
    .najibul-home *::before,
    .najibul-home *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .najibul-home .article-card:hover {
        transform: none;
    }

    .najibul-home .article-card:hover .responsive-thumbnail {
        transform: none;
    }

    .najibul-home .title-badge.pulse {
        animation: none;
    }

    .najibul-home .najibul-visual-spinner-archive div {
        animation: none;
        opacity: 0.6;
    }

    .najibul-home .najibul-visual-spinner-archive::before {
        animation: none;
        opacity: 0.5;
    }

    .najibul-home .najibul-visual-progress-ring::before {
        animation: none;
    }

    .najibul-home .najibul-visual-counter-archive.milestone-bounce,
    .najibul-home .najibul-visual-counter-archive.milestone-complete {
        animation: none;
    }

    .najibul-home .najibul-visual-box-archive.haptic-pulse {
        animation: none;
    }

    .najibul-home .najibul-particle {
        animation: none;
        display: none;
    }

    .najibul-home .end-icon {
        animation: none;
    }

    .najibul-home .dropdown-select:hover,
    .najibul-home .retry-btn:hover,
    .najibul-home .najibul-visual-box-archive:hover {
        transform: none;
    }
}

/* ============================================================
   🔳 19. HIGH CONTRAST MODE
   ============================================================ */

@media (prefers-contrast: more) {
    .najibul-home .article-card {
        border-width: 2px;
        border-color: rgba(0, 0, 0, 0.25);
    }

    .najibul-home .article-title {
        text-decoration-thickness: 2px;
    }

    .najibul-home .post-badge,
    .najibul-home .post-type-badge {
        border-width: 2px;
    }

    .najibul-home .najibul-visual-box-archive {
        border-width: 2px;
        border-color: rgba(118, 75, 162, 0.6);
    }

    .najibul-home .dropdown-select:focus-visible,
    .najibul-home .article-link:focus-visible,
    .najibul-home .retry-btn:focus-visible {
        outline-width: 3px;
    }
}

/* ============================================================
   🖨️ 20. PRINT STYLES
   ============================================================ */

@media print {
    .najibul-home {
        max-width: 100%;
        padding: 0;
        background: #FFFFFF !important;
        color: #000000 !important;
        min-height: auto;
    }

    .najibul-home .dropdown-filter-wrapper,
    .najibul-home .infinite-sentinel,
    .najibul-home .najibul-loader-wrap,
    .najibul-home .infinite-loader,
    .najibul-home .end-message,
    .najibul-home .retry-wrap,
    .najibul-home .najibul-skip-link,
    .najibul-home .skeleton-card,
    .najibul-home .najibul-particles {
        display: none !important;
    }

    .najibul-home .content-section {
        box-shadow: none;
        padding: 0;
        background: #FFFFFF;
    }

    .najibul-home .content-section::before {
        display: none;
    }

    .najibul-home .article-grid {
        display: block;
    }

    .najibul-home .article-card {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 20px;
        box-shadow: none;
        border: 1px solid #DDDDDD;
        transform: none;
    }

    .najibul-home .article-title {
        color: #000000 !important;
    }

    .najibul-home .article-excerpt {
        color: #333333 !important;
    }

    .najibul-home .article-meta {
        background: #FFFFFF;
        border-top-color: #DDDDDD;
    }

    .najibul-home .meta-author,
    .najibul-home .meta-time {
        background: #F5F5F5;
        color: #000000;
        border-color: #CCCCCC;
    }

    .najibul-home .post-badge,
    .najibul-home .post-type-badge {
        background: #FFFFFF !important;
        color: #000000 !important;
        border: 1px solid #000000 !important;
    }

    .najibul-home .title-gradient {
        background: none !important;
        -webkit-text-fill-color: #000000 !important;
        color: #000000 !important;
    }
}

/* ============================================================
   ⚡ 21. PERFORMANCE — Content-visibility & GPU hints
   ============================================================ */

.najibul-home .article-card {
    content-visibility: auto;
    contain-intrinsic-size: 380px;
}

/* 🆕 GPU acceleration hints for loader */
.najibul-home .najibul-visual-box-archive,
.najibul-home .najibul-visual-spinner-archive,
.najibul-home .najibul-visual-spinner-archive::before,
.najibul-home .najibul-visual-spinner-archive div,
.najibul-home .najibul-visual-progress-ring::before,
.najibul-home .najibul-visual-counter-archive {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* 🆕 Ensure loader is on its own compositing layer */
.najibul-home .najibul-loader-wrap {
    contain: layout style paint;
}

/* ============================================================
   🌐 22. RTL FOUNDATIONS — Ready for Arabic / Hebrew / Urdu
   ============================================================ */

.najibul-home[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

.najibul-home[dir="rtl"] .badges-container {
    flex-direction: row-reverse;
}

.najibul-home[dir="rtl"] .badges-right {
    align-items: flex-start;
}

.najibul-home[dir="rtl"] .article-meta {
    flex-direction: row-reverse;
}

.najibul-home[dir="rtl"] .select-wrapper::after {
    right: auto;
    left: 18px;
}

.najibul-home[dir="rtl"] .dropdown-select {
    padding: 12px 20px 12px 40px;
}

/* ============================================================
   ✅ END OF FILE
   ============================================================ */