﻿/* ======= Blog fixed 4-items row ======= */
.fixed-row-blog {
    padding: 40px 0;
}

/* تغییر پس‌زمینه دلخواه این باکس */
.fixed-row-blog .blog-inner {
    background: linear-gradient(135deg,#4B79A1,#283E51);
    border-radius: 20px;
    padding: 22px;
    border: 5px solid #8ef6ff;
    
    color: #fff;
}

/* هدر */
.blog-header {
    font-family: "Vazirmatn", sans-serif;
    margin-bottom: 18px;
}

.blog-title {
    font-family: "Vazirmatn", sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #8ef6ff;
    text-shadow: 0 0 12px rgba(142,246,255,0.12);
    margin: 0;
}

.blog-more {
    color: #ffffff;
    border-color: rgba(255,255,255,0.18);
}

/* گرید: یک ردیف 4 تایی ثابت */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: start;
}

/* کارت */
.blog-card {
    display: block;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.12));
    border-radius: 14px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255,255,255,0.04);
    transition: transform .28s ease, box-shadow .28s ease;
    overflow: hidden;
}

/* hover مثل پیشنهاد ویژه (scale + glow) */
.blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 14px 40px rgba(0,200,255,0.12), 0 8px 18px rgba(0,0,0,0.6);
}

/* تصویر */
.blog-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 10px;
}

/* عنوان و خلاصه */
.blog-card h3 {
    font-size: 16px;
    margin: 6px 0 4px;
    line-height: 1.25;
    font-weight: 700;
    color: #e8ffff;
}

.blog-card .excerpt {
    font-size: 13px;
    color: rgba(235,245,255,0.85);
    margin: 0;
    height: 36px; /* کوتاه نگه داشتن تعداد خطوط */
    overflow: hidden;
}

/* responsive: در موبایل یک ستون، تبلت دو ستون */
@media (max-width: 992px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .blog-grid { grid-template-columns: repeat(1, 1fr); }
    .blog-card img { height: 180px; }
}
