/* RTL overrides for Learn for Sudan child theme */

/* Flip layout directions for RTL on desktop - handled naturally by direction: rtl */
.l4s-footer-grid { direction: rtl; }
.l4s-stat-card   { direction: rtl; }
.l4s-hero-content { direction: rtl; }

/* Ensure Arabic mission/services section is perfectly right-aligned on all screen sizes */
body.lang-ar .l4s-mission-content {
  text-align: right !important;
}
body.lang-ar .l4s-mission-content .l4s-section-title {
  text-align: right !important;
}
body.lang-ar .l4s-mission-text {
  text-align: right !important;
}
body.lang-ar .l4s-feature-list {
  align-items: flex-start !important;
}
body.lang-ar .l4s-feature-list li {
  text-align: right !important;
  justify-content: flex-start !important;
  flex-direction: row !important; /* Keep checkmark on the right of the list item line */
}
body.lang-ar .l4s-mission-content .l4s-btn {
  margin-right: 0 !important;
  margin-left: auto !important;
  display: inline-flex !important;
}

/* Text alignment on desktop */
@media (min-width: 769px) {
  .l4s-footer-links { text-align: right; }
  .l4s-footer-col h4 { text-align: right; }
}

/* Social links in RTL */
.l4s-social-links { flex-direction: row; }

/* Fix button icon order in RTL */
.l4s-btn svg,
.l4s-btn .dashicon { order: 1; }

/* News search bar RTL alignment overrides */
body.rtl .l4s-news-search-icon,
body.lang-ar .l4s-news-search-icon {
  right: 0.75rem !important;
  left: auto !important;
}
body.rtl .l4s-news-search-input,
body.lang-ar .l4s-news-search-input {
  padding: 0.5rem 2.5rem 0.5rem 1rem !important;
}
