/* Arabic Typography Styles */
:root {
    --font-arabic-primary: 'Noto Kufi Arabic', 'Droid Arabic Kufi', 'Arabic Typesetting', sans-serif;
}

/* Global font settings for Arabic */
html[dir="rtl"] {
    font-family: var(--font-arabic-primary) !important;
}

html[dir="rtl"] * {
    font-family: inherit;
}

/* Specific elements */
html[dir="rtl"] body,
html[dir="rtl"] p,
html[dir="rtl"] div,
html[dir="rtl"] span,
html[dir="rtl"] a,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea,
html[dir="rtl"] .menu-link,
html[dir="rtl"] .button,
html[dir="rtl"] .heading-block h1,
html[dir="rtl"] .heading-block h2,
html[dir="rtl"] .heading-block h3,
html[dir="rtl"] .heading-block h4,
html[dir="rtl"] .emphasis-title h1,
html[dir="rtl"] .emphasis-title h2,
html[dir="rtl"] .text-rotater,
html[dir="rtl"] .section-title,
html[dir="rtl"] .counter,
html[dir="rtl"] .widget > h4,
html[dir="rtl"] .widget-title {
    font-family: var(--font-arabic-primary) !important;
}

/* Font sizes and weights */
html[dir="rtl"] h1 { font-size: 2.5rem; font-weight: 700; }
html[dir="rtl"] h2 { font-size: 2rem; font-weight: 700; }
html[dir="rtl"] h3 { font-size: 1.75rem; font-weight: 600; }
html[dir="rtl"] h4 { font-size: 1.5rem; font-weight: 600; }
html[dir="rtl"] h5 { font-size: 1.25rem; font-weight: 500; }
html[dir="rtl"] h6 { font-size: 1rem; font-weight: 500; }

/* Navigation */
html[dir="rtl"] .primary-menu .menu-container > .menu-item > .menu-link {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.3px;
}

/* Footer */
html[dir="rtl"] #footer {
    line-height: 1.8;
}

html[dir="rtl"] #footer .footer-widgets-wrap {
    font-size: 1rem;
}

html[dir="rtl"] #footer .widget h4,
html[dir="rtl"] #footer .widget h3 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

html[dir="rtl"] #footer address {
    font-style: normal;
    margin-bottom: 1.5rem;
}

html[dir="rtl"] #footer .contact-info strong {
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

html[dir="rtl"] #copyrights {
    font-size: 0.9rem;
    font-weight: 400;
}

/* Buttons */
html[dir="rtl"] .button {
    font-weight: 600;
}

/* Font weights utility classes */
html[dir="rtl"] .font-weight-light { font-weight: 300 !important; }
html[dir="rtl"] .font-weight-normal { font-weight: 400 !important; }
html[dir="rtl"] .font-weight-medium { font-weight: 500 !important; }
html[dir="rtl"] .font-weight-semibold { font-weight: 600 !important; }
html[dir="rtl"] .font-weight-bold { font-weight: 700 !important; }
html[dir="rtl"] .font-weight-extrabold { font-weight: 800 !important; }
html[dir="rtl"] .font-weight-black { font-weight: 900 !important; }

/* Text sizes utility classes */
html[dir="rtl"] .text-sm { font-size: 0.875rem !important; }
html[dir="rtl"] .text-base { font-size: 1rem !important; }
html[dir="rtl"] .text-lg { font-size: 1.125rem !important; }
html[dir="rtl"] .text-xl { font-size: 1.25rem !important; }
html[dir="rtl"] .text-2xl { font-size: 1.5rem !important; }
html[dir="rtl"] .text-3xl { font-size: 1.875rem !important; }
html[dir="rtl"] .text-4xl { font-size: 2.25rem !important; }
