body {
    background-color: #e9ecef; /* خاکستری عمیق‌تر */
    color: #111;
}
.news-card {
    border: none;
    background: linear-gradient(to right, rgba(114, 113, 110, 0.3) 0%, rgb(255, 239, 226) 100%);
    border-radius: 10px !important;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 15px;
    transition: background 0.2s ease;
}

.news-card:hover {
    background: linear-gradient(to left, rgba(114, 113, 110, 0.3) 0%, rgb(255, 239, 226) 100%);
    transition: 1200ms ;
    border-radius: 15px !important;
}

/* تصویر */
.news-card .card-img-top {
    height: 170px;
    object-fit: cover;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

/* عنوان خبر */
.news-card .card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
    margin-top: 12px;
    margin-bottom: 8px;
    color: #000;
}

/* خلاصه */
.news-card .card-text {
    font-size: 14px;
    line-height: 1.9;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* دکمه رسمی */
.news-card .btn {
    border: 1px solid #b30000 !important;
    background: transparent;
    color: #b30000;
    padding: 8px 18px;
    font-weight: 600;
    width:50%;
    margin:0 auto;
    transition: 0.2s ease;
}

.news-card .btn:hover {
    background: #b30000;
    color: #fff;
}
/*h2 {*/
/*    font-size: 28px;*/
/*    font-weight: 700;*/
/*    border-right: 5px solid #b30000;*/
/*    padding-right: 12px;*/
/*    margin-bottom: 35px;*/
/*}*/

h2::after {
    content: "";
    display: block;
    width: 15%;
    height: 3px;
    background: #0d6efd;
    margin: 20px auto 0;
    border-radius: 2px;
}
.lazy-image {
    filter: blur(8px);
    transition: filter 0.4s ease, opacity 0.4s ease;
    opacity: 0.6;
}

.lazy-image.loaded {
    filter: blur(0);
    opacity: 1;
}
/*new*/

/* ===== کانتینر اصلی ===== */

.news-view {
    max-width: 1100px;
    background: #fdfdfd;
    padding: 50px;
    margin: 60px auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid #ddd;
    position: relative;
}

/* نوار هویتی بالا */
.news-view::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to left, #7a0000, #b30000);
}

/* ===== هدر ===== */

.news-header {
    position: relative;
    padding: 25px;
    background: #f5f5f5;
    border: 1px solid #e2e2e2;
    margin-bottom: 35px;
}

.news-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.9;
    color: #111;
    margin: 0;
    padding-left: 150px;
}

/* تاریخ */
.news-date {
    position: absolute;
    left: 25px;
    bottom: 25px;
    font-size: 14px;
    color: #666;
}

/* ===== بدنه ===== */

.news-body {
    display: flex;
    gap: 45px;
    align-items: flex-start;
}

/* تصویر */
.news-image {
    flex: 0 0 42%;
    background: #f0f0f0;
    height: 100%;
    padding: 12px;
    border: 1px solid #ddd;
}
.video-player {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
}

.news-image img {
    width: 100%;
    display: block;
}

/* محتوا */
.news-content {
    flex: 1;
    font-size: 17px;
    line-height: 2.2;
    color: #222;
    background: #ffffff;
    padding: 30px;
    border: 1px solid #eee;
}

.news-content p {
    margin-bottom: 20px;
}

/* لینک‌ها */
.news-content a {
    color: #b30000;
    text-decoration: none;
}

.news-content a:hover {
    text-decoration: underline;
}

/* دکمه */
.btn-back {
    border: 1px solid #b30000;
    background: transparent;
    color: #b30000;
    padding: 8px 18px;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn-back:hover {
    background: #b30000;
    color: #fff;
}

/* ===== ریسپانسیو ===== */

@media (max-width: 992px) {

    .news-view {
        padding: 25px;
    }

    .news-body {
        flex-direction: column;
        gap: 30px;
    }

    .news-header {
        padding: 20px;
    }

    .news-title {
        font-size: 24px;
        padding-left: 0;
    }

    .news-date {
        position: static;
        margin-top: 10px;
        text-align: right;
    }

    .news-content {
        padding: 20px;
        font-size: 15px;
    }
}
/*create*/
/* ===== زمینه کلی ===== */

body {
    background-color: #eef1f4;
}

/* ===== باکس اصلی فرم ===== */

.news-admin-form {
    max-width: 1000px;
    margin: 60px auto;
    background: #ffffff;
    padding: 45px;
    border: 1px solid #dcdcdc;
    box-shadow: 0 6px 25px rgba(0,0,0,0.05);
    position: relative;
}

/* نوار هویتی بالا */
.news-admin-form::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to left, #003366, #00509e);
}

/* ===== پیام اطلاع‌رسانی ===== */

.news-admin-form .alert-info {
    background: #f1f6fb;
    border: 1px solid #cddff5;
    color: #1f3c5a;
    font-size: 14px;
    line-height: 1.9;
}

/* ===== استایل لیبل‌ها ===== */

.news-admin-form .form-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}

/* ===== فیلدهای ورودی ===== */

.news-admin-form .form-control,
.news-admin-form .form-select {
    border-radius: 4px;
    border: 1px solid #d6d6d6;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: #fafafa;
}

.news-admin-form .form-control:focus,
.news-admin-form .form-select:focus {
    border-color: #00509e;
    box-shadow: 0 0 0 2px rgba(0,80,158,0.1);
    background-color: #ffffff;
}

/* ===== TinyMCE wrapper ===== */

.news-admin-form .tox {
    border-radius: 4px !important;
    border: 1px solid #d6d6d6 !important;
}

/* ===== فایل آپلود ===== */

.news-admin-form input[type="file"] {
    background: #fafafa;
    padding: 8px;
    border: 1px solid #d6d6d6;
}

/* ===== دکمه ذخیره ===== */

.news-admin-form .btn-success {
    background-color: #00509e;
    border-color: #00509e;
    padding: 10px 25px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s ease;
}

.news-admin-form .btn-success:hover {
    background-color: #003f7d;
    border-color: #003f7d;
}

/* ===== فاصله بین فیلدها ===== */

.news-admin-form .form-group,
.news-admin-form .mb-3 {
    margin-bottom: 22px;
}

/* ===== ریسپانسیو ===== */

@media (max-width: 768px) {

    .news-admin-form {
        padding: 25px;
    }

    .news-admin-form .form-control,
    .news-admin-form .form-select {
        font-size: 13px;
    }
}
/*index*/
.news-card-grid {
    max-width: 1200px;
    margin: 60px auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

/* کارت فردی */
.news-card-item {
    background: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.card-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card-item:hover .card-img img {
    transform: scale(1.05);
}

.card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}

.card-language {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}

.status-badge {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 20px;
    font-weight: 600;
}
/* دکمه‌های اکشن کارت */
.card-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.2s ease;
    display: inline-block;
    text-align: center;
}

/* رنگ و استایل هر دکمه */
.view-btn {
    background-color: #e7f1ff;
    color: #00509e;
    border: 1px solid #c2d4ef;
}

.view-btn:hover {
    background-color: #cfe0ff;
    color: #003f7d;
}

.edit-btn {
    background-color: #fff3e6;
    color: #b35400;
    border: 1px solid #f0cfa0;
}

.edit-btn:hover {
    background-color: #ffe5cc;
    color: #8f3f00;
}

.delete-btn {
    background-color: #fdecea;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.delete-btn:hover {
    background-color: #f8d7da;
    color: #5a1b1b;
}
/*view*/
.news-view-detail {
    max-width: 950px;
    margin: 60px auto;
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.05);
}

.news-title {
    font-size: 30px;
    font-weight: 700;
    color: #111;
}

.news-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: 0.2s ease;
    display: inline-block;
}

.view-btn {
    background-color: #e7f1ff;
    color: #00509e;
    border: 1px solid #c2d4ef;
}
.view-btn:hover { background-color: #cfe0ff; color: #003f7d; }

.delete-btn {
    background-color: #fdecea;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.delete-btn:hover { background-color: #f8d7da; color: #5a1b1b; }

/* بخش متن و تصویر کنار هم */
.news-main {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* متن سمت چپ */
.news-text {
    flex: 1;
}

/* تصویر سمت راست */
.news-image {
    width: 300px;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* متا و خلاصه */
.news-meta-card {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
}

.meta-item { display: inline-block; }

.news-summary {
    font-size: 15px;
    line-height: 1.8;
    background: #f1f3f5;
    padding: 12px;
    border-radius: 6px;
}

.news-content {
    font-size: 16px;
    line-height: 2;
    color: #222;
    text-align: justify;
}

.news-extra .info-card {
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
}

.status-badge {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 20px;
    font-weight: 600;
}

.badge-pending { background: #fff3cd; color: #856404; }
.badge-approved { background: #d4edda; color: #155724; }
.badge-rejected { background: #f8d7da; color: #721c24; }
.badge-secondary { background: #e2e3e5; color: #6c757d; }

/* ریسپانسیو */
@media (max-width: 768px) {
    .news-main {
        flex-direction: column;
    }
    .news-image {
        width: 100%;
    }
}