/* blog.css - استایل‌های اختصاصی وبلاگ */

/* بخش هیرو بلاگ */
.blog-hero {
    text-align: center;
    padding: 80px 20px;
    /* رنگ آبی روشن */
    background: #e0f2fe;
    border-bottom: 3px solid #3b82f6;
}

.blog-hero h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #1e3a8a;
    font-weight: 800;
}

.blog-hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    color: #4b5563;
}

/* لیست مقالات */
.posts-list {
    padding: 60px 20px;
    background-color: #ffffff;
}

.post-grid {
    display: grid;
    /* سه ستون در دسکتاپ */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background-color: #f7f9fb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.post-image-placeholder {
    width: 100%;
    height: 180px;
    background-color: #cfd8dc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #607d8b;
    font-weight: bold;
}

.post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-content h3 {
    color: #1e3a8a;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
}

.post-content p {
    color: #555;
    font-size: 16px;
    line-height: 1.5;
    flex-grow: 1;
}

.post-meta {
    display: block;
    margin-top: 15px;
    font-size: 13px;
    color: #f59e0b;
    /* رنگ نارنجی تم اصلی */
    font-weight: 500;
    border-top: 1px dashed #eee;
    padding-top: 10px;
}


/* ریسپانسیو بلاگ */
@media (max-width: 992px) {

    .post-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 600px) {

    .post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Pagination - صفحه بندی */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.page-link {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    color: #1e3a8a;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.page-link.active {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
    cursor: default;
}