/**
 * Mekahlla News - Public CSS
 * مستوحى من تصميم Live Coverage المحبوب
 */

/* ============================================================
   متغيرات CSS
   ============================================================ */
:root {
    --mkn-red: #ef4444;
    --mkn-blue: #3b82f6;
    --mkn-green: #22c55e;
    --mkn-orange: #f97316;
    --mkn-purple: #a855f7;
    --mkn-dark: #0f172a;
    --mkn-card: #ffffff;
    --mkn-soft: #f1f5f9;
    --mkn-border: #e5e7eb;
    --mkn-text: #1e293b;
    --mkn-text-muted: #64748b;
    --mkn-bg: #f8fafc;
    --mkn-radius: 14px;
    --mkn-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

/* ============================================================
   المقال الإخباري
   ============================================================ */
.mkn-article {
    font-family: 'Tajawal', 'Cairo', system-ui, sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--mkn-text);
    max-width: 100%;
}

/* الترويسة */
.mkn-article-hero {
    background: linear-gradient(135deg, var(--mkn-dark) 0%, #1e293b 100%);
    border-radius: var(--mkn-radius);
    overflow: hidden;
    margin-bottom: 28px;
    position: relative;
}

.mkn-article-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mkn-red), var(--mkn-orange), var(--mkn-red));
    background-size: 200% 100%;
    animation: mkn-flow 3s linear infinite;
}

@keyframes mkn-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.mkn-article-hero-img {
    width: 100%;
    max-height: 450px;
    overflow: hidden;
}

.mkn-article-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mkn-article-hero-content {
    padding: 28px 30px 32px;
}

.mkn-article-title {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin: 14px 0;
    letter-spacing: -0.3px;
}

.mkn-article-excerpt {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.mkn-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: #94a3b8;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 14px;
}

.mkn-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mkn-article-meta i { color: var(--mkn-red); }

.mkn-article-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ============================================================
   الشارات (Badges)
   ============================================================ */
.mkn-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mkn-badge-red    { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 4px 12px rgba(239,68,68,0.35); }
.mkn-badge-blue   { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; box-shadow: 0 4px 12px rgba(59,130,246,0.35); }
.mkn-badge-green  { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; box-shadow: 0 4px 12px rgba(34,197,94,0.35); }
.mkn-badge-orange { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; box-shadow: 0 4px 12px rgba(249,115,22,0.35); }

/* ============================================================
   Blocks المقال
   ============================================================ */
.mkn-block {
    border-radius: var(--mkn-radius);
    overflow: hidden;
}

.mkn-block-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--mkn-text);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--mkn-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mkn-block-subtitle {
    font-size: 17px;
    font-weight: 700;
    color: var(--mkn-text);
    margin: 0 0 16px;
    padding-right: 14px;
    border-right: 4px solid var(--mkn-red);
}

/* Block: نص */
.mkn-block-text {
    background: var(--mkn-soft, #f8fafc);
    border: 1px solid var(--mkn-border);
    padding: 24px 26px;
    box-shadow: var(--mkn-shadow);
}

.mkn-text-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--mkn-text);
}

.mkn-text-content p { margin: 0 0 14px; }
.mkn-text-content p:last-child { margin: 0; }

.mkn-text-content ul,
.mkn-text-content ol {
    margin: 14px 0;
    padding-right: 0;
    list-style: none;
}

.mkn-text-content ul li {
    position: relative;
    padding-right: 26px;
    margin-bottom: 10px;
    line-height: 1.8;
}

.mkn-text-content ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--mkn-red), #dc2626);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(239,68,68,0.3);
}

.mkn-text-content ol { counter-reset: mkn-cnt; }
.mkn-text-content ol li { counter-increment: mkn-cnt; padding-right: 32px; }
.mkn-text-content ol li::before {
    content: counter(mkn-cnt);
    background: linear-gradient(135deg, var(--mkn-dark), #334155);
    color: #fff;
    width: 22px; height: 22px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
    position: absolute; right: 0; top: 6px;
}

.mkn-text-content strong { font-weight: 700; color: var(--mkn-dark); }
.mkn-text-content em { font-style: italic; color: #475569; }

/* Block: تنبيه */
.mkn-block-alert {
    padding: 22px 26px;
    position: relative;
    border: none;
}

.mkn-block-alert::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 5px;
}

.mkn-alert-warning  { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.mkn-alert-warning::before { background: linear-gradient(to bottom, #f59e0b, #d97706); }

.mkn-alert-danger   { background: linear-gradient(135deg, #fef2f2, #fee2e2); }
.mkn-alert-danger::before { background: linear-gradient(to bottom, #ef4444, #dc2626); }

.mkn-alert-info     { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.mkn-alert-info::before { background: linear-gradient(to bottom, #3b82f6, #2563eb); }

.mkn-alert-success  { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.mkn-alert-success::before { background: linear-gradient(to bottom, #22c55e, #16a34a); }

.mkn-alert-breaking { background: linear-gradient(135deg, #1e293b, #0f172a); }
.mkn-alert-breaking::before { background: linear-gradient(to bottom, #ef4444, #991b1b); }
.mkn-alert-breaking .mkn-alert-header { color: #fff; }
.mkn-alert-breaking .mkn-alert-list li { color: #cbd5e1; }

.mkn-alert-header {
    font-weight: 800;
    font-size: 15px;
    color: #1e293b;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.mkn-alert-icon { font-size: 20px; flex-shrink: 0; line-height: 1.4; }
.mkn-alert-title { line-height: 1.6; }

.mkn-alert-list {
    list-style: none;
    padding: 0; margin: 0;
}

.mkn-alert-list li {
    padding: 9px 26px 9px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
    font-size: 14px;
    line-height: 1.7;
    position: relative;
    color: #334155;
}

.mkn-alert-list li::before {
    content: "▸";
    position: absolute;
    right: 6px;
    top: 9px;
    color: #d97706;
    font-weight: bold;
    transition: all 0.2s;
}

.mkn-alert-list li:last-child { border-bottom: none; }
.mkn-alert-list li:hover { padding-right: 32px; }
.mkn-alert-list li:hover::before { right: 12px; }

/* أيقونة القرص في رأس التنبيه (القرص يحتضن أيقونة بداخله) */
.mkn-alert-icon-disc {
    position: relative;
    width: 34px; height: 34px;
    display: inline-flex;
    flex-shrink: 0;
    color: #3fdca5;
}
.mkn-alert-icon-disc > svg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
}
.mkn-alert-icon-inner {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
}
.mkn-alert-icon-inner svg {
    width: 62%; height: 62%;
    color: #141235;
}
.mkn-alert-breaking .mkn-alert-icon-disc { color: #fff; }
.mkn-alert-breaking .mkn-alert-icon-inner svg { color: #991b1b; }

/* Block: معرض */
.mkn-block-gallery { background: var(--mkn-card); border: 1px solid var(--mkn-border); padding: 24px; box-shadow: var(--mkn-shadow); }

.mkn-gallery-grid { display: grid; gap: 10px; }
.mkn-gallery-grid    { grid-template-columns: repeat(3, 1fr); }
.mkn-gallery-two-col .mkn-gallery-grid { grid-template-columns: repeat(2, 1fr); }
.mkn-gallery-three-col .mkn-gallery-grid { grid-template-columns: repeat(3, 1fr); }

.mkn-gallery-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16/10; }
.mkn-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.mkn-gallery-item:hover img { transform: scale(1.06); }

.mkn-gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
    color: #fff; font-size: 28px;
}

.mkn-gallery-item:hover .mkn-gallery-overlay { opacity: 1; }

/* Block: جدول */
.mkn-block-table { background: var(--mkn-card); border: 1px solid var(--mkn-border); padding: 24px; box-shadow: var(--mkn-shadow); }
.mkn-table-wrapper { overflow-x: auto; }

.mkn-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: right;
}

.mkn-table thead tr { background: linear-gradient(135deg, var(--mkn-dark), #1e293b); }
.mkn-table thead th { color: #fff; padding: 14px 18px; font-weight: 700; font-size: 13px; letter-spacing: 0.3px; }
.mkn-table tbody td { padding: 12px 18px; border-bottom: 1px solid var(--mkn-border); }
.mkn-table tbody tr:last-child td { border-bottom: none; }
.mkn-table tbody tr:hover { background: #f8fafc; }

.mkn-table-striped tbody tr:nth-child(even) { background: #f1f5f9; }
.mkn-table-striped tbody tr:hover { background: #e2e8f0; }

.mkn-table-dark { background: var(--mkn-dark); }
.mkn-table-dark td, .mkn-table-dark th { color: #e2e8f0; border-color: #334155; }
.mkn-table-dark tbody tr:hover { background: #1e293b; }

.mkn-table-bordered td, .mkn-table-bordered th { border: 1px solid var(--mkn-border); }

/* Block: إحصائيات */
.mkn-block-stats { background: var(--mkn-card); border: 1px solid var(--mkn-border); padding: 24px; box-shadow: var(--mkn-shadow); }
.mkn-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }

.mkn-stat {
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    border: 1px solid transparent;
    transition: transform 0.3s;
}

.mkn-stat:hover { transform: translateY(-3px); }

.mkn-stat-blue   { background: linear-gradient(135deg, #eff6ff, #dbeafe); border-color: #bfdbfe; }
.mkn-stat-red    { background: linear-gradient(135deg, #fef2f2, #fee2e2); border-color: #fecaca; }
.mkn-stat-green  { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border-color: #bbf7d0; }
.mkn-stat-orange { background: linear-gradient(135deg, #fff7ed, #ffedd5); border-color: #fed7aa; }

.mkn-stat-icon  { font-size: 28px; margin-bottom: 8px; }
.mkn-stat-number { font-size: 32px; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.mkn-stat-blue .mkn-stat-number   { color: var(--mkn-blue); }
.mkn-stat-red .mkn-stat-number    { color: var(--mkn-red); }
.mkn-stat-green .mkn-stat-number  { color: var(--mkn-green); }
.mkn-stat-orange .mkn-stat-number { color: var(--mkn-orange); }
.mkn-stat-label  { font-size: 12px; color: var(--mkn-text-muted); font-weight: 600; }

/* ════════════════════════════════════════════════ */
/*  Block: اقتباس — أنماط جاهزة + ختم يطفو على الحافة */
/* ════════════════════════════════════════════════ */
.mkn-block-quote {
    border: none !important;
    box-shadow: none !important;
    margin-top: 36px !important;
}
/* البطاقة (خلفية لون واحد صلب — اللون من style inline) */
.mkn-quote-scheme {
    position: relative;
    border-radius: 18px;
    padding: 40px 30px 26px !important;
    margin: 0 !important;
}

/* ختم القرص يطفو على الحافة العلوية (نصفه بارز خارج البطاقة) */
.mkn-quote-stamp {
    position: absolute;
    top: -26px; right: 30px;
    width: 56px; height: 56px;
    z-index: 3;
    display: flex; align-items: center; justify-content: center;
}
.mkn-quote-stamp svg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
}
.mkn-quote-mark {
    position: relative; z-index: 2;
    font-family: Georgia, serif;
    font-size: 30px; font-weight: 900;
    line-height: 1; margin-top: 12px;
}

/* إبطال علامة الاقتباس التي يضيفها قالب Jannah تلقائياً */
.mkn-block-quote blockquote::before,
.mkn-block-quote blockquote::after,
.mkn-quote-scheme blockquote::before,
.mkn-quote-scheme blockquote::after {
    content: none !important;
    display: none !important;
}

.mkn-quote-scheme blockquote {
    margin: 0 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    quotes: none !important;
    font-size: 18px;
    line-height: 1.9;
    font-style: normal;
}
.mkn-quote-scheme blockquote p {
    margin: 0;
    text-align: justify;
    font-weight: 700;
}
.mkn-quote-scheme blockquote footer {
    margin-top: 16px;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    display: flex; align-items: center; gap: 7px;
}
.mkn-quote-scheme blockquote footer::before {
    content: '';
    width: 7px; height: 7px; border-radius: 50%;
    background: currentColor; opacity: .6;
    display: inline-block;
}

/* ============================================================
   التغطية الحية
   ============================================================ */
.mkn-coverage {
    background: var(--mkn-bg);
    border-radius: var(--mkn-radius);
    overflow: hidden;
    box-shadow: var(--mkn-shadow);
    border: 1px solid var(--mkn-border);
    font-family: 'Tajawal', 'Cairo', system-ui, sans-serif;
    direction: rtl;
}

/* ألوان التغطية */
.mkn-coverage-red    .mkn-coverage-header::after { background: linear-gradient(90deg, #ef4444, #f97316, #ef4444); }
.mkn-coverage-blue   .mkn-coverage-header::after { background: linear-gradient(90deg, #3b82f6, #06b6d4, #3b82f6); }
.mkn-coverage-green  .mkn-coverage-header::after { background: linear-gradient(90deg, #22c55e, #10b981, #22c55e); }
.mkn-coverage-orange .mkn-coverage-header::after { background: linear-gradient(90deg, #f97316, #eab308, #f97316); }
.mkn-coverage-purple .mkn-coverage-header::after { background: linear-gradient(90deg, #a855f7, #6366f1, #a855f7); }

/* ترويسة التغطية */
.mkn-coverage-header {
    background: linear-gradient(135deg, #0f172a, #1e293b, #334155);
    color: #fff;
    padding: 28px 28px 24px;
    position: relative;
    overflow: hidden;
}

.mkn-coverage-header::before {
    content: '';
    position: absolute;
    top: -40%; left: -20%;
    width: 60%; height: 200%;
    background: radial-gradient(circle, rgba(239,68,68,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.mkn-coverage-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background-size: 200% 100%;
    animation: mkn-flow 3s linear infinite;
}

.mkn-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(239,68,68,0.4);
    animation: mkn-pulse 2s infinite;
    position: relative;
    z-index: 2;
}

@keyframes mkn-pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(239,68,68,0.4); }
    50% { box-shadow: 0 4px 20px rgba(239,68,68,0.7); }
}

.mkn-live-dot {
    width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255,255,255,0.8);
    animation: mkn-blink 1.2s infinite;
}

@keyframes mkn-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.mkn-ended-badge {
    display: inline-block;
    background: rgba(100,116,139,0.3);
    color: #cbd5e1;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
    border: 1px solid rgba(203,213,225,0.2);
}

.mkn-coverage-title {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 800;
    margin: 10px 0;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.3px;
    position: relative;
    z-index: 2;
}

.mkn-coverage-desc {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.mkn-coverage-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: #94a3b8;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 14px;
    position: relative;
    z-index: 2;
}

.mkn-coverage-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* الملخص */
.mkn-summary-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 22px 26px;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mkn-summary-box::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom, #f59e0b, #d97706);
}

.mkn-summary-header {
    font-weight: 800;
    color: #92400e;
    margin-bottom: 14px;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.mkn-summary-list {
    list-style: none;
    padding: 0; margin: 0;
}

.mkn-summary-list li {
    padding: 10px 22px 10px 0;
    border-bottom: 1px dashed rgba(146,64,14,0.2);
    font-size: 14px;
    color: #78350f;
    position: relative;
    transition: padding-right 0.2s;
}

.mkn-summary-list li::before {
    content: "▸";
    position: absolute;
    right: 0;
    color: #d97706;
    font-weight: bold;
    top: 12px;
}

.mkn-summary-list li:last-child { border-bottom: none; }
.mkn-summary-list li:hover { padding-right: 28px; }

/* مؤشر التحديث */
.mkn-refresh-indicator {
    background: linear-gradient(90deg, #f0fdf4, #dcfce7, #f0fdf4);
    color: #166534;
    padding: 12px 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-bottom: 1px solid #bbf7d0;
}

.mkn-refresh-dot {
    width: 9px; height: 9px;
    background: #22c55e;
    border-radius: 50%;
    animation: mkn-ripple 2s infinite;
}

@keyframes mkn-ripple {
    0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
    70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* التحديثات */
.mkn-updates {
    background: #fff;
    padding: 28px 24px;
    position: relative;
}

.mkn-updates::before {
    content: '';
    position: absolute;
    top: 28px; bottom: 28px;
    right: 46px;
    width: 2px;
    background: linear-gradient(to bottom, #e5e7eb, #d1d5db, #e5e7eb);
}

.mkn-update {
    padding: 0 0 28px 0;
    margin-right: 58px;
    position: relative;
    animation: mkn-slide-in 0.5s ease-out;
}

.mkn-update:last-child { padding-bottom: 0; }

.mkn-update::before {
    content: '';
    position: absolute;
    right: -22px; top: 8px;
    width: 13px; height: 13px;
    background: #fff;
    border: 3px solid #94a3b8;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px #fff;
    transition: all 0.3s;
}

.mkn-update:hover::before { transform: scale(1.2); border-color: #475569; }

.mkn-update-breaking::before {
    background: #ef4444; border-color: #dc2626;
    box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(239,68,68,0.3);
    animation: mkn-break-pulse 1.5s infinite;
}

@keyframes mkn-break-pulse {
    0%, 100% { box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(239,68,68,0.3); }
    50% { box-shadow: 0 0 0 4px #fff, 0 0 0 10px rgba(239,68,68,0.5); }
}

.mkn-update-pinned::before { background: #f59e0b; border-color: #d97706; box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(245,158,11,0.3); }

@keyframes mkn-slide-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Meta التحديث */
.mkn-update-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    flex-wrap: wrap;
}

.mkn-update-time {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mkn-update-time i { color: #fbbf24; }

.mkn-update-date {
    color: #94a3b8;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.mkn-update-badge {
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.mkn-badge-breaking { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; animation: mkn-badge-pulse 2s infinite; }
.mkn-badge-pinned   { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.mkn-badge-analysis { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; }
.mkn-badge-quote    { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: #fff; }
.mkn-badge-photo    { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.mkn-badge-video    { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; }

@keyframes mkn-badge-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* جسم التحديث */
.mkn-update-body {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
    transition: all 0.3s;
}

.mkn-update-body:hover { border-color: #cbd5e1; box-shadow: 0 4px 16px rgba(0,0,0,0.04); }

.mkn-update-breaking .mkn-update-body {
    background: linear-gradient(135deg, #fef2f2, #fff);
    border-color: #fecaca;
    border-right: 4px solid #ef4444;
}

.mkn-update-pinned .mkn-update-body {
    background: linear-gradient(135deg, #fffbeb, #fff);
    border-color: #fde68a;
    border-right: 4px solid #f59e0b;
}

.mkn-update-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 12px;
    color: #0f172a;
    line-height: 1.4;
}

.mkn-update-content {
    color: #334155;
    line-height: 1.9;
    font-size: 15px;
}

.mkn-update-content p { margin: 0 0 12px; }
.mkn-update-content p:last-child { margin: 0; }

.mkn-update-content ul { list-style: none; padding: 0; margin: 12px 0; }
.mkn-update-content ul li { padding-right: 24px; margin-bottom: 10px; position: relative; line-height: 1.8; }
.mkn-update-content ul li::before {
    content: '';
    position: absolute; right: 0; top: 11px;
    width: 8px; height: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
}

.mkn-update-content blockquote {
    background: #f8fafc;
    border-right: 4px solid #1e293b;
    padding: 14px 18px;
    margin: 12px 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #334155;
    font-size: 15px;
}

.mkn-update-image {
    margin: 14px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.mkn-update-image img { width: 100%; display: block; }

/* تحديث جديد - توهج */
.mkn-update.mkn-new .mkn-update-body {
    animation: mkn-highlight 3s ease-out;
}

@keyframes mkn-highlight {
    0% { background: #fef9c3; box-shadow: 0 0 0 4px #fde047; transform: scale(1.01); }
    100% { background: #fff; box-shadow: none; transform: scale(1); }
}

/* ============================================================
   Lightbox بسيط
   ============================================================ */
.mkn-lightbox-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: mkn-fade 0.3s ease;
}

@keyframes mkn-fade { from { opacity: 0; } to { opacity: 1; } }

.mkn-lightbox-overlay img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.mkn-lightbox-close {
    position: fixed;
    top: 20px; left: 20px;
    color: #fff; font-size: 32px;
    cursor: pointer; line-height: 1;
    background: rgba(255,255,255,0.15);
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}

.mkn-lightbox-close:hover { background: var(--mkn-red); }

/* ============================================================
   متجاوب
   ============================================================ */
@media (max-width: 768px) {
    .mkn-article-hero-content { padding: 20px 18px 24px; }
    .mkn-article-title { font-size: 22px; }
    .mkn-stats-row { grid-template-columns: repeat(2, 1fr); }
    .mkn-gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .mkn-coverage-header { padding: 20px 18px; }
    .mkn-coverage-title { font-size: 20px; }
    .mkn-updates { padding: 20px 14px; }
    .mkn-updates::before { right: 21px; }
    .mkn-update { margin-right: 34px; }
    .mkn-update::before { right: -18px; width: 12px; height: 12px; }
    .mkn-update-body { padding: 14px 16px; }
}

/* ============================================
   Mekahlla News v1.1.0 - إضافات جديدة
   ============================================ */

/* ===== صفحة المعرض المفردة ===== */
.mkn-gallery-page { direction: rtl; }
.mkn-gallery-page-title { font-size: 30px; font-weight: 900; color: #1e3a8a; margin: 0 0 8px; text-align: right; }
.mkn-gallery-page-desc { font-size: 16px; color: #64748b; margin: 0 0 24px; text-align: right; line-height: 1.8; }

/* ===== سلايدر المعرض ===== */
.mkn-gslider-stage {
    position: relative; border-radius: 20px; overflow: hidden;
    background: #0f172a; aspect-ratio: 16/9;
    box-shadow: 0 20px 55px rgba(var(--mkn-g-rgb, 59,130,246), 0.28);
}
.mkn-gslide { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .6s ease, transform .6s ease; }
.mkn-gslide.active { opacity: 1; transform: scale(1); z-index: 2; }
.mkn-gslide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkn-gslider-counter {
    position: absolute; top: 14px; left: 14px; z-index: 10;
    background: rgba(var(--mkn-g-rgb, 59,130,246), 0.88); color: #fff;
    font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 30px;
    backdrop-filter: blur(6px);
}
.mkn-gnav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    width: 46px; height: 46px; border: none; border-radius: 50%; cursor: pointer;
    background: rgba(255,255,255,0.92); color: var(--mkn-g-dark, #1e3a8a);
    font-size: 20px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25); transition: all .25s ease;
}
.mkn-gnav:hover { background: var(--mkn-g, #3b82f6); color: #fff; transform: translateY(-50%) scale(1.1); }
.mkn-gnav.prev { right: 14px; } .mkn-gnav.next { left: 14px; }
.mkn-gprogress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,0.25); z-index: 10; }
.mkn-gprogress-fill { height: 100%; width: 0%; background: var(--mkn-g, #3b82f6); }
.mkn-gthumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.mkn-gthumbs::-webkit-scrollbar { height: 6px; }
.mkn-gthumbs::-webkit-scrollbar-thumb { background: rgba(var(--mkn-g-rgb, 59,130,246),0.4); border-radius: 10px; }
.mkn-gthumb { flex-shrink: 0; width: 84px; height: 60px; border-radius: 10px; overflow: hidden; cursor: pointer; border: 3px solid transparent; opacity: .55; transition: all .25s ease; }
.mkn-gthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkn-gthumb:hover { opacity: .85; }
.mkn-gthumb.active { border-color: var(--mkn-g, #3b82f6); opacity: 1; transform: translateY(-3px); box-shadow: 0 6px 18px rgba(var(--mkn-g-rgb, 59,130,246),0.4); }
.mkn-gdots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; flex-wrap: wrap; }
.mkn-gdot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; cursor: pointer; transition: all .25s; }
.mkn-gdot.active { background: var(--mkn-g, #3b82f6); width: 24px; border-radius: 5px; }

/* ===== Masonry ===== */
.mkn-gallery-masonry .mkn-gallery-grid { display: block; column-count: 3; column-gap: 10px; }
.mkn-gallery-masonry .mkn-gallery-item { break-inside: avoid; margin-bottom: 10px; aspect-ratio: auto; }
.mkn-gallery-masonry .mkn-gallery-item img { height: auto; }

/* ===== أنماط جدول جديدة ===== */
.mkn-table-bordered { border: 2px solid #e2e8f0; }
.mkn-table-bordered th, .mkn-table-bordered td { border: 1px solid #e2e8f0; }
.mkn-table-compact th, .mkn-table-compact td { padding: 7px 12px !important; font-size: 14px; }
.mkn-table-cards { border-collapse: separate; border-spacing: 0 8px; }
.mkn-table-cards tbody tr { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border-radius: 12px; }
.mkn-table-cards tbody td:first-child { border-radius: 0 12px 12px 0; }
.mkn-table-cards tbody td:last-child { border-radius: 12px 0 0 12px; }
.mkn-table-custom thead th { background: var(--mkn-t, #1e3a8a) !important; color: #fff !important; }
.mkn-table-custom.mkn-table-striped tbody tr:nth-child(even) { background: rgba(var(--mkn-t-rgb, 30,58,138), 0.06); }

/* ===== الرسوم البيانية ===== */
.mkn-chart { margin: 10px 0; }
.mkn-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.mkn-bar-val { fill: #1e293b; font-size: 14px; font-weight: 700; font-family: 'Tajawal', sans-serif; }
.mkn-bar-lbl, .mkn-line-lbl { fill: #64748b; font-size: 13px; font-family: 'Tajawal', sans-serif; }
.mkn-donut-wrap { max-width: 280px; margin: 0 auto; }
.mkn-donut-total { fill: #1e3a8a; font-size: 32px; font-weight: 900; font-family: 'Tajawal', sans-serif; }
.mkn-donut-cap { fill: #94a3b8; font-size: 14px; font-family: 'Tajawal', sans-serif; }
.mkn-donut-legend { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.mkn-donut-legend span { display: flex; align-items: center; gap: 7px; font-size: 14px; color: #475569; font-weight: 500; }
.mkn-donut-legend i { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }
.mkn-chart-progress { display: flex; flex-direction: column; gap: 16px; }
.mkn-prog-top { display: flex; justify-content: space-between; margin-bottom: 7px; }
.mkn-prog-name { color: #334155; font-weight: 500; font-size: 15px; }
.mkn-prog-val { color: #1e3a8a; font-weight: 700; font-size: 15px; }
.mkn-prog-track { height: 12px; background: #eef2f7; border-radius: 30px; overflow: hidden; }
.mkn-prog-fill { height: 100%; width: 0; border-radius: 30px; transition: width 1.4s cubic-bezier(.16,1,.3,1); }

/* بطاقات أرقام بلون مخصّص */
.mkn-stat { --mkn-s: #3b82f6; }
.mkn-stat .mkn-stat-number { color: var(--mkn-s, #3b82f6); }

/* ===== تنبيه/اقتباس بلون مخصّص ===== */
.mkn-alert-custom {
    background: rgba(var(--mkn-c-rgb), 0.10);
    border-right: 5px solid var(--mkn-c);
}
.mkn-alert-custom .mkn-alert-title { color: var(--mkn-c-dark); }
.mkn-alert-custom .mkn-alert-list li::before { background: var(--mkn-c); }
.mkn-quote-custom { background: none !important; border: none !important; padding: 0 !important; }
.mkn-quote-custom blockquote {
    border-right-color: var(--mkn-q) !important;
    background: linear-gradient(135deg, rgba(var(--mkn-q-rgb),0.16) 0%, #141235 100%) !important;
}
.mkn-quote-custom blockquote footer,
.mkn-quote-custom blockquote cite { color: var(--mkn-q) !important; }
.mkn-quote-custom .mkn-quote-stamp svg { color: var(--mkn-q) !important; }

/* ===== بلوك تضمين ===== */
.mkn-block-embed { margin: 24px 0; }

/* ===== موبايل ===== */
@media (max-width: 600px) {
    .mkn-gallery-masonry .mkn-gallery-grid { column-count: 2; }
    .mkn-gnav { width: 40px; height: 40px; font-size: 18px; }
    .mkn-gthumb { width: 66px; height: 48px; }
    .mkn-gallery-page-title { font-size: 24px; }
}

/* ===== بلوك القائمة (بالقرص المسنّن) ===== */
.mkn-block-list {
    background: var(--mkn-soft, #f1f5f9);
    border: 1px solid var(--mkn-border);
    padding: 22px 26px;
    box-shadow: var(--mkn-shadow);
}
.mkn-list { list-style: none; padding: 0; margin: 0; }
.mkn-list li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    font-size: 16px;
    line-height: 1.85;
    color: var(--mkn-text);
}
.mkn-list li:not(:last-child) { border-bottom: 1px dashed rgba(0,0,0,0.07); }

/* القرص المسنّن (حاوية الرقم/العلامة/النقطة) */
.mkn-list-disc {
    position: relative;
    flex-shrink: 0;
    width: 30px; height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.mkn-list-disc svg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
}
.mkn-list-num, .mkn-list-check {
    position: relative; z-index: 2;
    font-size: 13px; font-weight: 900;
    color: #141235;
    line-height: 1;
}
.mkn-list-check { font-size: 15px; }
/* نقطة: قرص صغير */
.mkn-list-bulletdisc {
    width: 16px; height: 16px;
    margin-top: 8px;
}
.mkn-list-text { flex: 1; }

/* ════════════════════════════════════════════════ */
/*  بلوك الرأسية الفاخرة (Hero) — الهوية الجديدة      */
/* ════════════════════════════════════════════════ */
.mkn-block-hero {
    background:
        radial-gradient(circle at 88% 15%, rgba(63,220,165,.14) 0%, transparent 45%),
        linear-gradient(135deg, #2a2868 0%, #141235 55%, #0c0b22 100%);
    border: 1px solid rgba(63,220,165,.18);
    border-radius: 22px;
    padding: 32px 30px;
    color: #f3eee1;
    box-shadow: 0 24px 60px -30px rgba(0,0,0,.6);
}
.mkn-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mkn-hero-tag {
    font-size: 12px; font-weight: 700;
    padding: 5px 14px; border-radius: 30px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #d9d2bf;
    backdrop-filter: blur(8px);
}
.mkn-hero-tag.is-primary {
    background: rgba(63,220,165,.16);
    border-color: rgba(63,220,165,.4);
    color: #3fdca5;
}
.mkn-hero-title {
    font-size: 28px; font-weight: 900; line-height: 1.5;
    color: #fff; margin: 0 0 12px;
}
.mkn-hero-subtitle {
    font-size: 16px; line-height: 1.8;
    color: #9c98c9; margin: 0 0 22px;
}
.mkn-hero-author {
    display: flex; align-items: center; gap: 12px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.mkn-hero-author-img {
    width: 48px; height: 48px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
    border: 2px solid #3fdca5;
}
.mkn-hero-author-img img { width: 100%; height: 100%; object-fit: cover; }
.mkn-hero-author-info { display: flex; flex-direction: column; gap: 2px; }
.mkn-hero-author-name { font-size: 15px; font-weight: 700; color: #fff; }
.mkn-hero-author-role { font-size: 13px; color: #9c98c9; }
.mkn-hero-meta {
    margin-right: auto; display: flex; gap: 16px; flex-wrap: wrap;
}
.mkn-hero-meta span {
    font-size: 13px; color: #d9d2bf;
    display: inline-flex; align-items: center; gap: 5px;
}
.mkn-hero-meta i { color: #3fdca5; }

/* ════════════════════════════════════════════════ */
/*  بلوك المصادر (Sources) — الهوية الجديدة          */
/* ════════════════════════════════════════════════ */
.mkn-block-sources {
    background: linear-gradient(135deg, #1a1840 0%, #141235 100%);
    border: 1px solid rgba(63,220,165,.2);
    border-radius: 18px;
    padding: 22px 26px;
}
.mkn-sources-head {
    display: flex; align-items: center; gap: 9px;
    font-size: 16px; font-weight: 800; color: #3fdca5;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(63,220,165,.18);
}
.mkn-sources-head i { font-size: 19px; }
.mkn-sources-list { list-style: none; padding: 0; margin: 0; }
.mkn-sources-list li {
    padding: 9px 22px 9px 0; position: relative;
    font-size: 15px; line-height: 1.7;
}
.mkn-sources-list li:not(:last-child) { border-bottom: 1px dashed rgba(255,255,255,.08); }
.mkn-sources-list li::before {
    content: ''; position: absolute; top: 17px; right: 6px;
    width: 7px; height: 7px; border-radius: 50%; background: #e9be4b;
}
.mkn-sources-list a {
    color: #d9d2bf; text-decoration: none;
    transition: color .2s ease;
    display: inline-flex; align-items: center; gap: 6px;
}
.mkn-sources-list a:hover { color: #3fdca5; }
.mkn-sources-list a i { font-size: 14px; opacity: .7; }
.mkn-sources-list span { color: #d9d2bf; }

@media (max-width: 600px) {
    .mkn-hero-title { font-size: 22px; }
    .mkn-hero-meta { margin-right: 0; width: 100%; }
    .mkn-block-hero { padding: 24px 20px; }
}

/* ===== ترويسة صورة فقط (عند وجود بلوك رأسية فاخرة) ===== */
.mkn-article-hero--image-only {
    min-height: 0 !important;
    background: none !important;
    padding: 0 !important;
    margin-bottom: 20px;
}
.mkn-article-hero--image-only .mkn-article-hero-img {
    position: static !important;
    border-radius: 18px;
    overflow: hidden;
}
.mkn-article-hero--image-only .mkn-article-hero-img img {
    width: 100%; height: auto; display: block; border-radius: 18px;
}
.mkn-article-hero--image-only::before,
.mkn-article-hero--image-only::after { display: none !important; }
