/* ============================================================
   MIGRATERIGHT — SITE FOOTER  (v3, compact + aligned)
   ============================================================ */

.mr-site-footer{
  margin-top: 64px;
  background:
    radial-gradient(700px 300px at 15% -10%, rgba(34,197,94,.10), transparent 70%),
    linear-gradient(180deg, #0f2419 0%, #0a1a12 100%);
  color: #dce9e1;
  border-top: 1px solid rgba(255,255,255,.08);
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.mr-site-footer::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34,197,94,.55), transparent);
}

.mr-footer-inner{
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 28px 24px;
}

/* ---------- MAIN GRID ---------- */
.mr-footer-main{
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 40px 44px;
  align-items: start;
  justify-items: start;
}

/* ---------- BRAND BLOCK ---------- */
.mr-footer-brand{
  max-width: 460px;
  text-align: left;
}
.mr-footer-logo{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.mr-footer-logo span[aria-hidden="true"]{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(135deg, #166534, #22c55e);
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(34,197,94,.28);
}
.mr-footer-brand p{
  max-width: 420px;
  margin: 0 0 20px;
  color: #a4b8ac;
  font-size: 12.5px;
  line-height: 1.7;
}
.mr-footer-trust{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mr-footer-trust span{
  padding: 5px 10px;
  border: 1px solid rgba(181,218,195,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: #bcd1c4;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: border-color .15s, background .15s;
}
.mr-footer-trust span:hover{
  border-color: rgba(34,197,94,.45);
  background: rgba(34,197,94,.08);
  color: #dff4e6;
}

/* ---------- LINK COLUMNS ---------- */
.mr-footer-column{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}
.mr-footer-column h2{
  display: block;
  width: 100%;
  text-align: left;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  position: relative;
}
/* Green underline anchored to the LEFT edge (aligned with link start) */
.mr-footer-column h2::after{
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  bottom: -1px;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, #22c55e, transparent);
  border-radius: 2px;
  transform: none;
}
.mr-footer-column a{
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 8px;
  padding: 2px 0;
  color: #a4b8ac !important;
  text-decoration: none !important;
  font-size: 12.5px;
  line-height: 1.45;
  text-align: left;
  transition: color .15s ease, transform .15s ease;
}
.mr-footer-column a:hover{
  color: #ffffff !important;
  transform: translateX(3px);
}
.mr-footer-column a:last-child{
  margin-bottom: 0;
}

/* ---------- SAFETY BANNER ---------- */
.mr-footer-safety{
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  margin-top: 40px;
  padding: 18px 20px;
  border: 1px solid rgba(171,215,188,.14);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(34,197,94,.06) 0%, rgba(255,255,255,.02) 100%);
  align-items: start;
}
.mr-footer-safety-icon{
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #166534, #22c55e);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 3px 10px rgba(34,197,94,.3);
  flex-shrink: 0;
}
.mr-footer-safety strong{
  display: block;
  margin: 2px 0 5px;
  color: #eaf4ed;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.mr-footer-safety p{
  margin: 0;
  color: #9fb3a7;
  font-size: 11.5px;
  line-height: 1.65;
  max-width: 900px;
}

/* ---------- ATTRIBUTION ---------- */
.mr-footer-attribution{
  margin-top: 16px;
  padding: 10px 14px;
  border-left: 3px solid rgba(34,197,94,.4);
  border-radius: 0 8px 8px 0;
  background: rgba(255,255,255,.025);
  color: #8fa497;
  font-size: 10.5px;
  line-height: 1.6;
}

/* ---------- BOTTOM BAR ---------- */
.mr-footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #7f9688;
  font-size: 11px;
  flex-wrap: wrap;
}

/* ---------- LEGACY ---------- */
.jobs-footer{ display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px){
  .mr-footer-main{
    grid-template-columns: minmax(280px, 1.4fr) repeat(2, minmax(140px, 1fr));
    gap: 36px;
  }
  .mr-footer-brand{
    grid-column: 1 / -1;
    max-width: 620px;
  }
}

@media (max-width: 720px){
  .mr-site-footer{ margin-top: 44px; }
  .mr-footer-inner{ padding: 36px 20px 20px; }
  .mr-footer-main{
    grid-template-columns: 1fr 1fr;
    gap: 30px 22px;
  }
  .mr-footer-brand{
    grid-column: 1 / -1;
    max-width: 100%;
  }
  /* Third column spans full width and splits into 2 sub-columns */
  .mr-footer-column:last-child{
    grid-column: 1 / -1;
    column-count: 2;
    column-gap: 22px;
  }
  .mr-footer-column:last-child h2{
    column-span: all;
    margin-bottom: 12px;
  }
  .mr-footer-safety{
    grid-template-columns: 26px 1fr;
    padding: 14px 16px;
    gap: 11px;
  }
  .mr-footer-safety-icon{ width: 24px; height: 24px; font-size: 11px; }
  .mr-footer-safety strong{ font-size: 12px; }
  .mr-footer-safety p{ font-size: 11px; }
}

@media (max-width: 480px){
  .mr-footer-inner{ padding: 30px 16px 18px; }
  .mr-footer-main{
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .mr-footer-column:last-child{
    column-count: 1;
  }
  .mr-footer-column a{ font-size: 12px; }
  .mr-footer-bottom{
    display: block;
    font-size: 10.5px;
    padding-top: 16px;
  }
  .mr-footer-bottom span{
    display: block;
    margin-top: 6px;
  }
}

/* ============================================================
   RTL SUPPORT (Urdu)
   ============================================================ */
html[dir="rtl"] .mr-footer-main{
  direction: rtl;
  justify-items: end;
}
html[dir="rtl"] .mr-footer-brand{
  text-align: right;
}
html[dir="rtl"] .mr-footer-trust{
  justify-content: flex-end;
}
html[dir="rtl"] .mr-footer-column{
  align-items: flex-end;
  text-align: right;
}
html[dir="rtl"] .mr-footer-column h2{
  text-align: right;
}
html[dir="rtl"] .mr-footer-column h2::after{
  left: auto;
  right: 0;
  background: linear-gradient(270deg, #22c55e, transparent);
}
html[dir="rtl"] .mr-footer-column a{
  text-align: right;
}
html[dir="rtl"] .mr-footer-column a:hover{
  transform: translateX(-3px);
}
html[dir="rtl"] .mr-footer-safety{
  direction: rtl;
}
html[dir="rtl"] .mr-footer-attribution{
  border-left: 0;
  border-right: 3px solid rgba(34,197,94,.4);
  border-radius: 8px 0 0 8px;
}
html[dir="rtl"] .mr-footer-bottom{
  flex-direction: row-reverse;
}