/* RTL Styles for Frontend (DreamSoft Template) */
body, h1, h2, h3, h4, h5, h6, .btn, .nav-link, input, textarea, select, button {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .me-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

[dir="rtl"] .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

[dir="rtl"] .me-1, [dir="rtl"] .me-2, [dir="rtl"] .me-3, [dir="rtl"] .me-4 {
    margin-right: 0 !important;
}
[dir="rtl"] .me-1 { margin-left: 0.25rem !important; }
[dir="rtl"] .me-2 { margin-left: 0.5rem !important; }
[dir="rtl"] .me-3 { margin-left: 1rem !important; }
[dir="rtl"] .me-4 { margin-left: 1.5rem !important; }

[dir="rtl"] .text-lg-start {
    text-align: right !important;
}

[dir="rtl"] .justify-content-lg-start {
    justify-content: flex-start !important;
}

[dir="rtl"] #header .logo {
    margin-left: auto !important;
    margin-right: 0 !important;
}

[dir="rtl"] .navbar ul {
    direction: rtl;
    padding-right: 0;
}

[dir="rtl"] .navbar .dropdown ul {
    right: 0;
    left: auto;
    text-align: right;
}

[dir="rtl"] .navbar .dropdown ul a {
    text-align: right;
}

[dir="rtl"] .navbar .getstarted,
[dir="rtl"] .navbar .getstarted:focus {
    margin-left: 0 !important;
    margin-right: 25px !important;
}

[dir="rtl"] .back-to-top {
    right: auto !important;
    left: 15px !important;
}

[dir="rtl"] .btn-watch-video i {
    margin-right: 0 !important;
    margin-left: 8px !important;
}

[dir="rtl"] .services .icon-box .icon {
    margin-right: 0 !important;
    margin-left: auto !important;
}

[dir="rtl"] .pricing .box ul li i {
    margin-right: 0 !important;
    margin-left: 8px !important;
}

[dir="rtl"] #footer .footer-top .footer-links ul i {
    margin-right: 0 !important;
    margin-left: 6px !important;
    transform: rotate(180deg);
}

[dir="rtl"] #footer .footer-newsletter form input[type="submit"] {
    border-radius: 50px 0 0 50px !important;
    margin-right: -2px;
}

[dir="rtl"] #footer .footer-newsletter form input[type="email"] {
    border-radius: 0 50px 50px 0 !important;
    padding-right: 20px !important;
    padding-left: 20px !important;
}

/* Language Switcher Styling */
.lang-switcher-dropdown {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    text-decoration: none;
}

.lang-btn:hover {
    background: #47b2e4;
    border-color: #47b2e4;
    color: #fff !important;
}

.lang-dropdown-menu {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 8px;
    min-width: 140px;
}

.lang-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.lang-dropdown-menu .dropdown-item.active,
.lang-dropdown-menu .dropdown-item:active {
    background-color: #47b2e4;
    color: #fff;
}

/* RTL Marquee for Clients */
[dir="rtl"] .clients-marquee-group {
    animation-name: scroll-marquee-rtl;
}

@keyframes scroll-marquee-rtl {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}
