/* ==========================================================================
   FactCheck Kerala — News listing redesign (scoped to body.fc-listing)
   Matches the homepage civic-trust theme (teal / emerald + gold).
   ========================================================================== */

body.fc-listing {
    --h-ink: #0b1220;
    --h-ink-2: #1f2937;
    --h-teal: #4f46e5;
    --h-teal-dark: #3730a3;
    --h-emerald: #7c3aed;
    --h-gold: #f59e0b;
    --h-bg: #f4f6fb;
    --h-card: #ffffff;
    --h-line: #e5ebea;
    --h-muted: #64748b;
    --h-slate: #475569;
    --h-grad: linear-gradient(120deg, #4f46e5 0%, #7c3aed 100%);
    --h-shadow: 0 16px 44px rgba(11, 18, 32, .08);
    --h-shadow-lg: 0 34px 80px rgba(11, 18, 32, .16);

    background: var(--h-bg);
    color: var(--h-slate);
    font-family: 'Noto Sans Malayalam', sans-serif;
}

/* ===== Page hero strip ===== */
.fc-listing .listing-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(640px 320px at 90% -20%, rgba(255, 255, 255, .14), transparent 60%),
        var(--fc-grad);
    padding: 46px 0 54px;
    color: #fff;
}
.fc-listing .listing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}
.fc-listing .listing-hero .container { position: relative; z-index: 2; }
.fc-listing .lh-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: .82rem;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 14px;
}
.fc-listing .lh-crumb a { color: rgba(255, 255, 255, .85); }
.fc-listing .lh-crumb a:hover { color: #fff; }
.fc-listing .lh-crumb i { font-size: 10px; opacity: .7; }
.fc-listing .lh-crumb span { color: #fff; font-weight: 600; }
.fc-listing .lh-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.fc-listing .lh-title i {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.fc-listing .lh-count {
    margin: 12px 0 0;
    font-size: .88rem;
    color: rgba(255, 255, 255, .85);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    padding: 5px 14px;
    border-radius: 999px;
}

/* ===== News grid ===== */
.fc-listing .news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.fc-listing .nc-card {
    background: #fff;
    border: 1px solid var(--h-line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(11, 18, 32, .05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: block;
    color: inherit;
}
.fc-listing .nc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--h-shadow);
    border-color: #a7ded4;
    color: inherit;
}
.fc-listing .nc-media {
    background: #eef3f2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.fc-listing .nc-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}
.fc-listing .nc-body { padding: 18px 19px 20px; }
.fc-listing .nc-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.fc-listing .nc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--h-teal-dark);
    background: #eef2ff;
    padding: 3px 11px;
    border-radius: 999px;
}
.fc-listing .nc-date {
    font-size: 12px;
    color: var(--h-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.fc-listing .nc-date i { color: var(--h-teal); }
.fc-listing .nc-title {
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.65;
    color: var(--h-ink);
    margin: 0 0 14px;
}
.fc-listing .nc-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .86rem;
    font-weight: 600;
    color: var(--h-teal-dark);
}
.fc-listing .nc-card:hover .nc-more i { transform: translateX(3px); }
.fc-listing .nc-more i { transition: transform .2s ease; }

.fc-listing .empty-state {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px dashed var(--h-line);
    border-radius: 16px;
    text-align: center;
    padding: 60px 30px;
    color: var(--h-muted);
}
.fc-listing .empty-state i { font-size: 40px; color: #c9d5d4; margin-bottom: 12px; display: block; }

/* ===== Pagination ===== */
.fc-listing .pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
}
.fc-listing .pager .pg {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 11px;
    background: #fff;
    border: 1px solid var(--h-line);
    color: var(--h-slate);
    font-weight: 600;
    font-size: .9rem;
    transition: all .18s ease;
}
.fc-listing .pager .pg:hover { border-color: var(--h-teal); color: var(--h-teal-dark); }
.fc-listing .pager .pg.active {
    background: var(--h-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(79, 70, 229, .3);
}
.fc-listing .pager .pg.disabled {
    opacity: .45;
    pointer-events: none;
}
.fc-listing .pager .dots {
    color: var(--h-muted);
    padding: 0 4px;
}

/* ===== Sidebar ===== */
.fc-listing .side-panel {
    position: sticky;
    top: 96px;
}
.fc-listing .side-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--h-ink);
    padding: 14px 0;
    margin: 0 0 18px;
    border-bottom: 2px solid var(--h-line);
}
.fc-listing .side-title i { color: var(--h-gold); }
.fc-listing .pop-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.fc-listing .pop-list > li {
    background: #fff;
    border: 1px solid var(--h-line);
    border-radius: 13px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(11, 18, 32, .04);
    transition: transform .2s ease, box-shadow .2s ease;
}
.fc-listing .pop-list > li:hover {
    transform: translateY(-3px);
    box-shadow: var(--h-shadow);
}
.fc-listing .pop-list .post.small-post {
    display: flex;
    gap: 12px;
    padding: 11px;
    align-items: center;
}
.fc-listing .pop-list .entry-header { flex: 0 0 84px; }
.fc-listing .pop-list .entry-thumbnail a { display: block; }
.fc-listing .pop-list .entry-thumbnail img {
    width: 84px;
    height: 70px;
    object-fit: contain;
    background: #eef3f2;
    border-radius: 9px;
    display: block;
}
.fc-listing .pop-list .post-content h2,
.fc-listing .pop-list .entry-title {
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.55;
    margin: 0;
    color: var(--h-ink);
}
.fc-listing .pop-list .entry-title a { color: inherit; }
.fc-listing .pop-list .entry-title a:hover { color: var(--h-teal-dark); }

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .fc-listing .listing-hero { padding: 36px 0 44px; }
    .fc-listing .lh-title { font-size: 1.6rem; }
    .fc-listing .side-panel { position: static; margin-top: 36px; }
}
@media (max-width: 575.98px) {
    .fc-listing .news-grid { grid-template-columns: 1fr; }
    .fc-listing .lh-title { font-size: 1.35rem; }
}