/* Minimal CMS integration. Original Option 3 visual rules remain untouched. */
html { scroll-behavior: smooth; }
body.site-theme { font-family: 'IBM Plex Sans Arabic', 'DM Sans', sans-serif; }
body.site-theme[dir="ltr"] { font-family: 'DM Sans','IBM Plex Sans Arabic',sans-serif; }
.site-theme .language-switch { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.site-theme .utility-social .social-icon { font-weight:700; text-decoration:none; font-size:.88rem; }
.site-theme .service-card { text-decoration: none; }
.site-theme .site-empty-content { text-align:center; padding:32px 16px; }
.site-theme .site-empty-content a { color:inherit; }
.site-theme a:focus-visible,.site-theme button:focus-visible { outline:3px solid #a3b496; outline-offset:3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Restore original design sizes: do not override .brand, .header-inner, or nav typography. */
.site-theme .header-inner nav .nav-item {position:relative}
.site-theme .header-inner nav .nav-label {cursor:default}
.site-theme .header-search, .site-theme .donate {flex-shrink:0}
.site-theme .site-disabled-donate {cursor:not-allowed;opacity:.72}
/* Non-link labels use precisely the same desktop type sizes as the original anchor rules. */
@media (min-width:1281px) {
 .site-theme .header-inner nav > .nav-item > .nav-label, .site-theme .header-inner nav > .nav-label {font-size:15px;font-weight:600;white-space:nowrap}
}
@media (min-width:761px) and (max-width:1280px) {
 .site-theme .header-inner nav > .nav-item > .nav-label, .site-theme .header-inner nav > .nav-label {font-size:13.5px;font-weight:600;white-space:nowrap}
}

.branches{padding:65px 0;background:#f5f7f3}
.branches-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.site-branch-card{background:#fff;border-radius:18px;padding:26px;border:1px solid #e3e8df;box-shadow:0 8px 25px #1327410a;display:flex;flex-direction:column;gap:8px}
.site-branch-card h3{color:#132741;font-size:1.25rem;margin:0 0 4px}
.site-branch-card p{margin:0;line-height:1.8;overflow-wrap:anywhere}
.site-branch-card a{color:#365e50;text-decoration:underline;overflow-wrap:anywhere}
.site-preview-notice{background:#fff;border:1px solid #e3e8df;border-radius:22px;padding:34px;box-shadow:0 8px 25px #13274111;line-height:1.9}
.site-preview-notice h2{color:#132741}
.site-preview-notice a{display:inline-flex;margin-top:18px;color:#326551;font-weight:700;text-decoration:underline}

/* Menu alignment fix: approved Option 3 "About Us / من نحن" submenu ONLY. */
/* The submenu uses the same padding, color, weight and line height defined in styles.css. */
@media (min-width: 761px) {
  .site-theme #nav > .site-o3-about-nav > .submenu {
    width: max-content;
    max-width: calc(100vw - 32px);
  }
  .site-theme #nav > .site-o3-about-nav > .submenu > a {
    white-space: nowrap !important;
  }
}
/* Non-clickable CMS items still align exactly like links; never navigate to #. */
.site-theme #nav .submenu > a.site-menu-link-unavailable {
  cursor: default;
}


/* Mobile navigation labels ONLY.
   "Media" is a non-clickable parent; "Join Us" can be unavailable
   until its CMS section is published. Their spans must occupy the
   same mobile menu row as the original anchor elements.
   Do not change desktop navigation, logo, social icons, or header sizing. */
@media (max-width: 760px) {
  .site-theme .site-header #nav > .nav-item > .nav-label-media {
    display: inline-flex !important;
    align-items: center !important;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px !important;
    font-weight: 650 !important;
    color: #183f4a !important;
    padding: 12px 14px !important;
    line-height: 1.45 !important;
    text-align: start !important;
  }
  .site-theme .site-header #nav > .nav-label.nav-unavailable {
    opacity: 1 !important; /* Match other menu items visually; remains non-clickable. */
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    border-radius: 11px !important;
    background: transparent !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    color: #183f4a !important;
    padding: 12px 14px !important;
    line-height: 1.45 !important;
    text-align: start !important;
  }
}

/* Slide navigation: restore natural left-to-right arrow order for English only. */
html[lang="en"] .site2-hero .hero-arrows { flex-direction: row; }

/* Footer Option 3: optional social links, inherits existing theme colors. */
.footer21 .footer21-social{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:20px;padding-top:16px;border-top:1px solid #c6dbd42a}
.footer21 .footer21-social-link{display:inline-flex;align-items:center;justify-content:center;flex:0 0 37px;width:37px;height:37px;border:1px solid #c5d9d047;border-radius:11px;background:#ffffff0d;color:#d1e1dd;text-decoration:none;transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease}
.footer21 .footer21-social-link svg{display:block;width:18px;height:18px;flex:none}
.footer21 .footer21-social-link:hover,.footer21 .footer21-social-link:focus-visible{background:#ddaba22a;border-color:#ddaba2;color:#fff;transform:translateY(-2px)}
.footer21 .footer21-social-link:focus-visible{outline:2px solid #ddaba2;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.footer21 .footer21-social-link{transition:none}.footer21 .footer21-social-link:hover{transform:none}}
/* Option 3 footer ONLY: compact lower area, without modifying the shared theme. */
.site-theme .footer21 { min-height: 0; }
.site-theme .footer21 .footer21-grid {
  height: auto; min-height: 0; align-items: start;
  padding-top: 38px; padding-bottom: 28px;
}
.site-theme .footer21 .footer21-bottom { padding-top: 17px; padding-bottom: 12px; }

/* Separate contact's social group from the generic footer-column nav rules. */
.site-theme .footer21 .footer21-contact .footer21-social {
  display: flex; flex-direction: row; flex-wrap: wrap;
  align-items: center; justify-content: flex-start;
  gap: 9px; margin-top: 18px; padding-top: 15px;
  border-top: 1px solid #c6dbd42a;
}
.site-theme .footer21 .footer21-contact .footer21-social .footer21-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 37px; width: 37px; height: 37px;
  margin: 0; padding: 0;
  border: 1px solid #c5d9d047; border-radius: 11px;
  background: #ffffff0d; color: #d1e1dd; text-decoration: none;
  line-height: 1; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.site-theme .footer21 .footer21-contact .footer21-social .footer21-social-link::before { display: none; }
.site-theme .footer21 .footer21-contact .footer21-social .footer21-social-link svg {
  display: block; width: 18px; height: 18px; flex: none;
}
.site-theme .footer21 .footer21-contact .footer21-social .footer21-social-link:hover,
.site-theme .footer21 .footer21-contact .footer21-social .footer21-social-link:focus-visible {
  background: #ddaba22a; border-color: #ddaba2; color: #fff; transform: translateY(-2px);
}
.site-theme .footer21 .footer21-contact .footer21-social .footer21-social-link:focus-visible {
  outline: 2px solid #ddaba2; outline-offset: 3px;
}
@media (max-width: 640px) {
  .site-theme .footer21 .footer21-grid { padding-top: 32px; padding-bottom: 24px; }
  .site-theme .footer21 .footer21-contact .footer21-social { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-theme .footer21 .footer21-contact .footer21-social .footer21-social-link { transition: none; }
  .site-theme .footer21 .footer21-contact .footer21-social .footer21-social-link:hover { transform: none; }
}
