/* کارت‌های خبر و مودال مشترک اخبار داخلی */
.news-page-header {
    width: min(1080px, calc(100% - 32px));
    margin: 18px auto 14px;
}
.news-page-header .divider-line-title { width: 100%; }
.news-list { width: min(1080px, calc(100% - 32px)); margin: 0 auto 28px; }
.news-card {
    display: flex;
    align-items: stretch;
    gap: 16px;
    min-height: 112px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #e0eaf3;
    border-radius: 16px;
    color: #183e70;
    background: #fff;
    box-shadow: 0 5px 18px rgba(24, 62, 112, .07);
    direction: rtl;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.news-card:hover, .news-card:focus { border-color: #8fc3df; box-shadow: 0 9px 24px rgba(24, 62, 112, .13); transform: translateY(-2px); outline: 0; }
.news-card-media { width: 155px; min-width: 155px; min-height: 90px; overflow: hidden; border-radius: 11px; background: #edf5fb; }
.news-card-media img { display: block; width: 100%; height: 100%; min-height: 90px; object-fit: cover; }
.news-card-content { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; }
.news-card-meta { display: flex; align-items: center; gap: 12px; color: #7086a0; font-size: 11px; }
.news-card-meta i { color: #2c87ac; margin-left: 4px; }
.news-card-content h2 { max-width: 100%; overflow: hidden; margin: 0; color: #173f73; font-size: 16px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.news-card-content p { display: -webkit-box; max-width: 100%; overflow: hidden; margin: 0; color: #58708b; font-size: 12px; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.news-card-action { display: inline-flex; align-items: center; gap: 6px; color: #216da5; font-size: 11px; font-weight: 700; }
.news-modal { overflow: hidden; min-width: 0; border: 1px solid #deebf4; border-radius: 22px; color: #193f70; background: #fff; direction: rtl; }
.news-modal-header { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #e6eef6; background: linear-gradient(135deg, #f4faff, #fff); }
.news-modal-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #287dad, #49b7bf); font-size: 18px; }
.news-modal-heading { min-width: 0; flex: 1; }
.news-modal-eyebrow { display: block; margin-bottom: 3px; color: #64809b; font-size: 11px; font-weight: 700; }
.news-modal-heading h1 { overflow: hidden; margin: 0; color: #173f73; font-size: 19px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.news-modal-heading time { display: block; margin-top: 5px; color: #71869d; font-size: 11px; }
.news-modal-heading time i { margin-left: 4px; color: #2c87ac; }
.news-modal-close { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid #d9e6f1; border-radius: 50%; color: #55718e; background: #fff; cursor: pointer; }
.news-modal-close:hover { color: #fff; background: #287dad; }
.news-modal-cover { margin: 0; padding: 16px 18px 0; text-align: center; }
.news-modal-cover img { display: block; width: 100%; max-height: 310px; border-radius: 12px; object-fit: contain; background: #f3f8fc; }
.news-modal-body { padding: 18px 22px; color: #354f6c; font-size: 14px; line-height: 2; text-align: right; }
.news-modal-body p { margin: 0 0 10px; }
.news-modal-body img { max-width: 100%; height: auto; border-radius: 10px; }
.news-modal-footer { display: flex; justify-content: flex-start; padding: 12px 18px 16px; border-top: 1px solid #edf2f7; }
.news-modal-footer a { display: inline-flex; align-items: center; gap: 7px; color: #216da5; font-size: 12px; font-weight: 700; text-decoration: none; }
.news-modal-footer a:hover { color: #173f73; text-decoration: underline; }

/* پنجره‌ی Kendo فقط برای خبرها؛ بدون سربرگ قدیمی و با اندازه‌ی متناسب با محتوا */
body .k-window.news-modal-window {
    width: min(760px, calc(100% - 28px)) !important;
    min-height: 0 !important;
    max-height: calc(100vh - 28px);
    padding: 0;
    overflow: hidden;
    border: 1px solid #dce9f3;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(13, 45, 83, .24);
}
body .k-window.news-modal-window .k-window-titlebar { display: none; }
body .k-window.news-modal-window .k-window-content { max-height: calc(100vh - 28px); padding: 0; overflow: auto; background: #fff; }
body .k-window.news-modal-window .news-modal { min-height: 0; }
body .k-window.news-modal-window .news-modal-body a { color: #216da5; }
body .k-window.news-modal-window .news-modal-body ul,
body .k-window.news-modal-window .news-modal-body ol { padding-right: 22px; }
body .k-window.news-modal-window .news-modal-body blockquote { margin: 12px 0; padding: 8px 14px; border-right: 3px solid #48aeb8; border-radius: 8px; color: #4b6782; background: #f3f9fc; }
@media (max-width: 600px) {
    .news-page-header, .news-list { width: calc(100% - 20px); }
    .news-card { gap: 10px; min-height: 96px; padding: 8px; }
    .news-card-media { width: 94px; min-width: 94px; min-height: 78px; }
    .news-card-media img { min-height: 78px; }
    .news-card-content h2 { font-size: 13px; }
    .news-card-content p { font-size: 10px; }
    .news-modal-header { padding: 13px; }
    .news-modal-heading h1 { font-size: 15px; }
    .news-modal-body { padding: 14px; font-size: 13px; }
    body .k-window.news-modal-window { width: calc(100% - 16px) !important; max-height: calc(100vh - 16px); border-radius: 16px; }
    body .k-window.news-modal-window .k-window-content { max-height: calc(100vh - 16px); }
}
