/* Exact medical homepage header + footer chrome for all frontend pages */
:root {
  --navy: #163e76;
  --navy-d: #0f2c57;
  --purple: #713fbd;
  --purple-d: #5b2fa3;
  --purple-soft: #f3edfc;
  --cyan: #22a4d0;
  --green: #76af2d;
  --orange: #f89c1e;
  --ink: #14213d;
  --muted: #5b6478;
  --line: #e7e3f0;
  --canvas: #f8f6fc;
  --white: #fff;
  --font: "IBM Plex Sans Arabic", "Montserrat", system-ui, sans-serif;
}

html[lang="en"] {
  --font: "Montserrat", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

/* ── Header ── */
header.top.mci-home-chrome {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
  padding: 0 !important;
}

header.top.mci-home-chrome .wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 78px;
}

header.top.mci-home-chrome .logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none !important;
}

header.top.mci-home-chrome .logo img {
  height: 42px;
  width: auto;
  display: block;
}

/* Avoid Bootstrap .nav flex-wrap fighting the header */
header.top.mci-home-chrome .mci-nav {
  display: flex !important;
  flex: 1 1 auto;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 22px);
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.2;
  color: #33405a;
}

header.top.mci-home-chrome .mci-nav a {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0;
  margin: 0;
  color: inherit !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  line-height: 1.2;
}

header.top.mci-home-chrome .mci-nav a:hover {
  color: var(--purple) !important;
}

header.top.mci-home-chrome .mci-nav a.on {
  color: var(--purple) !important;
}

header.top.mci-home-chrome .mci-nav a.on::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 6px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--purple);
}

header.top.mci-home-chrome .side {
  flex: 0 0 auto;
  margin-inline-start: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

header.top.mci-home-chrome .tel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  font-weight: 700;
  color: var(--navy) !important;
  font-size: 14.5px;
  direction: ltr;
  text-decoration: none !important;
  white-space: nowrap;
}

header.top.mci-home-chrome .tel svg {
  width: 16px;
  height: 16px;
  color: var(--purple);
  flex: none;
}

header.top.mci-home-chrome .lang {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  background: var(--canvas);
  padding: 3px;
  box-shadow: inset 0 0 0 1px var(--line);
  height: 40px;
  box-sizing: border-box;
}

header.top.mci-home-chrome .lang button {
  border: 0;
  background: transparent;
  font: 700 12px var(--font);
  color: var(--muted);
  padding: 6px 9px;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
}

header.top.mci-home-chrome .lang button[aria-pressed="true"] {
  background: #fff;
  color: var(--purple);
  box-shadow: 0 1px 3px rgba(20, 33, 61, 0.12);
}

header.top.mci-home-chrome .btn-primary,
header.top.mci-home-chrome a.btn-primary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 42px !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  background: var(--purple) !important;
  background-image: none !important;
  border: 0 !important;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px -10px rgba(113, 63, 189, 0.7) !important;
  white-space: nowrap !important;
  flex: 0 0 auto;
}

header.top.mci-home-chrome .btn-primary:hover {
  background: var(--purple-d) !important;
  transform: translateY(-1px);
  color: #fff !important;
}

header.top.mci-home-chrome .btn-primary::before {
  display: none !important;
}

header.top.mci-home-chrome .menu-btn {
  display: none;
  border: 0;
  background: var(--canvas);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--navy);
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
}

/* ── Footer (exact medical homepage) ── */
footer.mci-home-chrome {
  background: linear-gradient(160deg, #7a45c8 0%, var(--purple) 45%, #4e2794 100%) !important;
  background-image: linear-gradient(160deg, #7a45c8 0%, #713fbd 45%, #4e2794 100%) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 64px 0 28px !important;
  font-size: 15px !important;
  font-family: var(--font) !important;
  border: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  position: relative !important;
  z-index: 1;
}

footer.mci-home-chrome::before {
  display: none !important;
}

footer.mci-home-chrome .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

footer.mci-home-chrome .cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}

footer.mci-home-chrome .logo {
  display: inline-block;
  text-decoration: none !important;
}

footer.mci-home-chrome .logo img {
  height: 50px !important;
  width: auto !important;
  max-width: 220px;
  display: block;
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

footer.mci-home-chrome .about-t {
  margin: 18px 0 22px;
  line-height: 1.75;
  max-width: 380px;
  color: rgba(255, 255, 255, 0.85);
}

footer.mci-home-chrome h4 {
  color: #fff !important;
  margin: 6px 0 16px !important;
  font-size: 16px !important;
  font-weight: 700;
}

footer.mci-home-chrome h4::after {
  display: none !important;
}

footer.mci-home-chrome ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

footer.mci-home-chrome a:not(.btn):not(.btn-white) {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
}

footer.mci-home-chrome a:not(.btn):not(.btn-white):hover {
  color: #fff !important;
}

footer.mci-home-chrome li,
footer.mci-home-chrome p,
footer.mci-home-chrome span {
  color: inherit;
}

footer.mci-home-chrome .cols > div {
  min-width: 0;
}

footer.mci-home-chrome details summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

footer.mci-home-chrome details summary::-webkit-details-marker {
  display: none;
}

footer.mci-home-chrome details summary::after {
  content: "▾";
  font-size: 12px;
  opacity: 0.7;
}

footer.mci-home-chrome details ul {
  margin-top: 10px;
  padding-inline-start: 12px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.3);
}

footer.mci-home-chrome a.btn,
footer.mci-home-chrome .btn-white,
footer.mci-home-chrome a.btn-white {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 44px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
  background: #fff !important;
  background-image: none !important;
  color: #713fbd !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

footer.mci-home-chrome a.btn:hover,
footer.mci-home-chrome .btn-white:hover,
footer.mci-home-chrome a.btn-white:hover {
  transform: translateY(-1px);
  background: #fff !important;
  color: #5b2fa3 !important;
}

footer.mci-home-chrome .social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

footer.mci-home-chrome .social a {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  display: grid !important;
  place-items: center;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

footer.mci-home-chrome .social a:hover {
  background: #fff !important;
  color: var(--purple) !important;
  transform: none !important;
}

footer.mci-home-chrome .social svg {
  width: 18px;
  height: 18px;
}

footer.mci-home-chrome .legal {
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

footer.mci-home-chrome .legal .tl {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

footer.mci-home-chrome .legal .tl b {
  color: #fff;
  font-size: 15px;
  margin-inline-end: 6px;
}

footer.mci-home-chrome .legal .tl .lg {
  background: #fff;
  border-radius: 10px;
  height: 56px;
  padding: 8px 14px;
  display: grid;
  place-items: center;
}

footer.mci-home-chrome .legal .tl .lg img {
  height: 38px;
  width: auto;
  display: block;
}

footer.mci-home-chrome .addr {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
}

footer.mci-home-chrome .addr svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

footer.mci-home-chrome .copy {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13.5px;
}

@media (max-width: 1180px) {
  header.top.mci-home-chrome .mci-nav {
    display: none !important;
  }

  header.top.mci-home-chrome .menu-btn {
    display: grid;
  }

  header.top.mci-home-chrome .tel span {
    display: none;
  }

  header.top.mci-home-chrome .side {
    margin-inline-start: auto;
  }

  header.top.mci-home-chrome .mci-nav.open {
    display: flex !important;
    position: absolute;
    top: 78px;
    inset-inline: 0;
    flex-direction: column;
    flex-wrap: nowrap !important;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    box-shadow: 0 20px 30px -20px rgba(20, 33, 61, 0.25);
    z-index: 1031;
  }

  header.top.mci-home-chrome .mci-nav.open a {
    height: auto;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  header.top.mci-home-chrome .mci-nav.open a.on::after {
    display: none;
  }

  footer.mci-home-chrome .cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  header.top.mci-home-chrome .wrap {
    gap: 12px;
    height: 68px;
    padding: 0 16px;
  }

  header.top.mci-home-chrome .logo img {
    height: 36px;
  }

  header.top.mci-home-chrome .btn-primary {
    display: none !important;
  }

  header.top.mci-home-chrome .mci-nav.open {
    top: 68px;
  }

  header.top.mci-home-chrome .tel {
    display: none;
  }

  footer.mci-home-chrome .wrap {
    padding: 0 16px;
  }

  footer.mci-home-chrome .cols {
    grid-template-columns: 1fr;
  }
}
