/* Arabic-specific styles */
:root {
    --main-color: #F07D2F;
    --secondary-color: #339CAD;
}

/* RTL Base Styles */
html[dir="rtl"] {
    direction: rtl;
}

/* RTL Layout Adjustments */
[dir="rtl"] .navbar-nav {
    margin-right: auto;
    margin-left: 0;
}

[dir="rtl"] .ml-3 {
    margin-right: 1rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .mr-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

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

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

[dir="rtl"] .float-right {
    float: left !important;
}

[dir="rtl"] .float-left {
    float: right !important;
}

/* Header Shapes RTL */
[dir="rtl"] .header-hero .shape.shape-1 {
    left: auto;
    right: 130px;
    transform: scaleX(-1);
}

[dir="rtl"] .header-hero .shape.shape-2 {
    left: auto;
    right: 150px;
    transform: scaleX(-1);
}

[dir="rtl"] .header-hero .shape.shape-3 {
    left: auto;
    right: 26%;
}

[dir="rtl"] .header-hero .shape.shape-4 {
    left: auto;
    right: 40%;
}


[dir="rtl"] .header-shape-1 {
    right: auto;
    left: 0;
    transform: scaleX(-1);
}
[dir="rtl"] .header-shape-2 {
    right: auto;
    left: 0;
    transform: scaleX(-1);
}

[dir="rtl"] .header-hero .shape.shape-5 {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

[dir="rtl"] .header-hero .shape.shape-6 {
    left: auto;
    right: 45%;
}

/* Header Hero Content RTL */
[dir="rtl"] .header-hero-content {
    text-align: right;
}

[dir="rtl"] .header-hero-content .header-title {
    text-align: right;
}

[dir="rtl"] .header-hero-content .text {
    text-align: right;
}

/* About Section RTL */
[dir="rtl"] .about-content {
    text-align: right;
}

[dir="rtl"] .about-content .section-title {
    text-align: right;
}

[dir="rtl"] .about-content ul {
    text-align: right;
    padding-right: 0;
}

[dir="rtl"] .about-content ul li {
    padding-right: 0;
}

[dir="rtl"] .about-content ul li i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* Download Section RTL */
[dir="rtl"] .download-content {
    text-align: right;
}

[dir="rtl"] .download-content .download-title {
    text-align: right;
}

[dir="rtl"] .download-content .text {
    text-align: right;
}

[dir="rtl"] .download-content ul {
    text-align: right;
}

/* Contact Form RTL */
[dir="rtl"] .contact-form-wrapper .form-control {
    text-align: right;
}

[dir="rtl"] .contact-form-wrapper textarea.form-control {
    text-align: right;
}

/* Modal RTL */
[dir="rtl"] .close-modal {
    right: auto;
    left: 15px;
}

[dir="rtl"] .swiper-button-next {
    right: auto;
    left: 10px;
}

[dir="rtl"] .swiper-button-prev {
    left: auto;
    right: 10px;
}

/* Language Switcher RTL */
[dir="rtl"] .language-switcher {
    margin-right: 20px;
    margin-left: 0;
}

/* Footer RTL */
[dir="rtl"] .footer-nav {
    text-align: right;
}

[dir="rtl"] .footer-nav li {
    margin-right: 0;
    margin-left: 1rem;
}

[dir="rtl"] .footer-social {
    text-align: right;
}

[dir="rtl"] .footer-social li {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Responsive RTL */
@media (max-width: 767px) {
    [dir="rtl"] .header-hero .shape.shape-1,
    [dir="rtl"] .header-hero .shape.shape-4 {
        display: none;
    }
}

@media (max-width: 991px) {
    [dir="rtl"] .header-shape-2 {
        display: none;
    }
}

/* Mobile Language Switcher */
.language-switcher-mobile {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

[dir="rtl"] .language-switcher-mobile {
    right: auto;
    left: 55px;
}

.language-switcher-mobile .lang-btn {
    padding: 5px 10px;
    margin: 0 2px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
}

.language-switcher-mobile .lang-btn:hover {
    background-color: #f5f5f5;
}

.language-switcher-mobile .lang-btn.active {
    color: var(--main-color);
}

/* Hide desktop language switcher in mobile */
@media (max-width: 991px) {
    .navbar-collapse .language-switcher {
        display: none;
    }
} 