/* فقط برای صفحه بلاگ (index) */
.vm-blog{
    --b: var(--border, #e5e7eb);
    --m: var(--muted, #6b7280);
    --p: var(--primary, #3b82f6);
    --soft: #f3f8ff;
    --card: #ffffff;
}

/* ====== Section Head ====== */
.vm-blog .vm-sec-head{
    display:flex; align-items:center; justify-content:space-between;
    gap:12px; margin: 8px 0 14px;
}
.vm-blog .vm-sec-title{
    display:flex; align-items:center; gap:10px;
    margin:0; font-weight:950; font-size:18px;
}
.vm-blog .vm-sec-title .vm-badge{
    width:34px; height:34px; border-radius:12px;
    display:grid; place-items:center;
    background: rgba(59,130,246,.12);
    border:1px solid rgba(59,130,246,.25);
    color: var(--p);
}
.vm-blog .vm-sec-more{
    text-decoration:none;
    color: var(--p);
    font-weight:800;
    font-size:13px;
    display:flex; align-items:center; gap:8px;
}

/* ====== HERO (اسکرین‌شات اول) ====== */
.vm-blog .hero-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:14px;
    margin: 10px 0 18px;
}
.vm-blog .hero-card{
    position:relative;
    overflow:hidden;
    border-radius:26px;
    border:1px solid var(--b);
    background:#0b1220;
    color:#fff;
    text-decoration:none;
    min-height: 220px;
    display:flex;
    align-items:flex-end;
    padding:16px;
}
.vm-blog .hero-card__img{
    position:absolute; inset:0;
    width:100%; height:100%;
    object-fit:cover;
    filter: brightness(.85);
    transform: scale(1.02);
    transition: transform .35s ease;
}
.vm-blog .hero-card:hover .hero-card__img{ transform: scale(1.07); }
.vm-blog .hero-card::after{
    content:"";
    position:absolute; inset:0;
    background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.80));
}
.vm-blog .hero-card__content{ position:relative; z-index:1; width:100%; }
.vm-blog .hero-card__meta{
    display:flex; align-items:center; justify-content:space-between;
    gap:10px; font-size:12px; opacity:.95; margin-bottom:10px;
}
.vm-blog .hero-tag{
    display:inline-flex; align-items:center; gap:8px;
    padding:6px 10px;
    border-radius:999px;
    background: rgba(59,130,246,.18);
    border:1px solid rgba(59,130,246,.30);
    color:#fff;
    white-space:nowrap;
}
.vm-blog .hero-date{
    display:inline-flex; align-items:center; gap:6px;
    opacity:.95;
}
.vm-blog .hero-title{
    margin:0;
    font-weight:950;
    font-size:16px;
    line-height:1.7;
}

/* دسکتاپ: 6 کارت مثل اسکرین‌شات اول */
@media (min-width: 992px){
    .vm-blog .hero-grid{
        grid-template-columns: 1.35fr .85fr .85fr 1.05fr;
        grid-auto-rows: 190px;
    }
    .vm-blog .hero-card{ min-height: 190px; }
    .vm-blog .hero-card--1{ grid-column:1; grid-row:1 / span 2; }
    .vm-blog .hero-card--2{ grid-column:2; grid-row:1; }
    .vm-blog .hero-card--3{ grid-column:3; grid-row:1; }
    .vm-blog .hero-card--4{ grid-column:2; grid-row:2; }
    .vm-blog .hero-card--5{ grid-column:3; grid-row:2; }
    .vm-blog .hero-card--6{ grid-column:4; grid-row:1 / span 2; }
}

/* ====== CATEGORIES (قشنگ‌تر از اسکرین‌شات دوم) ====== */
.vm-blog .cats-grid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:12px;
    margin: 10px 0 22px;
}
.vm-blog .cat-tile{
    position:relative;
    display:flex; align-items:center; justify-content:space-between;
    gap:12px;
    padding:16px;
    border-radius:22px;
    border:1px solid var(--b);
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    text-decoration:none;
    color:inherit;
    box-shadow: 0 10px 30px rgba(2, 8, 23, .04);
    transition: transform .2s ease, box-shadow .2s ease;
}
.vm-blog .cat-tile:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(2, 8, 23, .07);
}
.vm-blog .cat-count{
    width:40px; height:40px;
    border-radius:999px;
    display:grid; place-items:center;
    background: rgba(59,130,246,.14);
    border:1px solid rgba(59,130,246,.25);
    color: var(--p);
    font-weight:950;
    flex: 0 0 auto;
}
.vm-blog .cat-name{
    font-weight:900;
    font-size:14px;
    margin:0;
}
.vm-blog .cat-hint{
    margin:6px 0 0;
    font-size:12px;
    color: var(--m);
}
.vm-blog .cat-arrow{
    width:36px; height:36px;
    border-radius:14px;
    display:grid; place-items:center;
    background:#fff;
    border:1px solid var(--b);
    color: var(--p);
    flex: 0 0 auto;
}
@media (min-width: 768px){
    .vm-blog .cats-grid{ grid-template-columns: repeat(5, 1fr); }
}

/* ====== پایین صفحه (اسکرین‌شات سوم) ====== */
.vm-blog .blog-wrap{
    background: var(--soft);
    border:1px solid rgba(59,130,246,.10);
    border-radius:30px;
    padding:16px;
}
.vm-blog .blog-layout{
    display:grid;
    grid-template-columns: 1fr;
    gap:16px;
}
@media (min-width: 992px){
    .vm-blog .blog-layout{ grid-template-columns: 330px 1fr; }
}

.vm-blog .panel{
    background: var(--card);
    border:1px solid var(--b);
    border-radius:24px;
    padding:14px;
}
.vm-blog .panel-head{
    display:flex; align-items:center; justify-content:space-between;
    gap:12px; margin-bottom:12px;
}
.vm-blog .panel-title{
    margin:0; font-size:16px; font-weight:950;
    display:flex; align-items:center; gap:10px;
}
.vm-blog .panel-title .vm-badge{ width:30px; height:30px; border-radius:12px; }

.vm-blog .side-list{ display:flex; flex-direction:column; gap:10px; }
.vm-blog .side-item{
    display:grid; grid-template-columns: 56px 1fr;
    gap:10px;
    padding:10px;
    border-radius:18px;
    border:1px solid rgba(2, 8, 23, .06);
    background:#fff;
    text-decoration:none; color:inherit;
    transition: transform .15s ease;
}
.vm-blog .side-item:hover{ transform: translateY(-1px); }
.vm-blog .side-img{
    width:56px; height:56px; border-radius:16px;
    object-fit:cover; background:#eef6ff; border:1px solid var(--b);
}
.vm-blog .side-title{ margin:0; font-weight:900; font-size:13px; line-height:1.7; }
.vm-blog .side-meta{ margin-top:6px; color:var(--m); font-size:12px; display:flex; gap:10px; align-items:center; }

.vm-blog .follow-box{ display:flex; flex-direction:column; gap:10px; }
.vm-blog .follow-btn{
    display:flex; align-items:center; justify-content:space-between;
    gap:10px;
    padding:12px 14px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.25);
    color:#fff;
    text-decoration:none;
    font-weight:900;
}
.vm-blog .follow-btn small{ font-weight:700; opacity:.9; }
.vm-blog .follow-ig{ background: linear-gradient(90deg, #e1306c, #833ab4); }
.vm-blog .follow-tg{ background: linear-gradient(90deg, #229ED9, #2AABEE); }
.vm-blog .follow-wa{ background: linear-gradient(90deg, #25D366, #1DAA5A); }

/* کارت‌های لیست اصلی */
.vm-blog .posts-grid{
    display:grid;
    grid-template-columns: 1fr;
    gap:14px;
}
@media (min-width: 768px){
    .vm-blog .posts-grid{ grid-template-columns: repeat(3, 1fr); }
}
.vm-blog .post-card{
    background:#fff;
    border:1px solid var(--b);
    border-radius:24px;
    overflow:hidden;
    text-decoration:none;
    color:inherit;
    box-shadow: 0 10px 30px rgba(2, 8, 23, .04);
    transition: transform .2s ease, box-shadow .2s ease;
}
.vm-blog .post-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(2, 8, 23, .07);
}
.vm-blog .post-img{
    width:100%; height:180px;
    object-fit:cover;
    background:#eef6ff;
    display:block;
}
.vm-blog .post-body{ padding:12px 14px 14px; }
.vm-blog .post-title{
    margin:0;
    font-weight:950;
    font-size:14px;
    line-height:1.8;
}
.vm-blog .post-excerpt{
    margin:10px 0 0;
    color:var(--m);
    font-size:12px;
    line-height:1.9;
}
.vm-blog .post-meta{
    margin-top:12px;
    color:var(--m);
    font-size:12px;
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    align-items:center;
}

/* ====== Pagination ====== */
.vm-blog .vm-pagination{
    margin-top: 14px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}
.vm-blog .vm-page{
    width:40px; height:40px;
    border-radius:14px;
    display:grid; place-items:center;
    border:1px solid var(--b);
    background:#fff;
    color:#111827;
    text-decoration:none;
    font-weight:900;
    transition: transform .15s ease, background .15s ease;
}
.vm-blog .vm-page:hover{ transform: translateY(-1px); }
.vm-blog .vm-page.is-active{
    background: var(--p);
    border-color: var(--p);
    color:#fff;
}
.vm-blog .vm-page.is-disabled{
    opacity:.45;
    pointer-events:none;
}
.vm-blog .vm-ellipsis{
    width:40px; height:40px;
    border-radius:14px;
    display:grid; place-items:center;
    color:var(--m);
}
/* ====== Breadcrumb ====== */
.vm-blog .vm-breadcrumb{
    margin: 10px 0 16px;
    background: rgba(2, 8, 23, .03);
    border: 1px solid rgba(2, 8, 23, .06);
    border-radius: 22px;
    padding: 14px 16px;
}

.vm-blog .vm-breadcrumb__inner{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    font-size:13px;
    color: var(--m);
    font-weight:800;
}

.vm-blog .vm-breadcrumb a{
    color: var(--p);
    text-decoration:none;
    font-weight:950;
}

.vm-blog .vm-breadcrumb a:hover{
    text-decoration:underline;
}

.vm-blog .vm-breadcrumb .sep{
    opacity:.55;
    display:inline-flex;
    align-items:center;
    gap:6px;
}

.vm-blog .vm-breadcrumb .sep i{
    font-size:12px;
}
/* ====== Category Page (Blog Category) ====== */
.vm-blog .cat-hero{
    position:relative;
    overflow:hidden;
    border-radius:28px;
    border:1px solid var(--b);
    background: linear-gradient(180deg, #ffffff, #f5faff);
    padding:16px;
    margin: 10px 0 18px;
    box-shadow: 0 10px 30px rgba(2, 8, 23, .04);
}
.vm-blog .cat-hero__inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
}
.vm-blog .cat-hero__left{
    display:flex;
    align-items:center;
    gap:12px;
}
.vm-blog .cat-hero__ic{
    width:46px; height:46px;
    border-radius:18px;
    display:grid; place-items:center;
    background: rgba(59,130,246,.12);
    border:1px solid rgba(59,130,246,.25);
    color: var(--p);
    flex: 0 0 auto;
}
.vm-blog .cat-hero__title{
    margin:0;
    font-weight:950;
    font-size:18px;
    line-height:1.7;
}
.vm-blog .cat-hero__desc{
    margin:6px 0 0;
    color: var(--m);
    font-size:12px;
    line-height:1.9;
}
.vm-blog .cat-hero__right{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}
.vm-blog .cat-stat{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    border-radius:18px;
    border:1px solid rgba(2, 8, 23, .06);
    background:#fff;
    color:#111827;
    font-weight:900;
    font-size:13px;
}
.vm-blog .cat-stat i{ color: var(--p); }
.vm-blog .cat-back{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 12px;
    border-radius:18px;
    border:1px solid rgba(59,130,246,.22);
    background: rgba(59,130,246,.08);
    color: var(--p);
    text-decoration:none;
    font-weight:950;
    font-size:13px;
}
.vm-blog .cat-back:hover{ text-decoration:underline; }

/* active category tile */
.vm-blog .cat-tile.is-active{
    border-color: rgba(59,130,246,.35);
    box-shadow: 0 14px 36px rgba(59,130,246,.10);
}
.vm-blog .cat-tile.is-active .cat-count{
    background: var(--p);
    border-color: var(--p);
    color:#fff;
}
.vm-blog .cat-tile.is-active .cat-arrow{
    border-color: rgba(59,130,246,.35);
}
/* ====== Single Post ====== */
.vm-blog.vm-blog-single .single-layout{
    display:grid;
    grid-template-columns: 1fr;
    gap:16px;
}
@media (min-width: 992px){
    .vm-blog.vm-blog-single .single-layout{
        grid-template-columns: 1fr 330px;
        align-items:start;
    }
}

.vm-blog.vm-blog-single .single-hero{
    border:1px solid var(--b);
    border-radius:30px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    padding:16px;
    box-shadow: 0 10px 30px rgba(2, 8, 23, .04);
    position:relative;
    overflow:hidden;
}
.vm-blog.vm-blog-single .single-hero::after{
    content:"";
    position:absolute; inset:-40px -60px auto auto;
    width:220px; height:220px;
    background: radial-gradient(circle, rgba(59,130,246,.18), rgba(59,130,246,0));
    filter: blur(2px);
}
.vm-blog.vm-blog-single .single-hero__top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
    position:relative;
    z-index:1;
}

.vm-blog.vm-blog-single .single-chip{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:999px;
    background: rgba(59,130,246,.10);
    border:1px solid rgba(59,130,246,.22);
    color: var(--p);
    text-decoration:none;
    font-weight:950;
    font-size:12px;
}
.vm-blog.vm-blog-single .single-meta{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    color: var(--m);
    font-size:12px;
    font-weight:800;
}
.vm-blog.vm-blog-single .single-meta i{ color: rgba(59,130,246,.9); }

.vm-blog.vm-blog-single .single-title{
    margin: 12px 0 0;
    font-weight:950;
    font-size:22px;
    line-height:1.75;
    position:relative;
    z-index:1;
}
@media (min-width: 768px){
    .vm-blog.vm-blog-single .single-title{ font-size:26px; }
}

.vm-blog.vm-blog-single .single-actions{
    display:flex;
    align-items:center;
    gap:8px;
    position:relative;
    z-index:1;
}
.vm-blog.vm-blog-single .icon-btn{
    width:40px; height:40px;
    border-radius:14px;
    display:grid; place-items:center;
    border:1px solid var(--b);
    background:#fff;
    color:#111827;
    text-decoration:none;
    cursor:pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.vm-blog.vm-blog-single .icon-btn:hover{
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(2, 8, 23, .06);
}
.vm-blog.vm-blog-single .icon-btn.is-primary{
    border-color: rgba(59,130,246,.25);
    background: rgba(59,130,246,.08);
    color: var(--p);
}

.vm-blog.vm-blog-single .single-cover{
    margin: 14px 0 0;
    border-radius:30px;
    overflow:hidden;
    border:1px solid var(--b);
    background:#eef6ff;
    box-shadow: 0 10px 30px rgba(2, 8, 23, .04);
}
.vm-blog.vm-blog-single .single-cover img{
    width:100%;
    height:auto;
    display:block;
    object-fit:cover;
}
.vm-blog.vm-blog-single .single-cover figcaption{
    padding:10px 14px;
    font-size:12px;
    color: var(--m);
    background:#fff;
    border-top:1px solid rgba(2, 8, 23, .06);
}

.vm-blog.vm-blog-single .single-article{
    margin-top:14px;
    background:#fff;
    border:1px solid var(--b);
    border-radius:30px;
    padding:16px;
    box-shadow: 0 10px 30px rgba(2, 8, 23, .04);
}

.vm-blog.vm-blog-single .single-footer{
    margin-top:14px;
    padding-top:14px;
    border-top:1px dashed rgba(2, 8, 23, .12);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
}
.vm-blog.vm-blog-single .tag{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:999px;
    border:1px solid rgba(2,8,23,.08);
    background: rgba(2,8,23,.02);
    color:#111827;
    text-decoration:none;
    font-weight:900;
    font-size:12px;
}
.vm-blog.vm-blog-single .tag i{ color: var(--p); }

/* Sidebar */
.vm-blog.vm-blog-single .single-sticky{
    position: sticky;
    top: 18px;
}
.vm-blog.vm-blog-single .cta-card{
    border-radius:24px;
    padding:14px;
    border:1px solid rgba(59,130,246,.18);
    background: linear-gradient(180deg, rgba(59,130,246,.08), rgba(59,130,246,.02));
}
.vm-blog.vm-blog-single .cta-title{
    margin:0;
    font-weight:950;
    font-size:15px;
}
.vm-blog.vm-blog-single .cta-text{
    margin:8px 0 0;
    color: var(--m);
    font-size:12px;
    line-height:1.9;
}
.vm-blog.vm-blog-single .cta-actions{
    margin-top:12px;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}
.vm-blog.vm-blog-single .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:10px 12px;
    border-radius:18px;
    font-weight:950;
    font-size:13px;
    text-decoration:none;
    border:1px solid var(--b);
    background:#fff;
    color:#111827;
}
.vm-blog.vm-blog-single .btn-primary{
    border-color: rgba(59,130,246,.28);
    background: rgba(59,130,246,.10);
    color: var(--p);
}

/* CKEditor-friendly content */
.vm-blog.vm-blog-single .single-content{
    line-height:2.1;
    font-size:15px;
}
.vm-blog.vm-blog-single .single-content p{ margin: 0 0 12px; color:#111827; }
.vm-blog.vm-blog-single .single-content h2{
    margin:18px 0 10px;
    font-size:18px;
    font-weight:950;
    line-height:1.8;
}
.vm-blog.vm-blog-single .single-content h3{
    margin:16px 0 8px;
    font-size:16px;
    font-weight:950;
}
.vm-blog.vm-blog-single .single-content ul,
.vm-blog.vm-blog-single .single-content ol{
    margin: 10px 0 14px;
    padding: 0 18px 0 0;
}
.vm-blog.vm-blog-single .single-content li{ margin:6px 0; }
.vm-blog.vm-blog-single .single-content a{
    color: var(--p);
    font-weight:900;
    text-decoration:none;
}
.vm-blog.vm-blog-single .single-content a:hover{ text-decoration:underline; }

.vm-blog.vm-blog-single .single-content blockquote{
    margin: 14px 0;
    padding: 12px 14px;
    border-radius:18px;
    background: rgba(59,130,246,.06);
    border:1px solid rgba(59,130,246,.16);
    color:#0b1220;
}
.vm-blog.vm-blog-single .single-content img{
    max-width:100%;
    height:auto;
    border-radius:18px;
    border:1px solid rgba(2,8,23,.08);
    background:#eef6ff;
}
.vm-blog.vm-blog-single .single-content figure{ margin: 12px 0; }
.vm-blog.vm-blog-single .single-content figcaption{
    margin-top:8px;
    color: var(--m);
    font-size:12px;
}

.vm-blog.vm-blog-single .single-content table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    margin: 14px 0;
    border:1px solid rgba(2,8,23,.10);
    border-radius:18px;
    overflow:hidden;
}
.vm-blog.vm-blog-single .single-content th,
.vm-blog.vm-blog-single .single-content td{
    padding:10px 12px;
    border-bottom:1px solid rgba(2,8,23,.08);
    font-size:13px;
    vertical-align:top;
}
.vm-blog.vm-blog-single .single-content th{
    background: rgba(2,8,23,.03);
    font-weight:950;
}
.vm-blog.vm-blog-single .single-content tr:last-child td{ border-bottom:none; }

/* LTR blocks inside content (optional) */
.vm-blog.vm-blog-single .single-content [dir="ltr"],
.vm-blog.vm-blog-single .single-content .ltr{
    direction:ltr;
    text-align:left;
}
/* ====== Copy Toast ====== */
.vm-blog .vm-toast{
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    z-index: 9999;

    display:flex;
    align-items:center;
    gap:10px;

    padding: 12px 16px;
    border-radius: 18px;

    background: #d2ffe2;            /* سبز */
    color: #290000;                 /* قرمز */
    border: 1px solid rgba(0,0,0,.08);

    font-weight: 950;
    font-size: 13px;

    box-shadow: 0 14px 36px rgba(2, 8, 23, .16);

    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.vm-blog .vm-toast i{
    color: #dc2626;                 /* آیکن هم قرمز */
}

.vm-blog .vm-toast.is-show{
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.vm-blog .vm-toast i{
    color: var(--p);
}
.vm-blog .vm-toast.is-show{
    opacity: 1;
    transform: translateY(0);
}
