/* ===== Dasht SEO — RTL Overrides ===== */
/* Persian is RTL by default — this file handles direction-specific fixes */

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

/* ====== Layout & Grid ====== */
.wrap { direction: rtl; }

/* ====== Header / Navigation ====== */
.header-inner { direction: rtl; }
.nav-links { flex-direction: row; }
.nav-actions { direction: rtl; }
.brand { flex-direction: row; }
.brand-sub { direction: ltr; } /* English subtitle stays LTR */

/* Sub-menu positioning */
.nav-links li .sub-menu,
.nav-links li ul {
  right: 0;
  left: auto;
}

/* User dropdown */
.dasht-user-dropdown {
  right: auto;
  left: 0;
}

/* Search modal */
.dasht-search-result-type {
  margin-right: auto;
  margin-left: 0;
}

/* ====== Hero ====== */
.hero-meta { direction: rtl; }
.hero-title { direction: rtl; }
.hero-title .indent { padding-right: 1.5em; padding-left: 0; display: inline-block; }
.hero-grid { direction: rtl; }
.hero-ctas { direction: rtl; }
.hero-ctas .arrow-text { margin-right: auto; margin-left: 0; }

/* ====== Sections ====== */
.sec-head { text-align: right; }

/* ====== Services ====== */
.svc-row { direction: rtl; }
.svc-row:hover { transform: translateX(8px); }
.svc-arrow { margin-right: auto; margin-left: 0; }
.svc-arrow svg { transform: scaleX(-1); } /* flip arrow for RTL */

/* ====== Stats ====== */
.stat-row { direction: rtl; }

/* ====== About ====== */
.about-grid { direction: rtl; }

/* ====== Process ====== */
.process-steps { direction: rtl; }
.process-step { text-align: right; }

/* ====== Work / Portfolio ====== */
.work-grid { direction: rtl; }
.work-item { text-align: right; }

/* ====== Pricing ====== */
.pricing-grid { direction: rtl; }
.price-card { text-align: right; }
.price-features li { padding-right: 24px; padding-left: 0; }
.price-features li::before { right: 0; left: auto; }

/* ====== Testimonials ====== */
.testi-grid { direction: rtl; }
.testi-card { text-align: right; }
.testi-stars { direction: ltr; } /* Stars stay LTR */

/* ====== Contact ====== */
.contact-grid { direction: rtl; }
.contact-info-row { direction: rtl; }
.contact-info-row:hover { transform: translateX(4px); }

/* ====== Footer ====== */
.footer-grid { direction: rtl; }
.footer-cols { direction: rtl; text-align: right; }
.footer-cols a { padding: 4px 0; }
.footer-cols a:hover { transform: translateX(4px); }
.footer-social { direction: ltr; } /* Social links stay LTR order */

/* ====== Blog / Single ====== */
.dasht-single-layout { direction: rtl; }
.dasht-single-sidebar { border-right: none; border-left: 1.5px solid var(--line-soft); }
.dasht-single-meta { direction: rtl; }
.dasht-share { direction: ltr; }
.dasht-related-grid { direction: rtl; }
.dasht-breadcrumb ol { direction: rtl; padding-right: 0; padding-left: 0; }
.dasht-breadcrumb li + li::before { content: '/'; margin: 0 8px; }

/* ====== Auth pages ====== */
.dasht-auth-page { direction: rtl; }
.dasht-auth-side { text-align: right; }
.dasht-auth-main { direction: rtl; }
.auth-back-link svg { transform: scaleX(-1); }

/* ====== Dashboard ====== */
.dasht-dash { direction: rtl; }
.dasht-sidebar { border-left: 1.5px solid rgba(255,255,255,.08); border-right: none; }
.dasht-sidebar-link { text-align: right; flex-direction: row; }
.dasht-sidebar-link .icon { margin-left: 0; }
.dasht-content { direction: rtl; }
.dasht-topbar { direction: rtl; }
.dasht-form-row { direction: rtl; }
.dasht-ticket-head { direction: rtl; }
.dasht-project-top { direction: rtl; }

/* ====== Floating Actions ====== */
.dasht-floating-actions.pos-right { right: max(18px, env(safe-area-inset-right)); left: auto; }
.dasht-floating-actions.pos-left  { left: max(18px, env(safe-area-inset-left)); right: auto; }
.dasht-floating-item { flex-direction: row; }
.dasht-floating-label { direction: rtl; }

/* ====== Forms ====== */
.form-row { direction: rtl; }
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
.ff-mono {
  direction: ltr;
  text-align: left;
}

/* ====== Buttons ====== */
.btn .arrow { margin-right: 8px; margin-left: 0; }
.btn .arrow svg { transform: scaleX(-1); }

/* ====== TOC ====== */
.dasht-auto-toc ol { padding-right: 20px; padding-left: 0; }

/* ====== Reading progress bar ====== */
.dasht-reading-progress span {
  background: linear-gradient(270deg, var(--c-primary), var(--c-accent));
}

/* ====== Mobile menu ====== */
@media (max-width: 768px) {
  /* text-align only — drawer positioning is handled by fixes.css (authoritative) */
  .nav-links {
    text-align: right;
  }
  /* Sidebar in mobile: always physical left */
  .dasht-sidebar {
    right: auto !important;
    left: 0 !important;
  }
}

/* ====== CPT templates ====== */
.dasht-cpt-single { direction: rtl; text-align: right; }

/* ====== Ticker ====== */
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

/* ====== Misc ====== */
.dasht-skip-link { right: 16px; left: auto; }
.stamp { margin-right: 0; margin-left: 12px; }
