/* تنسيق العربية والاتجاه من اليمين لليسار للموقع العام */

/* الأيقونة المضمّنة: بحرف واحد كخط Font Awesome الذي استُغني عنه */
.nex-ic {
  width: 1em;
  height: 1em;
  fill: currentColor;
  display: inline-block;
  vertical-align: -0.125em;
  flex: 0 0 auto;
}

.nex-ic.fa-lg {
  width: 1.33em;
  height: 1.33em;
}

.nex-ic.fa-2x {
  width: 2em;
  height: 2em;
}

:root {
  --nex-violet: #6d28d9;
  --nex-violet-2: #8b5cf6;
  --nex-ink: #14092b;
}

body {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

/* الأشرطة العلوية والسفلية */
.main-nav {
  background: linear-gradient(90deg, #1b0b36 0%, #2d1256 100%) !important;
  height: 75px;
}

.nav-img {
  border-radius: 22%;
}

.footer {
  background-color: #14092b;
  box-shadow: inset 0 0 0 9999px rgba(10, 4, 22, 0.72);
}

.footer-content,
.hover-stop {
  color: #cabfe4 !important;
}

.footer .divider {
  border-top: 1px solid rgba(202, 191, 228, 0.28);
}

/* العناوين الكبيرة */
.text-gradient-border {
  color: #fff !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.55) !important;
  font-weight: 900;
  line-height: 1.35;
}

/* القسم الرئيسي: النص فوق الصورة */
.bg-img-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(270deg, rgba(12, 4, 26, 0.86) 0%, rgba(12, 4, 26, 0.55) 38%, rgba(12, 4, 26, 0) 70%);
}

.bg-img-section .content {
  right: 220px;
  left: auto;
  top: 90px;
  z-index: 2;
  width: 620px;
  max-width: calc(100vw - 260px);
}

.bg-text {
  width: 100% !important;
  font-size: 46px !important;
}

@media (max-width: 992px) {
  .bg-img-section .content {
    left: 20px !important;
    right: 20px !important;
    top: 40px !important;
    width: auto !important;
    max-width: none !important;
  }

  .bg-img-section::after {
    background: linear-gradient(0deg, rgba(12, 4, 26, 0.9) 0%, rgba(12, 4, 26, 0.35) 55%, rgba(12, 4, 26, 0) 100%);
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  .bg-img-section .content {
    right: 80px !important;
    left: auto !important;
  }
}

@media (min-width: 1200px) and (max-width: 1400px) {
  .bg-img-section .content {
    right: 110px !important;
    left: auto !important;
  }
}

@media (min-width: 1200px) {
  .nav-container {
    margin-right: 225px !important;
    margin-left: 0 !important;
  }
}

/* أزرار المتاجر */
.app-section {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 14px;
  background: #fff;
  color: var(--nex-ink);
  text-decoration: none;
  border: 2px solid #fff;
  box-shadow: 0 8px 22px rgba(20, 9, 43, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  color: var(--nex-ink);
}

.store-btn .nex-ic {
  font-size: 26px;
}

.store-btn .store-line {
  display: block;
  font-size: 11px;
  opacity: 0.72;
  line-height: 1.2;
}

.store-btn .store-name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.store-btn.is-off {
  background: #ece6f8;
  border-color: #c9bce6;
  color: #5b5470;
  cursor: not-allowed;
  box-shadow: none;
}

.store-btn.is-off:hover {
  transform: none;
  box-shadow: none;
  color: #5b5470;
}

.store-note {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 10px;
  color: #3b3350;
}

/* من نحن */
.our-mission-img {
  border-radius: 22px;
  box-shadow: 0 22px 48px rgba(20, 9, 43, 0.28);
}

.our-mission-h1 {
  font-size: 42px !important;
  color: var(--nex-violet) !important;
  text-shadow: none !important;
}

.our-mission-p {
  font-size: 17px;
  line-height: 2.1;
  color: #3b3350;
}

/* لماذا نيكس */
.whychoose_image {
  /* الارتفاع يُضبط بالسكربت حسب بطاقات القسم، فتغطية الصورة تمنع تمطّطها */
  object-fit: cover;
}

.why-choose-content h2 {
  font-size: 42px;
  font-weight: 900;
}

.why-choose-card-body {
  background: rgba(20, 9, 43, 0.72) !important;
  border: 1px solid rgba(167, 139, 250, 0.4) !important;
  backdrop-filter: blur(3px);
}

/* أربعة أسطر كاملة بدل قصّ الجملة في منتصفها */
.why-p {
  color: #e6ddfb !important;
  line-height: 1.8;
  font-size: 15px;
  max-height: 108px;
}

.why-h5 {
  height: auto !important;
  font-weight: 800;
}

.read-more,
.read-less {
  color: #c4b5fd !important;
  font-size: 12px;
}

/* صور آراء العملاء داخل دائرة */
.profile-image-wrapper {
  right: 68%;
  left: auto;
}

/* كيف تعمل الرحلة */
.nex-how {
  background: #f6f3fc;
  padding-bottom: 5rem;
}

.nex-how-title {
  text-align: center;
  font-size: 38px;
  font-weight: 900;
  color: var(--nex-violet);
  margin-top: 3rem;
}

.nex-how-sub {
  text-align: center;
  color: #6b6480;
  font-size: 17px;
  margin-bottom: 2.5rem;
}

.nex-how-card {
  background: #fff;
  border: 1px solid #ece7f7;
  border-radius: 20px;
  padding: 26px 22px;
  height: 100%;
  box-shadow: 0 16px 34px rgba(20, 9, 43, 0.07);
}

.nex-how-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--nex-ink);
  margin-bottom: 10px;
}

.nex-how-card p {
  color: #4b445e;
  line-height: 2;
  margin: 0;
}

.nex-how-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--nex-violet), var(--nex-violet-2));
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 16px;
}

/* تحميل التطبيق */
.mobile_image img {
  border-radius: 26px;
}

.download-now {
  font-size: 42px !important;
  color: var(--nex-violet) !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}

.download-section p {
  font-size: 17px;
  color: #3b3350;
  line-height: 2;
}

/* الشروط والخصوصية */
.terms-service,
.privacy-policy {
  padding: 2rem 0 4rem;
  line-height: 2.1;
}

.terms-service h2,
.privacy-policy h2 {
  color: var(--nex-violet);
  font-weight: 900;
  margin: 1.6rem 0 0.6rem;
  font-size: 22px;
}

/* عكس المسافات الاتجاهية في بوتستراب */

/* صفحة «احصل على التطبيق» — الغلاف */
.nex-hero {
  position: relative;
}

.nex-hero-bg {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.nex-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(270deg, rgba(12, 4, 26, 0.88) 0%, rgba(12, 4, 26, 0.62) 50%, rgba(12, 4, 26, 0.4) 100%);
}

.nex-hero-inner {
  position: absolute;
  inset: 0 0 4px 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.nex-hero-title {
  color: #fff;
  font-size: 46px;
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 14px;
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.55);
}

.nex-hero-sub {
  color: #e6ddfb;
  font-size: 18px;
  line-height: 1.9;
  max-width: 820px;
  margin: 0;
}

/* أشرطة الصفحة: بنفسجي فاتح يتناوب مع الأبيض */
.nex-band {
  background: #f6f3fc;
  padding: 4.5rem 0 4.5rem;
}

.nex-band-white {
  background: #fff;
}

.nex-band .nex-how-title {
  margin-top: 0;
}

.nex-h2 {
  font-size: 32px;
  font-weight: 900;
  color: var(--nex-violet);
  margin: 0 0 1.9rem;
}

.nex-card {
  background: #fff;
  border: 1px solid #ece7f7;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(20, 9, 43, 0.08);
}

.nex-card h3 {
  font-size: 21px;
  font-weight: 900;
  color: var(--nex-ink);
  margin: 0 0 6px;
}

/* بطاقتا ملفّي التطبيق */
.nex-app-card {
  background: #fff;
  border: 1px solid #ece7f7;
  border-radius: 22px;
  padding: 26px 26px 24px;
  box-shadow: 0 18px 40px rgba(20, 9, 43, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.nex-app-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.nex-app-head h3 {
  font-size: 21px;
  font-weight: 900;
  color: var(--nex-ink);
  margin: 0 0 5px;
}

.nex-app-desc {
  color: #4b445e;
  font-size: 15px;
  line-height: 1.85;
  margin: 0;
}

.nex-app-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--nex-violet), var(--nex-violet-2));
}

.nex-app-icon.is-off {
  background: #e7e0f5;
  color: #6b6480;
}

.nex-dl-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--nex-violet), var(--nex-violet-2));
  color: #fff;
  padding: 14px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 12px 26px rgba(109, 40, 217, 0.26);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nex-dl-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(109, 40, 217, 0.36);
}

.nex-app-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #6b6480;
  font-size: 13px;
  margin: 12px 0 0;
}

.nex-app-meta .nex-ic {
  color: #3ddc84;
  font-size: 15px;
}

.nex-dl-alt {
  color: #9b93ab;
  font-size: 12px;
  text-decoration: underline;
}

.nex-dl-alt:hover {
  color: #6b6480;
}

.nex-app-missing {
  margin-top: auto;
  text-align: center;
}

.nex-fineprint {
  max-width: 940px;
  margin: 2.6rem auto 0;
  text-align: center;
  color: #6b6480;
  font-size: 13px;
  line-height: 2;
}

/* صورة الهاتف داخل قسم الخطوات */
.nex-shot {
  display: block;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  border-radius: 26px;
  box-shadow: 0 26px 56px rgba(20, 9, 43, 0.22);
}

/* خطوات التثبيت */
.nex-step {
  display: flex;
  gap: 18px;
  margin-bottom: 0;
  padding-bottom: 26px;
  position: relative;
}

.nex-step:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 22px;
  top: 54px;
  bottom: 4px;
  width: 2px;
  background: #ded4f2;
}

.nex-step-num {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--nex-violet), var(--nex-violet-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  position: relative;
  z-index: 1;
}

.nex-step-body h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--nex-ink);
  margin: 3px 0 6px;
}

.nex-step-body p {
  color: #4b445e;
  font-size: 15px;
  line-height: 1.95;
  margin: 0;
}

.nex-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--nex-violet);
  color: #fff;
  padding: 13px 26px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
}

.nex-btn:hover {
  background: var(--nex-violet-2);
  color: #fff;
}

.nex-contact-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.nex-wa {
  background: #1faa54;
}

.nex-wa:hover {
  background: #178f45;
}

.nex-muted {
  color: #6b6480;
  line-height: 2;
  font-size: 14px;
}

.nex-off {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f2eefb;
  color: #6b6480;
  border: 1px dashed #c9bce6;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 700;
}

/* عكس المسافات الاتجاهية في بوتستراب */
[dir="rtl"] .me-2 {
  margin-right: 0 !important;
  margin-left: 0.5rem !important;
}

[dir="rtl"] .me-3 {
  margin-right: 0 !important;
  margin-left: 1rem !important;
}

[dir="rtl"] .ms-2 {
  margin-left: 0 !important;
  margin-right: 0.5rem !important;
}

/* ضبط الشاشات الصغيرة */
html,
body {
  overflow-x: hidden;
}

/* التابلت والجوال: صورة «لماذا نيكس» تغطي القسم بدل أن تتمدد معه */
@media (max-width: 991px) {
  .content-overlay {
    position: relative;
    overflow: hidden;
  }

  .whychoose_image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
  }

  .why-choose-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
  }

  .our-mission-img {
    max-width: 460px;
    display: block;
    margin-inline: auto;
  }

  .nex-band-white .nex-shot {
    margin-top: 2.4rem;
  }
}

@media (max-width: 768px) {
  .bg-text {
    font-size: 30px !important;
  }

  .mobile-section {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .mobile_image img {
    width: 100%;
    max-width: 340px;
  }

  .why-choose-content {
    width: 94% !important;
  }

  .why-choose-content h2 {
    font-size: 30px;
  }

  .nex-how-title,
  .download-now {
    font-size: 28px !important;
  }

  .our-mission-h1 {
    font-size: 30px !important;
  }

  .store-btn {
    padding: 10px 16px;
  }

  .nex-hero-bg {
    height: 300px;
  }

  .nex-hero-title {
    font-size: 30px;
    margin-bottom: 10px;
  }

  .nex-hero-sub {
    font-size: 15px;
  }

  .nex-band {
    padding: 3.2rem 0 3.4rem;
  }

  .nex-h2 {
    font-size: 26px;
    margin-bottom: 1.4rem;
  }
}
