/* فونت و بدنه */
@font-face {
    font-family: IRANSans;
    src: url('../fonts/IRANSansWeb.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'IRANSans', Tahoma, Arial, sans-serif;
    direction: rtl;
    background-color: #f9fafc;
    color: #333;
    margin: 0;
    padding: 20px 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

/* دکمه بازگشت */
.back-link {
    background-color: #1b1b1b;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    padding: 6px 17px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    user-select: none;
    margin-bottom: 30px;
}

.back-link:hover,
.back-link:focus {
    background-color: #494949;
    outline: none;
    color: #ffffff;
}

/* کانتینر هدر: تصویر و متن کنار هم */
.news-header {
    margin-top: 2rem;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: nowrap;
}

/* عکس خبر */
.news-image {
    flex: 1 1 350px;
    /* حداقل 350 */
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-image:hover {
    transform: scale(1.05);
}

/* بخش مقاله: شامل عنوان، متا و متن خبر */
.news-article {
    flex: 2 1 550px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* عنوان خبر */
.news-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 2;
    text-align: justify;
    direction: rtl;
}

/* بخش متا: تاریخ و دسته‌بندی */
.news-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1rem;
    color: #7f8c8d;
    align-items: center;
    flex-wrap: wrap;
    direction: rtl;
    justify-content: flex-start;
}

.news-meta time {
    font-weight: 600;
    font-size: 14px;
}

.news-category {
    background-color: #303030;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    user-select: none;
}

/* متن خبر */
.news-content {
    background-color: white;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.07);
    font-size: 1.15rem;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 40px;
}

/* ریسپانسیو */
@media (max-width: 900px) {
    .news-header {
        flex-direction: column;
        gap: 20px;
    }

    .news-image {
        max-width: 100%;
        width: 100%;
        height: auto;
        border-radius: 12px 12px 0 0;
    }

    .news-article {
        flex: none;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .news-meta {
        justify-content: center;
    }

    .back-link {
        margin-bottom: 20px;
        display: block;
        text-align: center;
    }
}