/* ============================================================
   insightsnew.css — Blog listing page (blog.php)
   Load this AFTER bootstrap.min.css and insights.css.
============================================================ */

/* ============================================================
   HEADER: solid black + top bar hides on scroll
============================================================ */
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;
}

/* =========================================================
   BLOG PAGE — every rule is scoped to .vb-page and every
   class starts with "vb-", so nothing here touches the
   header, footer, Bootstrap or insights.css.
========================================================= */

.vb-page{
    /* Height of your header. If the header is position:fixed
       or absolute, keep this; if it sits in normal flow, set 0px. */
    --vb-header-space: 90px;

    --vb-red: #97171d;
    --vb-red-dark: #70090e;
    --vb-blue: #00528c;
    --vb-ink: #111827;
    --vb-text: #656d78;
    --vb-muted: #818894;
    --vb-line: rgba(17,24,39,.08);

    font-family: "Poppins", sans-serif;
    color: var(--vb-ink);
    background: #f7f8fb;
}

/* Scoped reset (low specificity via :where) */
.vb-page *,
.vb-page *::before,
.vb-page *::after{
    box-sizing: border-box;
}

.vb-page :where(h1, h2, h3, p){
    margin: 0;
    padding: 0;
}

.vb-page img{
    max-width: 100%;
}

.vb-page a{
    text-decoration: none;
}


/* =========================================
   HERO BANNER
========================================= */

.vb-page .vb-hero{
    position: relative;
    min-height: 520px;
    padding: var(--vb-header-space) 20px 0;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(circle at top left, #500000 0%, transparent 35%),
        radial-gradient(circle at bottom right, #002a52 0%, transparent 35%),
        #000000;
}

/* Grid texture */
.vb-page .vb-hero::before{
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Glow */
.vb-page .vb-hero::after{
    content: "";
    position: absolute;
    width: 650px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(255,255,255,.06), transparent 70%);
}

.vb-page .vb-hero-content{
    position: relative;
    z-index: 5;
    text-align: center;
}

.vb-page .vb-hero-content h1{
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: clamp(44px, 5vw, 68px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 7px;
}

.vb-page .vb-hero-line{
    width: 55px;
    height: 2px;
    margin: 22px auto 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #99171d, #fff, var(--vb-blue));
}


/* =========================================
   MAIN BLOG SECTION
========================================= */

.vb-page .vb-section{
    padding: 75px 40px 90px;
    background: linear-gradient(180deg, #fff 0%, #f7f8fb 100%);
}

.vb-page .vb-wrapper{
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 35px;
    align-items: start;
}


/* =========================================
   BLOG GRID
========================================= */

.vb-page .vb-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.vb-page .vb-empty{
    display: none;
    grid-column: 1 / -1;
    padding: 50px 20px;
    text-align: center;
    color: var(--vb-muted);
    font-size: 14px;
    background: #fff;
    border: 1px dashed rgba(17,24,39,.15);
    border-radius: 15px;
}

.vb-page .vb-empty.vb-show{
    display: block;
}


/* =========================================
   BLOG CARD
========================================= */

.vb-page .vb-card{
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background: #fff;
    border: 1px solid var(--vb-line);
    border-radius: 15px;
    box-shadow:
        0 3px 10px rgba(0,0,0,.025),
        0 15px 35px rgba(0,0,0,.045);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.vb-page .vb-card:hover{
    transform: translateY(-7px);
    border-color: rgba(145,21,27,.18);
    box-shadow:
        0 15px 30px rgba(0,0,0,.07),
        0 25px 55px rgba(0,0,0,.07);
}

.vb-page .vb-card.vb-is-hidden{
    display: none;
}


/* IMAGE */

.vb-page .vb-card-image{
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #eee;
}

.vb-page .vb-card-image img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .6s ease;
}

.vb-page .vb-card:hover .vb-card-image img{
    transform: scale(1.06);
}

.vb-page .vb-card-image::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.25), transparent 60%);
    opacity: 0;
    transition: opacity .4s ease;
}

.vb-page .vb-card:hover .vb-card-image::after{
    opacity: 1;
}

.vb-page .vb-badge{
    position: absolute;
    z-index: 3;
    bottom: 15px;
    left: 15px;

    padding: 6px 12px;
    border-radius: 30px;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(8px);

    color: #fff;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* CONTENT */

.vb-page .vb-card-content{
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 20px;
}

.vb-page .vb-date{
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 13px;
    color: var(--vb-muted);
    font-size: 11px;
}

.vb-page .vb-date i{
    color: var(--vb-red);
}

.vb-page .vb-title{
    display: block;
    margin-bottom: 13px;
    color: var(--vb-ink);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    transition: color .25s ease;
}

.vb-page .vb-title:hover{
    color: #94151b;
}

.vb-page .vb-desc{
    margin-bottom: 22px;
    color: var(--vb-text);
    font-size: 12.5px;
    line-height: 1.85;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* CARD FOOTER */

.vb-page .vb-card-footer{
    margin-top: auto;
    padding-top: 17px;
    border-top: 1px solid #eee;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.vb-page .vb-author{
    display: flex;
    align-items: center;
    gap: 8px;
    color: #777f8b;
    font-size: 11px;
}

.vb-page .vb-author-icon{
    width: 29px;
    height: 29px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #f4e8e9;
    color: #96161c;
}

.vb-page .vb-read-more{
    display: flex;
    align-items: center;
    gap: 6px;
    color: #95171d;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.vb-page .vb-read-more:hover{
    color: var(--vb-blue);
}

.vb-page .vb-read-more i{
    font-size: 10px;
    transition: transform .3s ease;
}

.vb-page .vb-read-more:hover i{
    transform: translateX(4px);
}


/* =========================================
   SIDEBAR
========================================= */

.vb-page .vb-sidebar{
    position: sticky;
    top: calc(var(--vb-header-space) + 20px);
}

.vb-page .vb-search,
.vb-page .vb-box{
    background: #fff;
    border: 1px solid var(--vb-line);
    border-radius: 16px;
    box-shadow:
        0 4px 10px rgba(0,0,0,.025),
        0 15px 35px rgba(0,0,0,.04);
}

.vb-page .vb-search{
    margin-bottom: 22px;
    padding: 22px;
}

.vb-page .vb-box{
    padding: 25px;
}

.vb-page .vb-box-title{
    margin-bottom: 22px;
    color: var(--vb-ink);
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}


/* SEARCH */

.vb-page .vb-search-form{
    display: flex;
    gap: 8px;
}

.vb-page .vb-search-form input{
    min-width: 0;
    flex: 1;
    height: 44px;
    padding: 0 14px;

    border: 1px solid #e1e5eb;
    border-radius: 8px;
    outline: none;
    background: #fff;

    color: var(--vb-ink);
    font-family: "Poppins", sans-serif;
    font-size: 12px;

    transition: border-color .25s ease, box-shadow .25s ease;
}

.vb-page .vb-search-form input:focus{
    border-color: #9c171e;
    box-shadow: 0 0 0 3px rgba(156,23,30,.07);
}

.vb-page .vb-search-form button{
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    padding: 0;

    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #750b10, #a51820);

    color: #fff;
    cursor: pointer;
    transition: background .3s ease;
}

.vb-page .vb-search-form button:hover{
    background: #00375f;
}


/* CATEGORIES */

.vb-page .vb-category-list{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vb-page .vb-cat-btn{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 13px 15px;
    border: 0;
    border-radius: 9px;
    background: transparent;

    color: #525c6c;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;

    cursor: pointer;
    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}

.vb-page .vb-cat-btn:hover{
    color: #92151b;
    background: #f9eeee;
    transform: translateX(3px);
}

.vb-page .vb-cat-btn.vb-active{
    color: #fff;
    background: linear-gradient(135deg, var(--vb-red-dark), #a51921);
    box-shadow: 0 7px 18px rgba(120,10,15,.16);
}

.vb-page .vb-cat-btn i{
    font-size: 10px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .25s ease, transform .25s ease;
}

.vb-page .vb-cat-btn:hover i,
.vb-page .vb-cat-btn.vb-active i{
    opacity: 1;
    transform: translateX(0);
}

.vb-page .vb-cat-btn:focus-visible,
.vb-page .vb-search-form button:focus-visible,
.vb-page .vb-title:focus-visible,
.vb-page .vb-read-more:focus-visible{
    outline: 2px solid var(--vb-blue);
    outline-offset: 2px;
}


/* Clickable thumbnail + fallback when a post has no / broken image */

.vb-page a.vb-card-image{
    display: block;
}

.vb-page .vb-card-image.vb-no-image{
    background:
        radial-gradient(circle at top left, #500000 0%, transparent 45%),
        radial-gradient(circle at bottom right, #002a52 0%, transparent 45%),
        #000000;
}

.vb-page .vb-card-image.vb-no-image::before{
    content: "\f1ea";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    color: rgba(255,255,255,.35);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 34px;
}

.vb-page .vb-count{
    margin-left: 4px;
    font-style: normal;
    font-size: 11px;
    opacity: .65;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1200px){

    .vb-page .vb-wrapper{
        grid-template-columns: minmax(0, 1fr) 270px;
    }

    .vb-page .vb-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 900px){

    .vb-page .vb-hero{
        min-height: 420px;
    }

    .vb-page .vb-wrapper{
        grid-template-columns: 1fr;
    }

    .vb-page .vb-sidebar{
        position: static;
        grid-row: 1;
    }

    .vb-page .vb-category-list{
        flex-direction: row;
        flex-wrap: wrap;
    }

    .vb-page .vb-cat-btn{
        width: auto;
        padding: 11px 17px;
    }

    .vb-page .vb-cat-btn i{
        display: none;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px){

    .vb-page{
        --vb-header-space: 70px;
    }

    .vb-page .vb-hero{
        min-height: 340px;
    }

    .vb-page .vb-hero-content h1{
        font-size: 38px;
        letter-spacing: 4px;
    }

    .vb-page .vb-section{
        padding: 40px 16px 60px;
    }

    .vb-page .vb-wrapper{
        gap: 25px;
    }

    .vb-page .vb-grid{
        grid-template-columns: 1fr;
    }

    .vb-page .vb-box{
        padding: 18px;
    }

    .vb-page .vb-category-list{
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: none;
    }

    .vb-page .vb-category-list::-webkit-scrollbar{
        display: none;
    }

    .vb-page .vb-cat-btn{
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .vb-page .vb-card-image{
        height: 210px;
    }

}

@media (prefers-reduced-motion: reduce){

    .vb-page *,
    .vb-page *::before,
    .vb-page *::after{
        transition: none !important;
    }

}