/* ===================================
   LANGUAGE SWITCHER STYLES
   =================================== */

/* Hide English content when Arabic is selected */
body.lang-ar .en-text {
    display: none !important;
}

/* Hide Arabic content when English is selected */
body.lang-en .ar-text {
    display: none !important;
}

/* Default: Show both languages */
body:not(.lang-ar):not(.lang-en) .ar-text,
body:not(.lang-ar):not(.lang-en) .en-text {
    display: inline !important;
}

/* Adjust text direction for English mode */
body.lang-en {
    direction: ltr !important;
}

body.lang-en .navbar-nav {
    flex-direction: row !important;
}

body.lang-en .container,
body.lang-en .section {
    text-align: left !important;
}

/* Keep centered elements centered */
body.lang-en .text-center,
body.lang-en .hero-content,
body.lang-en .cta-group {
    text-align: center !important;
}

/* Language toggle button styling */
#langToggle {
    transition: all 0.3s ease;
    font-weight: 600;
    border-width: 2px;
}

#langToggle:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(57, 181, 74, 0.3);
}

#langToggle:active {
    transform: scale(0.98);
}

/* Smooth transition when switching languages */
body {
    transition: direction 0.3s ease;
}

/* Adjust form labels for English */
body.lang-en .form-label {
    text-align: left !important;
}

/* Adjust cards and sections for English */
body.lang-en .card,
body.lang-en .feature-card,
body.lang-en .benefit-card {
    text-align: left !important;
}

/* Keep stats and numbers centered */
body.lang-en .stat-number,
body.lang-en .stat-label {
    text-align: center !important;
}