/*
Theme Name: Mahmoud Foundation
Description: Shared foundation only. Shared identity, header, footer and settings only.
Version: 1.0.7
Requires at least: 6.8
Requires PHP: 7.4
Text Domain: mahmoud-foundation
License: GPL-2.0-or-later
*/
@font-face{font-family:Cairo;font-style:normal;font-weight:200 1000;font-display:swap;src:url(assets/fonts/cairo-arabic.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:Cairo;font-style:normal;font-weight:200 1000;font-display:swap;src:url(assets/fonts/cairo-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20A0-20BF,U+2100-214F}
:root{--mf-navy:#1a4b8c;--mf-accent:#f39c12;--mf-width:1180px;--mf-bg:#fff;--mf-ink:#1d2433;--mf-muted:#55617a;--mf-surface:#f5f8fc;--mf-line:#dbe2ef;--mf-radius:18px;--mf-gutter:clamp(16px,4vw,44px)}
:root[data-mf-theme=dark]{--mf-bg:#1a1a1a;--mf-ink:#f1f1f1;--mf-muted:#d9d9d9;--mf-surface:#121214;--mf-line:#ffffff24;color-scheme:dark}
*{box-sizing:border-box}html{scroll-padding-top:90px}body.mf-site{margin:0;background:var(--mf-bg);color:var(--mf-ink);font:16px/1.9 Cairo,Tahoma,Arial,sans-serif}button,input,textarea,select{font:inherit}a{color:var(--mf-navy)}:root[data-mf-theme=dark] a{color:#8dbaf2}:focus-visible{outline:3px solid var(--mf-accent);outline-offset:4px}.mf-wrap{width:min(calc(100% - 2 * var(--mf-gutter)),var(--mf-width));margin-inline:auto}.mf-skip{position:fixed;top:0;inset-inline-start:16px;transform:translateY(-150%);padding:12px 20px;background:#fff;color:#12275a;z-index:1000}.mf-skip:focus{transform:none}.mf-header{position:sticky;top:0;z-index:50;background:var(--mf-navy);color:#fff;border-bottom:2px solid var(--mf-accent)}.mf-bar{display:flex;align-items:center;gap:14px;padding:8px var(--mf-gutter);min-height:64px}.mf-brand{display:flex;align-items:center;gap:9px;min-width:0;font-size:14px;font-weight:800}.mf-brand a,.mf-navigation a{color:#fff!important;text-decoration:none}.mf-brand img{width:40px;height:40px;object-fit:contain}.mf-navigation{margin-inline-start:auto}.mf-navigation ul{list-style:none;display:flex;gap:5px;margin:0;padding:0}.mf-navigation a{display:block;padding:9px 8px;min-height:44px;font-size:13px}.mf-navigation a:hover{background:#ffffff18}.mf-navigation .sub-menu{display:none;position:absolute;background:var(--mf-navy);padding:8px;min-width:180px}.mf-navigation li:hover>.sub-menu,.mf-navigation li:focus-within>.sub-menu{display:block}.mf-menu-toggle{display:none}.mf-theme-toggle{width:48px;height:44px;flex:none;border:1px solid #ffffff70;background:transparent;border-radius:10px;display:grid;place-items:center;cursor:pointer}.mf-switch-track{width:32px;height:20px;border-radius:20px;background:#7890b3;padding:3px}.mf-switch-track:after{content:'';display:block;width:14px;height:14px;border-radius:50%;background:#fff;transition:transform .2s}.mf-theme-toggle[aria-checked=true] .mf-switch-track{background:var(--mf-accent)}.mf-theme-toggle[aria-checked=true] .mf-switch-track:after{transform:translateX(12px)}[dir=rtl] .mf-theme-toggle[aria-checked=true] .mf-switch-track:after{transform:translateX(-12px)}#mf-main{min-height:40vh}.mf-footer{background:linear-gradient(160deg,#0b1a3a,#081226);color:#fff;padding:30px 0}.mf-footer a{color:#e0e5ee!important}.mf-footer ul{list-style:none;display:flex;flex-wrap:wrap;gap:12px 24px;margin:0;padding:0}.mf-footer p{color:#f7b74d;font-weight:800;font-size:15px}.mf-contact,.mf-top{position:fixed;bottom:16px;border:0;border-radius:24px;background:var(--mf-accent);color:#1b1b1b!important;padding:10px 16px;min-height:44px;z-index:60;text-decoration:none;font-weight:800}.mf-contact{inset-inline-start:14px}.mf-top{inset-inline-end:14px;cursor:pointer}.mf-top[hidden]{display:none}
@media(max-width:900px){.mf-brand{flex:1;font-size:13px}.mf-menu-toggle{display:block;min-width:44px;min-height:44px;color:#fff;border:1px solid #ffffff70;border-radius:8px;background:transparent;cursor:pointer}.mf-navigation{display:none;position:absolute;top:100%;inset-inline:0;background:var(--mf-navy);max-height:65vh;overflow-y:auto;padding:10px 16px}.mf-navigation.is-open{display:block}.mf-navigation ul{display:block}.mf-navigation .sub-menu{position:static;padding-inline-start:18px;display:block}.mf-bar{gap:8px}.mf-footer ul{display:grid;grid-template-columns:1fr 1fr}.mf-footer{padding-bottom:76px}}
@media(max-width:480px){.mf-brand{font-size:11px;gap:6px}.mf-brand img{width:32px;height:32px}.mf-bar{padding-inline:12px;gap:7px}.mf-theme-toggle{width:44px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Shared controls copied in visual shape from approved generation 88. */
.mf-theme-toggle{color:#fff;width:44px;height:44px}.mf-theme-toggle svg{width:20px;height:20px}.mf-theme-toggle .mf-sun{display:none}.mf-theme-toggle[aria-pressed=true] .mf-moon{display:none}.mf-theme-toggle[aria-pressed=true] .mf-sun{display:block}
:root[data-mf-theme=dark] .mf-header,:root[data-mf-theme=dark] .mf-navigation{background:#0f2a50}
@media(min-width:901px) and (max-width:1100px){.mf-bar{padding-inline:12px;gap:6px}.mf-brand{font-size:11px;gap:6px}.mf-brand img{width:32px;height:32px}.mf-navigation a{font-size:11px;padding-inline:5px}.mf-theme-toggle{width:40px;height:40px}}

.mf-footer{padding:44px 0 22px}.mf-footer-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:28px 48px}.mf-footer-brand{display:flex;align-items:flex-start;gap:14px}.mf-footer-brand img{width:64px;height:64px;flex:none}.mf-footer-brand b{display:block;font-size:17px;font-weight:800;margin-bottom:4px}.mf-footer-brand span{display:block;font-size:12.5px;color:#ffffffbf;line-height:1.9;max-width:34em}.mf-footer-links{border-inline-start:1px solid #ffffff1a;padding-inline-start:26px}.mf-footer-links h2{font-size:15px;margin:0 0 12px;color:#f7b74d}.mf-footer-links h2:after{content:'';display:block;width:26px;height:2px;background:var(--mf-accent);margin-top:8px}.mf-footer-links ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}.mf-footer-links a{font-size:13px;line-height:1.9;text-decoration:none;color:#e0e5ee}.mf-social{display:flex;gap:14px 16px;flex-wrap:wrap;margin-top:14px}.mf-social a{color:#ffd9a3!important;display:grid;place-items:center;min-width:24px;min-height:32px}.mf-social svg{width:20px;height:20px;display:block}.mf-copyright{border-top:1px solid #ffffff1f;padding-top:16px;margin-top:26px;text-align:center;font-size:13px;color:#e0e5ee}.mf-copy-mobile{display:none}
@media(max-width:800px){.mf-footer{padding:24px 0 75px}.mf-footer-grid{grid-template-columns:1fr;gap:18px}.mf-footer-brand{display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px}.mf-footer-brand img{width:52px;height:52px;grid-column:1;grid-row:1}.mf-footer-brand>div{display:contents}.mf-footer-brand b,.mf-footer-brand span{grid-column:2}.mf-footer-brand b{grid-row:1;font-size:15px;margin:0}.mf-footer-brand span{font-size:11px;grid-row:2}.mf-social{grid-column:1/-1;display:flex;justify-content:space-between;gap:5px;flex-wrap:wrap;margin-top:8px}.mf-social svg{width:18px;height:18px}.mf-footer-links{padding:0;border:0}.mf-footer-links a{display:flex;align-items:center;min-height:32px}.mf-copy-desktop{display:none}.mf-copy-mobile{display:inline}.mf-copyright{margin-top:18px;padding-top:14px;font-size:13px}}

/* Arabic identity is RTL even before an Arabic language pack is installed. */
body.mf-site{direction:rtl}

/* Candidate: switch to the compact menu based on actual content fit. */
.mf-brand{flex-shrink:0}.mf-brand>a:last-child{white-space:nowrap}
@media(max-width:900px){.mf-brand{flex-shrink:1}.mf-brand>a:last-child{white-space:normal}}
.mf-header.mf-compact .mf-brand{flex:1;flex-shrink:1}.mf-header.mf-compact .mf-brand>a:last-child{white-space:normal}
.mf-header.mf-compact .mf-menu-toggle{display:block;min-width:44px;min-height:44px;color:#fff;border:1px solid #ffffff70;border-radius:8px;background:transparent;cursor:pointer}
.mf-header.mf-compact .mf-navigation{display:none;position:absolute;top:100%;inset-inline:0;background:var(--mf-navy);max-height:65vh;overflow-y:auto;padding:10px 16px}
.mf-header.mf-compact .mf-navigation.is-open{display:block}.mf-header.mf-compact .mf-navigation ul{display:block}.mf-header.mf-compact .mf-navigation .sub-menu{position:static;padding-inline-start:18px;display:block}

/* Footer identity and copyright match the sections heading font and color. */
.mf-footer-brand b,.mf-copyright,.mf-copyright span{font-family:Cairo,Tahoma,Arial,sans-serif;color:#f7b74d;font-weight:700}
/* Keep the final footer line above the global floating tools, including enlarged text. */
.mf-footer{padding-bottom:80px}

.mf-footer-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(160px,.65fr);gap:28px}.mf-visit-block{border-inline-start:1px solid #ffffff1a;padding-inline-start:24px}.mf-visit-block h2{font-size:15px;color:#f7b74d;margin:0 0 12px;font-weight:700}.mf-visit-block h2:after{content:'';display:block;width:26px;height:2px;background:var(--mf-accent);margin-top:8px}.mf-visit-count{font-size:38px;font-weight:800;line-height:1.5;color:#f7b74d;text-align:right;font-variant-numeric:tabular-nums}.mf-visit-block p{font-size:11px;font-weight:400;color:#ffffffbf;margin:4px 0}.mf-visit-count.is-unavailable{font-size:14px}@media(max-width:800px){.mf-footer-grid{grid-template-columns:1fr}.mf-visit-block{border:0;border-top:1px solid #ffffff1a;padding:18px 0 0}.mf-visit-count{font-size:34px}}

.mf-copyright{font-size:13px}.mf-footer .mf-social{gap:8px;justify-content:space-between;flex-wrap:nowrap}.mf-footer .mf-social a{min-width:20px}.mf-footer .mf-social svg{width:18px;height:18px}@media(min-width:801px) and (max-width:1100px){.mf-footer-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(130px,.55fr);gap:20px}.mf-footer-links,.mf-visit-block{padding-inline-start:18px}}
@media(max-width:800px){.mf-copyright{font-size:clamp(10px,3vw,13px)}.mf-copy-mobile{white-space:normal}}
body.mf-a11y-plain .mf-copy-mobile{white-space:normal}

body.mf-text-enlarged .mf-copy-mobile{white-space:normal}body.mf-text-enlarged .mf-social{flex-wrap:wrap;justify-content:flex-start}body.mf-text-enlarged .mf-footer-grid{grid-template-columns:1fr}body.mf-text-enlarged .mf-footer-links,body.mf-text-enlarged .mf-visit-block{border:0;padding:12px 0 0}
/* Center the counter number and subtitle within their own shared column. */
.mf-visit-count,.mf-visit-block p{text-align:center}

/* Proposed only: matching footer rule, raised dock and clear vector backtop. */

/* Approved shared layout review, November 25. */
.mf-footer{border-top:2px solid var(--mf-accent);padding-bottom:104px}.mf-dock{bottom:32px}.mf-top{bottom:32px;width:46px;height:46px;min-width:46px;min-height:46px;padding:0;border-radius:50%;display:grid;place-items:center;line-height:1}.mf-top[hidden]{display:none}.mf-top svg{display:block;width:24px;height:24px;flex:none}
@media(min-width:801px){.mf-footer{padding-bottom:28px}.mf-footer-brand{display:grid;grid-template-columns:64px minmax(0,1fr);gap:2px 14px;align-content:start}.mf-footer-brand>div{display:contents}.mf-footer-brand img{grid-column:1;grid-row:1/3;align-self:center}.mf-footer-brand b{grid-column:2;grid-row:1}.mf-footer-brand span{grid-column:2;grid-row:2}.mf-footer-brand .mf-social{grid-column:2;grid-row:3;min-width:0;flex-wrap:wrap;justify-content:flex-start;gap:8px}.mf-footer-brand .mf-social a{min-width:24px;min-height:32px}.mf-copyright{min-height:63px;padding:16px 175px 0 60px;display:flex;align-items:center;justify-content:center;margin-top:24px}.mf-top,.mf-dock{bottom:28px}}@media(max-width:800px){.mf-footer{padding-bottom:104px}.mf-descriptor-break{display:none}.mf-footer-brand{row-gap:2px}.mf-footer-brand img{grid-row:1/3;align-self:center}.mf-social{grid-row:3;margin-top:10px}}body.mf-text-enlarged .mf-copyright{padding-inline:185px 65px}@media(max-width:800px){body.mf-text-enlarged .mf-copyright{padding-inline:0}}
.mf-a11y-panel{bottom:88px}

/* Approved 85% desktop shared-frame density. Fixed tools remain unscaled. */
@media(min-width:801px){.mf-header,.mf-footer{zoom:.85}.mf-theme-toggle,.mf-menu-toggle{min-width:52px;min-height:52px}.mf-navigation a{min-height:52px;display:flex;align-items:center}.mf-footer .mf-social a{min-width:29px;min-height:38px}.mf-footer .mf-social{gap:6px}}

/* Desktop review candidate: requested 110% of the previously approved desktop frame. Phone/tablet unchanged. */
@media(min-width:1101px){.mf-header,.mf-footer{zoom:.935}}
/* Desktop screenshot reference: larger type and identity, not browser preferences. */
@media(min-width:1101px){
.mf-bar{min-height:82px;padding-inline:52px;gap:16px}
.mf-brand{font-size:21px;gap:12px}.mf-brand img{width:48px;height:48px}
.mf-navigation a{font-size:19px;padding-inline:8px}.mf-navigation ul{gap:5px}
.mf-footer>.mf-wrap{width:calc(100% - 144px);max-width:none}
.mf-footer{padding-top:58px;padding-bottom:36px}
.mf-footer-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(180px,.65fr);gap:32px}
.mf-footer-brand img{width:76px;height:76px}.mf-footer-brand b{font-size:21px}.mf-footer-brand span{font-size:19px}
.mf-footer-links h2,.mf-visit-block h2{font-size:19px}.mf-footer-links a{font-size:19px}.mf-footer-links ul{gap:8px 20px}
.mf-visit-count{font-size:44px}.mf-visit-block p{font-size:17px}
.mf-footer .mf-social svg{width:24px;height:24px}.mf-footer .mf-social{margin-top:24px}
.mf-copyright{font-size:19px;margin-top:28px;padding-top:24px}
}

@media(min-width:1101px){.mf-footer-brand{grid-template-columns:76px minmax(0,1fr);column-gap:18px}.mf-footer-brand .mf-university-name{display:inline;white-space:nowrap;font-size:inherit;color:inherit;line-height:inherit}.mf-footer-brand>span{min-width:0}.mf-footer-brand img{max-width:100%}}
@media(min-width:1101px) and (max-width:1350px){.mf-footer-brand img{grid-row:1}.mf-footer-brand>div>span{grid-column:1/-1;grid-row:2}.mf-footer-brand .mf-social{grid-column:1/-1}}

.mf-footer-brand .mf-university-name{display:inline;white-space:nowrap;font-size:inherit;color:inherit;line-height:inherit}
/* Private responsive desktop fit candidate: maintain screenshot proportions at narrower desktop widths. */
@media(min-width:1101px) and (max-width:1488px){.mf-header,.mf-footer{zoom:calc(.935 * (100vw / 1488px))}}
@media(min-width:1101px) and (max-width:1350px){.mf-footer-brand img{grid-row:1/3}.mf-footer-brand>div>span{grid-column:2;grid-row:2}.mf-footer-brand .mf-social{grid-column:2}}
/* Current version80% is the desktop100% reference, including fixed tools. */
@media(min-width:1101px){.mf-header,.mf-footer{zoom:.748}}
@media(min-width:801px){.mf-dock,.mf-top{zoom:.8}.mf-dock{bottom:35px;right:17.5px}.mf-top{bottom:35px;inset-inline-end:17.5px;width:55px;height:55px;min-width:55px;min-height:55px}.mf-dock .mf-contact{min-height:55px}.mf-a11y-launch{min-height:55px;min-width:55px}}
/* 1.0.7: counter states. Pending = gold spinner replaces the number (box size unchanged). Failure = muted dash. A small refresh icon sits beside the number (read-only update). */
.mf-visit-count{position:relative}
.mf-visit-count:before{content:'';display:inline-block;width:46px;vertical-align:middle}
.mf-visit-num{vertical-align:middle}
.mf-visit-count.is-loading .mf-visit-num{color:transparent}
.mf-visit-count.is-error .mf-visit-num{opacity:.35}
.mf-visit-count.is-loading:after{content:'';position:absolute;left:50%;top:50%;width:26px;height:26px;margin:-13px 0 0 -13px;border:3px solid #f7b74d33;border-top-color:#f7b74d;border-radius:50%;animation:mf-visit-spin .8s linear infinite}
@keyframes mf-visit-spin{to{transform:rotate(360deg)}}
.mf-visit-refresh{flex:none;min-width:38px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:38px;height:38px;margin-inline-start:8px;padding:0;color:#0b1630;background:#f7b74d;border:0;border-radius:50%;cursor:pointer}
.mf-visit-refresh svg{width:20px;height:20px}
.mf-visit-refresh:hover,.mf-visit-refresh:focus-visible{background:#ffc95e}
.mf-visit-refresh:focus-visible{outline:2px solid #f7b74d;outline-offset:1px}
.mf-visit-refresh[disabled]{opacity:.4;cursor:default}
body.mf-text-enlarged .mf-visit-refresh{width:46px;height:46px}
body.mf-text-enlarged .mf-visit-refresh svg{width:22px;height:22px}
@media(prefers-reduced-motion:reduce){.mf-visit-count.is-loading:after{animation:none}}
body.mf-a11y-still .mf-visit-count.is-loading:after{animation:none}
