/*
 * RTL Stylesheet for Payagostar Theme
 * Additional styles for Right-to-Left languages
 */

body {
    direction: rtl;
    text-align: right;
}

/* Header Adjustments */
.logo {
    float: right;
}

.header-contact {
    text-align: right;
}

.contact-item {
    margin-left: 30px;
    margin-right: 0;
}

.contact-item:last-child {
    margin-left: 0;
}

/* Navigation Menu */
.nav-menu {
    text-align: right;
}

.nav-menu li {
    float: right;
}

.nav-menu .sub-menu {
    right: 0;
    left: auto;
}

/* Content */
.content-wrapper {
    direction: rtl;
}

.main-content {
    float: right;
}

.sidebar {
    float: left;
}

.page-title {
    border-right: 4px solid #667eea;
    border-left: none;
    padding-right: 20px;
    padding-left: 0;
}

/* Lists */
.entry-content ul,
.entry-content ol {
    margin-right: 30px;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
}

.widget ul li {
    padding-right: 20px;
    padding-left: 0;
}

.widget ul li:before {
    right: 0;
    left: auto;
}

/* Buttons */
.btn {
    margin-left: 10px;
    margin-right: 0;
}

.btn:last-child {
    margin-left: 0;
}

/* Footer */
.footer-widget h4:after {
    right: 0;
    left: auto;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
textarea,
select {
    text-align: right;
    direction: rtl;
}

/* Breadcrumbs */
.breadcrumbs {
    text-align: right;
}

/* Meta */
.entry-meta span {
    margin-right: 0;
    margin-left: 20px;
}

.entry-meta span:first-child {
    margin-left: 0;
}

/* Pagination */
.pagination {
    direction: rtl;
}

.pagination .prev {
    float: right;
}

.pagination .next {
    float: left;
}

/* Comments */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .children {
    margin-right: 40px;
    margin-left: 0;
}

.comment-author {
    float: right;
}

.comment-metadata {
    text-align: right;
}

/* Mobile Menu */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        margin-right: 15px;
        margin-left: 0;
    }
    
    .nav-menu {
        right: -100%;
        left: auto;
    }
    
    .nav-menu.mobile-active {
        right: 0;
        left: auto;
    }
}

/* Service Cards */
.service-card:hover {
    transform: translateY(-10px);
}

/* Tags */
.post-tags {
    text-align: right;
}

/* Search */
.search-form {
    direction: rtl;
}

/* Back to Top */
#back-to-top {
    left: auto;
    right: 30px;
}

/* Fixes for common RTL issues */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.pull-right {
    float: right !important;
}

.pull-left {
    float: left !important;
}

/* Text alignment utilities */
.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

/* Margin and Padding RTL fixes */
.mr-10 {
    margin-right: 10px;
}

.ml-10 {
    margin-left: 10px;
}

.pr-10 {
    padding-right: 10px;
}

.pl-10 {
    padding-left: 10px;
}

/* WordPress Core RTL fixes */
.wp-caption {
    text-align: right;
}

.wp-caption-text {
    text-align: right;
}

.gallery-caption {
    text-align: right;
}

/* Alignments */
.alignright {
    float: right;
    margin: 0 0 1em 1em;
}

.alignleft {
    float: left;
    margin: 0 1em 1em 0;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Fix for embedded content */
embed,
iframe,
object,
video {
    max-width: 100%;
}

/* Persian/Arabic Number Fix */
.english-numbers {
    direction: ltr;
    unicode-bidi: embed;
}

/* Additional spacing for RTL */
.section-title {
    text-align: center;
}

.section-title:after {
    right: 50%;
    left: auto;
    transform: translateX(50%);
}

/* Hero Section RTL */
.hero-content {
    text-align: center;
}

.hero-buttons {
    justify-content: center;
}

/* Services Grid RTL */
.services-grid {
    direction: rtl;
}

/* Footer RTL */
.footer-widgets {
    direction: rtl;
}

.copyright {
    text-align: center;
}

/* Verification Logos RTL */
.verification-logos {
    justify-content: flex-start;
}

/* Error 404 RTL */
.error-404 {
    text-align: center;
    direction: rtl;
}

/* Post Navigation RTL */
.post-navigation {
    direction: rtl;
}

.nav-previous {
    text-align: right;
}

.nav-next {
    text-align: left;
}

/* Smooth animations for RTL */
@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}

/* Print styles for RTL */
@media print {
    body {
        direction: rtl;
        text-align: right;
    }
}