/* VB Blog / Research Article Template */

/* ---------- BB Theme Override ---------- */
/* Hide BB theme's header, footer, post header, sidebar — our template provides all of these */
body.vb-blog-active .fl-page-header,
body.vb-blog-active .fl-page-header-wrap,
body.vb-blog-active .fl-page-nav-wrap,
body.vb-blog-active header.fl-builder-content,
body.vb-blog-active .fl-page-footer-wrap,
body.vb-blog-active .fl-page-footer,
body.vb-blog-active footer.fl-builder-content,
body.vb-blog-active .fl-post-header,
body.vb-blog-active .fl-post-meta,
body.vb-blog-active .fl-post-info,
body.vb-blog-active .fl-sidebar,
body.vb-blog-active .fl-post-nav,
body.vb-blog-active .fl-comments,
body.vb-blog-active .comments-area,
body.vb-blog-active #comments { display: none !important; }

body.vb-blog-active .fl-page-content .container,
body.vb-blog-active .fl-page-content .row,
body.vb-blog-active .fl-content,
body.vb-blog-active .fl-content-full,
body.vb-blog-active .fl-post-content { max-width: 100% !important; width: 100% !important; padding: 0 !important; margin: 0 !important; float: none !important; }

body.vb-blog-active .fl-content.col-md-8,
body.vb-blog-active .fl-content.col-md-9,
body.vb-blog-active .fl-content.col-lg-8,
body.vb-blog-active .fl-content.col-lg-9,
body.vb-blog-active .col-md-4,
body.vb-blog-active .col-md-3,
body.vb-blog-active .col-lg-4,
body.vb-blog-active .col-lg-3 { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }

body.vb-blog-active,
body.vb-blog-active .fl-page,
body.vb-blog-active .fl-page-content,
body.vb-blog-active .fl-page-content-row,
body.vb-blog-active .fl-content-full,
body.vb-blog-active .fl-page-content .container,
body.vb-blog-active .fl-page-content .row { padding: 0 !important; margin: 0 !important; background: #fff !important; }
body.vb-blog-active.vb-has-mega-menu { padding-top: 80px !important; }
body.vb-blog-active article.fl-post { margin: 0 !important; padding: 0 !important; }
body.vb-blog-active .fl-page-bar,
body.vb-blog-active .fl-page-header-fixed,
body.vb-blog-active .fl-page-nav-separator { display: none !important; }
/* Hide empty <p> from BB rich-text module wrapping shortcode output */
body.vb-blog-active .fl-module-content > p:first-child,
body.vb-blog-active .fl-module-content > p:empty,
body.vb-blog-active p:has(+ .vb-header-mega-nav),
body.vb-blog-active .fl-post-content > p:first-child,
body.vb-blog-active .fl-post-content > p:empty { display: none !important; margin: 0 !important; padding: 0 !important; font-size: 0 !important; line-height: 0 !important; height: 0 !important; }

/* ---------- Template Styles ---------- */

.vb-blog-page {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #111827;
    line-height: 1.6;
    background: #fff;
}
.vb-blog-container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }

/* ---------- Breadcrumb ---------- */
.vb-blog-breadcrumb { font-size: 14px; color: #6b7280; margin-bottom: 16px; padding-top: 30px; }
.vb-blog-breadcrumb a { color: #16627c; text-decoration: none; font-weight: 500; }
.vb-blog-breadcrumb a:hover { text-decoration: underline; }
.vb-blog-breadcrumb span { margin: 0 6px; color: #9ca3af; }

/* ---------- Hero ---------- */
.vb-blog-hero { padding: 10px 0 0; }
.vb-blog-hero h1 { font-size: 36px; font-weight: 700; color: #111827; line-height: 1.25; margin: 0 0 16px 0; }
.vb-blog-hero-desc { font-size: 17px; color: #4b5563; line-height: 1.7; margin: 0 0 20px 0; }
.vb-blog-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 14px; color: #6b7280; margin-bottom: 30px; }
.vb-blog-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.vb-blog-meta svg { width: 16px; height: 16px; }
.vb-blog-badge { display: inline-block; padding: 4px 12px; font-size: 13px; font-weight: 600; border-radius: 6px; background: #e0f2f7; color: #134e63; }

/* ---------- Two Column Layout ---------- */
.vb-blog-layout { display: grid; grid-template-columns: 1fr 340px; gap: 60px; padding: 0 0 60px; align-items: start; }
.vb-blog-main { min-width: 0; overflow: hidden; }

/* ---------- TOC ---------- */
.vb-blog-toc { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 24px; margin-bottom: 36px; }
.vb-blog-toc strong { display: block; font-size: 15px; font-weight: 600; color: #111827; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid #e5e7eb; }
.vb-blog-toc ul { list-style: none; padding: 0; margin: 0; }
.vb-blog-toc li { margin-bottom: 8px; line-height: 1.5; }
.vb-blog-toc li::before { content: "\2022"; color: #16627c; margin-right: 10px; font-weight: 700; }
.vb-blog-toc a { text-decoration: none; color: #374151; font-size: 14px; font-weight: 500; transition: color 0.15s; }
.vb-blog-toc a:hover { color: #16627c; }
.vb-blog-toc .toc-h3 { padding-left: 20px; }

/* ---------- Article Body ---------- */
.vb-blog-article { font-size: 16px; line-height: 1.75; color: #374151; }
.vb-blog-article h2 { font-size: 26px; font-weight: 700; color: #111827; margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 3px solid #16627c; scroll-margin-top: 24px; }
.vb-blog-article h2:first-child { margin-top: 0; }
.vb-blog-article h3 { font-size: 20px; font-weight: 600; color: #111827; margin: 30px 0 12px; scroll-margin-top: 24px; }
.vb-blog-article p { margin: 0 0 18px; }
.vb-blog-article a { color: #16627c; text-decoration: none; }
.vb-blog-article a:hover { text-decoration: underline; }
.vb-blog-article strong { color: #111827; }
.vb-blog-article img { max-width: 100%; height: auto; border-radius: 8px; margin: 24px 0; }
.vb-blog-article ul { list-style: none; padding-left: 0; margin: 16px 0; }
.vb-blog-article ul li { position: relative; padding-left: 28px; margin-bottom: 10px; line-height: 1.6; }
.vb-blog-article ul li::before { content: "\27F6"; position: absolute; left: 0; top: 0; color: #16627c; font-size: 14px; font-weight: bold; }
.vb-blog-article ol { counter-reset: vb-counter; list-style: none; padding-left: 0; margin: 16px 0; }
.vb-blog-article ol li { counter-increment: vb-counter; position: relative; padding-left: 46px; margin-bottom: 14px; line-height: 1.5; }
.vb-blog-article ol li::before { content: counter(vb-counter); position: absolute; left: 0; top: -2px; background: #e0f2f7; color: #134e63; font-weight: 700; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 15px; }

/* ---------- Lead ---------- */
.vb-blog-article .lead {
    font-size: 18px;
    color: #111827;
    line-height: 1.8;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: #f8f9fa;
    border-left: 4px solid #16627c;
    border-radius: 0 8px 8px 0;
}

/* ---------- Published Date ---------- */
.vb-blog-article .published-date {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
}

/* ---------- Key Takeaway ---------- */
.vb-blog-article .key-takeaway {
    background: linear-gradient(135deg, #f0f7fa, #d6eef5);
    border: 1px solid #86efac;
    border-left: 5px solid #16627c;
    border-radius: 0 10px 10px 0;
    padding: 20px 24px;
    margin: 24px 0;
}
.vb-blog-article .key-takeaway strong {
    color: #134e63;
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- Caution Box ---------- */
.vb-blog-article .caution-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 5px solid #f59e0b;
    border-radius: 0 10px 10px 0;
    padding: 20px 24px;
    margin: 24px 0;
}
.vb-blog-article .caution-box strong {
    color: #92400e;
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- Info Box ---------- */
.vb-blog-article .info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 24px 0;
}
.vb-blog-article .info-box strong {
    color: #1e40af;
    display: block;
    margin-bottom: 6px;
}

/* ---------- Stats Grid ---------- */
.vb-blog-article .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.vb-blog-article .stat-card {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}
.vb-blog-article .stat-card .stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #16627c;
    display: block;
}
.vb-blog-article .stat-card .stat-label {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
    display: block;
}

/* ---------- Comparison Table ---------- */
.vb-blog-article .comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.vb-blog-article .comparison-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.vb-blog-article .comparison-table th {
    background: #111827;
    color: #fff;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}
.vb-blog-article .comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
    color: #374151;
}
.vb-blog-article .comparison-table tr:last-child td { border-bottom: none; }
.vb-blog-article .comparison-table tr:nth-child(even) td { background: #f8f9fa; }

/* ---------- Formula Block ---------- */
.vb-blog-article .formula-block {
    background: #1e293b;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 24px 0;
    color: #e2e8f0;
    font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
    font-size: 15px;
    line-height: 1.8;
    overflow-x: auto;
}
.vb-blog-article .formula-block .formula-label {
    color: #94a3b8;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Tool Links ---------- */
.vb-blog-article .tool-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 24px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.vb-blog-article .tool-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    background: #f0f7fa !important;
    border: 1px solid #b3dce6 !important;
    border-radius: 100px !important;
    text-decoration: none !important;
    color: #134e63 !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: all 0.15s ease !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}
.vb-blog-article .tool-link:hover { background: #d6eef5 !important; border-color: #86efac !important; color: #14532d !important; text-decoration: none !important; }
.vb-blog-article .tool-link::before { content: "\2192" !important; color: #16627c !important; font-weight: 700 !important; font-size: 12px !important; flex-shrink: 0 !important; position: static !important; }

/* ---------- CTA Section ---------- */
.vb-blog-article .cta-section {
    background: linear-gradient(135deg, #16627c, #2a7882, #16627c);
    border-radius: 14px;
    padding: 32px;
    text-align: center;
    margin: 40px 0;
    color: #fff;
}
.vb-blog-article .cta-section h3 { color: #fff; font-size: 22px; margin: 0 0 12px; border: none; padding: 0; }
.vb-blog-article .cta-section p { color: rgba(255,255,255,0.9); margin-bottom: 20px; }
.vb-blog-article .cta-button {
    display: inline-block;
    background: #fff;
    color: #134e63;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}
.vb-blog-article .cta-button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); color: #134e63; }

/* ---------- Trust Footer ---------- */
.vb-blog-article .trust-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid #e5e7eb;
    text-align: center;
}
.vb-blog-article .trust-footer p { font-size: 14px; color: #6b7280; }
.vb-blog-article .trust-footer a { color: #16627c; text-decoration: none; }

/* ---------- FAQ Accordion ---------- */
.vb-blog-faq { margin: 40px 0; }
.vb-blog-faq h2 { font-size: 26px; font-weight: 700; color: #111827; margin: 0 0 20px; padding-bottom: 8px; border-bottom: 3px solid #16627c; }
.vb-blog-faq-list { display: flex; flex-direction: column; gap: 10px; }
.vb-blog-faq-item { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.vb-blog-faq-item.active { border-color: #16627c; }
.vb-blog-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #111827 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    text-align: left;
    gap: 16px;
    font-family: inherit;
}
.vb-blog-faq-icon {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 18px; font-weight: 600; color: #374151;
    flex-shrink: 0; line-height: 1;
}
.vb-blog-faq-item.active .vb-blog-faq-icon { background: #16627c; border-color: #16627c; color: #fff; }
.vb-blog-faq-a { display: none; padding: 0 20px 20px; }
.vb-blog-faq-item.active .vb-blog-faq-a { display: block; }
.vb-blog-faq-a-inner { font-size: 15px; line-height: 1.7; color: #4b5563; }

/* ---------- Sidebar ---------- */
.vb-blog-sidebar { position: sticky; top: 30px; height: fit-content; }
.vb-blog-sidebar-title { font-size: 13px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.vb-blog-sidebar-products { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }

/* Sidebar Product Cards */
.vb-sidebar-product {
    display: flex; gap: 14px; padding: 16px; background: #fff; border: 1px solid #e5e7eb;
    border-radius: 12px; text-decoration: none; transition: box-shadow 0.2s, background 0.2s;
    box-shadow: #e5e7eb 0 0 0 1px;
}
.vb-sidebar-product:hover { box-shadow: #d1d5db 0 0 0 2px, 0 4px 12px rgba(0,0,0,0.06); }
.vb-sidebar-product-img { width: 80px; height: 80px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.vb-sidebar-product-img img { width: 100%; height: 100%; object-fit: cover; }
.vb-sidebar-product-info { flex: 1; min-width: 0; }
.vb-sidebar-product-info h3 { font-size: 15px; font-weight: 600; color: #1f2937; margin: 0 0 4px; }
.vb-sidebar-product-info p { font-size: 13px; color: #6b7280; margin: 0 0 8px; line-height: 1.4; }
.vb-sidebar-product-features { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.vb-sidebar-product-features li {
    display: flex !important; align-items: center; gap: 6px;
    font-size: 13px; color: #444; margin-bottom: 3px; padding-left: 0 !important;
}
.vb-sidebar-product-features li::before {
    content: "\2714" !important; position: static !important;
    font-size: 11px; background: none !important; border-radius: 0 !important;
    width: auto !important; height: auto !important;
}

/* Product-specific hover colors */
.vb-product-scanner:hover { background: rgba(22, 98, 124, 0.04); box-shadow: #16627c 0 0 0 2px, 0 4px 12px rgba(0,0,0,0.06); }
.vb-product-scanner .vb-sidebar-product-features li::before { color: #16627c; }
.vb-product-futures:hover { background: rgba(37, 99, 235, 0.04); box-shadow: #2563eb 0 0 0 2px, 0 4px 12px rgba(0,0,0,0.06); }
.vb-product-futures .vb-sidebar-product-features li::before { color: #2563eb; }

/* Sidebar CTA */
.vb-blog-sidebar-cta {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    border-radius: 12px; padding: 24px; text-align: center;
}
.vb-blog-sidebar-cta h3 { font-size: 17px; font-weight: 600; color: #fff; margin: 0 0 8px; }
.vb-blog-sidebar-cta p { font-size: 14px; color: rgba(255,255,255,0.7); margin: 0 0 16px; line-height: 1.5; }
.vb-blog-sidebar-cta-btn {
    display: inline-block; padding: 10px 22px; font-size: 14px; font-weight: 600;
    color: #111827; background: #fff; border-radius: 6px; text-decoration: none;
    transition: background 0.2s;
}
.vb-blog-sidebar-cta-btn:hover { background: #f3f4f6; }

/* ---------- Related Posts ---------- */
.vb-blog-related { padding: 50px 0; background: #f9fafb; }
.vb-blog-related h2 { font-size: 24px; font-weight: 700; color: #111827; margin: 0 0 24px; }
.vb-blog-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vb-blog-related-card {
    display: block; padding: 20px; background: #fff; border: 1px solid #e5e7eb;
    border-radius: 12px; text-decoration: none; transition: box-shadow 0.2s;
}
.vb-blog-related-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.vb-blog-related-card h3 { font-size: 16px; font-weight: 600; color: #111827; margin: 0 0 8px; line-height: 1.3; }
.vb-blog-related-card p { font-size: 14px; color: #6b7280; margin: 0; line-height: 1.5; }
.vb-blog-related-meta { font-size: 13px; color: #9ca3af; margin-top: 10px; }

/* ---------- Bottom CTA ---------- */
.vb-blog-cta-bottom { background: linear-gradient(135deg, #2a7882, #16627c); padding: 60px 0; text-align: center; }
.vb-blog-cta-bottom h2 { font-size: 28px; font-weight: 700; color: #fff; margin: 0 0 12px; }
.vb-blog-cta-bottom p { font-size: 17px; color: rgba(255,255,255,0.9); margin: 0 0 24px; }
.vb-blog-cta-bottom-btn {
    display: inline-block; padding: 14px 32px; font-size: 16px; font-weight: 600;
    color: #16627c; background: #fff; border-radius: 8px; text-decoration: none;
    transition: all 0.2s;
}
.vb-blog-cta-bottom-btn:hover { background: #f3f4f6; transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .vb-blog-layout { grid-template-columns: 1fr; gap: 40px; }
    .vb-blog-sidebar { position: static; }
    .vb-blog-sidebar-products { flex-direction: row; gap: 16px; }
    .vb-sidebar-product { flex: 1 1 0; }
}
@media (max-width: 768px) {
    .vb-blog-related-grid { grid-template-columns: 1fr; }
    .vb-blog-sidebar-products { flex-direction: column; }
    .vb-sidebar-product { flex: 1 1 auto; }
}
@media (max-width: 600px) {
    .vb-blog-container { padding: 0 16px; }
    .vb-blog-hero h1 { font-size: 26px; }
    .vb-blog-article h2 { font-size: 22px; }
    .vb-blog-article .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .vb-blog-article .cta-section { padding: 24px 20px; }
    .vb-blog-article .tool-link { font-size: 12px !important; padding: 6px 12px !important; }
}
