/* RTL Styles for Arabic Version */
/* This file contains all RTL-specific overrides for styles.css */

/* Reset and Base Styles - RTL Specific */
body {
    direction: rtl;
    text-align: right;
}

/* Arabic Font Priority */
body {
    font-family: 'Cairo', 'Tajawal', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Container */
.container {
    padding: 0 20px;
}

/* Navigation - RTL Adjustments */
.navbar {
    left: auto;
    right: 0;
}

.nav-content {
    flex-direction: row-reverse;
}

.logo {
    flex-direction: row-reverse;
}

.nav-links {
    flex-direction: row-reverse;
}

.btn-ai {
    flex-direction: row-reverse;
}

.btn-ai .ai-icon {
    margin-right: 0;
    margin-left: 4px;
}

/* Mobile Menu Button - RTL */
.mobile-menu-btn {
    margin-left: 1rem;
    margin-right: 0;
}

/* Hero Section - RTL */
.hero-content {
    direction: rtl;
}

.hero-title {
    text-align: right;
}

.hero-subtitle {
    text-align: right;
}

.hero-buttons {
    flex-direction: row-reverse;
}

.btn {
    flex-direction: row-reverse;
}

/* Slider Controls - RTL */
.slider-controls {
    flex-direction: row-reverse;
}

.slider-btn.prev {
    transform: scaleX(-1);
}

.slider-btn.next {
    transform: scaleX(-1);
}

.slider-dots {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

/* Hero Features - RTL */
.hero-features {
    flex-direction: row-reverse;
}

.feature-item {
    flex-direction: row-reverse;
}

/* Services Section - RTL */
.services {
    direction: rtl;
}

.section-header {
    text-align: center; /* Keep centered for section headers */
}

.service-card {
    text-align: center; /* Keep centered for cards */
}

/* Process Section - RTL */
.process-timeline {
    direction: rtl;
}

.process-step {
    text-align: right;
}

.process-step:nth-child(even) {
    text-align: left;
}

.process-content {
    padding-left: 0;
    padding-right: 3rem;
}

.process-step:nth-child(even) .process-content {
    padding-right: 0;
    padding-left: 3rem;
    text-align: left;
}

.process-number {
    left: auto;
    right: -30px;
}

.process-step:nth-child(even) .process-number {
    right: auto;
    left: -30px;
}

/* Quote Form - RTL */
.quote-form {
    direction: rtl;
}

.form-row {
    flex-direction: row-reverse;
}

.form-group {
    text-align: right;
}

.form-group label {
    text-align: right;
}

.form-group input,
.form-group select,
.form-group textarea {
    direction: rtl;
    text-align: right;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    text-align: right;
}

/* Transport Options - RTL */
.transport-options {
    flex-direction: row-reverse;
}

.transport-option {
    flex-direction: row-reverse;
}

.transport-option input[type="radio"] {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* Service Options - RTL */
.service-options {
    direction: rtl;
}

.service-option {
    flex-direction: row-reverse;
    text-align: right;
}

.service-option input[type="checkbox"] {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* Submit Button - RTL */
.submit-section {
    text-align: center; /* Keep centered */
}

/* Testimonials - RTL */
.testimonials-slider {
    direction: rtl;
}

.testimonial-card {
    text-align: right;
}

.client-info {
    flex-direction: row-reverse;
    text-align: right;
}

.client-image {
    margin-left: 1rem;
    margin-right: 0;
}

.testimonial-controls {
    flex-direction: row-reverse;
}

.testimonial-btn.prev {
    transform: scaleX(-1);
}

.testimonial-btn.next {
    transform: scaleX(-1);
}

/* Statistics - RTL */
.stats-grid {
    direction: rtl;
}

/* Footer - RTL */
.footer {
    direction: rtl;
    text-align: right;
}

.footer-content {
    text-align: right;
}

.footer-grid {
    direction: rtl;
}

.footer-column {
    text-align: right;
}

.footer-column h3 {
    text-align: right;
}

.footer-column ul {
    padding-right: 0;
    padding-left: 0;
}

.social-links {
    flex-direction: row-reverse;
}

.footer-bottom {
    flex-direction: row-reverse;
    text-align: right;
}

.footer-links {
    flex-direction: row-reverse;
}

/* Office Locations - RTL */
.offices-container {
    direction: rtl;
}

.offices-nav {
    flex-direction: row-reverse;
}

.office-tab {
    text-align: right;
}

.office-content {
    text-align: right;
}

.office-details {
    text-align: right;
}

.contact-info {
    text-align: right;
}

.contact-item {
    flex-direction: row-reverse;
    text-align: right;
}

.contact-item i {
    margin-left: 10px;
    margin-right: 0;
}

.office-actions {
    flex-direction: row-reverse;
}

/* About Section - RTL */
.about-content {
    direction: rtl;
    text-align: right;
}

.about-grid {
    grid-template-columns: 1fr 1fr;
}

.about-text {
    text-align: right;
}

.about-features {
    text-align: right;
}

.about-feature {
    flex-direction: row-reverse;
    text-align: right;
}

.about-icon {
    margin-left: 1rem;
    margin-right: 0;
}

/* CTA Section - RTL */
.cta-content {
    text-align: center; /* Keep centered for CTA */
}

.cta-buttons {
    flex-direction: row-reverse;
}

/* Calculator Section - RTL */
.calculator-container {
    direction: rtl;
}

.calculator-header {
    text-align: right;
}

.calc-form {
    text-align: right;
}

.calc-group {
    text-align: right;
}

.calc-group label {
    text-align: right;
}

.calc-row {
    flex-direction: row-reverse;
}

.input-with-icon {
    flex-direction: row-reverse;
}

.input-with-icon .icon {
    right: auto;
    left: 10px;
}

.input-with-icon input {
    padding-left: 40px;
    padding-right: 15px;
    text-align: right;
}

.calc-actions {
    flex-direction: row-reverse;
}

.result-display {
    text-align: right;
}

.result-row {
    flex-direction: row-reverse;
    justify-content: space-between;
}

/* Tracking Section - RTL */
.tracking-container {
    direction: rtl;
}

.tracking-header {
    text-align: right;
}

.tracking-form {
    flex-direction: row-reverse;
}

.tracking-input {
    text-align: right;
}

.tracking-timeline {
    direction: rtl;
}

.timeline-item {
    padding-left: 0;
    padding-right: 40px;
    text-align: right;
}

.timeline-item::before {
    left: auto;
    right: 10px;
}

.timeline-marker {
    left: auto;
    right: 0;
}

.tracking-details {
    text-align: right;
}

.detail-row {
    flex-direction: row-reverse;
    justify-content: space-between;
}

/* FAQ Section - RTL */
.faq-container {
    direction: rtl;
}

.faq-category {
    text-align: right;
}

.faq-item {
    text-align: right;
}

.faq-question {
    text-align: right;
    padding-right: 40px;
    padding-left: 15px;
}

.faq-question::after {
    right: 10px;
    left: auto;
}

.faq-answer {
    text-align: right;
    padding-right: 40px;
    padding-left: 15px;
}

/* Documents Section - RTL */
.documents-grid {
    direction: rtl;
}

.doc-category {
    text-align: right;
}

.doc-card {
    flex-direction: row-reverse;
    text-align: right;
}

.doc-icon {
    margin-left: 15px;
    margin-right: 0;
}

.doc-info {
    text-align: right;
}

.doc-actions {
    flex-direction: row-reverse;
}

/* Gallery Section - RTL */
.gallery-filters {
    flex-direction: row-reverse;
}

.gallery-grid {
    direction: rtl;
}

/* News Section - RTL */
.news-grid {
    direction: rtl;
}

.news-card {
    text-align: right;
}

.news-meta {
    flex-direction: row-reverse;
    text-align: right;
}

.news-date,
.news-category {
    flex-direction: row-reverse;
}

/* Career Section - RTL */
.careers-grid {
    direction: rtl;
}

.job-card {
    text-align: right;
}

.job-meta {
    flex-direction: row-reverse;
}

.job-tag {
    margin-left: 10px;
    margin-right: 0;
}

/* Login Form - RTL */
.login-container {
    direction: rtl;
}

.login-form {
    text-align: right;
}

.form-options {
    flex-direction: row-reverse;
    justify-content: space-between;
}

.remember-me {
    flex-direction: row-reverse;
}

.remember-me input {
    margin-left: 5px;
    margin-right: 0;
}

.social-login {
    flex-direction: row-reverse;
}

/* Modal - RTL */
.modal-content {
    direction: rtl;
    text-align: right;
}

.modal-header {
    flex-direction: row-reverse;
}

.modal-close {
    margin-right: auto;
    margin-left: 0;
}

/* Search Bar - RTL */
.search-container {
    flex-direction: row-reverse;
}

.search-box {
    flex-direction: row-reverse;
}

.search-input {
    text-align: right;
    padding-right: 45px;
    padding-left: 15px;
}

.search-icon {
    right: 15px;
    left: auto;
}

.search-filters {
    flex-direction: row-reverse;
}

.filter-dropdown {
    text-align: right;
}

/* Breadcrumb - RTL */
.breadcrumb {
    flex-direction: row-reverse;
    text-align: right;
}

.breadcrumb-item::after {
    content: '\\';
    margin: 0 10px;
    transform: scaleX(-1);
}

/* Pagination - RTL */
.pagination {
    flex-direction: row-reverse;
}

.page-link.prev::before {
    content: '›';
}

.page-link.next::after {
    content: '‹';
}

/* Tooltips - RTL */
.tooltip-left {
    right: 100%;
    left: auto;
}

.tooltip-left::after {
    right: -5px;
    left: auto;
    border-right: 5px solid transparent;
    border-left: 5px solid #333;
}

.tooltip-right {
    left: 100%;
    right: auto;
}

.tooltip-right::after {
    left: -5px;
    right: auto;
    border-left: 5px solid transparent;
    border-right: 5px solid #333;
}

/* Dropdowns - RTL */
.dropdown-menu {
    text-align: right;
    right: 0;
    left: auto;
}

/* Tabs - RTL */
.tabs {
    flex-direction: row-reverse;
}

.tab-content {
    text-align: right;
}

/* Accordion - RTL */
.accordion-header {
    text-align: right;
}

.accordion-header::after {
    left: 15px;
    right: auto;
}

.accordion-content {
    text-align: right;
}

/* Progress Bars - RTL */
.progress {
    direction: ltr; /* Progress bars should fill left to right even in RTL */
}

/* Cards - RTL */
.card {
    text-align: right;
}

.card-header {
    text-align: right;
}

.card-body {
    text-align: right;
}

.card-footer {
    text-align: right;
    flex-direction: row-reverse;
}

/* Badges - RTL */
.badge {
    margin-left: 5px;
    margin-right: 0;
}

/* Lists - RTL */
ul, ol {
    padding-right: 20px;
    padding-left: 0;
}

li {
    text-align: right;
}

/* Tables - RTL */
table {
    direction: rtl;
}

th, td {
    text-align: right;
}

/* Forms - RTL General */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
    direction: rtl;
    text-align: right;
}

/* Radio and Checkbox - RTL */
input[type="radio"],
input[type="checkbox"] {
    margin-left: 8px;
    margin-right: 0;
}

/* Mobile Navigation - RTL */
@media (max-width: 768px) {
    .nav-links {
        right: 0;
        left: auto;
        text-align: right;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .mobile-menu-btn {
        margin-left: 0;
        margin-right: auto;
    }
}

/* Hero Mobile - RTL */
@media (max-width: 768px) {
    .hero-content {
        text-align: right;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
}

/* Footer Mobile - RTL */
@media (max-width: 768px) {
    .footer-grid {
        text-align: right;
    }
    
    .footer-bottom {
        flex-direction: column-reverse;
        text-align: center;
    }
}

/* Floating Elements - RTL */
.float-left {
    float: right;
}

.float-right {
    float: left;
}

/* Text Alignment - RTL */
.text-left {
    text-align: right;
}

.text-right {
    text-align: left;
}

/* Margin Utilities - RTL */
.ml-auto {
    margin-left: 0;
    margin-right: auto;
}

.mr-auto {
    margin-right: 0;
    margin-left: auto;
}

.ml-1 { margin-left: 0; margin-right: 0.25rem; }
.ml-2 { margin-left: 0; margin-right: 0.5rem; }
.ml-3 { margin-left: 0; margin-right: 1rem; }
.ml-4 { margin-left: 0; margin-right: 1.5rem; }
.ml-5 { margin-left: 0; margin-right: 3rem; }

.mr-1 { margin-right: 0; margin-left: 0.25rem; }
.mr-2 { margin-right: 0; margin-left: 0.5rem; }
.mr-3 { margin-right: 0; margin-left: 1rem; }
.mr-4 { margin-right: 0; margin-left: 1.5rem; }
.mr-5 { margin-right: 0; margin-left: 3rem; }

/* Padding Utilities - RTL */
.pl-1 { padding-left: 0; padding-right: 0.25rem; }
.pl-2 { padding-left: 0; padding-right: 0.5rem; }
.pl-3 { padding-left: 0; padding-right: 1rem; }
.pl-4 { padding-left: 0; padding-right: 1.5rem; }
.pl-5 { padding-left: 0; padding-right: 3rem; }

.pr-1 { padding-right: 0; padding-left: 0.25rem; }
.pr-2 { padding-right: 0; padding-left: 0.5rem; }
.pr-3 { padding-right: 0; padding-left: 1rem; }
.pr-4 { padding-right: 0; padding-left: 1.5rem; }
.pr-5 { padding-right: 0; padding-left: 3rem; }

/* Border Radius - RTL */
.rounded-left {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.rounded-right {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Position Utilities - RTL */
.left-0 { left: auto; right: 0; }
.right-0 { right: auto; left: 0; }
.left-50 { left: auto; right: 50%; }
.right-50 { right: auto; left: 50%; }

/* Transform Utilities - RTL */
.translate-x-50 {
    transform: translateX(50%);
}

.translate-x-negative-50 {
    transform: translateX(-50%);
}

/* Contact Form - RTL */
.contact-form {
    direction: rtl;
    text-align: right;
}

.contact-form .form-group {
    text-align: right;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    text-align: right;
}

/* WhatsApp Button - RTL */
.whatsapp-float {
    left: 20px;
    right: auto;
}

/* Cookie Banner - RTL */
.cookie-banner {
    direction: rtl;
    text-align: right;
    flex-direction: row-reverse;
}

.cookie-text {
    text-align: right;
}

/* Payment Warning Popup - RTL */
#payment-warning .popup-box {
    text-align: right;
    direction: rtl;
}

#payment-warning .popup-icon {
    margin: 0 0 0 10px;
}

/* Alert Messages - RTL */
.alert {
    text-align: right;
    direction: rtl;
}

.alert-icon {
    margin-left: 10px;
    margin-right: 0;
}

/* Success/Error Messages - RTL */
.message {
    text-align: right;
    flex-direction: row-reverse;
}

.message-icon {
    margin-left: 10px;
    margin-right: 0;
}

/* Loading Spinner - RTL (no change needed) */
.spinner {
    /* Spinners are center-aligned and don't need RTL adjustment */
}

/* Back to Top Button - RTL */
.back-to-top {
    left: 20px;
    right: auto;
}

/* Social Media Icons - RTL */
.social-icons {
    flex-direction: row-reverse;
}

.social-icon {
    margin-left: 10px;
    margin-right: 0;
}

/* Notification Badge - RTL */
.notification-badge {
    right: auto;
    left: -5px;
}

/* Timeline - RTL */
.timeline {
    padding-right: 40px;
    padding-left: 0;
}

.timeline::before {
    right: 20px;
    left: auto;
}

.timeline-item {
    padding-right: 60px;
    padding-left: 0;
}

.timeline-marker {
    right: 10px;
    left: auto;
}

/* Sidebar - RTL */
.sidebar {
    right: 0;
    left: auto;
}

.sidebar-menu {
    text-align: right;
}

.sidebar-item {
    text-align: right;
    padding-right: 20px;
    padding-left: 10px;
}

.sidebar-icon {
    margin-left: 10px;
    margin-right: 0;
}

/* User Profile - RTL */
.user-profile {
    flex-direction: row-reverse;
}

.user-avatar {
    margin-left: 15px;
    margin-right: 0;
}

.user-info {
    text-align: right;
}

/* Comments Section - RTL */
.comment {
    flex-direction: row-reverse;
    text-align: right;
}

.comment-avatar {
    margin-left: 15px;
    margin-right: 0;
}

.comment-content {
    text-align: right;
}

.comment-actions {
    flex-direction: row-reverse;
}

/* Rating Stars - RTL */
.rating-stars {
    flex-direction: row-reverse;
}

/* File Upload - RTL */
.file-upload {
    text-align: right;
}

.file-list {
    text-align: right;
}

.file-item {
    flex-direction: row-reverse;
}

.file-icon {
    margin-left: 10px;
    margin-right: 0;
}

/* Dashboard Widgets - RTL */
.widget {
    text-align: right;
}

.widget-header {
    flex-direction: row-reverse;
}

.widget-icon {
    margin-left: 10px;
    margin-right: 0;
}

/* Stats Cards - RTL */
.stat-card {
    text-align: right;
}

.stat-icon {
    float: left;
}

.stat-content {
    text-align: right;
}

/* Pricing Cards - RTL */
.pricing-card {
    text-align: center; /* Keep centered for pricing */
}

.pricing-features {
    text-align: right;
}

.pricing-features li {
    padding-right: 25px;
    padding-left: 0;
}

.pricing-features li::before {
    right: 0;
    left: auto;
}

/* Team Cards - RTL */
.team-card {
    text-align: center; /* Keep centered for team cards */
}

.team-socials {
    flex-direction: row-reverse;
}

/* Portfolio Grid - RTL */
.portfolio-grid {
    direction: rtl;
}

.portfolio-item {
    text-align: right;
}

.portfolio-overlay {
    text-align: center; /* Keep centered for overlays */
}

/* Client Logos - RTL */
.client-logos {
    flex-direction: row-reverse;
}

/* Newsletter Form - RTL */
.newsletter-form {
    flex-direction: row-reverse;
}

.newsletter-input {
    text-align: right;
}

/* Map Container - RTL */
.map-info {
    right: 20px;
    left: auto;
    text-align: right;
}

/* Video Player Controls - RTL */
.video-controls {
    flex-direction: row-reverse;
}

.volume-slider {
    direction: ltr; /* Keep slider LTR */
}

.progress-bar {
    direction: ltr; /* Keep progress LTR */
}

/* Chat Interface - RTL */
.chat-container {
    direction: rtl;
}

.chat-message {
    text-align: right;
}

.chat-message.sent {
    margin-right: auto;
    margin-left: 20%;
    text-align: left;
}

.chat-message.received {
    margin-left: auto;
    margin-right: 20%;
    text-align: right;
}

.chat-input-group {
    flex-direction: row-reverse;
}

/* Calendar - RTL */
.calendar {
    direction: rtl;
}

.calendar-header {
    flex-direction: row-reverse;
}

.calendar-nav {
    flex-direction: row-reverse;
}

/* Stepper - RTL */
.stepper {
    flex-direction: row-reverse;
}

.step {
    flex-direction: row-reverse;
}

.step-number {
    margin-left: 10px;
    margin-right: 0;
}

.step-line {
    right: 50%;
    left: auto;
}

/* Tags - RTL */
.tags-container {
    flex-direction: row-reverse;
}

.tag {
    margin-left: 5px;
    margin-right: 0;
}

.tag-close {
    margin-right: 5px;
    margin-left: 0;
}

/* Chips - RTL */
.chip {
    flex-direction: row-reverse;
}

.chip-icon {
    margin-left: 5px;
    margin-right: 0;
}

.chip-close {
    margin-right: 5px;
    margin-left: 0;
}

/* Avatar Group - RTL */
.avatar-group {
    flex-direction: row-reverse;
}

.avatar {
    margin-left: -10px;
    margin-right: 0;
}

.avatar:first-child {
    margin-left: 0;
}

/* Blockquote - RTL */
blockquote {
    border-right: 4px solid var(--primary-color);
    border-left: none;
    padding-right: 20px;
    padding-left: 0;
    text-align: right;
}

/* Code Blocks - Keep LTR */
pre, code {
    direction: ltr;
    text-align: left;
}

/* Icons in Buttons - RTL */
.btn-icon-left {
    flex-direction: row-reverse;
}

.btn-icon-right {
    flex-direction: row-reverse;
}

/* Floating Action Button - RTL */
.fab {
    left: 20px;
    right: auto;
}

/* Notification Panel - RTL */
.notification-panel {
    right: auto;
    left: 0;
    text-align: right;
}

.notification-item {
    flex-direction: row-reverse;
    text-align: right;
}

.notification-icon {
    margin-left: 10px;
    margin-right: 0;
}

/* Search Results - RTL */
.search-results {
    text-align: right;
}

.search-result-item {
    flex-direction: row-reverse;
    text-align: right;
}

/* User Menu - RTL */
.user-menu {
    right: auto;
    left: 0;
    text-align: right;
}

.user-menu-item {
    flex-direction: row-reverse;
}

.user-menu-icon {
    margin-left: 10px;
    margin-right: 0;
}

/* Shopping Cart - RTL */
.cart-item {
    flex-direction: row-reverse;
    text-align: right;
}

.cart-image {
    margin-left: 15px;
    margin-right: 0;
}

.cart-actions {
    flex-direction: row-reverse;
}

/* Product Cards - RTL */
.product-card {
    text-align: right;
}

.product-rating {
    flex-direction: row-reverse;
}

.product-price {
    text-align: right;
}

/* Checkout Form - RTL */
.checkout-form {
    text-align: right;
}

.payment-methods {
    flex-direction: row-reverse;
}

.payment-method {
    flex-direction: row-reverse;
}

.payment-method input {
    margin-left: 10px;
    margin-right: 0;
}

/* Order Summary - RTL */
.order-summary {
    text-align: right;
}

.order-item {
    flex-direction: row-reverse;
    justify-content: space-between;
}

/* Invoice - RTL */
.invoice {
    direction: rtl;
    text-align: right;
}

.invoice-header {
    flex-direction: row-reverse;
}

.invoice-table {
    text-align: right;
}

.invoice-table th,
.invoice-table td {
    text-align: right;
}

/* Dashboard Layout - RTL */
.dashboard-layout {
    flex-direction: row-reverse;
}

.dashboard-sidebar {
    border-right: none;
    border-left: 1px solid #e5e7eb;
}

.dashboard-content {
    margin-left: 0;
    margin-right: 250px;
}

/* Settings Panel - RTL */
.settings-panel {
    text-align: right;
}

.setting-item {
    flex-direction: row-reverse;
    justify-content: space-between;
}

.toggle-switch {
    margin-left: 0;
    margin-right: auto;
}

/* Activity Feed - RTL */
.activity-feed {
    text-align: right;
}

.activity-item {
    flex-direction: row-reverse;
    text-align: right;
}

.activity-icon {
    margin-left: 15px;
    margin-right: 0;
}

/* Error Pages - RTL */
.error-page {
    text-align: center; /* Keep centered for error pages */
}

/* Print Styles - RTL */
@media print {
    body {
        direction: rtl;
    }
    
    .print-header {
        text-align: right;
    }
    
    .print-content {
        text-align: right;
    }
}

/* Accessibility - RTL */
.skip-link:focus {
    left: auto;
    right: 5px;
}

/* Custom Scrollbar - RTL */
::-webkit-scrollbar {
    /* Scrollbar doesn't need RTL adjustment */
}

/* Selection - RTL */
::selection {
    /* Selection doesn't need RTL adjustment */
}

/* Placeholder - RTL */
::placeholder {
    text-align: right;
}

/* Focus Visible - RTL */
:focus-visible {
    /* Focus styles don't need RTL adjustment */
}

/* Animations - RTL Specific */
@keyframes slideInRight {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

/* Override any LTR-specific animations */
.animate-slide-left {
    animation-name: slideInRight;
}

.animate-slide-right {
    animation-name: slideInLeft;
}

/* Final overrides for specific components that should remain LTR */
.no-rtl {
    direction: ltr !important;
    text-align: left !important;
}

/* Ensure numeric inputs remain LTR */
input[type="number"],
input[type="tel"] {
    direction: ltr;
    text-align: right;
}

/* Keep English text LTR when mixed with Arabic */
.en-text {
    direction: ltr;
    text-align: left;
    display: inline-block;
}

/* Specific fixes for your navbar and hero sections */
.navbar .nav-content {
    flex-direction: row-reverse;
}

.navbar .logo {
    flex-direction: row-reverse;
}

.navbar .nav-links {
    flex-direction: row-reverse;
}

/* Fix for mobile menu in RTL */
@media (max-width: 768px) {
    .nav-links {
        right: -100%;
        left: auto;
        transition: right 0.3s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
}

/* Ensure proper RTL for cookie banner and popups */
.cookie-banner {
    flex-direction: row-reverse;
}

.popup-box {
    direction: rtl;
    text-align: right;
}

/* Payment warning specific RTL */
#payment-warning .popup-box {
    direction: rtl;
    text-align: right;
}

#payment-warning .popup-box::before {
    margin: 4px auto 10px;
}

/* Ensure forms are properly RTL */
form {
    direction: rtl;
}

/* Keep certain UI elements centered */
.center-always {
    text-align: center !important;
    direction: ltr !important;
}
