@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
:root {
  --bg: #eef4fa;
  --card: #fff;
  --text: #0f1f34;
  --muted: #5d7088;
  --blue: #1d5b9f;
  --blue-dark: #123d6c;
  --line: #d9e5f2;
  --footer1: #093e61;
  --footer2: #0c5a88;
  --shadow: 0 14px 38px rgba(18, 61, 108, .10)
}
* {
  box-sizing: border-box
}
html {
  scroll-behavior: smooth
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.82;
  direction: ltr;
  text-align: left
}
a {
  color: var(--blue);
  text-decoration: none
}
a:hover {
  text-decoration: none
}
img {
  max-width: 100%;
  height: auto;
  display: block
}
.site-shell {
  width: min(100% - 44px, 1180px);
  margin-inline: auto
}
.site-header {
  background: linear-gradient(135deg, #123d6c, #1f5b9f);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 7px 22px rgba(0, 0, 0, .12)
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px
}
.brand {
  display: grid;
  grid-template-columns: 58px auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  color: #fff;
  flex: 0 0 auto
}
.brand img {
  grid-row: 1/3;
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  padding: 4px
}
.brand-name {
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.1
}
.brand-en {
  font-size: .9rem;
  font-weight: 600;
  opacity: .9
}
.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px
}
.main-nav>a,
.nav-drop-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: transparent;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap
}
.main-nav>a:hover,
.main-nav>a.active,
.nav-dropdown.open .nav-drop-label,
.nav-dropdown.active-group .nav-drop-label {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .22)
}
.lang-switch {
  background: rgba(255, 255, 255, .11)!important;
  border-color: rgba(255, 255, 255, .32)!important
}
.nav-dropdown {
  position: relative
}
.nav-drop-label::after {
  content: '▾';
  font-size: .72em;
  margin-left: 8px
}
.nav-drop-menu {
  display: none;
  position: absolute;
  top: 48px;
  left: 0;
  width: 300px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow);
  z-index: 1200
}
.nav-dropdown.open .nav-drop-menu {
  display: block
}
.nav-drop-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 700;
  text-align: left
}
.nav-drop-menu a:hover,
.nav-drop-menu a.active {
  background: #edf5ff;
  color: var(--blue-dark)
}
.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .13);
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer
}
.intro-band {
  background: linear-gradient(135deg, #123d6c, #2260a7);
  color: #fff;
  padding: 28px 0 30px
}
.intro-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  direction: ltr
}
.intro-copy {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left
}
.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #eef6ff;
  font-size: .92rem;
  font-weight: 600
}
.intro-band h1 {
  margin: 0 0 8px;
  font-size: 1.85rem;
  line-height: 1.35;
  font-weight: 900
}
.intro-band p {
  margin: 0;
  color: #e7f0fb;
  max-width: 900px;
  font-size: 1.03rem;
  font-weight: 500
}
.store-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  margin-left: auto;
  direction: ltr;
  flex: 0 0 auto;
  max-width: 54%
}
.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff!important;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, .30);
  background: rgba(255, 255, 255, .12);
  white-space: nowrap
}
.store-btn:hover {
  background: rgba(255, 255, 255, .20)
}
.video-link {
  background: rgba(215, 165, 64, .30);
  border-color: rgba(255, 255, 255, .40)
}
.esa-program-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  background: transparent!important;
  padding: 0!important;
  border: 0!important;
  border-radius: 6px;
  box-shadow: none;
  flex: 0 0 auto
}
.main-content {
  padding: 28px 0 44px
}
.article-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 30px 34px;
  direction: ltr;
  text-align: left
}
.article-card h2 {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e6eef8;
  color: var(--blue-dark);
  font-size: 1.45rem;
  line-height: 1.55;
  font-weight: 900;
  text-align: left
}
.article-card h3 {
  margin: 26px 0 8px;
  color: var(--blue);
  font-size: 1.18rem;
  line-height: 1.65;
  font-weight: 900;
  text-align: left
}
.article-card h4 {
  margin: 18px 0 5px;
  color: var(--blue-dark);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 800;
  text-align: left
}
.article-card p {
  margin: 0 0 14px;
  text-align: justify;
  line-height: 1.9
}
.article-card li {
  text-align: justify;
  line-height: 1.85;
  margin: 0 0 6px
}
.clean-list,
.number-list {
  margin: 0 0 18px;
  padding-left: 24px
}
.lead-intro {
  font-weight: 750;
  font-size: 1.05rem;
  line-height: 1.95;
  margin-bottom: 20px
}
.indicator-list {
  columns: 2;
  column-gap: 34px
}
.indicator-list li {
  break-inside: avoid;
  text-align: left
}
.currency-pairs {
  direction: ltr;
  text-align: left!important;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 6px;
  line-height: 1.85
}
.app-image {
  width: min(320px, 100%);
  margin: 18px auto 26px;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(18, 61, 108, .08)
}
.app-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: #fff
}
.result-preview-wrap {
  display: flex;
  justify-content: center;
  margin: 14px auto
}
.result-preview-toggle {
  display: block;
  width: min(760px, 100%);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in
}
.result-preview-crop {
  display: block;
  width: 100%;
  max-height: 968px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: #fff
}
.result-preview-crop img {
  width: 100%;
  height: auto;
  border-radius: 18px 18px 0 0
}
.result-preview-toggle.expanded {
  cursor: zoom-out
}
.result-preview-toggle.expanded .result-preview-crop {
  max-height: none;
  overflow: visible
}
.result-hint {
  display: block;
  color: var(--muted);
  font-weight: 700;
  margin-top: 8px
}
.esa-footer {
  background: linear-gradient(180deg, var(--footer1), var(--footer2));
  color: #cfe3f5;
  margin-top: 20px;
  font-size: 14px
}
.esa-footer a {
  color: #fff;
  text-decoration: none
}
.esa-footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  align-items: center;
  flex-wrap: wrap
}
.esa-copy {
  font-size: 13px;
  opacity: .95
}
.esa-footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}
.esa-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, .35);
  padding: 6px 10px;
  border-radius: 10px
}
.foot-mail {
  direction: ltr;
  unicode-bidi: plaintext;
  font-weight: 700
}
.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  font-weight: 900;
  z-index: 900
}
@media(max-width:960px) {
  body {
    font-size: 16px;
    line-height: 1.9
  }
  .site-shell {
    width: min(100% - 28px, 1180px)
  }
  .header-inner {
    min-height: 82px;
    flex-wrap: wrap;
    padding: 10px 0;
    gap: 12px
  }
  .brand {
    grid-template-columns: 58px auto;
    column-gap: 12px;
    max-width: calc(100% - 70px)
  }
  .brand img {
    width: 58px;
    height: 58px
  }
  .brand-name {
    font-size: 1.42rem
  }
  .brand-en {
    font-size: .95rem
  }
  .menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto
  }
  .main-nav {
    display: none;
    position: static;
    width: 100%;
    margin: 8px 0 0 0;
    padding: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    box-shadow: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px
  }
  .site-header.nav-open .main-nav {
    display: flex
  }
  .main-nav>a,
  .nav-drop-label {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    border-radius: 12px;
    min-height: 46px;
    padding: 0 14px;
    font-size: 1.02rem
  }
  .nav-drop-menu {
    position: static;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
    border-radius: 12px;
    display: none
  }
  .nav-dropdown.open .nav-drop-menu {
    display: block
  }
  .nav-drop-menu a {
    min-height: 42px;
    display: flex;
    align-items: center
  }
  .intro-band {
    padding: 26px 0 28px
  }
  .intro-inner {
    display: block
  }
  .intro-band h1 {
    font-size: 1.58rem
  }
  .intro-band p {
    font-size: 1rem
  }
  .store-buttons {
    max-width: none;
    margin: 16px 0 0 0;
    justify-content: flex-start
  }
  .store-btn {
    min-height: 42px;
    padding: 0 12px;
    font-size: .96rem
  }
  .article-card {
    padding: 22px 18px;
    border-radius: 18px
  }
  .article-card h2 {
    font-size: 1.32rem
  }
  .article-card h3 {
    font-size: 1.12rem
  }
  .article-card p,
  .article-card li {
    text-align: left
  }
  .indicator-list {
    columns: 1
  }
  .result-preview-crop {
    max-height: 60vh
  }
  .esa-footer-row {
    display: block
  }
  .esa-footer-links {
    margin-top: 14px
  }
  .back-top {
    width: 44px;
    height: 44px;
    right: 14px;
    bottom: 14px
  }
}
/* تنسيق القوائم والتنقيط في كل الصفحات */
.content-panel ul,
.content-panel ol,
.page-content ul,
.page-content ol,
article ul,
article ol {
  margin-top: 10px;
  margin-bottom: 18px;
  padding-inline-start: 2.2rem;
  padding-inline-end: 0;
  list-style-position: outside;
}
/* مسافة بين علامة التنقيط والنص */
.content-panel li,
.page-content li,
article li {
  padding-inline-start: 0.35rem;
  margin-bottom: 8px;
  line-height: 1.9;
}
/* العربية */
html[dir="rtl"] .content-panel ul,
html[dir="rtl"] .content-panel ol,
html[dir="rtl"] article ul,
html[dir="rtl"] article ol {
  padding-right: 2.2rem;
  padding-left: 0;
}
/* الإنجليزية */
html[dir="ltr"] .content-panel ul,
html[dir="ltr"] .content-panel ol,
html[dir="ltr"] article ul,
html[dir="ltr"] article ol {
  padding-left: 2.2rem;
  padding-right: 0;
}
/* مسافة بادئة بسيطة */
.indent-sm {
  padding-inline-start: 20px;
}
/* مسافة بادئة متوسطة */
.indent-md {
  padding-inline-start: 35px;
}
/* مسافة بادئة كبيرة */
.indent-lg {
  padding-inline-start: 55px;
}
/* جعل السطر عريض */
.text-bold {
  font-weight: 700;
}
/* أزرق عريض */
.text-blue-bold {
  color: #0057b8;
  font-weight: 700;
}
/* أخضر عريض */
.text-green-bold {
  color: #07823d;
  font-weight: 700;
}
/* أحمر عريض */
.text-red-bold {
  color: #b00020;
  font-weight: 700;
}
/* ذهبي / زيتي عريض */
.text-gold-bold {
  color: #8a6d00;
  font-weight: 700;
}
/* عنوان فرعي داخل المحتوى */
.sub-title {
  font-weight: 700;
  color: #123a63;
  margin-top: 22px;
  margin-bottom: 8px;
}
/* فقرة منسقة ومبررة */
.text-justify {
  text-align: justify;
  line-height: 1.9;
}
/* ===== مجموعات صور التطبيق ===== */
.article-card .app-images-set {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 16px !important;
  margin: 24px auto !important;
  width: 100% !important;
}
.article-card .app-images-set > figure.app-image {
  display: block !important;
  margin: 0 !important;
  padding: 10px !important;
  background: #f8fbff !important;
  border: 1px solid var(--line) !important;
  border-radius: 20px !important;
  box-shadow: 0 6px 18px rgba(18, 61, 108, .08) !important;
  max-width: 100% !important;
}
.article-card .app-images-set > figure.app-image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}
/* صورة واحدة */
.article-card .app-images-set.images-1 > figure.app-image {
  width: 320px !important;
  flex: 0 0 320px !important;
}
/* صورتان */
.article-card .app-images-set.images-2 > figure.app-image {
  width: 300px !important;
  flex: 0 0 300px !important;
}
/* ثلاث صور */
.article-card .app-images-set.images-3 > figure.app-image {
  width: 245px !important;
  flex: 0 0 245px !important;
}
/* الجوال */
@media screen and (max-width:700px) {
  .article-card .app-images-set {
    gap: 8px !important;
  }
  .article-card .app-images-set.images-1 > figure.app-image {
    width: 300px !important;
    flex: 0 0 300px !important;
  }
  .article-card .app-images-set.images-2 > figure.app-image {
    width: 46% !important;
    flex: 0 0 46% !important;
  }
  .article-card .app-images-set.images-3 > figure.app-image {
    width: 30% !important;
    flex: 0 0 30% !important;
  }
}
