/**
 * Arabic Font Switcher
 * Automatic font switching between Arabic and English fonts
 */

/* Arabic Text - UKIJ Merdane Font */
.arabic-text {
    font-family: 'UKIJ Merdane', 'Traditional Arabic', 'Arabic Typesetting', 'Scheherazade', serif !important;
    font-size: 1.05em; /* Slightly larger for better readability */
    line-height: 1.9;
    letter-spacing: 0.02em;
    display: inline;
}

/* English/Latin Text - Crimson Pro Font */
.latin-text {
    font-family: 'Crimson Pro', Georgia, 'Times New Roman', serif !important;
    line-height: 1.8;
    display: inline;
}

/* Headings inherit font from spans */
h1 .arabic-text,
h2 .arabic-text,
h3 .arabic-text,
h4 .arabic-text,
h5 .arabic-text,
h6 .arabic-text {
    font-weight: inherit;
}

/* Blockquotes with Arabic - no italic */
blockquote .arabic-text {
    font-style: normal;
}

/* Emphasis/Italic with Arabic - no italic */
em .arabic-text,
i .arabic-text {
    font-style: normal;
}

/* Better rendering for Arabic glyphs */
.arabic-text {
    font-feature-settings: 'liga' 1, 'calt' 1, 'kern' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Slug should always be LTR */
.input-slug {
    direction: ltr !important;
    text-align: left !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .arabic-text {
        font-size: 1.03em;
        line-height: 1.85;
    }
}
