body { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f0f2f5; color: #1a1a2e; }

/* ── Navbar ── */
.navbar { padding: .85rem 0; border-bottom: 1px solid #e5e7eb; background: #fff; }
.nav-brand { font-weight: 800; font-size: 1.4rem; color: #005397 !important; letter-spacing: -.02em; }
.nav-link { font-size: .92rem; font-weight: 500; color: #374151; padding: .4rem .9rem !important; }
.nav-link:hover { color: #005397; }

/* ── Hero ── */
.hero-bg { background: #1a4f8a; padding: 3.5rem 0 5rem; }
.hero-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.hero-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.18; color: #fff; }

/* ── Filter card ── */
.filter-card-wrap { margin-top: -3rem; margin-bottom: 1.5rem; position: relative; z-index: 10; }
.filter-card { background: #fff; border-radius: 1rem; box-shadow: 0 8px 32px rgba(0,0,0,.1); padding: 1.75rem 2rem; }
.filter-card .form-label { font-size: .8rem; font-weight: 600; color: #6b7280; margin-bottom: .4rem; }
.filter-card .form-control,
.filter-card .form-select { border-radius: .6rem; border-color: #e5e7eb; font-size: .92rem; padding: .65rem 1rem; }
.filter-card .form-control:focus,
.filter-card .form-select:focus { border-color: #005397; box-shadow: 0 0 0 3px rgba(0,83,151,.1); }
.search-icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }

/* ── Topics card ── */
.topics-card { background: #fff; border-radius: 1rem; box-shadow: 0 4px 20px rgba(0,0,0,.06); padding: 1.5rem 2rem 1.75rem; margin-bottom: 2rem; }
.topics-heading { font-size: 1.05rem; font-weight: 700; color: #111827; }
.topics-subtext { font-size: .82rem; color: #6b7280; }
.topic-filter-input { border-radius: .6rem; border-color: #e5e7eb; font-size: .82rem; padding: .45rem .85rem .45rem 2.2rem; width: 200px; }
.topic-filter-input:focus { border-color: #005397; box-shadow: 0 0 0 3px rgba(0,83,151,.1); outline: none; }
.topic-filter-wrap { position: relative; }
.topic-filter-icon { position: absolute; left: .65rem; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }

/* Category quick-filter pills */
.cat-pill { font-size: .82rem; font-weight: 600; border-radius: 999px; padding: .35rem 1rem; border: 1.5px solid #e5e7eb; color: #374151; background: #fff; cursor: pointer; transition: all .15s; }
.cat-pill:hover { border-color: #005397; color: #005397; }
.cat-pill.active { background: #005397; color: #fff; border-color: #005397; }

/* Tag pills with count */
.tag-pill { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 600; border-radius: 999px; padding: .38rem 1rem; border: 1.5px solid #e5e7eb; color: #374151; background: #fff; cursor: pointer; transition: all .15s; white-space: nowrap; }
.tag-pill:hover { border-color: #005397; color: #005397; }
.tag-pill.active { border-color: #005397; color: #005397; background: rgba(0,83,151,.06); }
.tag-pill.trending { border-color: #005397; }
.tag-count { font-size: .75rem; font-weight: 500; color: #9ca3af; }
.tag-pill.active .tag-count,
.tag-pill:hover .tag-count { color: #005397; }
.tag-trending-icon { font-size: .7rem; color: #005397; }
.tags-wrap { display: flex; flex-wrap: wrap; gap: .5rem; }
.show-all-link { font-size: .85rem; font-weight: 600; color: #005397; text-decoration: none; cursor: pointer; }
.show-all-link:hover { text-decoration: underline; }
.trending-note { font-size: .78rem; color: #9ca3af; }

/* ── Posts section ── */
.section-posts { padding: 0 0 4rem; }
.posts-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; flex-wrap: wrap; gap: .75rem; }
.posts-title { font-size: 1.35rem; font-weight: 800; color: #111827; margin-bottom: .1rem; }
.posts-count { font-size: .82rem; color: #6b7280; }
.sort-group .btn { font-size: .82rem; font-weight: 500; }
.sort-group .btn.active { background: #005397; color: #fff; border-color: #005397; }

/* ── Post card ── */
.post-card { border: none; border-radius: .875rem; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; background: #fff; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.post-img { height: 185px; background: linear-gradient(135deg, #1a4f8a, #3292d2); border-radius: .875rem .875rem 0 0; background-size: cover; background-position: center; }
.post-category { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #005397; }
.post-title { font-size: .92rem; font-weight: 700; line-height: 1.4; color: #111827; }
.post-excerpt { font-size: .8rem; color: #6b7280; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { font-size: .73rem; color: #9ca3af; }
.read-more { font-size: .8rem; font-weight: 600; color: #005397; text-decoration: none; }
.read-more:hover { text-decoration: underline; }

/* ── Footer ── */
.site-footer { background: #0a1628; color: #cbd5e1; padding: 4rem 0 2rem; }
.footer-brand { font-size: 1.3rem; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.footer-tagline { font-size: .85rem; color: #64748b; max-width: 300px; line-height: 1.6; }
.footer-heading { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #475569; margin-bottom: 1rem; }
.footer-link { display: block; font-size: .85rem; color: #94a3b8; text-decoration: none; margin-bottom: .5rem; }
.footer-link:hover { color: #fff; }
.footer-divider { border-color: #1e293b; margin: 2rem 0 1.5rem; }
.footer-bottom { font-size: .78rem; color: #475569; }
.footer-bottom a { color: #475569; text-decoration: none; }
.footer-bottom a:hover { color: #94a3b8; }

@media (max-width: 767px) {
    .filter-card { padding: 1.25rem; }
    .filter-card-wrap { margin-top: -2rem; }
    .topics-card { padding: 1.25rem; }
    .topic-filter-input { width: 100%; }
}
