/* FF Intelligence Pro — Blog Widget v2.2.0
   Palette: cream #f7f3eb | dark green #25451f | amber #c8952a | border #e0dcd4
   ──────────────────────────────────────────────────────────────────────────── */

.ffip-blog-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    color: #1e1e1e;
}

/* ── Search bar ─────────────────────────────────────────────────────────── */

.ffib-topbar {
    margin-bottom: 20px;
}

.ffib-search-bar {
    display: flex;
    max-width: 520px;
}

.ffib-search-bar input {
    flex: 1;
    padding: 11px 16px;
    border: 1.5px solid #c8952a;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    outline: none;
    color: #1e1e1e;
    transition: border-color 0.15s;
}

.ffib-search-bar input:focus {
    border-color: #25451f;
}

.ffib-search-bar input::placeholder {
    color: #aaa;
}

.ffib-search-bar button {
    background: #25451f;
    color: #fff;
    border: none;
    padding: 11px 16px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.15s;
}

.ffib-search-bar button:hover {
    background: #3a6b30;
}

/* ── Category chips ─────────────────────────────────────────────────────── */

.ffib-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    min-height: 34px;
}

.ffib-cat {
    background: #fff;
    border: 1px solid #c5c0b5;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    cursor: pointer;
    color: #444;
    font-family: inherit;
    transition: all 0.15s;
    white-space: nowrap;
}

.ffib-cat:hover {
    border-color: #25451f;
    color: #25451f;
    background: #eef7e7;
}

.ffib-cat-active {
    background: #25451f !important;
    color: #fff !important;
    border-color: #25451f !important;
}

/* ── Category badge ─────────────────────────────────────────────────────── */

.ffib-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #25451f;
    margin-right: 8px;
}

/* ── Featured post ──────────────────────────────────────────────────────── */

.ffib-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border: 1px solid #e0dcd4;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    margin-bottom: 32px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.ffib-featured:hover {
    box-shadow: 0 6px 24px rgba(37,69,31,0.13);
    transform: translateY(-2px);
}

.ffib-feat-img {
    background: #ddd8cd;
    background-size: cover;
    background-position: center;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ffib-feat-placeholder {
    font-size: 52px;
    opacity: 0.25;
}

.ffib-feat-body {
    padding: 36px 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.ffib-feat-cats {
    margin-bottom: 10px;
}

.ffib-feat-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #1e1e1e;
    margin: 0 0 14px;
    font-family: Georgia, 'Times New Roman', serif;
}

.ffib-feat-excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 18px;
}

.ffib-feat-date {
    font-size: 12px;
    color: #aaa;
    letter-spacing: 0.03em;
}

/* ── Series block ───────────────────────────────────────────────────────── */

.ffib-series {
    background: #faf8f2;
    border: 1px solid #e0dcd4;
    border-left: 4px solid #c8952a;
    border-radius: 6px;
    padding: 18px 24px 14px;
    margin-bottom: 32px;
}

.ffib-series-hd {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ffib-series-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #c8952a;
}

.ffib-series-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e1e1e;
    font-family: Georgia, serif;
}

.ffib-series-parts {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ffib-series-part {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    padding: 9px 10px;
    border-radius: 5px;
    transition: background 0.14s;
}

.ffib-series-part:hover {
    background: #eef7e7;
}

.ffib-series-num {
    font-size: 11px;
    font-weight: 700;
    color: #25451f;
    letter-spacing: 0.04em;
    min-width: 46px;
    flex-shrink: 0;
}

.ffib-series-ptitle {
    font-size: 14px;
    color: #333;
    flex: 1;
    line-height: 1.4;
}

.ffib-series-arrow {
    color: #bbb;
    flex-shrink: 0;
    margin-left: auto;
}

.ffib-series-part:hover .ffib-series-arrow {
    color: #25451f;
}

/* ── Card grid ──────────────────────────────────────────────────────────── */

.ffib-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.ffib-card {
    background: #fff;
    border: 1px solid #e0dcd4;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}

.ffib-card:hover {
    border-color: #25451f;
    box-shadow: 0 4px 16px rgba(37,69,31,0.10);
    transform: translateY(-2px);
}

.ffib-card-img {
    height: 164px;
    background: #ddd8cd;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.ffib-card-body {
    padding: 16px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ffib-card-cat {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #25451f;
    margin-bottom: 7px;
}

.ffib-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e1e1e;
    line-height: 1.35;
    margin: 0 0 9px;
    font-family: Georgia, 'Times New Roman', serif;
}

.ffib-card-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 14px;
    flex: 1;
}

.ffib-card-date {
    font-size: 11px;
    color: #bbb;
    letter-spacing: 0.03em;
}

/* ── Status ─────────────────────────────────────────────────────────────── */

.ffib-status {
    font-size: 13px;
    color: #999;
    min-height: 20px;
    margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
    .ffib-featured {
        grid-template-columns: 1fr;
    }
    .ffib-feat-img {
        min-height: 200px;
    }
    .ffib-feat-body {
        padding: 24px 20px 20px;
    }
    .ffib-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Pagination ─────────────────────────────────────────────────────────── */

.ffib-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 32px 0 8px;
}

.ffib-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1.5px solid #e0dcd4;
    border-radius: 8px;
    background: #fff;
    color: #25451f;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.ffib-page-btn:hover:not(:disabled) {
    background: #f7f3eb;
    border-color: #25451f;
}

.ffib-page-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.ffib-page-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #25451f;
    min-width: 110px;
    text-align: center;
}
