﻿/* ===== الأخبار — الصفحة الرئيسية وصفحة الأخبار وتفاصيل الخبر (Site2021.Master، Bootstrap 3) =====
   الصورة في إطار ثابت النسبة تظهر كاملة فوق نسخة مموّهة منها، فتتساوى البطاقات مهما اختلفت أبعاد الصور (طولية، شهادات، لقطات شاشة). */

.nw-media { position: relative; overflow: hidden; border-radius: 18px; background: #e8efee; display: block; }
.nw-media::before { content: ''; display: block; padding-bottom: 62.5%; }
.nw-media-16x9::before { padding-bottom: 56.25%; }
.nw-media-4x3::before { padding-bottom: 75%; }
.nw-media .nw-bg { position: absolute; top: -12%; right: -12%; bottom: -12%; left: -12%; background-size: cover; background-position: center; filter: blur(22px) saturate(1.15); opacity: .8; }
.nw-media img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; border-radius: 0; margin: 0; display: block; }
.nw-media-empty { display: flex; align-items: center; justify-content: center; color: #b7c8c5; }
.nw-media-empty i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 54px; }
a.nw-media img { transition: transform .35s ease; }
a.nw-media:hover img { transform: scale(1.03); }

/* ---------- الخبر المثبت (أعلى الرئيسية) ---------- */
.nw-hero-sec { height: auto !important; min-height: 0; padding: 170px 0 70px; }
.nw-hero-sec .item-card { width: auto !important; max-width: 1040px; margin: 0 auto !important; text-align: right; }
.nw-hero { display: flex; align-items: stretch; gap: 28px; background: rgba(255,255,255,.82); border: 1px solid #e6eceb; border-radius: 24px; padding: 22px; box-shadow: 0 10px 30px rgba(18,132,124,.08); }
.nw-hero-media { flex: 0 0 42%; min-width: 0; }
.nw-hero-media .nw-media { height: 100%; }
.nw-hero-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.nw-hero-body .nw-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #12847c; background: #e3f3f1; border-radius: 20px; padding: 3px 12px; margin-bottom: 12px; align-self: flex-start; }
.nw-hero-body h2 { margin: 0 0 10px; font-size: 26px; line-height: 1.5; color: #12847c; }
.nw-hero-body h2 a { color: inherit; text-decoration: none; }
.nw-hero-body h2 a:hover { color: #0e6b64; }
.nw-hero-body p { font-size: 17px; line-height: 1.8; color: #333; margin: 0 0 14px; min-height: 0; }
.nw-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nw-date { color: #12847c; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.nw-date i { font-size: 13px; }

/* ---------- بطاقات الأخبار ---------- */
.nw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; text-align: right; }
.nw-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e6eceb; border-radius: 22px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.04); transition: transform .2s ease, box-shadow .2s ease; }
.nw-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(18,132,124,.12); }
.nw-card .nw-media { border-radius: 0; }
.nw-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1 1 auto; }
.nw-card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.55; color: #12847c; }
.nw-card h3 a { color: inherit; text-decoration: none; }
.nw-card h3 a:hover { color: #0e6b64; }
.nw-card p { font-size: 15px; line-height: 1.75; color: #444; margin: 0 0 14px; min-height: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-card .nw-foot { padding-top: 10px; border-top: 1px dashed #e6eceb; }
.nw-all { text-align: center; margin-top: 34px; }
.nw-empty { text-align: center; color: #888; padding: 50px 0; }
.nw-empty i { display: block; font-size: 42px; color: #c5d6d3; margin-bottom: 12px; }

/* الرئيسية: أربعة أخبار في صفين */
@media (min-width: 768px) { .nw-grid-home { grid-template-columns: repeat(2, 1fr); } }

/* ---------- صفحة الأخبار ---------- */
.nw-page .section-title { padding-top: 0; }
.nw-page .nw-count { color: #888; font-size: 14px; margin-top: -18px; margin-bottom: 20px; text-align: center; }
.nw-page .page-inner { padding-bottom: 40px; }

/* ---------- تفاصيل الخبر ---------- */
.nw-detail-hero { max-width: 1040px; margin: 0 auto; }
.nw-detail-hero .nw-hero { background: #fff; }
.nw-article { max-width: 1040px; margin: 24px auto 40px; background: #fff; border: 1px solid #e6eceb; border-radius: 22px; padding: 26px 30px; font-size: 17px; line-height: 1.95; color: #222; text-align: right; }
.nw-article img, .nw-article video, .nw-article iframe { max-width: 100% !important; height: auto !important; border-radius: 12px; }
.nw-article table { max-width: 100%; }
.nw-article p { margin-bottom: 12px; }
.nw-share { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px dashed #e6eceb; }
.nw-share a.nw-wa { color: #25a244; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.nw-share a.nw-wa i { font-size: 26px; }

/* ---------- الجوال ---------- */
@media (max-width: 991px) {
    .nw-hero-sec { padding: 150px 0 50px; }
    .nw-hero-body h2 { font-size: 22px; }
}
@media (max-width: 767px) {
    .nw-hero-sec { padding: 120px 0 40px; }
    .nw-hero { flex-direction: column; gap: 16px; padding: 14px; border-radius: 20px; }
    .nw-hero-media { flex: 0 0 auto; }
    .nw-hero-body h2 { font-size: 20px; }
    .nw-hero-body p { font-size: 15px; }
    .nw-grid { grid-template-columns: 1fr; gap: 18px; }
    .nw-article { padding: 18px 16px; font-size: 16px; border-radius: 16px; }
}
