/* ==========================================================================
   blog-article.css — Shared styles for blog article pages (bp-* namespace)
   Used by: blog-custom-mlm-software.html, blog-saas-mlm-software.html,
            blog-enterprise-mlm-software.html, blog-mlm-software-pricing.html,
            blog-mlm-software-demo.html, blog-white-label-mlm-software.html,
            blog-mlm-commission-engine.html, blog-mlm-genealogy-tree-software.html,
            blog-mlm-ewallet-system.html, blog-mlm-payment-gateway-integration.html
   ========================================================================== */

body { font-family: 'Inter', sans-serif; color: #1e293b; background: #f8fafc; margin: 0; }

/* ── Hero ── */
.bp-hero { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 60%, #a855f7 100%); color: #fff; padding: 5rem 2rem 4rem; position: relative; overflow: hidden; }
.bp-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.bp-hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.bp-breadcrumb { font-size: 0.78rem; opacity: 0.8; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.bp-breadcrumb a { color: rgba(255,255,255,0.9); text-decoration: none; }
.bp-breadcrumb a:hover { text-decoration: underline; }
.bp-category-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(255,255,255,0.2); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 0.35rem 1rem; font-size: 0.78rem; font-weight: 600; margin-bottom: 1.25rem; }
.bp-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.bp-hero-meta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; font-size: 0.8rem; opacity: 0.85; margin-bottom: 1.5rem; }
.bp-hero-meta span { display: flex; align-items: center; gap: 0.4rem; }
.bp-hero-excerpt { font-size: 1rem; line-height: 1.7; opacity: 0.92; max-width: 780px; }

/* ── Body & Article ── */
.bp-body { max-width: 900px; margin: 0 auto; padding: 3rem 1.5rem; }
.bp-article { background: #fff; border-radius: 16px; padding: 2.5rem; box-shadow: 0 4px 24px rgba(0,0,0,0.06); margin-bottom: 2rem; }
.bp-article h2 { font-size: 1.5rem; font-weight: 800; color: #1e3a8a; margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 3px solid #e0e7ff; font-family: 'Plus Jakarta Sans', sans-serif; }
.bp-article h2:first-of-type { margin-top: 0; }
.bp-article h3 { font-size: 1.15rem; font-weight: 700; color: #374151; margin: 1.75rem 0 0.75rem; }
.bp-article h4 { font-size: 1rem; font-weight: 700; color: #4f46e5; margin: 1.25rem 0 0.5rem; }
.bp-article p { font-size: 0.925rem; line-height: 1.85; color: #374151; margin-bottom: 1rem; }
.bp-article ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.bp-article li { font-size: 0.9rem; line-height: 1.8; color: #374151; margin-bottom: 0.3rem; }
.bp-article strong { color: #1e293b; }
.bp-article a { color: #4f46e5; }

/* ── Highlight / Stat / Checklist boxes ── */
.highlight-box { background: linear-gradient(135deg, #f0f4ff, #faf5ff); border: 1px solid #c7d2fe; border-radius: 12px; padding: 1.5rem; margin: 1.5rem 0; }
.highlight-box h4 { color: #4338ca; margin-top: 0; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.stat-card { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border-radius: 12px; padding: 1.25rem; text-align: center; }
.stat-card .sv { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-card .sl { font-size: 0.72rem; opacity: 0.85; margin-top: 0.25rem; }
.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid #f1f5f9; }
.checklist li:last-child { border-bottom: none; }
.checklist .ci { color: #4f46e5; font-size: 0.9rem; margin-top: 3px; flex-shrink: 0; }

/* ── Comparison table ── */
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin: 1.5rem 0; }
.comparison-table th { background: #4f46e5; color: #fff; padding: 0.75rem 1rem; text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; }
.comparison-table td { padding: 0.7rem 1rem; border-bottom: 1px solid #e2e8f0; }
.comparison-table tr:nth-child(even) td { background: #f8fafc; }
.comparison-table .win { color: #16a34a; font-weight: 700; }
.comparison-table .lose { color: #dc2626; }

/* ── FAQ section ── */
.faq-section { margin-top: 2rem; }
.faq-item { border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 0.75rem; overflow: hidden; }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; background: #f8fafc; cursor: pointer; font-weight: 600; font-size: 0.9rem; color: #1e3a8a; }
.faq-q:hover { background: #f0f4ff; }
.faq-a { padding: 1rem 1.25rem; font-size: 0.875rem; line-height: 1.7; color: #374151; display: none; }
.faq-a.open { display: block; }

/* ── CTA box ── */
.cta-box { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border-radius: 16px; padding: 2rem; text-align: center; margin: 2rem 0; }
.cta-box h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.5rem; }
.cta-box p { opacity: 0.9; font-size: 0.9rem; margin-bottom: 1.5rem; }
.cta-btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.75rem; border-radius: 8px; font-weight: 700; font-size: 0.875rem; text-decoration: none; transition: opacity 0.2s; }
.cta-btn-white { background: #fff; color: #4f46e5; }
.cta-btn-wa { background: #25d366; color: #fff; }

/* ── Tags / Author / Related ── */
.tag-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.5rem 0; }
.tag { background: #ede9fe; color: #4f46e5; padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.author-box { display: flex; align-items: center; gap: 1.25rem; background: #f8fafc; border-radius: 12px; padding: 1.25rem; border: 1px solid #e2e8f0; margin-top: 2rem; }
.author-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #8b5cf6); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; flex-shrink: 0; }
.author-info strong { display: block; font-size: 0.9rem; color: #1e293b; }
.author-info span { font-size: 0.8rem; color: #64748b; }
.related-posts { background: #fff; border-radius: 16px; padding: 2rem; margin-bottom: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.related-posts h3 { font-size: 1.1rem; font-weight: 700; color: #1e3a8a; margin-bottom: 1.25rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.related-card { border: 1px solid #e2e8f0; border-radius: 10px; padding: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
.related-card:hover { border-color: #4f46e5; box-shadow: 0 4px 12px rgba(79,70,229,0.1); }
.related-card a { text-decoration: none; color: #1e3a8a; font-weight: 600; font-size: 0.85rem; display: block; margin-bottom: 0.25rem; }
.related-card p { font-size: 0.78rem; color: #64748b; margin: 0; }

/* ── Table of Contents ── */
.toc { background: #f0f4ff; border: 1px solid #c7d2fe; border-radius: 12px; padding: 1.5rem; margin-bottom: 2rem; }
.toc h4 { color: #4338ca; font-size: 0.9rem; margin: 0 0 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.toc ol { padding-left: 1.25rem; margin: 0; }
.toc li { font-size: 0.83rem; margin-bottom: 0.4rem; }
.toc a { color: #4f46e5; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ── Payment Gateway page extras ── */
.gateway-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 28px 0; }
.gateway-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 20px; text-align: center; }
.gateway-card .gw-region { font-size: 0.75rem; font-weight: 700; color: #6d28d9; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.gateway-card ul { list-style: none; padding: 0; margin: 0; }
.gateway-card ul li { font-size: 0.87rem; color: #374151; padding: 5px 0; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; gap: 7px; }
.gateway-card ul li:last-child { border-bottom: none; }
.gateway-card ul li i { color: #7c3aed; flex-shrink: 0; }
.integration-table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 0.9rem; }
.integration-table th { background: #4c1d95; color: #fff; padding: 12px 14px; text-align: left; font-weight: 600; }
.integration-table td { padding: 11px 14px; border-bottom: 1px solid #e2e8f0; color: #374151; }
.integration-table tr:nth-child(even) td { background: #f5f3ff; }

/* ── Responsive ── */
@media (max-width: 768px) { .gateway-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gateway-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .bp-article { padding: 1.5rem; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
