/* RTL (Arabic) specific styles for korasetsherot theme */

body.rtl {
    direction: rtl;
    text-align: right;
}

/* Header adjustments for RTL */
/* body.rtl .header-section-flex {
    flex-direction: row-reverse;
}

body.rtl .header-bar-flex {
    flex-direction: row-reverse;
}

body.rtl .header-social ul {
    flex-direction: row-reverse;
} */

/* Navigation menu adjustments */
body.rtl .nav ul {
    text-align: right;
} 

body.rtl .nav li {
    float: right;
}

body.rtl .sub-menu {
    right: 0;
    left: auto;
}

/* Form adjustments */
/* body.rtl .form-row {
    flex-direction: row-reverse;
} */

body.rtl .input-group {
    text-align: right;
}

body.rtl .icon-search {
    right: 10px;
    left: auto;
}

/* Project box adjustments */
body.rtl .project-details {
    text-align: right;
}

body.rtl .page-cta {
    text-align: center;
}

/* Footer adjustments */
body.rtl .footer-section {
    text-align: right;
}

body.rtl .footer-social ul {
    justify-content: flex-start;
}

/* Breadcrumb adjustments */
body.rtl .breadcrumbs {
    text-align: right;
}

body.rtl .breadcrumbs__separator {
    margin: 0 5px;
}

/* Gallery adjustments */
body.rtl .gallery-thumbs {
    text-align: right;
}

/* Project details table adjustments */
body.rtl .detail-row {
    flex-direction: row-reverse;
}

body.rtl .detail-label {
    text-align: left;
    border-left: 1px solid var(--background-color-200);
    border-right: none;
}

body.rtl .detail-value {
    text-align: right;
    border-right: none;
    border-left: 1px solid var(--background-color-200);
}

/* Mobile adjustments for RTL */
@media (max-width: 768px) {
    body.rtl .detail-row {
        flex-direction: row-reverse;
    }
    
    body.rtl .detail-label {
        text-align: left;
        border-left: 1px solid var(--background-color-200);
        border-right: none;
    }
    
    body.rtl .detail-value {
        text-align: right;
        border-right: none;
        border-left: 1px solid var(--background-color-200);
    }
}

/* Floating icons adjustments */
body.rtl #floating-icons {
    left: 20px;
    right: auto;
}

/* Banner adjustments */
body.rtl .banner-data {
    text-align: right;
}

body.rtl .banner-headline {
    text-align: right;
}

/* Area box adjustments */
body.rtl .area-data {
    text-align: right;
}

/* Developer area adjustments */
body.rtl .developer-description {
    text-align: right;
    line-height: 1.8;
}

/* Related projects adjustments */
body.rtl .related-projects {
    text-align: right;
}

body.rtl .related-project-title {
    text-align: right;
}

/* Pagination adjustments */
body.rtl .page-numbers {
    direction: rtl;
}

/* Content adjustments */
body.rtl .entry-content {
    text-align: right;
    line-height: 1.8;
}

body.rtl .content-box {
    text-align: right;
    line-height: 1.8;
}

/* Table adjustments for RTL */
body.rtl table {
    direction: rtl;
}

body.rtl th {
    text-align: right;
}

body.rtl td {
    text-align: right;
}

/* WordPress editor adjustments */
body.rtl .wp-block-quote {
    border-right: 4px solid var(--primary-color);
    border-left: none;
    padding-right: 1rem;
    padding-left: 0;
}

body.rtl .wp-block-pullquote {
    text-align: right;
}

/* Custom adjustments for Arabic content */
body.rtl h1, 
body.rtl h2, 
body.rtl h3, 
body.rtl h4, 
body.rtl h5, 
body.rtl h6 {
    text-align: right;
}

body.rtl p {
    text-align: right;
    line-height: 1.8;
}

body.rtl .headline-title {
    text-align: right;
}

/* Icon adjustments for RTL */
body.rtl [class*=" icon-"]:before,
body.rtl [class^=icon-]:before {
    margin-right: 0;
    margin-left: .2em;
}

/* Search form title alignment */
body.rtl .search-form-title {
    text-align: right;
}

/* Facilities and services adjustments */
body.rtl .facilities-services li {
    text-align: right;
    flex-direction: row-reverse;
}

body.rtl .facilities-services .icon {
    margin-left: 0;
    margin-right: 10px;
}

/* Author info adjustments */
body.rtl .author-info {
    text-align: right;
    flex-direction: row-reverse;
}

body.rtl .author-avatar {
    margin-right: 0;
    margin-left: 15px;
}
