/* Wealth Streamz - Blog (listing + articles)
   Theme: deep teal #00414f / #0f2b2e, gold #fac54b, soft #f6f8f8, font Poppins */
.blog-hero, .blog-list, .blog-cta, .blog-post { font-family: Poppins, sans-serif; color: #0f2b2e; }
.blog-hero [hidden], .blog-list [hidden], .blog-card[hidden] { display: none !important; }

/* ---------- Hero ---------- */
.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 24px 84px;
  background:
    radial-gradient(900px 420px at 95% 105%, rgba(0, 65, 79, 0.95), transparent 62%),
    linear-gradient(100deg, #ffffff 0%, #fbfefe 28%, #d9f4ef 52%, #7fd0d0 74%, #1d7f8c 100%);
}
.blog-hero-inner { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; }
.blog-eyebrow {
  display: inline-block;
  background: #0f2b2e;
  color: #fac54b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
}
.blog-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f2b2e;
  max-width: 18ch;
}
.blog-hero p { margin: 0; max-width: 46ch; font-size: 15px; line-height: 1.75; color: #34494d; }
.blog-hero-lines { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.blog-hero-lines i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(15, 43, 46, 0.1); }
.blog-hero-lines i:nth-child(1) { left: 20%; }
.blog-hero-lines i:nth-child(2) { left: 40%; }
.blog-hero-lines i:nth-child(3) { left: 60%; }
.blog-hero-lines i:nth-child(4) { left: 80%; }
.blog-dot { position: absolute; z-index: 1; width: 9px; height: 9px; border-radius: 50%; background: #fac54b; }
.blog-dot.d1 { left: 18%; top: 30%; background: #00414f; }
.blog-dot.d2 { left: 47%; top: 16%; }
.blog-dot.d3 { left: 4%; top: 78%; }
.blog-dot.d4 { right: 14%; top: 68%; background: #0f2b2e; width: 12px; height: 12px; }
.blog-diamond { position: absolute; z-index: 1; right: 6%; top: 20%; width: 14px; height: 14px; background: #fac54b; transform: rotate(25deg); border-radius: 2px; }

/* ---------- Filters + grid ---------- */
.blog-list { background: #fff; padding: 36px 24px 90px; }
.blog-list-inner { max-width: 1120px; margin: 0 auto; }
.blog-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.blog-pill {
  appearance: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 500;
  padding: 11px 22px; border-radius: 999px;
  background: #eef2f2; color: #0f2b2e;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.blog-pill:hover { background: #fde9b3; transform: translateY(-1px); }
.blog-pill.is-active { background: #00414f; color: #fff; }
.blog-pill:focus-visible { outline: 3px solid #fac54b; outline-offset: 2px; }
.blog-empty { text-align: center; color: #5a6a6e; font-size: 14px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card { position: relative; padding-bottom: 6px; }
.blog-card-media { display: block; border-radius: 14px; overflow: hidden; text-decoration: none; }
.blog-card-media .blog-cover { height: 214px; padding-bottom: 76px; }
.blog-card-body {
  position: relative;
  margin: -64px 16px 0;
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px 22px;
  box-shadow: 0 10px 30px rgba(15, 43, 46, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover .blog-card-body { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(15, 43, 46, 0.18); }
.blog-card-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: #4a5c60; margin-bottom: 10px; }
.blog-card-meta i { color: #00414f; margin-right: 6px; }
.blog-card-title { margin: 0 0 10px; font-size: 16.5px; line-height: 1.35; font-weight: 600; }
.blog-card-title a { color: #0f2b2e; text-decoration: none; }
.blog-card-title a:hover { color: #00414f; }
.blog-card-title, .blog-card-excerpt {
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-title { -webkit-line-clamp: 2; line-clamp: 2; }
.blog-card-excerpt { -webkit-line-clamp: 3; line-clamp: 3; margin: 0 0 16px; font-size: 12.5px; line-height: 1.7; color: #5a6a6e; }
.blog-card-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #0f2b2e; text-decoration: none; }
.blog-card-link i { transition: transform 0.18s ease; color: #d9932c; }
.blog-card-link:hover i { transform: translateX(5px); }

/* ---------- Cover art (replaces photos) ---------- */
.blog-cover {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 200px;
  padding: 22px 22px 24px;
  color: #fff;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(250, 197, 75, 0.22), transparent 60%),
    radial-gradient(360px 240px at 0% 100%, rgba(29, 127, 140, 0.55), transparent 65%),
    linear-gradient(135deg, #0f2b2e 0%, #00414f 100%);
  overflow: hidden;
}
.blog-cover::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 50%;
}
.blog-cover-brand { position: absolute; left: 22px; top: 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.blog-cover-brand b { color: #fac54b; font-weight: 700; }
.blog-cover-cat {
  position: absolute; right: 18px; top: 16px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #fff;
}
.blog-cover-title { position: relative; z-index: 1; margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; max-width: 92%; }
.blog-cover-title mark { background: #fac54b; color: #00323d; padding: 1px 6px; border-radius: 3px; }

/* ---------- CTA band ---------- */
.blog-cta { background: #f6f8f8; padding: 64px 24px; }
.blog-cta-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.blog-cta h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
.blog-cta p { margin: 0; color: #5a6a6e; font-size: 14.5px; }

/* ---------- Article ---------- */
.blog-post { background: #fff; padding: 40px 24px 20px; }
.blog-post-inner { max-width: 780px; margin: 0 auto; }
.blog-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #00414f; text-decoration: none; margin-bottom: 18px; }
.blog-back:hover { color: #d9932c; }
.blog-post-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: #4a5c60; margin-bottom: 22px; }
.blog-post-meta i { color: #00414f; margin-right: 7px; }
.blog-post-cover .blog-cover { min-height: 280px; border-radius: 16px; padding: 30px; }
.blog-post-cover .blog-cover-title { font-size: clamp(20px, 3vw, 28px); }
.blog-post-body { padding: 34px 0 10px; font-size: 16px; line-height: 1.85; color: #34494d; }
.blog-post-body .blog-lead { font-size: 18px; color: #0f2b2e; font-weight: 500; }
.blog-post-body h2 { margin: 34px 0 10px; font-size: 24px; line-height: 1.3; font-weight: 700; color: #0f2b2e; }
.blog-post-body p { margin: 0 0 16px; }
.blog-post-body ul { margin: 0 0 18px; padding-left: 22px; }
.blog-post-body li { margin-bottom: 8px; }
.blog-post-body li::marker { color: #d9932c; }
.blog-post-cta { margin: 26px 0 10px; padding: 30px; border-radius: 16px; background: linear-gradient(135deg, #0f2b2e, #00414f); color: #fff; }
.blog-post-cta h3 { margin: 0 0 6px; font-size: 21px; font-weight: 700; }
.blog-post-cta p { margin: 0 0 18px; color: rgba(255, 255, 255, 0.8); font-size: 14.5px; }
.blog-related { background: #f6f8f8; padding-top: 64px; margin-top: 50px; }
.blog-related-title { margin: 0 0 36px; text-align: center; font-size: clamp(22px, 3vw, 30px); font-weight: 700; }

@media (max-width: 620px) {
  .blog-hero { padding: 124px 20px 64px; }
  .blog-list { padding: 28px 20px 64px; }
  .blog-post { padding: 28px 20px 10px; }
  .blog-hero-lines i:nth-child(odd) { display: none; }
}

/* ---------- Article page (3-column: contents | article | quick links) ---------- */
.bp-head, .bp-cover, .bp-layout { font-family: Poppins, sans-serif; color: #0f2b2e; }
.bp-head { background: #fff; text-align: center; padding: 150px 24px 0; }
.bp-head h1 { max-width: 880px; margin: 0 auto; font-size: clamp(28px, 4vw, 46px); line-height: 1.2; font-weight: 700; color: #0f2b2e; }
.bp-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 22px 0 0; font-size: 13px; font-weight: 500; color: #00414f; }
.bp-meta i { margin-right: 7px; color: #d9932c; }
.bp-cover { background: #fff; padding: 44px 24px 10px; }
.bp-cover .blog-cover { max-width: 810px; min-height: 340px; margin: 0 auto; border-radius: 18px; padding: 34px; }
.bp-cover .blog-cover-title { font-size: clamp(20px, 3.2vw, 32px); max-width: 80%; }
.bp-cover .blog-cover-brand { left: 34px; top: 28px; font-size: 16px; }
.bp-cover .blog-cover-cat { right: 30px; top: 26px; }

.bp-layout { background: #fff; display: grid; grid-template-columns: 216px minmax(0, 1fr) 190px; gap: 48px; max-width: 1340px; margin: 0 auto; padding: 44px 30px 20px; align-items: start; }
.bp-toc, .bp-quick { position: sticky; top: 130px; background: #f1f5f6; border: 1px solid #d7e0e2; border-radius: 22px; }
.bp-toc-head { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 18px 20px; background: none; border: none; border-bottom: 1px solid #c4d1d4; cursor: pointer; font-family: inherit; font-size: 18px; font-weight: 600; color: #00414f; }
.bp-toc-head i { color: #0f2b2e; font-size: 14px; transition: transform 0.2s ease; }
.bp-toc.is-collapsed .bp-toc-head { border-bottom-color: transparent; }
.bp-toc.is-collapsed .bp-toc-head i { transform: rotate(180deg); }
.bp-toc.is-collapsed .bp-toc-list { display: none; }
.bp-toc-list { display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 20px; max-height: calc(100vh - 260px); overflow-y: auto; }
.bp-toc-list a { font-size: 12.5px; line-height: 1.6; color: #4a5c60; text-decoration: none; }
.bp-toc-list a:hover { color: #00414f; }
.bp-toc-list a.is-active { color: #d9932c; font-weight: 600; }
.bp-quick { padding: 22px 22px 14px; }
.bp-quick h4 { margin: 0 0 14px; font-size: 18px; font-weight: 700; color: #0f2b2e; }
.bp-quick a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid #dde5e7; font-size: 13px; font-weight: 500; color: #0f2b2e; text-decoration: none; }
.bp-quick a i { color: #8a9a9e; font-size: 12px; }
.bp-quick a:hover { color: #d9932c; }

.bp-body { font-size: 15px; line-height: 1.9; color: #4a5c60; min-width: 0; }
.bp-body p { margin: 0 0 20px; }
.bp-body h2 { margin: 40px 0 16px; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; font-weight: 500; color: #0f2b2e; scroll-margin-top: 140px; }
.bp-body ul { margin: 0 0 22px; padding-left: 22px; list-style: disc; }
.bp-body li { margin-bottom: 8px; }
.bp-body li::marker { color: #d9932c; }
.blog-table-wrap { overflow-x: auto; margin: 0 0 18px; }
.blog-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.6; }
.blog-table th, .blog-table td { border: 1px solid #dfe6e8; padding: 12px 14px; text-align: left; vertical-align: top; }
.blog-table th { font-weight: 600; color: #0f2b2e; background: #fff; }
.blog-table tbody tr:nth-child(odd) td { background: #eef2f3; }
.blog-table tbody tr:nth-child(even) td { background: #fff; }

@media (max-width: 1180px) {
  .bp-layout { grid-template-columns: 1fr; gap: 28px; max-width: 820px; }
  .bp-toc, .bp-quick { position: static; }
  .bp-quick { order: 3; }
  .bp-toc-list { max-height: none; }
}
@media (max-width: 620px) {
  .bp-head { padding: 124px 20px 0; }
  .bp-cover { padding: 30px 20px 0; }
  .bp-cover .blog-cover { min-height: 260px; padding: 24px; }
  .bp-layout { padding: 28px 20px 10px; }
}
