/* ===== RTL Override for Geoint Blog Archive ===== */

html, body {
    direction: rtl !important;
    text-align: right !important;
}

/* Core text elements */
.elementor-widget-container,
.entry-content,
.post-content,
.post-excerpt,
article,
p, h1, h2, h3, h4, h5, h6, li, td, th, blockquote, pre {
    direction: rtl;
    text-align: right;
}

/* Flip floats */
.alignleft  { float: right !important; margin: 0 0 1em 1em !important; }
.alignright { float: left  !important; margin: 0 1em 1em 0 !important; }
.wp-caption.alignleft  { float: right !important; }
.wp-caption.alignright { float: left  !important; }

/* Fix nav menus */
.nav-menu, .menu, ul.menu, ul.sf-menu, ul.mobile-menu,
#menu-main, #menu-main-1 {
    direction: rtl;
    text-align: right;
}

/* Titanium theme specifics */
#header, #header .container, #header .row { direction: rtl; }
.logo-text, .logo-img { float: right; text-align: right; }
.nav-main { direction: rtl; }
.sf-menu { float: right; }
.sf-menu > li { float: right; }
.sf-menu li.first-item { border-right: none; }

/* Sidebar */
#sidebar, #sidebar-footer { direction: rtl; text-align: right; }
#sidebar .widget, #sidebar-footer .widget { direction: rtl; }
.widget-title { text-align: right; }

/* Footer */
#footer, #copyright { direction: rtl; text-align: right; }

/* Breadcrumbs */
.breadcrumbs, .breadcrumbs a { direction: rtl; text-align: right; }
.breadcrumbs .separator { margin: 0 4px; }

/* Post meta */
.post-meta, .entry-meta, .post-info { direction: rtl; text-align: right; }
.post-meta .meta-item { float: right; margin-left: 15px; margin-right: 0; }

/* Pagination */
.pagination, .nav-links, .post-navigation { direction: rtl; text-align: right; }
.nav-previous { float: right; }
.nav-next { float: left; }

/* Comments */
.comment-list, .comment-body, .comment-content { direction: rtl; text-align: right; }
.comment-meta { direction: rtl; text-align: right; }
.comment-author { float: right; margin-left: 10px; margin-right: 0; }

/* Tables */
table, th, td { direction: rtl; text-align: right; }

/* Search form */
.search-form, .form-search { direction: rtl; }
.search-form label { text-align: right; }

/* Bootstrap RTL fixes */
.container, .row { direction: rtl; }
.col-sm-4, .col-sm-8, .col-md-4, .col-md-8,
.col-sm-3, .col-sm-9, .col-xs-12 { float: right; }
.pull-left { float: right !important; }
.pull-right { float: left !important; }
.text-left { text-align: right !important; }
.text-right { text-align: left !important; }

/* Fix margin/padding for common patterns */
.widget ul, .widget ol { padding-right: 20px; padding-left: 0; }
ul, ol { padding-right: 2em; padding-left: 0; }
.entry-content ul, .entry-content ol { padding-right: 2em; padding-left: 0; }

/* Accessibility toolbar (pojo) - mirror to right side in RTL, closed by default */
#pojo-a11y-toolbar.pojo-a11y-toolbar-left {
    left: auto !important;
    right: -180px;
    -webkit-transition: right 750ms cubic-bezier(0.23, 1, 0.32, 1);
    -moz-transition: right 750ms cubic-bezier(0.23, 1, 0.32, 1);
    -o-transition: right 750ms cubic-bezier(0.23, 1, 0.32, 1);
    transition: right 750ms cubic-bezier(0.23, 1, 0.32, 1);
}
#pojo-a11y-toolbar.pojo-a11y-toolbar-left.pojo-a11y-toolbar-open {
    right: 0;
}
#pojo-a11y-toolbar.pojo-a11y-toolbar-left .pojo-a11y-toolbar-toggle {
    left: auto;
    right: 180px;
}

/* Elementor RTL */
.elementor-section, .elementor-container, .elementor-row { direction: rtl; }
.elementor-column { float: right; }
