/* RTL Base Styles */
body.rtl {
    text-align: right;
    direction: rtl;
}

/* RTL Text Alignment */
.rtl .ourprojects {
    text-align: right;
    padding-right: 120px; /* Reduced from 170px for better mobile display */
    padding-left: 0;
}

.rtl .ourservicecontainer {
    margin-right: 5%;
    margin-left: 0;
}

.rtl .NutriciaBoothparagraph {
    text-align: right;
}

.rtl .paragraph {
    text-align: right;
    padding-left: 0;
    padding-right: 0;
    width: 100%; /* Full width to prevent word breaking */
    white-space: normal; /* Allow normal text wrapping */
    word-wrap: break-word; /* Break long words if needed */
}

/* RTL Layout Adjustments */
.rtl .main-bottom-container {
    direction: rtl;
}

.rtl .paragraphcontainer {
    margin-left: 8%;
    margin-right: 8%;
    display: flex;
    justify-content: space-between;
}

/* Fix for button alignment in RTL */
.rtl .ourprojectsbutton,
.rtl .ourprojectssecondbutton {
    direction: rtl;
}

/* Fix for image container in RTL */
.rtl .ourserviceimagecontainer {
    direction: ltr; /* Keep slider controls in normal direction */
}

/* RTL Responsive Adjustments */
@media (max-width: 1200px) {
    .rtl .ourprojects {
        padding-right: 60px;
    }

    .rtl .paragraphcontainer {
        margin-left: 5%;
        margin-right: 5%;
    }
}

@media (max-width: 992px) {
    .rtl .ourprojects {
        padding-right: 40px;
    }

    .rtl .paragraph {
        padding-left: 0;
    }
}

/* Tablet and mobile adjustments */
@media (max-width: 768px) {
    .rtl .paragraphcontainer {
        flex-direction: column;
        margin-left: 5%;
        margin-right: 5%;
    }

    .rtl .ourprojects {
        padding-right: 20px;
    }

    .rtl .content-section {
        width: 100%;
    }
}

/* Mobile specific fixes */
@media (max-width: 575px) {
    .rtl .ourprojects {
        padding-right: 15px;
        font-size: 24px;
    }

    .rtl .paragraph {
        text-align: right;
        width: 100%;
        padding: 0;
        font-size: 16px;
        line-height: 24px;
        margin-right: 0;
        white-space: normal;
        word-wrap: break-word;
    }

    .rtl .NutriciaBoothparagraph {
        font-size: 24px;
        line-height: 32px;
    }

    .rtl .paragraphcontainer {
        padding: 20px;
        margin-left: 0;
        margin-right: 0;
    }
}
