/* CORRECTED RTL/LTR Support CSS */

/* ===== REMOVE THIS PROBLEMATIC CODE ===== */
/*
.hero-form-wrapper ,i, svg ,a{
  direction: ltr;
  unicode-bidi: isolate;
}
@media screen and (max-width: 1199px) {
    .navbar {
        direction: ltr;
        unicode-bidi: isolate;
    }
}
*/

/* ===== CORRECTED STYLES ===== */

/* Basic RTL/LTR Foundation */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] body {
    direction: rtl;
}

html[dir="ltr"] {
    text-align: left;
}

html[dir="ltr"] body {
    direction: ltr;
}

/* Hero Form Wrapper - CORRECTED */
.hero-form-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 8px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    /* Remove forced LTR direction */
}

/* LTR Mode */
html[dir="ltr"] .hero-form-wrapper {
    flex-direction: row;
}

html[dir="ltr"] .hero-form-wrapper .form-control {
    padding-right: 120px;
    padding-left: 16px;
    text-align: left;
    direction: ltr;
}

html[dir="ltr"] .hero-form-btn {
    right: 8px;
    left: auto;
}

/* RTL Mode */
html[dir="rtl"] .hero-form-wrapper {
    flex-direction: row-reverse;
}

html[dir="rtl"] .hero-form-wrapper .form-control {
    padding-left: 120px;
    padding-right: 16px;
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .hero-form-btn {
    left: 8px;
    right: auto;
}

/* Search Button Base */
.hero-form-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    white-space: nowrap;
}

/* Form Elements */
.hero-form-wrapper .form-select,
.hero-form-wrapper .form-control {
    border: none;
    background: transparent;
    outline: none;
    box-shadow: none !important;
}

.hero-form-wrapper .form-select {
    padding: 12px 16px;
    font-weight: 500;
    min-width: 150px;
    border-radius: 25px;
}

.hero-form-wrapper .form-control {
    padding: 12px 16px;
    font-size: 14px;
    width: 100%;
    flex: 1;
}

/* RTL Select Dropdown */
html[dir="rtl"] .hero-form-wrapper .form-select {
    text-align: right;
    background-position: left 12px center;
    padding-left: 30px;
    padding-right: 16px;
}

html[dir="ltr"] .hero-form-wrapper .form-select {
    text-align: left;
    background-position: right 12px center;
    padding-right: 30px;
    padding-left: 16px;
}

/* Navigation RTL Fixes */
/*html[dir="rtl"] .navbar-nav {*/
/*    flex-direction: row-reverse;*/
/*}*/

html[dir="rtl"] .navbar-nav .nav-item + .nav-item {
    margin-right: 1rem;
    margin-left: 0;
}



html[dir="rtl"] .navbar-nav .nav-item + .nav-item {
    margin-left: 1rem;
    margin-right: 0;
}

/* CORRECTED Responsive Navigation */
@media screen and (max-width: 1199px) {
    .navbar {
        /* Allow natural direction inheritance */
    }
    
    html[dir="rtl"] .navbar {
        direction: rtl;
        text-align: right;
    }
    
    html[dir="ltr"] .navbar {
        direction: ltr;
        text-align: left;
    }
    
    .navbar-toggler {
        order: 1;
    }
    
    html[dir="rtl"] .navbar-toggler {
        order: -1;
    }
}

/* Arrow Icons RTL */
.rtl-arrow {
    transform: scaleX(-1);
}

html[dir="rtl"] svg.rtl-arrow {
    transform: scaleX(-1);
}

/* Positioning Elements */
.service-card-wishlist-btn {
    position: absolute;
    top: 15px;
}

html[dir="ltr"] .service-card-wishlist-btn {
    right: 15px;
    left: auto;
}

html[dir="rtl"] .service-card-wishlist-btn {
    left: 15px;
    right: auto;
}

/* Online Indicator */
.online-indicator2, .online-indicator {
    position: absolute;
    bottom: 2px;
    width: 12px;
    height: 12px;
    background-color: #00C851;
    border: 2px solid #fff;
    border-radius: 50%;
}

html[dir="ltr"] .online-indicator2,
html[dir="ltr"] .online-indicator {
    right: 2px;
    left: auto;
}

html[dir="rtl"] .online-indicator2,
html[dir="rtl"] .online-indicator {
    left: 2px;
    right: auto;
}

/* Verification Badge */
.varified-badge1, .varified-badge2 {
    position: relative;
    background: none;
    border: none;
    padding: 0;
}

html[dir="ltr"] .varified-badge1,
html[dir="ltr"] .varified-badge2 {
    margin-left: 8px;
    margin-right: 0;
}

html[dir="rtl"] .varified-badge1,
html[dir="rtl"] .varified-badge2 {
    margin-right: 8px;
    margin-left: 0;
}

/* Job Type Badge */
.job-type-badge {
    position: absolute;
    top: 20px;
}

html[dir="ltr"] .job-type-badge {
    right: 20px;
    left: auto;
}

html[dir="rtl"] .job-type-badge {
    left: 20px;
    right: auto;
}

/* Flex Direction Fixes */
/*html[dir="rtl"] .d-flex.align-items-center:not(.flex-column) {*/
/*    flex-direction: row-reverse;*/
/*}*/

/*html[dir="rtl"] .hero-search-tag {*/
/*    flex-direction: row-reverse;*/
/*}*/

html[dir="rtl"] .service-card-author {
    flex-direction: row-reverse;
}

html[dir="rtl"] .testimonial-meta {
    flex-direction: row-reverse;
}

/* Text Alignment */
html[dir="rtl"] .text-start {
    text-align: right !important;
}

html[dir="rtl"] .text-end {
    text-align: left !important;
}

/* CTA People Image */
.cta-people {
    position: absolute;
    bottom: 0;
    max-width: 500px;
}

html[dir="ltr"] .cta-people {
    right: 0;
    left: auto;
}

html[dir="rtl"] .cta-people {
    left: 0;
    right: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-form-wrapper {
      
        padding: 12px;
        gap: 12px;
    }

    /*html[dir="rtl"] .hero-form-wrapper,*/
    /*html[dir="ltr"] .hero-form-wrapper {*/
   
    /*}*/

    .hero-form-wrapper .form-control {
        padding: 12px 16px !important;
    }

    html[dir="rtl"] .hero-form-wrapper .form-control {
    border: 0!important; 
    border-right: 1px solid var(--dark-100)!important;
    border-radius: 0!important;
        text-align: right;
        direction: rtl;
    }

    html[dir="ltr"] .hero-form-wrapper .form-control {
        text-align: left;
        direction: ltr;
    }

    .hero-form-btn {
        position: static !important;
        transform: none !important;
        width: 100%;
        justify-content: center;
    }

    /* Mobile positioning fixes */
    html[dir="rtl"] .service-card-wishlist-btn {
        left: 10px;
    }

    html[dir="ltr"] .service-card-wishlist-btn {
        right: 10px;
    }
}

/* Swiper RTL Support */
html[dir="rtl"] .swiper {
    direction: rtl;
}

html[dir="rtl"] .swiper-slide {
    text-align: right;
}

html[dir="ltr"] .swiper {
    direction: ltr;
}

html[dir="ltr"] .swiper-slide {
    text-align: left;
}

/* Additional Utility Classes */
.rtl-text-right {
    text-align: right !important;
}

.rtl-text-left {
    text-align: left !important;
}

/* Debug Styles - Remove in production */
/*
.debug-rtl {
    border: 2px solid red;
}

.debug-ltr {
    border: 2px solid blue;
}
*/

