@import url('palette.css');
/* ---------- أساسيات ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-color: var(--brand-500) var(--brand-900);
}

html { height: 100%; overflow-x: hidden; }

body {
  margin: 0;
  height: 100%;
  min-height: 100vh;
  background: var(--brand-900);
  font-family: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

.ejs-backdrop {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  color: var(--white-solid);
  background: linear-gradient(
    180deg,
    var(--brand-700) 0%,
    var(--brand-800) 34%,
    var(--brand-800) 72%,
    var(--brand-900) 100%
  );
}

.shell {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1700px;
  margin-inline: auto;
  min-height: 100vh;
  min-height: 100dvh;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

img {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

/* شريط التمرير */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--brand-900);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-500);
  border-radius: 8px;
}

/* ==========================================================================
   1) الخلفية العامة
   ========================================================================== */
.ejs-backdrop {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  color: var(--white-solid);
  background: linear-gradient(
    180deg,
    var(--brand-700) 0%,
    var(--brand-800) 34%,
    var(--brand-800) 72%,
    var(--brand-900) 100%
  );
}

/* نقاط زخرفية أعلى الركن الأيسر تختفي تدريجياً */
  .ejs-dots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 430px;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(
      var(--info) 1.3px,
      transparent 1.3px
    );
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(
      ellipse 62% 55% at 18% 8%,
      var(--black-alpha-60) 0%,
      transparent 72%
    );
    mask-image: radial-gradient(
      ellipse 62% 55% at 18% 8%,
      var(--black-alpha-60) 0%,
      transparent 72%
    );
  }

.shell {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1700px;
  margin-inline: auto;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ==========================================================================
   2) الشبكة الرئيسية (نفس منطق تصميم الصورة الأصلية)
   ========================================================================== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .main {
    display: grid;
    grid-template-columns: minmax(420px, 485px) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "card header"
      "card hero";
  }
  /* ملاحظة: الصفحة dir=rtl لذا العمود الأول (card) يظهر يميناً
     والعمود الثاني (header + hero) يظهر يساراً — تماماً مثل الصورة الأصلية */
  .site-header {
    grid-area: header;
  }
  .card-zone {
    grid-area: card;
  }
  .hero-zone {
    grid-area: hero;
  }
}

/* ==========================================================================
   3) الهيدر (اللوجو — أعلى اليسار)
   ========================================================================== */
.site-header {
  padding: 16px 16px 0;
}

.header-inner {
  display: flex;
  width: 100%;
  justify-content: flex-end; /* في RTL يدفع اللوجو لليسار */
}

.logo-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
  direction: ltr;
}

.logo-img {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 4px 16px var(--black-alpha-45));
}

.logo-divider {
  display: none;
  width: 1px;
  background: var(--white-alpha-25);
}

.logo-title {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--white-solid);
}

.logo-title .one {
  color: var(--brand-400);
}

.logo-subtitle {
  margin: 6px 0 0;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--white-alpha-70);
}

@media (min-width: 640px) {
  .site-header {
    padding-left: 32px;
    padding-right: 32px;
  }
  .logo-img {
    width: 56px;
    height: 56px;
  }
  .logo-divider {
    display: block;
    height: 44px;
  }
  .logo-title {
    font-size: 25px;
  }
  .logo-subtitle {
    font-size: 9.5px;
  }
}

@media (min-width: 1024px) {
  .site-header {
    padding-top: 36px;
    padding-right: 56px;
    padding-left: 120px;
  }
  .logo-img {
    width: 74px;
    height: 74px;
  }
  .logo-divider {
    height: 52px;
  }
  .logo-title {
    font-size: 28px;
  }
  .logo-subtitle {
    font-size: 10.5px;
  }
}

/* ==========================================================================
   4) عمود كارت تسجيل الدخول (يمين الصفحة)
   ========================================================================== */
.card-zone {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 12px 24px;
}

.card-inner {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .card-zone {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (min-width: 1024px) {
  .card-zone {
    align-items: flex-start;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-right: 32px;
    padding-left: 20px;
  }
}

/* ==========================================================================
   5) العنوان الرئيسي (نسخة الجوال أعلى الكارت + نسخة الديسكتوب في اليسار)
   ========================================================================== */
.headline {
  text-align: center;
}

.headline h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.6;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.headline-accent {
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
}

.accent-l,
.accent-r {
  height: 2px;
  width: 58px;
  border-radius: 999px;
}

.accent-l {
  background: linear-gradient(
    to left,
    rgba(var(--brand-500-rgb, 31, 117, 200), 0.95) 0%,
    rgba(var(--brand-500-rgb, 31, 117, 200), 0) 100%
  );
}

.accent-r {
  background: linear-gradient(
    to right,
    rgba(var(--brand-500-rgb, 31, 117, 200), 0.95) 0%,
    rgba(var(--brand-500-rgb, 31, 117, 200), 0) 100%
  );
}

.accent-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--danger);
  box-shadow: 0 0 10px var(--danger);
}

.mobile-headline {
  display: block;
  margin-bottom: 24px;
}

.desktop-headline {
  display: none;
}

@media (min-width: 640px) {
  .headline h1 {
    font-size: 26px;
  }
}

@media (min-width: 1024px) {
  .headline h1 {
    font-size: 29px;
  }
  .mobile-headline {
    display: none;
  }
  .desktop-headline {
    display: block;
    margin-top: 112px;
  }
}

@media (min-width: 1280px) {
  .desktop-headline {
    margin-top: 128px;
  }
}

/* ==========================================================================
   6) كارت تسجيل الدخول الأبيض
   ========================================================================== */
.login-card {
  background: var(--white-solid);
  border-radius: 24px;
  padding: 16px 20px 24px;
  box-shadow: 0 28px 70px -16px rgba(1, 10, 35, 0.65);
}

@media (min-width: 640px) {
  .login-card {
    padding-left: 36px;
    padding-right: 36px;
  }
}

@media (min-width: 1024px) {
  .login-card {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* ---------- اختيار اللغة ---------- */
.lang-row {
  position: relative;
  display: flex;
  justify-content: flex-start; /* في RTL: أعلى يمين الكارت */
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 0;
  background: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  transition: color 0.15s ease;
}

.lang-btn:hover {
  color: #334155;
}

.lang-btn svg {
  width: 16px;
  height: 16px;
}

.lang-btn .chev {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.lang-row.open .chev {
  transform: rotate(180deg);
}

.lang-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
}

.lang-row.open .lang-backdrop {
  display: block;
}

.lang-menu {
  position: absolute;
  top: 36px;
  right: 0;
  z-index: 20;
  display: none;
  width: 128px;
  padding: 4px 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.lang-row.open .lang-menu {
  display: block;
}

.lang-option {
  display: block;
  width: 100%;
  padding: 6px 12px;
  border: 0;
  background: none;
  text-align: right;
  font-size: 13px;
  color: #475569;
  transition: background 0.12s ease;
}

.lang-option:hover {
  background: #f8fafc;
}

.lang-option.selected {
  background: #f8fafc;
  font-weight: 700;
  color: #2563eb;
}

/* ---------- رأس الكارت (اللوجو + مرحباً بعودتك) ---------- */
.card-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 8px;
}

.card-logo {
  width: 56px;
  height: 56px;
}

.card-brand {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--slate-800);
}

.card-brand .one {
  color: var(--brand-500);
}

.card-welcome {
  margin: 1px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-800);
}

.card-sub {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--slate-500);
}

@media (min-width: 1024px) {
  .card-logo {
    width: 72px;
    height: 72px;
  }
}

/* ---------- رسالة نجاح (session status) ---------- */
.status-box {
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid var(--success-border);
  border-radius: 10px;
  background: var(--success-light);
  color: var(--success-text);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* ==========================================================================
   7) الفورم
   ========================================================================== */
.login-form {
  margin-top: 12px;
}

.field + .field {
  margin-top: 10px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate-700);
}

.input-wrap {
  position: relative;
}

.ejs-input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 44px 0 16px; /* يمين: مساحة الأيقونة — يسار: عادي (RTL) */
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--slate-50);
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-700);
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease,
    box-shadow 0.15s ease;
}

/* حقل كلمة المرور: مساحة يمين للأيقونة ويسار لزر العين */
.ejs-input--password {
  padding-right: 44px;
  padding-left: 44px;
}

.ejs-input::placeholder {
  color: var(--slate-400);
}

.ejs-input:focus {
  border-color: var(--brand-500);
  background: var(--white-solid);
  box-shadow: 0 0 0 4px rgba(var(--brand-500-rgb, 31, 117, 200), 0.1);
}

.input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--slate-400);
  pointer-events: none;
}

/* رسالة خطأ تحت الحقل (من @error) */
.field-error {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--danger-text);
}

.ejs-input--national-id {
  text-align: center;
  letter-spacing: 2px;
  font-weight: bold;
}

/* تنبيهات عامة (من $errors->any() في اللayoout) */
.auth-alert {
  margin: 16px 0;
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.auth-alert-error {
  --alert-bg: linear-gradient(135deg, rgba(var(--danger-rgb), 0.15) 0%, rgba(var(--danger-600-rgb), 0.1) 100%);
  --alert-border: rgba(var(--danger-rgb), 0.3);
  --alert-color: var(--danger-text);
  --alert-box-shadow: 0 4px 16px rgba(var(--danger-rgb), 0.2);
  background: var(--alert-bg);
  border: 1px solid var(--alert-border);
  color: var(--alert-color);
  box-shadow: var(--alert-box-shadow);
}

.auth-alert-error i {
  margin-top: 2px;
  color: var(--danger-text);
  font-size: 18px;
  flex-shrink: 0;
}

.auth-alert-error p,
.auth-alert-error ul {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--danger-text);
}

.auth-alert-info {
  background: linear-gradient(135deg, rgba(var(--info-rgb), 0.15) 0%, rgba(var(--info-600-rgb), 0.1) 100%);
  border: 1px solid rgba(var(--info-rgb), 0.3);
  color: var(--info-text);
  box-shadow: 0 4px 16px rgba(var(--info-rgb), 0.2);
}

.auth-alert-info i {
  margin-top: 2px;
  color: var(--info-text);
  font-size: 18px;
  flex-shrink: 0;
}

.auth-alert-info p {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--info-text);
}

.error-list {
  margin: 0;
  padding: 0 0 0 20px;
  list-style: none;
  font-size: 13px;
  line-height: 1.7;
  color: var(--danger-text);
}

.error-list li {
  margin: 6px 0;
  position: relative;
}

.error-list li::before {
  content: "•";
  color: var(--danger-text);
  font-weight: bold;
  position: absolute;
  left: -18px;
}

.error-list li {
  margin: 4px 0;
}

/* زر إظهار/إخفاء كلمة المرور */
.eye-btn {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  padding: 6px;
  border: 0;
  background: none;
  border-radius: 6px;
  color: var(--slate-400);
  transition: color 0.15s ease;
}

.eye-btn:hover {
  color: var(--slate-600);
}

.eye-btn:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

.eye-btn svg {
  width: 18px;
  height: 18px;
}

.eye-btn .icon-eye-off {
  display: none;
}

.eye-btn.active .icon-eye {
  display: none;
}

.eye-btn.active .icon-eye-off {
  display: block;
}

/* تذكرني + نسيت كلمة المرور */
.row-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.checkbox-box {
  position: relative;
  flex-shrink: 0;
  display: flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--slate-300);
  border-radius: 5px;
  background: var(--white-solid);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.checkbox-box svg {
  width: 12px;
  height: 12px;
  color: var(--white-solid);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.check input:checked ~ .checkbox-box {
  border-color: var(--brand-500);
  background: var(--brand-500);
}

.check input:checked ~ .checkbox-box svg {
  opacity: 1;
}

.check input:focus-visible ~ .checkbox-box {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

.check-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-700);
}

.forgot-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-500);
  text-decoration: none;
  background: none;
  border: 0;
  transition: color 0.15s ease;
}

.forgot-link:hover {
  color: var(--brand-400);
}

/* زر تسجيل الدخول الأزرق */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  margin-top: 16px;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--white-solid);
  background-image: linear-gradient(
    180deg,
    var(--btn-primary) 0%,
    var(--btn-primary-2) 45%,
    var(--btn-primary-3) 100%
  );
  box-shadow: 0 10px 25px -8px rgba(18, 74, 183, 0.55);
  transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.submit-btn:hover {
  background-image: linear-gradient(
    180deg,
    var(--btn-hover-1) 0%,
    var(--btn-hover-2) 45%,
    var(--btn-hover-3) 100%
  );
  box-shadow: 0 12px 28px -8px rgba(18, 74, 183, 0.7);
}

.submit-btn:active {
  transform: scale(0.99);
}

.submit-btn:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.submit-btn .arrow {
  width: 19px;
  height: 19px;
}

.submit-btn .loading-text {
  display: none;
}

.submit-btn.loading .loading-text {
  display: inline;
}

.submit-btn.loading .default-text {
  display: none;
}

.submit-btn.loading .arrow {
  display: none;
}

.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--white-alpha-40);
  border-top-color: var(--white-solid);
  border-radius: 50%;
  animation: ejs-spin 0.7s linear infinite;
}

.submit-btn.loading .spinner {
  display: block;
}

@keyframes ejs-spin {
  to {
    transform: rotate(360deg);
  }
}

/* الفاصل «أو» */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider span {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--slate-500);
}

/* زر الدخول كزائر */
.guest-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white-solid);
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-700);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease,
    transform 0.1s ease;
}

.guest-btn:hover {
  border-color: var(--slate-300);
  background: var(--slate-50);
}

.guest-btn:active {
  transform: scale(0.99);
}

.guest-btn svg {
  width: 18px;
  height: 18px;
  color: var(--brand-500);
}

/* صندوق الأمان أسفل الفورم */
.security-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--slate-100);
}

.security-icon {
  flex-shrink: 0;
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-100);
}

.security-icon svg {
  width: 21px;
  height: 21px;
  color: var(--brand-500);
}

.security-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-800);
}

.security-sub {
  margin: 2px 0 0;
  font-size: 11.5px;
  line-height: 1.375;
  color: var(--slate-500);
}

/* ==========================================================================
   8) الجزء الأيسر: مبنى المدرسة + أيقونات الفئات
   ========================================================================== */
.hero-zone {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 16px 16px;
}

@media (min-width: 640px) {
  .hero-zone {
    padding-left: 32px;
    padding-right: 32px;
    padding-bottom: 20px;
  }
}

@media (min-width: 1024px) {
  .hero-zone {
    padding-bottom: 24px;
    padding-right: 24px;
    padding-left: 0;
  }
}

.building-zone {
  position: relative;
  margin-top: 20px;
}

@media (min-width: 1024px) {
  .building-zone {
    margin-top: 0;
  }
}

/* توهج إشعاعي خلف المبنى */
.building-glow {
  position: absolute;
  z-index: 0;
  top: -112px;
  bottom: -48px;
  left: -80px;
  right: -80px;
  pointer-events: none;
  background: radial-gradient(
    ellipse 55% 42% at 32% 60%,
    rgba(var(--brand-500-rgb, 31, 117, 200), 0.42) 0%,
    rgba(var(--brand-600-rgb, 4, 17, 43), 0.22) 38%,
    rgba(var(--brand-800-rgb, 2, 10, 24), 0.1) 62%,
    transparent 78%
  );
}

/* حركة الطفو اللطيفة */
.building-float {
  position: relative;
  z-index: 10;
  animation: ejs-float 7s ease-in-out infinite;
}

.building-img {
  width: 100%;
  max-height: 65vh;
  height: auto;
  margin-inline: auto;
  user-select: none;
  -webkit-user-drag: none;
  filter:
    drop-shadow(0 30px 50px var(--black-alpha-60))
    drop-shadow(0 0 45px rgba(var(--brand-500-rgb), 0.4))
    drop-shadow(0 0 80px rgba(var(--emerald-rgb, 8, 155, 129), 0.25));
  -webkit-mask-image:
    linear-gradient(to right, transparent, black 15%, black 85%, transparent),
    linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-composite: intersect;
  mask-image:
    linear-gradient(to right, transparent, black 15%, black 85%, transparent),
    linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  mask-composite: intersect;
  position: relative;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.building-img::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  bottom: -2px;
  left: -2px;
  border-radius: 24px;
  border: 1px solid var(--white-alpha-15);
  box-shadow:
    inset 0 0 60px rgba(var(--brand-500-rgb), 0.15),
    inset 0 0 120px rgba(var(--emerald-rgb, 8, 155, 129), 0.1);
  pointer-events: none;
}

@keyframes ejs-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .building-float {
    animation: none;
  }
}

/* صف أيقونات الفئات */
.audience-row {
  direction: ltr;
  position: relative;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  max-width: 720px;
  margin: -30px auto 0;
  margin-bottom: 10px;
}

.audience-item {
  display: flex;
  width: 120px;
  flex-direction: column;
  align-items: center;
}

.audience-icon {
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: transform 0.3s ease;
}

.audience-item:hover .audience-icon {
  transform: translateY(-6px);
}

.audience-icon svg {
  width: 30px;
  height: 30px;
  color: var(--white-solid);
}

.audience-icon--students {
  background: var(--students);
  box-shadow: 0 12px 28px -10px rgba(var(--students-rgb), 0.87),
    0 0 0 4px var(--white-alpha-06);
}

.audience-icon--teachers {
  background: var(--teachers);
  box-shadow: 0 12px 28px -10px rgba(var(--teachers-rgb), 0.87),
    0 0 0 4px var(--white-alpha-06);
}

.audience-icon--parents {
  background: var(--parents);
  box-shadow: 0 12px 28px -10px rgba(var(--parents-rgb), 0.87),
    0 0 0 4px var(--white-alpha-06);
}

.audience-icon--admins {
  background: var(--admins);
  box-shadow: 0 12px 28px -10px rgba(var(--admins-rgb), 0.87),
    0 0 0 4px var(--white-alpha-06);
}

.audience-ar {
  margin: 12px 0 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white-solid);
}

.audience-en {
  margin: 3px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: var(--white-alpha-60);
}

@media (min-width: 640px) {
  .audience-row {
    gap: 48px;
    margin-top: -44px;
  }
  .audience-item {
    width: 130px;
  }
  .audience-icon {
    width: 72px;
    height: 72px;
  }
  .audience-icon svg {
    width: 34px;
    height: 34px;
  }
  .audience-ar {
    font-size: 16px;
  }
  .audience-en {
    font-size: 13px;
  }
}

@media (min-width: 1024px) {
  .audience-row {
    gap: 88px;
    margin-top: -48px;
  }
  .audience-item {
    width: 150px;
  }
  .audience-icon {
    width: 84px;
    height: 84px;
  }
  .audience-icon svg {
    width: 38px;
    height: 38px;
  }
  .audience-ar {
    font-size: 17px;
  }
  .audience-en {
    font-size: 14px;
  }
}

/* شاشات صغيرة جداً: تصغير العناصر حتى لا تُقص */
@media (max-width: 479px) {
  .audience-item {
    width: 72px;
  }
  .audience-row {
    gap: 14px;
  }
}

@media (max-width: 359px) {
  .audience-item {
    width: 64px;
  }
  .audience-row {
    gap: 10px;
  }
}

/* ==========================================================================
   9) الفوتر
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  padding: 12px 16px 16px;
}

@media (min-width: 640px) {
  .site-footer {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 1024px) {
  .site-footer {
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 20px;
  }
}

.footer-inner {
  display: flex;
  max-width: 1500px;
  margin-inline: auto;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

@media (min-width: 1024px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
  }
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 1024px) {
  .footer-nav {
    gap: 24px;
  }
}

.footer-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-nav a svg {
  width: 16px;
  height: 16px;
  color: #8ab4f8;
}

.footer-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
}

.footer-copyright {
  order: 3;
  margin: 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-secure {
  order: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (min-width: 1024px) {
  .footer-copyright {
    order: 2;
  }
  .footer-secure {
    order: 3;
  }
}

.secure-badge {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #123a75;
  box-shadow: 0 0 0 1px rgba(76, 136, 247, 0.4);
}

.secure-badge svg {
  width: 14px;
  height: 14px;
  color: #7fb0f9;
}

.secure-texts {
  text-align: right;
  line-height: 1.25;
}

.secure-ar {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.secure-en {
  margin: 2px 0 0;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: rgba(255, 255, 255, 0.45);
}

/* EJS One header/footer override — شفافية كاملة */
.site-header,
header.site-header,
.site-header.scrolled,
header.site-header.scrolled,
.site-footer,
footer.site-footer {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Guardian/Administration icon links — hover applies to icon only */
.audience-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.audience-icon-link .audience-icon {
  transition: all 0.3s ease;
  cursor: pointer;
}

.audience-icon-link:hover .audience-icon {
  color: var(--brand-500);
  transform: scale(1.15);
}

/* العبارة في وسط صورة المبنى الخلفية */
.building-center-tagline {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  pointer-events: none;
  text-align: center;
  width: 100%;
}

.building-center-tagline h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  color: var(--white-solid);
  text-shadow: 0 6px 32px rgba(0, 0, 0, 0.9), 0 0 60px rgba(var(--brand-500-rgb), 0.7);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* الديكور تحت العبارة: خط أزرق مع نقطة حمراء في المنتصف */
.building-center-tagline .tagline-accent {
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
}

.building-center-tagline .tagline-accent .accent-l,
.building-center-tagline .tagline-accent .accent-r {
  height: 2px;
  width: 58px;
  border-radius: 999px;
}

.building-center-tagline .tagline-accent .accent-l {
  background: linear-gradient(
    to left,
    var(--brand-400) 0%,
    rgba(var(--brand-400-rgb, 74, 143, 212), 0) 100%
  );
}

.building-center-tagline .tagline-accent .accent-r {
  background: linear-gradient(
    to right,
    var(--brand-400) 0%,
    rgba(var(--brand-400-rgb, 74, 143, 212), 0) 100%
  );
}

.building-center-tagline .tagline-accent .accent-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--danger);
  box-shadow: 0 0 10px var(--danger);
}

/* خطين السما المنحنيين (sky arcs) فوق صورة المبنى */
.sky-arc {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(120, 180, 255, 0.35);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  filter: blur(1px);
  opacity: 0.5;
  top: 5%;
  left: 5%;
  transform: rotate(-20deg);
  transform-origin: center;
}

.sky-arc--one {
  width: 50%;
  height: 50%;
}

.sky-arc--two {
  width: 35%;
  height: 35%;
  top: 20%;
  left: 20%;
  border-top-color: rgba(160, 200, 255, 0.4);
}

@media (max-width: 768px) {
  .building-center-tagline h2 {
    font-size: 24px;
  }
  .building-center-tagline .tagline-accent .accent-l,
  .building-center-tagline .tagline-accent .accent-r {
    width: 40px;
  }
  .sky-arc--one {
    width: 55%;
    height: 55%;
  }
  .sky-arc--two {
    width: 40%;
    height: 40%;
  }
}
