/* ═══════════════════════════════════════════════════════
   BLOG ARTICLE PAGE — Reference-Style Layout
   Two-column: sticky sidebar (TOC) + main content
   ═══════════════════════════════════════════════════════ */

/* ── Hero ── */
.bp-hero { padding: 90px 0 40px; }
.bp-back { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 500; color: var(--text); text-decoration: none; margin-bottom: 24px; transition: color .2s; }
.bp-back:hover { color: #3b82f6; }
.bp-meta { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: .88rem; margin-bottom: 20px; align-items: center; }
.bp-meta span { display: inline-flex; align-items: center; gap: 6px; }
.bp-meta span svg { flex-shrink: 0; opacity: .65; }
.bp-hero h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 800; line-height: 1.18; max-width: 900px; margin: 0 0 24px; color: var(--text); }
.bp-share-hero { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; border-radius: 999px; border: 1.5px solid var(--border, #d1d5db); background: transparent; font-size: .88rem; font-weight: 500; color: var(--text); cursor: pointer; font-family: inherit; transition: all .2s; margin-bottom: 8px; }
.bp-share-hero svg { flex-shrink: 0; opacity: .7; }
.bp-share-hero:hover { border-color: #3b82f6; color: #3b82f6; }
.bp-cover { width: 100%; max-width: 100%; border-radius: 4px; margin: 3px 0 0; display: block; }
.bp-cat { padding: 4px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(59,130,246,.12); color: #3b82f6; }

/* ── Two-Column Layout ── */
.bp-layout { display: flex; gap: 52px; max-width: 1160px; margin: 0 auto; padding: 0 24px 80px; }

/* ── Sidebar ── */
.bp-sidebar { width: 270px; flex-shrink: 0; }
.bp-sidebar-inner { position: sticky; top: 100px; }

/* Read time badge */
.bp-read-time { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.bp-read-time svg { width: 28px; height: 28px; stroke: var(--text); fill: none; stroke-width: 1.5; }
.bp-read-time span { font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text); }

/* Progress bar under read time */
.bp-progress-bar { height: 4px; background: var(--border, #e5e7eb); border-radius: 2px; margin-bottom: 36px; overflow: hidden; }
.bp-progress-fill { height: 100%; width: 0%; background: #1a6fb5; border-radius: 2px; transition: width .15s linear; }

/* TOC */
.bp-toc-title { font-size: 1.15rem; font-weight: 800; margin: 0 0 14px; color: var(--text); }
.bp-toc { display: flex; flex-direction: column; }
.bp-toc a { display: block; padding: 7px 0; font-size: .86rem; color: var(--muted); text-decoration: none; line-height: 1.45; transition: color .2s, font-weight .2s; }
.bp-toc a:hover,
.bp-toc a.active { color: var(--text); font-weight: 700; }

/* Social share icons */
.bp-social-share { display: flex; gap: 14px; margin-top: 36px; }
.bp-share-btn { width: 32px; height: 32px; border-radius: 0px; border: 0.5px solid var(--muted, #777); display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--muted, #555); transition: all .2s; }
.bp-share-btn svg { width: 18px; height: 18px; fill: currentColor; }
.bp-share-btn:hover { background: #1a6fb5; color: #fff; border-color: #1a6fb5; }

/* ── Main Content Column ── */
.bp-main { flex: 1; min-width: 0; max-width: 800px; }

/* Article body */
.bp-content h2 { font-size: 1.55rem; font-weight: 800; margin: 44px 0 16px; color: var(--text); scroll-margin-top: 100px; }
.bp-content h3 { font-size: 1.2rem; font-weight: 700; margin: 32px 0 12px; color: var(--text); }
.bp-content p { color: var(--muted); font-size: 1.05rem; line-height: 1.85; margin-bottom: 18px; }
.bp-content ul,
.bp-content ol { color: var(--muted); font-size: 1.05rem; line-height: 1.85; margin: 0 0 18px 24px; }
.bp-content li { margin-bottom: 8px; }
.bp-content blockquote { border-left: 4px solid #3b82f6; padding: 16px 24px; margin: 24px 0; background: rgba(59,130,246,.05); border-radius: 0 12px 12px 0; font-style: italic; color: var(--muted); }
.bp-content a { color: #3b82f6; font-weight: 600; text-decoration: none; }
.bp-content a:hover { text-decoration: underline; }
.bp-content img { width: 100%; border-radius: 10px; margin: 24px 0; }
.bp-content strong { color: var(--text); }

/* ── FAQ Accordion ── */
.bp-faq { margin-top: 64px; padding-top: 8px; }
.bp-faq-heading { font-size: 2rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.bp-faq-item { border-top: 1px solid var(--border, #e5e7eb); }
.bp-faq-item:last-child { border-bottom: 1px solid var(--border, #e5e7eb); }
.bp-faq-q {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 22px 0; background: none; border: none; font-size: 1.05rem; font-weight: 600;
  text-align: left; cursor: pointer; color: var(--text); font-family: inherit; gap: 16px;
}
.bp-faq-q:hover { color: #1a6fb5; }
.bp-faq-arrow { flex-shrink: 0; transition: transform .3s; }
.bp-faq-arrow svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.bp-faq-item.open .bp-faq-arrow { transform: rotate(180deg); }
.bp-faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.bp-faq-item.open .bp-faq-a { max-height: 600px; }
.bp-faq-a p { padding: 0 0 22px; color: var(--muted); font-size: 1rem; line-height: 1.75; }

/* ── "You may also like" — Related Posts ── */
.bp-related { padding: 80px 24px; max-width: 1160px; margin: 0 auto; }
.bp-related-heading { font-size: 1.8rem; font-weight: 800; margin-bottom: 36px; color: var(--text); }
.bp-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.bp-rel-card { text-decoration: none; color: inherit; display: block; transition: transform .2s; }
.bp-rel-card:hover { transform: translateY(-4px); }
.bp-rel-card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 5px; margin-bottom: 14px; display: block; }
.bp-rel-meta { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .03em; }
.bp-rel-meta .bp-rel-read { display: flex; align-items: center; gap: 5px; }
.bp-rel-meta .bp-rel-read svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.bp-rel-card h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.35; margin-bottom: 10px; color: var(--text); }
.bp-rel-card p { font-size: .92rem; color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .bp-layout { flex-direction: column; gap: 0; }
  .bp-sidebar { width: 100%; margin-bottom: 40px; }
  .bp-sidebar-inner { position: static; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
  .bp-read-time { margin-bottom: 0; }
  .bp-progress-bar { display: none; }
  .bp-toc { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
  .bp-social-share { margin-top: 0; align-self: center; }
  .bp-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .bp-related-grid { grid-template-columns: 1fr; }
  .bp-sidebar-inner { flex-direction: column; gap: 12px; }
  .bp-toc { flex-direction: column; }
}
.bp-content h2 { scroll-margin-top: 100px; }
.bp-content h3 { scroll-margin-top: 100px; }

.srv-wrap { padding: 2rem; border: 1px solid var(--border, #e5e7eb); border-radius: 5px; margin: 2rem 0; }
.srv-heading { font-size: 1.1rem; font-weight: 800; color: var(--text); margin: 0 0 1.2rem; }
.srv-heading span { color: #3b82f6; }
.srv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.srv-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--surface, var(--bg, #ffffff)); border: 1px solid var(--border, #e5e7eb); border-radius: 5px; text-decoration: none; transition: border-color .2s; }
.srv-card:hover { border-color: #3b82f6; }
.srv-name { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.4; }
.srv-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
@media(max-width: 540px) { .srv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.srv-cta { position: relative; padding: 1.8rem 2rem; border-radius: 5px; margin: 2rem 0 0.8rem; background: #eef4fb; border: 1px solid #c5d9ee; overflow: hidden; }
.srv-cta-icon { position: absolute; right: 1.8rem; top: 50%; transform: translateY(-50%); width: 70px; height: 70px; opacity: .15; }
.srv-cta-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #1a6fb5; background: #dbeafe; padding: 3px 10px; border-radius: 4px; margin-bottom: 10px; }
.srv-cta-title { font-size: 1.2rem; font-weight: 800; color: #0f172a; margin: 0 0 4px; line-height: 1.3; }
.srv-cta-title span { color: #1a6fb5; }
.srv-cta-sub { font-size: 13px; color: #4b6580; margin: 0 0 1.2rem; }
.srv-cta-btn { display: inline-block; padding: 10px 22px; background: #1a6fb5; color: #fff; border-radius: 6px; font-size: 13px; font-weight: 700; text-decoration: none; transition: background .2s; }
.srv-cta-btn:hover { background: #1558a0; color: #fff; }