/* Language Switcher Styles */
.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.language-switcher a,
.language-switcher .lang-btn {
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 13px;
    border: 2px solid transparent;
    background-color: transparent;
    color: white;
    cursor: pointer;
}

.language-switcher a:hover,
.language-switcher .lang-btn:hover {
    background-color: rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
}

.language-switcher a.active,
.language-switcher .lang-btn.active {
    background-color: #ffc107;
    color: #2c5aa0;
    border-color: #ffc107;
    font-weight: bold;
}

/* RTL (Right-to-Left) Support for Arabic */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .navbar {
    flex-direction: row-reverse;
}

html[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .container {
    direction: rtl;
}

html[dir="rtl"] .hero-buttons {
    flex-direction: row-reverse;
}

html[dir="rtl"] .features-grid {
    direction: rtl;
}

html[dir="rtl"] .feature-card {
    text-align: right;
}

html[dir="rtl"] .feature-card i {
    margin-left: 10px;
    margin-right: 0;
}

html[dir="rtl"] .contact-cards-grid {
    direction: rtl;
}

html[dir="rtl"] .contact-card {
    text-align: right;
}

html[dir="rtl"] .contact-card i {
    margin-left: 10px;
    margin-right: 0;
}

html[dir="rtl"] .footer {
    text-align: right;
}

html[dir="rtl"] .course-card {
    text-align: right;
}

html[dir="rtl"] .stat-card {
    text-align: right;
}

html[dir="rtl"] table {
    text-align: right;
}

html[dir="rtl"] th,
html[dir="rtl"] td {
    text-align: right;
}

/* Mobile RTL adjustments */
@media (max-width: 768px) {
    html[dir="rtl"] .navbar {
        flex-direction: column;
    }
    
    html[dir="rtl"] .logo-section {
        text-align: right;
    }
    
    html[dir="rtl"] .nav-links {
        flex-direction: column;
    }
}
