/*
 * Modified once more for used with aw-flex.css and renamed aw-rtl.css
 *  W3.CSS RTL (Cleaned)
 *  Right-to-left languages support for W3.CSS framework
 *  Original by Hamid Samak - https://github.com/hamidsamak/w3css-rtl
 *  Modified: Removed float-based column rules (now using aw-flex.css for layouts)
 *  Kept: Table, list, button, and text alignment fixes for RTL
 */

/* Hebrew font for headings */
h1, h2, h3, h4, h5, h6 {
    font-family: heeboBlack, sans-serif !important;
    font-weight: 700;
    margin: 10px 0;
}

/* Close button position */
.w3-closebtn {
    float: left;  /* In RTL, close button goes to left */
}

/* List padding for RTL */
ul.w3-ul li {
    padding: 6px 16px 6px 2px;
}

/* Table text alignment */
.w3-table td,
.w3-table th,
.w3-table-all td,
.w3-table-all th {
    text-align: start;  /* 'start' respects dir attribute */
}

.w3-table th:first-child,
.w3-table td:first-child,
.w3-table-all th:first-child,
.w3-table-all td:first-child {
    padding-inline-start: 8px;
    padding-inline-end: 16px;
}

/* Navbar items */
[dir="rtl"] .w3-navbar li {
    float: right;
}
[dir="ltr"] .w3-navbar li {
    float: left;
}

/* Image overlay positioning */
.image-holder { 
    position: relative; 
    top: 0; 
    display: block;
}
.over-image {
    left: 10px; 
    position: absolute;
}
/* RTL fix for w3-bar - items should float right */
[dir="rtl"] .w3-bar .w3-bar-item,
[dir="rtl"].w3-bar .w3-bar-item,
.w3-bar[dir="rtl"] .w3-bar-item {
	float: right;
}

/* RTL fix for w3-bar - bar itself needs proper alignment */
[dir="rtl"] .w3-bar,
[dir="rtl"].w3-bar,
.w3-bar[dir="rtl"] {
	direction: rtl;
}

/* Ensure logo link also floats right in RTL */
[dir="rtl"] .w3-bar > a,
[dir="rtl"].w3-bar > a {
	float: right;
}
/* ============================================
   REMOVED - Now handled by aw-flex.css:
   
   .w3-col, .w3-half, .w3-third, .w3-twothird,
   .w3-threequarter, .w3-quarter { float: end; }
   
   .w3-col { float: right !important; }
   
   Use aw-row + aw-half/aw-quarter instead!
   ============================================ */