/* RTL Styles for Arabic Language */

/* Base RTL adjustments */
html[lang="ar"],
body.lang-ar {
  direction: rtl;
  text-align: right;
}

/* Navigation */
.nav-logo {
  flex-direction: row-reverse;
}

.nav-links:not(.open) {
  flex-direction: row-reverse;
}

.lang-dropdown-toggle {
  flex-direction: row-reverse;
}

.lang-arrow {
  margin-right: 4px;
  margin-left: 0;
}

/* Hero */
.hero-content {
  /* text-align: right; */
}

/* Heritage Cards */
.heritage-card-body {
  text-align: right;
}
.reveal.visible{
  text-align: center;
}

/* Timeline */
.timeline-item {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 40px;
  margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 40px;
  margin-right: 0;
}

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

.section-title {
  /* text-align: right; */
}

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

.update-tip {
  margin-left: 0;
  margin-right: 20px;
}

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

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

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

/* Footer */
.footer-grid {
  text-align: right;
}

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

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

/* Heritage Scroll Navigation */
.heritage-nav-prev {
  left: auto;
  right: 12px;
}

.heritage-nav-next {
  right: auto;
  left: 12px;
}

/* Video Navigation */
.video-nav-prev {
  left: auto;
  right: 12px;
}

.video-nav-next {
  right: auto;
  left: 12px;
}

/* Detail Page Navigation */
.detail-related-wrapper #related-prev {
  left: auto;
  right: 12px;
}

.detail-related-wrapper #related-next {
  right: auto;
  left: 12px;
}

/* Language Dropdown */
.lang-dropdown-menu {
  left: 0;
  right: auto;
}

/* Section Headers */
.section-header {
  text-align: right;
}

/* About Section */
.about-grid {
  grid-template-columns: 1fr 1fr;
}

.about-text {
  order: 2;
}

.about-image {
  order: 1;
}

/* Scroll Animation */
.reveal {
  text-align: right;
}

/* Mobile Responsive RTL */
@media (max-width: 768px) {
  body.lang-ar .nav-links.open {
    flex-direction: column;
    align-items: center;
    /* justify-content: center; */
  }
  
  body.lang-ar .nav-links.open li {
    text-align: center;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-text,
  .about-image {
    order: unset;
  }
  
  .timeline-item .timeline-content {
    margin-right: 30px;
    margin-left: 0;
  }
  
  .footer-bottom {
    flex-direction: column;
  }
  
  .footer-lang {
    flex-direction: row;
    justify-content: center;
  }
}