/*
Theme Name: bibleverse
Theme URI: https://bibleverse.com.ng
Author: bibleverse
Author URI: https://bibleverse.com.ng
Description: A clean, card-based content theme for Christianity, Bible study, and religious content. Horizontal post cards, favourite icons, category badges, in-feed ad support. 100% mobile-first responsive design with full desktop experience.
Version: 1.1.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bibleverse
Tags: blog, news, one-column, custom-menu, featured-images, translation-ready, religion
*/

/* ==========================================================================
   MOBILE-FIRST: Base = 320px phones.
   Breakpoints (all min-width):
     400px  — stacked → horizontal card switch
     480px  — large phone
     600px  — small tablet / inline search
     768px  — tablet portrait
     960px  — desktop nav bar / wider container
     1200px — wide desktop
   ========================================================================== */

:root {
    /* WCAG AAA compliant palette — royal navy + warm gold */
    --fl-primary: #1B3A5C;        /* deep royal navy — 9.56:1 on white */
    --fl-primary-dark: #122840;   /* darker navy for hover */
    --fl-primary-light: #E8EEF4;  /* light navy tint */
    --fl-accent: #8B6914;         /* warm gold — 7.03:1 on white */
    --fl-text: #1A1A1A;           /* 16.6:1 on white */
    --fl-text-light: #4A4A4A;     /* 8.59:1 on white */
    --fl-text-muted: #595959;     /* 7.14:1 on white */
    --fl-link: #1B3A5C;           /* navy links — 9.56:1 on white */
    --fl-link-hover: #122840;     /* darker on hover */
    --fl-bg: #F7F5F2;             /* warm off-white parchment tint */
    --fl-card-bg: #FFF;
    --fl-border: #D6D0C8;         /* warm grey border */
    --fl-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --fl-heart: #8B7355;          /* muted bronze, decorative */
    --fl-heart-active: #8B6914;   /* warm gold when liked */
    --fl-badge-bg: #8B6914;       /* gold badges */
    --fl-badge-text: #FFF;
    --fl-ad-label-bg: #1B3A5C;    /* navy ad label */
    --fl-header-h: 52px;
    --fl-max-w: 820px;
    --fl-safe-top: env(safe-area-inset-top, 0px);
    --fl-safe-bottom: env(safe-area-inset-bottom, 0px);
    --fl-safe-left: env(safe-area-inset-left, 0px);
    --fl-safe-right: env(safe-area-inset-right, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-y: scroll; }
body {
    font-family: var(--fl-font); color: var(--fl-text); background: var(--fl-bg);
    line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; width: 100%; min-height: 100vh; min-height: 100dvh;
}
body.fl-drawer-open { position: fixed; width: 100%; overflow: hidden; }
a { color: var(--fl-link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--fl-link-hover); }
img { max-width: 100%; height: auto; display: block; }

.screen-reader-text {
    clip: rect(1px,1px,1px,1px); position: absolute !important;
    height: 1px; width: 1px; overflow: hidden; word-wrap: normal !important;
}
.screen-reader-text:focus {
    background: #f1f1f1; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
    clip: auto !important; color: #21759b; display: block; font-size: 14px; font-weight: 700;
    height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px;
    text-decoration: none; top: 5px; width: auto; z-index: 100000;
}


/* =====================================================================
   HEADER
   ===================================================================== */
.fl-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--fl-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding-top: var(--fl-safe-top);
}
.fl-header-bar {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    height: var(--fl-header-h);
    padding: 0 2px;
    padding-left: max(2px, var(--fl-safe-left));
    padding-right: max(2px, var(--fl-safe-right));
}
.fl-menu-toggle {
    grid-column: 1; justify-self: start;
    background: none; border: none; color: #fff; cursor: pointer; padding: 0;
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    border-radius: 6px; -webkit-tap-highlight-color: transparent; transition: background 0.15s;
}
.fl-menu-toggle:active { background: rgba(255,255,255,0.18); }
.fl-menu-toggle svg { width: 24px; height: 24px; fill: #fff; pointer-events: none; }

.fl-site-title {
    grid-column: 2; justify-self: center; color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 100%; padding: 0 4px; text-align: center;
}
.fl-site-title a { color: inherit; }

.fl-search-toggle {
    grid-column: 3; justify-self: end;
    background: none; border: none; color: #fff; cursor: pointer; padding: 0;
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    border-radius: 6px; -webkit-tap-highlight-color: transparent; transition: background 0.15s;
}
.fl-search-toggle:active { background: rgba(255,255,255,0.18); }
.fl-search-toggle svg { width: 22px; height: 22px; fill: #fff; pointer-events: none; }

.fl-search-inline { display: none; }
.fl-search-drop {
    display: none; background: var(--fl-primary-dark); padding: 6px 8px;
    padding-left: max(8px, var(--fl-safe-left)); padding-right: max(8px, var(--fl-safe-right));
}
.fl-search-drop.active { display: block; }

.fl-search-form {
    display: flex; align-items: center; background: rgba(255,255,255,0.2);
    border-radius: 6px; overflow: hidden; width: 100%; transition: background 0.2s;
}
.fl-search-form:focus-within { background: rgba(255,255,255,0.35); }
.fl-search-form input[type="search"] {
    flex: 1; border: none; background: transparent; color: #fff;
    padding: 10px 12px; font-size: 16px; outline: none; font-family: var(--fl-font);
    min-height: 44px; -webkit-appearance: none; appearance: none;
}
.fl-search-form input[type="search"]::placeholder { color: rgba(255,255,255,0.65); }
.fl-search-form input[type="search"]::-webkit-search-cancel-button,
.fl-search-form input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
.fl-search-form button[type="submit"] {
    background: none; border: none; color: #fff; cursor: pointer;
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; -webkit-tap-highlight-color: transparent;
}
.fl-search-form button[type="submit"] svg { width: 20px; height: 20px; fill: #fff; pointer-events: none; }

/* Desktop navigation bar — hidden on mobile */
.fl-desktop-nav { display: none; }

@media (min-width: 480px) {
    .fl-header-bar { padding: 0 6px; }
    .fl-site-title { font-size: 13px; letter-spacing: 1.2px; }
}

@media (min-width: 600px) {
    :root { --fl-header-h: 60px; }
    .fl-header-bar { display: flex; align-items: center; gap: 12px; padding: 0 16px; }
    .fl-search-toggle { display: none; }
    .fl-search-drop { display: none !important; }
    .fl-search-inline {
        display: flex; align-items: center;
        background: rgba(255,255,255,0.2); border-radius: 6px; overflow: hidden;
        width: 100%; transition: background 0.2s;
    }
    .fl-search-inline:focus-within { background: rgba(255,255,255,0.35); }
    .fl-search-inline input[type="search"] {
        flex: 1; border: none; background: transparent; color: #fff;
        padding: 8px 14px; font-size: 15px; outline: none; font-family: var(--fl-font);
        min-height: 42px; -webkit-appearance: none; appearance: none;
    }
    .fl-search-inline input[type="search"]::placeholder { color: rgba(255,255,255,0.65); }
    .fl-search-inline input[type="search"]::-webkit-search-cancel-button,
    .fl-search-inline input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
    .fl-search-inline button[type="submit"] {
        background: none; border: none; color: #fff; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; flex-shrink: 0;
    }
    .fl-search-inline button[type="submit"] svg { width: 20px; height: 20px; fill: #fff; }
    .fl-site-title { flex: none; font-size: 15px; letter-spacing: 1.5px; text-align: right; justify-self: auto; margin-left: auto; }
}

@media (min-width: 768px) {
    :root { --fl-header-h: 64px; }
    .fl-header-bar { padding: 0 20px; gap: 16px; }
}

/* ── 960px: Desktop nav bar (hamburger stays visible) ── */
@media (min-width: 960px) {
    :root { --fl-max-w: 1060px; }
    .fl-header-bar { padding: 0 24px; }
    .fl-search-inline { overflow: visible; }

    .fl-desktop-nav {
        display: block;
        background: rgba(0,0,0,0.08);
    }
    .fl-desktop-nav-inner {
        max-width: var(--fl-max-w);
        margin: 0 auto;
        padding: 0 24px;
    }
    .fl-desktop-menu {
        list-style: none;
        display: flex;
        align-items: center;
        gap: 0;
    }
    .fl-desktop-menu > li {
        position: relative;
    }
    .fl-desktop-menu > li > a {
        display: flex;
        align-items: center;
        padding: 0 16px;
        height: 42px;
        color: #fff;
        font-size: 14px;
        font-weight: 500;
        transition: background 0.15s;
        white-space: nowrap;
    }
    .fl-desktop-menu > li > a:hover,
    .fl-desktop-menu > li.current-menu-item > a,
    .fl-desktop-menu > li.current-menu-parent > a {
        background: rgba(255,255,255,0.12);
        color: #fff;
    }
    /* Dropdown */
    .fl-desktop-menu .sub-menu {
        list-style: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        background: #fff;
        border-radius: 0 0 6px 6px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-4px);
        transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
        z-index: 100;
    }
    .fl-desktop-menu > li:hover > .sub-menu,
    .fl-desktop-menu > li.fl-dd-open > .sub-menu {
        opacity: 1; visibility: visible; transform: translateY(0);
    }
    .fl-desktop-menu .sub-menu li a {
        display: block;
        padding: 10px 20px;
        color: var(--fl-text);
        font-size: 14px;
        transition: background 0.12s;
        border-bottom: 1px solid var(--fl-border);
    }
    .fl-desktop-menu .sub-menu li:last-child a { border-bottom: none; }
    .fl-desktop-menu .sub-menu li a:hover { background: var(--fl-primary-light); color: var(--fl-primary-dark); }
    /* Chevron for parent items */
    .fl-desktop-menu > .menu-item-has-children > a::after {
        content: '';
        display: inline-block;
        width: 0; height: 0;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 5px solid rgba(255,255,255,0.7);
        margin-left: 6px;
    }
}

@media (min-width: 1200px) {
    :root { --fl-max-w: 1120px; }
    .fl-header-bar { padding: 0 32px; gap: 20px; }
    .fl-desktop-nav-inner { padding: 0 32px; }
}


/* =====================================================================
   LIVE SEARCH
   ===================================================================== */
/* Search wrapper — positions dropdown relative to input */
.fl-search-wrap { position: relative; }
.fl-search-wrap-inline { display: none; }
.fl-search-wrap-drop { position: relative; }

@media (min-width: 600px) {
    .fl-search-wrap-inline {
        flex: 1; display: block;
        max-width: 520px;
        position: relative;
    }
}
@media (min-width: 768px) { .fl-search-wrap-inline { max-width: 560px; } }
@media (min-width: 960px) { .fl-search-wrap-inline { max-width: 600px; } }

/* Results dropdown */
.fl-live-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    margin-top: 4px;
    background: var(--fl-card-bg);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 3000;
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.fl-live-results.active { display: block; }

/* Individual result item */
.fl-live-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--fl-text);
    text-decoration: none;
    transition: background 0.12s;
    border-bottom: 1px solid var(--fl-border);
    -webkit-tap-highlight-color: transparent;
}
.fl-live-item:last-of-type { border-bottom: none; }
.fl-live-item:hover,
.fl-live-item:focus { background: var(--fl-primary-light); }

/* Thumbnail */
.fl-live-thumb {
    width: 48px; height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.fl-live-no-thumb {
    display: flex; align-items: center; justify-content: center;
    background: var(--fl-primary-light);
    color: var(--fl-primary);
}

/* Text */
.fl-live-text { flex: 1; min-width: 0; }
.fl-live-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--fl-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.fl-live-cat {
    display: block;
    font-size: 11px;
    color: var(--fl-text-muted);
    margin-top: 2px;
}

/* "View all results" link */
.fl-live-all {
    display: block;
    padding: 12px 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--fl-primary);
    background: var(--fl-bg);
    border-top: 1px solid var(--fl-border);
    transition: background 0.12s;
}
.fl-live-all:hover { background: var(--fl-primary-light); }

/* Empty state */
.fl-live-empty {
    padding: 20px 14px;
    text-align: center;
    font-size: 14px;
    color: var(--fl-text-muted);
}

/* Loading dots */
.fl-live-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 18px;
}
.fl-live-loading span {
    width: 8px; height: 8px;
    background: var(--fl-primary);
    border-radius: 50%;
    animation: flDot 1s infinite ease-in-out;
}
.fl-live-loading span:nth-child(2) { animation-delay: 0.15s; }
.fl-live-loading span:nth-child(3) { animation-delay: 0.3s; }
@keyframes flDot {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
}

/* Mobile results dropdown — wider on small screens */
@media (max-width: 599px) {
    .fl-search-wrap-drop .fl-live-results {
        left: -8px; right: -8px;
        border-radius: 0 0 8px 8px;
    }
}


/* =====================================================================
   NAV DRAWER
   ===================================================================== */
.fl-nav-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 2000; opacity: 0; transition: opacity 0.25s; -webkit-tap-highlight-color: transparent;
}
.fl-nav-overlay.active { display: block; opacity: 1; }

.fl-nav-drawer {
    position: fixed; top: 0; left: 0; width: 280px; max-width: 85vw;
    height: 100%; height: 100dvh; background: #fff; z-index: 2001;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain;
    box-shadow: 2px 0 16px rgba(0,0,0,0.25);
    transform: translateX(-100%); transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    padding-top: var(--fl-safe-top); padding-bottom: var(--fl-safe-bottom);
    padding-left: var(--fl-safe-left);
}
.fl-nav-drawer.active { transform: translateX(0); }
.fl-nav-drawer.dragging { transition: none !important; }

.fl-nav-drawer-header {
    background: var(--fl-primary); padding: 0 16px; color: #fff;
    font-size: 15px; font-weight: 700; letter-spacing: 1px;
    position: relative; display: flex; align-items: center; min-height: 56px;
}
.fl-nav-close {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
    background: none; border: none; color: #fff; font-size: 28px;
    cursor: pointer; line-height: 1; width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.fl-nav-drawer .menu { list-style: none; padding: 4px 0; }
.fl-nav-drawer .menu li { border-bottom: 1px solid var(--fl-border); }
.fl-nav-drawer .menu li a {
    display: flex; align-items: center; padding: 0 20px;
    color: var(--fl-text); font-size: 15px; font-weight: 500;
    min-height: 48px; transition: background 0.12s, color 0.12s;
    -webkit-tap-highlight-color: transparent;
}
.fl-nav-drawer .menu li a:hover,
.fl-nav-drawer .menu li a:active { background: var(--fl-primary-light); color: var(--fl-primary-dark); }
.fl-nav-drawer .menu .sub-menu { list-style: none; padding-left: 20px; }
.fl-nav-drawer .menu .sub-menu li { border-bottom: none; }
.fl-nav-drawer .menu .sub-menu li a { font-size: 14px; font-weight: 400; color: var(--fl-text-light); min-height: 44px; }


/* =====================================================================
   BREADCRUMBS
   ===================================================================== */
.fl-breadcrumbs {
    width: 100%; margin: 10px auto 0;
    padding: 10px 12px;
    font-size: 12px;
    color: var(--fl-text-muted);
    background: var(--fl-card-bg);
    border-bottom: 1px solid var(--fl-border);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.fl-breadcrumbs a { color: var(--fl-text-light); text-decoration: underline; text-underline-offset: 2px; }
.fl-breadcrumbs a:hover { color: var(--fl-primary); }
.fl-bc-sep { margin: 0 6px; color: var(--fl-border); }
.fl-bc-current { color: var(--fl-text); font-weight: 600; }

@media (min-width: 480px) { .fl-breadcrumbs { padding: 12px 16px; font-size: 13px; } }
@media (min-width: 768px) { .fl-breadcrumbs { padding: 12px 20px; } }
@media (min-width: 960px) { .fl-breadcrumbs { max-width: var(--fl-max-w); } }


/* =====================================================================
   FEED CONTAINER
   ===================================================================== */
.fl-feed { width: 100%; margin: 0 auto; padding: 0; margin-top: 10px; }
@media (min-width: 480px) { .fl-feed { margin-top: 14px; } }
@media (min-width: 768px) { .fl-feed { margin-top: 18px; } }
@media (min-width: 960px) { .fl-feed { max-width: var(--fl-max-w); margin-top: 22px; } }


/* =====================================================================
   POST CARD — stacked on tiny screens, horizontal 400px+
   ===================================================================== */
.fl-card {
    display: flex; flex-direction: column;
    background: var(--fl-card-bg); border-bottom: 1px solid var(--fl-border);
    position: relative; transition: background 0.15s;
}
.fl-card-thumb { flex-shrink: 0; width: 100%; height: 160px; overflow: hidden; }
.fl-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fl-card-thumb .fl-no-thumb {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--fl-primary-light), #E8F5E9);
    display: flex; align-items: center; justify-content: center; color: var(--fl-primary);
}
.fl-card-thumb .fl-no-thumb svg { width: 28px; height: 28px; }

.fl-card-body { flex: 1; min-width: 0; padding: 10px 12px 36px 12px; }
.fl-card-title { font-size: 15px; font-weight: 700; line-height: 1.35; margin-bottom: 4px; padding-right: 36px; }
.fl-card-title a { color: var(--fl-link); }
.fl-card-title a:hover { text-decoration: underline; }

.fl-card-excerpt {
    font-size: 13px; color: var(--fl-text-light); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 6px;
}

.fl-card-heart {
    position: absolute; right: 4px; top: 4px;
    background: none; border: none; cursor: pointer; color: var(--fl-heart);
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    transition: color 0.2s, transform 0.2s; -webkit-tap-highlight-color: transparent; z-index: 2;
}
.fl-card-heart:active { color: var(--fl-heart-active); transform: scale(1.2); }
.fl-card-heart.liked { color: var(--fl-heart-active); }
.fl-card-heart svg { width: 20px; height: 20px; pointer-events: none; }

.fl-card-badge {
    display: inline-block; background: var(--fl-badge-bg); color: var(--fl-badge-text);
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
    padding: 4px 10px; border-radius: 3px; position: absolute; bottom: 10px; right: 10px;
    max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    transition: background 0.2s;
}
.fl-card-badge:hover { background: var(--fl-primary-dark); color: #fff; }

@media (min-width: 400px) {
    .fl-card { flex-direction: row; align-items: flex-start; padding: 10px; gap: 10px; }
    .fl-card-thumb { width: 110px; height: 88px; border-radius: 4px; }
    .fl-card-body { padding: 0 32px 20px 0; }
    .fl-card-heart { top: 4px; right: 2px; }
}
@media (min-width: 480px) {
    .fl-card { padding: 12px; gap: 12px; }
    .fl-card-thumb { width: 130px; height: 100px; }
    .fl-card-title { font-size: 16px; }
    .fl-card-excerpt { -webkit-line-clamp: 4; }
    .fl-card-badge { font-size: 11px; padding: 4px 12px; }
    .fl-card-heart svg { width: 22px; height: 22px; }
}
@media (min-width: 600px) {
    .fl-card { padding: 14px; gap: 14px; }
    .fl-card-thumb { width: 160px; height: 120px; }
    .fl-card-title { font-size: 17px; margin-bottom: 5px; }
    .fl-card-excerpt { font-size: 14px; margin-bottom: 8px; }
    .fl-card-badge { font-size: 12px; padding: 5px 14px; bottom: 14px; right: 14px; }
    .fl-card-heart { top: 10px; right: 8px; }
    .fl-card:hover { background: #FAFAFA; }
    .fl-card-thumb img { transition: transform 0.3s; }
    .fl-card:hover .fl-card-thumb img { transform: scale(1.03); }
}
@media (min-width: 768px) {
    .fl-card { padding: 16px; gap: 16px; }
    .fl-card-thumb { width: 180px; height: 140px; }
    .fl-card-body { padding-right: 36px; }
    .fl-card-title { font-size: 18px; margin-bottom: 6px; }
    .fl-card-excerpt { line-height: 1.55; margin-bottom: 10px; }
    .fl-card-badge { padding: 5px 16px; letter-spacing: 0.5px; bottom: 16px; right: 16px; }
    .fl-card-heart { top: 14px; right: 14px; }
}
/* ── Desktop: wider cards with bigger thumbnails ── */
@media (min-width: 960px) {
    .fl-card { padding: 18px 20px; gap: 20px; }
    .fl-card-thumb { width: 220px; height: 160px; border-radius: 6px; }
    .fl-card-title { font-size: 19px; margin-bottom: 8px; line-height: 1.35; }
    .fl-card-excerpt { font-size: 14px; -webkit-line-clamp: 4; line-height: 1.6; margin-bottom: 12px; }
    .fl-card-body { padding-right: 40px; padding-bottom: 24px; }
    .fl-card-badge { font-size: 12px; padding: 6px 18px; bottom: 18px; right: 20px; border-radius: 4px; }
    .fl-card-heart { top: 16px; right: 16px; }
    .fl-card-heart svg { width: 24px; height: 24px; }
    .fl-card:hover { background: #FAFCFF; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
}
@media (min-width: 1200px) {
    .fl-card { padding: 20px 24px; gap: 24px; }
    .fl-card-thumb { width: 250px; height: 175px; }
    .fl-card-title { font-size: 20px; }
    .fl-card-excerpt { -webkit-line-clamp: 5; }
}


/* =====================================================================
   IN-FEED AD SLOT
   ===================================================================== */
.fl-ad-card {
    display: flex; flex-direction: column; background: var(--fl-card-bg);
    border-bottom: 1px solid var(--fl-border); position: relative;
}
.fl-ad-card .fl-ad-thumb { width: 100%; height: 140px; overflow: hidden; }
.fl-ad-card .fl-ad-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fl-ad-card .fl-ad-body { padding: 10px 12px 44px; }
.fl-ad-card .fl-ad-title { font-size: 15px; font-weight: 700; color: var(--fl-link); margin-bottom: 4px; line-height: 1.3; }
.fl-ad-card .fl-ad-label { display: inline-block; background: var(--fl-ad-label-bg); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 3px; text-transform: uppercase; margin-right: 4px; vertical-align: middle; }
.fl-ad-card .fl-ad-text { font-size: 13px; color: var(--fl-text-light); line-height: 1.5; margin-bottom: 6px; }
.fl-ad-card .fl-ad-url { font-size: 13px; font-weight: 700; color: var(--fl-accent); }
.fl-ad-card .fl-ad-cta { position: absolute; bottom: 10px; right: 10px; border: 2px solid var(--fl-primary); color: var(--fl-primary); background: transparent; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 4px; cursor: pointer; min-height: 40px; transition: background 0.2s, color 0.2s; -webkit-tap-highlight-color: transparent; }
.fl-ad-card .fl-ad-cta:hover { background: var(--fl-primary); color: #fff; }
.fl-ad-card .fl-ad-dismiss { position: absolute; top: 4px; right: 4px; background: none; border: none; color: var(--fl-text-muted); cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 16px; opacity: 0.6; }
.fl-ad-card .fl-ad-dismiss:hover { opacity: 1; }

@media (min-width: 400px) {
    .fl-ad-card { flex-direction: row; padding: 10px; gap: 10px; }
    .fl-ad-card .fl-ad-thumb { width: 110px; height: 88px; border-radius: 4px; }
    .fl-ad-card .fl-ad-body { padding: 0 0 24px; }
}
@media (min-width: 600px) { .fl-ad-card { padding: 14px; gap: 14px; } .fl-ad-card .fl-ad-thumb { width: 160px; height: 120px; } .fl-ad-card .fl-ad-title { font-size: 18px; } }
@media (min-width: 960px) { .fl-ad-card { padding: 18px 20px; gap: 20px; } .fl-ad-card .fl-ad-thumb { width: 220px; height: 160px; border-radius: 6px; } }


/* =====================================================================
   PAGINATION
   ===================================================================== */
.fl-pagination { display: flex; justify-content: center; align-items: center; gap: 4px; padding: 20px 12px; flex-wrap: wrap; }
.fl-pagination a, .fl-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 4px 10px; border-radius: 4px; font-size: 13px; font-weight: 600; transition: background 0.2s, color 0.2s; }
.fl-pagination a { background: var(--fl-card-bg); color: var(--fl-text); border: 1px solid var(--fl-border); -webkit-tap-highlight-color: transparent; }
.fl-pagination a:hover { background: var(--fl-primary); color: #fff; border-color: var(--fl-primary); }
.fl-pagination .current { background: var(--fl-primary); color: #fff; border: 1px solid var(--fl-primary); }

@media (min-width: 480px) { .fl-pagination { gap: 6px; padding: 24px 16px; } .fl-pagination a, .fl-pagination span { font-size: 14px; } }
@media (min-width: 960px) { .fl-pagination { max-width: var(--fl-max-w); margin: 0 auto; padding: 28px 24px; } }


/* =====================================================================
   SINGLE POST LAYOUT (content + sidebar grid)
   ===================================================================== */
/* Mobile: single column, sidebar hidden */
.fl-single-layout {
    width: 100%;
    margin: 0 auto;
}
.fl-single-main { width: 100%; }
.fl-post-sidebar { display: none; }

/* Desktop: two-column grid */
@media (min-width: 960px) {
    .fl-single-layout {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 24px;
        max-width: 1160px;
        margin: 0 auto;
        padding: 0 24px;
        align-items: start;
    }
    .fl-post-sidebar {
        display: block;
        position: sticky;
        top: calc(var(--fl-header-h) + var(--fl-safe-top) + 16px);
        padding-top: 10px;
    }
}
@media (min-width: 1200px) {
    .fl-single-layout {
        grid-template-columns: 1fr 320px;
        gap: 28px;
        max-width: 1240px;
        padding: 0 32px;
    }
}

/* Sidebar widget styling */
.fl-sb-widget {
    background: var(--fl-card-bg);
    border: 1px solid var(--fl-border);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 18px;
}
.fl-sb-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--fl-text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--fl-primary);
}
.fl-sb-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.fl-sb-widget ul li {
    border-bottom: 1px solid var(--fl-border);
}
.fl-sb-widget ul li:last-child { border-bottom: none; }
.fl-sb-widget ul li a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: var(--fl-text-light);
    transition: color 0.15s;
}
.fl-sb-widget ul li a:hover { color: var(--fl-primary); }
.fl-sb-widget p { font-size: 14px; line-height: 1.6; color: var(--fl-text-light); }
.fl-sb-widget img { border-radius: 6px; margin-bottom: 8px; }

/* Search widget inside sidebar */
.fl-sb-widget .search-form { display: flex; gap: 0; }
.fl-sb-widget .search-field {
    flex: 1; border: 1px solid var(--fl-border); border-radius: 6px 0 0 6px;
    padding: 8px 12px; font-size: 14px; font-family: var(--fl-font);
    -webkit-appearance: none; appearance: none;
}
.fl-sb-widget .search-field:focus { border-color: var(--fl-primary); outline: none; }
.fl-sb-widget .search-submit {
    background: var(--fl-primary); color: #fff; border: none;
    border-radius: 0 6px 6px 0; padding: 8px 14px; font-size: 13px;
    font-weight: 600; cursor: pointer;
}


/* =====================================================================
   SINGLE POST
   ===================================================================== */
.fl-single { width: 100%; margin: 0 auto; background: var(--fl-card-bg); padding: 14px 12px; }
.fl-single-header { margin-bottom: 14px; }
.fl-single-title { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--fl-text); margin-bottom: 10px; overflow-wrap: break-word; }
.fl-single-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--fl-text-muted); padding-bottom: 12px; border-bottom: 1px solid var(--fl-border); }
.fl-single-meta a { color: var(--fl-primary); font-weight: 600; }

/* Featured image — injected inline in content after table, clickable lightbox */
.fl-feat-inline {
    margin: 1.2em 0;
    text-align: center;
}
.fl-feat-inline a {
    display: inline-block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    line-height: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.25s;
}
.fl-feat-inline a:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.18); }
.fl-feat-img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 260px;
    height: auto;
    border-radius: 8px;
}
.fl-feat-zoom {
    position: absolute;
    bottom: 8px; right: 8px;
    width: 32px; height: 32px;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.fl-feat-zoom svg { width: 16px; height: 16px; }
.fl-feat-inline a:hover .fl-feat-zoom { opacity: 1; }

/* Lightbox overlay */
.fl-lightbox {
    display: none;
    position: fixed; inset: 0;
    z-index: 9999;
    align-items: center; justify-content: center;
}
.fl-lightbox.active { display: flex; }
.fl-lightbox-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.88);
    cursor: pointer;
}
.fl-lightbox-body {
    position: relative;
    z-index: 1;
    max-width: 92vw;
    max-height: 90vh;
    display: flex; align-items: center; justify-content: center;
}
.fl-lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    width: auto; height: auto;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    object-fit: contain;
    animation: flFadeIn 0.2s ease;
}
.fl-lightbox-x {
    position: absolute;
    top: -16px; right: -16px;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.15);
    border: none; border-radius: 50%;
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.fl-lightbox-x:hover { background: rgba(255,255,255,0.3); }
.fl-lightbox-x svg { width: 20px; height: 20px; pointer-events: none; }
@keyframes flFadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.fl-single-content { font-size: 15px; line-height: 1.75; color: var(--fl-text); overflow-wrap: break-word; word-wrap: break-word; }
.fl-single-content p { margin-bottom: 1.1em; }
.fl-single-content h2 { font-size: 19px; margin: 1.4em 0 0.5em; font-weight: 700; }
.fl-single-content h3 { font-size: 17px; margin: 1.2em 0 0.4em; font-weight: 700; }
.fl-single-content h4 { font-size: 16px; margin: 1.1em 0 0.4em; font-weight: 600; }
.fl-single-content ul, .fl-single-content ol { margin: 0 0 1.1em 1.2em; }
.fl-single-content li { margin-bottom: 0.3em; }
.fl-single-content blockquote { border-left: 3px solid var(--fl-primary); padding: 10px 12px; margin: 1em 0; background: var(--fl-primary-light); font-style: italic; color: var(--fl-text-light); }
.fl-single-content img { border-radius: 4px; margin: 0.8em 0; }
.fl-single-content pre { background: #0E1F33; color: #ECEFF1; padding: 12px; border-radius: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 13px; line-height: 1.5; margin-bottom: 1.1em; }
.fl-single-content code { font-family: "SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace; font-size: 0.88em; }
.fl-single-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.1em; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fl-single-content th, .fl-single-content td { padding: 8px 10px; border: 1px solid var(--fl-border); text-align: left; font-size: 13px; white-space: nowrap; }
.fl-single-content th { background: var(--fl-primary-light); font-weight: 700; }

.fl-single-tags { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--fl-border); display: flex; flex-wrap: wrap; gap: 6px; }
.fl-single-tags a { display: inline-flex; align-items: center; background: var(--fl-bg); color: var(--fl-text-light); font-size: 12px; padding: 6px 12px; border-radius: 3px; min-height: 32px; transition: background 0.2s, color 0.2s; -webkit-tap-highlight-color: transparent; }
.fl-single-tags a:hover { background: var(--fl-primary); color: #fff; }

@media (min-width: 480px) {
    .fl-single { padding: 18px 16px; }
    .fl-single-title { font-size: 22px; }
    .fl-feat-img { max-height: 280px; }
    .fl-single-content { font-size: 16px; }
    .fl-single-content h2 { font-size: 20px; }
    .fl-single-content h3 { font-size: 18px; }
}
@media (min-width: 768px) {
    .fl-single { padding: 24px 20px; }
    .fl-single-title { font-size: 26px; margin-bottom: 12px; }
    .fl-single-meta { gap: 16px; font-size: 13px; }
    .fl-feat-img { max-height: 320px; }
    .fl-single-content { line-height: 1.8; }
    .fl-single-content h2 { font-size: 22px; }
    .fl-single-content h3 { font-size: 19px; }
    .fl-single-content blockquote { padding: 12px 20px; border-left-width: 4px; }
    .fl-single-content pre { padding: 16px; font-size: 14px; }
    .fl-single-content table { display: table; }
    .fl-single-content th, .fl-single-content td { white-space: normal; }
}
@media (min-width: 960px) {
    .fl-single { padding: 32px 40px; }
    .fl-single-title { font-size: 30px; line-height: 1.25; margin-bottom: 14px; }
    .fl-single-meta { font-size: 14px; gap: 18px; padding-bottom: 18px; }
    .fl-feat-img { max-height: 360px; max-width: 65%; }
    .fl-single-content { font-size: 17px; line-height: 1.85; }
    .fl-single-content h2 { font-size: 24px; margin: 1.6em 0 0.6em; }
    .fl-single-content h3 { font-size: 20px; margin: 1.4em 0 0.5em; }
    .fl-single-content blockquote { padding: 16px 24px; margin: 1.4em 0; border-radius: 0 6px 6px 0; }
    .fl-single-content pre { padding: 20px; font-size: 14px; border-radius: 6px; }
}
@media (min-width: 1200px) {
    .fl-single { padding: 36px 48px; }
    .fl-single-title { font-size: 32px; }
}


/* =====================================================================
   SHARE LINKS
   ===================================================================== */
.fl-share {
    width: 100%; margin: 0 auto;
    background: var(--fl-card-bg);
    padding: 16px 12px;
    border-top: 1px solid var(--fl-border);
}
.fl-share-label { font-size: 13px; font-weight: 700; color: var(--fl-text-light); display: block; margin-bottom: 10px; }
.fl-share-links { display: flex; gap: 8px; flex-wrap: wrap; }
.fl-share-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--fl-bg); color: var(--fl-text-light);
    transition: background 0.2s, color 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.fl-share-link:hover { background: var(--fl-primary); color: #fff; transform: scale(1.08); }
.fl-share-link svg { width: 20px; height: 20px; }
.fl-share-link.copied { background: var(--fl-accent); color: #fff; }

@media (min-width: 480px) { .fl-share { padding: 18px 16px; } .fl-share-label { display: inline; margin-right: 16px; margin-bottom: 0; } .fl-share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; } }
@media (min-width: 768px) { .fl-share { padding: 20px 20px; } }
@media (min-width: 960px) { .fl-share { padding: 20px 40px; } .fl-share-link { width: 42px; height: 42px; } }
@media (min-width: 1200px) { .fl-share { padding: 20px 48px; } }


/* =====================================================================
   AUTHOR BOX
   ===================================================================== */
.fl-author-box {
    width: 100%; margin: 0 auto;
    background: var(--fl-card-bg);
    padding: 16px 12px;
    border-top: 1px solid var(--fl-border);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.fl-author-img { flex-shrink: 0; }
.fl-author-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.fl-author-info { flex: 1; min-width: 0; }
.fl-author-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.fl-author-name a { color: var(--fl-text); }
.fl-author-name a:hover { color: var(--fl-primary); }
.fl-author-bio { font-size: 13px; color: var(--fl-text-light); line-height: 1.5; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fl-author-posts { font-size: 12px; color: var(--fl-text-muted); }

@media (min-width: 480px) { .fl-author-box { padding: 18px 16px; gap: 16px; } .fl-author-avatar { width: 64px; height: 64px; } .fl-author-name { font-size: 16px; } .fl-author-bio { font-size: 14px; -webkit-line-clamp: none; } }
@media (min-width: 768px) { .fl-author-box { padding: 20px; } .fl-author-avatar { width: 72px; height: 72px; } }
@media (min-width: 960px) { .fl-author-box { padding: 24px 40px; gap: 20px; } .fl-author-avatar { width: 80px; height: 80px; } .fl-author-name { font-size: 17px; } .fl-author-bio { font-size: 15px; line-height: 1.6; } }
@media (min-width: 1200px) { .fl-author-box { padding: 24px 48px; } }


/* =====================================================================
   PREV / NEXT POST NAVIGATION
   ===================================================================== */
.fl-post-nav {
    width: 100%; margin: 0 auto;
    background: var(--fl-card-bg);
    border-top: 1px solid var(--fl-border);
    display: grid;
    grid-template-columns: 1fr;
}
.fl-post-nav-link {
    display: block;
    padding: 14px 12px;
    transition: background 0.15s;
    border-bottom: 1px solid var(--fl-border);
    -webkit-tap-highlight-color: transparent;
}
.fl-post-nav-link:last-child { border-bottom: none; }
.fl-post-nav-link:hover { background: var(--fl-primary-light); }
.fl-post-nav-empty { display: none; }
.fl-post-nav-dir { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--fl-primary); margin-bottom: 4px; }
.fl-post-nav-title { display: block; font-size: 14px; font-weight: 600; color: var(--fl-text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fl-post-nav-next { text-align: right; }

@media (min-width: 600px) {
    .fl-post-nav { grid-template-columns: 1fr 1fr; }
    .fl-post-nav-link { border-bottom: none; }
    .fl-post-nav-link:first-child { border-right: 1px solid var(--fl-border); }
    .fl-post-nav-empty { display: block; }
}
@media (min-width: 768px) { .fl-post-nav-link { padding: 18px 20px; } .fl-post-nav-title { font-size: 15px; } }
@media (min-width: 960px) { .fl-post-nav-link { padding: 22px 40px; } .fl-post-nav-title { font-size: 16px; } }
@media (min-width: 1200px) { .fl-post-nav-link { padding: 24px 48px; } }


/* =====================================================================
   RELATED POSTS
   ===================================================================== */
.fl-related {
    width: 100%; margin: 0 auto;
    background: var(--fl-bg);
    padding: 20px 12px;
}
.fl-related-title { font-size: 18px; font-weight: 700; margin-bottom: 14px; color: var(--fl-text); }

.fl-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.fl-related-card {
    background: var(--fl-card-bg);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}
.fl-related-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); transform: translateY(-2px); }

.fl-related-thumb { display: block; width: 100%; height: 140px; overflow: hidden; }
.fl-related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.fl-related-card:hover .fl-related-thumb img { transform: scale(1.04); }
.fl-related-thumb .fl-no-thumb { width: 100%; height: 100%; background: linear-gradient(135deg, var(--fl-primary-light), #E8F5E9); display: flex; align-items: center; justify-content: center; color: var(--fl-primary); }
.fl-related-thumb .fl-no-thumb svg { width: 28px; height: 28px; }

.fl-related-body { padding: 12px; }
.fl-related-card-title { font-size: 14px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.fl-related-card-title a { color: var(--fl-text); }
.fl-related-card-title a:hover { color: var(--fl-primary); }
.fl-related-meta { font-size: 11px; color: var(--fl-text-muted); display: flex; gap: 6px; }

@media (min-width: 480px) {
    .fl-related { padding: 24px 16px; }
    .fl-related-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .fl-related-thumb { height: 140px; }
}
@media (min-width: 768px) {
    .fl-related { padding: 28px 20px; }
    .fl-related-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .fl-related-thumb { height: 160px; }
    .fl-related-card-title { font-size: 15px; }
    .fl-related-title { font-size: 20px; margin-bottom: 16px; }
}
@media (min-width: 960px) {
    .fl-related { max-width: var(--fl-max-w); padding: 32px 40px; }
    .fl-related-grid { gap: 22px; }
    .fl-related-thumb { height: 180px; }
    .fl-related-card-title { font-size: 16px; }
    .fl-related-body { padding: 14px 16px; }
    .fl-related-meta { font-size: 12px; }
}
@media (min-width: 1200px) {
    .fl-related { padding: 36px 48px; }
}


/* =====================================================================
   BACK TO TOP
   ===================================================================== */
.fl-back-top {
    position: fixed;
    bottom: 20px;
    right: 16px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--fl-primary);
    color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
    z-index: 900;
    -webkit-tap-highlight-color: transparent;
}
.fl-back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.fl-back-top:hover { background: var(--fl-primary-dark); }
.fl-back-top svg { width: 22px; height: 22px; pointer-events: none; }

@media (min-width: 960px) {
    .fl-back-top { bottom: 32px; right: 32px; width: 48px; height: 48px; }
    .fl-back-top svg { width: 24px; height: 24px; }
}
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .fl-back-top { bottom: calc(20px + env(safe-area-inset-bottom)); }
}


/* =====================================================================
   COMMENTS — Redesigned
   ===================================================================== */
.fl-comments {
    width: 100%; margin: 0 auto;
    background: var(--fl-card-bg);
    padding: 20px 12px;
    border-top: 3px solid var(--fl-primary);
}

/* Safety: constrain ALL SVGs inside comments */
.fl-comments svg,
.fl-comment-form-wrap svg {
    max-width: 24px;
    max-height: 24px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* ── Header ── */
.fl-comments-header { margin-bottom: 20px; }
.fl-comments-title {
    font-size: 18px; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
    color: var(--fl-text);
}
.fl-comments-icon {
    width: 22px; height: 22px;
    color: var(--fl-primary);
    flex-shrink: 0;
}
.fl-comments-count {
    color: var(--fl-primary);
}

/* ── Comment list ── */
.fl-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ── Individual comment ── */
.fl-comment {
    margin-bottom: 16px;
}
.fl-comment-body {
    background: var(--fl-bg);
    border-radius: 10px;
    padding: 14px;
    border: 1px solid var(--fl-border);
    transition: border-color 0.2s;
}
.fl-comment-body:hover { border-color: #bbb; }

/* Author's own comments get a left accent */
.fl-comment-author-post > .fl-comment-body {
    border-left: 3px solid var(--fl-primary);
    background: var(--fl-primary-light);
}

/* ── Comment head: avatar + meta ── */
.fl-comment-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.fl-comment-avatar { flex-shrink: 0; }
.fl-avatar-img {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--fl-border);
}
.fl-comment-meta { flex: 1; min-width: 0; }
.fl-comment-author-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    flex-wrap: wrap;
}
.fl-comment-author-name a { color: var(--fl-text); }
.fl-comment-author-name a:hover { color: var(--fl-primary); }

.fl-comment-badge {
    display: inline-flex; align-items: center;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    background: var(--fl-primary);
    color: #fff;
    padding: 2px 7px;
    border-radius: 3px;
    line-height: 1.4;
}
.fl-comment-date {
    display: block;
    font-size: 12px;
    color: var(--fl-text-muted);
    margin-top: 1px;
}

/* ── Comment pending moderation ── */
.fl-comment-pending {
    display: flex; align-items: center; gap: 6px;
    background: #FFF8E1;
    color: #8D6E00;
    border: 1px solid #FFE082;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
}
.fl-comment-pending svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Comment text ── */
.fl-comment-text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--fl-text);
    overflow-wrap: break-word;
}
.fl-comment-text p { margin-bottom: 0.6em; }
.fl-comment-text p:last-child { margin-bottom: 0; }

/* ── Comment actions ── */
.fl-comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--fl-border);
}
.fl-reply-link a,
.fl-edit-link a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fl-primary);
    padding: 6px 0;
    min-height: 36px;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s;
}
.fl-reply-link a:hover,
.fl-edit-link a:hover { color: var(--fl-primary-dark); }
.fl-reply-link svg,
.fl-edit-link svg { width: 14px; height: 14px; }

/* ── Threaded / nested replies ── */
.fl-comment .children {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 20px;
    border-left: 2px solid var(--fl-border);
    padding-left: 14px;
}

/* ── Comments closed notice ── */
.fl-comments-closed {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px;
    background: var(--fl-bg);
    border-radius: 8px;
    border: 1px solid var(--fl-border);
    color: var(--fl-text-muted);
    font-size: 14px;
    margin-top: 16px;
}
.fl-comments-closed svg { width: 20px; height: 20px; flex-shrink: 0; }
.fl-comments-closed p { margin: 0; }

/* ── Comments pagination nav ── */
.fl-comments-nav {
    margin: 16px 0;
    text-align: center;
}
.fl-comments-nav .nav-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.fl-comments-nav a {
    font-size: 13px;
    font-weight: 600;
    color: var(--fl-primary);
    padding: 8px 14px;
    border: 1px solid var(--fl-border);
    border-radius: 6px;
    transition: background 0.15s, border-color 0.15s;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}
.fl-comments-nav a:hover { background: var(--fl-primary-light); border-color: var(--fl-primary); }

/* ── Comment form wrapper ── */
.fl-comment-form-wrap {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--fl-border);
}
.fl-comment-form-wrap .comment-reply-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fl-text);
}
.fl-comment-form-wrap .comment-reply-title svg {
    width: 20px; height: 20px;
    color: var(--fl-primary);
}
.fl-comment-form-wrap .comment-reply-title small {
    font-size: 13px; font-weight: 400;
}
.fl-comment-form-wrap .comment-reply-title small a {
    color: var(--fl-primary);
    font-weight: 600;
    margin-left: 4px;
}

.fl-form-note {
    font-size: 12px;
    color: var(--fl-text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ── Form fields ── */
.fl-field {
    margin-bottom: 14px;
}
.fl-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--fl-text-light);
    margin-bottom: 5px;
}
.fl-field input[type="text"],
.fl-field input[type="email"],
.fl-field input[type="url"],
.fl-field textarea {
    width: 100%;
    border: 1px solid var(--fl-border);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 16px;
    font-family: var(--fl-font);
    background: var(--fl-bg);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.fl-field input:focus,
.fl-field textarea:focus {
    border-color: var(--fl-primary);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 98, 86, 0.1);
}
.fl-field textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.6;
}
.fl-field input::placeholder,
.fl-field textarea::placeholder {
    color: #aaa;
}

/* Two-column name/email row */
.fl-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

/* Cookies checkbox */
.fl-field-cookies { margin-bottom: 16px; }
.fl-field-cookies label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
    color: var(--fl-text-light);
    cursor: pointer;
    min-height: 36px;
}
.fl-field-cookies input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--fl-primary);
    cursor: pointer;
    flex-shrink: 0;
}

/* Submit area */
.fl-form-submit {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.fl-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--fl-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--fl-font);
    cursor: pointer;
    min-height: 48px;
    width: 100%;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}
.fl-submit-btn:hover { background: var(--fl-primary-dark); }
.fl-submit-btn:active { transform: scale(0.98); }
.fl-submit-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Logged-in note */
.fl-comment-form-wrap .logged-in-as {
    font-size: 13px;
    color: var(--fl-text-muted);
    margin-bottom: 12px;
}
.fl-comment-form-wrap .logged-in-as a { color: var(--fl-primary); font-weight: 600; }

/* ── Responsive ── */
@media (min-width: 480px) {
    .fl-comments { padding: 24px 16px; }
    .fl-comment-body { padding: 16px; }
    .fl-avatar-img { width: 44px; height: 44px; }
    .fl-form-row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .fl-submit-btn { width: auto; }
    .fl-comment .children { margin-left: 28px; padding-left: 16px; }
}

@media (min-width: 768px) {
    .fl-comments { padding: 28px 20px; }
    .fl-comments-title { font-size: 20px; }
    .fl-comment-body { padding: 18px; border-radius: 12px; }
    .fl-avatar-img { width: 48px; height: 48px; }
    .fl-comment-author-name { font-size: 15px; }
    .fl-comment-text { font-size: 15px; }
    .fl-comment .children { margin-left: 36px; padding-left: 18px; }
    .fl-field input[type="text"],
    .fl-field input[type="email"],
    .fl-field input[type="url"],
    .fl-field textarea { font-size: 14px; }
    .fl-field textarea { min-height: 130px; }
    .fl-comment-form-wrap .comment-reply-title { font-size: 20px; }
}

@media (min-width: 960px) {
    .fl-comments { max-width: var(--fl-max-w); padding: 32px 40px; }
    .fl-comment { margin-bottom: 18px; }
    .fl-comment-body { padding: 20px; }
    .fl-comment .children { margin-left: 44px; padding-left: 20px; }
    .fl-comment-actions { gap: 16px; }
    .fl-reply-link a, .fl-edit-link a { font-size: 13px; }
}

@media (min-width: 1200px) {
    .fl-comments { padding: 36px 48px; }
}


/* =====================================================================
   PAGE
   ===================================================================== */
.fl-page { width: 100%; margin: 10px auto 0; background: var(--fl-card-bg); padding: 14px 12px; }
.fl-page-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; overflow-wrap: break-word; }
.fl-page-content { font-size: 15px; line-height: 1.75; overflow-wrap: break-word; }
.fl-page-content p { margin-bottom: 1.1em; }

@media (min-width: 480px) { .fl-page { padding: 18px 16px; } .fl-page-title { font-size: 22px; } .fl-page-content { font-size: 16px; } }
@media (min-width: 768px) { .fl-page { padding: 24px 20px; } .fl-page-title { font-size: 26px; } .fl-page-content { line-height: 1.8; } }
@media (min-width: 960px) { .fl-page { max-width: var(--fl-max-w); padding: 32px 40px; } .fl-page-title { font-size: 30px; } .fl-page-content { font-size: 17px; } }
@media (min-width: 1200px) { .fl-page { padding: 36px 48px; } }


/* =====================================================================
   ARCHIVE HEADER
   ===================================================================== */
.fl-archive-header { width: 100%; margin: 10px auto 0; background: var(--fl-primary); color: #fff; padding: 14px 12px; }
.fl-archive-title { font-size: 18px; font-weight: 700; overflow-wrap: break-word; }
.fl-archive-desc { font-size: 13px; opacity: 0.85; margin-top: 4px; }

@media (min-width: 480px) { .fl-archive-header { padding: 16px; } .fl-archive-title { font-size: 20px; } }
@media (min-width: 768px) { .fl-archive-header { padding: 20px; } .fl-archive-title { font-size: 22px; } }
@media (min-width: 960px) { .fl-archive-header { max-width: var(--fl-max-w); padding: 24px 40px; } .fl-archive-title { font-size: 24px; } }


/* =====================================================================
   404
   ===================================================================== */
.fl-404 { width: 100%; margin: 10px auto 0; background: var(--fl-card-bg); padding: 40px 12px; text-align: center; }
.fl-404 h1 { font-size: 48px; color: var(--fl-primary); margin-bottom: 10px; }
.fl-404 p { font-size: 15px; color: var(--fl-text-light); margin-bottom: 16px; }
.fl-404 .fl-search-form { max-width: 340px; margin: 0 auto; background: var(--fl-bg); border: 1px solid var(--fl-border); }
.fl-404 .fl-search-form input[type="search"] { color: var(--fl-text); }
.fl-404 .fl-search-form input[type="search"]::placeholder { color: var(--fl-text-muted); }
.fl-404 .fl-search-form button[type="submit"] svg { fill: var(--fl-text-muted); }

@media (min-width: 480px) { .fl-404 { padding: 50px 16px; } .fl-404 h1 { font-size: 56px; } }
@media (min-width: 768px) { .fl-404 { padding: 60px 20px; } .fl-404 h1 { font-size: 64px; } }
@media (min-width: 960px) { .fl-404 { max-width: var(--fl-max-w); padding: 80px 40px; } .fl-404 h1 { font-size: 72px; } }


/* =====================================================================
   FOOTER
   ===================================================================== */
.fl-footer { background: #0E1F33; color: #B0BEC5; padding: 24px 12px; padding-bottom: calc(24px + var(--fl-safe-bottom)); text-align: center; font-size: 12px; }
.fl-footer a { color: var(--fl-primary); }
.fl-footer a:hover { color: var(--fl-primary-light); }
.fl-footer-nav { margin-bottom: 10px; }
.fl-footer-nav ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; }
.fl-footer-nav ul li a { color: #CFD8DC; font-size: 12px; display: inline-flex; align-items: center; min-height: 44px; -webkit-tap-highlight-color: transparent; }
.fl-footer-nav ul li a:hover { color: #fff; }

@media (min-width: 480px) { .fl-footer { padding: 28px 16px; font-size: 13px; } .fl-footer-nav ul li a { font-size: 13px; } }
@media (min-width: 768px) { .fl-footer { padding: 32px 20px; } }
@media (min-width: 960px) { .fl-footer { padding: 40px 24px; } }


/* =====================================================================
   NO RESULTS
   ===================================================================== */
.fl-no-results { width: 100%; margin: 0 auto; background: var(--fl-card-bg); padding: 32px 12px; text-align: center; }
.fl-no-results h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.fl-no-results p { color: var(--fl-text-light); margin-bottom: 14px; font-size: 14px; }

@media (min-width: 480px) { .fl-no-results { padding: 36px 16px; } }
@media (min-width: 960px) { .fl-no-results { max-width: var(--fl-max-w); padding: 48px 40px; } }


/* =====================================================================
   WP ALIGNMENT / BLOCKS
   ===================================================================== */
.alignleft { float: left; margin: 0 1em 1em 0; max-width: 50%; }
.alignright { float: right; margin: 0 0 1em 1em; max-width: 50%; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; margin-bottom: 1em; }
.wp-caption-text { font-size: 12px; color: var(--fl-text-muted); text-align: center; padding: 4px 0; }
.gallery { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 1em; }
.gallery-item { flex: 1 1 calc(50% - 4px); }
@media (min-width: 480px) { .gallery-item { flex: 1 1 calc(33.333% - 4px); } }
.wp-block-image { margin-bottom: 1em; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.wp-block-embed, iframe, embed, object, video { max-width: 100%; }
.wp-block-embed { margin-bottom: 1em; }

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .fl-nav-drawer { padding-bottom: env(safe-area-inset-bottom); }
}
