/* ==================================================
   MOIT Footer – Top Section (Clean & Scoped)
   ================================================== */

.moit-footer {
  background: linear-gradient(180deg, #0b1a33 0%, #071226 100%);
  color: #ffffff;
}

/* الحاوية الداخلية */
.moit-footer__inner {
  width: 100%;
  padding: 80px 64px;
  box-sizing: border-box;
}

/* ===============================
   Footer Top – Grid Layout
   =============================== */

.moit-footer__top > .region {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  align-items: start;
}

/* ===============================
   إلغاء أي ستايل موروث (Card)
   =============================== */

.moit-footer__top .block,
.moit-footer__top .card {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* ===============================
   عناوين الأعمدة
   =============================== */

.moit-footer__top h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #eaf2ff;
  position: relative;
}

.moit-footer__top h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 8px;
  background: linear-gradient(90deg, #1da1f2, #21c7a8);
  border-radius: 2px;
}

/* ===============================
   قوائم الروابط
   =============================== */

.moit-footer__top ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.moit-footer__top ul.menu li {
  margin-bottom: 10px;
}

.moit-footer__top ul.menu li a {
  color: #cfd9ff;
  text-decoration: none;
  font-size: 15px;
  position: relative;
  padding-right: 18px;
  transition: all 0.2s ease;
}

/* أيقونة قبل الرابط */
.moit-footer__top ul.menu li a::before {
  content: "›";
  position: absolute;
  right: 0;
  color: #21c7a8;
  font-weight: bold;
}

/* Hover */
.moit-footer__top ul.menu li a:hover {
  color: #ffffff;
  padding-right: 22px;
}

/* ===============================
   نص التعريف عن الوزارة
   =============================== */

.moit-footer__top .field--name-body {
  font-size: 15px;
  line-height: 1.9;
  color: #e2e8ff;
}

.moit-footer__top .field--name-body img {
  max-width: 140px;
  margin-bottom: 16px;
}

/* ===============================
   فواصل عمودية بين الأعمدة
   =============================== */

.moit-footer__top > .region > .block:not(:last-child) {
  position: relative;
}

.moit-footer__top > .region > .block:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  left: -24px;
  width: 1px;
  height: 100%;
  background: rgba(255,255,255,0.08);
}


/* ================================
   Footer Bottom
================================ */

.moit-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
}

.moit-footer__bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Legal Links */
.moit-footer__legal {
  display: flex;
  gap: 20px;
}

.moit-footer__legal a {
  color: #cfd9ff;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.9;
}

.moit-footer__legal a:hover {
  opacity: 1;
  color: #ffffff;
}

/* Copyright */
.moit-footer__copyright {
  font-size: 13px;
  opacity: 0.75;
  text-align: center;
}

/* Social */
.moit-footer__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.moit-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border-radius: 50%;
  text-decoration: none;

  color: #ffffff;
  background: rgba(255,255,255,.08);

  transition: all .25s ease;
}

.moit-footer__social a:hover {
  background: #21c4ad;
  transform: translateY(-2px);
}

.moit-footer__social svg {
  width: 20px;
  height: 20px;
  display: block;
}


/* ===============================
   Social Links
   =============================== 

.moit-footer__bottom a[href*="facebook"],
.moit-footer__bottom a[href*="x.com"],
.moit-footer__bottom a[href*="twitter"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cfd9ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.moit-footer__bottom a[href*="facebook"]::before {
  content: "📘";
}

.moit-footer__bottom a[href*="x.com"]::before,
.moit-footer__bottom a[href*="twitter"]::before {
  content: "𝕏";
  font-weight: 700;
}

.moit-footer__bottom a:hover {
  color: #21c7a8;
}

*/


/* ===============================
   Contact Box Highlight
   =============================== */

.moit-footer__top .block:has(.field--name-body) {
  
  /*background: rgba(255,255,255,0.04);*/
  
  padding: 24px 28px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.moit-footer__top .block:has(.field--name-body) h2 {
  color: #21c7a8;
}

.moit-footer__top .block:has(.field--name-body) .field--name-body {
  font-size: 15px;
  line-height: 1.9;
}



/* =========================================
   Mobile Footer (Clean & Final)
   ========================================= */
@media (max-width: 768px) {

  /* ===== عام ===== */
  .moit-footer__inner {
    padding: 48px 24px;
  }

  /* ===== Footer Top ===== */
  .moit-footer__top > .region {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .moit-footer__top > .region > .block:not(:last-child)::after {
    display: none;
  }

  /* ===== Footer Bottom ===== */
  .moit-footer__bottom {
    padding: 20px 16px;
  }

  .moit-footer__bottom-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  /* الروابط القانونية */
  .moit-footer__legal {
    order: 1;
    opacity: 0.8;
  }

  .moit-footer__legal ul,
  .moit-footer__legal nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .moit-footer__legal a {
    font-size: 12.5px;
    padding: 4px 0;
  }

  /* حقوق النشر (المحور البصري) */
  .moit-footer__copyright {
    order: 2;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.8;
    opacity: 0.9;
    padding: 10px 0;
  }

  .moit-footer__copyright::before {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    margin: 0 auto 12px;
    background: rgba(255, 255, 255, 0.2);
  }

  /* السوشيال */
  .moit-footer__social {
    order: 3;
    display: flex;
    justify-content: center;
    gap: 18px;
  }

  .moit-footer__social a {
    font-size: 14px;
    opacity: 0.85;
  }
}

/* ===== Soft glow at top of footer ===== */
.moit-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #21c7a8, transparent);
}
