/* ============================================================
 * BabyNameGeneratorHub.com - Guides system
 * Faithful re-creation of the approved BargainMart blog design
 * (bm_blog_system.css spec) with the BNGH brand palette
 * (violet accent #6659d9, ink #17233d, Inter var headings).
 * Loaded only on guide-related routes.
 * ============================================================ */

/* ============================================================
   BARGAINMART BLOG SYSTEM - CSS v3.0
   Clean full-width blog listing + Left sidebar on single posts
   ============================================================ */

/* --- BREADCRUMBS (shared) --- */
.bngh-blog-breadcrumb{font-size:13px;color:#666;margin:0 0 24px 0;padding:0;display:flex;align-items:center;flex-wrap:wrap;gap:4px;}
.bngh-blog-breadcrumb a{color:#17233d;text-decoration:none;font-weight:500;}
.bngh-blog-breadcrumb a:hover{color:#6659d9;}
.bngh-bc-sep{color:#bbb;margin:0 4px;font-size:12px;}
.bngh-bc-current{color:#6659d9;font-weight:600;}

/* ============================================================
   BLOG LISTING PAGE - Full width, no sidebar
   ============================================================ */

/* WIDE (contained) layout for blog listing and archive pages - not full viewport */
.blog .site.grid-container,
.archive .site.grid-container{max-width:1200px!important;margin:0 auto!important;}
.blog .site-content,
.archive .site-content{display:block!important;width:100%!important;max-width:100%!important;padding:0!important;margin:0!important;}
.blog #primary,
.archive #primary{width:100%!important;max-width:100%!important;float:none!important;padding:0!important;}
.blog #right-sidebar,
.archive #right-sidebar,
.blog .widget-area,
.archive .widget-area{display:none!important;}
.blog .site-main,
.archive .site-main{width:100%!important;max-width:100%!important;padding:0!important;}

/* Override GeneratePress column system */
.blog .generate-columns-container,
.blog .generate-columns{display:contents!important;width:auto!important;float:none!important;margin:0!important;padding:0!important;}
.blog .generate-columns-container article,
.blog .generate-columns article{width:auto!important;float:none!important;margin:0!important;padding:0!important;}

/* ── Blog page header ───────────────────────────────────── */
.bngh-blog-page-header{margin:0 0 28px 0;padding:0;}
.bngh-blog-archive-title{font-family:'Inter var',sans-serif!important;font-size:34px!important;font-weight:800!important;color:#17233d!important;margin:0 0 8px 0!important;line-height:1.2!important;}
.bngh-blog-archive-subtitle{font-size:15px!important;color:#666!important;margin:0!important;line-height:1.6!important;}

/* ── Category tab strip ─────────────────────────────────── */
.bngh-blog-cat-strip{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
    margin:0 0 36px 0!important;
    padding:0 0 28px 0!important;
    border-bottom:2px solid #f0f0f0!important;
    max-width:100%!important;
    overflow-x:auto!important;
    scrollbar-width:none!important;
    -ms-overflow-style:none!important;
    -webkit-overflow-scrolling:touch!important;
}
.bngh-blog-cat-strip::-webkit-scrollbar{display:none!important;}
.bngh-cat-tab{
    display:inline-block!important;
    padding:8px 18px!important;
    font-size:13px!important;
    font-weight:600!important;
    color:#444!important;
    background:#f5f6f8!important;
    border:1.5px solid transparent!important;
    border-radius:24px!important;
    text-decoration:none!important;
    transition:all .2s ease!important;
    line-height:1.4!important;
    white-space:nowrap!important;
}
.bngh-cat-tab:hover{
    background:#17233d!important;
    color:#fff!important;
    border-color:#17233d!important;
    text-decoration:none!important;
}
.bngh-cat-tab.active{
    background:#6659d9!important;
    color:#fff!important;
    border-color:#6659d9!important;
}

/* Keep old pill classes working (backwards compat) */
.bngh-cat-pill{display:inline-block!important;padding:7px 16px!important;font-size:13px!important;font-weight:600!important;color:#444!important;background:#f5f6f8!important;border-radius:20px!important;text-decoration:none!important;transition:all .2s ease!important;line-height:1.4!important;}
.bngh-cat-pill:hover{background:#17233d!important;color:#fff!important;text-decoration:none!important;}
.bngh-cat-active,.bngh-cat-pill.active{background:#6659d9!important;color:#fff!important;}

/* ── Blog 4-column grid: Square Teal Tiles ──────────── */

/* CRITICAL: ensure blog page site-main is block, not grid/flex */
body.blog #main.site-main,
body.blog .site-main,
body.blog #primary { display:block!important; float:none!important; }

/* Grid wrapper */
body.blog .bngh-blog-grid,
.bngh-blog-grid,
#main .bngh-blog-grid {
    display:grid!important;
    grid-template-columns:repeat(4,1fr)!important;
    gap:20px!important;
    margin:0 0 40px 0!important;
    width:100%!important;
    clear:both!important;
    float:none!important;
    padding:0!important;
    list-style:none!important;
}

/* Blog card: image + title + excerpt */
body.blog .bngh-blog-grid > article,
.bngh-blog-grid > article {
    border-radius:14px !important;overflow:hidden !important;
    margin:0 !important;padding:0 !important;
    width:100% !important;float:none !important;
    background:#fff !important;border:1px solid #e8eaed !important;
    position:relative !important;
    display:flex !important;flex-direction:column !important;
    box-shadow:0 2px 8px rgba(0,0,0,.06) !important;
    transition:box-shadow .25s,transform .25s !important;
    aspect-ratio:auto !important;
    min-height:auto !important;
}
body.blog .bngh-blog-grid > article:hover,
.bngh-blog-grid > article:hover{box-shadow:0 8px 24px rgba(0,0,0,.15)!important;transform:translateY(-4px)!important;}
body.blog .bngh-blog-grid .inside-article,
.bngh-blog-grid .inside-article{position:static!important;width:100%!important;height:auto!important;padding:0!important;margin:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;background:transparent!important;}
body.blog .bngh-blog-grid .entry-header,
.bngh-blog-grid .entry-header{position:static!important;width:100%!important;height:auto!important;padding:0!important;margin:0!important;display:block!important;border:none!important;box-shadow:none!important;background:transparent!important;}
body.blog .bngh-blog-grid .bngh-blog-card-img-wrap,
.bngh-blog-grid .bngh-blog-card-img-wrap{display:block!important;width:100%!important;height:180px!important;overflow:hidden!important;position:relative!important;background:#f0f2f5!important;}
body.blog .bngh-blog-grid .bngh-blog-card-img,
.bngh-blog-grid .bngh-blog-card-img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;filter:none!important;transition:transform .35s ease!important;}
body.blog .bngh-blog-grid article:hover .bngh-blog-card-img,
.bngh-blog-grid article:hover .bngh-blog-card-img{transform:scale(1.04)!important;}
body.blog .bngh-blog-grid .bngh-blog-card-cat,
body.blog .bngh-blog-grid .bngh-blog-card-date,
body.blog .bngh-blog-grid .entry-meta,
body.blog .bngh-blog-grid .post-image,
body.blog .bngh-blog-grid .featured-image,
body.blog .bngh-blog-grid .entry-footer,
.bngh-blog-grid .bngh-blog-card-cat,
.bngh-blog-grid .bngh-blog-card-date,
.bngh-blog-grid .entry-meta,
.bngh-blog-grid .post-image,
.bngh-blog-grid .featured-image,
.bngh-blog-grid .entry-footer,
.bngh-blog-readmore{display:none!important;}
body.blog .bngh-blog-grid .entry-title,
.bngh-blog-grid .entry-title{position:static!important;transform:none!important;padding:12px 14px 4px 14px!important;margin:0!important;text-align:left!important;font-size:15px!important;font-weight:700!important;color:#17233d!important;line-height:1.35!important;font-family:'Inter var',sans-serif!important;text-shadow:none!important;background:none!important;border:none!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
body.blog .bngh-blog-grid .entry-title a,
.bngh-blog-grid .entry-title a{color:#17233d!important;text-decoration:none!important;background:none!important;}
body.blog .bngh-blog-grid .entry-title a:hover,
.bngh-blog-grid .entry-title a:hover{color:#6659d9!important;}
body.blog .bngh-blog-grid .entry-summary,
.bngh-blog-grid .entry-summary{display:-webkit-box!important;padding:0 14px 12px 14px!important;margin:0!important;font-size:13px!important;color:#666!important;line-height:1.5!important;font-family:Inter,sans-serif!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important;border:none!important;background:transparent!important;}
body.blog .bngh-blog-grid .entry-summary p,
.bngh-blog-grid .entry-summary p{margin:0!important;}
body.blog .bngh-blog-grid .entry-title a::after,
.bngh-blog-grid .entry-title a::after{content:""!important;position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;z-index:2!important;}
/* Responsive */
@media(max-width:1100px){
body.blog #main.site-main>.bngh-blog-grid,.blog #main.site-main>.bngh-blog-grid,.archive #main.site-main>.bngh-blog-grid{grid-template-columns:repeat(3,1fr)!important;}
}
@media(max-width:768px){
body.blog #main.site-main>.bngh-blog-grid,.blog #main.site-main>.bngh-blog-grid,.archive #main.site-main>.bngh-blog-grid{grid-template-columns:repeat(2,1fr)!important;max-width:100%!important;}
}
@media(max-width:480px){
body.blog #main.site-main>.bngh-blog-grid,.blog #main.site-main>.bngh-blog-grid,.archive #main.site-main>.bngh-blog-grid{grid-template-columns:repeat(1,1fr)!important;max-width:100%!important;}
}

/* Force proper stacking on archive/category pages */
#main.site-main{display:block!important;width:100%!important;}
#main .bngh-blog-breadcrumb{display:flex!important;width:100%!important;clear:both!important;}
#main .bngh-blog-page-header{display:block!important;width:100%!important;clear:both!important;}
#main .bngh-blog-cat-strip{display:flex!important;flex-wrap:wrap!important;gap:8px!important;width:100%!important;padding:0 0 28px 0!important;margin:0 0 36px 0!important;border-bottom:2px solid #f0f0f0!important;clear:both!important;max-width:100%!important;overflow-x:auto!important;scrollbar-width:none!important;-ms-overflow-style:none!important;-webkit-overflow-scrolling:touch!important;}
#main .bngh-blog-cat-strip::-webkit-scrollbar{display:none!important;}
/* OLD: superseded by redesign block */


/* ── Blog Pagination ─────────────────────────────────────── */
.bngh-blog-pagination { text-align:center; margin:0 0 56px 0; }
.bngh-blog-pagination .page-numbers { display:inline-flex; }
.bngh-blog-pagination ul { list-style:none; margin:0; padding:0; display:inline-flex; gap:6px; align-items:center; }
.bngh-blog-pagination ul li { display:inline; }
.bngh-blog-pagination .page-numbers li a,
.bngh-blog-pagination .page-numbers li span {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:38px;
    height:38px;
    padding:0 12px;
    border-radius:8px;
    border:2px solid #e0e0e0;
    background:#fff;
    color:#17233d;
    font-weight:600;
    font-size:14px;
    text-decoration:none;
    transition:all .2s;
}
.bngh-blog-pagination .page-numbers li a:hover { background:#17233d; color:#fff; border-color:#17233d; }
.bngh-blog-pagination .page-numbers li span.current { background:#6659d9; color:#fff; border-color:#6659d9; }
.bngh-blog-pagination .page-numbers li a.next,
.bngh-blog-pagination .page-numbers li a.prev { background:#17233d; color:#fff; border-color:#17233d; border-radius:8px; }
.bngh-blog-pagination .page-numbers li a.dots { border:none; background:none; }







/* ============================================================
   STANDARD BLOG POST FORMAT - Buying Guide Template
   ============================================================ */

/* ── Reading Time Badge ─────────────────────────────────── */
.bngh-reading-time{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#666;}
.bngh-reading-time::before{content:"\023F1";font-size:14px;}

/* ── Meta info row ───────────────────────────────────────── */
.bngh-blog-post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:8px 0 20px 0;font-size:13px;color:#666;padding-bottom:16px;border-bottom:1px solid #e5e7eb;}
.bngh-blog-post-meta .bngh-post-cat-label{background:#6659d9;color:#fff;padding:3px 12px;border-radius:20px;font-size:12px;font-weight:600;letter-spacing:.3px;}
.bngh-blog-post-meta .bngh-post-date{font-weight:500;}
.bngh-blog-post-meta .bngh-post-author{font-weight:500;}
.bngh-blog-post-meta .bngh-post-author::before{content:"\270D";margin-right:4px;}

/* ── Featured image ──────────────────────────────────────── */
.bngh-featured-img{width:100%;max-height:420px;object-fit:cover;border-radius:12px;margin:0 0 24px 0;}

/* ── Table of Contents ──────────────────────────────────── */
.bngh-toc{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:20px 24px;margin:0 0 32px 0;}
.bngh-toc-title{font-size:18px;font-weight:700;color:#17233d;margin:0 0 12px 0;display:flex;align-items:center;gap:8px;}
.bngh-toc-title::before{content:"\2630";font-size:20px;}
.bngh-toc-list{list-style:none;padding:0;margin:0;counter-reset:toc-counter;}
.bngh-toc-list li{margin:6px 0;padding:0;counter-increment:toc-counter;}
.bngh-toc-list li a{text-decoration:none;color:#334155;font-size:14px;font-weight:500;display:flex;align-items:center;gap:8px;transition:color .2s;}
.bngh-toc-list li a::before{content:counter(toc-counter) ".";font-weight:700;color:#6659d9;min-width:28px;}
.bngh-toc-list li a:hover{color:#6659d9;}
























/* ── How We Tested Section ───────────────────────────────── */
.bngh-how-tested{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:24px 28px;margin:0 0 32px 0;}
.bngh-how-tested h2{margin:0 0 16px 0;font-size:20px;color:#17233d;}
.bngh-how-tested p{font-size:14px;line-height:1.7;color:#475569;margin:0 0 12px 0;}
.bngh-how-tested p:last-child{margin-bottom:0;}

/* ── Buying Guide Section ────────────────────────────────── */
.bngh-buying-guide{margin:0 0 32px 0;}
.bngh-buying-guide h2{font-size:22px;color:#17233d;margin:0 0 16px 0;}
.bngh-buying-guide h3{font-size:17px;color:#17233d;margin:20px 0 8px 0;}
.bngh-buying-guide p{font-size:15px;line-height:1.7;color:#475569;margin:0 0 14px 0;}
.bngh-buying-guide ul{padding-left:20px;margin:0 0 14px 0;}
.bngh-buying-guide li{font-size:14px;line-height:1.6;color:#475569;margin:6px 0;}

/* ── FAQ Section ────────────────────────────────────────── */
.bngh-faq-section{margin:0 0 32px 0;}
.bngh-faq-section h2{font-size:22px;color:#17233d;margin:0 0 20px 0;}
.bngh-faq-item{border:1px solid #e2e8f0;border-radius:10px;margin:0 0 12px 0;overflow:hidden;}
.bngh-faq-question{display:block;width:100%;text-align:left;background:#f8fafc;border:none;padding:16px 20px;font-size:15px;font-weight:600;color:#17233d;cursor:pointer;transition:background .2s;}
.bngh-faq-question:hover{background:#f1f5f9;}
.bngh-faq-question::after{content:"\2B";float:right;font-size:20px;color:#6659d9;font-weight:400;}
.bngh-faq-question.bngh-faq-open::after{content:"\2212";}
.bngh-faq-answer{display:none;padding:0 20px 16px 20px;font-size:14px;line-height:1.7;color:#475569;}


.bngh-final-verdict{background:linear-gradient(135deg,#17233d,#2d3f5f);border-radius:16px;padding:28px 32px;margin:0 0 32px 0;color:#fff;}
.bngh-final-verdict h2{color:#fff;font-size:24px;margin:0 0 16px 0;}
.bngh-final-verdict p{color:#e2e8f0;font-size:15px;line-height:1.7;margin:0 0 12px 0;}
.bngh-final-verdict p:last-of-type{margin-bottom:20px;}

@media(max-width:640px){

    .bngh-final-verdict{padding:20px;}

    .bngh-final-verdict h2{font-size:20px;}
}

/* Meta items separator dots */
.bngh-blog-post-meta .bngh-post-date::before,
.bngh-blog-post-meta .bngh-post-author::before,
.bngh-blog-post-meta .bngh-reading-time::before{content:"\2022";margin-right:8px;color:#ccc;font-weight:400;}
.bngh-blog-post-meta .bngh-post-cat-label + .bngh-post-date::before{display:none;}
.bngh-blog-post-meta .bngh-post-cat-label{margin-right:0;}


/* ── Subcategory Sub-Tabs Strip ─────────────────────────── */
.bngh-blog-subcat-strip{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:8px !important;
    margin:0 0 36px 0 !important;
    padding:0 0 20px 0 !important;
    border-bottom:2px solid #f0f0f0 !important;
    width:100% !important;
    clear:both !important;
}
.bngh-subcat-tab{
    display:inline-block !important;
    padding:7px 16px !important;
    font-size:13px !important;
    font-weight:600 !important;
    color:#444 !important;
    background:#f5f6f8 !important;
    border:1.5px solid transparent !important;
    border-radius:20px !important;
    text-decoration:none !important;
    transition:all .2s ease !important;
    line-height:1.4 !important;
    white-space:nowrap !important;
}
.bngh-subcat-tab:hover{
    background:#17233d !important;
    color:#fff !important;
    border-color:#17233d !important;
    text-decoration:none !important;
}
.bngh-subcat-tab.active{
    background:#6659d9 !important;
    color:#fff !important;
    border-color:#6659d9 !important;
}

/* Sub-tab responsive breakpoints */
@media(max-width:1100px){

    .bngh-blog-subcat-strip{gap:6px !important;}

    .bngh-subcat-tab{font-size:12px !important;padding:6px 14px !important;}
}
@media(max-width:768px){

    .bngh-blog-subcat-strip{
        flex-wrap:nowrap !important;
        gap:6px !important;
        justify-content:flex-start !important;
        padding:0 0 16px 0 !important;
        margin:0 0 28px 0 !important;
        overflow-x:auto !important;
        scrollbar-width:none !important;
        -ms-overflow-style:none !important;
        -webkit-overflow-scrolling:touch !important;
    }

    .bngh-blog-subcat-strip::-webkit-scrollbar{display:none !important;}

    .bngh-subcat-tab{font-size:12px !important;padding:6px 12px !important;flex-shrink:0 !important;}
}
@media(max-width:480px){

    .bngh-blog-subcat-strip{gap:5px !important;padding:0 0 14px 0 !important;}

    .bngh-subcat-tab{font-size:11px !important;padding:5px 10px !important;border-radius:16px !important;}
}

/* ============================================================
   BLOG POST LAYOUT REDESIGN - Wide Block Width (July 2026)
   Layout: [Main Content ~70%] [Sidebar 300px] - Wide container
   ============================================================ */

/* ── Force full-width #primary on single blog posts ────── */
.single-post #primary.content-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    float: none !important;
    padding: 0 !important;
}

/* ── Breadcrumb (full-width, above layout) ─────────────── */
.single-post .bngh-post-breadcrumb {
    max-width: 1200px !important;
    margin: 0 auto 20px auto !important;
    padding: 0 24px !important;
    font-size: 13px !important;
    color: #666 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.single-post .bngh-post-breadcrumb a {
    color: #17233d !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}
.single-post .bngh-post-breadcrumb a:hover { color: #6659d9 !important; }
.single-post .bngh-post-breadcrumb .bngh-bc-sep { color: #aaa !important; margin: 0 2px !important; }
.single-post .bngh-post-breadcrumb .bngh-bc-current { color: #6659d9 !important; font-weight: 600 !important; }

/* ── Two-column flex layout ────────────────────────────── */
.single-post #main .bngh-post-layout {
    display: flex !important;
    flex-direction: row !important;
    gap: 40px !important;
    max-width: 1200px !important;
    margin: 0 auto 48px auto !important;
    padding: 0 24px !important;
    align-items: flex-start !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ── Main content (left column) ────────────────────────── */
.single-post #main .bngh-post-main {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    order: 1 !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
}

/* ── Sidebar (right column 300px) ───────────────────────── */
.single-post #main .bngh-blog-sidebar {
    flex: 0 0 300px !important;
    width: 300px !important;
    min-width: 300px !important;
    order: 2 !important;
    position: sticky !important;
    top: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Featured image: full-width, large ─────────────────── */
.single-post .bngh-post-main .inside-article {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.single-post .bngh-post-main .featured-image,
.single-post .bngh-post-main .post-image,
.single-post .bngh-post-main .grid-container.grid-parent {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}
.single-post .bngh-post-main .featured-image img,
.single-post .bngh-post-main .post-image img,
.single-post .bngh-post-main .wp-post-image {
    width: 100% !important;
    height: 400px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block !important;
    margin: 0 !important;
}

/* ── H1 Title ──────────────────────────────────────────── */
.single-post .bngh-post-main .entry-header {
    padding: 20px 0 0 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}
.single-post .bngh-post-main .entry-title,
.single-post .bngh-post-main h1.entry-title {
    font-family: 'Inter var', sans-serif !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #17233d !important;
    line-height: 1.3 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    display: block !important;
    background: none !important;
    border: none !important;
    text-shadow: none !important;
    transform: none !important;
}

/* ── Post meta row (badge, date, author, reading time) ── */
.single-post .bngh-blog-post-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 0 24px 0 !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #e5e7eb !important;
    font-size: 13px !important;
    color: #666 !important;
}
.single-post .bngh-blog-post-meta .bngh-post-cat-label {
    background: #6659d9 !important;
    color: #fff !important;
    padding: 4px 14px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .3px !important;
    text-decoration: none !important;
}
.single-post .bngh-blog-post-meta .bngh-post-date { font-weight: 500 !important; }
.single-post .bngh-blog-post-meta .bngh-post-author { font-weight: 500 !important; }
.single-post .bngh-blog-post-meta .bngh-reading-time { font-weight: 500 !important; }
.single-post .bngh-blog-post-meta .bngh-post-date::before,
.single-post .bngh-blog-post-meta .bngh-post-author::before,
.single-post .bngh-blog-post-meta .bngh-reading-time::before {
    content: "\2022" !important;
    margin-right: 8px !important;
    color: #ccc !important;
    font-weight: 400 !important;
}
.single-post .bngh-blog-post-meta .bngh-post-cat-label + .bngh-post-date::before { display: none !important; }

/* ── Entry content ─────────────────────────────────────── */
.single-post .bngh-post-main .entry-content {
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #334155 !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
.single-post .bngh-post-main .entry-content h2 {
    font-family: 'Inter var', sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #17233d !important;
    margin: 32px 0 14px 0 !important;
}
.single-post .bngh-post-main .entry-content h3 {
    font-family: 'Inter var', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #17233d !important;
    margin: 24px 0 10px 0 !important;
}
.single-post .bngh-post-main .entry-content p {
    margin: 0 0 18px 0 !important;
    color: #475569 !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
}

/* ── Sidebar widgets ────────────────────────────────────── */
.single-post .bngh-blog-sidebar { background: transparent !important; }
.single-post .bngh-blog-sidebar .bngh-sidebar-widget {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 24px !important;
}
.single-post .bngh-blog-sidebar .bngh-sidebar-heading {
    font-family: 'Inter var', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #17233d !important;
    margin: 0 0 14px 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #f0f0f0 !important;
}
.single-post .bngh-sidebar-search {
    display: flex !important;
    gap: 0 !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}
.single-post .bngh-sidebar-search input[type="search"] {
    flex: 1 !important;
    border: none !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    color: #333 !important;
    outline: none !important;
    background: #fff !important;
    min-width: 0 !important;
}
.single-post .bngh-sidebar-search button {
    background: #17233d !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: background .2s !important;
}
.single-post .bngh-sidebar-search button:hover { background: #6659d9 !important; }
.single-post .bngh-sidebar-recent { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.single-post .bngh-sidebar-recent li { border-bottom: 1px solid #f0f0f0 !important; padding: 10px 0 !important; }
.single-post .bngh-sidebar-recent li:last-child { border-bottom: none !important; padding-bottom: 0 !important; }
.single-post .bngh-sidebar-recent a {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #17233d !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
    display: block !important;
    transition: color .2s !important;
}
.single-post .bngh-sidebar-recent a:hover { color: #6659d9 !important; }
.single-post .bngh-sidebar-cats { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.single-post .bngh-sidebar-cats li { padding: 6px 0 !important; border-bottom: 1px solid #f5f5f5 !important; }
.single-post .bngh-sidebar-cats li:last-child { border-bottom: none !important; }
.single-post .bngh-sidebar-cats a {
    font-size: 13px !important;
    color: #475569 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: color .2s !important;
}
.single-post .bngh-sidebar-cats a::before { content: "\2022" !important; color: #6659d9 !important; font-size: 16px !important; }
.single-post .bngh-sidebar-cats a:hover { color: #6659d9 !important; }
.single-post .bngh-sidebar-archives { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.single-post .bngh-sidebar-archives li { padding: 5px 0 !important; }
.single-post .bngh-sidebar-archives a { font-size: 13px !important; color: #475569 !important; text-decoration: none !important; }
.single-post .bngh-sidebar-archives a:hover { color: #6659d9 !important; }

/* Hide any GP sidebar duplicates */
.single-post #right-sidebar,
.single-post #left-sidebar,
.single-post .sidebar,
.single-post .widget-area:not(.bngh-blog-sidebar) { display: none !important; }

/* ── RESPONSIVE: Tablet (max 1024px) ─────────────────────── */
@media(max-width: 1024px) {

    .single-post #main .bngh-post-layout { gap: 28px !important; }

    .single-post #main .bngh-blog-sidebar {
        flex: 0 0 260px !important;
        width: 260px !important;
        min-width: 260px !important;
    }

    .single-post .bngh-post-main .featured-image img,
    .single-post .bngh-post-main .wp-post-image { height: 320px !important; }

    .single-post .bngh-post-main .entry-title,
    .single-post .bngh-post-main h1.entry-title { font-size: 24px !important; }
}

/* ── RESPONSIVE: Mobile (max 768px) ─────────────────────── */
@media(max-width: 768px) {

    .single-post #primary.content-area { width: 100% !important; max-width: 100% !important; }

    .single-post #main .bngh-post-layout {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 16px !important;
        margin: 0 auto 32px auto !important;
    }

    .single-post #main .bngh-post-main { order: 1 !important; width: 100% !important; }

    .single-post #main .bngh-blog-sidebar {
        order: 2 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        position: static !important;
        margin-top: 40px !important;
        padding-top: 28px !important;
        border-top: 2px solid #e5e7eb !important;
    }

    .single-post .bngh-post-main .featured-image img,
    .single-post .bngh-post-main .wp-post-image { height: 220px !important; border-radius: 10px !important; }

    .single-post .bngh-post-main .entry-title,
    .single-post .bngh-post-main h1.entry-title { font-size: 22px !important; }

    .single-post .bngh-blog-post-meta { gap: 8px !important; font-size: 12px !important; }

    .single-post .bngh-post-breadcrumb { padding: 0 16px !important; font-size: 12px !important; }
}

/* ── RESPONSIVE: Small mobile (max 480px) ───────────────── */
@media(max-width: 480px) {

    .single-post .bngh-post-main .featured-image img,
    .single-post .bngh-post-main .wp-post-image { height: 190px !important; }

    .single-post .bngh-post-main .entry-title,
    .single-post .bngh-post-main h1.entry-title { font-size: 20px !important; }

    .single-post #main .bngh-post-layout { padding: 0 12px !important; }
}


/* ============================================================
   COMPREHENSIVE RESPONSIVE FIXES - Aug 2026
   ============================================================ */

/* Prevent horizontal overflow globally (overflow-x:hidden only clips visible
   scrollbars from any stray wide content; it must NOT cap max-width, since an
   ID-selector max-width:100vw here out-specifies (and silently defeats) the
   page-specific 1200px container rules e.g. ".blog .site.grid-container", which
   was collapsing the Blog/Archive wide container onto the left edge of the
   viewport instead of centering it - the reported bug). */
body{overflow-x:hidden!important;}
#page{overflow-x:hidden!important;}
.site-content{overflow-x:hidden!important;}
.entry-content{overflow-x:hidden!important;}
#main.site-main{overflow-x:hidden!important;}

/* Category tab strip - scrollable on mobile, wrap on desktop */
@media(max-width:768px){

    .bngh-blog-cat-strip{
        flex-wrap:nowrap!important;
        gap:6px!important;
        padding:0 0 16px 0!important;
        margin:0 0 28px 0!important;
        overflow-x:auto!important;
        scrollbar-width:none!important;
        -ms-overflow-style:none!important;
        -webkit-overflow-scrolling:touch!important;
    }

    .bngh-blog-cat-strip::-webkit-scrollbar{display:none!important;}

    .bngh-cat-tab{flex-shrink:0!important;padding:7px 14px!important;font-size:12px!important;}
}

@media(max-width:480px){

    .bngh-blog-cat-strip{
        gap:5px!important;
        padding:0 0 12px 0!important;
        margin:0 0 24px 0!important;
    }

    .bngh-cat-tab{padding:6px 12px!important;font-size:11px!important;border-radius:18px!important;}
}

/* Blog grid max-width on mobile */
@media(max-width:768px){

    .bngh-blog-grid{max-width:100%!important;padding:0 12px!important;}

    .bngh-blog-pagination{max-width:100%!important;}

    .bngh-blog-page-header{padding:0 12px!important;}

    .bngh-blog-breadcrumb{padding:0 12px!important;}
}

@media(max-width:480px){

    .bngh-blog-grid{padding:0 8px!important;}

    .bngh-blog-page-header{padding:0 8px!important;}

    .bngh-blog-breadcrumb{padding:0 8px!important;}
}

/* Deal card proper sizing on mobile */


/* Ensure images never cause overflow */
.bngh-blog-card img{max-width:100%!important;}
.bngh-related-card img{max-width:100%!important;}

/* Blog post layout responsive */
@media(max-width:768px){

    .bngh-post-layout{display:block!important;}

    .bngh-post-main{width:100%!important;max-width:100%!important;}

    .bngh-blog-sidebar{width:100%!important;max-width:100%!important;margin-top:32px!important;}

    .bngh-blog-sidebar .bngh-sidebar-card{max-width:100%!important;}
}

/* Table responsive */
table{max-width:100%!important;}

/* Product pick responsive */


/* No-posts message responsive */
@media(max-width:480px){

    .bngh-no-posts-msg{padding:32px 16px!important;}

    .bngh-no-posts-msg h2{font-size:20px!important;}

    .bngh-no-posts-msg p{font-size:14px!important;}

    .bngh-no-posts-btn-row{flex-direction:column!important;gap:10px!important;}

    .bngh-no-posts-browse-btn,.bngh-no-posts-parent-btn{width:100%!important;text-align:center!important;}
}

/* ============================================================
   RELATED GUIDES CAROUSEL (reference post page spec)
   ============================================================ */
.bngh-related-carousel-wrap {
    max-width: 1200px;
    margin: 48px auto 0;
    padding: 0 24px;
    position: relative;
}
.bngh-related-carousel-wrap h2 {
    font-size: 28px;
    color: #17233d;
    margin-bottom: 24px;
    text-align: center;
    font-family: 'Inter var', sans-serif;
    letter-spacing: -0.03em;
}
.bngh-related-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}
.bngh-carousel-viewport {
    overflow-x: auto;
    flex: 1;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.bngh-carousel-viewport::-webkit-scrollbar { display: none; }
.bngh-carousel-track {
    display: flex;
    gap: 24px;
    will-change: transform;
}
.bngh-carousel-slide {
    flex: 0 0 calc(50% - 12px);
    min-width: calc(50% - 12px);
    box-sizing: border-box;
    scroll-snap-align: start;
}
.bngh-carousel-arrow {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #17233d;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s;
    z-index: 2;
}
.bngh-carousel-arrow:hover { background: #6659d9; }
.bngh-carousel-arrow:disabled { opacity: 0.3; cursor: default; }
.bngh-related-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
    display: block;
}
.bngh-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.bngh-related-card .img-wrap {
    height: 180px;
    background: #f8f9fb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.bngh-related-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.bngh-related-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6659d9 0%, #8b80ee 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    font-family: 'Inter var', sans-serif;
}
.bngh-related-card .body { padding: 20px; }
.bngh-related-card .cat {
    font-size: 12px;
    font-weight: 700;
    color: #6659d9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.bngh-related-card h3 { font-size: 16px; color: #17233d; margin-bottom: 8px; line-height: 1.3; }
.bngh-related-card p { font-size: 14px; color: #6b7280; line-height: 1.5; margin-bottom: 12px; }
.bngh-related-card .read { font-size: 14px; font-weight: 600; color: #6659d9; }

@media (max-width: 768px) {
    .bngh-carousel-slide { flex: 0 0 78%; min-width: 78%; }
    .bngh-carousel-arrow { width: 36px; height: 36px; flex-basis: 36px; font-size: 15px; }
    .bngh-related-carousel-wrap { padding: 0 12px; }
}
@media (max-width: 480px) {
    .bngh-carousel-slide { flex: 0 0 85%; min-width: 85%; }
    .bngh-related-carousel-wrap h2 { font-size: 22px; }
    .bngh-related-card .img-wrap { height: 140px !important; }
}

/* ============================================================
   BNGH-SPECIFIC ADDITIONS
   ============================================================ */

/* FAQ answers containing paragraphs */
.bngh-faq-answer p { margin: 0 0 8px 0; }
.bngh-faq-answer p:last-child { margin-bottom: 0; }

/* Anchor offset for the sticky site header */
.single-post .entry-content h2[id], .single-post .entry-content h3[id] { scroll-margin-top: 96px; }

/* Sticky sidebar below the 70px site header */
.single-post #main .bngh-blog-sidebar { top: 90px !important; }

/* Card image placeholder fallback */
.bngh-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6659d9 0%, #8b80ee 100%);
    color: #fff;
    font-size: 44px;
    font-weight: 800;
    font-family: 'Inter var', sans-serif;
}

/* In-content links: accent color, underline on hover (reference behavior) */
.single-post .entry-content a {
    color: #6659d9;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
}
.single-post .entry-content a:hover {
    color: #584cc6;
    text-decoration: underline;
}

/* No posts yet message */
.bngh-no-posts-msg {
    text-align: center;
    padding: 48px 24px;
    border: 1px solid #e4e8f1;
    border-radius: 12px;
    background: #fff;
    margin: 0 0 56px 0;
}
.bngh-no-posts-msg h2 { font-size: 22px; color: #17233d; margin: 0 0 10px 0; }
.bngh-no-posts-msg p { font-size: 14px; color: #63708a; line-height: 1.6; margin: 0 0 20px 0; }
.bngh-no-posts-btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.bngh-no-posts-browse-btn, .bngh-no-posts-parent-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
}
.bngh-no-posts-browse-btn { background: #17233d; color: #fff !important; }
.bngh-no-posts-parent-btn { background: #6659d9; color: #fff !important; }
.bngh-no-posts-browse-btn:hover, .bngh-no-posts-parent-btn:hover { opacity: 0.92; }
