@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@100;200;300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap");

/* Persian (Farsi) Font Styles */
[lang="fa"] {
    font-family: "Vazirmatn", "Noto Sans Arabic", "Tajawal", Arial, sans-serif !important;
}

[lang="fa"] h1,
[lang="fa"] h2,
[lang="fa"] h3,
[lang="fa"] h4,
[lang="fa"] h5,
[lang="fa"] h6 {
    font-family: "Vazirmatn", "Noto Sans Arabic", "Tajawal", serif !important;
    font-weight: 500;
}

[lang="fa"] .btn,
[lang="fa"] button {
    font-family: "Vazirmatn", "Noto Sans Arabic", "Tajawal", Arial, sans-serif !important;
    font-weight: 500;
}

/* Pashto Font Styles */
[lang="ps"] {
    font-family: "Noto Sans Arabic", "Vazirmatn", "Tajawal", Arial, sans-serif !important;
}

[lang="ps"] h1,
[lang="ps"] h2,
[lang="ps"] h3,
[lang="ps"] h4,
[lang="ps"] h5,
[lang="ps"] h6 {
    font-family: "Noto Sans Arabic", "Vazirmatn", "Tajawal", serif !important;
    font-weight: 500;
}

[lang="ps"] .btn,
[lang="ps"] button {
    font-family: "Noto Sans Arabic", "Vazirmatn", "Tajawal", Arial, sans-serif !important;
    font-weight: 500;
}

/* Ensure proper Arabic script rendering */
[lang="fa"],
[lang="ps"] {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "liga" 1, "kern" 1;
}

/* Adjust line height for better readability in Persian/Pashto */
[lang="fa"] p,
[lang="ps"] p {
    line-height: 1.6;
}

/* Better spacing for Arabic script */
[lang="fa"] *,
[lang="ps"] * {
    letter-spacing: 0.01em;
}

/* Form inputs styling for Persian/Pashto */
[lang="fa"] input,
[lang="fa"] textarea,
[lang="fa"] select,
[lang="ps"] input,
[lang="ps"] textarea,
[lang="ps"] select {
    font-family: "Vazirmatn", "Noto Sans Arabic", "Tajawal", Arial, sans-serif !important;
}
</style > <!-- Language Switcher Styles -- > <style > .language-switcher {
    position: relative;
}

.lang-dropdown {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lang-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.lang-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.lang-dropdown:hover .lang-arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.lang-dropdown:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    margin: 0;
    padding: 0;
}

.lang-option-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 2px 4px;
}

.lang-option-btn:hover {
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
    transform: translateX(2px);
}

.lang-option-btn.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.lang-option-btn.active:hover {
    background: var(--primary-dark);
}

/* Dark theme adjustments */
.dark-theme .lang-btn {
    background: rgba(37, 52, 71, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .lang-btn:hover {
    background: rgba(37, 52, 71, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-theme .lang-menu {
    background: rgba(37, 52, 71, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .lang-btn {
        padding: 6px 10px;
        font-size: 13px;
    }

    .lang-menu {
        min-width: 130px;
        right: -10px;
    }

    .lang-option-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* RTL Footer Styles */
[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

[dir="rtl"] .footer-links li {
    display: flex;
    align-items: center;
    gap: 8px;
}

[dir="rtl"] .footer-links i {
    order: 2; /* Move icon to the right in RTL */
    margin-left: 8px;
    margin-right: 0;
    flex-shrink: 0;
}

[dir="rtl"] .footer-links li span,
[dir="rtl"] .footer-links li {
    order: 1; /* Keep text on the left in RTL */
}

/* Specific spacing for jobs footer contact info */
[dir="rtl"] .jobs-footer .footer-links li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

[dir="rtl"] .jobs-footer .footer-links i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* RTL Contact Section Styles */
[dir="rtl"] .contact-item {
    /* flex-direction: row-reverse;  */
}

[dir="rtl"] .contact-item i {
    margin-right: 0;
    margin-left: 15px; /* Add margin to the left instead of right in RTL */
}

[dir="rtl"] .contact-item div {
    text-align: right; /* Align text to the right in RTL */
}
