/* Language Switcher Additional Styles */

/* Improved Language Switcher */
/* .language-switcher .language-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 6px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 130px;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-right: -20px;
} */
.language-switcher .language-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 4px 15px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 130px;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-right: -20px;
    margin-top: 3px;
}



.language-switcher .language-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.language-switcher .language-dropdown {
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    min-width: 160px;
    margin-top: 8px;
    animation: slideDown 0.3s ease-out;
}

.language-switcher .language-option {
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.language-switcher .language-option:hover {
    background: #f8f9fa;
    color: #666;
    transform: translateX(5px);
}

.language-switcher .language-option.active {
    background: rgba(0, 0, 0, 0.9);
    color: white;
}

.language-switcher .flag-icon {
    width: 24px;
    height: 18px;
    background-size: cover;
    border-radius: 3px;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.language-switcher .flag-icon-ae {
    background: linear-gradient(to bottom, #ff0000 0%, #ff0000 25%, #ffffff 25%, #ffffff 50%, #000000 50%, #000000 75%, #009900 75%);
}

.language-switcher .flag-icon-gb {
    background: linear-gradient(45deg, #012169 25%, #ffffff 25%, #ffffff 50%, #c8102e 50%, #c8102e 75%, #ffffff 75%);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .language-switcher.desktop-nav {
        display: none !important;
    }

    .language-switcher.mobile-nav {
        display: block !important;
        width: 100% !important;
        margin: 20px 0 !important;
        padding: 20px 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    .language-switcher.mobile-nav .language-btn {
        width: 100% !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.15) !important;
        border-color: rgba(255, 255, 255, 0.4) !important;
        padding: 12px 20px !important;
        color: white !important;
        border-radius: 15px !important;
        font-weight: 600 !important;
        transition: all 0.3s ease !important;
        margin-right: 3px;
    }

    .language-switcher.mobile-nav .language-btn:hover {
        background: rgba(255, 255, 255, 0.25) !important;
        transform: translateY(-1px) !important;
    }

    .language-switcher.mobile-nav .language-dropdown {
        background: rgba(30, 30, 30, 0.95) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(10px) !important;
        color: white !important;
        margin-top: 10px !important;
    }

    .language-switcher.mobile-nav .language-option {
        color: white !important;
        padding: 15px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        transition: all 0.3s ease !important;
    }

    .language-switcher.mobile-nav .language-option:last-child {
        border-bottom: none !important;
    }

    .language-switcher.mobile-nav .language-option:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #666 !important;
        transform: translateX(0) !important;
    }

    .language-switcher.mobile-nav .language-option.active {
        background: rgba(0, 0, 0, 0.9) !important;
        color: white !important;
    }

    /* Mobile download section improvements */
    .mobile-download-section {
        margin-top: 20px !important;
        padding-top: 20px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
}

@media (min-width: 769px) {
    .language-switcher.mobile-nav {
        display: none !important;
    }

    .language-switcher.desktop-nav {
        display: block;
    }
}

/* RTL Support for Arabic */
html[dir="rtl"] {
    direction: rtl;
}

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

html[dir="rtl"] .nav-container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-menu-hero {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-actions {
    flex-direction: row-reverse;
}

html[dir="rtl"] .mobile-side-menu {
    right: auto;
    left: -100%;
}

html[dir="rtl"] .mobile-side-menu.active {
    left: 0;
    right: auto;
}

html[dir="rtl"] .mobile-menu-toggle {
    left: 20px;
    right: auto;
}

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

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

html[dir="rtl"] .services-header {
    --services-header-offset: 180px;
    /* mirror LTR offset for RTL */
    text-align: right;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-right: var(--services-header-offset);
}

@media (max-width: 992px) {
    html[dir="rtl"] .services-header {
        --services-header-offset: 80px;
        padding-right: var(--services-header-offset);
    }
}

@media (max-width: 768px) {
    html[dir="rtl"] .services-header {
        --services-header-offset: 0px;
        padding-right: 0;
        max-width: 100%;
    }
}

/* RTL subtitle stretch */
html[dir="rtl"] .services-subtitle {
    display: block;
    width: 100%;
    font-size: 2.2rem;
    font-weight: 600;
}

/* RTL: make services header behave like LTR (aligned start, sizes, tight spacing) */
html[dir="rtl"] .services-header {
    --services-header-offset: 150px;
    /* mirror LTR offset */
    text-align: right;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-right: var(--services-header-offset);
    margin-bottom: 8px;
    /* snug to grid */
    direction: rtl;
}

html[dir="rtl"] .services-header h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.05;
    white-space: nowrap;
    /* keep on a single line if space permits */
    width: 100%;
    display: block;
}

html[dir="rtl"] .services-subtitle {
    font-size: 2.2rem;
    font-weight: 600;
    display: block;
    width: 100%;
    text-align: right;
}

html[dir="rtl"] .services-description {
    font-size: 1.6rem;
    line-height: 1.35;
    margin: 0 0 6px 0;
    font-weight: 500;
    text-align: right;
}

/* Force RTL header block to align its start at the page right offset so all
   header lines begin at the same column as the services grid. */
html[dir="rtl"] .services-header {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-right: var(--services-header-offset);
    padding-left: 0;
    margin-left: 0;
    margin-right: 0;
    text-align: right;
}

html[dir="rtl"] .services-header h2,
html[dir="rtl"] .services-subtitle,
html[dir="rtl"] .services-description {
    margin: 0;
    padding: 0;
    width: calc(100% - var(--services-header-offset));
    box-sizing: border-box;
}

html[dir="rtl"] .services-slider-container {
    margin: 8px auto 0;
}

@media (max-width: 992px) {
    html[dir="rtl"] .services-header {
        --services-header-offset: 80px;
        padding-right: var(--services-header-offset);
    }

    html[dir="rtl"] .services-subtitle {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    html[dir="rtl"] .services-header {
        --services-header-offset: 0px;
        padding-right: 0;
        max-width: 100%;
    }

    html[dir="rtl"] .services-header h2 {
        font-size: 2.4rem;
        white-space: normal;
    }

    html[dir="rtl"] .services-subtitle {
        font-size: 1.05rem;
        width: 100%;
    }

    html[dir="rtl"] .services-description {
        font-size: 1rem;
    }
}

@media (min-width: 1400px) {
    html[dir="rtl"] .services-subtitle {
        font-size: 2.6rem;
    }
}

@media (max-width: 992px) {
    html[dir="rtl"] .services-subtitle {
        font-size: 1.4rem;
        margin-right: var(--services-header-offset);
        width: calc(100% - var(--services-header-offset));
    }
}

@media (max-width: 768px) {
    html[dir="rtl"] .services-subtitle {
        font-size: 1.05rem;
        margin-right: 0;
        width: 100%;
    }
}

html[dir="rtl"] .feature-text {
    text-align: right;
}

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

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

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

html[dir="rtl"] .contact-description {
    text-align: right;
}

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

/* Arabic font improvements */
html[dir="rtl"] * {
    font-family: 'Tajawal', 'Amiri', Arial, sans-serif;
}

html[dir="rtl"] .hero-text {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
}

html[dir="rtl"] .quote-text h2 {
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 600;
}

html[dir="rtl"] .services-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
}

html[dir="rtl"] .feature-text h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

html[dir="rtl"] .step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Navigation improvements for RTL */
html[dir="rtl"] .dropdown-content {
    right: 0;
    left: auto;
    text-align: right;
}

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

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

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

html[dir="rtl"] .language-switcher .language-btn {
    flex-direction: row-reverse;
}

html[dir="rtl"] .language-switcher .language-option {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .language-switcher .language-option:hover {
    transform: translateX(-5px);
}

/* Form RTL Support */
html[dir="rtl"] .form-row {
    flex-direction: row-reverse;
}

html[dir="rtl"] .contact-form input,
html[dir="rtl"] .contact-form textarea {
    text-align: right;
}

/* News Cards RTL */
html[dir="rtl"] .news-grid {
    direction: rtl;
}

html[dir="rtl"] .news-card {
    text-align: right;
}

/* Service Items RTL */
html[dir="rtl"] .services-grid {
    direction: rtl;
}

html[dir="rtl"] .service-item {
    text-align: center;
    /* Keep service items centered */
}

/* Features RTL */
html[dir="rtl"] .features-content {
    flex-direction: row-reverse;
}

/* Download section RTL */
html[dir="rtl"] .download-content {
    flex-direction: row-reverse;
}

html[dir="rtl"] .download-buttons {
    justify-content: flex-start;
}

/* Works section RTL */
html[dir="rtl"] .works-content {
    flex-direction: row-reverse;
}

/* Enhanced nav-container - Full width dark navigation bar - FIXED POSITION */
.nav-container {
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 8px 20px !important;
    min-height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: #000000 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
}

/* Add top margin to body to compensate for fixed nav */
body {
    margin-top: 70px !important;
    padding-top: 0 !important;
}

/* Fix all icons visibility and display issues in RTL */
html[dir="rtl"] i.fas,
html[dir="rtl"] i.far,
html[dir="rtl"] i.fab,
html[dir="rtl"] i.fa {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Fix Font Awesome specific classes */
html[dir="rtl"] .fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

html[dir="rtl"] .far {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

html[dir="rtl"] .fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Fix service and feature icons specifically */
html[dir="rtl"] .service-icon img,
html[dir="rtl"] .feature-icon img,
html[dir="rtl"] .service-item img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 100%;
    height: auto;
}

/* Fix navigation icons */
html[dir="rtl"] .nav-link-hero i,
html[dir="rtl"] .mobile-nav-link i {
    margin-left: 8px !important;
    margin-right: 0 !important;
    display: inline-block !important;
}

/* Fix dropdown arrows for RTL */
html[dir="rtl"] .dropdown .fa-chevron-down {
    margin-left: 8px !important;
    margin-right: 0 !important;
    display: inline-block !important;
}

/* Hero text: keep RTL direction but do not force center alignment globally.
   Specific positioning for the hero on the privet-section will follow. */
html[dir="rtl"] .hero-text {
    direction: rtl;
}

/* Ensure the hero text in the full-width hero (privet-section) is right-aligned and positioned */
html[dir="rtl"] .privet-section .hero-text {
    right: 40px !important;
    left: auto !important;
    text-align: right !important;
    position: absolute !important;
}

html[dir="rtl"] .quote-content {
    text-align: center !important;
    direction: rtl;
}

html[dir="rtl"] .services-header {
    text-align: center !important;
    direction: rtl;
}

html[dir="rtl"] .services-header h2,
html[dir="rtl"] .services-header p {
    text-align: center !important;
}

html[dir="rtl"] .app-features h2,
html[dir="rtl"] .how-it-works h2,
html[dir="rtl"] .news-section h2,
html[dir="rtl"] .contact-section h2 {
    text-align: center !important;
}

html[dir="rtl"] .contact-description {
    text-align: center !important;
}

/* Fix feature and step content alignment */
html[dir="rtl"] .feature-text {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .feature-text h3 {
    text-align: right;
}

html[dir="rtl"] .feature-text p {
    text-align: right;
}

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

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

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

/* Fix news content alignment */
html[dir="rtl"] .news-content {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .news-content h3,
html[dir="rtl"] .news-content p {
    text-align: right;
}

/* Keep download section layout intact */
html[dir="rtl"] .download-section .download-content {
    direction: rtl;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas: "phones text" !important;
    gap: 40px;
    align-items: center;
}

html[dir="rtl"] .download-section .download-text {
    text-align: right;
    grid-area: text !important;
    font-size: 2.4rem !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    margin-bottom: 10px !important;
    padding-top: 6px !important;
}

html[dir="rtl"] .download-section .download-phones {
    grid-area: phones !important;
}

html[dir="rtl"] .download-buttons {
    justify-content: flex-start;
    direction: rtl;
}

/* Default LTR layout */
.download-section .download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "text phones";
    gap: 40px;
    align-items: center;
}

.download-section .download-text {
    grid-area: text;
}

.download-section .download-phones {
    grid-area: phones;
}

/* Mobile responsive for download section */
@media (max-width: 768px) {
    html[dir="rtl"] .download-section .download-content {
        display: flex !important;
        flex-direction: column;
        text-align: center;
        grid-template-areas: none !important;
        grid-template-columns: none !important;
    }

    html[dir="rtl"] .download-section .download-text {
        order: 2;
        text-align: center;
        grid-area: auto !important;
    }

    html[dir="rtl"] .download-section .download-phones {
        order: 1;
        grid-area: auto !important;
    }

    .download-section .download-content {
        display: flex !important;
        flex-direction: column;
        text-align: center;
        grid-template-areas: none !important;
        grid-template-columns: none !important;
    }
}

/* Fix footer content */
html[dir="rtl"] .footer-content {
    direction: rtl;
}

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

html[dir="rtl"] .footer-section h3,
html[dir="rtl"] .footer-section h4 {
    text-align: right;
}

html[dir="rtl"] .footer ul {
    text-align: right;
    list-style: none;
    padding: 0;
}

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

/* Fix navigation layout for RTL */
html[dir="rtl"] .nav-container {
    direction: rtl;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 8px 20px !important;
    min-height: 70px !important;
    background-color: #000000 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
}

/* Add top margin to RTL body to compensate for fixed nav */
html[dir="rtl"] body {
    margin-top: 70px !important;
    padding-top: 0 !important;
}

html[dir="rtl"] .nav-menu-hero {
    direction: rtl;
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

html[dir="rtl"] .nav-actions {
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Navigation menu spacing improvements */
.nav-menu-hero {
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.nav-logo {
    flex-shrink: 0;
    min-width: 120px;
}

html[dir="rtl"] .dropdown-content {
    right: 0;
    left: auto;
    text-align: right;
    direction: rtl;
}

/* Fix mobile menu for RTL */
html[dir="rtl"] .mobile-side-menu {
    right: auto;
    left: -100%;
    direction: rtl;
}

html[dir="rtl"] .mobile-side-menu.active {
    left: 0;
    right: auto;
}

html[dir="rtl"] .mobile-menu-toggle {
    left: 20px;
    right: auto;
}

html[dir="rtl"] .mobile-dropdown-content {
    text-align: right;
    direction: rtl;
}

/* Fix chevron icons direction */
html[dir="rtl"] .fa-chevron-left {
    transform: scaleX(-1);
}

html[dir="rtl"] .fa-chevron-right {
    transform: scaleX(-1);
}

/* Fix specific icon issues */
html[dir="rtl"] .fixed-icon {
    right: auto;
    left: 20px;
}

html[dir="rtl"] .chat-modal {
    direction: rtl;
    right: auto;
    left: 80px;
    transform: translateY(-50%);
}

html[dir="rtl"] .chat-header h3 {
    text-align: right;
}

/* Make hero text and certain elements larger in Arabic */
html[dir="rtl"] .hero-text {
    font-size: 3rem !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    text-align: center !important;
    direction: rtl;
}

html[dir="rtl"] .quote-text h2 {
    font-size: 2.2rem !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

html[dir="rtl"] .services-header h2 {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
}

html[dir="rtl"] .app-features h2,
html[dir="rtl"] .how-it-works h2,
html[dir="rtl"] .news-section h2,
html[dir="rtl"] .contact-section h2 {
    font-size: 2.6rem !important;
    font-weight: 800 !important;
}

/* Chat modal positioning fix for RTL */
@media (max-width: 768px) {
    html[dir="rtl"] .chat-modal {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(0);
        bottom: 100px !important;
        top: auto !important;
        width: 90%;
        max-width: 320px;
        position: fixed !important;
    }
}

@media (min-width: 769px) {
    html[dir="rtl"] .chat-modal {
        left: 80px;
        right: auto;
        transform: translateY(0);
        bottom: 100px !important;
        top: auto !important;
        width: 350px;
        position: fixed !important;
    }
}

/* Fix modal visibility and positioning */
html[dir="rtl"] .chat-modal {
    bottom: 100px !important;
    top: auto !important;
    position: fixed !important;
    z-index: 10001 !important;
}

html[dir="rtl"] .chat-modal.active {
    display: flex !important;
    bottom: 100px !important;
    top: auto !important;
}

/* RTL: Mirror the hero background image */
html[dir="rtl"] .privet-section img {
    transform: scaleX(-1) !important;
}

/* RTL: Mirror phone mockups positioning for Arabic */
@media(max-width:1500px) {
    html[dir="rtl"] .phone-mockups img {
        margin-left: 0 !important;
        margin-right: -24px !important;
    }
}

@media(max-width:1470px) {
    html[dir="rtl"] .phone-mockups img {
        margin-left: 0 !important;
        margin-right: -33px !important;
    }
}

@media(max-width:1431px) {
    html[dir="rtl"] .phone-mockups img {
        margin-left: 0 !important;
        margin-right: -52px !important;
    }
}

@media(max-width:1407px) {
    html[dir="rtl"] .phone-mockups img {
        margin-left: 0 !important;
        margin-right: -68px !important;
    }
}

@media(max-width:1410px) {
    html[dir="rtl"] .phone-mockups img {
        margin-left: 0 !important;
        margin-right: -63px !important;
    }
}

@media(min-width:1326px) and (max-width:1340px) {
    html[dir="rtl"] .phone-mockups img {
        margin-left: 0 !important;
        margin-right: -40px !important;
    }
}

@media(min-width:1340px) and (max-width:1399px) {
    html[dir="rtl"] .phone-mockups img {
        margin-left: 0 !important;
        margin-right: -40px !important;
    }
}

@media(min-width:1280px) and (max-width:1340px) {
    html[dir="rtl"] .phone-mockups img {
        margin-left: 0 !important;
        margin-right: -63px !important;
    }
}

@media(min-width:1200px) and (max-width:1280px) {
    html[dir="rtl"] .phone-mockups img {
        margin-left: 0 !important;
        margin-right: -55px !important;
    }
}

@media(min-width:1200px) and (max-width:1250px) {
    html[dir="rtl"] .phone-mockups img {
        margin-left: 0 !important;
        margin-right: -67px !important;
    }
}

/* Ensure Font Awesome icons are loaded properly */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* Force icon display in RTL */
html[dir="rtl"] [class*="fa-"]::before {
    display: inline-block !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

/* Fix for specific problematic icons */
html[dir="rtl"] .fa-phone::before,
html[dir="rtl"] .fa-envelope::before,
html[dir="rtl"] .fa-map-marker-alt::before,
html[dir="rtl"] .fa-download::before,
html[dir="rtl"] .fa-chevron-down::before {
    content: inherit !important;
    display: inline-block !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* CEO Section RTL Support */
html[dir="rtl"] .ceo-hero-section {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .ceo-hero-container {
    direction: rtl;
    flex-direction: row-reverse;
}

html[dir="rtl"] .ceo-hero-left {
    align-items: flex-end;
    text-align: right;
}

html[dir="rtl"] .ceo-hero-title {
    text-align: right;
    direction: rtl;
    line-height: 1.2;
}

html[dir="rtl"] .ceo-hero-sub {
    text-align: right;
    direction: rtl;
    line-height: 1.7;
}

html[dir="rtl"] .ceo-hero-img {
    order: -1;
}

/* CEO Message Text Section RTL */
html[dir="rtl"] .ceo-message-text-section {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .ceo-message-text-container {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .ceo-message-title {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .ceo-message-text-container p {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .initiative-intro {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .initiative-list {
    text-align: right;
    direction: rtl;
    list-style-position: inside;
}

html[dir="rtl"] .initiative-list li {
    text-align: right;
    direction: rtl;
}

/* Mobile responsive for CEO section in RTL */
@media (max-width: 900px) {
    html[dir="rtl"] .ceo-hero-container {
        flex-direction: column;
        text-align: center;
    }

    html[dir="rtl"] .ceo-hero-left {
        align-items: center;
        text-align: center;
        order: 2;
    }

    html[dir="rtl"] .ceo-hero-title {
        text-align: center;
    }

    html[dir="rtl"] .ceo-hero-sub {
        text-align: center;
    }

    html[dir="rtl"] .ceo-hero-img {
        order: 1;
    }
}


/* Final RTL override: ensure hero text is positioned right in Arabic views.
   Placed at end of this file so it overrides any earlier RTL center rules. */
html[dir="rtl"] .privet-section .hero-text {
    left: auto !important;
    right: 40px !important;
    bottom: 202px !important;
    text-align: right !important;
    position: absolute !important;
    transform: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Extra vertical spacing override for Arabic hero text */
html[dir="rtl"] .privet-section .hero-text br {
    display: block !important;
    margin: 48px 0 !important;
}

html[dir="rtl"] .privet-section .hero-text {
    line-height: 1.5 !important;
}

/* FINAL OVERRIDE: Force services header to be perfectly aligned and stacked in RTL
   This block is intentionally specific and placed at the end of the language-support
   file so it overrides conflicting rules earlier. It makes the H2, subtitle and
   description start from the same right column (aligned with the services grid).
*/
:root {
    --services-header-offset: 150px;
    /* sensible default if not set by other stylesheet */
}

html[dir="rtl"] .services-header {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    /* center container but content is offset from the right */
    padding-left: 0 !important;
    padding-right: var(--services-header-offset) !important;
    /* offset so content lines up with grid */
    text-align: right !important;
    direction: rtl !important;
}

/* Ensure each header element is a full-width block aligned from the same right column */
html[dir="rtl"] .services-header h2,
html[dir="rtl"] .services-header .services-subtitle,
html[dir="rtl"] .services-header .services-description {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    width: calc(100% - var(--services-header-offset)) !important;
    /* reserve offset area on the right */
    text-align: right !important;
}

/* Make subtitle less massive and visually shorter than the H2 in Arabic */
html[dir="rtl"] .services-header .services-subtitle {
    font-size: 2.4rem !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    margin-bottom: 4px !important;
    white-space: nowrap !important;
    /* keep Arabic subtitle on one line on desktop */
}

/* Description sizing and spacing */
html[dir="rtl"] .services-header .services-description {
    font-size: 1.6rem !important;
    line-height: 1.45 !important;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
}

/* Responsive: reduce offset on medium screens, remove on small screens so text uses full width */
@media (max-width: 992px) {
    html[dir="rtl"] {
        --services-header-offset: 80px;
    }

    html[dir="rtl"] .services-header h2,
    html[dir="rtl"] .services-header .services-subtitle,
    html[dir="rtl"] .services-header .services-description {
        width: calc(100% - var(--services-header-offset)) !important;
    }
}

@media (max-width: 768px) {
    html[dir="rtl"] {
        --services-header-offset: 0px;
    }

    html[dir="rtl"] .services-header {
        padding-right: 0 !important;
        max-width: 100% !important;
    }

    html[dir="rtl"] .services-header h2,
    html[dir="rtl"] .services-header .services-subtitle,
    html[dir="rtl"] .services-header .services-description {
        width: 100% !important;
        white-space: normal !important;
        /* allow wrapping on small screens */
    }
}

/* Extra high-specificity enforcement for any inline/legacy rules */
html[dir="rtl"] .container>.services-header,
body[dir="rtl"] .container>.services-header {
    padding-right: var(--services-header-offset) !important;
}

@media (min-width:1200px) and (max-width: 1400px) {

    .nav-menu-hero {
        display: flex;
        gap: 1rem;
        flex: 1;
        justify-content: center;
    }

    .nav-container {
        width: 100vw !important;
        max-width: none !important;
        margin: 0 !important;
        margin-left: calc(-50vw + 50%) !important;
        padding: 8px 20px !important;
        min-height: 70px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        background-color: #000000 !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
    }

    body {
        margin-top: 70px !important;
    }

    html[dir="rtl"] body {
        margin-top: 70px !important;
    }
}

/* Additional responsive nav-container styles */
@media (max-width: 768px) {
    .nav-container {
        width: 100vw !important;
        max-width: none !important;
        margin: 0 !important;
        margin-left: calc(-50vw + 50%) !important;
        padding: 8px 15px !important;
        min-height: 60px !important;
        background-color: #000000 !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
    }

    html[dir="rtl"] .nav-container {
        width: 100vw !important;
        max-width: none !important;
        margin: 0 !important;
        margin-left: calc(-50vw + 50%) !important;
        padding: 8px 15px !important;
        min-height: 60px !important;
        background-color: #000000 !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
    }

    body {
        margin-top: 60px !important;
    }

    html[dir="rtl"] body {
        margin-top: 60px !important;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .nav-container {
        width: 100vw !important;
        max-width: none !important;
        margin: 0 !important;
        margin-left: calc(-50vw + 50%) !important;
        padding: 8px 18px !important;
        min-height: 65px !important;
        background-color: #000000 !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
    }

    html[dir="rtl"] .nav-container {
        width: 100vw !important;
        max-width: none !important;
        margin: 0 !important;
        margin-left: calc(-50vw + 50%) !important;
        padding: 8px 18px !important;
        min-height: 65px !important;
        background-color: #000000 !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
    }

    body {
        margin-top: 65px !important;
    }

    html[dir="rtl"] body {
        margin-top: 65px !important;
    }
}

/* RTL Phone Mockup Positioning - Convert margin-left to margin-right for Arabic */
@media (max-width: 1500px) {
    html[dir="rtl"] .phone-mockups img {
        margin-right: -24px !important;
        margin-left: auto !important;
    }
}

@media (max-width: 1450px) {
    html[dir="rtl"] .phone-mockups img {
        margin-right: -30px !important;
        margin-left: auto !important;
    }
}

@media (max-width: 1400px) {
    html[dir="rtl"] .phone-mockups img {
        margin-right: -37px !important;
        margin-left: auto !important;
    }
}

@media (max-width: 1350px) {
    html[dir="rtl"] .phone-mockups img {
        margin-right: -45px !important;
        margin-left: auto !important;
    }
}

@media (max-width: 1300px) {
    html[dir="rtl"] .phone-mockups img {
        margin-right: -52px !important;
        margin-left: auto !important;
    }
}

@media (max-width: 1250px) {
    html[dir="rtl"] .phone-mockups img {
        margin-right: -60px !important;
        margin-left: auto !important;
    }
}

@media (min-width: 1200px) and (max-width: 1250px) {
    html[dir="rtl"] .phone-mockups img {
        margin-right: -67px !important;
        margin-left: auto !important;
    }
}

/* Business Page Specific RTL and Global Map Improvements */

/* Global Map Container Responsive Improvements */
.global-map-container {
    width: 85% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
}

.global-map {
    width: 110% !important;
    max-width: 110% !important;
    margin-left: -25px !important;
}

/* Mobile Global Map Improvements */
@media (max-width: 768px) {
    .global-map-container {
        width: 75% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }

    .global-map {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .global-map-container {
        width: 70% !important;
        max-width: 250px !important;
    }

    .global-map {
        width: 95% !important;
        max-width: 95% !important;
    }
}

/* Tablet Global Map Improvements */
@media (max-width: 992px) and (min-width: 769px) {
    .global-map-container {
        width: 80% !important;
        max-width: 350px !important;
    }

    .global-map {
        width: 105% !important;
        margin-left: -15px !important;
    }
}

/* Large Screen Global Map Improvements */
@media (min-width: 1200px) {
    .global-map-container {
        width: 80% !important;
        max-width: 450px !important;
    }

    .global-map {
        width: 115% !important;
        margin-left: -30px !important;
    }
}

/* RTL Arabic Layout Fixes for Business Page */
html[dir="rtl"] .global-presence-wrapper {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .global-presence-left {
    text-align: right;
}

html[dir="rtl"] .global-description,
html[dir="rtl"] .about-description,
html[dir="rtl"] .sustainable-description,
html[dir="rtl"] .customers-description {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .section-header,
html[dir="rtl"] .sustainable-section-header {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .section-title,
html[dir="rtl"] .sustainable-section-title {
    text-align: right;
}

/* RTL Stats and Numbers Alignment */
html[dir="rtl"] .global-stats-grid,
html[dir="rtl"] .stats-grid {
    direction: rtl;
}

html[dir="rtl"] .global-stat-item,
html[dir="rtl"] .stat-item {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .global-stat-number,
html[dir="rtl"] .stat-number {
    text-align: right;
}

html[dir="rtl"] .global-stat-label,
html[dir="rtl"] .stat-label {
    text-align: right;
}

/* RTL News Cards and Content Alignment */
html[dir="rtl"] .news-grid {
    direction: rtl;
}

html[dir="rtl"] .news-card {
    text-align: right;
    direction: rtl;
}

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

/* RTL Contact Form Alignment */
html[dir="rtl"] .contact-form {
    direction: rtl;
}

html[dir="rtl"] .form-group {
    text-align: right;
}

html[dir="rtl"] .form-group label {
    text-align: right;
    float: right;
}

html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group textarea {
    text-align: right;
    direction: rtl;
}

/* RTL Footer Alignment */
html[dir="rtl"] .footer {
    direction: rtl;
}

html[dir="rtl"] .footer-content {
    direction: rtl;
}

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

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

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

/* RTL Brands Container */
html[dir="rtl"] .brands-logos-grid-draggable {
    direction: rtl;
}

/* RTL Global Map Specific Improvements for Arabic */
html[dir="rtl"] .global-map-container {
    width: 90% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
}

html[dir="rtl"] .global-map {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* RTL Stat Bars Alignment */
html[dir="rtl"] .stat-bar-item {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .stat-bar-header {
    text-align: right;
    flex-direction: row-reverse;
}

html[dir="rtl"] .stat-bar-number {
    text-align: right;
}

html[dir="rtl"] .stat-bar-text {
    text-align: right;
}

/* RTL Hero Section */
html[dir="rtl"] .hero-content {
    text-align: center;
}

html[dir="rtl"] .hero-title,
html[dir="rtl"] .hero-subtitle {
    text-align: center;
}
