﻿/* بخش وبلاگ */
.blog-section {
    width: 36%;
    padding-right: 1rem;
    padding-left: 1rem;
    flex-shrink: 0;
    min-width: 340px;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #66BBFF;
}

.blog-view-all {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #66BBFF;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.875rem;
    font-family: 'Vazirmatn', sans-serif;
}

@media (min-width: 768px) {
    .blog-view-all {
        font-size: 1rem;
    }
}

.blog-view-all:hover {
    color: #33A8FF;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-card {
    background: rgba(42,42,42,0.5);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.blog-card:hover {
    border-color: rgba(0, 140, 255, 0.3);
}

.blog-card-image {
    width: 100% !important;
    height: 150px !important;
    object-fit: cover !important;
    display: block !important;
}

.blog-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26,26,26,0.3);
    backdrop-filter: blur(8px);
    padding: 0.5rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.blog-card-title-box {
    flex: 1;
    padding-left: 0.5rem;
}

.blog-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f8fafc;
    line-height: 1.4;
    font-family: 'Vazirmatn', sans-serif;
}

@media (min-width: 768px) {
    .blog-card-title {
        font-size: 1rem;
    }
}

.blog-card-date-box {
    background: rgba(26,26,26,0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    flex-shrink: 0;
}

.blog-card-date {
    font-size: 0.75rem;
    color: #cbd5e1;
    white-space: nowrap;
    font-family: 'Vazirmatn', sans-serif;
}

@media (min-width: 768px) {
    .blog-card-date {
        font-size: 0.875rem;
    }
}

@media (max-width: 1100px) {
    .blog-section {
        width: 100%;
        min-width: 0;
        padding-right: 0;
        padding-left: 0;
        margin-top: 2rem;
        box-sizing: border-box;
    }
}
