/**
 * seven tejarat aras Homepage - RTL Styles
 * Specific styles for right-to-left languages (Persian)
 */

/* Base RTL adjustments */
html[dir="rtl"] {
    /* Font family for Persian */
    --font-family-primary: 'IRANYekanX', 'Vazirmatn', Tahoma, Arial, sans-serif;
}

/* Header RTL adjustments */
html[dir="rtl"] .logo-container {
    margin-right: 0;
    margin-left: var(--spacing-md);
}

html[dir="rtl"] .nav-item {
    margin-right: 0;
    margin-left: var(--spacing-md);
}

html[dir="rtl"] .has-dropdown .nav-link::after {
    margin-left: 0;
    margin-right: 0.5rem;
}

html[dir="rtl"] .header-actions {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .auth-buttons .btn:not(:last-child) {
    margin-right: 0;
    margin-left: var(--spacing-sm);
}

/* Carousel RTL adjustments */
html[dir="rtl"] .carousel-track {
    flex-direction: row-reverse;
}

html[dir="rtl"] .carousel-prev,
html[dir="rtl"] .carousel-next {
    transform: scaleX(-1);
}

/* Accordion RTL adjustments */
html[dir="rtl"] .accordion-header .accordion-icon {
    margin-left: 0;
    margin-right: auto;
}

/* Tools section RTL adjustments */
html[dir="rtl"] .tools-content {
    direction: rtl;
}

html[dir="rtl"] .tool-card {
    text-align: right;
}

/* Testimonials RTL adjustments */
html[dir="rtl"] .testimonial {
    text-align: right;
}

html[dir="rtl"] .testimonial-actions {
    justify-content: flex-start;
}

html[dir="rtl"] .testimonial-prev,
html[dir="rtl"] .testimonial-next {
    transform: scaleX(-1);
}

/* Resources RTL adjustments */
html[dir="rtl"] .resource-card {
    text-align: right;
}

html[dir="rtl"] .resources-prev,
html[dir="rtl"] .resources-next {
    transform: scaleX(-1);
}

/* Footer RTL adjustments */
html[dir="rtl"] .footer-column {
    text-align: right;
}

html[dir="rtl"] .footer-meta {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-selectors {
    margin-left: 0;
    margin-right: auto;
}

/* Animation adjustments for RTL */
html[dir="rtl"] .reveal-animation.slide-right {
    transform: translateX(-50px);
}

html[dir="rtl"] .reveal-animation.slide-left {
    transform: translateX(50px);
}

/* Font loading for Persian */
@font-face {
    font-family: 'IRANYekanX';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/iranyekanwebfont@v5.0.0/dist/iranyekanwebregular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekanX';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/iranyekanwebfont@v5.0.0/dist/iranyekanwebbold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}