/* ============================================================
   RTL / Arabic Language Support Styles
   ============================================================ */

.rtl-body {
  direction: rtl;
  text-align: right;
}

/* Text alignment overrides */
.rtl-body .text-left { text-align: right; }
.rtl-body .text-right { text-align: left; }

/* Icon positioning */
.rtl-body .fa-arrow-left { transform: scaleX(1); }
.rtl-body .fa-arrow-right { transform: scaleX(-1); }

/* Number formatting - keep LTR for numbers */
.stat-num,
.gpa-num,
.cal-day,
.rcta-num {
  direction: ltr;
  unicode-bidi: bidi-override;
}

/* Navigation active state indicator */
.rtl-body .nav-link.active::after {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

/* Mobile menu slides from right in RTL */
.rtl-body .mobile-menu {
  right: -100%;
  left: auto;
}
.rtl-body .mobile-menu.open {
  right: 0;
}

/* Mega menu anchor position */
.rtl-body .mega-menu {
  right: 50%;
  left: auto;
  transform: translateX(50%) translateY(-10px);
}
.rtl-body .nav-item:hover .mega-menu {
  transform: translateX(50%) translateY(0);
}

/* Search bar direction */
.rtl-body .search-form {
  direction: rtl;
}

/* Scroll indicator - back to top positioned on left in RTL */
.rtl-body .back-to-top {
  left: 30px;
  right: auto;
}

/* Accessibility panel - RTL opens from left */
.rtl-body .accessibility-panel {
  left: 0;
  right: auto;
  border-radius: 0 0 var(--radius-lg) 0;
}
.rtl-body .accessibility-panel button {
  text-align: right;
}

/* Language switcher margin */
.rtl-body .lang-switcher {
  margin-right: 0;
  margin-left: var(--spacing-sm);
}

/* Footer links arrow direction */
.rtl-body .footer-col a::before {
  content: '‹';
}
.rtl-body .footer-col a:hover {
  padding-right: 0;
  padding-left: 4px;
}

/* Input text direction */
.rtl-body input[type="search"],
.rtl-body input[type="email"],
.rtl-body input[type="text"],
.rtl-body textarea {
  direction: rtl;
  text-align: right;
}

/* Faculty card hover arrow direction */
.rtl-body .faculty-hover-arrow {
  left: var(--spacing-lg);
  right: auto;
  transform: translateX(10px);
}
.rtl-body .faculty-card:hover .faculty-hover-arrow {
  transform: translateX(0);
}

/* Ticker scroll direction for RTL */
.rtl-body .ticker-content {
  animation: tickerScrollRTL 30s linear infinite;
}
@keyframes tickerScrollRTL {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* Partners scroll direction */
.rtl-body .partners-track {
  animation: partnersScrollRTL 25s linear infinite;
}
@keyframes partnersScrollRTL {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* Mega col border direction */
.rtl-body .mega-col {
  border-left: none;
  border-right: 1px solid var(--gray-100);
}
.rtl-body .mega-col:first-child {
  border-right: none;
}

/* News grid direction */
.rtl-body .news-cat {
  right: auto;
  left: var(--spacing-md);
}

/* Hero card floats - mirror for RTL */
.rtl-body .card-float-1 { right: auto; left: -30px; }
.rtl-body .card-float-2 { right: auto; left: -40px; }
.rtl-body .card-float-3 { left: auto; right: -20px; }

/* Mobile sub-toggle flex direction */
.rtl-body .mobile-sub-toggle i.fa-chevron-down {
  margin-right: auto;
  margin-left: 0;
}

/* Quick links grid */
.rtl-body .quick-links-inner {
  direction: rtl;
}

/* Calendar date tag */
.rtl-body .cal-event.upcoming {
  border-right-width: 4px;
  border-left-width: 1px;
}

/* Map overlay centering */
.rtl-body .map-overlay {
  left: 50%;
  right: auto;
}

/* Footer bottom links */
.rtl-body .footer-bottom-inner {
  direction: rtl;
}

/* Search suggestions */
.search-suggestions {
  padding: var(--spacing-sm) 0;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 8px 16px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  font-size: var(--fs-sm);
  color: var(--gray-700);
}
.search-suggestion-item:hover { background: var(--gray-50); color: var(--primary-600); }
.search-suggestion-item i { color: var(--primary-400); font-size: var(--fs-xs); }
