/* Kurdish Font Support */
html[lang="ku"][dir="rtl"] body {
    direction: rtl !important;
    text-align: right !important;
    font-family: 'Noto Sans', 'Noto Sans Arabic', 'IBM Plex Sans Arabic', Arial, sans-serif !important;
}

html[lang="ku"][dir="rtl"] h1,
html[lang="ku"][dir="rtl"] h2,
html[lang="ku"][dir="rtl"] h3,
html[lang="ku"][dir="rtl"] h4,
html[lang="ku"][dir="rtl"] h5,
html[lang="ku"][dir="rtl"] h6,
html[lang="ku"][dir="rtl"] .nav-link,
html[lang="ku"][dir="rtl"] .dropdown-link,
html[lang="ku"][dir="rtl"] .mobile-dropdown-link,
html[lang="ku"][dir="rtl"] .section-title,
html[lang="ku"][dir="rtl"] .service-title,
html[lang="ku"][dir="rtl"] .hero-title,
html[lang="ku"][dir="rtl"] p,
html[lang="ku"][dir="rtl"] span,
html[lang="ku"][dir="rtl"] div {
    font-family: 'Noto Sans', 'Noto Sans Arabic', 'IBM Plex Sans Arabic', Arial, sans-serif !important;
}

/* Let style.css handle the layout, ku.css only fixes fonts and general RTL if needed */

/* Ensure Logo is on the right and links correctly positioned in RTL */
html[lang="ku"][dir="rtl"] .nav-brand {
    order: 1 !important;
}

html[lang="ku"][dir="rtl"] .nav-links {
    order: 2 !important;
}

html[lang="ku"][dir="rtl"] .nav-link {
    white-space: nowrap !important;
    padding: 0.6rem 1rem !important;
    /* Balanced padding */
    font-size: clamp(0.8rem, 0.9vw, 0.95rem) !important;
}

/* Specific spacing for dropdown toggles in the menu */
html[lang="ku"][dir="rtl"] .nav-menu .dropdown-toggle {
    margin-right: 0.5rem !important;
}

/* === DROPDOWN MENUS RTL === */
html[lang="ku"][dir="rtl"] .dropdown-menu {
    right: 0 !important;
    left: auto !important;
    text-align: right !important;
    direction: rtl !important;
}

/* Specific alignment for the language menu to stay within bounds if on the left */
html[lang="ku"][dir="rtl"] .language-menu {
    right: auto !important;
    left: 0 !important;
}

html[lang="ku"][dir="rtl"] .dropdown-link {
    flex-direction: row !important;
    text-align: right !important;
    justify-content: flex-start !important;
    direction: rtl !important;
}

html[lang="ku"][dir="rtl"] .dropdown-link i {
    margin-left: 0.8rem !important;
    margin-right: 0 !important;
}

html[lang="ku"][dir="rtl"] .dropdown-arrow {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

/* === FOOTER COMPLETE RTL === */
html[lang="ku"][dir="rtl"] .footer {
    text-align: right !important;
    direction: rtl !important;
}

html[lang="ku"][dir="rtl"] .footer-content {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    text-align: right !important;
}

html[lang="ku"][dir="rtl"] .footer-section {
    text-align: right !important;
    margin-right: 0 !important;
    margin-left: 2rem !important;
}

html[lang="ku"][dir="rtl"] .footer-section h3 {
    text-align: right !important;
}

html[lang="ku"][dir="rtl"] .footer-section ul {
    text-align: right !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

html[lang="ku"][dir="rtl"] .footer-section ul li {
    text-align: right !important;
}

html[lang="ku"][dir="rtl"] .footer-social-media {
    justify-content: flex-end !important;
}

/* === MOBILE NAV RTL === */
@media (max-width: 991px) {
    html[lang="ku"][dir="rtl"] .nav-links {
        justify-content: flex-start !important;
    }

    html[lang="ku"][dir="rtl"] .mobile-unified-dropdown {
        margin-right: auto !important;
        margin-left: 0 !important;
    }
}