/* --------------------------------------------------------------------------
   Wealthtick — blog styles
   Loaded after main.css, on the blog listing and single-post pages.

   Plain CSS on purpose: main.css is compiled from the .less sources in this
   folder, so keeping these rules in a separate file means a LESS rebuild can't
   overwrite them. Brand tokens (--grey, --fs40, …) come from main.css.

   .bl-*  listing page   .bp-*  single post
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Blog listing
   -------------------------------------------------------------------------- */

.bl-hero { padding: 48px 0 0; }
.bl-hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; }
.bl-hero-visual {
  height: 180px; border-radius: 20px; border: 1px solid #EEF1F7;
  background: linear-gradient(135deg, #EEF5FF, #F5EFFF);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
  box-shadow: 0 20px 50px rgba(45, 66, 111, 0.08);
}
.bl-visual-stack { position: relative; width: 150px; height: 110px; }
.bl-visual-tile {
  position: absolute; width: 64px; height: 64px; border-radius: 16px; background: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 24px rgba(45, 66, 111, 0.12);
}
.bl-visual-tile.t1 { top: 0; left: 0; z-index: 3; }
.bl-visual-tile.t2 { top: 14px; left: 50px; z-index: 2; }
.bl-visual-tile.t3 { top: 30px; left: 100px; z-index: 1; }
.bl-visual-badge {
  position: absolute; bottom: 10px; right: 10px; background: #fff; border-radius: 999px;
  padding: 6px 12px; font-size: 11px; font-weight: 700; color: #3673F7;
  box-shadow: 0 8px 18px rgba(45, 66, 111, 0.1); display: flex; align-items: center; gap: 6px;
}
.bl-visual-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #1CC1A1; }

.bl-search {
  margin-top: 24px; display: flex; align-items: center; gap: 10px; max-width: 460px;
  background: #fff; border: 1px solid #E4E9F2; border-radius: 14px; padding: 13px 18px;
  box-shadow: 0 6px 18px rgba(45, 66, 111, 0.05);
}
.bl-search span { color: #8394BA; }
.bl-search input {
  border: none; outline: none; flex: 1; font-family: 'Onest', sans-serif; font-size: 15px;
  color: var(--grey); background: transparent;
}
/* Submit button is visually hidden — the form still submits on Enter, which keeps
   search working without JavaScript. */
.bl-search button {
  border: 0; background: none; padding: 0; margin: 0; width: 0; height: 0; overflow: hidden;
  position: absolute; opacity: 0;
}

.bl-chips { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }
.bl-chip {
  cursor: pointer; font-family: 'Onest', sans-serif; font-size: 14px; font-weight: 600; padding: 9px 18px;
  border-radius: 999px; border: 1px solid #E4E9F2; background: #fff; color: #5A6B91; transition: all .15s;
  text-decoration: none; display: inline-block;
}
.bl-chip:hover { border-color: #C9D6EE; color: var(--grey); }
.bl-chip.active { background: #3673F7; border-color: #3673F7; color: #fff; transform: scale(1.04); }
@keyframes blChipIn {
  from { opacity: 0; transform: translateY(10px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.bl-chip { animation: blChipIn 0.4s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--i, 0) * 0.05s); }

.bl-featured {
  margin-top: 28px; cursor: pointer; display: grid; grid-template-columns: 0.95fr 1.05fr;
  background: #fff; border: 1px solid #EEF1F7; border-radius: 24px; overflow: hidden;
  box-shadow: 0 14px 34px rgba(45, 66, 111, 0.07); text-decoration: none;
}
.bl-featured-img {
  position: relative; min-height: 260px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #10203f, #23467f 55%, #0b1730);
}
.bl-featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-featured-img span { font-family: monospace; font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.bl-featured-body { padding: 36px 38px; display: flex; flex-direction: column; justify-content: center; }
.bl-featured-chip {
  align-self: flex-start; background: #FFF4E6; color: #E08A1E; font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; padding: 5px 12px; border-radius: 6px;
}
.bl-featured-body h2 {
  margin-top: 16px; font-size: 28px; line-height: 1.22; font-weight: 600;
  color: var(--grey); letter-spacing: -0.01em;
}
.bl-featured-body p { margin-top: 12px; font-size: 15.5px; line-height: 1.6; color: #615D70; }
.bl-featured-meta { margin-top: 20px; display: flex; gap: 20px; font-size: 13px; color: #8394BA; flex-wrap: wrap; }

.bl-grid-heading-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 44px 0 20px; flex-wrap: wrap; gap: 12px;
}
.bl-grid-heading { font-size: 22px; font-weight: 600; color: var(--grey); margin: 0; }
.bl-view-toggle { display: flex; gap: 4px; background: #F1F4FA; border-radius: 10px; padding: 4px; }
.bl-view-btn {
  width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; background: transparent; color: #8394BA; transition: background .2s, color .2s;
}
.bl-view-btn.active { background: #fff; color: #3673F7; box-shadow: 0 4px 10px rgba(45, 66, 111, 0.1); }

.bl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; transition: opacity .2s ease; }
.bl-grid.list-mode { grid-template-columns: 1fr; gap: 14px; }
.bl-grid.list-mode .bl-card { flex-direction: row; }
.bl-grid.list-mode .bl-card-img { width: 200px; height: auto; flex-shrink: 0; }
.bl-grid.list-mode .bl-card-body { flex-direction: column; justify-content: center; }

.bl-card {
  cursor: pointer; text-decoration: none; background: #fff; border: 1px solid #EEF1F7; border-radius: 18px;
  overflow: hidden; box-shadow: 0 8px 22px rgba(45, 66, 111, 0.05); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.bl-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(45, 66, 111, 0.1); }
@keyframes blCardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.bl-card { animation: blCardIn 0.45s ease both; animation-delay: calc(var(--i, 0) * 0.06s); }
.bl-card-img { position: relative; height: 140px; display: flex; align-items: center; justify-content: center; text-align: center; }
.bl-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-card-img span { font-family: monospace; font-size: 10px; color: rgba(255, 255, 255, 0.7); padding: 0 12px; }
.bl-card-body { padding: 16px 17px 18px; flex: 1; display: flex; flex-direction: column; }
.bl-card-chip {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 5px;
}
.bl-card-body h4 { margin-top: 12px; font-size: 15px; font-weight: 600; line-height: 1.32; color: var(--grey); }
.bl-card-meta { margin-top: 12px; display: flex; gap: 14px; font-size: 11.5px; color: #8394BA; }
.bl-card-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px solid #F1F4FA;
  display: flex; align-items: center; justify-content: space-between;
}
.bl-card-foot span:first-child { font-size: 12px; color: #8394BA; }
.bl-card-foot span:last-child { font-size: 13px; font-weight: 600; color: #3673F7; }

.bl-empty { text-align: center; padding: 60px 20px; color: #8394BA; font-size: 15px; }

/* Pagination — not in the original static design (it had no pagination at all),
   styled to match the chip language. */
.bl-pagination { margin: 40px 0 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.bl-pagination .page-numbers {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid #E4E9F2;
  background: #fff; color: #5A6B91; font-size: 14px; font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; transition: all .15s;
}
.bl-pagination .page-numbers:hover { border-color: #C9D6EE; color: var(--grey); }
.bl-pagination .page-numbers.current { background: #3673F7; border-color: #3673F7; color: #fff; }
.bl-pagination .page-numbers.dots { border-color: transparent; background: transparent; }

@media (max-width: 991px) {
  .bl-hero-grid { grid-template-columns: 1fr; }
  .bl-hero-visual { margin-top: 8px; }
  .bl-grid { grid-template-columns: repeat(2, 1fr); }
  .bl-grid.list-mode { grid-template-columns: 1fr; }
  .bl-featured { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bl-grid { grid-template-columns: 1fr; }
  .bl-hero-visual { height: 140px; }
  .bl-visual-stack { transform: scale(0.85); }
  .bl-grid.list-mode .bl-card { flex-direction: column; }
  .bl-grid.list-mode .bl-card-img { width: 100%; height: 140px; }
  .bl-grid-heading-row { align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   Single post  (ported from blog-post.html)
   -------------------------------------------------------------------------- */

.bp-main { max-width: 1180px; margin: 0 auto; padding: 30px 32px 8px; }
.bp-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #8394BA; flex-wrap: wrap; }
.bp-breadcrumb a { cursor: pointer; color: #8394BA; text-decoration: none; }
.bp-breadcrumb a:hover { color: #3673F7; }
.bp-breadcrumb span.current { color: #5A6B91; }
.bp-chip {
  display: inline-block; margin-top: 18px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; padding: 5px 12px; border-radius: 6px;
}
.bp-title {
  margin-top: 16px; font-size: var(--fs40, 40px); line-height: 1.16; font-weight: 600;
  color: var(--grey); letter-spacing: -0.02em; max-width: 820px;
}
.bp-subtitle { margin-top: 16px; font-size: 18px; line-height: 1.55; color: #615D70; max-width: 760px; }
.bp-meta-row { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.bp-meta-left { display: flex; align-items: center; gap: 20px; font-size: 14px; color: #8394BA; flex-wrap: wrap; }
.bp-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #3673F7, #9C5BFF);
  color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.bp-share { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #8394BA; }
.bp-share-icon {
  width: 32px; height: 32px; border-radius: 50%; color: #fff; display: inline-flex;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 700; text-decoration: none;
}

.bp-hero-img { max-width: 1180px; margin: 22px auto 0; padding: 0 32px; }
.bp-hero-img-inner {
  position: relative; height: 380px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(135deg, #0a1730, #16335f 50%, #091226);
  display: flex; align-items: center; justify-content: center;
}
.bp-hero-img-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-hero-img-inner span { font-family: monospace; font-size: 12px; color: rgba(255, 255, 255, 0.55); }

.bp-body-grid {
  max-width: 1180px; margin: 36px auto 0; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start;
}

/* Post content — these rules target whatever the WordPress editor outputs, so the
   marketing team can use normal blocks (headings, lists, quotes, images) and still
   land on the design's typography. */
.bp-content > * { margin-bottom: 26px; }
.bp-content h2 {
  font-size: 24px; font-weight: 700; color: #1F2F4D; margin-top: 36px; margin-bottom: 12px;
  scroll-margin-top: 130px;
}
.bp-content h3 {
  font-size: 19px; font-weight: 700; color: #1F2F4D; margin-top: 28px; margin-bottom: 10px;
  scroll-margin-top: 130px;
}
.bp-content p { font-size: 16.5px; line-height: 1.75; color: #4F5A73; }
.bp-content a { color: #3673F7; text-decoration: underline; }
.bp-content ul, .bp-content ol { padding-left: 22px; }
.bp-content li { font-size: 16.5px; line-height: 1.75; color: #4F5A73; margin-bottom: 8px; }
.bp-content ul li { list-style: disc; }
.bp-content ol li { list-style: decimal; }
.bp-content img { max-width: 100%; height: auto; border-radius: 14px; }
.bp-content figure { margin-bottom: 26px; }
.bp-content figcaption { margin-top: 8px; font-size: 13px; color: #8394BA; text-align: center; }
.bp-content blockquote {
  border-left: 3px solid #3673F7; padding: 4px 0 4px 20px; margin-left: 0;
  color: #4F5A73; font-size: 17px; line-height: 1.7; font-style: italic;
}
.bp-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bp-content th, .bp-content td { border: 1px solid #EEF1F7; padding: 10px 12px; text-align: left; color: #4F5A73; }
.bp-content th { background: #F7F9FD; font-weight: 700; color: var(--grey); }

.bp-tags { margin-top: 34px; padding-top: 24px; border-top: 1px solid #EEF1F7; display: flex; gap: 10px; flex-wrap: wrap; }
.bp-tags a {
  font-size: 13px; font-weight: 500; color: #5A6B91; background: #F3F6FC; border: 1px solid #E9EEF7;
  padding: 7px 14px; border-radius: 999px; text-decoration: none;
  animation: blChipIn 0.4s cubic-bezier(.34, 1.56, .64, 1) both;
  animation-delay: calc(0.4s + var(--i, 0) * 0.06s);
}
.bp-tags a:hover { border-color: #C9D6EE; color: var(--grey); }

.bp-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.bp-toc {
  border: 1px solid #EEF1F7; border-radius: 18px; padding: 22px 24px; background: #fff;
  box-shadow: 0 8px 22px rgba(45, 66, 111, 0.05);
}
.bp-toc h4 { font-size: 16px; font-weight: 700; color: var(--grey); margin-bottom: 14px; }
.bp-toc-list { display: flex; flex-direction: column; gap: 11px; }
.bp-toc-list a { font-size: 14px; line-height: 1.4; color: #3673F7; cursor: pointer; text-decoration: none; }
.bp-toc-list a:hover { text-decoration: underline; }
.bp-cta-card { border-radius: 18px; padding: 24px; background: linear-gradient(160deg, #EEF5FF, #F3EFFE); border: 1px solid #E7ECFB; }
.bp-cta-card h4 { font-size: 18px; font-weight: 700; color: var(--grey); line-height: 1.3; }
.bp-cta-card p { margin-top: 8px; font-size: 13.5px; color: #615D70; line-height: 1.5; }
.bp-cta-card .button { margin-top: 16px; }

.bp-related { max-width: 1180px; margin: 56px auto 72px; padding: 0 32px; }
.bp-related h3 { font-size: 24px; font-weight: 600; color: var(--grey); margin-bottom: 20px; }
.bp-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bp-related-card {
  text-decoration: none; cursor: pointer; background: #fff; border: 1px solid #EEF1F7; border-radius: 18px;
  overflow: hidden; box-shadow: 0 8px 22px rgba(45, 66, 111, 0.05); transition: transform .2s, box-shadow .2s;
}
.bp-related-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(45, 66, 111, 0.1); }
@keyframes bpCardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.bp-related-card { animation: bpCardIn 0.45s ease both; animation-delay: calc(var(--i, 0) * 0.08s); }
.bp-related-img { position: relative; height: 150px; display: flex; align-items: center; justify-content: center; }
.bp-related-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-related-img span { font-family: monospace; font-size: 10px; color: rgba(255, 255, 255, 0.7); }
.bp-related-body { padding: 16px 18px 18px; }
.bp-related-body h4 { font-size: 16px; font-weight: 600; line-height: 1.32; color: var(--grey); }
.bp-related-meta { margin-top: 12px; font-size: 12px; color: #8394BA; }

@media (max-width: 991px) {
  .bp-body-grid { grid-template-columns: 1fr; }
  .bp-aside { position: static; }
  .bp-related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bp-main, .bp-hero-img, .bp-body-grid, .bp-related { padding-left: 20px; padding-right: 20px; }
  .bp-hero-img-inner { height: 220px; }
}
