
/* Improved RTL styles */
body.rtl {
    text-align: right;
    direction: rtl;
}

/* Navbar RTL adjustments */
body.rtl .navbar-brand {
    margin-: 0;
    margin-left: 1rem;
    
}

body.rtl .navbar-nav {
    margin-right: auto;
   /* margin-left: 0*/;
   /*margin-left:-119px;*/
   margin-left:-84px;
}

    body.rtl .navbar-nav .nav-item {
        margin-right: 0;
        margin-left: 1rem;
    }

/* Fix button positioning */
body.rtl .consist-btn {
    position: absolute;
    right: 10%;
    left: auto !important;
    z-index: 100;
}

    body.rtl .consist-button-text {
        position: absolute;
        top: 50%;
        left: auto !important;
        right: 50% !important;
        transform: translate(50%, -50%);
        text-align: right;
        padding: 2px 40px;
    }

    body.rtl .button-text{
        padding:-9px 31px;
    }


/* Fix nav menu items */
body.rtl .nav-menu-item {
    flex-direction: row-reverse;
    text-align: right;
}

body.rtl .icon-container {
    margin-right: 0;
    margin-left: 15px;
}

body.rtl .nav-menu-content {
    text-align: right;
}

body.rtl .read-more {
    text-align: right;
    float: right;
}

/* About section adjustments */
body.rtl .about-title {
    text-align: right;
    margin-right: 0;
    padding-right: 20px;
}

body.rtl .about-image {
    transform: scaleX(-1);
    margin-right: 20px;
}

body.rtl .about-content {
    padding-right: 55px;
    text-align: right;
}

/* Footer and other elements */
body.rtl .footer-nav {
    text-align: right;
}

body.rtl .social-container {
    text-align: right;
}

    body.rtl .social-text {
        text-align: right;
        text-align: right;
        margin-top: 16px; /* Negative margin to move it up */
        margin-bottom: 15px; /* Increase space below the text */
        position: relative;
    }

body.rtl .social-icons {
    justify-content: flex-start;
}


body.rtl .btn-text {
    right: 50%;
    left: auto;
    transform: translateX(50%) translateY(-50%);
}

body.rtl .back-to-top {
    right: auto !important;
    left: 20px !important;
}

/* Fix Bootstrap RTL issues */
body.rtl .container,
body.rtl .container-fluid {
    direction: rtl;
}

body.rtl .row {
    flex-direction: row-reverse;
}

body.rtl .text-md-start {
    text-align: right !important;
}

body.rtl .text-md-end {
    text-align: left !important;
}

/* Ensure RTL on all text containers */
body.rtl p,
body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl h4,
body.rtl h5,
body.rtl h6,
body.rtl span,
body.rtl a {
    direction: rtl;
    text-align: right;
}
    body.rtl p{
        text-align:center;
    }
    .btn-text {
        position: absolute;
        top: 55%; /* Increased from 50% to move it down */
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-weight: bold;
        z-index: 2;
    }

/* For RTL version */
.rtl .btn-text {
    right: 50%;
    left: auto;
    transform: translateX(50%) translateY(-50%);
    top: 55%; /* Also adjusted for RTL */
}

body.rtl .overlay-content {
    left: auto;
    right: 5%;
}

body.rtl .action-label {
    right: 50%;
    left: auto;
    transform: translate(50%, -50%);
}

@media (min-width: 1400px) {
    body.rtl .container,
    body.rtl .container-lg,
    body.rtl .container-md,
    body.rtl .container-sm,
    body.rtl .container-xl,
    body.rtl .container-xxl {
        /*max-width: 1695px;*/
        max-width:1404px;
    }
}
@media (min-width: 1600px) {
    body.rtl .video-banner {
        max-height: 13vh;
    }
}

@media (min-width: 1920px) {
  body.rtl  .navbar-brand img {
        /* height: 120px; */
        /* margin-left: -244px; */
        
        /* margin-left: -220px; */
        height: 63px;
        width: 102px;
        margin-right:24px;
      /* margin-right:115px;*/
    }


  body.rtl .banner-image{
      object-fit:cover;
      object-position:center;
    /*  left:12%;*/
    left:7%;
      height:70vh;
      width:130vh;

  }
    .consist-btn img {
        height: 63px;
    }
}
@media screen and (max-width: 768px){

    body.rtl .overlay-content {
        left: auto;
        right: -37%;
    }

    body.rtl .banner-section {
        height: auto;
        min-height: 60vh;
        margin: 0px 30px !important;
    }

}

@media (max-width: 400px) {
   body.rtl .button-text {
        font-size: 8px;
        padding:20px;
        /* padding: 1px 2px; */
    }

    body.rtl .banner-image {
        width: 80%;
        height: 80%;
        object-fit: contain;
        object-position: center 20%;
        left: 67px;
    }
}
@media(max-width:576px) {

    body.rtl .consist-btn img {
        /* height: 45px; */
        height: 35px;
        margin-top: -15%;
    }

    body.rtl .consist-button-text {
        position: absolute;
        bottom: 35%;
        left: 10%;
        z-index: 100;
        transition: all 0.3s ease;
    }

    body.rtl .image-button img {
        height: 30px;
        width: 155px;
    }

    body.rtl .consist-btn img {
        /* height: 45px; */
        height: 35px;
        margin-top: -15%;
        width: 142px;
    }
}
}

@media (max-width: 480px) {
    body.rtl .banner-container {
        height: auto;
        min-height: 45vh;
        margin-left: 2%;
    }
}