/* ==========================================
   AbzarDownload Theme - RTL Stylesheet
   ========================================== */

/* RTL Body Override */
body.rtl-layout {
  font-family: 'Vazirmatn', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  direction: rtl;
  text-align: right;
}

/* Header */
body.rtl-layout .header-inner {
  flex-direction: row-reverse;
}

body.rtl-layout .nav-menu {
  flex-direction: row-reverse;
}

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

body.rtl-layout .search-input-wrap {
  flex-direction: row-reverse;
}

/* Breadcrumb */
body.rtl-layout .breadcrumb-list {
  flex-direction: row-reverse;
}

/* Software Hero */
body.rtl-layout .software-hero {
  flex-direction: row-reverse;
}

body.rtl-layout .hero-title-row {
  flex-direction: row-reverse;
}

/* Cards */
body.rtl-layout .card-header {
  flex-direction: row-reverse;
}

body.rtl-layout .card-footer {
  flex-direction: row-reverse;
}

body.rtl-layout .safe-badge {
  right: auto;
  left: 8px;
}

body.rtl-layout .card-meta {
  flex-direction: row-reverse;
}

/* Download Box */
body.rtl-layout .download-box-meta {
  flex-direction: row-reverse;
}

body.rtl-layout .download-link-item {
  flex-direction: row-reverse;
}

body.rtl-layout .download-box-title {
  flex-direction: row-reverse;
}

/* Stats Bar */
body.rtl-layout .stat-block:last-child {
  border-right: 1px solid var(--border-color);
  border-left: none;
}

body.rtl-layout .stat-block:first-child {
  border-right: none;
}

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

/* Sidebar */
body.rtl-layout .archive-layout {
  grid-template-columns: 280px 1fr;
}

body.rtl-layout .single-content-layout {
  grid-template-columns: 320px 1fr;
}

/* Section Header */
body.rtl-layout .section-header {
  flex-direction: row-reverse;
}

/* Filter */
body.rtl-layout .archive-filters {
  flex-direction: row-reverse;
}

body.rtl-layout .filter-group,
body.rtl-layout .sort-group {
  flex-direction: row-reverse;
}

/* Widget List */
body.rtl-layout .abzar-widget-item {
  flex-direction: row-reverse;
}

body.rtl-layout .abzar-os-link {
  flex-direction: row-reverse;
}

body.rtl-layout .widget-category-list li a {
  flex-direction: row-reverse;
}

/* Footer */
body.rtl-layout .footer-bottom-inner {
  flex-direction: row-reverse;
}

/* Pagination */
body.rtl-layout .abzar-pagination .prev::before { content: '›'; }
body.rtl-layout .abzar-pagination .next::after  { content: '‹'; }

/* Category Grid */
body.rtl-layout .hero-cats {
  flex-direction: row-reverse;
}

/* Hero Search */
body.rtl-layout .hero-search-wrap {
  flex-direction: row-reverse;
  padding: 6px 20px 6px 6px;
}

/* Tags */
body.rtl-layout .software-tags {
  flex-direction: row-reverse;
}

/* Tabs */
body.rtl-layout .tabs-nav {
  flex-direction: row-reverse;
}

/* Dropdown Counter */
body.rtl-layout .download-counter-wrap {
  flex-direction: row-reverse;
}

/* Misc lists */
body.rtl-layout .hero-info {
  text-align: right;
}

body.rtl-layout .stat-value,
body.rtl-layout .stat-label {
  text-align: center;
}

/* Entry Content */
body.rtl-layout .entry-content ul,
body.rtl-layout .entry-content ol {
  margin: 0 24px 16px 0;
}

/* Post card */
body.rtl-layout .post-card {
  flex-direction: row-reverse;
}

/* Error Page */
body.rtl-layout .error-actions {
  flex-direction: row-reverse;
}

/* Mobile RTL */
@media (max-width: 768px) {
  body.rtl-layout .primary-nav.open .nav-menu {
    align-items: stretch;
  }

  body.rtl-layout .archive-layout {
    grid-template-columns: 1fr;
  }

  body.rtl-layout .single-content-layout {
    grid-template-columns: 1fr;
  }
}
