/* تنظیم پایه و box-sizing */
*,
*:before,
*:after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: 'Vazir', sans-serif;
}

/* کارت لوکس پایه */
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    padding: 20px;
    border: 2px solid #00bfff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: #00bfff;
}

/* کارت تمام عرض */
.full-width {
    width: 100%;
}

/* هدر کارت: تصویر و اطلاعات */
.post-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    border-bottom: 1px solid #00bfff;
    padding-bottom: 10px;
}

/* تصویر سمت چپ */
.post-image-left img,
.post-image img,
.magazine-post img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* اطلاعات سمت راست */
.post-info-right {
    flex: 1;
    text-align: right;
}

/* تیتر و تاریخ */
.post-title {
    color: #0a4c86;
    font-size: 1.6rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}
.post-date {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

/* متن پست */
.post-content {
    margin-top: 15px;
    padding: 0 10px;
    text-align: justify;
    line-height: 1.7;
    color: #333;
}

/* دکمه ادامه مطلب */
.read-more {
    display: inline-block;
    margin: 20px 0 0 0;
    padding: 10px 22px;
    background: linear-gradient(135deg, #00bfff, #1389b1);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.read-more:hover {
    background: linear-gradient(135deg, #00bfff, #1389b1);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* کانتینر مجله */
.magazine-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    align-items: stretch; 
}

.magazine-content {
    flex: 3;
}

.magazine-sidebar {
    flex: 1;
    background: #f7f7f7;
    padding: 10px;
    border-radius: 8px;
}

/* عنوان و لیست سایدبار */
.magazine-sidebar h3 {
    margin-bottom: 0px;
    color: #0a4c86;
    font-weight: 600;
}
.magazine-sidebar ul {
    list-style: none;
    padding: 0;
}
.magazine-sidebar li {
    margin-bottom: 10px;
}
.magazine-sidebar a {
    color: #0a4c86;
    text-decoration: none;
    transition: color 0.2s ease;
}
.magazine-sidebar a:hover {
    color: #00bfff;
}

/* کارت‌ها در کنار هم */
.magazine-post {
    margin-bottom: 30px;
}

/* ریسپانسیو موبایل و تبلت */
@media (max-width: 992px) {
    .magazine-container {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    
    }

    .magazine-sidebar {
        order: 1;
        width: 100%;
        margin: 0;
    }

    .post-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 15px;
    }

    .post-info-right {
        text-align: center;
        margin-top: 10px;
    }

    .post-image-left img,
    .post-image img,
    .magazine-post img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .date {
        font-size: 0.9em;
        color: #777;
    }
    .read-more {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }

    .post-content {
        padding: 0; /* حذف padding اضافی */
    }
}
