/**
 * Jory News Theme - RTL Stylesheet
 * تنسيقات الاتجاه من اليمين لليسار
 *
 * @package flavor-flavor-flavor
 */

/* ==========================================================================
   General RTL Adjustments
   ========================================================================== */

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

/* ==========================================================================
   Top Bar
   ========================================================================== */

.rtl .top-bar .container {
    flex-direction: row-reverse;
}

.rtl .top-bar-right,
.rtl .top-bar-left {
    flex-direction: row-reverse;
}

/* ==========================================================================
   Header
   ========================================================================== */

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

.rtl .primary-menu {
    flex-direction: row-reverse;
}

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

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

/* ==========================================================================
   Navigation Arrows
   ========================================================================== */

.rtl .slider-prev {
    right: auto;
    left: 20px;
}

.rtl .slider-next {
    left: auto;
    right: 20px;
}

.rtl .view-more svg {
    transform: rotate(180deg);
}

.rtl .breadcrumb-separator svg {
    transform: rotate(180deg);
}

/* ==========================================================================
   Sidebar Position
   ========================================================================== */

.rtl .homepage-blocks-wrapper.sidebar-left .homepage-sidebar {
    order: -1;
}

.rtl .homepage-blocks-wrapper.sidebar-right .homepage-sidebar {
    order: 1;
}

.rtl .content-wrapper.sidebar-left .sidebar {
    order: -1;
}

.rtl .content-wrapper.sidebar-right .sidebar {
    order: 1;
}

/* ==========================================================================
   Category Label
   ========================================================================== */

.rtl .post-card .category-label {
    right: auto;
    left: 15px;
}

.rtl .slide-content .category-label {
    right: auto;
    left: auto;
}

/* ==========================================================================
   Post Meta Icons
   ========================================================================== */

.rtl .post-meta span {
    flex-direction: row-reverse;
}

.rtl .post-meta span svg {
    margin-left: 5px;
    margin-right: 0;
}

/* ==========================================================================
   Social Share
   ========================================================================== */

.rtl .social-share {
    flex-direction: row-reverse;
}

.rtl .share-buttons {
    flex-direction: row-reverse;
}

/* ==========================================================================
   Author Box
   ========================================================================== */

.rtl .author-box {
    flex-direction: row-reverse;
}

.rtl .author-box .author-info {
    text-align: right;
}

/* ==========================================================================
   Most Read
   ========================================================================== */

.rtl .most-read-item {
    flex-direction: row-reverse;
}

.rtl .most-read-item .post-content {
    text-align: right;
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */

.rtl .mobile-menu-container {
    right: auto;
    left: -300px;
}

.rtl .mobile-menu.active .mobile-menu-container {
    left: 0;
    right: auto;
}

.rtl .mobile-menu-header {
    flex-direction: row-reverse;
}

.rtl .mobile-menu-list .sub-menu {
    padding-right: 0;
    padding-left: 20px;
}

.rtl .mobile-phone {
    flex-direction: row-reverse;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.rtl .footer-bottom-wrapper {
    flex-direction: row-reverse;
}

.rtl .footer-info {
    flex-direction: row-reverse;
}

.rtl .footer-menu {
    flex-direction: row-reverse;
}

.rtl .footer-phone {
    flex-direction: row-reverse;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.rtl .search-form {
    flex-direction: row-reverse;
}

.rtl .search-field {
    border-radius: 0 var(--radius) var(--radius) 0;
    border-left: 1px solid var(--border-color);
    border-right: none;
}

.rtl .search-submit {
    border-radius: var(--radius) 0 0 var(--radius);
}

.rtl .header-search-form .search-field {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.rtl .header-search-form .search-submit {
    border-radius: var(--radius) 0 0 var(--radius);
}

/* ==========================================================================
   Post List
   ========================================================================== */

.rtl .post-list {
    flex-direction: row-reverse;
}

.rtl .post-small {
    flex-direction: row-reverse;
}

.rtl .recent-posts-widget li,
.rtl .popular-posts-widget li {
    flex-direction: row-reverse;
}

/* ==========================================================================
   Breaking News
   ========================================================================== */

.rtl .breaking-news-wrapper {
    flex-direction: row-reverse;
}

.rtl .breaking-news-nav {
    flex-direction: row-reverse;
}

.rtl .breaking-news-nav button svg {
    transform: rotate(180deg);
}

/* ==========================================================================
   Comments
   ========================================================================== */

.rtl .comment-author {
    flex-direction: row-reverse;
}

.rtl .comment-content {
    margin-right: 0;
    margin-left: 75px;
}

/* ==========================================================================
   Widgets
   ========================================================================== */

.rtl .social-links-widget .social-link {
    flex-direction: row-reverse;
}

.rtl .social-links-widget .social-link:hover {
    transform: translateX(5px);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.rtl .pagination .prev svg,
.rtl .pagination .next svg {
    transform: rotate(180deg);
}

/* ==========================================================================
   Post Tags
   ========================================================================== */

.rtl .post-tags {
    flex-direction: row-reverse;
}

/* ==========================================================================
   Mixed Block
   ========================================================================== */

.rtl .block-style-mixed .block-content {
    flex-direction: row-reverse;
}

/* ==========================================================================
   Back to Top
   ========================================================================== */

.rtl .back-to-top {
    left: 30px;
    right: auto;
}

/* ==========================================================================
   Top Bar Info
   ========================================================================== */

.rtl .top-bar-email,
.rtl .top-bar-phone,
.rtl .top-bar-date {
    flex-direction: row-reverse;
}

/* ==========================================================================
   Block Header
   ========================================================================== */

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

/* ==========================================================================
   Post Navigation
   ========================================================================== */

.rtl .post-navigation .nav-links {
    flex-direction: row-reverse;
}

/* ==========================================================================
   Responsive RTL Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    .rtl .author-box {
        flex-direction: column;
    }

    .rtl .author-box .author-info {
        text-align: center;
    }

    .rtl .comment-content {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .rtl .back-to-top {
        left: 20px;
    }
}