/**
 * Nest Bakirkoy - RTL Stylesheet
 * For Arabic and Persian languages
 */

/* Base RTL Adjustments */
body {
    direction: rtl;
    font-family: 'Noto Kufi Arabic', 'Vazirmatn', 'Montserrat', sans-serif;
    line-height: 1.9;
}

/* Navigation */
.logo-bakirkoy {
    margin-left: 0;
    margin-right: 0.3rem;
}

.nav-links a::after {
    left: auto;
    right: 0;
}

/* Hero Section */
.hero-content {
    grid-template-columns: 1fr 1.2fr;
}

.hero-text {
    order: 2;
}

.hero-image {
    order: 1;
}

.hero-image::before {
    right: auto;
    left: -20px;
}

.hero-image-badge {
    right: auto;
    left: 2rem;
}

.stat {
    text-align: right;
}

/* About Section */
.about-text p:first-of-type::first-letter {
    float: right;
    padding-right: 0;
    padding-left: 1rem;
}

/* Location Section */
.highlight-item {
    flex-direction: row-reverse;
}

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

/* Timeline Section */
.timeline-left {
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-left {
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-right {
    text-align: left;
}

/* Contact Section */
.contact-item {
    flex-direction: row-reverse;
}

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

/* Footer */
.footer-tagline {
    margin-left: 0;
    padding-left: 0;
    margin-right: 1rem;
    padding-right: 1rem;
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* Lightbox */
.lightbox-prev {
    left: auto;
    right: -70px;
}

.lightbox-next {
    right: auto;
    left: -70px;
}

/* Responsive RTL Adjustments */
@media (max-width: 992px) {
    .lang-selector {
        right: auto;
        left: 1rem;
    }
}

@media (max-width: 768px) {
    .footer-tagline {
        border-right: none;
        margin-right: 0;
        padding-right: 0;
    }

    .lightbox-prev {
        right: 10px;
        left: auto;
    }

    .lightbox-next {
        left: 10px;
        right: auto;
    }

    .timeline-left,
    .timeline-right {
        text-align: right !important;
    }
}

/* Chat Widget RTL */
.chat-widget {
    right: auto;
    left: 2rem;
}

.chat-window {
    right: auto;
    left: 0;
}

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

.chat-message.user {
    align-self: flex-start;
}

.chat-message.bot {
    align-self: flex-end;
}

.chat-message.user .message-content {
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 4px;
}

.chat-message.bot .message-content {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 4px;
}

.chat-send svg {
    transform: scaleX(-1);
}

@media (max-width: 480px) {
    .chat-widget {
        left: 1rem;
        right: auto;
    }
}
