/* ==========================================================================
   SIDS PRO — الطبقة الموحدة للتصميم والحركة
   الجمعية السودانية للتصميم الداخلي

   تُحمَّل هذه الطبقة آخر ملف CSS في كل الصفحات، وهي مسؤولة عن:
   1) توحيد الخطوط والألوان ودقة العرض
   2) المؤثرات الحركية (ظهور تدريجي، ميل البطاقات، لمعان الأزرار ...)
   3) شريط التقدم، زر العودة للأعلى، الهيرو الجديد للصفحة الرئيسية
   4) إمكانية الوصول (تركيز لوحة المفاتيح، تقليل الحركة)
   ========================================================================== */

/* ---------- 1) الرموز: ألوان وخطوط ومقاسات ---------- */
:root {
  /* العلامة التجارية (مطابقة لـ brand.css) */
  --sx-ink: #112e4e;
  --sx-forest: #0f2a47;
  --sx-deep: #0b2038;
  --sx-emerald: #1c4670;
  --sx-leaf: #2c445d;
  --sx-green: #c9962b;
  --sx-lime: #c9962b;
  --sx-mist: #e9eef5;
  --sx-paper: #f3f5f8;
  --sx-white: #ffffff;
  /* نصوص (تباين WCAG AA على الخلفيات الفاتحة) */
  --sx-text: #14233a;
  --sx-text-2: #2c3e55;
  --sx-muted: #52647a;
  /* خطوط */
  --sx-font: "Cairo", "Noto Kufi Arabic", "Segoe UI", Tahoma, "Noto Sans Arabic",
    "Helvetica Neue", Arial, system-ui, sans-serif;
  --sx-font-latin: "Inter", "Cairo", "Segoe UI", system-ui, sans-serif;
  /* حركة وعمق */
  --sx-ease: cubic-bezier(0.22, 0.9, 0.3, 1);
  --sx-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --sx-shadow-sm: 0 2px 10px -2px rgba(17, 46, 78, 0.12);
  --sx-shadow: 0 14px 34px -16px rgba(17, 46, 78, 0.35);
  --sx-shadow-lg: 0 30px 60px -24px rgba(17, 46, 78, 0.45);
  --sx-glow: 0 0 0 4px rgba(201, 150, 43, 0.25);
  --sx-radius: 1.25rem;
  --sx-nav-h: 5rem;
}

/* ---------- 2) الأساسيات والخطوط ---------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
body {
  font-family: var(--sx-font);
  color: var(--sx-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-synthesis: none;
  font-variant-ligatures: common-ligatures contextual;
  line-height: 1.7;
  overflow-x: hidden;
}
button, input, select, textarea, optgroup {
  font-family: inherit;
}
/* الأرقام اللاتينية والروابط والبريد تُعرض بخط Inter الواضح */
[dir="ltr"], .sx-latin, a[href^="mailto:"], a[href^="tel:"], input[type="email"],
input[type="tel"], input[type="url"], input[type="password"] {
  font-family: var(--sx-font-latin), var(--sx-font);
}
html[lang="en"] body, html[lang="en"] .font-arabic {
  font-family: var(--sx-font-latin);
  line-height: 1.6;
}
/* العناوين: تباعد أسطر مريح للعربية */
h1, h2, h3, h4 { line-height: 1.35; letter-spacing: 0; text-wrap: balance; }
p, li { text-wrap: pretty; }
/* منع المقاسات الصغيرة جداً في العربية */
.text-xs { font-size: 0.8125rem !important; line-height: 1.55 !important; }
small { font-size: 0.8125rem; }
img { max-width: 100%; height: auto; }
img[width][height] { height: auto; }
::selection { background: var(--sx-lime); color: var(--sx-deep); }
.sx-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* شريط تمرير بألوان العلامة */
html { scrollbar-width: thin; scrollbar-color: var(--sx-emerald) #e3e9f2; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #e3e9f2; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--sx-emerald), var(--sx-ink));
  border-radius: 10px; border: 2px solid #e3e9f2;
}
::-webkit-scrollbar-thumb:hover { background: var(--sx-ink); }

/* ---------- 3) تركيز لوحة المفاتيح (إمكانية الوصول) ---------- */
:focus-visible {
  outline: 3px solid var(--sx-green);
  outline-offset: 3px;
  border-radius: 6px;
}
nav :focus-visible, .sdis-bg-footer :focus-visible, footer :focus-visible, .hero :focus-visible {
  outline-color: var(--sx-lime);
}
.sx-skip {
  position: fixed; top: -100px; inset-inline-start: 1rem; z-index: 100000;
  background: var(--sx-ink); color: #fff; padding: 0.7rem 1.1rem; border-radius: 0 0 0.8rem 0.8rem;
  font-weight: 700; text-decoration: none; transition: top 0.25s var(--sx-ease);
}
.sx-skip:focus { top: 0; }

/* ---------- 4) شريط التقدم أعلى الصفحة ---------- */
.sx-progress {
  position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 100001;
  background: transparent; pointer-events: none;
}
.sx-progress > i {
  display: block; height: 100%; width: 100%;
  transform-origin: right center; transform: scaleX(0);
  background: linear-gradient(90deg, var(--sx-lime), var(--sx-green), var(--sx-emerald));
  box-shadow: 0 0 10px rgba(201, 150, 43, 0.65);
}
html[dir="ltr"] .sx-progress > i { transform-origin: left center; }

/* ---------- 5) شريط التنقل ---------- */
nav.fixed {
  will-change: background, box-shadow;
  transition: background-color 0.4s var(--sx-ease), box-shadow 0.4s var(--sx-ease),
    backdrop-filter 0.4s var(--sx-ease), transform 0.45s var(--sx-ease);
}
nav.sheikan-nav-scrolled, nav.sdis-nav-light.sheikan-nav-scrolled {
  background: rgba(255, 255, 255, 0.86) !important;
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 rgba(17, 46, 78, 0.08), 0 12px 28px -18px rgba(17, 46, 78, 0.4) !important;
}
nav.sx-nav-hidden { transform: translateY(-100%); }
nav .sdis-logo-white, nav .sdis-logo-color { transition: height 0.35s var(--sx-ease); }
nav.sheikan-nav-scrolled .sdis-logo-color, nav.sheikan-nav-scrolled .sdis-logo-white { height: 3.9rem !important; }
/* أزرار القائمة: خط سفلي متحرك */
nav .lg\:flex > button, nav .lg\:flex > .sdis-dd > button {
  position: relative; font-weight: 600; letter-spacing: 0;
}
nav .lg\:flex > button:not(.bg-green-600)::after,
nav .lg\:flex > .sdis-dd > button::after {
  content: ""; position: absolute; inset-inline: 22%; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--sx-green); transform: scaleX(0); transition: transform 0.35s var(--sx-ease);
}
nav .lg\:flex > button:hover::after, nav .lg\:flex > .sdis-dd:hover > button::after { transform: scaleX(1); }
/* الصفحة الحالية */
nav .bg-green-600, nav button[aria-current="page"] {
  background: linear-gradient(135deg, var(--sx-ink), var(--sx-emerald)) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px -8px rgba(17, 46, 78, 0.7);
}
/* القوائم المنسدلة */
.sdis-dd-box {
  border-radius: 1rem !important; border: 1px solid rgba(17, 46, 78, 0.1) !important;
  box-shadow: 0 24px 50px -20px rgba(17, 46, 78, 0.5) !important;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.sdis-dd-box a { transition: background-color 0.2s, padding 0.25s var(--sx-ease), color 0.2s; }
.sdis-dd-box a:hover { padding-inline-start: 1.35rem; }
/* القائمة المحمولة */
#sheikan-mobile-menu {
  max-height: calc(100vh - 6.5rem); overflow-y: auto; border: 1px solid rgba(17, 46, 78, 0.1);
  animation: sx-pop 0.3s var(--sx-ease) both;
}
#sheikan-mobile-menu button { font-family: inherit !important; font-weight: 600; transition: background-color 0.2s; }
#sheikan-mobile-menu button:hover, #sheikan-mobile-menu button:focus-visible { background: var(--sx-mist) !important; }
@keyframes sx-pop { from { opacity: 0; transform: translateY(-10px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- 6) الأزرار ---------- */
.sx-btn, .ad-btn, button.bg-green-600, a.bg-green-600, form button[type="submit"] {
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform 0.3s var(--sx-ease), box-shadow 0.3s var(--sx-ease), background-color 0.3s;
}
.sx-btn::after, .ad-btn::after, form button[type="submit"]::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 55%; inset-inline-start: -80%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg); transition: inset-inline-start 0.7s var(--sx-ease); z-index: -1;
}
.sx-btn:hover::after, .ad-btn:hover::after, form button[type="submit"]:hover::after { inset-inline-start: 130%; }
.sx-btn:active, .ad-btn:active, form button[type="submit"]:active { transform: translateY(1px) scale(0.985); }
.sx-ripple {
  position: absolute; border-radius: 50%; pointer-events: none; transform: scale(0);
  background: rgba(255, 255, 255, 0.45); animation: sx-ripple 0.65s ease-out forwards;
}
@keyframes sx-ripple { to { transform: scale(4); opacity: 0; } }

.sx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font-family: inherit; font-weight: 800; font-size: 1rem; line-height: 1.2; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.sx-btn svg { width: 1.1em; height: 1.1em; flex: 0 0 auto; }
.sx-btn-primary {
  background: linear-gradient(135deg, var(--sx-ink), var(--sx-emerald) 60%, var(--sx-leaf));
  color: #fff; box-shadow: 0 14px 28px -12px rgba(17, 46, 78, 0.75);
}
.sx-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 34px -12px rgba(17, 46, 78, 0.85); }
.sx-btn-lime { background: var(--sx-lime); color: var(--sx-deep); box-shadow: 0 14px 28px -12px rgba(176, 127, 26, 0.8); }
.sx-btn-lime:hover { transform: translateY(-3px); }
.sx-btn-ghost { background: rgba(255, 255, 255, 0.7); color: var(--sx-ink); border-color: rgba(17, 46, 78, 0.25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sx-btn-ghost:hover { background: var(--sx-ink); color: #fff; transform: translateY(-3px); }

/* ---------- 7) البطاقات: رفع + توهج + ميل ---------- */
.sx-card, .ab-card, .ar-card, .svc-card, .pay-card, .profile-card, .committee-profile-card,
.board-council-stat-card, .committees-directory-stat-card, .strategy-foundation-card,
.strategy-kpi-card, .nws-item, .board-principle-item, .strategy-axis-panel {
  transition: transform 0.45s var(--sx-ease), box-shadow 0.45s var(--sx-ease), border-color 0.3s;
  transform-style: preserve-3d;
}
.sx-card:hover, .ab-card:hover, .ar-card:hover, .svc-card:hover, .pay-card:hover,
.committee-profile-card:hover, .board-council-stat-card:hover, .committees-directory-stat-card:hover,
.strategy-foundation-card:hover, .strategy-kpi-card:hover, .nws-item:hover {
  box-shadow: var(--sx-shadow-lg);
}
/* توهج يتبع المؤشر (يضبط JS المتغيرين --mx و --my) */
.sx-glow { position: relative; }
.sx-glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 150, 43, 0.16), transparent 60%);
}
.sx-glow:hover::before { opacity: 1; }
.sx-glow > * { position: relative; z-index: 1; }

/* ---------- 8) الظهور التدريجي عند التمرير ---------- */
html.sx-js .sx-reveal {
  opacity: 0; transform: translateY(32px) scale(0.985);
  transition: opacity 0.8s var(--sx-ease), transform 0.8s var(--sx-ease);
  transition-delay: var(--sx-d, 0ms); will-change: opacity, transform;
}
html.sx-js .sx-reveal.sx-in { opacity: 1; transform: none; will-change: auto; }
html.sx-js .sx-reveal[data-fx="left"] { transform: translateX(-46px); }
html.sx-js .sx-reveal[data-fx="right"] { transform: translateX(46px); }
html.sx-js .sx-reveal[data-fx="zoom"] { transform: scale(0.9); }
html.sx-js .sx-reveal.sx-in[data-fx] { transform: none; }

/* ---------- 9) عناوين الأقسام ---------- */
#services h2, #app h2, #contact h2, .sx-title {
  position: relative; display: inline-block; padding-bottom: 0.9rem;
}
#services h2::after, #app h2::after, #contact h2::after, .sx-title::after {
  content: ""; position: absolute; bottom: 0; inset-inline: 30%; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--sx-green), var(--sx-lime));
  transform: scaleX(0); transition: transform 0.9s 0.2s var(--sx-ease);
}
.sx-in h2::after, h2.sx-in::after, .sx-in .sx-title::after, .sx-title.sx-in::after,
.sx-in #services h2::after { transform: scaleX(1); }
html:not(.sx-js) #services h2::after, html:not(.sx-js) #app h2::after,
html:not(.sx-js) #contact h2::after { transform: scaleX(1); }
span.bg-green-100 { letter-spacing: 0; font-weight: 700; }

/* ---------- 10) رأس الصفحات الداخلية ---------- */
.ab-hero, .ar-hero, .board-council-hero, .committees-directory-hero, .profile-hero {
  position: relative; overflow: hidden; isolation: isolate;
}
.ab-hero::before, .ar-hero::before, .committees-directory-hero::before, .board-council-hero::before {
  content: ""; position: absolute; inset: -30%; z-index: -1; pointer-events: none; opacity: 0.55;
  background:
    radial-gradient(circle at 18% 30%, rgba(201, 150, 43, 0.28), transparent 38%),
    radial-gradient(circle at 82% 70%, rgba(201, 150, 43, 0.32), transparent 42%);
  animation: sx-drift 16s ease-in-out infinite alternate;
}
.ab-hero::after, .ar-hero::after, .committees-directory-hero::after, .board-council-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.1;
  background-image: url("../img/hero-pattern.webp"); background-size: 360px auto; background-repeat: repeat;
  mix-blend-mode: soft-light;
}
@keyframes sx-drift { to { transform: translate3d(5%, -4%, 0) rotate(8deg) scale(1.1); } }
.ab-hero-in > *, .ar-hero-in > * { animation: sx-up 0.9s var(--sx-ease) both; }
.ab-hero-in > *:nth-child(2), .ar-hero-in > *:nth-child(2) { animation-delay: 0.1s; }
.ab-hero-in > *:nth-child(3), .ar-hero-in > *:nth-child(3) { animation-delay: 0.2s; }
.ab-hero-in > *:nth-child(4), .ar-hero-in > *:nth-child(4) { animation-delay: 0.3s; }
.ab-hero-in > *:nth-child(5), .ar-hero-in > *:nth-child(5) { animation-delay: 0.4s; }
@keyframes sx-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- 11) الهيرو الجديد للصفحة الرئيسية ---------- */
.hero {
  --hx: 50%; --hy: 50%;
  position: relative; isolation: isolate; overflow: hidden; direction: rtl;
  min-height: clamp(560px, 92vh, 820px);
  padding-top: var(--sx-nav-h);
  background:
    radial-gradient(1100px 600px at 85% 10%, #ffffff, transparent 70%),
    linear-gradient(160deg, #f8f9fb 0%, #e9eef5 55%, #dde5ef 100%);
  color: var(--sx-ink);
}
html[dir="ltr"] .hero { direction: ltr; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-pattern {
  position: absolute; inset-block: 0; left: 0; width: min(46%, 640px);
  background: url("../img/hero-pattern.webp") left center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, #000 25%, transparent 100%);
  mask-image: linear-gradient(to right, #000 25%, transparent 100%);
  opacity: 0.9; transform: translate3d(calc((var(--hx) - 50%) * -0.04), calc((var(--hy) - 50%) * -0.04), 0);
  transition: transform 0.6s var(--sx-ease);
}
.hero-pattern.is-end {
  left: auto; right: 0; width: min(24%, 340px); top: auto; height: 46%;
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 30%, transparent 70%);
  mask-image: radial-gradient(circle at 100% 100%, #000 30%, transparent 70%); opacity: 0.8;
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; animation: sx-float 11s ease-in-out infinite alternate; }
.hero-orb.o1 { width: 26rem; height: 26rem; top: -8rem; inset-inline-end: 8%; background: rgba(201, 150, 43, 0.35); }
.hero-orb.o2 { width: 22rem; height: 22rem; bottom: -6rem; inset-inline-start: 30%; background: rgba(201, 150, 43, 0.4); animation-delay: -4s; }
@keyframes sx-float { to { transform: translate3d(3rem, 2rem, 0) scale(1.15); } }
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-rings { position: absolute; inset: 0; opacity: 0.5; }
.hero-rings i {
  position: absolute; border-radius: 50%; border: 1px solid rgba(28, 70, 112, 0.3);
  top: 50%; inset-inline-end: 14%; transform: translate(50%, -50%); animation: sx-spin 40s linear infinite;
}
html[dir="ltr"] .hero-rings i { transform: translate(-50%, -50%); }
.hero-rings i:nth-child(1) { width: 22rem; height: 22rem; }
.hero-rings i:nth-child(2) { width: 32rem; height: 32rem; animation-direction: reverse; border-style: dashed; animation-duration: 60s; }
.hero-rings i:nth-child(3) { width: 44rem; height: 44rem; animation-duration: 80s; }
@keyframes sx-spin { to { rotate: 360deg; } }

.hero-track { position: relative; min-height: calc(clamp(560px, 92vh, 820px) - var(--sx-nav-h) - 6.5rem); }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.9s var(--sx-ease), visibility 0s 0.9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.9s var(--sx-ease), visibility 0s; }
.hero-inner {
  width: 100%; max-width: 80rem; margin-inline: auto; padding: 1.5rem 1.25rem;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 2rem;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 1rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(17, 46, 78, 0.14);
  color: var(--sx-emerald); font-weight: 700; font-size: 0.9rem; box-shadow: var(--sx-shadow-sm);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-kicker::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--sx-green); box-shadow: 0 0 0 0 rgba(201, 150, 43, 0.7); animation: sx-ping 2s infinite; }
@keyframes sx-ping { 70% { box-shadow: 0 0 0 10px rgba(201, 150, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 150, 43, 0); } }
.hero-title {
  margin: 1.1rem 0 0.9rem; font-weight: 900; color: var(--sx-ink);
  font-size: clamp(2rem, 4.6vw, 3.75rem); line-height: 1.28; letter-spacing: 0;
}
.hero-title em {
  font-style: normal; background: linear-gradient(100deg, var(--sx-emerald), var(--sx-green) 55%, #c9962b);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--sx-text-2); font-weight: 600; max-width: 36rem; margin: 0 0 0.35rem; }
.hero-sub.accent { color: var(--sx-emerald); font-weight: 800; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.7rem; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 18rem; }
.hero-visual::before {
  content: ""; position: absolute; width: min(30rem, 92%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, rgba(201, 150, 43, 0.28) 55%, rgba(201, 150, 43, 0.18) 75%, transparent 76%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 40px 80px -40px rgba(17, 46, 78, 0.5);
  animation: sx-breathe 7s ease-in-out infinite;
}
@keyframes sx-breathe { 50% { transform: scale(1.04); } }
.hero-visual img {
  position: relative; max-height: min(52vh, 25rem); width: auto; max-width: 100%; object-fit: contain;
  mix-blend-mode: multiply; filter: drop-shadow(0 22px 24px rgba(17, 46, 78, 0.18));
  animation: sx-bob 6.5s ease-in-out infinite;
}
.hero-visual img.is-logo { mix-blend-mode: normal; max-height: min(46vh, 22rem); filter: drop-shadow(0 24px 30px rgba(17, 46, 78, 0.3)); }
@keyframes sx-bob { 50% { transform: translateY(-14px); } }
.hero-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.95rem;
  border-radius: 1rem; background: rgba(255, 255, 255, 0.88); font-weight: 800; font-size: 0.9rem; color: var(--sx-ink);
  box-shadow: var(--sx-shadow); border: 1px solid rgba(17, 46, 78, 0.1); animation: sx-bob 5s ease-in-out infinite;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero-chip.c1 { top: 12%; inset-inline-start: 4%; }
.hero-chip.c2 { bottom: 14%; inset-inline-end: 2%; animation-delay: -2s; }
.hero-chip svg { width: 1.2rem; height: 1.2rem; color: var(--sx-green); }

/* حركة دخول النص عند تفعيل الشريحة */
.hero-slide .hero-copy > * { opacity: 0; transform: translateY(28px); }
.hero-slide.is-active .hero-copy > * { animation: sx-up 0.95s var(--sx-ease) both; }
.hero-slide.is-active .hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero-slide.is-active .hero-copy > *:nth-child(3) { animation-delay: 0.24s; }
.hero-slide.is-active .hero-copy > *:nth-child(4) { animation-delay: 0.36s; }
.hero-slide.is-active .hero-copy > *:nth-child(5) { animation-delay: 0.48s; }
.hero-slide .hero-visual { opacity: 0; transform: translateX(-40px) scale(0.94); transition: opacity 1s 0.15s var(--sx-ease), transform 1s 0.15s var(--sx-ease); }
html[dir="ltr"] .hero-slide .hero-visual { transform: translateX(40px) scale(0.94); }
.hero-slide.is-active .hero-visual { opacity: 1; transform: none; }

/* إحصاءات الهيرو */
.hero-stats {
  position: relative; z-index: 3; max-width: 80rem; margin: 0 auto; padding: 0 1.25rem 1.8rem;
  display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: flex-start;
}
.hero-stat {
  min-width: 10.5rem; display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1.1rem;
  border-radius: 1.1rem; background: rgba(17, 46, 78, 0.9); color: #fff; box-shadow: var(--sx-shadow);
  border: 1px solid rgba(201, 150, 43, 0.25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform 0.35s var(--sx-ease), background-color 0.3s;
}
.hero-stat:hover { transform: translateY(-4px); background: var(--sx-emerald); }
.hero-stat b { font-size: 1.75rem; font-weight: 900; line-height: 1; color: var(--sx-lime); font-family: var(--sx-font-latin); min-width: 2.2ch; text-align: center; }
.hero-stat span { font-size: 0.95rem; font-weight: 700; line-height: 1.3; }

/* التحكم */
.hero-arrow {
  position: absolute; top: 50%; z-index: 5; width: 3rem; height: 3rem; margin-top: -2.5rem; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(17, 46, 78, 0.2); background: rgba(255, 255, 255, 0.85);
  color: var(--sx-ink); cursor: pointer; box-shadow: var(--sx-shadow); transition: all 0.3s var(--sx-ease);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-arrow:hover { background: var(--sx-ink); color: var(--sx-lime); transform: scale(1.1); }
.hero-arrow svg { width: 1.3rem; height: 1.3rem; }
.hero-prev { inset-inline-start: 1rem; }
.hero-next { inset-inline-end: 1rem; }
html[dir="rtl"] .hero-arrow svg { transform: scaleX(-1); }
html[dir="ltr"] .hero-arrow svg { transform: none; }
.hero-dots { position: absolute; z-index: 5; bottom: 1.6rem; inset-inline-end: 1.5rem; display: flex; gap: 0.5rem; align-items: center; }
.hero-dot { width: 0.7rem; height: 0.7rem; padding: 0; border: 0; border-radius: 999px; background: rgba(17, 46, 78, 0.28); cursor: pointer; transition: all 0.4s var(--sx-ease); }
.hero-dot:hover { background: rgba(17, 46, 78, 0.55); }
.hero-dot.is-active { width: 2.4rem; background: linear-gradient(90deg, var(--sx-emerald), var(--sx-green)); }
.hero-bar { position: absolute; z-index: 5; inset-inline: 0; bottom: 0; height: 4px; background: rgba(17, 46, 78, 0.08); }
.hero-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sx-emerald), var(--sx-lime)); transform-origin: right; }
html[dir="rtl"] .hero-bar i { margin-inline-start: auto; }
.hero-scroll {
  position: absolute; z-index: 4; bottom: 5.4rem; inset-inline-start: 50%; translate: -50% 0; width: 1.7rem; height: 2.7rem;
  border: 2px solid rgba(17, 46, 78, 0.35); border-radius: 1rem; display: none;
}
.hero-scroll::after { content: ""; position: absolute; top: 0.45rem; inset-inline-start: 50%; translate: -50% 0; width: 4px; height: 8px; border-radius: 3px; background: var(--sx-emerald); animation: sx-wheel 1.8s infinite; }
@keyframes sx-wheel { 0% { opacity: 1; transform: translateY(0); } 80%, 100% { opacity: 0; transform: translateY(14px); } }
.hero-scroll { display: none !important; }

@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: calc(var(--sx-nav-h) + 0.5rem); }
  .hero-track { min-height: 0; display: grid; }
  .hero-slide { position: relative; grid-area: 1 / 1; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 0.5rem; padding: 1rem 1.25rem 0.5rem; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; min-height: 14rem; }
  .hero-visual img { max-height: 14rem; }
  .hero-visual::before { width: min(17rem, 80%); }
  .hero-chip { display: none; }
  .hero-arrow { display: none; }
  .hero-stats { justify-content: center; padding-bottom: 3.5rem; gap: 0.6rem; }
  .hero-stat { min-width: 0; flex: 1 1 8.5rem; padding: 0.6rem 0.8rem; }
  .hero-stat b { font-size: 1.4rem; }
  .hero-stat span { font-size: 0.82rem; }
  .hero-dots { inset-inline: 0; justify-content: center; bottom: 1.2rem; }
  .hero-pattern { width: 70%; opacity: 0.5; }
}
@media (max-width: 480px) {
  .hero-cta .sx-btn { flex: 1 1 100%; }
  .hero-title { font-size: clamp(1.7rem, 8vw, 2.2rem); }
}

/* ---------- 12) الشريط الإخباري ---------- */
.news-ticker { box-shadow: 0 10px 24px -16px rgba(17, 46, 78, 0.4); position: relative; z-index: 6; }
.ticker-title { background: linear-gradient(135deg, var(--sx-ink), var(--sx-emerald)) !important; color: #fff !important; }
.ticker-title p { color: #fff !important; }
.ticker-list li a { transition: color 0.2s; }
.ticker-list li a:hover { color: var(--sx-emerald); }
.ticker-list:hover { animation-play-state: paused; }

/* ---------- 13) قسم الخدمات ---------- */
#services .svc-card { position: relative; overflow: hidden; }
#services .svc-card::after {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; transform: scaleX(0); transform-origin: right;
  background: linear-gradient(90deg, var(--sx-green), var(--sx-lime)); transition: transform 0.5s var(--sx-ease);
}
#services .svc-card:hover::after { transform: scaleX(1); }
#services .svc-card:hover { transform: translateY(-8px) !important; }
#services .svc-ic { transition: transform 0.5s var(--sx-ease-bounce); }
#services .svc-card:hover .svc-ic { transform: rotate(-8deg) scale(1.12); }
#services .svc-card h3 { font-size: 1.15rem; }
#services .svc-card p { font-size: 0.95rem; color: var(--sx-muted); line-height: 1.8; }

/* ---------- 14) قسم "عن الجمعية" في الرئيسية ---------- */
#about .shadow-2xl { box-shadow: var(--sx-shadow-lg); }
#about img.object-contain { animation: sx-bob 7s ease-in-out infinite; filter: drop-shadow(0 18px 22px rgba(17, 46, 78, 0.25)); }

/* ---------- 15) قسم التحول الرقمي والإحصاءات ---------- */
.sdis-bg-stats .group:hover { transform: translateY(-8px); }
.sdis-bg-stats p.text-4xl, .sdis-bg-stats p.text-5xl { font-family: var(--sx-font-latin); font-variant-numeric: tabular-nums; }
.sdis-bg-stats .text-gray-400 { color: rgba(255, 255, 255, 0.78) !important; }
#digital .text-white\/80 { color: rgba(255, 255, 255, 0.9) !important; }

/* ---------- 16) التذييل ---------- */
.sdis-bg-footer, footer.sdis-bg-footer {
  position: relative;
  background: linear-gradient(180deg, #112e4e 0%, #0f2a47 100%) !important;
}
footer a { transition: color 0.2s, transform 0.25s var(--sx-ease); }
footer a:hover { color: var(--sx-lime) !important; }
footer .sids-social-icon { transition: transform 0.35s var(--sx-ease-bounce), background-color 0.3s !important; }
footer .sids-social-icon:hover { transform: translateY(-5px) scale(1.12) rotate(-4deg); }
footer .text-gray-400, footer .text-gray-500 { color: rgba(255, 255, 255, 0.72) !important; }
footer .text-gray-600 { color: rgba(255, 255, 255, 0.6) !important; }

/* ---------- 17) زر الواتساب وزر العودة للأعلى ---------- */
.shk-wa-float { right: auto !important; left: 1.25rem; bottom: 1.25rem; }
.sx-top {
  position: fixed; inset-inline-end: 1.25rem; bottom: 1.25rem; z-index: 9990; width: 3.1rem; height: 3.1rem;
  border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sx-ink), var(--sx-emerald)); color: #fff;
  box-shadow: var(--sx-shadow); opacity: 0; transform: translateY(20px) scale(0.8); pointer-events: none;
  transition: opacity 0.35s, transform 0.4s var(--sx-ease-bounce), background-color 0.3s;
}
.sx-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.sx-top:hover { background: var(--sx-lime); color: var(--sx-deep); transform: translateY(-4px); }
.sx-top svg { width: 1.3rem; height: 1.3rem; }
.sx-top .sx-ring { position: absolute; inset: -4px; border-radius: 50%; pointer-events: none; }
.sx-top .sx-ring circle { fill: none; stroke: var(--sx-lime); stroke-width: 3; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; }

/* ---------- 18) النماذج والحقول ---------- */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus {
  border-color: var(--sx-green) !important; box-shadow: var(--sx-glow) !important; outline: none;
}
input::placeholder, textarea::placeholder { color: #7f8fa0; opacity: 1; }
form label { font-weight: 700; color: var(--sx-text-2); }
#contact form, #contact .shadow-xl { border-radius: 1.5rem; }

/* ---------- 19) صفحات الدخول والملف الشخصي والفواتير ---------- */
.login-card-container-q84, .inv-card, .profile-card, .pay-card { border-radius: var(--sx-radius); }
.inv-btn, .pay-btn { transition: transform 0.25s var(--sx-ease), box-shadow 0.25s, background-color 0.25s; }
.inv-btn:hover, .pay-btn:hover { transform: translateY(-2px); box-shadow: var(--sx-shadow); }

/* ---------- 20) صور مفقودة / تحميل ---------- */
img[data-hide-on-error], img[onerror] { background: linear-gradient(135deg, var(--sx-mist), #fff); }
img[loading="lazy"] { transition: opacity 0.6s var(--sx-ease); }
img.sx-loading { opacity: 0; }

/* ---------- 21) الطباعة ---------- */
@media print {
  nav, .sx-progress, .sx-top, .shk-wa-float, .hero-arrow, .hero-dots, .hero-bar { display: none !important; }
  html.sx-js .sx-reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- 22) تقليل الحركة ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; transition-delay: 0ms !important;
  }
  html.sx-js .sx-reveal { opacity: 1; transform: none; }
  .hero-slide .hero-copy > *, .hero-slide .hero-visual { opacity: 1; transform: none; }
}


/* ==========================================================================
   23) المركز الإعلامي (بطاقات)
   ========================================================================== */
.media-grid {
  display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  max-width: 76rem; margin-inline: auto;
}
.media-card {
  position: relative; display: flex; flex-direction: column; gap: 0.6rem; padding: 1.7rem 1.5rem 1.4rem;
  border-radius: 1.5rem; color: #fff; text-decoration: none; overflow: hidden; isolation: isolate;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform 0.45s var(--sx-ease), background-color 0.35s, box-shadow 0.45s var(--sx-ease), border-color 0.3s;
}
.media-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(520px circle at var(--mx, 80%) var(--my, 0%), rgba(201, 150, 43, 0.22), transparent 60%);
}
a.media-card:hover, a.media-card:focus-visible {
  transform: translateY(-8px); background: rgba(255, 255, 255, 0.18); border-color: rgba(201, 150, 43, 0.65);
  box-shadow: 0 30px 50px -26px rgba(0, 0, 0, 0.55);
}
a.media-card:hover::before { opacity: 1; }
.media-ic {
  width: 3.4rem; height: 3.4rem; border-radius: 1.1rem; display: grid; place-items: center; font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.32); color: var(--sx-lime);
  transition: transform 0.5s var(--sx-ease-bounce), background-color 0.3s, color 0.3s;
}
a.media-card:hover .media-ic { transform: rotate(-8deg) scale(1.1); background: var(--sx-lime); color: var(--sx-deep); }
.media-card h3 { font-size: 1.3rem; font-weight: 800; line-height: 1.35; margin: 0.5rem 0 0; }
.media-card p { margin: 0; color: rgba(255, 255, 255, 0.86); font-size: 0.97rem; line-height: 1.85; flex: 1; }
.media-cta {
  align-self: flex-start; margin-top: 0.4rem; padding: 0.3rem 0.85rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 800; background: rgba(201, 150, 43, 0.18); color: var(--sx-lime);
  border: 1px solid rgba(201, 150, 43, 0.45);
}
a.media-card .media-cta::after { content: " ←"; display: inline-block; transition: transform 0.3s var(--sx-ease); }
html[dir="ltr"] a.media-card .media-cta::after { content: " →"; }
a.media-card:hover .media-cta::after { transform: translateX(-4px); }
html[dir="ltr"] a.media-card:hover .media-cta::after { transform: translateX(4px); }
.media-card.is-soon { cursor: default; }
.media-card.is-soon .media-cta { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85); border-color: rgba(255, 255, 255, 0.3); }

/* ---------- مرئيات الإعلانات ---------- */
.ad-visual i {
  font-size: clamp(4rem, 9vw, 7rem); color: var(--sx-ink); opacity: 0.92;
  filter: drop-shadow(0 16px 20px rgba(17, 46, 78, 0.28)); animation: sx-bob 6s ease-in-out infinite;
}
.sx-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sx-green); display: inline-block;
  box-shadow: 0 0 0 0 rgba(201, 150, 43, 0.6); animation: sx-ping 2.2s infinite;
}
