/**
 * KAYAN FA Free Fixes — يضمن ظهور كل أيقونات Font Awesome 6 Free
 * في لوحة التحكم والواجهة (أوزان صحيحة + بدائل Pro).
 */

/* أوزان Free الصحيحة */
.fa, .fas, .fa-solid,
i.fa, i.fas, i.fa-solid {
	font-family: "Font Awesome 6 Free" !important;
	font-weight: 900 !important;
	font-style: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	display: inline-block;
	line-height: 1;
}
.far, .fa-regular,
i.far, i.fa-regular {
	font-family: "Font Awesome 6 Free" !important;
	font-weight: 400 !important;
	font-style: normal;
	-webkit-font-smoothing: antialiased;
	display: inline-block;
	line-height: 1;
}
.fab, .fa-brands,
i.fab, i.fa-brands {
	font-family: "Font Awesome 6 Brands" !important;
	font-weight: 400 !important;
	font-style: normal;
	-webkit-font-smoothing: antialiased;
	display: inline-block;
	line-height: 1;
}

/* أنماط Pro غير موجودة في Free → تعامل كـ solid */
.fal, .fa-light, .fat, .fa-thin, .fad, .fa-duotone,
i.fal, i.fa-light, i.fat, i.fa-thin, i.fad, i.fa-duotone {
	font-family: "Font Awesome 6 Free" !important;
	font-weight: 900 !important;
}

/* أيقونات الأدمن المعرّفة عبر content: يجب أن تكون solid 900 */
navpannel > ul > li.submenuus > a:before,
.-CheckBox-Box-Item span:after,
widgets-select:before,
.apbsortable > *:before,
#postbox-container-2 h2.hndle:before,
.YourColorEdits-Class-Style .bulk-selection .menu-item-handle input.menu-item-checkbox[type=checkbox]::before,
.YourColorEdits-Class-Style [class*="fa-"],
#wpadminbar .ab-icon,
#wpadminbar [class^="fa-"],
#wpadminbar [class*=" fa-"] {
	font-family: "Font Awesome 6 Free" !important;
	font-weight: 900 !important;
	-webkit-font-smoothing: antialiased;
}

/* شريط الأدمن كان 800 فيظهر مربعات فارغة */
#wpadminbar .fa,
#wpadminbar .fas,
#wpadminbar .fa-solid,
.YourColorEdits-Class-Style .fa,
.YourColorEdits-Class-Style .fas,
.YourColorEdits-Class-Style .fa-solid {
	font-weight: 900 !important;
	font-family: "Font Awesome 6 Free" !important;
}

/* SVG-Icon preview */
.kayan-fa-preview svg,
.kayan-fa-list li svg {
	width: 20px;
	height: 20px;
	display: block;
}

/* أيقونات الخدمات/العروض: لا تظهر كنص خام */
.service--item--icon,
.kayan-service-icon,
.kbw-service-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.kbw-service-icon svg,
.service--item--icon svg {
	width: 1.25em;
	height: 1.25em;
	max-width: 42px;
	max-height: 42px;
}

/* شعار الهيدر/الفوتر — يظهر دائماً */
a.logo,
a.flogo,
.flogo-wrap a.flogo,
.nav a.logo {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	visibility: visible !important;
	opacity: 1 !important;
	text-decoration: none;
	z-index: 5;
	position: relative;
}
a.logo.has-logo-image .mark,
a.flogo.has-logo-image .mark {
	display: none !important;
}
a.logo img,
a.flogo img,
.kayan-logo-img,
.YourColor--Theme--image.kayan-logo-img,
header .logo img,
footer .flogo img {
	display: block !important;
	max-height: 56px !important;
	max-width: min(55vw, 240px) !important;
	width: auto !important;
	height: auto !important;
	visibility: visible !important;
	opacity: 1 !important;
	object-fit: contain !important;
}
a.logo .kayan-logo-text,
a.flogo .kayan-logo-text,
a.logo .kayan-logo-fallback,
a.flogo .kayan-logo-fallback {
	display: inline-block !important;
	font-weight: 800;
	line-height: 1.2;
}
a.logo .mark,
a.flogo .mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
@media (max-width: 640px) {
	a.logo img, a.flogo img, .kayan-logo-img {
		max-height: 44px !important;
		max-width: min(48vw, 180px) !important;
	}
}
