/* =========================================================
   Zoom24 — واجهة الهاتف (نمط الجرائد الإخبارية)
   شريط علوي كحلي + تبويبات أقسام + تدفق بطاقات + شريط سفلي ثابت
   ========================================================= */

body.z24m {
    margin: 0;
    padding: 0 0 86px;
    background: #eef1f5;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}
body.z24m a { text-decoration: none; color: inherit; }
body.z24m img { max-width: 100%; display: block; }

/* إخفاء ترويسة وتذييل الموقع العامّين على واجهة الهاتف */
body.z24m .z24g-head,
body.z24m .z24g-foot,
body.z24m .td-header-template-wrap,
body.z24m .td-footer-template-wrap,
body.z24m .td-header-mobile-wrap,
body.z24m .td-header-desktop-wrap,
body.z24m .td-footer-wrap,
body.z24m .td-sub-footer-wrap { display: none !important; }

.z24m-wrap { background: #eef1f5; }

/* ================= الشريط العلوي ================= */
.z24m-hd { position: sticky; top: 0; z-index: 70; }

.z24m-top {
    display: flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
    background: #0e3f96;
    color: #fff;
    padding: 8px 12px;
    min-height: 52px;
}
.z24m-top .z24m-ic { order: 1; }
.z24m-top .z24m-tools { order: 2; }
.z24m-top .z24m-logo { order: 3; margin-left: auto; }

.z24m-ic {
    border: 0;
    background: transparent;
    color: #fff;
    padding: 6px;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    line-height: 0;
    border-radius: 50%;
}
.z24m-ic:active { background: rgba(255, 255, 255, .16); }

.z24m-tools { display: flex; align-items: center; gap: 8px; }
.z24m-lang {
    border: 1.6px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .3px;
    color: #fff;
}
.z24m-logo img {
    height: 34px;
    width: auto;
    background: #fff;
    padding: 4px 9px;
    border-radius: 7px;
}

/* تبويبات الأقسام */
.z24m-tabs {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid #e4e7ec;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .06);
}
.z24m-burger {
    border: 0;
    background: transparent;
    color: #0e3f96;
    padding: 0 12px;
    display: grid;
    place-items: center;
    cursor: pointer;
    border-left: 1px solid #eceff3;
    flex: 0 0 auto;
}
.z24m-tabs-scroll {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.z24m-tabs-scroll::-webkit-scrollbar { display: none; }
.z24m-tabs-scroll a {
    white-space: nowrap;
    padding: 13px 15px 11px;
    font-size: 16px;
    font-weight: 800;
    color: #1f2937;
    border-bottom: 3px solid transparent;
    flex: 0 0 auto;
}
.z24m-tabs-scroll a.is-on { color: #0e3f96; border-bottom-color: #0e3f96; }

/* ================= التدفق الإخباري ================= */
.z24m-feed { display: block; }

.z24m-card { position: relative; background: #0b1220; margin-bottom: 3px; }
.z24m-card a { display: block; position: relative; }
.z24m-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.z24m-ov {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    gap: 7px;
    padding: 18px 16px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .55) 42%, rgba(0, 0, 0, 0) 78%);
}
.z24m-meta {
    color: #e8edf6;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .2px;
}
.z24m-t {
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.55;
    letter-spacing: -.2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.z24m-empty { text-align: center; padding: 40px 16px; color: #6b7280; }

/* ================= الشريط السفلي ================= */
.z24m-bot {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #fff;
    border-top: 1px solid #e4e7ec;
    box-shadow: 0 -2px 12px rgba(16, 24, 40, .08);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.z24m-bot > a,
.z24m-bot > button {
    border: 0;
    background: transparent;
    color: #6b7280;
    padding: 8px 14px;
    display: inline-grid;
    place-items: center;
    position: relative;
    cursor: pointer;
    line-height: 0;
}
.z24m-bot > a.is-on { color: #0e3f96; }
.z24m-badge {
    position: absolute;
    top: 1px;
    left: 50%;
    transform: translateX(4px);
    background: #c8102e;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    line-height: 1;
}

/* ================= لوحة البحث ================= */
.z24m-sheet {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(10, 18, 32, .55);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 84px 14px 0;
}
.z24m-sheet[hidden] { display: none; }
.z24m-sheet form {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}
.z24m-sheet input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 15px 16px;
    font-size: 15px;
    font-family: inherit;
    direction: rtl;
}
.z24m-sheet button {
    border: 0;
    background: #0e3f96;
    color: #fff;
    font-weight: 800;
    padding: 0 20px;
    cursor: pointer;
    font-family: inherit;
}

/* ================= لوحة القائمة ================= */
.z24m-drawer {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(10, 18, 32, .55);
    display: flex;
    justify-content: flex-start;
}
.z24m-drawer[hidden] { display: none; }
.z24m-drawer-in {
    width: 82%;
    max-width: 340px;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, .35);
}
.z24m-drawer-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0e3f96;
    color: #fff;
    padding: 15px 16px;
    font-weight: 800;
    font-size: 17px;
}
.z24m-drawer-h button {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}
.z24m-drawer-in ul { list-style: none; margin: 0; padding: 6px 0; }
.z24m-drawer-in li a {
    display: block;
    padding: 13px 18px;
    border-bottom: 1px solid #f1f3f7;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}
.z24m-drawer-in li a:active { background: #f4f7fd; color: #0e3f96; }

/* ================= الوضع الليلي ================= */
body.z24m.z24m-dark { background: #0d1117; }
body.z24m.z24m-dark .z24m-wrap { background: #0d1117; }
body.z24m.z24m-dark .z24m-tabs,
body.z24m.z24m-dark .z24m-bot { background: #131a24; border-color: #1f2937; }
body.z24m.z24m-dark .z24m-tabs-scroll a { color: #cbd5e1; }
body.z24m.z24m-dark .z24m-tabs-scroll a.is-on { color: #7fb0ff; border-bottom-color: #7fb0ff; }
body.z24m.z24m-dark .z24m-burger { color: #7fb0ff; border-color: #1f2937; }
body.z24m.z24m-dark .z24m-bot > a,
body.z24m.z24m-dark .z24m-bot > button { color: #93a3b8; }
body.z24m.z24m-dark .z24m-bot > a.is-on { color: #7fb0ff; }
body.z24m.z24m-dark .z24m-drawer-in { background: #131a24; }
body.z24m.z24m-dark .z24m-drawer-in li a { color: #cbd5e1; border-color: #1f2937; }

/* ================= شاشات أكبر ================= */
@media (min-width: 700px) {
    .z24m-card img { aspect-ratio: 21 / 9; }
    .z24m-t { font-size: 22px; }
    .z24m-ov { padding: 26px 30px 24px; }
}

/* =========================================================
   Zoom24 — واجهة الهاتف: المقال + الصفحة + الأرشيف
   ========================================================= */

/* ================= صفحة المقال / الصفحة ================= */
.z24m-art { background: #fff; }
.z24m-art-in { padding: 16px 16px 6px; }

.z24m-art-cat {
	display: inline-block;
	background: #0e3f96;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	padding: 5px 13px;
	border-radius: 20px;
	margin-bottom: 12px;
}
.z24m-art-title {
	font-size: 24px;
	line-height: 1.5;
	font-weight: 800;
	color: #12161c;
	margin: 0 0 12px;
	letter-spacing: -.2px;
}
.z24m-art-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	color: #6b7280;
	font-size: 13px;
	font-weight: 600;
	padding-bottom: 14px;
	border-bottom: 1px solid #e4e7ec;
	margin-bottom: 16px;
}
.z24m-art-img { margin: 0 0 16px; }
.z24m-art-img img { width: 100%; border-radius: 10px; }

.z24m-art-body { font-size: 17px; line-height: 1.95; color: #1f2937; }
.z24m-art-body > *:first-child { margin-top: 0; }
.z24m-art-body p { margin: 0 0 16px; }
.z24m-art-body img { border-radius: 10px; margin: 12px 0; height: auto; }
.z24m-art-body figure { margin: 16px 0; }
.z24m-art-body figcaption { font-size: 13px; color: #6b7280; text-align: center; margin-top: 6px; }
.z24m-art-body h2 { font-size: 21px; font-weight: 800; margin: 26px 0 12px; color: #12161c; }
.z24m-art-body h3 { font-size: 19px; font-weight: 800; margin: 22px 0 10px; color: #12161c; }
.z24m-art-body h4 { font-size: 17px; font-weight: 800; margin: 18px 0 8px; color: #12161c; }
.z24m-art-body ul,
.z24m-art-body ol { margin: 0 0 16px; padding-inline-start: 24px; }
.z24m-art-body ul { list-style: disc; }
.z24m-art-body ol { list-style: decimal; }
.z24m-art-body li { margin-bottom: 7px; }
.z24m-art-body a { color: #0e3f96; text-decoration: underline; }
.z24m-art-body blockquote {
	border-inline-start: 4px solid #0e3f96;
	background: #f4f7fd;
	margin: 0 0 18px;
	padding: 14px 16px;
	border-radius: 0 8px 8px 0;
	font-weight: 600;
	color: #23324d;
}
.z24m-art-body iframe,
.z24m-art-body video { max-width: 100%; border-radius: 10px; }
.z24m-art-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.z24m-art-body th,
.z24m-art-body td { border: 1px solid #e4e7ec; padding: 9px 10px; text-align: right; }
.z24m-art-body th { background: #f4f7fd; font-weight: 800; }

/* وسوم المقال */
.z24m-art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 4px; }
.z24m-art-tags a {
	background: #eef2fa;
	color: #0e3f96;
	font-size: 13px;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 20px;
}

/* أزرار المشاركة */
.z24m-art-share { display: flex; gap: 10px; margin: 22px 0 6px; }
.z24m-art-share a {
	flex: 1;
	text-align: center;
	padding: 12px 8px;
	border-radius: 9px;
	font-weight: 800;
	font-size: 14px;
	color: #fff;
}
.z24m-art-share .wa { background: #25d366; }
.z24m-art-share .fb { background: #1877f2; }
.z24m-art-share .x { background: #14171c; }

/* عنوان «اقرأ أيضاً» */
.z24m-rel-h {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 26px 16px 12px;
	font-size: 19px;
	font-weight: 800;
	color: #12161c;
}
.z24m-rel-h::before { content: ""; width: 5px; height: 20px; background: #c8102e; }

/* صفحة ثابتة */
.z24m-page .z24m-art-title { margin-top: 2px; }
.z24m-page .z24m-art-body { padding-bottom: 20px; }

/* ================= الأرشيف ================= */
.z24m-arch-h {
	background: #fff;
	padding: 16px;
	border-bottom: 1px solid #e4e7ec;
	margin-bottom: 3px;
}
.z24m-crumb { font-size: 13px; color: #6b7280; font-weight: 600; }
.z24m-crumb a { color: #0e3f96; font-weight: 800; }
.z24m-arch-h h1 {
	font-size: 23px;
	font-weight: 800;
	color: #12161c;
	margin: 7px 0 0;
	line-height: 1.45;
}
.z24m-arch-count {
	display: inline-block;
	margin-top: 9px;
	background: #eef2fa;
	color: #0e3f96;
	font-size: 12.5px;
	font-weight: 800;
	padding: 4px 13px;
	border-radius: 20px;
}

/* ترقيم الصفحات */
.z24m-pag {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	padding: 20px 12px 26px;
	background: #eef1f5;
}
.z24m-pag .page-numbers {
	display: inline-block;
	min-width: 42px;
	text-align: center;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #e4e7ec;
	border-radius: 8px;
	font-weight: 800;
	font-size: 14px;
	color: #2a3441;
}
.z24m-pag .page-numbers.current { background: #0e3f96; border-color: #0e3f96; color: #fff; }
.z24m-pag .page-numbers.dots { border: 0; background: transparent; }

/* الوضع الليلي للمقال */
body.z24m.z24m-dark .z24m-art,
body.z24m.z24m-dark .z24m-arch-h { background: #0d1117; }
body.z24m.z24m-dark .z24m-art-title,
body.z24m.z24m-dark .z24m-arch-h h1,
body.z24m.z24m-dark .z24m-art-body,
body.z24m.z24m-dark .z24m-art-body h2,
body.z24m.z24m-dark .z24m-art-body h3,
body.z24m.z24m-dark .z24m-art-body h4 { color: #e5e9f0; }
body.z24m.z24m-dark .z24m-art-meta { color: #93a3b8; border-color: #1f2937; }
body.z24m.z24m-dark .z24m-art-body blockquote { background: #131a24; color: #cbd5e1; }
body.z24m.z24m-dark .z24m-art-tags a { background: #131a24; color: #7fb0ff; }
body.z24m.z24m-dark .z24m-arch-count { background: #131a24; color: #7fb0ff; }

/* إخفاء عنوان المحتوى إن كرّر عنوان الصفحة */
.z24m-page .z24m-art-body > h1:first-child,
.z24m-page .z24m-art-body > h2:first-child { display: none; }

/* =========================================================
   Zoom24 — واجهة الهاتف: التذييل + إصلاحات المقال
   ========================================================= */

/* ================= تذييل الموبايل ================= */
.z24m-ft { background: #0c1c3d; color: #c3d0e6; }
.z24m-ft__brand { padding: 26px 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.z24m-ft__logo { height: 52px; width: auto; background: #fff; padding: 5px 10px; border-radius: 7px; margin-bottom: 14px; }
.z24m-ft__desc { font-size: 14px; line-height: 1.9; margin: 0 0 16px; color: #c3d0e6; }
.z24m-ft__soc { display: flex; flex-wrap: wrap; gap: 8px; }
.z24m-ft__soc a {
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 20px;
	padding: 6px 13px;
	font-size: 12.5px;
	font-weight: 700;
	color: #dbe4f3;
}
.z24m-ft__soc a:active { background: #0e3f96; border-color: #0e3f96; color: #fff; }
.z24m-ft__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 22px 16px; }
.z24m-ft__col h4 {
	color: #fff;
	font-size: 14.5px;
	font-weight: 800;
	margin: 0 0 12px;
	padding-bottom: 9px;
	border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.z24m-ft__col ul { display: grid; gap: 9px; }
.z24m-ft__col a { color: #c3d0e6; font-size: 14px; }
.z24m-ft__cats { grid-template-columns: 1fr; }
.z24m-ft__bottom {
	display: flex;
	flex-direction: column;
	gap: 5px;
	text-align: center;
	padding: 14px 16px;
	background: rgba(0, 0, 0, .25);
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: 12px;
	color: #9fb0c9;
}
body.z24m.z24m-dark .z24m-ft { background: #080d16; }

/* ================= إصلاح أزرار المشاركة ================= */
body.z24m .z24m-art-share a { color: #fff; }
body.z24m .z24m-art-share a.wa { background: #25d366; }
body.z24m .z24m-art-share a.fb { background: #1877f2; }
body.z24m .z24m-art-share a.x { background: #14171c; }

/* ================= صقل صفحة المقال ================= */
body.z24m .z24m-art-body p { text-align: right; }
body.z24m .z24m-art-body a { color: #0e3f96; }
body.z24m .z24m-art-title { text-align: right; }
body.z24m .z24m-art-in { padding-bottom: 12px; }


/* =========================================================
   Zoom24 — الهوية باللونين الأزرق والأحمر (مطابقة للحاسوب)
   أُضيفت لتعكس ألوان الشعار: الأزرق #0e3f96 والأحمر #c8102e
   ========================================================= */

/* خط أحمر أسفل الشريط العلوي الأزرق (امتداد لهوية الشعار) */
body.z24m .z24m-top { border-bottom: 3px solid #c8102e; }

/* التبويب النشط: نص أزرق + خط سفلي أحمر */
body.z24m .z24m-tabs-scroll a.is-on {
    color: #0e3f96;
    border-bottom-color: #c8102e;
}

/* شارة القسم في صفحة المقال: حمراء كما في الصفحة الرئيسية للحاسوب */
body.z24m .z24m-art-cat { background: #c8102e; }

/* شريط «آخر ساعة» الأحمر — هوية الصفحة الرئيسية للحاسوب */
.z24m-tk {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid #e4e7ec;
    height: 44px;
    overflow: hidden;
}
.z24m-tk-b {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 7px;
    background: #c8102e;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 0 15px;
}
.z24m-tk-b::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: z24m-pulse 1.2s infinite;
}
@keyframes z24m-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .35; transform: scale(.7); }
}
.z24m-tk-v { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.z24m-tk-i {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: z24m-marq 60s linear infinite;
    will-change: transform;
}
.z24m-tk-i:hover { animation-play-state: paused; }
.z24m-tk-i a { color: #1f2937; font-size: 14px; font-weight: 700; }
.z24m-tk-i a:active { color: #c8102e; }
.z24m-tk-i i { color: #c8102e; font-style: normal; padding: 0 13px; }
@keyframes z24m-marq {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* الوضع الليلي */
body.z24m.z24m-dark .z24m-tk { background: #131a24; border-color: #1f2937; }
body.z24m.z24m-dark .z24m-tk-i a { color: #cbd5e1; }

/* =========================================================
   Zoom24 — إصلاحات طلبها المالك (2026-10-15)
   ========================================================= */

/* شارة التصنيف: خلفية حمراء + نص أبيض (كان النص أسود بسبب وراثة لون الروابط) */
body.z24m a.z24m-art-cat,
body.z24m .z24m-art-cat {
    color: #fff;
}

/* تسوية/ضبط النص بالتساوي في كل المقالات (الحالية والمستقبلية) */
body.z24m .z24m-art-title {
    text-align: justify;
    text-align-last: right;
}
body.z24m .z24m-art-body p,
body.z24m .z24m-art-body li {
    text-align: justify;
}

/* إصلاح: إظهار شريط «آخر ساعة» في الجوال من اللحظة الأولى (كان يبدأ خارج الشاشة) */
@keyframes z24m-marq {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* إزالة الشريط السفلي الثابت: لا حاجة لهامش سفلي */
body.z24m { padding-bottom: 0; }
body.z24m .z24m-bot { display: none; }
