/* 
 * El Messiri Font
 * استخدام خط El Messiri
 */

/* تعريف الخط - Regular (400) */
@font-face {
  font-family: 'El Messiri';
  src: url('../fonts/elmessiri/ElMessiri-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* تعريف الخط - Medium (500) */
@font-face {
  font-family: 'El Messiri';
  src: url('../fonts/elmessiri/ElMessiri-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* تعريف الخط - SemiBold (600) */
@font-face {
  font-family: 'El Messiri';
  src: url('../fonts/elmessiri/ElMessiri-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* تعريف الخط - Bold (700) */
@font-face {
  font-family: 'El Messiri';
  src: url('../fonts/elmessiri/ElMessiri-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* تطبيق الخط على العناصر الأساسية */
body {
  font-family: 'El Messiri', sans-serif !important;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'El Messiri', sans-serif !important;
}

/* Menu and Navigation */
.nav-menu, .navbar-nav, .menu-item, .nav-link, .main-menu, .navigation-menu {
  font-family: 'El Messiri', sans-serif !important;
}

/* Buttons */
.btn, .theme-btn, .button, .submit-btn, .btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-light, .btn-dark {
  font-family: 'El Messiri', sans-serif !important;
}

/* Links and Interactive Elements */
a, .link, .read-more, .learn-more {
  font-family: 'El Messiri', sans-serif !important;
}

/* Form Elements */
input, textarea, select, button, .form-control, .form-select {
  font-family: 'El Messiri', sans-serif !important;
}

/* Common UI Elements */
.title, .subtitle, .heading, .text, .label, .caption, .description {
  font-family: 'El Messiri', sans-serif !important;
}

/* Footer and Header Elements */
.header, .footer, .widget, .copyright, .logo-text {
  font-family: 'El Messiri', sans-serif !important;
}

/* Any other text elements */
p, span, div, li, td, th {
  font-family: 'El Messiri', sans-serif !important;
}

/* الحفاظ على الأيقونات - استثناء خطوط الأيقونات */
i, .icon, [class*="icon-"], [class*="fa-"], .fa, .fas, .far, .fal, .fab, .fad {
  font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Pro', 'Font Awesome 6 Brands', 'FontAwesome' !important;
}

/* تحسين عرض الخط العربي */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
