/**
 * RTL Styles for Meh-sazan Theme
 */

/* General RTL Adjustments */
body.rtl {
    direction: rtl;
    unicode-bidi: embed;
}

/* Header RTL */
.rtl .topbar-inner {
    flex-direction: row-reverse;
}

.rtl .topbar-menu ul li:not(:last-child)::after {
    right: auto;
    left: 0;
}

.rtl .header-actions {
    flex-direction: row-reverse;
}

/* Navigation RTL */
.rtl .nav {
    flex-direction: row-reverse;
}

.rtl .nav a::after {
    left: 50%;
    right: 50%;
}

/* Search RTL */
.rtl .search {
    flex-direction: row-reverse;
}

/* Hero Section RTL */
.rtl .hero-inner {
    text-align: right;
}

/* Features RTL */
.rtl .feature-title-bar {
    flex-direction: row-reverse;
}

/* About Section RTL */
.rtl .about-inner {
    flex-direction: row-reverse;
}

/* Products RTL */
.rtl .products-inner {
    flex-direction: row-reverse;
}

/* Blog RTL */
.rtl .blog-card a {
    flex-direction: row-reverse;
}

/* Footer RTL */
.rtl .footer-top {
    flex-direction: row-reverse;
}

.rtl .footer-contact h3::after {
    right: 0;
    left: auto;
}

.rtl .contact-item {
    flex-direction: row-reverse;
}

.rtl .footer-inner {
    flex-direction: row-reverse;
}

.rtl .footer-menu ul {
    flex-direction: row-reverse;
}

/* Sidebar RTL */
.rtl .mobile-sidebar {
    right: -100%;
    left: auto;
}

.rtl .mobile-sidebar.active {
    right: 0;
    left: auto;
}

.rtl .sidebar-nav a {
    border-right: 3px solid transparent;
    border-left: none;
}

.rtl .sidebar-nav a:hover {
    border-right-color: #1266AF;
    padding-right: 25px;
    padding-left: 15px;
}

.rtl .sidebar-nav a::before {
    right: 0;
    left: auto;
}

/* Breadcrumb RTL */
.rtl .breadcrumb-inner {
    flex-direction: row-reverse;
}

/* Blog Layout RTL */
.rtl .blog-layout {
    flex-direction: row-reverse;
}

/* Post Meta RTL */
.rtl .post-meta {
    flex-direction: row-reverse;
}

.rtl .post-meta i {
    margin-left: 4px;
    margin-right: 0;
}

/* Comments RTL */
.rtl .comment-body {
    flex-direction: row-reverse;
}

.rtl .comment-list .children {
    margin-right: 50px;
    margin-left: 0;
    padding-right: 20px;
    padding-left: 0;
    border-right: 2px solid #1266AF;
    border-left: none;
}

/* Pagination RTL */
.rtl .blog-pagination {
    flex-direction: row-reverse;
}

/* Product Page RTL */
.rtl .product-info {
    padding-right: 30px;
    padding-left: 0;
}

.rtl .product-meta .meta-item {
    flex-direction: row-reverse;
}

.rtl .product-share {
    flex-direction: row-reverse;
}

.rtl .variation-buttons {
    flex-direction: row-reverse;
}

.rtl .quantity-controls {
    flex-direction: row-reverse;
}

/* About Page RTL */
.rtl .about-intro-inner {
    flex-direction: row-reverse;
}

.rtl .experience-badge {
    left: -20px;
    right: auto;
}

.rtl .story-grid {
    flex-direction: row-reverse;
}

.rtl .timeline-item {
    flex-direction: row-reverse;
}

.rtl .timeline-content {
    text-align: right;
}

.rtl .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 55%;
    margin-right: 0;
}

.rtl .timeline-item:nth-child(even) .timeline-content {
    margin-right: 55%;
    margin-left: 0;
}

.rtl .timeline-item:nth-child(odd) .timeline-dot {
    right: calc(55% - 10px);
    left: auto;
}

.rtl .timeline-item:nth-child(even) .timeline-dot {
    left: calc(55% - 10px);
    right: auto;
}

/* Contact Page RTL */
.rtl .contact-grid {
    flex-direction: row-reverse;
}

.rtl .form-row {
    flex-direction: row-reverse;
}

.rtl .checkbox-group {
    flex-direction: row-reverse;
}

.rtl .hours-row {
    flex-direction: row-reverse;
}

.rtl .hours-grid {
    flex-direction: row-reverse;
}

.rtl .faq-question {
    flex-direction: row-reverse;
}

.rtl .map-address {
    flex-direction: row-reverse;
}

.rtl .direction-btn {
    flex-direction: row-reverse;
}

/* Responsive RTL */
@media (max-width: 992px) {
    .rtl .timeline::before {
        right: 30px;
        left: auto;
    }
    
    .rtl .timeline-item,
    .rtl .timeline-item:nth-child(even) {
        justify-content: flex-start;
    }
    
    .rtl .timeline-content,
    .rtl .timeline-item:nth-child(odd) .timeline-content,
    .rtl .timeline-item:nth-child(even) .timeline-content {
        margin-right: 80px !important;
        margin-left: 0 !important;
    }
    
    .rtl .timeline-dot {
        right: 20px !important;
        left: auto !important;
    }
}

@media (max-width: 768px) {
    .rtl .top-header-inner {
        flex-direction: row;
    }
    
    .rtl .product-info {
        padding-right: 0;
    }
    
    .rtl .comment-list .children {
        margin-right: 20px;
        padding-right: 10px;
    }
}