:root {
  --mfg-navy: #061b3a;
  --mfg-blue: #003a70;
  --mfg-blue-2: #075996;
  --mfg-cyan: #3fd6ff;
  --mfg-pink: #f05aa6;
  --mfg-muted: #667085;
  --mfg-soft: #f4f9fc;
  --mfg-line: #dce8f1;
  --mfg-white: #ffffff;
  --mfg-shadow: 0 22px 60px rgba(8, 31, 62, 0.12);
  --mfg-radius: 24px;
  --mfg-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.mfg-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--mfg-navy);
  background:
    radial-gradient(circle at 10% 14%, rgba(240, 90, 166, 0.07), transparent 28%),
    radial-gradient(circle at 90% 14%, rgba(63, 214, 255, 0.10), transparent 26%),
    linear-gradient(180deg, #f7fbfe 0%, #ffffff 50%, #f4f9fc 100%);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input { font-family: inherit; }

.mfg-container {
  width: min(var(--mfg-max), calc(100% - 48px));
  margin: 0 auto;
}
.mfg-narrow { max-width: 900px; }
.mfg-main { padding-top: 86px; }

.mfg-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  transform: translateY(-160%);
  background: var(--mfg-pink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
}
.mfg-skip-link:focus { transform: translateY(0); }

/* Minimal help-center header */
.mfg-site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(220, 232, 241, 0.95);
  box-shadow: 0 10px 28px rgba(8, 31, 62, 0.06);
  backdrop-filter: blur(14px);
}
.mfg-header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.mfg-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.mfg-brand img {
  width: 150px;
  height: auto;
  display: block;
}
.mfg-brand span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 8px 12px;
  border-inline-start: 1px solid #dce8f1;
  color: var(--mfg-blue);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}
.mfg-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.mfg-header-ghost,
.mfg-header-primary,
.mfg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.mfg-header-ghost,
.mfg-btn-secondary {
  color: var(--mfg-blue);
  background: #ffffff;
  border: 1px solid #cde0ed;
}
.mfg-header-primary,
.mfg-btn-primary {
  background: var(--mfg-pink);
  color: #fff;
  border: 1px solid var(--mfg-pink);
  box-shadow: 0 16px 34px rgba(240, 90, 166, 0.24);
}
.mfg-header-ghost:hover,
.mfg-btn-secondary:hover,
.mfg-header-primary:hover,
.mfg-btn-primary:hover {
  transform: translateY(-2px);
}
.mfg-header-ghost:hover,
.mfg-btn-secondary:hover {
  box-shadow: 0 16px 36px rgba(8, 31, 62, 0.10);
}
.mfg-header-primary:hover,
.mfg-btn-primary:hover {
  box-shadow: 0 20px 42px rgba(240, 90, 166, 0.32);
}

/* Common */
.mfg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--mfg-pink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.mfg-kicker::after {
  content: '';
  width: 44px;
  height: 2px;
  background: var(--mfg-pink);
  border-radius: 999px;
}
.mfg-section { padding: 72px 0; }
.mfg-section-head {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}
.mfg-section-head h2,
.mfg-inner-title h1,
.mfg-hero-copy h1 {
  margin: 0;
  color: var(--mfg-navy);
  font-weight: 900;
  letter-spacing: -0.055em;
}
.mfg-section-head h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.05; }
.mfg-section-head p,
.mfg-inner-title p,
.mfg-hero-copy p {
  color: var(--mfg-muted);
  font-size: 17px;
  line-height: 1.9;
  margin: 18px 0 0;
}

/* Home hero */
.mfg-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 78px;
  color: #fff;
  background:
    radial-gradient(circle at 72% 18%, rgba(63, 214, 255, 0.16), transparent 30%),
    radial-gradient(circle at 16% 18%, rgba(240, 90, 166, 0.13), transparent 30%),
    linear-gradient(135deg, #002f6f 0%, #003a70 52%, #061b3a 100%);
}
.mfg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 64px 64px;
}
.mfg-hero::after {
  content: '';
  position: absolute;
  width: 440px;
  height: 440px;
  right: -120px;
  bottom: -200px;
  background: rgba(255,255,255,.06);
  transform: rotate(18deg);
  border-radius: 44px;
}
.mfg-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .72fr);
  gap: 54px;
  align-items: center;
}
.mfg-hero-copy h1 {
  color: #fff;
  font-size: clamp(46px, 6vw, 78px);
  line-height: .98;
  max-width: 740px;
}
.mfg-hero-copy p {
  color: rgba(255,255,255,.78);
  max-width: 640px;
}
.mfg-hero .mfg-kicker { color: #fff; }
.mfg-hero .mfg-kicker::after { background: var(--mfg-pink); }
.mfg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.mfg-hero-card {
  padding: 32px;
  border-radius: 28px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 80px rgba(0,0,0,.15);
  backdrop-filter: blur(12px);
}
.mfg-hero-stat {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.mfg-hero-stat strong {
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  color: #fff;
}
.mfg-hero-stat span {
  color: rgba(255,255,255,.78);
  font-size: 14px;
  font-weight: 900;
}
.mfg-hero-note {
  margin-top: 22px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(240,90,166,.18);
  color: #fff;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 800;
}

/* Roles and modules */
.mfg-role-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 940px;
  margin: 0 auto 24px;
  padding: 12px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e5eef5;
  box-shadow: 0 16px 48px rgba(8,31,62,.08);
}
.mfg-role-tab {
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  background: #eef6fb;
  color: var(--mfg-blue);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.mfg-role-tab:hover { transform: translateY(-2px); }
.mfg-role-tab.is-active {
  background: var(--mfg-blue);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0,58,112,.20);
}
.mfg-search-wrap {
  position: relative;
  max-width: 580px;
  margin: 0 auto 34px;
}
.mfg-search-wrap input {
  width: 100%;
  min-height: 58px;
  padding: 0 52px 0 18px;
  border-radius: 18px;
  border: 1px solid #dce8f1;
  background: #fff;
  color: var(--mfg-navy);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(8,31,62,.07);
  outline: none;
}
[dir="rtl"] .mfg-search-wrap input { padding: 0 18px 0 52px; }
.mfg-search-wrap input:focus {
  border-color: rgba(240,90,166,.55);
  box-shadow: 0 0 0 4px rgba(240,90,166,.10), 0 16px 40px rgba(8,31,62,.07);
}
.mfg-search-wrap span {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: var(--mfg-blue);
  font-size: 20px;
  font-weight: 900;
}
[dir="rtl"] .mfg-search-wrap span { right: auto; left: 18px; }
.mfg-tab-panel[hidden] { display: none !important; }
.mfg-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.mfg-module-card {
  position: relative;
  min-height: 238px;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(220, 232, 241, .95);
  box-shadow: 0 18px 44px rgba(8, 31, 62, .08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
[dir="rtl"] .mfg-module-card { align-items: flex-end; text-align: right; }
.mfg-module-card::after {
  content: '';
  position: absolute;
  width: 130px;
  height: 130px;
  right: -52px;
  bottom: -56px;
  background: radial-gradient(circle, rgba(63, 214, 255, .22), transparent 70%);
}
.mfg-module-card:hover {
  transform: translateY(-7px);
  background: var(--mfg-blue);
  border-color: rgba(255,255,255,.20);
  box-shadow: 0 28px 70px rgba(8, 31, 62, .18);
}
.mfg-module-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #eef8fd;
  transition: background .2s ease;
}
.mfg-module-icon img { width: 32px; height: 32px; object-fit: contain; transition: filter .2s ease; }
.mfg-module-card strong {
  color: var(--mfg-navy);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 900;
  transition: color .2s ease;
}
.mfg-module-card small {
  color: var(--mfg-muted);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 500;
  transition: color .2s ease;
}
.mfg-module-card em {
  margin-top: auto;
  color: var(--mfg-pink);
  font-style: normal;
  font-weight: 900;
  transition: color .2s ease;
}
.mfg-module-card:hover .mfg-module-icon { background: rgba(255,255,255,.13); }
.mfg-module-card:hover .mfg-module-icon img { filter: brightness(0) invert(1); }
.mfg-module-card:hover strong,
.mfg-module-card:hover small,
.mfg-module-card:hover em { color: #fff; }

/* Inner pages */
.mfg-inner-hero {
  padding: 70px 0 42px;
  background:
    radial-gradient(circle at 18% 20%, rgba(240, 90, 166, .10), transparent 24%),
    linear-gradient(180deg, #f7fbfe, #fff);
}
.mfg-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
  color: var(--mfg-muted);
  font-size: 14px;
  font-weight: 700;
}
.mfg-breadcrumb a { color: var(--mfg-blue); }
.mfg-breadcrumb strong { color: var(--mfg-navy); }
.mfg-inner-title { max-width: 900px; margin: 0 auto; text-align: center; }
.mfg-inner-title h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.08; }
.mfg-detail-title h1 { font-size: clamp(34px, 4vw, 56px); }
.mfg-questions-section { padding-top: 32px; }
.mfg-question-list { display: grid; gap: 14px; }
.mfg-question-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--mfg-line);
  box-shadow: 0 12px 34px rgba(8, 31, 62, .06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.mfg-question-item:hover { transform: translateY(-3px); border-color: rgba(240,90,166,.30); box-shadow: var(--mfg-shadow); }
.mfg-question-item span {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef8fd;
  color: var(--mfg-blue);
  font-weight: 900;
}
.mfg-question-item strong { font-size: 16px; line-height: 1.55; color: var(--mfg-navy); }
.mfg-question-item em { color: var(--mfg-pink); font-style: normal; font-size: 13px; font-weight: 900; white-space: nowrap; }
.mfg-bottom-actions { margin-top: 30px; display: flex; justify-content: center; }

/* Details */
.mfg-details-section { padding-top: 34px; }
.mfg-detail-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.mfg-detail-sidebar { position: sticky; top: 116px; display: grid; gap: 16px; }
.mfg-sidebar-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--mfg-line);
  color: var(--mfg-blue);
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(8,31,62,.06);
}
.mfg-sidebar-card {
  padding: 22px;
  border-radius: 20px;
  background: var(--mfg-blue);
  color: #fff;
  box-shadow: 0 18px 44px rgba(0,58,112,.20);
}
.mfg-sidebar-card span { display: block; color: rgba(255,255,255,.76); font-size: 13px; font-weight: 800; }
.mfg-sidebar-card strong { display: block; margin: 7px 0 8px; font-size: 22px; line-height: 1.25; font-weight: 900; }
.mfg-sidebar-card small { color: rgba(255,255,255,.80); font-weight: 700; }
.mfg-steps { display: grid; gap: 20px; }
.mfg-step-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--mfg-line);
  box-shadow: 0 16px 42px rgba(8,31,62,.07);
}
.mfg-step-number {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--mfg-blue), var(--mfg-blue-2));
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0,58,112,.22);
}
.mfg-step-content h2 { margin: 3px 0 10px; color: var(--mfg-navy); font-size: 22px; line-height: 1.3; font-weight: 900; }
.mfg-step-content p { margin: 0; color: #47566b; font-size: 16px; line-height: 1.8; }
.mfg-step-images {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}
.mfg-step-image-link {
  display: inline-flex;
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #dce8f1;
  background: #f7fbfe;
  box-shadow: 0 14px 34px rgba(8,31,62,.08);
}
.mfg-step-image-link img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* States */
.mfg-empty,
.mfg-empty-card {
  text-align: center;
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--mfg-line);
  color: var(--mfg-muted);
  box-shadow: var(--mfg-shadow);
}
.mfg-empty-card { margin: 90px auto; max-width: 620px; }
.mfg-empty-card h1 { margin: 0 0 12px; color: var(--mfg-navy); }

/* Main website footer - copied/adapted for help.marafiqy.sa */
.mfy-site-footer {
  margin-top: 70px;
  background:
    radial-gradient(circle at 18% 20%, rgba(240, 90, 166, 0.08), transparent 30%),
    linear-gradient(135deg, #06101f 0%, #071a31 55%, #002a55 100%);
  color: #ffffff;
  width: 100%;
  overflow: hidden;
}
.mfy-footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 72px 24px 30px;
}
.mfy-footer-main {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr 0.9fr 1.15fr;
  gap: 34px;
  align-items: start;
}
.mfy-footer-logo {
  display: inline-flex;
  margin-bottom: 20px;
}
.mfy-footer-logo img {
  width: 150px;
  max-width: 100%;
  height: auto;
  display: block;
}
.mfy-footer-brand p,
.mfy-footer-col p {
  color: rgba(255,255,255,0.74);
  font-size: 15px;
  line-height: 1.85;
  margin: 0;
}
.mfy-footer-brand p { max-width: 330px; }
.mfy-footer-col h4 {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 800;
  margin: 0 0 18px;
  position: relative;
}
.mfy-footer-col h4::after {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  background: #f05aa6;
  border-radius: 999px;
  margin-top: 10px;
}
.mfy-footer-en .mfy-footer-col h4::after { margin-left: 0; margin-right: auto; }
.mfy-footer-ar .mfy-footer-col h4::after { margin-right: 0; margin-left: auto; }
.mfy-footer-col a,
.mfy-footer-social a,
.mfy-footer-lang a {
  display: block;
  color: rgba(255,255,255,0.72) !important;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 12px;
  text-decoration: none !important;
  transition: color 0.22s ease, transform 0.22s ease;
}
.mfy-footer-col a:hover,
.mfy-footer-social a:hover,
.mfy-footer-lang a:hover {
  color: #ffffff !important;
  transform: translateX(3px);
}
.mfy-footer-ar .mfy-footer-col a:hover,
.mfy-footer-ar .mfy-footer-social a:hover,
.mfy-footer-ar .mfy-footer-lang a:hover { transform: translateX(-3px); }
.mfy-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.mfy-footer-social a {
  display: inline-flex;
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  font-weight: 700;
}
.mfy-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mfy-footer-bottom p {
  color: rgba(255,255,255,0.68);
  font-size: 14px;
  margin: 0;
}
.mfy-footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.mfy-footer-lang a,
.mfy-footer-lang span {
  display: inline-flex;
  margin: 0;
  color: rgba(255,255,255,0.7) !important;
  font-size: 14px;
}
html[lang^="en"] .mfy-footer-ar,
html[lang^="ar"] .mfy-footer-en { display: none !important; }
body.rtl .mfy-footer-en { display: none !important; }
body:not(.rtl) .mfy-footer-ar { display: none !important; }
.mfy-footer-ar .mfy-footer-contact a[href^="mailto"],
.mfy-footer-ar .mfy-footer-contact a[href^="tel"] {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

/* Back to top */
.mfg-back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--mfg-blue);
  box-shadow: 0 18px 48px rgba(8,31,62,.18);
  font-size: 22px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  cursor: pointer;
}
.mfg-back-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
[dir="rtl"] .mfg-back-top { right: auto; left: 22px; }

/* Reveal */
.mfg-reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.mfg-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1100px) {
  .mfg-module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mfg-hero-grid { grid-template-columns: 1fr; }
  .mfg-hero-card { max-width: 620px; }
  .mfy-footer-main { grid-template-columns: 1.2fr 1fr 1fr; }
  .mfy-footer-brand { grid-column: 1 / -1; }
  .mfy-footer-brand p { max-width: 620px; }
}
@media (max-width: 900px) {
  .mfg-main { padding-top: 78px; }
  .mfg-header-inner { min-height: 78px; }
  .mfg-brand img { width: 134px; }
  .mfg-brand span { display: none; }
  .mfg-header-ghost,
  .mfg-header-primary { min-height: 42px; padding: 12px 16px; font-size: 13px; }
  .mfg-role-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mfg-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mfg-detail-layout { grid-template-columns: 1fr; }
  .mfg-detail-sidebar { position: static; }
  .mfg-sidebar-card { display: none; }
}
@media (max-width: 767px) {
  .mfg-container { width: min(100% - 30px, var(--mfg-max)); }
  .mfg-header-inner { gap: 12px; }
  .mfg-brand img { width: 126px; }
  .mfg-header-actions { gap: 8px; }
  .mfg-header-ghost { display: none; }
  .mfg-header-primary { padding: 11px 14px; }
  .mfg-hero { padding: 62px 0 54px; }
  .mfg-hero-copy h1 { font-size: 42px; }
  .mfg-hero-copy p,
  .mfg-section-head p,
  .mfg-inner-title p { font-size: 15px; line-height: 1.8; }
  .mfg-section { padding: 52px 0; }
  .mfg-role-tabs { grid-template-columns: 1fr; }
  .mfg-module-grid { grid-template-columns: 1fr; gap: 16px; }
  .mfg-module-card { min-height: 218px; }
  .mfg-question-item { grid-template-columns: 44px minmax(0, 1fr); }
  .mfg-question-item em { grid-column: 2; }
  .mfg-step-card { grid-template-columns: 1fr; padding: 20px; }
  .mfg-step-number { width: 48px; height: 48px; }
  .mfy-footer-inner { padding: 54px 20px 28px; }
  .mfy-footer-main { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .mfy-footer-logo,
  .mfy-footer-social,
  .mfy-footer-bottom,
  .mfy-footer-lang { justify-content: center; }
  .mfy-footer-logo { margin-left: auto; margin-right: auto; }
  .mfy-footer-brand p { max-width: 100%; }
  .mfy-footer-col h4::after,
  .mfy-footer-en .mfy-footer-col h4::after,
  .mfy-footer-ar .mfy-footer-col h4::after { margin-left: auto; margin-right: auto; }
  .mfy-footer-col a:hover,
  .mfy-footer-ar .mfy-footer-col a:hover,
  .mfy-footer-social a:hover,
  .mfy-footer-lang a:hover { transform: none; }
  .mfy-footer-bottom { flex-direction: column; margin-top: 36px; }
}
@media (max-width: 420px) {
  .mfg-brand img { width: 116px; }
  .mfg-header-primary { font-size: 12px; padding: 10px 12px; }
  .mfg-hero-copy h1 { font-size: 38px; }
  .mfg-hero-card { padding: 24px; }
}

/* =========================================================
   V3 visual alignment with main Marafiqy website
   ========================================================= */
body.mfg-body {
  background: #ffffff;
  color: #10213a;
}

.mfg-container {
  width: min(1180px, calc(100% - 48px));
}

.mfg-main {
  padding-top: 86px;
}

/* Header: logo + two actions only */
.mfg-site-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e8eef4;
  box-shadow: 0 10px 28px rgba(0, 42, 85, 0.06);
}

.mfg-header-inner {
  min-height: 86px;
}

.mfg-brand {
  gap: 0;
}

.mfg-brand img {
  width: 138px;
  max-height: 58px;
  object-fit: contain;
}

.mfg-brand span {
  display: none !important;
}

.mfg-header-actions {
  gap: 14px;
}

.mfg-header-ghost,
.mfg-header-primary,
.mfg-btn {
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
}

.mfg-header-ghost,
.mfg-btn-secondary {
  background: #ffffff;
  color: #003a70 !important;
  border: 1px solid #d7e7f0;
  box-shadow: none;
}

.mfg-header-primary,
.mfg-btn-primary {
  background: #f05aa6;
  color: #ffffff !important;
  border: 1px solid #f05aa6;
  box-shadow: 0 14px 30px rgba(240, 90, 166, 0.25);
}

.mfg-header-ghost:hover,
.mfg-btn-secondary:hover {
  background: #f4f9fc;
  box-shadow: 0 14px 34px rgba(0, 42, 85, 0.10);
}

.mfg-header-primary:hover,
.mfg-btn-primary:hover {
  box-shadow: 0 18px 40px rgba(240, 90, 166, 0.32);
}

/* Hero aligned with main website */
.mfg-hero {
  position: relative;
  padding: 96px 0 86px;
  background:
    radial-gradient(circle at 18% 30%, rgba(240, 90, 166, 0.14), transparent 32%),
    linear-gradient(135deg, #002a55 0%, #003a70 48%, #0a5792 100%);
  isolation: isolate;
}

.mfg-hero::before {
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
}

.mfg-hero::after {
  content: "";
  position: absolute;
  inset-inline-start: -80px;
  bottom: -80px;
  width: 420px;
  height: 420px;
  border: 52px solid rgba(255,255,255,0.045);
  transform: rotate(12deg);
  border-radius: 0;
  background: transparent;
  z-index: 0;
}

.mfg-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 46px;
  align-items: center;
}

.mfg-hero-copy h1 {
  color: #ffffff;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 680px;
}

.mfg-hero-copy p {
  color: rgba(255,255,255,0.82);
  font-size: 17px;
  line-height: 1.9;
  max-width: 620px;
}

.mfg-hero .mfg-kicker {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 800;
}

.mfg-hero .mfg-kicker::after {
  width: 34px;
  height: 3px;
  background: #f05aa6;
}

.mfg-hero-actions {
  gap: 14px;
  margin-top: 32px;
}

.mfg-hero .mfg-btn-secondary {
  background: rgba(255,255,255,0.10);
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.28);
}

.mfg-hero .mfg-btn-secondary:hover {
  background: rgba(255,255,255,0.16);
}

.mfg-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.mfg-hero-tags span {
  display: inline-flex;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.86);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 13px;
  font-weight: 700;
}

.mfg-hero-visual {
  position: relative;
  max-width: 680px;
  justify-self: center;
}

.mfg-hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% 8% -2% 8%;
  background: rgba(0,0,0,0.22);
  filter: blur(28px);
  border-radius: 32px;
  z-index: -1;
}

.mfg-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  animation: mfgFloatSoft 6.5s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}

@keyframes mfgFloatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Role section closer to website spacing */
.mfg-section {
  padding: 92px 0;
}

.mfg-section-head h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mfg-section-head p {
  font-size: 17px;
  line-height: 1.9;
}

.mfg-role-tabs {
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 42, 85, 0.07);
}

.mfg-role-tab {
  border-radius: 10px;
}

.mfg-module-card {
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(0, 42, 85, 0.07);
}

/* Footer must mirror the main website footer */
.mfy-site-footer {
  margin-top: 0;
}

.mfy-footer-logo img {
  width: 150px;
  max-height: 90px;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .mfg-hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .mfg-hero-copy {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
  }

  .mfg-hero-copy p,
  .mfg-hero-copy h1 {
    margin-inline: auto;
  }

  .mfg-hero-actions,
  .mfg-hero-tags {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .mfg-container {
    width: min(100% - 32px, 1180px);
  }

  .mfg-header-inner {
    min-height: 78px;
    gap: 12px;
  }

  .mfg-brand img {
    width: 116px;
    max-height: 48px;
  }

  .mfg-header-actions {
    gap: 8px;
  }

  .mfg-header-ghost,
  .mfg-header-primary {
    min-height: 42px;
    padding: 11px 13px;
    border-radius: 9px;
    font-size: 12px;
  }

  .mfg-main {
    padding-top: 78px;
  }

  .mfg-hero {
    padding: 70px 0 62px;
  }

  .mfg-hero-copy h1 {
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1.15;
  }

  .mfg-hero-copy p {
    font-size: 15px;
    line-height: 1.85;
  }

  .mfg-btn {
    width: auto;
    min-height: 48px;
    padding: 13px 18px;
    font-size: 14px;
  }

  .mfg-hero-tags span {
    font-size: 12px;
  }
}

/* =========================================================
   V4 typography and footer-logo alignment
   - Keep the main hero strong
   - Reduce help-center body/card font heaviness
   - Use footer logo suited for dark footer background
   ========================================================= */

body.mfg-body {
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header buttons should feel like the main website, not extra-heavy */
.mfg-header-ghost,
.mfg-header-primary,
.mfg-btn {
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

/* Keep hero headline strong, but less bulky than before */
.mfg-hero-copy h1 {
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
}

.mfg-hero-copy p,
.mfg-section-head p,
.mfg-inner-title p {
  font-weight: 400 !important;
}

.mfg-kicker,
.mfg-hero .mfg-kicker {
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.mfg-hero-tags span {
  font-weight: 600 !important;
}

/* Main guide section typography */
.mfg-section-head h2,
.mfg-inner-title h1 {
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
}

.mfg-role-tab {
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

.mfg-search-wrap input {
  font-weight: 400 !important;
}

.mfg-module-card strong {
  font-weight: 700 !important;
  font-size: 19px !important;
  letter-spacing: -0.015em;
}

.mfg-module-card small {
  font-weight: 400 !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
}

.mfg-module-card em {
  font-weight: 700 !important;
}

/* Questions and details pages */
.mfg-breadcrumb {
  font-weight: 500 !important;
}

.mfg-question-item span {
  font-weight: 700 !important;
}

.mfg-question-item strong {
  font-weight: 600 !important;
  letter-spacing: -0.01em;
}

.mfg-question-item em {
  font-weight: 700 !important;
}

.mfg-sidebar-back,
.mfg-step-number {
  font-weight: 700 !important;
}

.mfg-sidebar-card span,
.mfg-sidebar-card small {
  font-weight: 500 !important;
}

.mfg-sidebar-card strong {
  font-weight: 700 !important;
}

.mfg-step-content h2 {
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

.mfg-step-content p {
  font-weight: 400 !important;
}

/* Footer should match the website footer feel and use the dark-background logo */
.mfy-footer-logo img {
  width: 150px !important;
  max-height: 90px !important;
  object-fit: contain !important;
}

.mfy-footer-brand p,
.mfy-footer-col p {
  font-weight: 400 !important;
}

.mfy-footer-col h4 {
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

.mfy-footer-col a,
.mfy-footer-social a,
.mfy-footer-lang a {
  font-weight: 400 !important;
}

.mfy-footer-social a {
  font-weight: 600 !important;
}

.mfy-footer-bottom p,
.mfy-footer-lang span {
  font-weight: 400 !important;
}

/* =========================================================
   V5 bilingual support
   ========================================================= */
html[lang="ar"] body.mfg-body,
body.mfg-body.rtl {
  font-family: 'Noto Sans Arabic', 'Poppins', Arial, sans-serif;
}

html[lang="ar"] .mfg-hero-copy h1,
html[lang="ar"] .mfg-section-head h2,
html[lang="ar"] .mfg-inner-title h1,
html[lang="ar"] .mfg-step-content h2,
html[lang="ar"] .mfg-module-card strong,
html[lang="ar"] .mfg-question-item strong {
  letter-spacing: 0 !important;
}

html[lang="ar"] .mfg-hero-copy p,
html[lang="ar"] .mfg-section-head p,
html[lang="ar"] .mfg-inner-title p,
html[lang="ar"] .mfg-step-content p,
html[lang="ar"] .mfg-module-card small {
  line-height: 1.95;
}

/* =========================================================
   V6 final header language switch
   ========================================================= */
.mfg-language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 4px;
  border: 1px solid #dce5ee;
  border-radius: 9px;
  background: #ffffff;
  direction: ltr;
  flex-shrink: 0;
}

.mfg-language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 6px 7px;
  border-radius: 7px;
  color: #006bdb;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease;
}

.mfg-language-switch a:hover,
.mfg-language-switch a.is-active {
  color: #003a70;
  background: #f1f7fb;
}

@media (max-width: 767px) {
  .mfg-language-switch {
    min-height: 40px;
    padding: 3px;
  }

  .mfg-language-switch a {
    min-width: 30px;
    min-height: 32px;
    padding: 5px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .mfg-brand img {
    width: 104px;
  }

  .mfg-header-actions {
    gap: 6px;
  }

  .mfg-header-primary {
    padding: 10px 9px;
    font-size: 11px;
  }

  .mfg-language-switch a {
    min-width: 27px;
  }
}
