
/* One shared header, rendered by the PHP snippet. */
:root[data-mibmed-theme="light"] {color-scheme:light}
:root[data-mibmed-theme="dark"] {color-scheme:dark}
:root[data-mibmed-theme="light"] body {background-color:#f7f9f8}
:root[data-mibmed-theme="dark"] body {background-color:#101c2a}
.mgh-header {--mh-bg:#ffffff;--mh-text:#16334b;--mh-muted:#526473;--mh-accent:#086f6b;--mh-soft:#e8f3f0;--mh-line:#dce5e4;--mh-button:#086f6b;--mh-on-button:#fff;--mh-glass:#ffffffed;position:sticky;top:0;z-index:9990;width:100%;font:14px/1.7 "Cairo",sans-serif;color:var(--mh-text);background:var(--mh-bg);border-bottom:1px solid var(--mh-line);text-align:start;transition:box-shadow .25s}
:root[data-mibmed-theme="dark"] .mgh-header {--mh-bg:#101c2a;--mh-text:#edf3f7;--mh-muted:#b3c4d2;--mh-accent:#87ded0;--mh-soft:#213d40;--mh-line:#344858;--mh-button:#87ded0;--mh-on-button:#102d2c;--mh-glass:#101c2aed}
.mgh-header,.mgh-header *,.mgh-header *::before,.mgh-header *::after {box-sizing:border-box}
.mgh-shell {position:sticky;top:0;z-index:9990;pointer-events:none}
.mgh-shell.is-enhanced {height:103px}
.mgh-shell .mgh-header {position:relative;top:0;pointer-events:auto;--mh-compact-height:71px}
body.admin-bar .mgh-shell {top:32px}
.mgh-header [hidden] {display:none!important}
.mgh-header .mgh-bar {display:flex;align-items:center;gap:20px;width:min(1360px,100%);min-height:100px;padding:8px 28px;margin-inline:auto}
.mgh-header a,.mgh-header a:hover {color:inherit;text-decoration:none!important;background-image:none;box-shadow:none}
.mgh-header a::before,.mgh-header a::after {content:none}
.mgh-header :is(button,summary) {margin:0;font:inherit;color:inherit;letter-spacing:normal;text-transform:none;cursor:pointer;box-shadow:none}
.mgh-header :is(a,button,summary):focus-visible {outline:3px solid var(--mh-accent);outline-offset:4px}
.mgh-header svg {display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.mgh-header .mgh-logo {display:flex;align-items:center;justify-content:center;width:167px;flex-shrink:0;background:transparent;border-radius:10px;overflow:hidden}
.mgh-header .mgh-logo img {display:block;width:100%;height:auto;max-height:86px;object-fit:contain}
.mgh-header .mgh-logo .mgh-logo-dark {display:none}
:root[data-mibmed-theme="dark"] .mgh-header .mgh-logo .mgh-logo-light {display:none}
:root[data-mibmed-theme="dark"] .mgh-header .mgh-logo .mgh-logo-dark {display:block}
.mgh-header .mgh-nav {display:flex;align-items:center;justify-content:center;gap:2px;flex:1;min-width:0}
.mgh-header .mgh-nav>a,.mgh-header .mgh-knowledge>summary {display:flex;align-items:center;gap:7px;min-height:44px;padding:10px 8px;font-size:13px;font-weight:600;white-space:nowrap;border-radius:10px}
.mgh-header .mgh-nav>a>svg,.mgh-header .mgh-knowledge>summary>svg:not(.mgh-chevron) {width:17px;height:17px;stroke-width:1.7;flex-shrink:0}
.mgh-header .mgh-nav>a:hover,.mgh-header .mgh-nav>a[aria-current="page"],.mgh-header .mgh-knowledge.is-current>summary,.mgh-header summary:hover {background:var(--mh-soft);color:var(--mh-accent)}
.mgh-header .mgh-knowledge .mgh-dropdown {inset-inline-start:0;inset-inline-end:auto;min-width:250px;padding:10px}
.mgh-header .mgh-knowledge .mgh-dropdown a {justify-content:flex-start;gap:12px;line-height:1.7}
.mgh-header .mgh-knowledge .mgh-dropdown svg {width:19px;height:19px;color:var(--mh-accent)}
.mgh-header .mgh-knowledge .mgh-dropdown strong {display:block;font-size:13px;font-weight:600}
.mgh-header .mgh-knowledge .mgh-dropdown small {display:block;font-size:11px;font-weight:400}
.mgh-header .mgh-warning svg {width:16px;height:16px;color:#a7692f}
:root[data-mibmed-theme="dark"] .mgh-header .mgh-warning svg {color:#eac188}
.mgh-header .mgh-actions {display:flex;align-items:center;gap:6px;flex-shrink:0;border-inline-start:1px solid var(--mh-line);padding-inline-start:14px}
.mgh-header details {position:relative;margin:0;padding:0;border:0}
.mgh-header summary {list-style:none;border:0;background:none}
.mgh-header summary::-webkit-details-marker {display:none}
.mgh-header .mgh-chevron {width:13px;height:13px;transition:transform .2s}
.mgh-header details[open] .mgh-chevron {transform:rotate(180deg)}
.mgh-header .mgh-dropdown {position:absolute;inset-block-start:calc(100% + 10px);inset-inline-end:0;z-index:2;min-width:210px;padding:8px;border:1px solid var(--mh-line);border-radius:14px;background:var(--mh-bg);box-shadow:0 12px 28px #16334b15}
.mgh-header .mgh-dropdown a {display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:44px;padding:9px 12px;border-radius:8px}
.mgh-header .mgh-dropdown a:hover {background:var(--mh-soft);color:var(--mh-accent)}
.mgh-header .mgh-dropdown small {color:var(--mh-muted);font-size:11px}
.mgh-header .mgh-language>summary {display:flex;align-items:center;justify-content:center;gap:5px;padding:8px 6px;min-width:44px;min-height:44px;border-radius:9px;font-size:11px;font-weight:700}
.mgh-header .mgh-language svg {width:18px;height:18px}
.mgh-header .mgh-theme,.mgh-header .mgh-menu {display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;padding:10px;border:1px solid var(--mh-line);border-radius:10px;background:var(--mh-bg)}
.mgh-header .mgh-theme .mgh-sun {display:none}
.mgh-header .mgh-theme[aria-checked="true"] .mgh-sun {display:block}
.mgh-header .mgh-theme[aria-checked="true"] .mgh-moon {display:none}
.mgh-header .mgh-book,.mgh-header .mgh-book:hover {display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;padding:10px 17px;border-radius:10px;background:var(--mh-button);color:var(--mh-on-button);font-size:13px;font-weight:700;white-space:nowrap}
.mgh-header .mgh-book svg {width:17px;height:17px}
.mgh-header .mgh-skip {position:absolute;top:8px;inset-inline-start:16px;z-index:5;padding:10px 20px;background:var(--mh-button);color:var(--mh-on-button);border-radius:8px;transform:translateY(-180%)}
.mgh-header .mgh-skip:focus {transform:none}
.mgh-header {--mh-glass-top:rgba(255,255,255,.88);--mh-glass-scroll:rgba(250,252,251,.88);--mh-blur:12px;margin-inline:auto;border-radius:0;transform:translateY(0);transition:width .5s cubic-bezier(.22,1,.36,1),border-radius .5s cubic-bezier(.22,1,.36,1),transform .5s cubic-bezier(.22,1,.36,1),background-color .3s,box-shadow .3s,border-color .3s}
:root[data-mibmed-theme="dark"] .mgh-header {--mh-glass-top:rgba(16,28,42,.91);--mh-glass-scroll:rgba(16,28,42,.82)}
.mgh-header.is-scrolled {--mh-blur:22px;box-shadow:0 8px 32px #16334b16,inset 0 1px 0 #ffffff30}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  .mgh-header {background:var(--mh-glass-top);backdrop-filter:blur(var(--mh-blur)) saturate(135%);-webkit-backdrop-filter:blur(var(--mh-blur)) saturate(135%)}
  .mgh-header.is-scrolled {background:var(--mh-glass-scroll)}
}
.mgh-header.is-menu-open {background:var(--mh-bg)}
.mgh-header .mgh-bar {transition:min-height .42s cubic-bezier(.22,1,.36,1),padding .42s cubic-bezier(.22,1,.36,1)}
.mgh-header .mgh-logo {transition:width .42s cubic-bezier(.22,1,.36,1)}
.mgh-header .mgh-logo img {transition:max-height .42s cubic-bezier(.22,1,.36,1)}
.mgh-header.is-compact .mgh-bar {min-height:70px;padding-block:5px}
.mgh-header.is-compact {width:min(1220px,calc(100% - 64px));border-radius:24px;transform:translateY(12px);box-shadow:0 12px 36px #16334b22,inset 0 0 0 1px var(--mh-line),inset 0 1px 0 #ffffff60}
.mgh-header.is-compact .mgh-logo {width:120px}
.mgh-header.is-compact .mgh-logo img {max-height:60px}
@media(max-width:1180px) {
  .mgh-shell.is-enhanced {height:96px}
  .mgh-shell .mgh-header {--mh-compact-height:70px}
  .mgh-header.is-compact .mgh-bar {min-height:64px}
  .mgh-header.is-compact .mgh-logo {width:108px}
  .mgh-header .mgh-bar {gap:12px;flex-wrap:wrap;padding:8px 24px;min-height:88px}
  .mgh-header .mgh-actions {margin-inline-start:auto}
  .mgh-header .mgh-logo {width:145px}
  .mgh-header .mgh-nav {order:4;flex:1 0 100%;flex-direction:column;align-items:stretch;gap:3px;max-height:65dvh;overflow:auto;padding-block:8px}
  .mgh-header.is-enhanced .mgh-nav:not(.is-open) {display:none}
  .mgh-header .mgh-nav>a,.mgh-header .mgh-knowledge>summary {padding:11px 14px;font-size:14px;gap:12px}
  .mgh-header .mgh-nav>a>svg,.mgh-header .mgh-knowledge>summary>svg:not(.mgh-chevron) {width:20px;height:20px}
  .mgh-header .mgh-knowledge .mgh-chevron {margin-inline-start:auto}
  .mgh-header .mgh-knowledge .mgh-dropdown {position:static;margin:5px 0 5px 0;box-shadow:none;min-width:0;background:var(--mh-soft)}
  .mgh-header .mgh-actions {border:0;padding-inline-start:0}
}
@media(max-width:782px) {body.admin-bar .mgh-shell {top:46px}}
@media(max-width:600px) {
  body.admin-bar .mgh-shell {top:0}
  .mgh-shell.is-enhanced {height:78px}
  .mgh-shell .mgh-header {--mh-compact-height:61px}
  .mgh-header.is-compact .mgh-bar {min-height:60px}
  .mgh-header.is-compact {width:calc(100% - 20px);border-radius:20px;transform:translateY(8px)}
  .mgh-header.is-compact .mgh-logo {width:94px}
  .mgh-header.is-compact .mgh-logo img {max-height:48px}
  .mgh-header .mgh-bar {padding:7px 14px;gap:7px;min-height:77px}
  .mgh-header .mgh-logo {width:113px}
  .mgh-header .mgh-actions {gap:3px}
  .mgh-header .mgh-book {padding:10px 11px;font-size:11px}
  .mgh-header .mgh-book svg,.mgh-header .mgh-language>summary>span {display:none}
  .mgh-header .mgh-theme {border:0}
}
@media(max-width:360px) {
  .mgh-header.is-compact {width:calc(100% - 16px)}
  .mgh-header.is-compact .mgh-logo {width:84px}
  .mgh-header.is-compact .mgh-bar {padding-inline:6px}
  .mgh-header .mgh-bar {gap:4px;padding-inline:8px}
  .mgh-header .mgh-logo {width:84px}
  .mgh-header .mgh-actions {gap:0}
  .mgh-header .mgh-book {padding-inline:8px;font-size:10px}
  .mgh-header .mgh-theme,.mgh-header .mgh-menu {width:36px;height:40px;padding:8px}
  .mgh-header .mgh-language>summary {min-width:32px;min-height:40px;padding:8px 4px}
}
@media(prefers-reduced-motion:reduce) {.mgh-header,.mgh-header * {transition:none!important}}
@media(prefers-reduced-transparency:reduce),(forced-colors:active) {.mgh-header,.mgh-header.is-scrolled {background:var(--mh-bg);backdrop-filter:none;-webkit-backdrop-filter:none}}
:root[data-mm-motion="off"] .mgh-header,:root[data-mm-motion="off"] .mgh-header * {transition:none}

/* Global footer: warm paper in light mode, layered navy in dark mode. */
.mgf-footer {--mf-bg:#f3f6f4;--mf-surface:#fff;--mf-text:#16334b;--mf-muted:#526473;--mf-line:#dce5e4;--mf-accent:#086f6b;--mf-soft:#e5f1ed;--mf-button:#086f6b;--mf-on-button:#fff;background:var(--mf-bg);color:var(--mf-text);font:14px/1.9 "Cairo",sans-serif;text-align:start;width:100%;clear:both;border-top:1px solid var(--mf-line);overflow:clip}
:root[data-mibmed-theme="dark"] .mgf-footer {--mf-bg:#0c1724;--mf-surface:#172838;--mf-text:#edf3f7;--mf-muted:#b3c4d2;--mf-line:#304354;--mf-accent:#87ded0;--mf-soft:#1a3437;--mf-button:#87ded0;--mf-on-button:#102d2c}
.mgf-footer,.mgf-footer * {box-sizing:border-box}
.mgf-footer :is(p,h2,ul) {font-family:inherit;color:inherit;margin:0;padding:0;letter-spacing:normal}
.mgf-footer a,.mgf-footer a:hover {color:inherit;text-decoration:none!important;background-image:none;box-shadow:none}
.mgf-footer a::before,.mgf-footer a::after {content:none}
.mgf-footer a:focus-visible {outline:3px solid var(--mf-accent);outline-offset:5px}
.mgf-footer a:hover {color:var(--mf-accent)}
.mgf-inner {max-width:1280px;margin:auto;padding:38px 40px 18px}
.mgf-invitation {position:relative;display:flex;align-items:center;justify-content:space-between;gap:32px;padding:26px 32px;margin-bottom:40px;border:1px solid var(--mf-line);border-radius:22px;background:var(--mf-surface);box-shadow:0 8px 30px #16334b05}
.mgf-invitation::before {content:"";position:absolute;right:0;top:26px;bottom:26px;width:3px;border-radius:3px;background:var(--mf-accent)}
.mgf-footer .mgf-eyebrow {display:flex;align-items:center;gap:9px;color:var(--mf-accent);font-size:11px;margin-bottom:5px}
.mgf-eyebrow>span {width:5px;height:5px;border-radius:50%;background:currentColor}
.mgf-footer .mgf-invitation h2 {font-size:clamp(23px,2.1vw,30px);font-weight:600;line-height:1.7;margin:0}
.mgf-invitation h2 em {font-style:normal;color:var(--mf-accent)}
.mgf-footer .mgf-invitation__description {font-size:12px;color:var(--mf-muted);margin-top:7px}
.mgf-invitation__action {display:flex;flex-direction:column;align-items:center;flex-shrink:0}
.mgf-footer .mgf-appointment {display:flex;justify-content:space-between;align-items:center;gap:24px;min-height:48px;padding:11px 22px;border-radius:12px;background:var(--mf-button);color:var(--mf-on-button);font-size:13px;font-weight:700;transition:transform .25s,box-shadow .25s}
.mgf-appointment>span {font-size:20px;transition:transform .25s}
.mgf-footer .mgf-clinic-link {display:inline-flex;align-items:center;min-height:36px;color:var(--mf-muted);font-size:11px;margin-top:3px}
.mgf-main {display:grid;grid-template-columns:1.1fr 1.1fr 1fr;gap:52px;padding-bottom:32px;align-items:start}
.mgf-logo {display:block;width:160px;padding:0;background:transparent;border:0;border-radius:12px;margin-bottom:17px}
.mgf-logo img {display:block;width:100%;height:auto}
.mgf-logo .mgf-logo-dark {display:none}
:root[data-mibmed-theme="dark"] .mgf-logo .mgf-logo-light {display:none}
:root[data-mibmed-theme="dark"] .mgf-logo .mgf-logo-dark {display:block}
.mgf-brand p {font-size:14px;font-weight:700}
.mgf-brand>span,.mgf-brand>small {display:block;font-size:12px;color:var(--mf-muted);margin-top:5px}
.mgf-brand>small {color:var(--mf-accent);margin-top:12px}
.mgf-footer h2 {font-size:14px;font-weight:700;margin-bottom:17px}
.mgf-navigation {padding-top:4px}
.mgf-navigation ul {display:grid;grid-template-columns:1fr 1fr;gap:6px 16px;list-style:none}
.mgf-navigation a {display:inline-flex;align-items:center;min-height:36px;font-size:12px;color:var(--mf-muted);transition:color .2s,transform .2s}
.mgf-education {background:var(--mf-soft);padding:22px;border-radius:18px}
.mgf-education p {color:var(--mf-muted);font-size:12px;line-height:2}
.mgf-education>a {display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:44px;font-size:12px;color:var(--mf-accent);margin-top:10px;border-top:1px solid var(--mf-line);padding-top:10px}
.mgf-bottom {display:flex;align-items:center;gap:22px;padding-top:17px;border-top:1px solid var(--mf-line);color:var(--mf-muted);font-size:10px}
.mgf-bottom nav {display:flex;flex-wrap:wrap;gap:10px 20px;margin-inline-start:auto}
.mgf-bottom nav a {display:inline-flex;align-items:center;min-height:40px}
.mgf-footer .mgf-top {display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--mf-line);border-radius:50%;font-size:20px;color:var(--mf-accent);background:var(--mf-surface);flex-shrink:0}
.mgf-footer {--mf-doodle:#84b4aa;--mf-gold:#c6a469;--mf-pink:#c69fa9;position:relative;isolation:isolate}
.mgf-invitation {display:grid;grid-template-columns:minmax(0,1fr) 170px auto;gap:24px}
.mgf-doodle {pointer-events:none;user-select:none;color:var(--mf-doodle);line-height:0}
.mgf-doodle svg {display:block;width:100%;height:auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.mgf-doodle .mgf-gold {stroke:var(--mf-gold)}
.mgf-doodle .mgf-pink {stroke:var(--mf-pink)}
.mgf-doodle .mgf-cloud {fill:var(--mf-surface)}
.mgf-doodle .mgf-float {transform-origin:center;animation:mgf-drift 8s ease-in-out infinite}
.mgf-brand-decoration {width:104px;margin-top:17px;opacity:.85}
@keyframes mgf-drift {50% {transform:translateY(-4px) rotate(2deg)}}
:root[data-mibmed-theme="dark"] .mgf-footer {--mf-doodle:#8cbfb4;--mf-gold:#d6b879;--mf-pink:#cfaabd}
@media(max-width:1100px) {.mgf-invitation {grid-template-columns:minmax(0,1fr) 115px auto;gap:20px}}
@media(max-width:950px) {.mgf-main {gap:30px;grid-template-columns:1fr 1fr}.mgf-education {grid-column:1/-1}.mgf-bottom {flex-wrap:wrap}.mgf-bottom nav {margin-inline-start:0}.mgf-top {margin-inline-start:auto}}
@media(max-width:700px) {.mgf-inner {padding:28px 22px 18px}.mgf-invitation {flex-direction:column;align-items:stretch;gap:18px;padding:24px;margin-bottom:30px}.mgf-invitation__action {align-items:stretch}.mgf-clinic-link {justify-content:center}.mgf-main {grid-template-columns:1fr;gap:28px}.mgf-education {grid-column:auto}.mgf-brand {text-align:center}.mgf-logo {margin-inline:auto}.mgf-navigation {padding-top:0}.mgf-navigation ul {gap:6px 24px}.mgf-bottom {gap:9px}.mgf-bottom>p {width:100%}.mgf-bottom nav {flex:1;gap:6px 15px}}
@media(max-width:700px) {.mgf-invitation {grid-template-columns:1fr;gap:18px}.mgf-invitation>.mgf-doodle {width:126px;justify-self:center;grid-row:1}.mgf-brand-decoration {margin-inline:auto}}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {:root[data-mm-motion="on"] .mgf-navigation a:hover {transform:translateX(-4px)}:root[data-mm-motion="on"] .mgf-appointment:hover {transform:translateY(-3px);box-shadow:0 8px 22px #16334b14}:root[data-mm-motion="on"] .mgf-appointment:hover>span {transform:translateX(-4px)}}
@media(prefers-reduced-motion:reduce) {.mgf-footer * {transition:none!important;animation:none!important}}
:root[data-mm-motion="off"] .mgf-footer * {transition:none!important;animation:none!important}
