/*
Theme Name: خبر اليوم
Theme URI: https://example.com/khabar-alyoum
Author: خبر اليوم
Description: قالب إخباري عربي احترافي وسريع: وضع نهاري وليلي، إعلانات أدسنس في بداية ووسط وآخر الموضوع، سيو وأرشفة قوقل (Schema NewsArticle)، أدوات وحاسبات مجانية، منشئ سيرة ذاتية، ومدونة. خط الشعار Alexandria وخط الموقع Rubik مستضافان محلياً.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 7.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: khabar
Tags: news, blog, rtl-language-support, custom-colors, custom-logo, custom-menu, featured-images, theme-options, threaded-comments, translation-ready, two-columns, right-sidebar
*/

/* ============ الخطوط (مستضافة محلياً) ============ */
@font-face {
	font-family: "Rubik";
	src: url("assets/fonts/rubik.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Alexandria";
	src: url("assets/fonts/alexandria.woff2") format("woff2");
	font-weight: 600 800;
	font-style: normal;
	font-display: swap;
}

/* ============ المتغيرات ============ */
:root {
	--kh-font-body: "Rubik", "Segoe UI", Tahoma, Arial, sans-serif;
	--kh-font-logo: "Alexandria", "Rubik", "Segoe UI", Tahoma, sans-serif;
	--kh-radius: 14px;
	--kh-radius-sm: 10px;
	--kh-shadow: 0 1px 2px rgba(var(--kh-text-rgb), .04), 0 4px 16px rgba(var(--kh-text-rgb), .05);
	--kh-shadow-lg: 0 10px 40px rgba(var(--kh-text-rgb), .12);
	--kh-header-h: 68px;
	--kh-ease: cubic-bezier(.2, .7, .2, 1);
	/* القيم الافتراضية (تُستبدل من لوحة التحكم) */
	--kh-primary: #0E4DA4; --kh-primary-rgb: 14,77,164; --kh-on-primary: #fff;
	--kh-accent: #E5383B; --kh-accent-rgb: 229,56,59;
	--kh-bg: #F3F5F9; --kh-surface: #fff; --kh-text: #0F172A; --kh-text-rgb: 15,23,42;
	--kh-muted: #5B6474; --kh-border: #E2E6EE; --kh-header: #fff; --kh-footer: #0B1B33; --kh-on-footer: #fff;
	--kh-article-size: 17px;
	--kh-font-head: var(--kh-font-logo);
}

/* ============ أساسيات ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--kh-header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--kh-font-body);
	font-size: 16px;
	line-height: 1.75;
	color: var(--kh-text);
	background: var(--kh-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background-color .25s, color .25s;
}
html.kh-lock, html.kh-lock body { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--kh-primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--kh-font-head); line-height: 1.45; margin: 0 0 .6em; color: var(--kh-text); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--kh-primary); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(var(--kh-primary-rgb), .18); }
mark { background: rgba(var(--kh-accent-rgb), .14); color: inherit; padding: 0 .2em; border-radius: 4px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.kh-skip {
	position: absolute; inset-inline-start: 12px; top: -60px; z-index: 999;
	background: var(--kh-primary); color: var(--kh-on-primary); padding: 10px 16px; border-radius: 10px;
}
.kh-skip:focus { top: 12px; }
.kh-container { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: 16px; }
.kh-narrow { max-width: 820px; }
.kh-main { display: block; min-height: 60vh; outline: none; padding-bottom: 40px; }
.kh-ic { flex-shrink: 0; }
.kh-muted { color: var(--kh-muted); }

/* ============ الأزرار ============ */
.kh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
	font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none !important;
	transition: transform .15s var(--kh-ease), background .2s, box-shadow .2s, border-color .2s;
	white-space: nowrap;
}
.kh-btn:active { transform: scale(.97); }
.kh-btn--primary { background: var(--kh-primary); color: var(--kh-on-primary); box-shadow: 0 4px 14px rgba(var(--kh-primary-rgb), .3); }
.kh-btn--primary:hover { filter: brightness(1.08); }
.kh-btn--light { background: #fff; color: #0B1B33; }
.kh-btn--ghost { background: transparent; color: var(--kh-text); border-color: var(--kh-border); }
.kh-btn--ghost:hover { border-color: var(--kh-primary); color: var(--kh-primary); }
.kh-btn--danger:hover { border-color: var(--kh-accent); color: var(--kh-accent); }
.kh-iconbtn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
	background: transparent; border: 1px solid var(--kh-border); color: var(--kh-text); cursor: pointer;
	transition: background .2s, border-color .2s, color .2s;
}
.kh-iconbtn:hover { border-color: var(--kh-primary); color: var(--kh-primary); }

/* ============ الشعار ============ */
.kh-logo { margin: 0; line-height: 1; }
.kh-logo a { display: inline-flex; align-items: center; gap: 10px; color: var(--kh-text); text-decoration: none !important; }
.kh-logo__icon { display: inline-flex; width: 40px; height: 40px; flex-shrink: 0; }
.kh-logo__icon svg, .kh-logo__icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.kh-logo__text { display: flex; flex-direction: column; gap: 4px; }
.kh-logo__name { font-family: var(--kh-font-logo); font-weight: 800; font-size: 24px; letter-spacing: -.02em; line-height: 1.1; }
.kh-logo__tag { font-size: 11.5px; color: var(--kh-muted); font-weight: 500; letter-spacing: 0; }
.kh-logo--footer .kh-logo__name { color: var(--kh-on-footer); }
.kh-logo--footer .kh-logo__tag { color: inherit; opacity: .7; }

/* ============ الرأس ============ */
.kh-header {
	background: var(--kh-header); border-bottom: 1px solid var(--kh-border);
	position: relative; z-index: 50; transition: box-shadow .25s, background .25s;
}
.kh-header.is-sticky { position: sticky; top: 0; }
.admin-bar .kh-header.is-sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .kh-header.is-sticky { top: 0; } }
.kh-header.is-scrolled { box-shadow: 0 6px 24px rgba(var(--kh-text-rgb), .08); }
.kh-header__in { display: flex; align-items: center; gap: 20px; min-height: var(--kh-header-h); }
.kh-nav { flex: 1; min-width: 0; }
.kh-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.kh-menu li { position: relative; }
.kh-menu a {
	display: block; padding: 8px 12px; border-radius: 10px; color: var(--kh-text);
	font-weight: 500; font-size: 15px; text-decoration: none !important; transition: background .2s, color .2s;
}
.kh-menu a:hover, .kh-menu .current-menu-item > a, .kh-menu .current-category-ancestor > a, .kh-menu .current-menu-ancestor > a { background: rgba(var(--kh-primary-rgb), .08); color: var(--kh-primary); }
.kh-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; inset-inline-start: 0; min-width: 200px;
	background: var(--kh-surface); border: 1px solid var(--kh-border); border-radius: 12px; box-shadow: var(--kh-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--kh-ease); z-index: 10;
}
.kh-nav li:hover > .sub-menu, .kh-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.kh-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.kh-mode__sun { display: none; }
[data-theme="dark"] .kh-mode__sun { display: inline-flex; }
[data-theme="dark"] .kh-mode__moon { display: none; }
.kh-burger { display: none; }
@media (max-width: 1023px) {
	.kh-nav { display: none; }
	.kh-burger { display: inline-grid; }
	.kh-logo__name { font-size: 22px; }
	.kh-header__in { gap: 12px; }
}
@media (max-width: 380px) { .kh-logo__tag { display: none; } }

/* ============ شريط عاجل ============ */
.kh-ticker { background: var(--kh-surface); border-bottom: 1px solid var(--kh-border); overflow: hidden; }
.kh-ticker__in { display: flex; align-items: center; gap: 12px; height: 44px; }
.kh-ticker__label {
	display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
	background: var(--kh-accent); color: #fff; font-weight: 700; font-size: 13.5px;
	padding: 5px 12px; border-radius: 8px; font-family: var(--kh-font-logo);
}
.kh-live { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; animation: kh-pulse 1.6s infinite; }
@keyframes kh-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.kh-ticker__track { overflow: hidden; flex: 1; min-width: 0; mask-image: linear-gradient(to left, transparent, #000 24px, #000 calc(100% - 24px), transparent); -webkit-mask-image: linear-gradient(to left, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.kh-ticker__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; width: max-content; }
.kh-ticker__list.is-moving { animation: kh-marquee 60s linear infinite; }
.kh-ticker__track:hover .kh-ticker__list, .kh-ticker__track:focus-within .kh-ticker__list { animation-play-state: paused; }
.kh-ticker__list li { white-space: nowrap; display: flex; align-items: center; }
.kh-ticker__list li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--kh-accent); margin-inline: 18px; opacity: .7; }
.kh-ticker__list a { color: var(--kh-text); font-size: 14.5px; font-weight: 500; }
@keyframes kh-marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
[dir="ltr"] .kh-ticker__list.is-moving { animation-name: kh-marquee-ltr; }
@keyframes kh-marquee-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ البحث المنبثق والقائمة الجانبية ============ */
.kh-search, .kh-drawer {
	position: fixed; inset: 0; z-index: 200; background: rgba(5, 10, 20, .55);
	backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
	opacity: 0; transition: opacity .2s;
}
.kh-search.is-open, .kh-drawer.is-open { opacity: 1; }
.kh-search__box {
	position: relative; max-width: 680px; margin: 12vh auto 0; padding: 18px; padding-inline-end: 64px;
	background: var(--kh-surface); border-radius: 18px; box-shadow: var(--kh-shadow-lg);
	transform: translateY(-10px); transition: transform .25s var(--kh-ease);
	width: calc(100% - 32px);
}
.kh-search.is-open .kh-search__box { transform: none; }
.kh-search__close { position: absolute; top: 18px; inset-inline-end: 14px; }
.kh-drawer__panel {
	position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(340px, 86vw);
	background: var(--kh-surface); padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px;
	transform: translateX(100%); transition: transform .28s var(--kh-ease);
}
[dir="ltr"] .kh-drawer__panel { transform: translateX(-100%); }
.kh-drawer.is-open .kh-drawer__panel { transform: none; }
.kh-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.kh-menu--drawer { flex-direction: column; align-items: stretch; gap: 2px; }
.kh-menu--drawer li { display: flex; flex-wrap: wrap; align-items: center; }
.kh-menu--drawer a { flex: 1; padding: 12px 14px; font-size: 16px; }
.kh-menu--drawer .sub-menu { display: none; width: 100%; list-style: none; padding-inline-start: 14px; margin: 0; }
.kh-menu--drawer .is-open > .sub-menu { display: block; }
.kh-sub-toggle { width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; color: var(--kh-muted); display: grid; place-items: center; border-radius: 10px; }
.kh-menu--drawer .is-open > .kh-sub-toggle svg { transform: rotate(180deg); }

/* نموذج البحث */
.kh-searchform { display: flex; align-items: center; gap: 8px; position: relative; }
.kh-searchform__icon { position: absolute; inset-inline-start: 14px; color: var(--kh-muted); display: flex; pointer-events: none; }
.kh-searchform__input {
	flex: 1; min-width: 0; height: 48px; padding-inline: 44px 14px; border-radius: 12px;
	border: 1px solid var(--kh-border); background: var(--kh-bg); outline: none; transition: border-color .2s, box-shadow .2s;
}
.kh-searchform__input:focus { border-color: var(--kh-primary); box-shadow: 0 0 0 4px rgba(var(--kh-primary-rgb), .12); }
.kh-searchform .kh-btn { height: 48px; }

/* ============ الهيرو ============ */
.kh-hero {
	position: relative; overflow: hidden; color: #fff;
	background: radial-gradient(1200px 400px at 85% -10%, rgba(var(--kh-primary-rgb), .9), transparent 60%), linear-gradient(160deg, #0A1830 0%, #0D2550 55%, #0B1B33 100%);
	padding: 56px 0 44px;
}
[data-theme="dark"] .kh-hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(var(--kh-primary-rgb), .35), transparent 60%), linear-gradient(160deg, #0B1322, #0A0F1A); border-bottom: 1px solid var(--kh-border); }
.kh-hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12;
	background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
	background-size: 44px 44px; mask-image: linear-gradient(to bottom, #000, transparent 80%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
.kh-hero__in { position: relative; z-index: 1; }
.kh-hero__kicker { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); padding: 6px 14px; border-radius: 999px; font-size: 13.5px; margin-bottom: 18px; }
.kh-hero__kicker .kh-live { color: #FF6B6E; }
.kh-hero__title { font-family: var(--kh-font-logo); font-weight: 800; color: #fff; font-size: clamp(30px, 5.4vw, 54px); line-height: 1.25; max-width: 760px; margin-bottom: 14px; letter-spacing: -.02em; }
.kh-hero__text { color: rgba(255,255,255,.82); font-size: clamp(15px, 1.8vw, 18px); max-width: 640px; margin-bottom: 26px; }
.kh-hero__search {
	display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 8px;
	max-width: 760px; box-shadow: 0 20px 50px rgba(0,0,0,.25); position: relative;
}
.kh-hero__sicon { position: absolute; inset-inline-start: 22px; color: #6B7280; display: flex; }
.kh-hero__search input { flex: 1; min-width: 0; height: 48px; border: 0; outline: none; background: transparent; color: #0F172A; padding-inline: 42px 8px; font-size: 16px; }
.kh-hero__search select { height: 48px; border: 0; border-inline-start: 1px solid #E5E7EB; background: transparent; color: #0F172A; padding-inline: 12px; outline: none; max-width: 160px; cursor: pointer; }
.kh-hero__search .kh-btn { height: 48px; padding-inline: 26px; }
.kh-hero__tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.7); }
.kh-hero__tags a { color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); padding: 4px 12px; border-radius: 999px; text-decoration: none; transition: background .2s; }
.kh-hero__tags a:hover { background: rgba(255,255,255,.2); }
.kh-stats { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 760px; }
.kh-stats li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 14px 16px; }
.kh-stats strong { display: block; font-family: var(--kh-font-logo); font-size: 26px; font-weight: 800; line-height: 1.2; }
.kh-stats span { font-size: 13px; color: rgba(255,255,255,.72); }
@media (max-width: 640px) {
	.kh-hero { padding: 36px 0 28px; }
	.kh-hero__search { flex-wrap: wrap; padding: 6px; }
	.kh-hero__search input { flex-basis: 100%; }
	.kh-hero__search select { flex: 1; border-inline-start: 0; border-top: 1px solid #E5E7EB; max-width: none; border-radius: 0; }
	.kh-hero__sicon { top: 20px; }
	.kh-stats { grid-template-columns: repeat(2, 1fr); }
	.kh-stats strong { font-size: 22px; }
}

/* ============ الأقسام والعناوين ============ */
.kh-section { margin-top: 40px; }
.kh-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.kh-sec-title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; margin: 0; display: flex; align-items: center; gap: 10px; }
.kh-sec-title::before { content: ""; width: 6px; height: 1.1em; border-radius: 4px; background: var(--kh-primary); flex-shrink: 0; }
.kh-sec-sub { color: var(--kh-muted); margin: 4px 0 0; font-size: 14.5px; }
.kh-sec-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
[dir="ltr"] .kh-sec-more svg, [dir="ltr"] .kh-btn svg.kh-ic-arrow { transform: scaleX(-1); }

/* ============ البطاقات ============ */
.kh-grid { display: grid; gap: 18px; }
.kh-grid--3 { grid-template-columns: repeat(3, 1fr); }
.kh-grid--list { grid-template-columns: repeat(2, 1fr); }
.kh-grid--list .kh-card--lead, .kh-grid__ad { grid-column: 1 / -1; }
@media (max-width: 1023px) { .kh-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .kh-grid--3, .kh-grid--list { grid-template-columns: 1fr; } }

.kh-card {
	position: relative; display: flex; flex-direction: column; background: var(--kh-surface);
	border: 1px solid var(--kh-border); border-radius: var(--kh-radius); overflow: hidden;
	transition: transform .25s var(--kh-ease), box-shadow .25s, border-color .25s;
}
.kh-card:hover { transform: translateY(-3px); box-shadow: var(--kh-shadow-lg); border-color: rgba(var(--kh-primary-rgb), .25); }
.kh-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: rgba(var(--kh-primary-rgb), .06); }
.kh-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--kh-ease); }
.kh-card:hover .kh-card__media img { transform: scale(1.04); }
.kh-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kh-card__title { font-family: var(--kh-font-body); font-size: 17px; font-weight: 600; line-height: 1.6; margin: 0; }
.kh-card__title a { color: var(--kh-text); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 100% 100%; transition: background-size .3s, color .2s; }
.kh-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.kh-card:hover .kh-card__title a { color: var(--kh-primary); }
.kh-card__excerpt { color: var(--kh-muted); font-size: 14.5px; margin: 0; line-height: 1.75; }
.kh-card__meta { margin-top: auto; display: flex; align-items: center; gap: 10px; color: var(--kh-muted); font-size: 13px; }
.kh-card__meta time { display: inline-flex; align-items: center; gap: 5px; }
.kh-badge {
	display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
	background: rgba(var(--kh-primary-rgb), .1); color: var(--kh-primary); text-decoration: none !important; position: relative; z-index: 2;
}
.kh-ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, rgba(var(--kh-primary-rgb), .1), rgba(var(--kh-primary-rgb), .02)); }
.kh-ph svg { width: 56px; height: 56px; opacity: .35; filter: grayscale(.3); }

/* بطاقة رئيسية */
.kh-card--lead { display: grid; grid-template-columns: 1.25fr 1fr; }
.kh-card--lead .kh-card__media { aspect-ratio: auto; min-height: 100%; }
.kh-card--lead .kh-card__body { padding: 24px; justify-content: center; gap: 12px; }
.kh-card--lead .kh-card__title { font-family: var(--kh-font-head); font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; line-height: 1.45; }
@media (max-width: 760px) {
	.kh-card--lead { grid-template-columns: 1fr; }
	.kh-card--lead .kh-card__media { aspect-ratio: 16 / 9; }
	.kh-card--lead .kh-card__body { padding: 16px; }
}

/* بطاقة أفقية */
.kh-card--row, .kh-card--mini { flex-direction: row; align-items: stretch; }
.kh-card--row .kh-card__media { width: 132px; flex-shrink: 0; aspect-ratio: auto; }
.kh-card--row .kh-card__body { padding: 12px 14px; gap: 6px; }
.kh-card--row .kh-card__title { font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kh-card--mini { border: 0; border-radius: 0; background: transparent; border-bottom: 1px solid var(--kh-border); padding: 12px 0; gap: 12px; }
.kh-card--mini:last-child { border-bottom: 0; }
.kh-card--mini:hover { transform: none; box-shadow: none; }
.kh-card--mini .kh-card__media { width: 84px; height: 64px; border-radius: 10px; flex-shrink: 0; aspect-ratio: auto; }
.kh-card--mini .kh-card__body { padding: 0; gap: 4px; }
.kh-card--mini .kh-card__title { font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kh-card--mini .kh-card__meta { font-size: 12px; }

/* أبرز الأخبار */
.kh-top__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.kh-top__lead .kh-card--lead { grid-template-columns: 1fr; height: 100%; }
.kh-top__lead .kh-card--lead .kh-card__media { aspect-ratio: 16 / 9; min-height: 0; }
.kh-top__side { display: grid; gap: 12px; grid-auto-rows: 1fr; }
@media (max-width: 1023px) { .kh-top__grid { grid-template-columns: 1fr; } .kh-top__side { grid-auto-rows: auto; } }

/* أقسام التصنيفات */
.kh-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
.kh-catbox__list { display: grid; gap: 12px; }
@media (max-width: 860px) { .kh-cats { grid-template-columns: 1fr; } }

/* ============ التخطيط مع الشريط الجانبي ============ */
.kh-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; margin-top: 24px; }
.kh-no-sidebar .kh-layout { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.kh-content, .kh-sidebar { min-width: 0; }
.kh-sidebar__in { position: sticky; top: calc(var(--kh-header-h) + 20px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (max-width: 1023px) {
	.kh-layout { grid-template-columns: minmax(0, 1fr); }
	.kh-sidebar__in { position: static; }
}
.kh-widget { min-width: 0; overflow-wrap: anywhere; background: var(--kh-surface); border: 1px solid var(--kh-border); border-radius: var(--kh-radius); padding: 18px; }
.kh-widget__title { font-size: 17px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.kh-widget__title::before { content: ""; width: 5px; height: 1em; border-radius: 3px; background: var(--kh-primary); }
.kh-widget ul:not(.kh-chips) { list-style: none; margin: 0; padding: 0; }
.kh-widget ul:not(.kh-chips) li { padding: 8px 0; border-bottom: 1px dashed var(--kh-border); }
.kh-widget ul:not(.kh-chips) li:last-child { border-bottom: 0; }
.kh-widget ul:not(.kh-chips) a { color: var(--kh-text); }
.kh-widget ul:not(.kh-chips) a:hover { color: var(--kh-primary); }
.kh-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kh-chips a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--kh-bg); border: 1px solid var(--kh-border); color: var(--kh-text); font-size: 14px; text-decoration: none; transition: .2s; }
.kh-chips a:hover { border-color: var(--kh-primary); color: var(--kh-primary); }


/* ودجات الكتل الافتراضية في ووردبريس */
.kh-widget .wp-block-heading, .kh-widget h2:not(.kh-widget__title) { font-size: 17px; font-weight: 800; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.kh-widget .wp-block-heading::before { content: ""; width: 5px; height: 1em; border-radius: 3px; background: var(--kh-primary); }
.wp-block-search__label { display: block; font-weight: 700; margin-bottom: 8px; }
.wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.wp-block-search__input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--kh-border); background: var(--kh-bg); outline: none; }
.wp-block-search__input:focus { border-color: var(--kh-primary); }
.wp-block-search__button { height: 44px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--kh-primary); color: var(--kh-on-primary); font-weight: 600; cursor: pointer; white-space: nowrap; }
.wp-block-latest-posts, .wp-block-archives, .wp-block-categories, .wp-block-latest-comments { padding: 0; margin: 0; list-style: none; }
.wp-block-latest-comments { font-size: 14px; color: var(--kh-muted); }

/* ============ رأس الصفحات ============ */
.kh-page-head { padding: 28px 0 8px; }
.kh-page-head--center { text-align: center; }
.kh-page-head--center .kh-crumbs ol { justify-content: center; }
.kh-page-title { font-size: clamp(24px, 3.6vw, 38px); font-weight: 800; margin-bottom: 8px; }
.kh-page-desc { color: var(--kh-muted); max-width: 720px; }
.kh-page-head--center .kh-page-desc { margin-inline: auto; }
.kh-page-search { max-width: 560px; margin-top: 12px; }
.kh-page-head--center .kh-page-search { margin-inline: auto; }

/* مسار التنقل */
.kh-crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--kh-muted); }
.kh-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.kh-crumbs li + li::before { content: "‹"; opacity: .6; }
[dir="ltr"] .kh-crumbs li + li::before { content: "›"; }
.kh-crumbs a { color: var(--kh-muted); }
.kh-crumbs [aria-current] span { color: var(--kh-text); display: inline-block; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ============ صفحة الخبر ============ */
.kh-article { background: var(--kh-surface); border: 1px solid var(--kh-border); border-radius: 18px; padding: clamp(18px, 3.4vw, 36px); }
.kh-article__head { margin-bottom: 20px; }
.kh-article__head .kh-badge { margin-bottom: 12px; }
.kh-article__title { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; line-height: 1.5; margin-bottom: 12px; }
.kh-article__dek { font-size: clamp(16px, 1.9vw, 19px); color: var(--kh-muted); line-height: 1.8; margin-bottom: 14px; }
.kh-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--kh-muted); font-size: 14px; padding-top: 14px; border-top: 1px solid var(--kh-border); }
.kh-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.kh-meta a { color: inherit; }
.kh-meta__upd { color: var(--kh-primary); }
.kh-article__media { margin: 0 0 24px; border-radius: var(--kh-radius); overflow: hidden; background: var(--kh-bg); }
.kh-article__media img { width: 100%; }
.kh-article__media figcaption { font-size: 13px; color: var(--kh-muted); padding: 10px 14px; }

/* نص المقال */
.kh-prose { font-size: var(--kh-article-size); line-height: 2; overflow-wrap: anywhere; }
.kh-prose > * + * { margin-top: 0; }
.kh-prose p { margin-bottom: 1.15em; }
.kh-prose h2 { font-size: 1.45em; margin: 1.6em 0 .6em; }
.kh-prose h3 { font-size: 1.22em; margin: 1.4em 0 .5em; }
.kh-prose h4 { font-size: 1.08em; margin: 1.2em 0 .5em; }
.kh-prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; font-weight: 500; }
.kh-prose ul, .kh-prose ol { padding-inline-start: 1.4em; margin: 0 0 1.15em; }
.kh-prose li { margin-bottom: .4em; }
.kh-prose li::marker { color: var(--kh-primary); }
.kh-prose strong { font-weight: 700; }
.kh-prose blockquote {
	margin: 1.5em 0; padding: 16px 20px; border-inline-start: 4px solid var(--kh-primary);
	background: rgba(var(--kh-primary-rgb), .05); border-radius: 0 12px 12px 0; font-size: 1.05em;
}
[dir="rtl"] .kh-prose blockquote { border-radius: 12px 0 0 12px; }
.kh-prose blockquote p:last-child { margin: 0; }
.kh-prose img, .kh-prose figure { border-radius: 12px; }
.kh-prose figure { margin: 1.5em 0; }
.kh-prose figcaption { font-size: 13.5px; color: var(--kh-muted); text-align: center; margin-top: 8px; }
.kh-prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .92em; display: block; overflow-x: auto; }
.kh-prose th, .kh-prose td { border: 1px solid var(--kh-border); padding: 10px 12px; text-align: start; }
.kh-prose th { background: rgba(var(--kh-primary-rgb), .07); font-weight: 700; }
.kh-prose tr:nth-child(even) td { background: rgba(var(--kh-text-rgb), .02); }
.kh-prose code { background: var(--kh-bg); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.kh-prose pre { background: #0B1220; color: #E8ECF4; padding: 16px; border-radius: 12px; overflow-x: auto; direction: ltr; }
.kh-prose iframe, .kh-prose video { border-radius: 12px; }
.kh-prose .wp-block-button__link { background: var(--kh-primary); color: var(--kh-on-primary); border-radius: 12px; text-decoration: none; padding: 12px 22px; }
.kh-prose hr { border: 0; border-top: 1px solid var(--kh-border); margin: 2em 0; }
.aligncenter { margin-inline: auto; text-align: center; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13.5px; color: var(--kh-muted); text-align: center; }
.sticky, .bypostauthor, .gallery-caption { outline: 0; }

/* فهرس المحتوى */
.kh-toc { background: var(--kh-bg); border: 1px solid var(--kh-border); border-radius: 12px; padding: 4px 16px; margin-bottom: 1.5em; font-size: 15px; }
.kh-toc summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; padding: 10px 0; list-style: none; }
.kh-toc summary::-webkit-details-marker { display: none; }
.kh-toc ol { margin: 0 0 12px; padding-inline-start: 1.4em; }
.kh-toc li { margin: 4px 0; }
.kh-toc .kh-toc__l3 { margin-inline-start: 1em; font-size: 14px; }
.kh-toc a { text-decoration: none; color: var(--kh-text); }
.kh-toc a:hover { color: var(--kh-primary); }

/* تذييل الخبر */
.kh-article__foot { margin-top: 28px; display: grid; gap: 20px; }
.kh-tags a { font-size: 13.5px; }
.kh-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 0; border-top: 1px solid var(--kh-border); border-bottom: 1px solid var(--kh-border); }
.kh-share__label { font-weight: 600; margin-inline-end: 4px; }
.kh-share__btn {
	display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 10px;
	border: 1px solid var(--kh-border); background: var(--kh-surface); color: var(--kh-text); font-size: 14px; cursor: pointer; text-decoration: none !important; transition: .2s;
}
.kh-share__btn--whatsapp:hover { background: #25D366; border-color: #25D366; color: #fff; }
.kh-share__btn--telegram:hover { background: #229ED9; border-color: #229ED9; color: #fff; }
.kh-share__btn--x:hover { background: #111; border-color: #111; color: #fff; }
.kh-share__btn--copy:hover { border-color: var(--kh-primary); color: var(--kh-primary); }
@media (max-width: 480px) { .kh-share__btn span { display: none; } .kh-share__btn { width: 44px; justify-content: center; padding: 0; } }

/* صندوق المتابعة */
.kh-follow { background: linear-gradient(135deg, rgba(var(--kh-primary-rgb), .08), rgba(var(--kh-primary-rgb), .02)); border: 1px solid rgba(var(--kh-primary-rgb), .18); border-radius: 16px; padding: 18px; }
.kh-follow__title { font-family: var(--kh-font-logo); font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.kh-follow__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.kh-follow__item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--kh-surface); border: 1px solid var(--kh-border); color: var(--kh-text); text-decoration: none !important; transition: .2s; }
.kh-follow__item svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; color: #fff; }
.kh-follow__item--whatsapp svg { background: #25D366; }
.kh-follow__item--telegram svg { background: #229ED9; }
.kh-follow__item--snapchat svg { background: #FFC800; color: #111; }
.kh-follow__item--x svg { background: #111; }
.kh-follow__item span { display: flex; flex-direction: column; line-height: 1.4; }
.kh-follow__item strong { font-size: 14.5px; }
.kh-follow__item small { color: var(--kh-muted); font-size: 12.5px; }
.kh-follow__item:hover { border-color: var(--kh-primary); transform: translateY(-2px); }

/* الكاتب */
.kh-author { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--kh-bg); }
.kh-author img { border-radius: 50%; flex-shrink: 0; }
.kh-author__name { font-weight: 700; margin: 0 0 4px; }
.kh-author__name a { color: var(--kh-text); }
.kh-author__bio { margin: 0; color: var(--kh-muted); font-size: 14.5px; }

/* السابق والتالي */
.kh-pn, .post-navigation { margin-top: 20px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.post-navigation a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border-radius: 14px; background: var(--kh-surface); border: 1px solid var(--kh-border); color: var(--kh-text); text-decoration: none !important; transition: .2s; }
.post-navigation a:hover { border-color: var(--kh-primary); }
.post-navigation .nav-next { text-align: end; }
.kh-pn__l { font-size: 12.5px; color: var(--kh-muted); }
.kh-pn__t { font-weight: 600; font-size: 15px; line-height: 1.6; }
@media (max-width: 600px) { .post-navigation .nav-links { grid-template-columns: 1fr; } }
.kh-related { margin-top: 36px; }

/* ============ ترقيم الصفحات ============ */
.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--kh-surface); border: 1px solid var(--kh-border); color: var(--kh-text); font-weight: 600; text-decoration: none; }
.pagination .page-numbers.current { background: var(--kh-primary); border-color: var(--kh-primary); color: var(--kh-on-primary); }
.pagination a.page-numbers:hover { border-color: var(--kh-primary); color: var(--kh-primary); }
[dir="ltr"] .pagination svg { transform: scaleX(-1); }

/* ============ الإعلانات (مساحة محجوزة لمنع اهتزاز الصفحة CLS) ============ */
.kh-ad { margin: 24px auto; text-align: center; clear: both; max-width: 100%; overflow: hidden; }
.kh-ad__label { display: block; font-size: 11px; letter-spacing: .04em; color: var(--kh-muted); opacity: .8; margin-bottom: 6px; }
.kh-ad__inner { min-height: 250px; display: block; width: 100%; overflow: hidden; }
.kh-ad__inner > * { max-width: 100%; }
.kh-ad__inner ins { display: block; width: 100%; max-width: 100% !important; }
.kh-ad__inner iframe { max-width: 100% !important; }
.kh-ad--collapse:has(ins.adsbygoogle[data-ad-status="unfilled"]), .kh-ad--collapse.is-empty { display: none !important; }
.kh-ad:has(ins.adsbygoogle[data-ad-status="filled"]) .kh-ad__inner, .kh-ad.is-filled .kh-ad__inner { min-height: 0; }
.kh-ad--header .kh-ad__inner { min-height: 100px; }
.kh-ad--sidebar { margin: 0; }
.kh-ad--sidebar .kh-ad__inner { min-height: 280px; }
.kh-topad { margin-top: 16px; }
.kh-topad .kh-ad { margin: 0 auto; }
.kh-grid__ad .kh-ad { margin: 4px 0; }
@media (min-width: 768px) { .kh-ad--header .kh-ad__inner { min-height: 90px; } .kh-ad--before .kh-ad__inner, .kh-ad--after .kh-ad__inner { min-height: 280px; } }
.kh-prose .kh-ad { margin: 28px auto; }

/* ============ الأدوات ============ */
.kh-tools-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.kh-tool-card {
	display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 12px; align-items: center; height: 100%;
	padding: 16px; border-radius: var(--kh-radius); background: var(--kh-surface); border: 1px solid var(--kh-border);
	color: var(--kh-text); text-decoration: none !important; transition: .25s var(--kh-ease);
}
.kh-tool-card:hover { border-color: var(--kh-primary); transform: translateY(-3px); box-shadow: var(--kh-shadow-lg); }
.kh-tool-card__icon { grid-row: span 2; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--kh-primary-rgb), .1); color: var(--kh-primary); }
.kh-tool-card__t { font-weight: 700; font-size: 15.5px; }
.kh-tool-card__d { font-size: 13px; color: var(--kh-muted); line-height: 1.55; }
.kh-more-tools { margin-top: 32px; }

.kh-cvband {
	display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 18px 20px; border-radius: 16px;
	background: linear-gradient(135deg, var(--kh-primary), #0B1B33); color: #fff; text-decoration: none !important;
}
.kh-cvband__icon { width: 54px; height: 54px; border-radius: 14px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex-shrink: 0; }
.kh-cvband__txt { flex: 1; display: flex; flex-direction: column; }
.kh-cvband__txt strong { font-family: var(--kh-font-logo); font-size: 18px; }
.kh-cvband__txt small { opacity: .8; font-size: 13.5px; }
@media (max-width: 560px) { .kh-cvband { flex-wrap: wrap; } .kh-cvband .kh-btn { width: 100%; } }

.kh-tool { background: var(--kh-surface); border: 1px solid var(--kh-border); border-radius: 18px; padding: clamp(16px, 3vw, 26px); margin: 1.5em 0; font-size: 16px; line-height: 1.6; }
.kh-tool-wrap { margin-top: 28px; }
.kh-tool__head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.kh-tool__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(var(--kh-primary-rgb), .1); color: var(--kh-primary); flex-shrink: 0; }
.kh-tool__title { font-size: 20px; margin: 0; }
.kh-tool__desc { margin: 0; color: var(--kh-muted); font-size: 14.5px; }
.kh-tool__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; align-items: end; }
.kh-field { display: flex; flex-direction: column; gap: 6px; }
.kh-field--textarea { grid-column: 1 / -1; }
.kh-field label { font-weight: 600; font-size: 14px; }
.kh-field input, .kh-field select, .kh-field textarea, .kh-cv input, .kh-cv select, .kh-cv textarea {
	width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--kh-border);
	background: var(--kh-bg); outline: none; transition: border-color .2s, box-shadow .2s;
}
.kh-field textarea, .kh-cv textarea { resize: vertical; line-height: 1.7; }
.kh-field input:focus, .kh-field select:focus, .kh-field textarea:focus, .kh-cv input:focus, .kh-cv select:focus, .kh-cv textarea:focus { border-color: var(--kh-primary); box-shadow: 0 0 0 4px rgba(var(--kh-primary-rgb), .12); background: var(--kh-surface); }
.kh-tool__go { min-height: 46px; }
.kh-tool__result { margin-top: 18px; animation: kh-in .3s var(--kh-ease); }
@keyframes kh-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.kh-tool__rows { margin: 0; display: grid; gap: 8px; }
.kh-tool__rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--kh-bg); }
.kh-tool__rows > div.is-main { background: rgba(var(--kh-primary-rgb), .1); color: var(--kh-primary); font-size: 18px; }
.kh-tool__rows > div.is-main dd { font-family: var(--kh-font-logo); font-weight: 800; }
.kh-tool__rows dt { font-weight: 500; }
.kh-tool__rows dd { margin: 0; font-weight: 700; text-align: end; }
.kh-tool__err { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(var(--kh-accent-rgb), .1); color: var(--kh-accent); font-weight: 500; }
.kh-tool__note { font-size: 13px; color: var(--kh-muted); margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--kh-border); }

/* ============ الفوتر ============ */
.kh-footer { background: var(--kh-footer); color: var(--kh-on-footer); margin-top: 48px; padding: 48px 0 0; }
.kh-footer a { color: inherit; opacity: .78; transition: opacity .2s; }
.kh-footer a:hover { opacity: 1; }
.kh-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.kh-footer__about p { opacity: .75; font-size: 14.5px; margin: 14px 0; max-width: 340px; }
.kh-footer .kh-widget { min-width: 0; overflow-wrap: anywhere; background: transparent; border: 0; padding: 0; }
.kh-footer .kh-widget__title { color: inherit; font-size: 16px; }
.kh-footer .kh-widget ul li { border-color: rgba(255,255,255,.1) !important; padding: 6px 0 !important; font-size: 14.5px; }
.kh-footer .kh-widget ul a { color: inherit !important; }
.kh-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kh-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.08); opacity: 1; }
.kh-social a:hover { background: var(--kh-primary); }
.kh-footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.kh-copy { margin: 0; opacity: .75; }
.kh-fmenu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
@media (max-width: 960px) { .kh-footer__grid { grid-template-columns: 1fr 1fr; } .kh-footer__about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .kh-footer__grid { grid-template-columns: 1fr; } }

/* ============ شريط الجوال السفلي ============ */
.kh-mbar { display: none; }
@media (max-width: 1023px) {
	.kh-has-mobile-bar { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
	.kh-mbar {
		display: block; position: fixed; bottom: 0; inset-inline: 0; z-index: 60;
		background: var(--kh-header); border-top: 1px solid var(--kh-border);
		padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 24px rgba(var(--kh-text-rgb), .06);
	}
	.kh-mbar__list { list-style: none; margin: 0; padding: 0 6px; display: grid; grid-template-columns: repeat(5, 1fr); height: 64px; align-items: center; }
	.kh-mbar__list a, .kh-mbar__list button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11.5px; font-weight: 500; color: var(--kh-muted); text-decoration: none; background: none; border: 0; cursor: pointer; height: 100%; }
	.kh-mbar__list [aria-current="page"], .kh-mbar__list .current-menu-item a { color: var(--kh-primary); }
	.kh-mbar__fab button { width: 56px; height: 56px; margin: -22px auto 0; border-radius: 18px; background: var(--kh-primary); color: var(--kh-on-primary); box-shadow: 0 8px 22px rgba(var(--kh-primary-rgb), .4); }
}

/* ============ متفرقات ============ */
.kh-empty { text-align: center; padding: 40px 16px; background: var(--kh-surface); border: 1px dashed var(--kh-border); border-radius: var(--kh-radius); }
.kh-empty .kh-searchform { max-width: 520px; margin: 0 auto; }
.kh-404 { text-align: center; padding: 48px 0 16px; }
.kh-404__code { font-family: var(--kh-font-logo); font-weight: 800; font-size: clamp(90px, 18vw, 160px); line-height: 1; margin: 0; background: linear-gradient(135deg, var(--kh-primary), var(--kh-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kh-404 .kh-page-desc { margin-inline: auto; }
.kh-404 .kh-page-search { margin: 18px auto; }
.kh-toast { position: fixed; bottom: 90px; left: 50%; transform: translate(-50%, 20px); z-index: 300; background: #0B1220; color: #fff; padding: 10px 18px; border-radius: 12px; font-size: 14px; opacity: 0; transition: .25s; box-shadow: var(--kh-shadow-lg); }
.kh-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* التعليقات */
.kh-comments { margin-top: 32px; background: var(--kh-surface); border: 1px solid var(--kh-border); border-radius: 18px; padding: clamp(18px, 3vw, 28px); }
.kh-comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.kh-comment-list .children { list-style: none; padding-inline-start: 24px; }
.kh-comment-list .comment-body { padding: 14px 0; border-bottom: 1px solid var(--kh-border); }
.kh-comment-list .avatar { border-radius: 50%; float: right; margin-inline-end: 12px; }
[dir="ltr"] .kh-comment-list .avatar { float: left; }
.kh-comment-list .comment-meta { font-size: 13px; color: var(--kh-muted); }
.kh-comment-list .fn { font-weight: 700; color: var(--kh-text); font-style: normal; }
.comment-form { display: grid; gap: 12px; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--kh-border); background: var(--kh-bg); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ============ الحركة المخففة ============ */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ============ الطباعة ============ */
@media print {
	.kh-header, .kh-ticker, .kh-footer, .kh-mbar, .kh-sidebar, .kh-ad, .kh-share, .kh-follow, .kh-related, .kh-comments, .post-navigation, .kh-topad, .kh-noprint { display: none !important; }
	body { background: #fff; color: #000; padding: 0 !important; }
	.kh-article { border: 0; padding: 0; }
	.kh-layout { display: block; margin: 0; }
}
