/* SomarFonts Integration CSS */

/* English Somar Font Faces */
@font-face {
    font-family: 'Somar';
    src: url('../SomarFonts/English Font/Somar-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Somar';
    src: url('../SomarFonts/English Font/Somar-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Somar';
    src: url('../SomarFonts/English Font/Somar-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Somar';
    src: url('../SomarFonts/English Font/Somar-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Arabic Somar Font Faces */
@font-face {
    font-family: 'Somar-Arabic';
    src: url('../SomarFonts/Arabic Font/Somar-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: 'Somar-Arabic';
    src: url('../SomarFonts/Arabic Font/Somar-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: 'Somar-Arabic';
    src: url('../SomarFonts/Arabic Font/Somar-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: 'Somar-Arabic';
    src: url('../SomarFonts/Arabic Font/Somar-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

/* Font Stack Definitions */
.somar-font-stack {
    font-family: 'Somar-Arabic', 'Somar', 'Tajawal', sans-serif;
}

/* Apply Somar fonts to the main theme (excluding admin area) */
body:not(.admin-layout) {
    font-family: 'Somar-Arabic', 'Somar', 'Tajawal', sans-serif, arial !important;
}

body:not(.admin-layout) * {
    font-family: 'Somar-Arabic', 'Somar', 'Tajawal', sans-serif, arial;
}

/* Specific element targeting for better font application */
body:not(.admin-layout) h1,
body:not(.admin-layout) h2,
body:not(.admin-layout) h3,
body:not(.admin-layout) h4,
body:not(.admin-layout) h5,
body:not(.admin-layout) h6 {
    font-family: 'Somar-Arabic', 'Somar', 'Tajawal', sans-serif !important;
}

body:not(.admin-layout) p,
body:not(.admin-layout) span,
body:not(.admin-layout) div,
body:not(.admin-layout) a,
body:not(.admin-layout) button,
body:not(.admin-layout) .nav-link,
body:not(.admin-layout) .btn {
    font-family: 'Somar-Arabic', 'Somar', 'Tajawal', sans-serif;
}

/* RTL specific font optimizations */
[dir="rtl"] body:not(.admin-layout) {
    font-family: 'Somar-Arabic', 'Tajawal', sans-serif !important;
}

[dir="ltr"] body:not(.admin-layout) {
    font-family: 'Somar', 'Tajawal', sans-serif !important;
}

/* Utility classes for manual font control */
.font-somar {
    font-family: 'Somar', 'Tajawal', sans-serif !important;
}

.font-somar-arabic {
    font-family: 'Somar-Arabic', 'Tajawal', sans-serif !important;
}

.font-somar-light {
    font-family: 'Somar-Arabic', 'Somar', 'Tajawal', sans-serif !important;
    font-weight: 300 !important;
}

.font-somar-regular {
    font-family: 'Somar-Arabic', 'Somar', 'Tajawal', sans-serif !important;
    font-weight: 400 !important;
}

.font-somar-semibold {
    font-family: 'Somar-Arabic', 'Somar', 'Tajawal', sans-serif !important;
    font-weight: 600 !important;
}

.font-somar-extrabold {
    font-family: 'Somar-Arabic', 'Somar', 'Tajawal', sans-serif !important;
    font-weight: 800 !important;
}
.fa, .far {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: var(--fa-style, 900);
}