/* ═══════════════════════════════════════════════════════════════
   CATEGORY PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

.cat-hero { position: relative; min-height: 300px; display: flex; align-items: flex-end; overflow: hidden; background: var(--navy-dark); }
.cat-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cat-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,15,30,.92) 0%, rgba(10,15,30,.4) 100%); }
.cat-hero-body { position: relative; padding: 52px 0 48px; }
.cat-hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.cat-hero-title { font-family: var(--font-serif); font-size: 44px; color: #fff; line-height: 1.1; margin-bottom: 14px; }
.cat-hero-desc  { font-size: 16px; color: #A8B8D4; line-height: 1.65; max-width: 560px; margin-bottom: 24px; }
.cat-hero-stats { display: flex; gap: 28px; }
.cat-stat       { display: flex; flex-direction: column; gap: 2px; }
.cat-stat-num   { font-size: 24px; font-weight: 800; color: #fff; line-height: 1; }
.cat-stat-label { font-size: 12px; color: #8AA0C0; font-weight: 500; }

.filter-bar { background: #fff; border-bottom: 1px solid var(--border-light); padding: 14px 0; position: sticky; top: 68px; z-index: 50; }
.filter-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.filter-left  { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-label { font-size: 12.5px; font-weight: 600; color: var(--text-mid); white-space: nowrap; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill  { font-size: 12.5px; font-weight: 500; color: var(--text-mid); background: var(--bg-warm); border: 1.5px solid var(--border); border-radius: 20px; padding: 5px 14px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.filter-pill:hover, .filter-pill.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.result-count { font-size: 13px; color: var(--text-light); }
.result-count strong { color: var(--text); }

.cat-body   { padding: 40px 0 64px; background: var(--bg-warm); }
.cat-layout { display: grid; grid-template-columns: 1fr 240px; gap: 32px; align-items: start; }
.post-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.cat-sidebar { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-box { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 20px; }
.sidebar-box-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-light); margin-bottom: 14px; }
.sidebar-cats { display: flex; flex-direction: column; gap: 2px; }
.sidebar-cat-link { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--text-mid); padding: 8px 10px;
  border-radius: var(--radius); transition: all .15s; }
.sidebar-count { font-size: 11.5px; font-weight: 600; color: var(--text-light);
  background: var(--bg-light); padding: 2px 8px; border-radius: 10px; flex-shrink: 0; }
.sidebar-count:empty { display: none; }
.sidebar-cat-link.active .sidebar-count { background: var(--accent); color: #fff; }
.sidebar-cat-link:hover  { color: var(--navy); background: var(--bg-warm); }
.sidebar-cat-link.active { color: var(--accent); background: #FDF0E8; font-weight: 600; }
