/*
 * Parabola Academy — language toggle + right-to-left (Arabic) styles.
 * Loaded on the PUBLIC site only. Default English is completely unaffected;
 * everything below the `html.pa-ar` rules applies only once Arabic is active.
 */

/* ---------- The Eng / عربى pill (sits in the top strip) ---------- */
.pa-lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .10);
  vertical-align: middle;
}
.pa-lang button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 3px 11px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
  letter-spacing: .3px;
  transition: background .15s ease, color .15s ease;
}
.pa-lang button.on { background: #f7b731; color: #07162f; }
.pa-lang button:not(.on):hover { background: rgba(255, 255, 255, .18); }

/* ---------- Right-to-left mode (Arabic) ---------- */
html.pa-ar { direction: rtl; }
html.pa-ar body {
  text-align: right;
  font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}
/* Arabic reads a touch larger for comfort */
html.pa-ar body { font-size: 1.02em; line-height: 1.75; }

/* The toggle itself must never flip or translate */
.pa-lang, .pa-lang * { direction: ltr; }

/* Keep brand/exam acronyms (NEET, IIT-JEE, ISO) and the logo rendering LTR
   inside an RTL page so they don't reverse. */
html.pa-ar .brand, html.pa-ar .mono { direction: ltr; }
