/* ===================================================================
   FundOra — Blog listing + article pages
   Depends on tokens and .post-card from style.css
   =================================================================== */

.blog-head {
    position: relative;
    overflow: hidden;
    padding: calc(var(--header-h) + 34px) 0 30px;
    text-align: center;
    background:
        radial-gradient(80% 60% at 50% 0%, rgba(0,168,107,.13) 0%, transparent 65%),
        linear-gradient(180deg, #f2fbf6 0%, var(--surface) 100%);
}
.blog-head h1 { margin-bottom: 10px; }
.blog-head h1 em { font-style: normal; color: var(--fo-600); }
.blog-head p { color: var(--muted); max-width: 520px; margin: 0 auto; font-size: 15px; }

.blog-search { max-width: 520px; margin: 22px auto 0; }
.blog-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 4px 16px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--r-pill);
    box-shadow: var(--sh-sm);
    transition: border-color .18s, box-shadow .18s;
}
.blog-search-box:focus-within { border-color: var(--fo-400); box-shadow: 0 0 0 4px rgba(0,168,107,.1); }
.blog-search-box svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--faint); }
.blog-search-box input {
    flex: 1;
    min-width: 0;
    padding: 11px 0;
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--ink);
}
.blog-search-box .btn { flex-shrink: 0; }

.blog-cats {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px var(--gutter) 2px;
    margin: 22px calc(var(--gutter) * -1) 0;
    scrollbar-width: none;
}
.blog-cats::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .blog-cats { flex-wrap: wrap; justify-content: center; overflow: visible; } }

.blog-chip {
    flex-shrink: 0;
    padding: 8px 15px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-pill);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    white-space: nowrap;
    transition: all .16s;
}
.blog-chip:hover { border-color: var(--fo-300); color: var(--fo-600); }
.blog-chip.is-active { background: var(--fo-500); border-color: var(--fo-500); color: #fff; }
.blog-chip span { opacity: .6; font-weight: 500; }
.blog-chip.is-active span { opacity: .75; }

.blog-list { background: var(--surface); padding: clamp(28px, 5vw, 48px) 0 clamp(48px, 8vw, 80px); }

.blog-empty {
    padding: clamp(44px, 9vw, 76px) 24px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.blog-empty div { font-size: 38px; margin-bottom: 12px; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 34px; }
.pager a, .pager span {
    min-width: 40px;
    padding: 9px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-soft);
    text-align: center;
}
.pager a:hover { border-color: var(--fo-400); color: var(--fo-600); }
.pager .is-active { background: var(--fo-500); border-color: var(--fo-500); color: #fff; }
.pager .gap { border: none; background: none; color: var(--faint); padding-inline: 4px; min-width: 0; }

/* ── Article ───────────────────────────────────────────────────── */
.article { background: var(--surface); padding: calc(var(--header-h) + 26px) 0 clamp(48px, 8vw, 80px); }
.article-inner { max-width: 780px; margin: 0 auto; padding-inline: var(--gutter); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--faint); margin-bottom: 16px; }
.crumbs a { color: var(--fo-600); font-weight: 600; }

.article-title { margin-bottom: 14px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 12.5px; color: var(--muted); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 14px; height: 14px; fill: var(--faint); }

.article-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--r-lg);
    margin: 22px 0;
    box-shadow: var(--sh-md);
}

.article-body {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(20px, 4vw, 38px);
    box-shadow: var(--sh-xs);
}

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.share b { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.share a {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink-soft);
    transition: background .18s, color .18s, transform .18s;
}
.share a:hover { background: var(--fo-500); border-color: var(--fo-500); color: #fff; transform: translateY(-2px); }
.share svg { width: 17px; height: 17px; fill: currentColor; }

.article-cta {
    position: relative;
    overflow: hidden;
    margin-top: 30px;
    padding: clamp(24px, 5vw, 34px);
    border-radius: var(--r-lg);
    text-align: center;
    color: #fff;
    background: radial-gradient(120% 130% at 15% 0%, #0e7a52 0%, var(--fo-700) 50%, var(--fo-900) 100%);
}
.article-cta h3 { color: #fff; margin-bottom: 8px; }
.article-cta p { color: rgba(255,255,255,.75); font-size: 14px; margin: 0 auto 18px; max-width: 420px; }

.related { margin-top: 40px; }
.related h3 { font-size: 18px; margin-bottom: 16px; }
