/**
 * Najibul — Shared Design System (Base Stylesheet) — v5.0
 *
 * FOUNDATION used by all Najibul homepages (Home, News, FullForms,
 * Stories, Poems, Tools, Shorts) across all languages.
 *
 * Provides: design tokens, reset, layout primitives, component styles,
 * dark mode, reduced motion, high contrast, print, RTL foundations.
 *
 * Does NOT contain: language-specific overrides (home-{lang}.css) or
 * CPT-specific overrides (each CPT's own CSS).
 *
 * All styles namespaced under .najibul-* to prevent theme conflicts.
 *
 * ⚡ v5.0 CHANGES (from v4.0):
 *   • ❌ --najibul-qa-badge CSS variable REMOVED
 *   • ❌ .qa-badge class REMOVED
 *   • ✅ Dopamine badges (breaking/new/trending) preserved
 *   • ✅ 7 post type badges preserved (no QA)
 *   • ✅ Comments compressed ~15%
 *   • ✅ All class names, tokens, media queries preserved (BC-safe)
 *   • ✅ Design consistency preserved (same visual output)
 *
 * @package    GeneratePress_Child
 * @subpackage Najibul_Multilang
 * @version    5.0.0
 * @license    GPL-2.0-or-later
 */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */

: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);

    /* 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;

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

    /* Post type badge gradients (7 types — NO QA) */
    --najibul-news-badge:       linear-gradient(135deg, #D42D3C, #B03042);
    --najibul-tools-badge:      linear-gradient(135deg, #2B3A4A, #3A4A5A);
    --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;

    /* Dopamine 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);

    /* 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);

    /* Radii */
    --najibul-radius-sm:   8px;
    --najibul-radius-md:   12px;
    --najibul-radius-lg:   16px;
    --najibul-radius-xl:   20px;
    --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);

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

/* ============================================================
   2. RESET (scoped)
   ============================================================ */

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

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

/* ============================================================
   3. MAIN CONTAINER
   ============================================================ */

.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 — premium blue-violet pill, centered
   ============================================================ */

.najibul-home .dropdown-filter-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 460px;
    margin: 18px auto;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: center;
}

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

.najibul-home .select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

/* No extra ▼ — the select's own SVG chevron (from core.css) is the single indicator */
.najibul-home .select-wrapper::after { content: none; }

.najibul-home .dropdown-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: min(380px, 100%);
    max-width: 100%;
    padding: 15px 48px 15px 28px;
    font-size: 15.5px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.35;
    letter-spacing: .002em;
    text-align: center;
    text-align-last: center;
    color: #1e3a8a;
    background: #ffffff;
    background-image:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="%234f46e5" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>'),
        linear-gradient(135deg, #ffffff 0%, #eef2ff 100%),
        linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    background-origin: padding-box, padding-box, border-box;
    background-clip: padding-box, padding-box, border-box;
    background-repeat: no-repeat;
    background-position: right 18px center, 0 0, 0 0;
    background-size: 19px 19px, 100% 100%, 100% 100%;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(37, 99, 235, .16), 0 2px 8px rgba(124, 58, 237, .10);
    transition: transform .28s cubic-bezier(.4,0,.2,1), box-shadow .28s cubic-bezier(.4,0,.2,1), background-color .28s ease;
}

.najibul-home .dropdown-select:hover {
    transform: translateY(-2px);
    background-color: #f5f7ff;
    box-shadow: 0 16px 36px rgba(37, 99, 235, .22), 0 4px 12px rgba(124, 58, 237, .14);
}

.najibul-home .dropdown-select:focus {
    outline: none;
}

.najibul-home .dropdown-select:focus-visible {
    outline: 3px solid rgba(124, 58, 237, .55);
    outline-offset: 3px;
}

.najibul-home .dropdown-filter-wrapper .screen-reader-text { display: block; } /* keep a11y label intact */

/* Dark mode — deep slate pill with same gradient border, glowing dots */
html[data-njp-theme="dark"] .najibul-home .dropdown-select,
html.njp-theme-dark .najibul-home .dropdown-select {
    color: #e2e8f0;
    background-color: #141d2e;
    background-image:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="%23a5b4fc" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>'),
        linear-gradient(135deg, #1b2537 0%, #0f172a 100%),
        linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    background-origin: padding-box, padding-box, border-box;
    background-clip: padding-box, padding-box, border-box;
    background-repeat: no-repeat;
    background-position: right 18px center, 0 0, 0 0;
    background-size: 19px 19px, 100% 100%, 100% 100%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(90, 117, 235, .12) inset;
}

html[data-njp-theme="dark"] .najibul-home .dropdown-select:hover,
html.njp-theme-dark .najibul-home .dropdown-select:hover {
    background-color: #1e293b;
    box-shadow: 0 18px 42px rgba(37, 99, 235, .35), 0 4px 14px rgba(124, 58, 237, .25);
}

/* ============================================================
   /* ============================================================
   6. CONTENT SECTION
   ============================================================ */

.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);
}

.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
   ============================================================ */

.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;
}

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

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

/* ============================================================
   9. ARTICLE 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;
    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
   ============================================================ */

.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. 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: contain;
    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); }

.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));
}

.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
   ============================================================ */

.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 (7 types — NO QA) ── */
.najibul-home .news-badge        { background: var(--najibul-news-badge); }
.najibul-home .tools-badge       { background: var(--najibul-tools-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); }

.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;
}

/* ── Dopamine badges (3-tier priority) ── */
.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
   ============================================================ */

.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
   ============================================================ */

.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
   ============================================================ */

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

.najibul-home .infinite-loader {
    display: none;
    padding: var(--najibul-space-xl) 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 .infinite-loader[style*="display: block"],
.najibul-home .infinite-loader[style*="display:block"] { display: block; }

.najibul-home .loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.najibul-home .loader-spinner {
    /* Replaced by Najibul Loader's 12-dot wheel in scroll-footer.php */
    display: none;
}

@keyframes najibul-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.najibul-home .end-message {
    display: none;
    padding: var(--najibul-space-xl) var(--najibul-space-lg);
    margin: var(--najibul-space-xl) 0;
    text-align: center;
    background: var(--najibul-end-bg);
    border-radius: var(--najibul-radius-lg);
}

.najibul-home .end-icon {
    display: block;
    margin-bottom: 8px;
    font-size: 42px;
    line-height: 1;
}

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

.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);
}

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

.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);
}

.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
   ============================================================ */

.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);
}

.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%;
}

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

/* ============================================================
   17. DARK MODE
   ============================================================ */

@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;
        --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 { background: #334155; }
}

/* ============================================================
   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 .loader-spinner { animation-duration: 0.01ms; }
    .najibul-home .dropdown-select:hover,
    .najibul-home .retry-btn: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 .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 .infinite-loader,
    .najibul-home .end-message,
    .najibul-home .retry-wrap,
    .najibul-home .najibul-skip-link,
    .najibul-home .skeleton-card { 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. RTL FOUNDATIONS
   ============================================================ */

.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
   ============================================================ */

/* ============================================================
   16. Najibul Loader — single engine on homepage
   The plugin injects a duplicate .najibul-archive-loader-wrapper
   as a grid-spanning sibling on archive pages. On the homepage that
   injection is gated by max_num_pages > 1 (normally false for the
   front page), and our scroll-footer partial is the ONE spinner.
   Hide any plugin-created clone here; #najibulLoader no longer
   carries the plugin class, so it is never affected.
   ============================================================ */
.najibul-home .najibul-archive-loader-wrapper { display: none !important; }

/* Home spinner — hidden by default; home-infinite.js toggles inline display */
#najibulLoader.infinite-loader { display: none; }
#najibulLoader.infinite-loader[style*="display: block"] { display: block; }

/* ============================================================
   17. Najibul Loader 12-dot spinner — dark & light mode
   The plugin styles dots/labels with var(--nj-text) and the box with
   var(--nj-loader-bg) / var(--nj-border) / var(--nj-shadow), switching
   only via prefers-color-scheme. Re-declare the same palette for the
   manual NajibulPress theme toggle so the wheel stays crisp in both
   modes (auto + manual). Values mirror the plugin's own dark scheme.
   ============================================================ */
html[data-njp-theme="dark"],
html.njp-theme-dark {
    --nj-bg: #12181F;
    --nj-text: #E8EDF2;
    --nj-card-bg: #1E2A36;
    --nj-border: #2F4050;
    --nj-loader-bg: rgba(18,24,31,0.95);
    --nj-shadow: rgba(0,0,0,0.3);
    color-scheme: dark;
}
html[data-njp-theme="light"],
html.njp-theme-light {
    --nj-bg: #ffffff;
    --nj-text: #1a1a2e;
    --nj-card-bg: #ffffff;
    --nj-border: #e8ecf0;
    --nj-loader-bg: rgba(255,255,255,0.95);
    --nj-shadow: rgba(0,0,0,0.06);
    color-scheme: light;
}

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