/* ============================================================
   MAH — Header & Footer
   Figma: 648:36842 (EN desktop) | bg #0c3144 | nav #b4d2e1
   Breakpoints: mobile <768px · tablet 768–1024px · desktop >1024px
   ============================================================ */

/* ── Global font assignment ── */
.mah-header,
.mah-mobile-nav {
  font-family: 'Work Sans', system-ui, sans-serif;
}
.mah-footer {
  font-family: 'Neco', system-ui, sans-serif;
}
[dir="rtl"] .mah-header,
[dir="rtl"] .mah-mobile-nav,
[dir="rtl"] .mah-footer {
  font-family: '29LT Zarid', system-ui, sans-serif;
}

/* ── Tokens ── */
:root {
  --mah-bg:           #0c3144;
  --mah-bg-solid:     rgba(12, 49, 68, 0.97);
  --mah-nav:          #b4d2e1;
  --mah-nav-muted:    rgba(180, 210, 225, 0.80);
  --mah-nav-active:   #dcdcdc;
  --mah-accent:       #589ec1;
  --mah-divider:      rgba(88, 158, 193, 0.20);
  --mah-header-h:     80px;

  /* footer */
  --mah-footer-title: #589ec1;
  --mah-footer-link:  #b4d2e1;
  --mah-footer-sep:   #2a84b1;
}

/* ============================================================
   HEADER
   ============================================================ */
.mah-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--mah-header-h);
  background: var(--mah-bg);
  transition: background 0.3s, box-shadow 0.3s, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mah-header--hidden {
  transform: translateY(-100%);
}
.mah-header.site-header--scrolled {
  background: var(--mah-bg-solid);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.40);
}
/* EN header: dark gray bg + gray nav tones */
[dir="ltr"] .mah-header {
  background: #232f37;
  --mah-nav:       #dcdcdc;
  --mah-nav-muted: rgba(220, 220, 220, 0.70);
  --mah-divider:   rgba(220, 220, 220, 0.15);
}
[dir="ltr"] .mah-header.site-header--scrolled {
  background: rgba(35, 47, 55, 0.97);
}

/* Transparent header on hero pages — scoped to body.home-page */
body.home-page .mah-header {
  background: transparent;
  box-shadow: none;
}
body.home-page .mah-header.site-header--scrolled {
  background: var(--mah-bg-solid);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.40);
}
[dir="ltr"] body.home-page .mah-header {
  background: transparent;
}
[dir="ltr"] body.home-page .mah-header.site-header--scrolled {
  background: rgba(35, 47, 55, 0.97);
}
/* Home hero: while the smart header is hidden (sliding up), keep it transparent so the
   solid background doesn't flash in mid-slide as it crosses the hero boundary. It still
   goes solid normally once revealed on scroll-up (no --hidden class). */
body.home-page .mah-header--hidden.site-header--scrolled,
[dir="ltr"] body.home-page .mah-header--hidden.site-header--scrolled {
  background: transparent;
  box-shadow: none;
}

.mah-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* ── Logo ── */
.mah-header__logo-wrap {
  flex-shrink: 0;
  padding: 24px;
}
.mah-header__logo { display: flex; align-items: center; }
.mah-header__logo-img {
  width: 142px;
  height: auto;
  display: block;
}

/* Mobile nav logo: slightly smaller */
.mah-mobile-nav .mah-header__logo-img {
  width: 110px;
}

/* ── Primary nav (bold sectors) ── */
.mah-header__primary-nav {
  display: flex;
  align-items: stretch;
  height: 100%;
  flex: 1 0 auto;
}

/* ── Right cluster: secondary nav + actions ── */
.mah-header__right {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
  flex-shrink: 0;
}

/* ── Secondary nav ── */
.mah-header__secondary-nav {
  display: flex;
  align-items: stretch;
  height: 100%;
}

/* ── Nav link base ── */
.mah-header__nav-link {
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 1.4;
  color: var(--mah-nav-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.mah-header__nav-link:hover,
.mah-header__nav-link.mah-nav__link--active {
  color: var(--mah-nav-active);
}

/* Primary variant: semibold, wider pad */
.mah-header__nav-link--primary {
  padding-inline: 24px;
  padding-block: 16px;
  font-weight: 600;
}

/* Secondary variant: regular weight, narrower pad, tracked */
.mah-header__nav-link--secondary {
  padding-inline: 12px;
  padding-block: 16px;
  font-weight: 400;
  letter-spacing: 0.32px;
}

/* ── Actions row ── */
.mah-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.mah-header__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mah-nav-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.mah-header__icon-btn:hover { color: var(--mah-nav-active); }

.mah-header__lang-btn {
  display: flex;
  align-items: center;
  padding-inline: 16px;
  padding-block: 8px;
  font-size: 18px;
  font-weight: 400;
  color: var(--mah-nav-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.mah-header__lang-btn:hover { color: var(--mah-nav-active); }

/* WhatsApp / Call icon buttons rendered as links */
a.mah-header__icon-btn { text-decoration: none; }

/* ── Contact dropdown (secondary nav) ── */
.mah-header__dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 100%;
}

.mah-header__dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  font-family: inherit;
}

.mah-header__dropdown-menu {
  position: absolute;
  top: 100%;
  margin-top: -6px;
  min-width: 180px;
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(12, 49, 68, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 60;
}

[dir="rtl"] .mah-header__dropdown-menu { right: 0; }
[dir="ltr"] .mah-header__dropdown-menu { left: 0; }

.mah-header__dropdown:hover .mah-header__dropdown-menu,
.mah-header__dropdown.is-open .mah-header__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mah-header__dropdown-item {
  display: flex;
  align-items: center;
  min-height: 43px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.32px;
  line-height: 1.2;
  color: #282828;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0.8;
  transition: opacity 0.2s ease, background 0.2s ease;
}

[dir="rtl"] .mah-header__dropdown-item { justify-content: flex-end; text-align: right; }
[dir="ltr"] .mah-header__dropdown-item { justify-content: flex-start; text-align: left; }

.mah-header__dropdown-item:hover,
.mah-header__dropdown-item.mah-nav__link--active {
  opacity: 1;
  background: rgba(12, 49, 68, 0.05);
  color: #282828;
}

/* ── Hamburger (mobile only) ── */
.mah-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mah-nav);
}
.mah-header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.mah-header__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mah-header__hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mah-header__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Body offset */
body { padding-top: var(--mah-header-h); }
body.home-page { padding-top: 0; }
body.menu-open { overflow: hidden; }

/* ============================================================
   MOBILE OVERLAY + DRAWER
   ============================================================ */
.mah-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1100;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.mah-mobile-overlay.active { display: block; }

/* Drawer: RTL slides from right, LTR from left */
.mah-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--mah-bg);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0.35s;
  visibility: hidden;
}
[dir="ltr"] .mah-mobile-nav {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  background: #232f37;
  --mah-nav:       #dcdcdc;
  --mah-nav-muted: rgba(220, 220, 220, 0.70);
  --mah-nav-active: #ffffff;
  --mah-divider:   rgba(220, 220, 220, 0.15);
}
.mah-mobile-nav.active {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mah-mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 24px;
  padding-block: 20px;
  border-bottom: 1px solid var(--mah-divider);
  flex-shrink: 0;
}
.mah-mobile-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mah-nav);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.mah-mobile-nav__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--mah-nav-active);
}

.mah-mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  flex: 1;
}
.mah-mobile-nav__link {
  display: block;
  padding-inline: 24px;
  padding-block: 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--mah-nav);
  text-decoration: none;
  border-bottom: 1px solid rgba(88, 158, 193, 0.08);
  transition: color 0.2s, background 0.2s;
}
[dir="ltr"] .mah-mobile-nav__link {
  border-bottom-color: rgba(220, 220, 220, 0.10);
}
.mah-mobile-nav__link:hover,
.mah-mobile-nav__link.mah-nav__link--active {
  color: var(--mah-nav-active);
  background: rgba(255, 255, 255, 0.05);
}

.mah-mobile-nav__footer {
  padding-inline: 24px;
  padding-block: 20px;
  border-top: 1px solid var(--mah-divider);
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}
.mah-mobile-nav__contacts {
  display: flex;
  gap: 8px;
}
.mah-mobile-nav__contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding-inline: 12px;
  padding-block: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mah-nav);
  text-decoration: none;
  border: 1px solid rgba(88, 158, 193, 0.25);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
[dir="ltr"] .mah-mobile-nav__contact-btn {
  border-color: rgba(220, 220, 220, 0.25);
}
.mah-mobile-nav__contact-btn:hover {
  color: var(--mah-nav-active);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(88, 158, 193, 0.45);
}
[dir="ltr"] .mah-mobile-nav__contact-btn:hover {
  border-color: rgba(220, 220, 220, 0.50);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet 768–1024px: hide secondary nav, compress primary */
@media (max-width: 1024px) {
  .mah-header__secondary-nav { display: none; }
  .mah-header__right { gap: 8px; }
  .mah-header__nav-link--primary {
    padding-inline: 16px;
    font-size: 15px;
  }
}

/* Mobile <768px: hide all desktop nav, show hamburger */
@media (max-width: 767px) {
  .mah-header__primary-nav  { display: none; }
  .mah-header__hamburger    { display: flex; }
  .mah-header__icon-btn     { display: none; }
  .mah-header__right        { gap: 4px; }
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.mah-search {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: var(--mah-bg);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  font-family: 'Work Sans', system-ui, sans-serif;
}
.mah-search[dir="rtl"] { font-family: '29LT Zarid', system-ui, sans-serif; }

.mah-search.is-open { opacity: 1; visibility: visible; }
body.mah-search-open { overflow: hidden; }

.mah-search__close {
  position: absolute;
  top: 24px;
  inset-inline-end: 48px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--mah-nav);
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s ease;
}
.mah-search__close svg { width: 24px; height: 24px; }
.mah-search__close:hover { color: var(--mah-nav-active); }

.mah-search__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  width: 100%;
  padding: 22vh 48px 96px;
}
.mah-search.has-results .mah-search__inner {
  padding-top: 96px;
  gap: 96px;
  justify-content: flex-start;
}

.mah-search__form { width: 612px; max-width: 100%; }

.mah-search__field {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding: 0 16px;
  background: #103c55;
  border: 1px solid #16506e;
  border-radius: 8px;
  direction: ltr; /* keep the magnifier on the left in both languages */
}

.mah-search__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #589ec1;
}

.mah-search__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  color: var(--mah-nav);
  direction: rtl;
  text-align: right;
}
.mah-search[dir="ltr"] .mah-search__input { direction: ltr; text-align: left; }
.mah-search__input::placeholder { color: #589ec1; opacity: 1; }

/* Native search "clear" (×) button — recolour + size to match the magnifier icon */
.mah-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin: 0;
  cursor: pointer;
  background-color: #589ec1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mah-search__results {
  width: 824px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mah-search__count {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: #86b8d1;
  text-align: right;
}
.mah-search[dir="ltr"] .mah-search__count { text-align: left; }
.mah-search__count strong { font-weight: 700; }

.mah-search__empty {
  margin: 0;
  padding: 24px 0;
  font-size: 20px;
  color: #86b8d1;
  text-align: center;
}

/* ── Search result card (horizontal, dark theme) ── */
.mah-search-card {
  display: flex;
  gap: 16px;
  align-items: stretch;
  padding: 24px;
  border-bottom: 2px solid #16506e;
  text-decoration: none;
  transition: background 0.2s ease;
}
.mah-search-card:hover { background: rgba(88, 158, 193, 0.06); }

/* RTL: image on the right, details on the left */
.mah-search[dir="rtl"] .mah-search-card { flex-direction: row-reverse; }

.mah-search-card__details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: center;
  padding: 24px 24px 24px 0;
}
.mah-search[dir="ltr"] .mah-search-card__details { padding: 24px 0 24px 24px; }

.mah-search-card__title-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mah-search-card__title {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--mah-nav);
  text-align: right;
  width: 100%;
}
.mah-search[dir="ltr"] .mah-search-card__title { text-align: left; }

.mah-search-card__tags {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.mah-search-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 8px;
  background: #374955;
  border-radius: 9999px;
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #dcdcdc;
  white-space: nowrap;
}

.mah-search-card__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #86b8d1;
  text-align: right;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mah-search[dir="ltr"] .mah-search-card__desc { text-align: left; }

.mah-search-card__image {
  width: 294px;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 170px;
  border-radius: 8px;
  overflow: hidden;
}
.mah-search-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .mah-search__results,
  .mah-search__form { width: 100%; }
  .mah-search__close { inset-inline-end: 24px; }
}

@media (max-width: 600px) {
  .mah-search__inner { padding-left: 24px; padding-right: 24px; padding-top: 18vh; }
  .mah-search.has-results .mah-search__inner { padding-top: 80px; gap: 32px; }
  .mah-search-card,
  .mah-search[dir="rtl"] .mah-search-card { flex-direction: column-reverse; padding: 16px; }
  .mah-search-card__image { width: 100%; height: 180px; align-self: auto; }
  .mah-search-card__details { padding: 16px 0; gap: 16px; }
  .mah-search-card__title { font-size: 20px; }
}

/* ============================================================
   FOOTER
   ============================================================ */

/* ── Footer social bar ── */
.mah-footer__social {
  background: var(--mah-footer-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 22px 24px;
  flex-wrap: wrap;
}
[dir="rtl"] .mah-footer__social {
  background: #1f688f;
}

.mah-footer__social-label {
  font-size: 16px;
  font-weight: 400;
  color: var(--mah-footer-text);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
[dir="rtl"] .mah-footer__social-label {
  font-family: '29LT Zarid', sans-serif;
  color: rgba(234, 240, 243, 0.85);
  letter-spacing: 0;
}

.mah-footer__social-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mah-footer__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--mah-footer-text);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}
[dir="rtl"] .mah-footer__social-icon {
  color: rgba(234, 240, 243, 0.85);
}
/* DB-driven icon (ContactSocialMedia.FaIcon SVG) painted via mask so it inherits
   the link's currentColor — including the hover-to-white transition below. */
.mah-footer__social-img {
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat;
          mask: center / contain no-repeat;
}
.mah-footer__social-icon:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.08);
}
.mah-footer__social-icon:active {
  transform: scale(0.95);
}

/* ── Footer-specific tokens ── */
:root {
  --mah-footer-bg:          #232f37;
  --mah-footer-text:        #dcdcdc;
  --mah-footer-text-sub:    #b4d2e1;
  --mah-footer-title-en:    #dcdcdc;
  --mah-footer-title-ar:    #589ec1;
  --mah-footer-row-sep:     rgba(42, 132, 177, 0.30);
  --mah-footer-contact-sep: rgba(42, 132, 177, 0.25);
  --mah-footer-copy-sep:    #adadad;
}

.mah-footer {
  background: var(--mah-footer-bg);
  color: var(--mah-footer-text);
  font-size: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Horizontal inset shared by the text columns, the divider, and the copyright border. */
  --mah-footer-px: 96px;
}
/* AR desktop uses the brand blue-teal background */
[dir="rtl"] .mah-footer {
  background: #0c3144;
  --mah-footer-text: #b4d2e1;
  --mah-footer-copy-sep: #2a84b1;
}

/* ── Top: nav columns ── */
.mah-footer__top {
  padding: 96px 96px 0;
}

.mah-footer__cols {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.mah-footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* EN: uppercase 13px 500w; AR: 16px 600w accent-blue */
.mah-footer__col-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--mah-footer-title-en);
  margin: 0;
  padding: 8px;
  line-height: normal;
  text-transform: uppercase;
  letter-spacing: 0;
}
[dir="rtl"] .mah-footer__col-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--mah-footer-title-ar);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.25;
}

.mah-footer__col-title--gap-top { margin-top: 16px; }


.mah-footer__azure-logo {
  list-style: none;
  padding: 8px 0;
}
.mah-footer__azure-logo img {
  height: 16px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  padding-inline: 16px;
}

.mah-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mah-footer__links--gap-top { margin-top: 16px; }

.mah-footer__link {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: var(--mah-footer-text);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  line-height: 1.5;
  transition: color 0.2s, background 0.2s;
}
.mah-footer__link:hover {
  color: #fff;
}

.mah-footer__authorities {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  padding-inline: 8px;
}
.mah-footer__authority {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

/* Logo shown inside a clickable group-company link */
.mah-footer__group-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.mah-footer__group-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.mah-footer__authority-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mah-footer__authority-icon img,
.mah-footer__authority-icon svg {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.8;
  filter: brightness(0) invert(1);
}
.mah-footer__authority .mah-footer__link {
  padding: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* ── Full-width divider ── */
.mah-footer__divider {
  height: 1px;
  background: var(--mah-footer-copy-sep);
  margin-top: 48px;
  margin-inline: var(--mah-footer-px);
}

/* ── Bottom: [logo][info][contact+badge] — LTR: logo-left badge-right | RTL: badge-left logo-right ── */
.mah-footer__bottom {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  padding: 48px 96px;
}

/* Third column: contact list + badge (flex-1, horizontal) */
.mah-footer__bottom-left {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 48px;
}
.mah-footer__bottom-badge {
  flex-shrink: 0;
  width: 62px;
}
.mah-footer__bottom-badge img {
  width: 62px;
  height: 106px;
  object-fit: cover;
  display: block;
}

/* Copyright: standalone full-width bar — flex-start = right in RTL, left in LTR */
.mah-footer__copyright-standalone {
  border-top: 1px solid var(--mah-footer-copy-sep);
  padding: 24px 0;
  margin-inline: var(--mah-footer-px);
  display: flex;
  justify-content: flex-start;
}

/* Logo column */
.mah-footer__bottom-logo {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mah-footer__logo-link { display: inline-block; }
.mah-footer__logo {
  width: 134px;
  height: 80px;
  object-fit: contain;
  object-position: top;
}

/* Info column: address + hours + contact */
.mah-footer__bottom-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-shrink: 0;
}

.mah-footer__address,
.mah-footer__hours {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--mah-footer-text);
  line-height: 1.6;
  letter-spacing: 0.32px;
}

.mah-footer__contact-list {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mah-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
  color: var(--mah-footer-text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  transition: color 0.2s, background 0.2s;
}
[dir="ltr"] .mah-footer__contact-item { color: #c6c6c6; }
.mah-footer__contact-item:hover {
  color: #fff;
}
.mah-footer__contact-item svg { flex-shrink: 0; opacity: 0.8; }
.mah-footer__contact-sep {
  height: 1px;
  background: var(--mah-footer-contact-sep);
  margin-inline: 16px;
}
[dir="ltr"] .mah-footer__contact-sep {
  background: #adadad;
}

/* Badge: Great Place to Work */
.mah-footer__badge--desktop {
  width: 62px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.mah-footer__badge--mobile { display: none; }
.mah-footer__copyright {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--mah-footer-text);
  letter-spacing: 0.32px;
}
[dir="rtl"] .mah-footer__copyright { text-align: start; }

/* ── Responsive ── */

@media (max-width: 1200px) {
  .mah-footer           { --mah-footer-px: 64px; }
  .mah-footer__top      { padding: 64px 64px 0; }
  .mah-footer__bottom   { padding: 48px 64px; gap: 40px; }
}

@media (max-width: 1024px) {
  .mah-footer           { --mah-footer-px: 48px; }
  .mah-footer__top      { padding: 48px 48px 0; }
  .mah-footer__bottom   { padding: 40px 48px; gap: 32px; flex-wrap: wrap; }
  .mah-footer__bottom-left   { flex-wrap: wrap; gap: 24px; }
}

@media (max-width: 767px) {
  /* Social bar: stack vertically on mobile */
  .mah-footer__social       { flex-direction: column; gap: 16px; padding: 28px 24px; }
  .mah-footer__social-icons { gap: 12px; }
  .mah-footer__social-icon  { width: 40px; height: 40px; }
  .mah-footer__social-label { font-size: 15px; }

  /* Mobile top: category titles only, no links, no separators */
  .mah-footer          { --mah-footer-px: 16px; }
  .mah-footer__top     { padding: 24px 16px 0; }
  .mah-footer__cols    { flex-direction: column; gap: 48px; }
  /* RTL: reverse so Our Group appears first (top), Offerings last (bottom) */
  [dir="rtl"] .mah-footer__cols { flex-direction: column-reverse; }
  .mah-footer__col     { gap: 0; }
  .mah-footer__col-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--mah-footer-title-en);
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.25;
    padding: 8px;
    border-bottom: none;
    cursor: pointer;
    user-select: none;
  }
  [dir="rtl"] .mah-footer__col-title { color: var(--mah-footer-title-ar); }
  /* Gap between two titles within the same column (e.g. Work with Us) */
  .mah-footer__col-title--gap-top { margin-top: 32px; }
  .mah-footer__links          { display: none; }
  .mah-footer__links--gap-top { display: none; }
  .mah-footer__authorities    { display: none; }
  .mah-footer__azure-logo     { display: none; }

  /* Mobile bottom: stacked column, full-width items */
  .mah-footer__divider { margin-top: 24px; }
  .mah-footer__bottom  {
    flex-direction: column;
    gap: 48px;
    padding: 32px 16px 24px;
    align-items: stretch;
  }

  /* Logo row: badge on one end, logo on other — space-between works for both LTR & RTL */
  .mah-footer__bottom-logo {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }
  .mah-footer__badge--mobile  { display: block; width: 62px; height: auto; }
  .mah-footer__badge--desktop { display: none; }

  /* AR mobile: contact list fills left area, badge in logo row */
  .mah-footer__bottom-left  { gap: 0; }
  .mah-footer__bottom-badge { display: none; }

  .mah-footer__bottom-info { gap: 24px; }
  .mah-footer__address,
  .mah-footer__hours { text-align: start; }

  .mah-footer__copyright-standalone  { padding: 24px 0; }
}

/* ============================================================
   MAH — Floating chat button (WhatsApp)
   Figma: 1393:41714 (Chat Floating) | bg #103c55 | white icon
   Mirrors with text direction: bottom-left in RTL (AR, per design),
   bottom-right in LTR (EN, conventional) via inset-inline-end.
   ============================================================ */
.mah-chat-fab {
  position: fixed;
  bottom: 35%;
  inset-inline-end: 24px;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #103c55;
  color: #fff;
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.16);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  /* Entrance: fade + rise once on load */
  animation: mah-chat-fab-in 0.4s ease both;
}

.mah-chat-fab:hover,
.mah-chat-fab:focus-visible {
  background: #0c3144;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
  color: #fff;
}

.mah-chat-fab:focus-visible {
  outline: 3px solid rgba(180, 210, 225, 0.7);
  outline-offset: 3px;
}

.mah-chat-fab:active {
  transform: translateY(0) scale(0.98);
}

.mah-chat-fab__icon {
  width: 40px;
  height: 40px;
  display: block;
}

@keyframes mah-chat-fab-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .mah-chat-fab {
    bottom: 35%;
    inset-inline-end: 16px;
    width: 56px;
    height: 56px;
  }
  .mah-chat-fab__icon { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .mah-chat-fab { animation: none; transition: none; }
}

/* ============================================================
   Breadcrumbs (English) — dark #232f37 bar with header-like text.
   Centralized here (header-footer.css loads on every page) and
   scoped to [dir="ltr"] so it overrides each page's own breadcrumb
   colors. Higher specificity than the per-page .X-breadcrumbs rules.
   ============================================================ */
[dir="ltr"] :is(
  .mah-pg-breadcrumbs,
  .mah-pg-projects-breadcrumbs,
  .mah-ct-breadcrumbs,
  .dst-breadcrumbs,
  .mah-ls-breadcrumbs,
  .mah-careers-breadcrumbs,
  .mah-jd-breadcrumbs,
  .mah-nl-breadcrumbs,
  .mah-nd-breadcrumbs,
  .mah-pd-breadcrumbs,
  .pp-breadcrumbs
) {
  background: #232f37;
}
[dir="ltr"] :is(
  .mah-pg-breadcrumbs__link,        .mah-pg-breadcrumbs__sep,
  .mah-pg-projects-breadcrumbs__link, .mah-pg-projects-breadcrumbs__sep,
  .mah-ct-breadcrumbs__link,        .mah-ct-breadcrumbs__sep,
  .dst-breadcrumbs__link,           .dst-breadcrumbs__sep,
  .mah-ls-breadcrumbs__link,        .mah-ls-breadcrumbs__sep,
  .mah-careers-breadcrumbs__link,   .mah-careers-breadcrumbs__sep,
  .mah-jd-breadcrumbs__link,        .mah-jd-breadcrumbs__sep,
  .mah-nl-breadcrumbs__link,        .mah-nl-breadcrumbs__sep,
  .mah-nd-breadcrumbs__link,        .mah-nd-breadcrumbs__sep,
  .mah-pd-breadcrumbs__link,        .mah-pd-breadcrumbs__sep,
  .pp-breadcrumbs__link,            .pp-breadcrumbs__sep
) {
  color: #b4d2e1;
}
[dir="ltr"] :is(
  .mah-pg-breadcrumbs__current,
  .mah-pg-projects-breadcrumbs__current,
  .mah-ct-breadcrumbs__current,
  .dst-breadcrumbs__current,
  .mah-ls-breadcrumbs__current,
  .mah-careers-breadcrumbs__current,
  .mah-jd-breadcrumbs__current,
  .mah-nl-breadcrumbs__current,
  .mah-nd-breadcrumbs__current,
  .mah-pd-breadcrumbs__current,
  .pp-breadcrumbs__current
) {
  color: #dcdcdc;
}
