/* ════════════════════════════════════════════════════════════════════════════
   news-archive.css
   تصميم أرشيف الأخبار (CPT: news) — نُقل من inline في archive-news.php للتخزين بالكاش.
   ════════════════════════════════════════════════════════════════════════════ */

/* ══ Page Wrap ═══════════════════════════════════════════════════════ */
.news-page-wrap {
    max-width: 1280px;
    margin: 24px auto;
    padding: 0 16px;
    box-sizing: border-box;
    direction: rtl;
}

/* ══ Page Header ═════════════════════════════════════════════════════ */
.news-page-header {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.news-page-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.news-page-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(198,40,40,.12);
    color: #c62828;
}
.news-page-icon svg {
    width: 19px;
    height: 19px;
}
.news-page-header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
}
.news-page-header p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}
.news-page-header strong { color: #cc0000; }

/* ══ Hero Grid ═══════════════════════════════════════════════════════ */
.news-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 900px) {
    .news-hero-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .news-hero-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════
   NEWS CARD — تصميم مرجعي موحّد (بند 2026-07-28)
   ──────────────────────────────────────────────────────────────────────
   طُبّق أول مرة هنا (أرشيف /news/) بناءً على طلب صريح بإعادة تصميم الكارت:
   العنوان بقى تحت الصورة في مكانه الطبيعي (مش عائم فوقها بتظليل غامق)،
   وبيظهر كامل بالكامل من غير أي قص أو Ellipsis حتى لو طال لسطرين أو
   تلاتة — الكارت بيطول معاه تلقائيًا (مفيش أي line-clamp ولا
   overflow:hidden على النص خالص).

   ⚠ ده تصميم "مرجعي" هنعيد استخدامه في أماكن تانية بالموقع بعدين (زي كروت
   الأخبار في الصفحة الرئيسية home.css، وقسم "آخر أخبار الماركة" في صفحة
   البراند brand-taxonomy.css اللي حاليًا لسه بيستخدم التصميم القديم
   .news-hero-* تحت) — لما نوصل لتطبيقه هناك، انسخ نفس بنية الكلاسات دي
   (news-card / news-card-thumb / news-card-cat / news-card-no-img /
   news-card-body / news-card-title) وغيّر بس أسماءها حسب سياق كل مكان.

   ⚠ عمدًا معملتش أي تعديل على .news-hero-* تحت (رغم إنها نفس فكرة الكارت
   القديمة) لأنها بالظبط نفس الكلاسات المستخدمة في قسم "آخر أخبار الماركة"
   بصفحة البراند (taxonomy-brand.php) — لو عدّلت فيها كنت هغيّر شكل الكارت
   هناك كمان من غير ما حد يطلب ده، لحد ما نوصل نطبّق التصميم الجديد هناك
   عمدًا كخطوة منفصلة. */
.news-card{
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}
.news-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.news-card-thumb{
    position: relative;
    aspect-ratio: 16/10;
    background: #1a1a1a;
    overflow: hidden;
    flex-shrink: 0;
}
.news-card-thumb img{
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.news-card:hover .news-card-thumb img{ transform: scale(1.05); }
.news-card-cat{
    position: absolute;
    top: 12px; right: 12px;
    z-index: 2;
    /* بند 2026-07-28: نفس درجة الشفافية المستخدمة لبادچ الهيرو وكروت الأخبار
       في الرئيسية (--hp-primary-badge في home.css) — نفس القيمة بالحرف
       بس مكتوبة صريحة هنا (مش عن طريق var()) لأن الملف ده مش بيشارك نفس
       :root بتاع home.css، وعشان الهوية اللونية تبقى واحدة في كل الموقع. */
    background: rgba(198,40,40,.6);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}
.news-card-no-img{
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #2a2a2a;
    color: #555;
}
.news-card-body{
    padding: 14px 16px;
}
.news-card-title{
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.6;
    /* من غير أي webkit-line-clamp أو overflow:hidden — العنوان الكامل
       بيظهر مهما طال، على كل الأجهزة من غير استثناء. */
}

/* ══ Hero Card (التصميم القديم — لسه مستخدم في "آخر أخبار الماركة" بصفحة
   البراند فقط، مش هنا) ═══════════════════════════════════════════════ */
.news-hero-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 16/10;
    background: #1a1a1a;
    transition: transform 0.2s, box-shadow 0.2s;
}
.news-hero-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.news-hero-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.news-hero-card:hover img { transform: scale(1.05); }
.news-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.1) 60%);
}
.news-hero-body {
    position: absolute;
    bottom: 0; right: 0; left: 0;
    padding: 16px;
    direction: rtl;
}
.news-hero-cat {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: #cc0000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}
.news-hero-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-hero-no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #2a2a2a;
    color: #555;
}

/* ══ Pagination ══════════════════════════════════════════════════════ */
.news-pagination {
    display: flex; justify-content: center; gap: 6px;
    margin-top: 28px; flex-wrap: wrap;
}
.news-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border: 1px solid #e0e0e0; border-radius: 8px;
    background: #fff; color: #555;
    text-decoration: none; font-size: 13px; font-weight: 600;
    transition: all 0.15s;
}
.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover {
    background: #cc0000; border-color: #cc0000; color: #fff;
}

/* ══ Smart TV ════════════════════════════════════════════════════════ */
@media (min-width: 1900px) {
    .news-page-header h1 { font-size: 26px; }
    .news-card-title { font-size: 17px; }
    .news-hero-title { font-size: 17px; }
}