/* =========================================
   MOIT Inner Header V2 – FINAL CLEAN PRO
   ========================================= */

.moit-inner-header-v2 {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  direction: rtl;
  
  background-attachment: fixed;
}

.moit-inner-header-v2 .moit-inner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 30, 50, 0.85),
    rgba(0, 0, 0, 0.55)
  );
}

.moit-inner-container {
  width: 100%;
  padding: 0 50px;
  position: relative;
  z-index: 2;
}

.moit-inner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  max-width: 800px;
  margin: 0 auto;
}

/* ================= TITLE ================= */

.moit-inner-title {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  
  letter-spacing: 0.5px;
  
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.moit-inner-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #00bcd4;
  margin-top: 8px;
}

/* ================= BREADCRUMB ================= */

.moit-inner-breadcrumb {
  margin-top: 12px;
  direction: rtl;
}

.moit-inner-breadcrumb ol {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;

  list-style: none;
  margin: 0;
  padding: 8px 18px;

  background: rgba(255,255,255,0.12);
  border-radius: 30px;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.15);

  gap: 8px;
  white-space: nowrap;

  transition: all 0.3s ease;
}

.moit-inner-breadcrumb li {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
}

/* الفاصل */
.moit-inner-breadcrumb li + li::before {
  content: "←";
  margin: 0 6px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
}

/* الروابط */
.moit-inner-breadcrumb a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.moit-inner-breadcrumb a:hover {
  text-decoration: underline;
}

/* العنصر الحالي */
.moit-breadcrumb-current {
  color: #00bcd4;
  font-weight: 600;
}

/* Hover effect خفيف */
.moit-inner-breadcrumb ol:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

/* ===== Smooth Entry Animation ===== */

.moit-inner-content {
  animation: moitFadeUp 0.8s ease forwards;
  opacity: 0;
}

@keyframes moitFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================
   RESPONSIVE – MOBILE FIRST WOW
   ========================================= */

@media (max-width: 768px) {

  .moit-inner-header-v2 {
    height: auto;
    padding: 40px 15px;
  }

  .moit-inner-container {
    padding: 0 15px;
  }

  .moit-inner-content {
    max-width: 100%;
  }

  /* ===== TITLE ===== */
  .moit-inner-title {
    font-size: 22px;
    line-height: 1.5;
  }

  .moit-inner-title::after {
    width: 35px;
    height: 2px;
    margin-top: 6px;
  }

  /* ===== BREADCRUMB ===== */
  .moit-inner-breadcrumb {
    margin-top: 10px;
  }

  .moit-inner-breadcrumb ol {
    flex-wrap: wrap; /* مهم */
    justify-content: center;
    padding: 6px 10px;
    border-radius: 20px;
    gap: 6px;
  }

  .moit-inner-breadcrumb li {
    font-size: 12px;
  }

  /* تقليل السهم */
  .moit-inner-breadcrumb li + li::before {
    font-size: 10px;
    margin: 0 4px;
  }
}

@media (max-width: 480px) {

  .moit-inner-title {
    font-size: 20px;
  }

  /* إخفاء المسار الطويل */
  .moit-inner-breadcrumb li:not(:last-child):not(:first-child) {
    display: none;
  }

  .moit-inner-breadcrumb li + li::before {
    content: "...";
    margin: 0 6px;
  }
}

@media (max-width: 768px) {
  .moit-inner-header-v2 {
    background-attachment: scroll;
  }
}


/* ===== Page Transition ===== */

body {
  animation: moitPageFade 0.4s ease;
}

@keyframes moitPageFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}