/* استایل اختصاصی لیست وبلاگ قالب جدید */

.blog-section {
    width: 98%;
    margin: 20px auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.blog-header-title {
    border-bottom: 2px solid #0066cc;
    padding-bottom: 12px;
    margin-bottom: 25px;
}

.blog-header-title h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0066cc;
    font-size: 20px;
    font-weight: bold;
}

.blog-header-title h2 svg {
    stroke: #0066cc;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #edf0f2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.blog-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #f0f2f5;
    overflow: hidden;
}

.blog-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-img-wrap img {
    transform: scale(1.04);
}

.blog-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    gap: 12px;
}

.blog-card-body h3 {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-body h3 a {
    color: #222;
    transition: color 0.2s;
}

.blog-card-body h3 a:hover {
    color: #0066cc;
}

.blog-btn-wrap {
    border-top: 1px solid #edf0f2;
    padding-top: 10px;
}

.read-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f0f4f8;
    color: #0066cc;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.read-more-btn:hover {
    background: #0066cc;
    color: #ffffff;
}

.read-more-btn svg {
    transition: transform 0.2s ease;
}

.read-more-btn:hover svg {
    transform: translateX(-3px);
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 12px;
    }

    .blog-header-title h2 {
        font-size: 18px;
    }
}