/* =========================================
   Hero Slider – CSS Stage 1 (Layout Only)
   ========================================= */

/* Slider root */
.moit-hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Viewport: نافذة العرض */
.moit-hero-slider__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Track: صف واحد للشرائح */
.moit-hero-slider__track {
  display: flex;
  flex-wrap: nowrap; /* يمنع التكدّس */
  transition: transform 0.6s ease; /* جاهزية للحركة */
}

/* Slide: شريحة واحدة */
.moit-hero-slider__slide {
  flex: 0 0 100%;
  width: 100%;
  min-height: clamp(520px, 65vh, 720px);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;

  background-repeat: no-repeat;
  background-position: center;
  background-size: cover; /* معتمد نهائيًا */
}


/* الشريحة النشطة فقط */

.moit-hero-slider__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
}

/* =========================================
   Hero Slider – CSS Stage 2 (Visual Base)
   ========================================= */

/* طبقة العتمة – فاخرة ومريحة */
.moit-hero-slider__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(11, 30, 45, 0.65),
    rgba(11, 30, 45, 0.35)
  );
  z-index: 1;
}

/* حاوية المحتوى */
.moit-hero-slider__container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* المحتوى */
.moit-hero-slider__content {
  max-width: 600px;
  color: #ffffff;
  margin-inline-start: 0; /* RTL/LTR آمن */
}

/* العنوان */
.moit-hero-slider__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.35;
  margin-bottom: 1rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* النص */
.moit-hero-slider__summary {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 2rem;
  opacity: 0.95;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* =========================================
   Hero Slider – CSS Stage 3 (Polish)
   ========================================= */

/* ===== Pagination (Dots) ===== */
.moit-hero-slider__pagination {
  position: absolute;
  bottom: 22px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.moit-hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.moit-hero-slider__dot.is-active {
  background: #ffffff;
  transform: scale(1.3);
}

/* ===== Navigation Arrows ===== */
.moit-hero-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  z-index: 5;
  cursor: pointer;
}

.moit-hero-slider__nav--prev {
  inset-inline-start: 16px;
}

.moit-hero-slider__nav--next {
  inset-inline-end: 16px;
}



/*----------------------------------------------------*/

/* =========================================
   Hero Slider – Stage A: Typography & CTA
   ========================================= */

/* ===== Title Enhancement ===== */
.moit-hero-slider__title {
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1.2rem;
  color: #e6f2f7; /* أبيض مائل للزرقة – مريح وفخم */
}

/* ===== Summary Enhancement ===== */
.moit-hero-slider__summary {
  font-size: 1.1rem;
  line-height: 2;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2.6rem;
}

/* ===== Button Enhancement ===== */

/* ===== Content Spacing ===== */
.moit-hero-slider__content {
  padding-top: clamp(2rem, 6vh, 4rem);
}


/* ===== Navigation Arrows – Final Polish ===== */
.moit-hero-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(11, 30, 45, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);

  color: #ffffff;
  font-size: 20px;
  line-height: 1;

  cursor: pointer;
  z-index: 6;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}


.moit-hero-slider__nav--prev {
  inset-inline-start: 28px;
}

.moit-hero-slider__nav--next {
  inset-inline-end: 28px;
}


.moit-hero-slider__nav::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
}


.moit-hero-slider__nav--prev::before {
  transform: rotate(45deg);
}

.moit-hero-slider__nav--next::before {
  transform: rotate(-135deg);
}


.moit-hero-slider__nav:hover {
  background: rgba(11, 30, 45, 0.55);
  border-color: rgba(255, 255, 255, 0.55);
}



/* =========================================
   Hero Slider – Stage C: Pagination Dots
   ========================================= */

/* حاوية النقاط */
.moit-hero-slider__pagination {
  bottom: 48px;                 /* رفعها داخل الصورة */
  gap: 12px;
}

/* النقطة */
.moit-hero-slider__dot {
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, 0.45);
  transition: all 0.25s ease;
}

/* النقطة النشطة */
.moit-hero-slider__dot.is-active {
  background: #ffffff;
  transform: scale(1.4);
}

/* Hover (خفيف جدًا) */
.moit-hero-slider__dot:hover {
  background: rgba(255, 255, 255, 0.75);
}


/* =========================================
   Hero Slider – Stage E: Depth & Luxury
   ========================================= */


/* إيقاع رأسي أفضل للمحتوى */
.moit-hero-slider__content {
  padding-block: clamp(2rem, 5vh, 4rem);
  text-align: center;
}

/* إحساس طبقة فوق الصورة */
.moit-hero-slider__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.04),
    rgba(0,0,0,0.25)
  );
  pointer-events: none;
  z-index: 1;
}

/* نعومة الانتقال بين الشرائح */
.moit-hero-slider__slide {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* تحسين dots (ثبات بصري) */
.moit-hero-slider__dot {
  transition: transform 0.25s ease, background 0.25s ease;
}

.moit-hero-slider__dot.is-active {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
}


/*---------------------------------*/

/* =========================================
   Hero Slider – F1.1 Full Bleed Extension
   ========================================= */

/* كسر أي قيود حاوية خارجية */
.moit-hero-slider {
  width: 100vw;
  margin-inline-start: calc(50% - 50vw);
  margin-inline-end: calc(50% - 50vw);
}

/* امتداد عمودي مدروس 
.moit-hero-slider__slide {
  min-height: clamp(70vh, 82vh, 88vh);
}
*/

/* تحسين عرض الصورة بدون تشويه */
.moit-hero-slider__slide {
  background-size: cover;
  background-position: center center;
}


/* =========================================
   Hero Slider – F1.2 Visual Section Divider
   ========================================= */

.moit-hero-slider::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 56px;

  background:
    linear-gradient(
      to bottom left,
      rgba(255,255,255,0) 50%,
      #ffffff 51%
    );

  z-index: 4;
  pointer-events: none;
}


/* =========================================
   Dynamic Hashtag Styling
   ========================================= */

.moit-hero-slider__hashtag {
  color: #c9a24d;           /* ذهبي مؤسسي */
  font-weight: 600;
  letter-spacing: 0.02em;
}



/* =========================================
   Hero Slider – Final CTA Button (Clean)
   ========================================= */

.moit-hero-slider__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.85rem 2.6rem;
  min-height: 48px;

  background: rgba(255, 255, 255, 0.85);
  color: #0b1e2d;

  border: 1.5px solid #c7a24b; /* ذهبي هادئ */
  border-radius: 3px;

  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;

  text-decoration: none;
  cursor: pointer;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

/* Hover – رسمي ومؤسسي */
.moit-hero-slider__btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #123a5a; /* أزرق رسمي */
  border-color: #123a5a;
}

/* Focus – وصولية */
.moit-hero-slider__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(18, 58, 90, 0.35);
}


/* ========================== الموبايل===========*/

@media (max-width: 768px) {
  .moit-hero-slider__slide {
    min-height: 65vh;
  }
}


@media (max-width: 768px) {
  .moit-hero-slider__content {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }
}


@media (max-width: 768px) {
  .moit-hero-slider__title {
    font-size: 1.6rem;
    line-height: 1.4;
  }

  .moit-hero-slider__summary {
    font-size: 0.95rem;
    line-height: 1.8;
  }
}


@media (max-width: 768px) {
  .moit-hero-slider__btn {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }
}


@media (max-width: 768px) {
  .moit-hero-slider__nav {
    width: 38px;
    height: 38px;
  }

  .moit-hero-slider__nav--prev {
    inset-inline-start: 10px;
  }

  .moit-hero-slider__nav--next {
    inset-inline-end: 10px;
  }
}


@media (max-width: 768px) {
  .moit-hero-slider__pagination {
    bottom: 32px;
  }
}
