/* ==========================================================================
   FactCheck Kerala — Stay Safe gallery (scoped to body.fc-staysafe)
   ========================================================================== */

body.fc-staysafe {
    --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);

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

/* ===== Hero ===== */
.fc-staysafe .sf-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(640px 320px at 90% -20%, rgba(245, 158, 11, .14), transparent 60%),
        var(--h-grad);
    padding: 42px 0 54px;
    color: #fff;
}
.fc-staysafe .sf-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-staysafe .sf-hero .container { position: relative; z-index: 2; }
.fc-staysafe .sf-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: .82rem;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 14px;
}
.fc-staysafe .sf-crumb a { color: rgba(255, 255, 255, .85); }
.fc-staysafe .sf-crumb a:hover { color: #fff; }
.fc-staysafe .sf-crumb i { font-size: 10px; opacity: .7; }
.fc-staysafe .sf-crumb span { color: #fff; font-weight: 600; }
.fc-staysafe .sf-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
    padding: 6px 15px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.fc-staysafe .sf-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 8px;
}
.fc-staysafe .sf-sub {
    margin: 0;
    font-size: .94rem;
    color: rgba(255, 255, 255, .85);
    max-width: 64ch;
    line-height: 1.8;
}

/* ===== Gallery grid ===== */
.fc-staysafe .sf-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.fc-staysafe .sf-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--h-line);
    box-shadow: 0 8px 24px rgba(11, 18, 32, .05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.fc-staysafe .sf-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(11, 18, 32, .12);
    border-color: #a7ded4;
}
.fc-staysafe .sf-card a {
    display: block;
    position: relative;
    overflow: hidden;
}
.fc-staysafe .sf-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform .35s ease;
}
.fc-staysafe .sf-card:hover img { transform: scale(1.04); }
.fc-staysafe .sf-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 32, .38);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .25s ease;
}
.fc-staysafe .sf-card:hover .sf-overlay { opacity: 1; }
.fc-staysafe .sf-overlay i {
    color: #fff;
    font-size: 26px;
    background: rgba(255, 255, 255, .22);
    border: 2px solid rgba(255, 255, 255, .5);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: transform .25s ease;
}
.fc-staysafe .sf-card:hover .sf-overlay i { transform: scale(1.12); }

/* ===== Empty ===== */
.fc-staysafe .sf-empty {
    background: #fff;
    border: 1px dashed var(--h-line);
    border-radius: 18px;
    text-align: center;
    padding: 60px 30px;
    color: var(--h-muted);
}
.fc-staysafe .sf-empty i { font-size: 44px; color: #c9d5d4; display: block; margin-bottom: 14px; }

/* ===== Sidebar ===== */
.fc-staysafe .side-panel { position: sticky; top: 96px; }
.fc-staysafe .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-staysafe .side-title i { color: var(--h-gold); }
.fc-staysafe .pop-list { list-style: none; margin: 0; padding: 0; }
.fc-staysafe .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-staysafe .pop-list > li:hover { transform: translateY(-3px); box-shadow: var(--h-shadow); }
.fc-staysafe .pop-list .post.small-post { display: flex; gap: 12px; padding: 11px; align-items: center; }
.fc-staysafe .pop-list .entry-header { flex: 0 0 84px; }
.fc-staysafe .pop-list .entry-thumbnail a { display: block; }
.fc-staysafe .pop-list .entry-thumbnail img { width: 84px; height: 70px; object-fit: contain; background: #eef3f2; border-radius: 9px; display: block; }
.fc-staysafe .pop-list .entry-title { font-size: .88rem; font-weight: 600; line-height: 1.55; margin: 0; color: var(--h-ink); }
.fc-staysafe .pop-list .entry-title a { color: inherit; }
.fc-staysafe .pop-list .entry-title a:hover { color: var(--h-teal-dark); }

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .fc-staysafe .sf-hero { padding: 34px 0 44px; }
    .fc-staysafe .sf-title { font-size: 1.55rem; }
    .fc-staysafe .side-panel { position: static; margin-top: 36px; }
}
@media (max-width: 767.98px) {
    .fc-staysafe .sf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .fc-staysafe .sf-title { font-size: 1.3rem; }
    .fc-staysafe .sf-grid { gap: 12px; }
}