/* ============================================================
   insightspost.css — Individual blog post pages (/blog/*.php)
   Load this AFTER bootstrap.min.css and insights.css.
============================================================ */

/* ============================================================
   HEADER ON POST PAGES: solid black instead of transparent
   (white page behind it, so the transparent navbar was unreadable)
============================================================ */
header .navbar.fixed-top,
header .navbar.bg-transparent{
    background-color: #000000 !important;
}

/* Scroll down → top bar slides up, navbar moves to the top */
header .topbar,
header .navbar.fixed-top{
    transition: transform .3s ease, opacity .3s ease, margin-top .3s ease;
}

body.vb-scrolled header .topbar{
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

body.vb-scrolled header .navbar.fixed-top{
    margin-top: 0 !important;
    box-shadow: 0 4px 18px rgba(0,0,0,.25);
}

/* Used for a moment while measuring the header (no animation) */
body.vb-measuring header .topbar,
body.vb-measuring header .navbar.fixed-top{
    transition: none !important;
}

/* ============================================================
   POST PAGE — every rule is scoped to .vb-post so it can't
   change your header, footer, Bootstrap or insights.css.
   (Class names like article-title / article-featured /
   article-meta-item are kept — blog.php reads them.)
============================================================ */

.vb-post{
    /* Same value as in blog.php. Header fixed/transparent → its height; normal header → 0px */
    --vb-header-space: 90px;

    --red: #8f1118;
    --heading: #10213f;
    --text: #536174;
    --border: #e1e6eb;
    --gradient:
        radial-gradient(circle at top left, #500000 0%, transparent 35%),
        radial-gradient(circle at bottom right, #002a52 0%, transparent 35%),
        #000000;

    font-family: "Poppins", sans-serif;
    color: var(--text);
    background: #f3f5f7;
    -webkit-font-smoothing: antialiased;
}

.vb-post *, .vb-post *::before, .vb-post *::after{ box-sizing: border-box; }
.vb-post :where(h1, h2, h3, h4, p, ul){ margin: 0; padding: 0; }
.vb-post a, .vb-post a:hover{ text-decoration: none; }
.vb-post img{ max-width: 100%; display: block; }

/* PAGE */
.vb-post .blog-page{
    width: 100%;
    max-width: 1580px;
    margin: 0 auto;
    padding: calc(var(--vb-header-space) + 30px) 20px 80px;
}

/* BREADCRUMB */
.vb-post .blog-breadcrumb{ display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; color: #768396; font-size: 13px; }
.vb-post .blog-breadcrumb a{ color: #315b7d; transition: color .25s; }
.vb-post .blog-breadcrumb a:hover{ color: var(--red); }
.vb-post .blog-breadcrumb .current{ max-width: 700px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* LAYOUT */
.vb-post .blog-layout{ display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 34px; align-items: start; }

/* ARTICLE */
.vb-post .blog-article{ min-width: 0; padding: 32px 32px 45px; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: 0 12px 40px rgba(15,23,42,.045); }

/* META */
.vb-post .article-meta{ display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-bottom: 18px; color: #687588; font-size: 13px; }
.vb-post .article-meta-item{ display: flex; align-items: center; gap: 8px; }
.vb-post .article-meta-item i{ color: var(--red); font-size: 15px; }

/* TITLE */
.vb-post .article-title{ max-width: 980px; margin-bottom: 27px; color: #0b2445; font-family: "Poppins", sans-serif; font-size: clamp(34px, 3.6vw, 52px); font-weight: 600; line-height: 1.18; letter-spacing: -1px; }

/* FEATURED IMAGE */
.vb-post .article-featured{ overflow: hidden; margin-bottom: 36px; border-radius: 15px; background: #eee; }
.vb-post .article-featured img{ width: 100%; aspect-ratio: 16 / 8.3; object-fit: cover; }

/* CONTENT */
.vb-post .article-content{ max-width: 930px; margin: 0 auto; }
.vb-post .article-content p{ margin-bottom: 18px; color: var(--text); font-size: 17px; line-height: 1.95; }
.vb-post .article-content .article-lead{ margin-bottom: 32px; color: #35465c; font-size: 19px; line-height: 1.9; }

/* TABLE OF CONTENTS */
.vb-post .table-of-contents{ margin: 35px 0 48px; padding: 28px; border: 1px solid #e0e5ea; border-radius: 15px; background: radial-gradient(circle at top right, rgba(0,42,82,.05), transparent 40%), #f8fafc; }
.vb-post .toc-header{ display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.vb-post .toc-icon{ width: 46px; height: 46px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #500000, #8f1118); }
.vb-post .toc-small-title{ display: block; margin-bottom: 2px; color: #8b96a6; font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.vb-post .toc-header h2{ color: var(--heading); font-size: 20px; font-weight: 600; }
.vb-post .toc-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.vb-post .toc-grid a{ min-height: 48px; display: flex; align-items: center; gap: 11px; padding: 11px 14px; border: 1px solid #e7ebef; border-radius: 9px; background: #fff; color: #4b586a; font-size: 12px; font-weight: 500; transition: color .25s, border-color .25s, transform .25s; }
.vb-post .toc-number{ color: var(--red); font-size: 10px; font-weight: 700; }
.vb-post .toc-grid a:hover{ color: var(--red); border-color: rgba(143,17,24,.2); transform: translateX(3px); }

/* SECTIONS */
.vb-post .article-section{ scroll-margin-top: calc(var(--vb-header-space) + 20px); padding: 12px 0 38px; margin-bottom: 27px; border-bottom: 1px solid #edf0f3; }
.vb-post .article-section-number{ display: inline-block; margin-bottom: 10px; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; }
.vb-post .article-section h2{ margin-bottom: 18px; color: var(--heading); font-size: 28px; font-weight: 600; line-height: 1.4; }
.vb-post .article-section h3{ margin: 28px 0 12px; color: #172a47; font-size: 18px; font-weight: 600; }
.vb-post .article-section ul{ margin: 8px 0 20px; padding-left: 23px; list-style: disc; }
.vb-post .article-section li{ margin-bottom: 8px; color: var(--text); font-size: 16px; line-height: 1.85; }

/* TIP */
.vb-post .article-tip{ display: flex; gap: 15px; margin-top: 25px; padding: 19px; border: 1px solid rgba(143,17,24,.09); border-left: 4px solid var(--red); border-radius: 10px; background: linear-gradient(135deg, #fff8f8, #fff); }
.vb-post .tip-icon{ width: 39px; height: 39px; flex: 0 0 39px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--red); background: #fff; box-shadow: 0 5px 15px rgba(15,23,42,.06); }
.vb-post .tip-content strong{ display: block; margin-bottom: 4px; color: #192b46; font-size: 14.5px; }
.vb-post .article-content .tip-content p{ margin: 0; font-size: 14.5px; line-height: 1.75; }

/* CONCLUSION */
.vb-post .article-conclusion{ margin: 35px 0 42px; padding: 32px; border-radius: 16px; background: radial-gradient(circle at top left, #500000 0%, transparent 48%), radial-gradient(circle at bottom right, #002a52 0%, transparent 48%), #000; box-shadow: 0 15px 35px rgba(0,0,0,.10); }
.vb-post .article-conclusion h2{ margin-bottom: 15px; color: #fff; font-size: 27px; font-weight: 600; }
.vb-post .article-content .article-conclusion p{ color: rgba(255,255,255,.76); font-size: 16px; line-height: 1.9; }
.vb-post .article-conclusion a{ color: #fff; border-bottom: 1px solid rgba(255,255,255,.4); }

/* FAQ */
.vb-post .blog-faq{ margin-top: 40px; padding: 34px; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: 0 12px 35px rgba(15,23,42,.035); }
.vb-post .faq-header{ display: flex; align-items: center; gap: 16px; margin-bottom: 25px; }
.vb-post .faq-header-icon{ width: 48px; height: 48px; flex: 0 0 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: #e58a00; background: linear-gradient(135deg, #fff4a8, #fff9dd); }
.vb-post .faq-header h2{ color: var(--heading); font-size: 22px; font-weight: 600; }
.vb-post .faq-list{ display: flex; flex-direction: column; gap: 13px; }
.vb-post .faq-item{ overflow: hidden; border: 1px solid #dfe4ea; border-radius: 12px; background: #fff; transition: border-color .3s, box-shadow .3s; }
.vb-post .faq-item.active{ border-color: rgba(143,17,24,.22); box-shadow: 0 8px 25px rgba(15,23,42,.045); }
.vb-post .faq-question{ width: 100%; min-height: 64px; padding: 17px 21px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 0; background: transparent; color: #132541; font-family: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.vb-post .faq-arrow{ color: var(--red); transition: transform .3s; }
.vb-post .faq-item.active .faq-arrow{ transform: rotate(180deg); }
.vb-post .faq-answer{ max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s ease, opacity .3s ease; }
.vb-post .faq-item.active .faq-answer{ opacity: 1; }
.vb-post .faq-answer-inner{ margin: 0 21px; padding: 16px 0 20px; border-top: 1px solid #edf0f3; color: #586579; font-size: 14px; line-height: 1.85; }

/* END AUTHOR */
.vb-post .end-author-card{ position: relative; display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 24px; margin-top: 34px; padding: 31px; overflow: hidden; border: 1px solid #dfe4e9; border-radius: 18px; background: linear-gradient(135deg, #f8fafc, #f4f7fa); }
.vb-post .end-author-image{ width: 82px; height: 82px; overflow: hidden; border-radius: 50%; background: #fff; border: 3px solid #fff; box-shadow: 0 7px 20px rgba(15,23,42,.10); }
.vb-post .end-author-image img{ width: 100%; height: 100%; object-fit: cover; }
.vb-post .end-author-content h3{ margin-bottom: 9px; color: #0c1729; font-size: 20px; font-weight: 600; }
.vb-post .article-content .end-author-content p{ margin-bottom: 17px; color: #526074; font-size: 13.5px; line-height: 1.85; }
.vb-post .end-author-link{ display: inline-flex; align-items: center; gap: 8px; color: #0046b8; font-size: 13px; font-weight: 500; }
.vb-post .end-author-link:hover{ color: var(--red); }

/* SIDEBAR */
.vb-post .article-sidebar{ position: sticky; top: calc(var(--vb-header-space) + 22px); }
.vb-post .sidebar-card{ margin-bottom: 22px; padding: 25px; border: 1px solid #e2e6eb; border-radius: 16px; background: #fff; box-shadow: 0 12px 38px rgba(15,23,42,.045); }

.vb-post .sidebar-author{ padding: 28px 25px; text-align: center; }
.vb-post .sidebar-author-image{
    width: 180px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 14px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.vb-post .sidebar-author-image img{
    width: 100%;
    height: auto;
    object-fit: contain;
}
.vb-post .sidebar-author h3{ margin-bottom: 4px; color: var(--heading); font-size: 18px; font-weight: 600; }
.vb-post .sidebar-author-role{ display: block; margin-bottom: 13px; color: var(--red); font-size: 12px; font-weight: 500; }
.vb-post .sidebar-author p{ color:#000000!important; font-size: 11.5px; line-height: 1.75; text-align:justify;}

.vb-post .sidebar-heading{ display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.vb-post .sidebar-heading-icon{ width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #500000, #8f1118); font-size: 10px; }
.vb-post .sidebar-heading h3{ color: var(--heading); font-size: 18px; font-weight: 600; }

/* CATEGORIES */
.vb-post .sidebar-categories{ display: flex; flex-direction: column; gap: 6px; }
.vb-post .sidebar-categories a{ display: flex; align-items: center; justify-content: space-between; padding: 12px 13px; border-radius: 8px; color: #556174; font-size: 12px; font-weight: 500; transition: all .25s; }
.vb-post .sidebar-categories a span{ opacity: 0; transition: opacity .25s; margin-left: auto; }
.vb-post .sidebar-categories .vb-count{ margin-left: 4px; font-style: normal; font-size: 11px; opacity: .65; }
.vb-post .sidebar-categories a:hover,
.vb-post .sidebar-categories a.active{ padding-left: 17px; color: #fff; background: linear-gradient(135deg, #500000, #8f1118 55%, #002a52); }
.vb-post .sidebar-categories a:hover span,
.vb-post .sidebar-categories a.active span{ opacity: 1; }

/* RECENT POSTS */
.vb-post .recent-posts-list{ display: flex; flex-direction: column; }
.vb-post .recent-post-item{ position: relative; display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 19px 0; border-bottom: 1px solid #e7eaee; transition: padding .25s; }
.vb-post .recent-post-item:first-child{ padding-top: 6px; }
.vb-post .recent-post-item:last-child{ border-bottom: 0; }
.vb-post .recent-post-content{ min-width: 0; }
.vb-post .recent-post-category{ display: inline-block; margin-bottom: 7px; color: var(--red); font-size: 9px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.vb-post .recent-post-item h4{ margin-bottom: 8px; color: var(--heading); font-size: 13px; font-weight: 500; line-height: 1.65; transition: color .25s; }
.vb-post .recent-post-date{ display: flex; align-items: center; gap: 6px; color: #929cac; font-size: 9.5px; }
.vb-post .recent-post-date i{ color: var(--red); }
.vb-post .recent-post-arrow{ width: 29px; height: 29px; flex: 0 0 29px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--red); background: #fff4f4; font-size: 9px; opacity: 0; transform: translateX(-6px); transition: all .25s; }
.vb-post .recent-post-item:hover{ padding-left: 6px; }
.vb-post .recent-post-item:hover h4{ color: var(--red); }
.vb-post .recent-post-item:hover .recent-post-arrow{ opacity: 1; transform: translateX(0); color: #fff; background: linear-gradient(135deg, #500000, #8f1118); }
.vb-post .recent-empty{ color: #8a96a6; font-size: 12px; }

.vb-post .view-all-posts{ width: 100%; min-height: 46px; margin-top: 15px; display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 8px; color: #fff; background: var(--gradient); font-size: 11px; font-weight: 600; transition: transform .25s, box-shadow .25s; }
.vb-post .view-all-posts:hover{ color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.13); }

/* CTA */
.vb-post .sidebar-cta{ position: relative; overflow: hidden; padding: 30px 25px; border-radius: 16px; background: radial-gradient(circle at top left, #500000 0%, transparent 45%), radial-gradient(circle at bottom right, #002a52 0%, transparent 45%), #000; box-shadow: 0 15px 35px rgba(0,0,0,.12); }
.vb-post .sidebar-cta-small{ display: block; margin-bottom: 8px; color: rgba(255,255,255,.55); font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.vb-post .sidebar-cta h3{ margin-bottom: 12px; color: #fff; font-size: 22px; font-weight: 600; line-height: 1.4; }
.vb-post .sidebar-cta p{ margin-bottom: 19px; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.75; }
.vb-post .sidebar-cta a{ display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 7px; background: #fff; color: #111827; font-size: 11px; font-weight: 600; transition: transform .25s; }
.vb-post .sidebar-cta a:hover{ transform: translateY(-2px); color: #111827; }

/* TABLET */
@media (max-width: 1100px){
    .vb-post .blog-layout{ grid-template-columns: 1fr; }
    .vb-post .article-sidebar{ position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .vb-post .sidebar-card{ margin-bottom: 0; }
}

/* MOBILE */
@media (max-width: 700px){
    .vb-post{ --vb-header-space: 70px; }
    .vb-post .blog-page{ padding: calc(var(--vb-header-space) + 20px) 12px 55px; }
    .vb-post .blog-breadcrumb{ font-size: 11px; }
    .vb-post .blog-article{ padding: 20px 17px 30px; border-radius: 14px; }
    .vb-post .article-meta{ gap: 8px 14px; font-size: 11px; }
    .vb-post .article-title{ margin-bottom: 22px; font-size: 31px; letter-spacing: -.5px; }
    .vb-post .article-featured{ border-radius: 11px; }
    .vb-post .article-featured img{ aspect-ratio: 16 / 10; }
    .vb-post .toc-grid{ grid-template-columns: 1fr; }
    .vb-post .table-of-contents{ padding: 20px 16px; }
    .vb-post .article-section h2{ font-size: 23px; }
    .vb-post .blog-faq{ padding: 23px 16px; }
    .vb-post .faq-header h2{ font-size: 18px; }
    .vb-post .end-author-card{ grid-template-columns: 1fr; padding: 23px 20px; }
    .vb-post .article-sidebar{ grid-template-columns: 1fr; }
}

@media (max-width: 420px){
    .vb-post .article-title{ font-size: 27px; }
    .vb-post .article-meta{ flex-direction: column; align-items: flex-start; }
}

/* Comparison table */
.vb-post .article-table{ margin: 10px 0 24px; overflow-x: auto; }
.vb-post .article-table table{ width: 100%; margin: 0; border-collapse: collapse; font-size: 15px; }
.vb-post .article-table th{ padding: 13px 16px; text-align: left; color: #fff; font-weight: 600; background: linear-gradient(135deg, #500000, #8f1118); border: 0; }
.vb-post .article-table td{ padding: 12px 16px; border: 1px solid #e7ebef; color: var(--text); }
.vb-post .article-table tbody tr:nth-child(even) td{ background: #f8fafc; }

/* CTA box inside the article */
.vb-post .article-cta{ margin: 10px 0 40px; padding: 32px; }
.vb-post .article-cta h3{ font-size: 24px; }
.vb-post .article-content .article-cta p{ margin-bottom: 20px; color: rgba(255,255,255,.76); font-size: 15px; line-height: 1.85; }
.vb-post .article-cta a{ padding: 12px 18px; font-size: 13px; }

/* Links inside article text */
.vb-post .article-content > p a,
.vb-post .article-section a{
    color: #6c757d;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Numbered lists */
.vb-post .article-section ol{ margin: 8px 0 20px; padding-left: 23px; }

/* TOC jump: keep FAQ / Conclusion below the fixed header */
.vb-post .blog-faq,
.vb-post .article-conclusion{ scroll-margin-top: calc(var(--vb-header-space) + 20px); }

/* ============================================================
   HEADINGS: always Poppins + bold.
   The site CSS sets headings to a thin font, so these use
   !important to win over it. Keep this block at the very end.
============================================================ */
body .vb-post h1,
body .vb-post h2,
body .vb-post h3,
body .vb-post h4{
    font-family: "Poppins", sans-serif !important;
    font-weight: 700 !important;
}

/* Sub-headings inside sections (Step 1, Why It Works...) */
body .vb-post .article-section h3{
    color: #172a47 !important;
    font-size: 19px;
}

/* A link inside a heading keeps the heading weight */
body .vb-post .article-section h2 a,
body .vb-post .article-section h3 a{ font-weight: inherit; }