﻿
.news-details-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 30px auto 50px;
    padding: 0 15px;
    direction: rtl;
}

.news-details-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
    border: 1px solid #eee;
}

/* نوار بالای خبر */
.news-details-top {
    height: 7px;
    background: linear-gradient(90deg, #12635e, #d49a32, #12635e);
}

/* عنوان */
.news-details-title {
    padding: 25px 30px 10px;
    text-align: right;
}

    .news-details-title h1 {
        margin: 0;
        color: #263638;
        font-size: 27px;
        font-weight: 800;
        line-height: 1.8;
    }

/* اطلاعات خبر */
.news-meta {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 5px 30px 22px;
    color: #777;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

    .news-meta span {
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .news-meta i {
        color: #12635e;
        font-size: 15px;
    }

/* تصویر */
.news-image-box {
    width: 100%;
    padding: 25px 30px 10px;
    text-align: center;
}

    .news-image-box img {
        width: 100%;
        max-height: 520px;
        object-fit: cover;
        border-radius: 14px;
        display: block;
        box-shadow: 0 5px 20px rgba(0,0,0,.10);
    }

/* متن خبر */
.news-content {
    padding: 25px 35px 35px;
    color: #424d4f;
    font-size: 16px;
    line-height: 2.3;
    text-align: justify;
}

    .news-content p {
        margin: 0 0 15px;
    }

    /* خط تزئینی */
    .news-content::before {
        content: "";
        display: block;
        width: 65px;
        height: 4px;
        background: #d49a32;
        border-radius: 10px;
        margin-bottom: 20px;
    }

/* دکمه بازگشت */
.news-back {
    padding: 0 30px 30px;
    text-align: left;
}

    .news-back a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        background: #12635e;
        color: #fff !important;
        text-decoration: none;
        border-radius: 10px;
        font-size: 14px;
        transition: .25s;
    }

        .news-back a:hover {
            background: #0d4d49;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(18,99,94,.25);
        }

/* موبایل */
@@media (max-width: 768px) {

    .news-details-wrapper {
        margin: 15px auto 30px;
        padding: 0 10px;
    }

    .news-details-title {
        padding: 20px 18px 8px;
    }

        .news-details-title h1 {
            font-size: 21px;
            line-height: 1.9;
        }

    .news-meta {
        padding: 5px 18px 18px;
        gap: 15px;
        flex-wrap: wrap;
        font-size: 12px;
    }

    .news-image-box {
        padding: 18px 15px 5px;
    }

        .news-image-box img {
            max-height: 350px;
            border-radius: 10px;
        }

    .news-content {
        padding: 20px 18px 25px;
        font-size: 14px;
        line-height: 2.2;
    }

    .news-back {
        padding: 0 18px 22px;
    }

        .news-back a {
            width: 100%;
            justify-content: center;
        }
}

