/* ═══════════════════════════════════════════════════════════════
   CompliChef — Blog list + article pages
   Loaded after home.css. bl- prefix.
═══════════════════════════════════════════════════════════════ */

/* ── List header ─────────────────────────────────────────────── */
.bl-hero { padding-bottom: clamp(24px, 3vw, 40px); }
.bl-hero .hx-hero-copy { text-align: center !important; margin: 0 auto !important; }
.bl-search { position: relative; display: flex; max-width: 560px; margin: 0 auto; }
.bl-search svg { position: absolute; left: 18px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: #8093ad; pointer-events: none; }
.bl-search input { flex: 1; min-width: 0; padding: 15px 120px 15px 48px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #f4f8fc; font: inherit; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.bl-search input::placeholder { color: #8093ad; }
.bl-search input:focus { border-color: #34d399; box-shadow: 0 0 0 4px rgba(16,185,129,.15); }
.bl-search button { position: absolute; right: 6px; top: 6px; bottom: 6px; padding: 0 20px; border-radius: 999px; border: 0; font: inherit; font-size: 14.5px; font-weight: 600; color: #03170f; background: linear-gradient(180deg, #34d399, #10b981); cursor: pointer; }
.bl-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.bl-cats a { padding: 8px 15px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #cbd5e1; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); transition: all .18s; }
.bl-cats a:hover { color: #fff; border-color: rgba(255,255,255,.25); }
.bl-cats a.on { color: #ecfdf5; background: rgba(16,185,129,.16); border-color: rgba(110,231,183,.5); }
.bl-note { text-align: center; font-size: 15px; color: #9fb3cc; margin-bottom: 28px; }
.bl-note strong { color: #f4f8fc; }
.bl-note a { color: #6ee7b7; font-weight: 600; }
.bl-empty { text-align: center; padding: 48px 0; color: #9fb3cc; font-size: 16px; }
.bl-empty .cc-btn { margin-top: 18px; }

/* ── Cards ───────────────────────────────────────────────────── */
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: #8093ad; margin-bottom: 12px; }
.bl-cat { font-weight: 600; color: #6ee7b7; }
.bl-featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border-radius: 26px; overflow: hidden; margin-bottom: 22px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); border: 1px solid rgba(255,255,255,.08); transition: border-color .2s; }
.bl-featured:hover { border-color: rgba(110,231,183,.4); }
.bl-featured-img { background: #0b1322; min-height: 320px; }
.bl-featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-featured-body { padding: clamp(26px, 3.5vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.bl-latest { align-self: flex-start; font-size: 12px; font-weight: 600; color: #03170f; background: linear-gradient(180deg, #6ee7b7, #34d399); padding: 4px 11px; border-radius: 999px; margin-bottom: 16px; }
.bl-featured h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; letter-spacing: -.025em; line-height: 1.15; color: #f4f8fc; margin-bottom: 12px; }
.bl-featured p { font-size: 16px; line-height: 1.7; color: #9fb3cc; margin-bottom: 20px; }
.bl-more { margin-top: auto; }
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bl-card { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); border: 1px solid rgba(255,255,255,.08); transition: border-color .2s, transform .2s; }
.bl-card:hover { border-color: rgba(110,231,183,.4); transform: translateY(-3px); }
.bl-card-img { aspect-ratio: 16/9; background: #0b1322; overflow: hidden; }
.bl-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.bl-card:hover .bl-card-img img, .bl-featured:hover img { transform: scale(1.03); }
.bl-featured-img img { transition: transform .4s; }
.bl-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.bl-card h2 { font-size: 18.5px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: #f4f8fc; margin-bottom: 8px; }
.bl-card p { font-size: 14.5px; line-height: 1.6; color: #9fb3cc; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07); font-size: 13px; color: #8093ad; }
.bl-card-foot .kp-link, .bl-more { display: inline-flex; align-items: center; gap: 6px; color: #6ee7b7; font-weight: 600; font-size: 14px; }
.bl-pages { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 48px; }
.bl-pages a { min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center; border-radius: 999px; font-size: 15px; font-weight: 600; color: #cbd5e1; border: 1px solid rgba(255,255,255,.1); }
.bl-pages a:hover { color: #fff; border-color: rgba(255,255,255,.25); }
.bl-pages a.on { color: #ecfdf5; background: rgba(16,185,129,.16); border-color: rgba(110,231,183,.5); }

/* ── Article ─────────────────────────────────────────────────── */
.bl-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; background: linear-gradient(90deg, #34d399, #2dd4bf); transform: scaleX(0); transform-origin: left; }
.bl-post-hero { padding-bottom: clamp(32px, 4vw, 56px); }
.bl-post-head { max-width: 780px; margin: 0 auto; text-align: center; }
.bl-post-hero .hx-h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; margin-bottom: 18px; }
.bl-post-hero .hx-hero-sub { margin: 0 auto 26px; max-width: 680px; }
.bl-crumbs { display: flex; justify-content: center; gap: 8px; font-size: 14px; color: #8093ad; margin-bottom: 20px; }
.bl-crumbs a { color: #6ee7b7; font-weight: 500; }
.bl-byline { display: inline-flex; align-items: center; gap: 12px; text-align: left; }
.bl-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: #ecfdf5; background: linear-gradient(180deg, rgba(52,211,153,.4), rgba(16,185,129,.15)); border: 1px solid rgba(110,231,183,.4); }
.bl-byline b { display: block; font-size: 15px; font-weight: 600; color: #f4f8fc; }
.bl-byline small { font-size: 13.5px; color: #8093ad; }
.bl-post-img { max-width: 1040px; margin: clamp(32px, 4vw, 52px) auto 0; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 90px -30px rgba(0,0,0,.7); }
.bl-post-img img { width: 100%; max-height: 520px; object-fit: cover; display: block; }

.bl-article { max-width: 720px; margin: 0 auto; padding: clamp(16px, 3vw, 32px) 20px clamp(56px, 7vw, 88px); font-size: 18px; line-height: 1.8; color: #b8c7d9; }
.bl-article > * + * { margin-top: 1.1em; }
.bl-article h2 { font-size: clamp(24px, 2.8vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: #f4f8fc; margin-top: 2em; scroll-margin-top: calc(var(--nav-h) + 20px); }
.bl-article h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; color: #f4f8fc; margin-top: 1.6em; scroll-margin-top: calc(var(--nav-h) + 20px); }
.bl-article h4 { font-size: 18px; font-weight: 600; color: #f4f8fc; margin-top: 1.4em; }
.bl-article h1 { font-size: 30px; font-weight: 600; color: #f4f8fc; margin-top: 1.6em; }
.bl-article strong { color: #f4f8fc; font-weight: 600; }
.bl-article a { color: #6ee7b7; text-decoration: underline; text-decoration-color: rgba(110,231,183,.4); text-underline-offset: 3px; }
.bl-article a:hover { text-decoration-color: #6ee7b7; }
.bl-article ul, .bl-article ol { padding-left: 1.3em; }
.bl-article ul { list-style: disc; }
.bl-article ol { list-style: decimal; }
.bl-article li { margin-top: .45em; padding-left: .2em; }
.bl-article li::marker { color: #34d399; }
.bl-article blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 3px solid #34d399; border-radius: 0 14px 14px 0; background: rgba(16,185,129,.06); color: #d7e3ef; font-size: 18.5px; }
.bl-article blockquote p { margin: 0; }
.bl-article hr { border: 0; height: 1px; background: rgba(255,255,255,.1); margin: 2.2em 0; }
.bl-article img { max-width: 100%; height: auto; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); margin: 1.6em auto; }
.bl-article code { font-size: .88em; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.06); color: #e2e8f0; }
.bl-article pre { padding: 18px 20px; border-radius: 14px; background: #0b1322; border: 1px solid rgba(255,255,255,.08); overflow-x: auto; }
.bl-article pre code { padding: 0; background: none; }
.cc-table-wrap { overflow-x: auto; margin: 1.6em 0; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); }
.bl-article table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; }
.bl-article th { text-align: left; padding: 13px 16px; font-weight: 600; color: #f4f8fc; background: rgba(16,185,129,.1); border-bottom: 1px solid rgba(110,231,183,.25); }
.bl-article td { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.06); vertical-align: top; }
.bl-article tbody tr:nth-child(even) td { background: rgba(255,255,255,.02); }

.bl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2.4em !important; }
.bl-tags a { padding: 6px 13px; border-radius: 999px; font-size: 13.5px; text-decoration: none !important; color: #cbd5e1 !important; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.bl-tags a:hover { border-color: rgba(110,231,183,.45); }
.bl-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 2.6em !important; padding: 24px 26px; border-radius: 22px; background: radial-gradient(100% 140% at 0% 0%, rgba(16,185,129,.14), transparent 60%), rgba(255,255,255,.03); border: 1px solid rgba(110,231,183,.35); }
.bl-cta b { display: block; font-size: 18px; font-weight: 600; color: #f4f8fc; margin-bottom: 4px; }
.bl-cta span { font-size: 15px; line-height: 1.55; color: #9fb3cc; }
.bl-cta .cc-btn { flex-shrink: 0; text-decoration: none; color: #03170f !important; }
.bl-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 2.4em !important; }
.bl-prevnext a { display: block; padding: 18px 20px; border-radius: 18px; text-decoration: none !important; font-size: 15px; font-weight: 600; line-height: 1.4; color: #f4f8fc !important; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); transition: border-color .2s; }
.bl-prevnext a:hover { border-color: rgba(110,231,183,.4); }
.bl-prevnext a.next { text-align: right; }
.bl-prevnext small { display: block; font-size: 12.5px; font-weight: 500; color: #6ee7b7; margin-bottom: 4px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) { .bl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .bl-featured { grid-template-columns: 1fr; }
  .bl-featured-img { min-height: 0; aspect-ratio: 16/9; }
}
@media (max-width: 640px) {
  .bl-grid { grid-template-columns: 1fr; }
  .bl-cats { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 24px -20px 0; padding: 0 20px 6px; scrollbar-width: none; }
  .bl-cats::-webkit-scrollbar { display: none; }
  .bl-cats a { flex-shrink: 0; }
  .bl-search input { padding-right: 100px; }
  .bl-article { font-size: 17px; }
  .bl-cta { flex-direction: column; align-items: stretch; }
  .bl-cta .cc-btn { justify-content: center; }
  .bl-prevnext { grid-template-columns: 1fr; }
  .bl-prevnext a.next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .bl-progress { display: none; } }
