/**
 * @file
 * KSU News Theme - RTL stylesheet for Arabic
 */

/* RTL specific styles for Arabic content */
[dir="rtl"] {
  /* Text alignment */
  text-align: right;

  /* Direction */
  direction: rtl;
}

/* RTL Layout adjustments */
[dir="rtl"] .layout-content-wrapper {
  flex-direction: row-reverse;
}

/* RTL Header adjustments */
[dir="rtl"] .header-top .container,
[dir="rtl"] .header-bottom .container {
  flex-direction: row-reverse;
}

/* RTL Navigation adjustments */
[dir="rtl"] .main-navigation ul {
  padding-right: 0;
  padding-left: 20px;
}

[dir="rtl"] .main-navigation li {
  margin-right: 0;
  margin-left: 15px;
}

/* RTL Content adjustments */
[dir="rtl"] .layout-content {
  padding-right: 0;
  padding-left: 20px;
}

/* RTL Footer adjustments */
[dir="rtl"] .site-footer .container {
  flex-direction: row-reverse;
}

/* RTL Form elements */
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select {
  text-align: right;
}

/* RTL Block adjustments */

/* RTL Alert region */
[dir="rtl"] .alerts-region .container {
  flex-direction: row-reverse;
}

/* RTL Pinned sections */
[dir="rtl"] .pinned-sections .container {
  flex-direction: row-reverse;
}

/* Arabic font stack */
[dir="rtl"] body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
  [dir="rtl"] .layout-content-wrapper {
    flex-direction: column;
  }

  [dir="rtl"] .layout-sidebar {
    margin-right: 0;
    order: 2;
  }

  [dir="rtl"] .layout-content {
    order: 1;
    padding-left: 0;
  }
}
