/* assets/css/page-layout.css */
body .news-detail-main .news-feature-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 36px;
  background: #f7f4ee;
}

body .news-detail-main .news-feature-image {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  flex: none;
  display: block;
  border: none;
  border-radius: 0;
}

/* assets/css/barwa-navbar-en.css */
/* Synced with media-gallery.html — navbar + design tokens used by the nav only */
    :root {
      --font-lusail: 'Lusail', Lusail, sans-serif;
      --color-primary: #00417B;
      --color-text: #333333;
      --color-white: #ffffff;
      --container-max: 1400px;
      --navbar-padding-x: clamp(1rem, 1.5rem + 2.5vw, 6rem);
      --navbar-padding-x-sm: clamp(1rem, 1rem + 1.5vw, 1.5rem);
      --navbar-padding-x-xs: clamp(0.75rem, 0.5rem + 2vw, 1.25rem);
      --navbar-padding-y: clamp(0.5rem, 0.5rem + 0.5vw, 1rem);
      --utility-bar-gap: clamp(16px, 1.5vw + 14px, 27px);
      --nav-bg: #00417B;
      --nav-text: #ffffff;
      --nav-text-muted: rgba(255, 255, 255, 0.9);
      --nav-hover: rgba(255, 255, 255, 0.15);
      --space-xs: 4px;
      --space-sm: 8px;
      --space-md: 16px;
      --space-lg: 24px;
      --space-xl: 32px;
      --space-2xl: 48px;
      --space-3xl: 64px;
    }

    /* Navbar — from investor-relations */
    .navbar {
      position: relative;
      background: var(--nav-bg);
      color: var(--nav-text);
      width: 100%;
      box-sizing: border-box;
      z-index: 10;
    }
    .navbar-inner {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      padding-top: var(--navbar-padding-y);
      padding-bottom: var(--navbar-padding-y);
      padding-left: calc(2 * var(--navbar-padding-x));
      padding-right: calc(2 * var(--navbar-padding-x));
      display: grid;
      grid-template-columns: auto 1fr;
      grid-template-rows: auto;
      align-items: center;
      gap: clamp(0.5rem, 0.5rem + 0.5vw, 1rem);
    }
    .navToggle {
      display: none;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      width: 44px;
      height: 44px;
      padding: 10px;
      background: transparent;
      border: none;
      cursor: pointer;
      color: #fff;
      align-self: center;
    }
    .navToggle:hover { opacity: 0.9; }
    .navToggleBar {
      display: block;
      width: 22px;
      height: 2px;
      background: currentColor;
      border-radius: 1px;
      transition: transform 0.2s, opacity 0.2s;
    }
    .navbar--open .navToggleBar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .navbar--open .navToggleBar:nth-child(2) { opacity: 0; }
    .navbar--open .navToggleBar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .navDrawerBackdrop {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.4);
      z-index: 999;
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
    }
    .navDrawerClose { display: none; }
    .navLogo { display: flex; align-items: center; padding: 0; margin: 0; align-self: center; flex-shrink: 0; min-width: 0; }
    .navRight {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      max-width: var(--container-max);
      margin-left: auto;
      width: 100%;
      min-height: 100%;
      min-width: 0;
      overflow: hidden;
      grid-column: 2;
      grid-row: 1;
    }
    .utilityBar {
      display: flex;
      flex-direction: row;
      justify-content: flex-end;
      align-items: center;
      flex-wrap: wrap;
      padding: 0;
      margin-bottom: clamp(0.35rem, 0.3rem + 0.3vw, 0.5rem);
      gap: var(--utility-bar-gap);
      height: 32px;
      min-height: 32px;
    }
    .utilityBarFontSize { display: flex; flex-direction: row; align-items: center; padding: 0; gap: 24px; width: 98px; height: 24px; flex: none; flex-grow: 0; }
    .navDivider { width: 100%; height: 1px; margin: 0; border: none; background: rgba(255, 255, 255, 0.25); }
    .navItemsRow {
      display: flex;
      align-items: flex-start;
      justify-content: flex-start;
      width: 100%;
      padding: clamp(0.25rem, 0.2rem + 0.3vw, 0.5rem) 0 clamp(0.4rem, 0.3rem + 0.3vw, 0.75rem) 0;
      margin: 0;
      min-height: 40px;
    }
    .utilityItem {
      color: #ffffff;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0;
      font-family: Lusail, sans-serif;
      font-weight: 400;
      font-size: 16px;
      line-height: 24px;
      text-decoration: none;
      display: inline-flex;
      flex-direction: row;
      align-items: center;
      gap: 4px;
      height: 24px;
      flex: none;
      flex-grow: 0;
      transition: opacity 0.2s;
    }
    .utilityItem:hover { opacity: 0.9; }
    .utilityItem[aria-label] { min-width: 2rem; text-align: center; }
    .utilityItemIcon { gap: 0; }
    .utilityItemArabic {
      box-sizing: border-box;
      display: inline-flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      padding: 6px 12px;
      gap: 6px;
      width: auto;
      min-width: 80px;
      height: 32px;
      border: 1px solid rgba(255, 255, 255, 0.7);
      background: transparent;
      color: #ffffff;
      font-family: Lusail, sans-serif;
      font-weight: 500;
      font-style: normal;
      font-size: 13px;
      line-height: 20px;
      text-transform: uppercase;
      text-decoration: none;
      cursor: pointer;
      flex: none;
      flex-grow: 0;
      border-radius: 4px;
      transition: all 0.2s ease;
    }
    .utilityItemArabic:hover { 
      opacity: 0.9; 
      border-color: rgba(255, 255, 255, 0.9);
      transform: translateY(-1px);
    }

    @media (min-width: 1024px) {
      .navbar-inner > .utilityItemArabic.mobileLanguageSwitch {
        display: none !important;
      }
    }

    .languageSwitchIcon {
      width: 16px;
      height: 16px;
      flex: none;
      display: block;
    }
    .utilityIcon { width: 24px; height: 24px; flex: none; display: block; }
    .logoLink { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; color: inherit; }
    .logo { width: 220px; height: 104px; display: block; object-fit: contain; max-width: 100%; }
    .navLinks {
      display: flex;
      align-items: center;
      flex-wrap: nowrap;
      justify-content: space-between;
      gap: 16px;
      width: 100%;
      height: 24px;
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .navItemsRow .navLinks { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
    .navLink { padding: 0; margin: 0; }
    .navLink a {
      color: var(--nav-text-muted);
      text-decoration: none;
      font-family: Lusail, sans-serif;
      font-weight: 400;
      font-style: normal;
      font-size: 18px;
      line-height: 24px;
      letter-spacing: 0;
      text-transform: uppercase;
      padding: 0.35rem 0.6rem;
      border-radius: 2px;
      transition: color 0.2s, background 0.2s;
    }
    .navLink a:hover { color: var(--nav-text); background: var(--nav-hover); }

    /* Press Room dropdown */
    .navLink--dropdown { position: static; }
    .navDropdown-trigger {
      box-sizing: border-box;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin: 0;
      padding: 0.35rem 0.6rem;
      border: none;
      border-radius: 2px;
      background: transparent;
      cursor: pointer;
      font-family: Lusail, sans-serif;
      font-weight: 400;
      font-style: normal;
      font-size: 18px;
      line-height: 24px;
      letter-spacing: 0;
      text-transform: uppercase;
      color: var(--nav-text-muted);
      transition: color 0.2s, background 0.2s;
    }
    .navDropdown-trigger:hover,
    .navLink--dropdown:hover .navDropdown-trigger,
    .navLink--dropdown:focus-within .navDropdown-trigger {
      color: var(--nav-text);
      background: var(--nav-hover);
    }
    .navDropdown-trigger.active {
      color: var(--nav-text);
      background: var(--nav-hover);
    }
    .navDropdown-chevron {
      display: inline-block;
      width: 0;
      height: 0;
      margin-left: 2px;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-top: 5px solid currentColor;
      opacity: 0.85;
      flex-shrink: 0;
      transition: transform 0.2s ease;
    }
    .navLink--dropdown.is-open .navDropdown-chevron {
      transform: rotate(180deg);
    }
    .navDropdown {
      list-style: none;
      margin: 0;
      padding: 0;
    }
    @media (min-width: 1024px) {
      .navLink--dropdown { position: relative; }
      .navDropdown {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        min-width: 220px;
        padding: 8px 0;
        background: #ffffff;
        border-radius: 4px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity 0.2s ease, visibility 0.2s, transform 0.2s ease;
        pointer-events: none;
      }
      .navLink--dropdown:hover .navDropdown,
      .navLink--dropdown:focus-within .navDropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
      }
      .navDropdown a {
        display: block;
        padding: 10px 18px;
        font-family: Lusail, sans-serif;
        font-weight: 400;
        font-size: 16px;
        line-height: 22px;
        text-transform: uppercase;
        color: #00417B;
        border-radius: 0;
        text-decoration: none;
        transition: background 0.15s;
      }
      .navDropdown a:hover {
        color: #00417B;
        background: rgba(0, 65, 123, 0.08);
      }
      .navDropdown a.active,
      .navDropdown a.active:hover,
      .navDropdown a.active:focus,
      .navDropdown a.active:visited {
        color: #00417B !important;
        background: rgba(0, 65, 123, 0.12);
        font-weight: 500;
      }
      .navRight,
      .navItemsRow,
      .navLinks {
        overflow: visible;
      }
      .navLink--dropdown::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 14px;
      }
    }
    .navLink a.active { color: var(--nav-text); background: var(--nav-hover); }
    @media (max-width: 1279px) {
      .navbar-inner { padding-left: calc(2 * var(--navbar-padding-x-sm)); padding-right: calc(2 * var(--navbar-padding-x-sm)); }
      .logo { width: 200px; height: 96px; }
      .navLinks { gap: var(--space-md); }
    }
    @media (max-width: 1023px) {
      .navbar-inner { padding-left: calc(2 * var(--navbar-padding-x-sm)); padding-right: calc(2 * var(--navbar-padding-x-sm)); }
      .navbar-inner > .navLogo { transform: translateX(7px); }
      .navToggle { display: flex; grid-column: 2; grid-row: 1; justify-self: end; }
      .navDrawerBackdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
      }
      .navbar--open .navDrawerBackdrop { opacity: 1; visibility: visible; pointer-events: auto; }
      .navRight {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
        z-index: 1001;
        grid-column: unset;
        grid-row: unset;
        margin: 0;
        display: flex;
        flex-direction: column;
        padding: 0;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      }
      .navbar--open .navRight { transform: translateX(0); }
      .navDrawerClose {
        display: flex;
        order: 0;
        flex: none;
        align-self: flex-end;
        width: 44px;
        height: 44px;
        margin: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 4vw, 1.5rem) 0 0;
        padding: 0;
        background: transparent;
        border: none;
        cursor: pointer;
        position: relative;
        align-items: center;
        justify-content: center;
      }
      .navDrawerCloseIcon {
        position: absolute;
        width: 20px;
        height: 2px;
        background: #1a1a2e;
        border-radius: 1px;
      }
      .navDrawerCloseIcon:nth-child(1) { transform: rotate(45deg); }
      .navDrawerCloseIcon:nth-child(2) { transform: rotate(-45deg); }
      .navRight .navItemsRow { order: 1; flex: 1 0 auto; min-height: 0; padding: clamp(1rem, 3vw, 1.5rem) 0 0; }
      .navRight .navDivider { order: 2; margin: 0 clamp(1rem, 4vw, 1.5rem); background: rgba(0, 0, 0, 0.12); }
      .navRight .utilityBar { order: 3; flex: none; justify-content: center; gap: var(--utility-bar-gap); min-height: 56px; padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 4vw, 1.5rem); margin: 0; border-top: 1px solid rgba(0, 0, 0, 0.08); }
      .navRight .navLinks { flex-direction: column; align-items: stretch; gap: 0; height: auto; justify-content: flex-start; }
      .navRight .navLink { display: block; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
      .navRight .navLink a { display: block; padding: clamp(0.75rem, 2.5vw, 1rem) clamp(1rem, 4vw, 1.5rem); font-size: 18px; line-height: 24px; color: #1a1a2e; }
      .navRight .navLink a:hover { background: rgba(0, 0, 0, 0.04); color: #003366; }
      .navRight .navLink--dropdown {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
      }
      .navRight .navDropdown-trigger {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: clamp(0.75rem, 2.5vw, 1rem) clamp(1rem, 4vw, 1.5rem);
        font-size: 18px;
        line-height: 24px;
        color: #1a1a2e;
        border-radius: 0;
      }
      .navRight .navDropdown-trigger:hover,
      .navRight .navLink--dropdown.is-open .navDropdown-trigger {
        background: rgba(0, 0, 0, 0.04);
        color: #003366;
      }
      .navRight .navDropdown-trigger.active {
        color: #003366;
        background: rgba(0, 65, 123, 0.08);
      }
      .navRight .navDropdown {
        display: none;
        position: static;
        background: rgba(0, 65, 123, 0.06);
        box-shadow: none;
        padding: 0;
        border-radius: 0;
      }
      .navRight .navLink--dropdown.is-open .navDropdown {
        display: block;
      }
      .navRight .navDropdown a {
        display: block;
        padding: 0.65rem clamp(1rem, 4vw, 1.5rem) 0.65rem clamp(1.75rem, 5vw, 2.25rem);
        font-size: 16px;
        line-height: 22px;
        text-transform: uppercase;
        color: #1a1a2e;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
      }
      .navRight .navDropdown a:hover {
        background: rgba(0, 0, 0, 0.04);
        color: #003366;
      }
      .navRight .navDropdown a.active {
        color: #003366;
        font-weight: 500;
        background: rgba(0, 65, 123, 0.1);
      }

      .navRight .utilityItem { color: #1a1a2e; }
      .navRight .utilityItemArabic { color: #1a1a2e; border-color: rgba(0, 0, 0, 0.35); }
      .logo { width: 160px; height: 76px; }
    }
    @media (max-width: 767px) {
      .navbar-inner { padding-left: calc(2 * var(--navbar-padding-x-xs)); padding-right: calc(2 * var(--navbar-padding-x-xs)); }
      .logo { width: 150px; height: 72px; }
    }
    @media (max-width: 639px) {
      .navbar-inner { padding-left: clamp(var(--space-sm), 2vw + var(--space-xs), var(--space-md)); padding-right: clamp(var(--space-sm), 2vw + var(--space-xs), var(--space-md)); }
      .logo { width: 130px; height: 62px; }
      .navLink a { font-size: 14px; line-height: 20px; padding: 0.35rem 0.3rem; }
    }
@media (max-width: 1023px) {
  .supplier-registration-btn {
    display: none !important;
  }
}
/* assets/css/cta-build-future.css */
/**
 * Shared CTA — matches Arabic homepage (test-ar.html) / English (test.html).
 * Link once per page; avoid duplicating #cta rules in page <style> blocks.
 *
 * Vertical rhythm: one token controls the gap above the CTA on every page.
 * Predecessors `main` / `section` immediately before `#cta` drop bottom padding so
 * the visible gap is only `margin-top` on `#cta` (consistent across layouts).
 * For #subsidiaries, subsidiaries-section.css reapplies bottom padding (!important).
 */
:root {
  /* Space between main content and the primary CTA (desktop; tablet/mobile override below) */
  --cta-section-space-above: var(--space-3xl, 64px);
}

/* Make CTA rendering independent of page-level resets */
#cta.cta-build-future,
#cta.cta-build-future *,
#cta.cta-build-future *::before,
#cta.cta-build-future *::after {
  box-sizing: border-box;
}

#cta.cta-build-future img {
  max-width: 100%;
  display: block;
}

/* Remove double-spacing: page shell bottom padding + CTA margin */
main:has(+ #cta.cta-build-future),
section:has(+ #cta.cta-build-future) {
  padding-bottom: 0;
}

/* Investor relations: bottom inset lives on tab panels, not on <main> */
main:has(+ #cta.cta-build-future) > .investor-panel {
  padding-bottom: 0;
}

/* Sections whose last inner wrapper carried bottom padding (e.g. subsidiaries band) */
section:has(+ #cta.cta-build-future) > *:last-child {
  padding-bottom: 0;
}

#cta.cta-build-future {
  width: 100%;
  padding: 0 calc(2 * var(--navbar-padding-x, clamp(1rem, 1.5rem + 2.5vw, 6rem)));
  margin-top: var(--cta-section-space-above);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  vertical-align: top;
}
#cta.cta-build-future .cta-build-inner {
  margin-bottom: 0;
  width: 100%;
  min-height: 232px;
  height: auto;
  margin: 0;
  background: #00417b;
  padding: 28px var(--space-3xl, 64px);
  display: grid;
  grid-template-columns: 35% 45% 20%;
  grid-template-rows: auto auto;
  gap: 0 var(--space-2xl, 48px);
  box-sizing: border-box;
}
#cta.cta-build-future .cta-build-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: center;
}
#cta.cta-build-future .cta-build-title {
  font-family: var(--font-lusail, "Lusail", Lusail, sans-serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.2;
  letter-spacing: 0;
  color: #ffffff;
  margin: 0;
}
#cta.cta-build-future .cta-build-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: end;
}
#cta.cta-build-future .cta-build-logo {
  width: 100%;
  max-width: 471px;
  height: auto;
  max-height: 82.57px;
  object-fit: contain;
  display: block;
}
#cta.cta-build-future .cta-build-right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: end;
}
#cta.cta-build-future .cta-build-desc {
  grid-column: 1 / -1;
  font-family: var(--font-lusail, "Lusail", Lusail, sans-serif);
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0;
  color: #ffffff;
  margin: var(--space-lg, 24px) 0 0;
}
#cta.cta-build-future .cta-build-desc .cta-text {
  display: block;
}
#cta.cta-build-future .cta-build-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 171px;
  min-height: 56px;
  padding: 16px 24px;
  gap: 10px;
  background: #ffffff;
  color: #00417b;
  font-family: var(--font-lusail, "Lusail", Lusail, sans-serif);
  font-weight: 500;
  font-style: normal;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s ease;
}
#cta.cta-build-future .cta-build-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}
@media (max-width: 1023px) {
  :root {
    /* Slightly tighter CTA offset on tablet / small laptop */
    --cta-section-space-above: var(--space-2xl, 48px);
  }
}

@media (max-width: 767px) {
  #cta.cta-build-future {
    padding: 0 calc(2 * var(--navbar-padding-x-xs, clamp(0.75rem, 0.5rem + 2vw, 1.25rem)));
  }
  #cta.cta-build-future .cta-build-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: var(--space-lg, 24px);
    text-align: center;
    padding: var(--space-xl, 32px) var(--space-2xl, 48px);
    min-height: auto;
    height: auto;
  }
  #cta.cta-build-future .cta-build-left {
    justify-content: center;
    align-self: center;
  }
  #cta.cta-build-future .cta-build-logo-wrap {
    align-self: center;
  }
  #cta.cta-build-future .cta-build-logo {
    max-width: 320px;
    margin: 0 auto;
  }
  #cta.cta-build-future .cta-build-right {
    justify-content: center;
    align-self: center;
  }
  #cta.cta-build-future .cta-build-title {
    font-size: clamp(28px, 3.4vw, 48px);
    line-height: 1.2;
    text-align: center;
  }
  #cta.cta-build-future .cta-build-desc {
    margin-top: 0;
    font-size: 18px;
    line-height: 27px;
    text-align: center;
  }
  #cta.cta-build-future .cta-build-desc .cta-text {
    --cta-mobile-text-bleed: clamp(34px, 9vw, 42px);
    width: calc(100% + var(--cta-mobile-text-bleed));
    margin-left: calc(var(--cta-mobile-text-bleed) / -2);
    margin-right: calc(var(--cta-mobile-text-bleed) / -2);
  }
}

@media (max-width: 639px) {
  #cta.cta-build-future .cta-build-btn {
    min-height: 44px;
    padding: 12px 20px;
  }
}

html[dir="rtl"] #cta.cta-build-future .cta-build-inner {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] #cta.cta-build-future .cta-build-title {
  text-align: right;
}
html[dir="rtl"] #cta.cta-build-future .cta-build-desc {
  text-align: right;
}
@media (max-width: 767px) {
  html[dir="rtl"] #cta.cta-build-future .cta-build-inner,
  html[dir="rtl"] #cta.cta-build-future .cta-build-title,
  html[dir="rtl"] #cta.cta-build-future .cta-build-desc {
    text-align: center;
  }
}

@media (max-width: 639px) {
  html[dir="rtl"] #cta.cta-build-future {
    padding: 0 calc(2 * var(--navbar-padding-x-xs, clamp(0.75rem, 0.5rem + 2vw, 1.25rem)));
  }
}

/* assets/css/footer.css */
#footer {
  margin-top: -2px;
  background: #FFFFFF;
  color: #1a1a1a;
  /* Tighter band below #cta.cta-build-future so menu columns sit closer to the CTA */
  padding: calc(16px + var(--space-xl, 32px)) calc(2 * var(--navbar-padding-x, clamp(1rem, 1.5rem + 2.5vw, 6rem))) var(--space-xl, 32px);
  font-family: var(--font-lusail, 'Lusail', sans-serif);
}

#footer .footer-inner {
  max-width: var(--container-max, 1400px);
  margin: 0 auto;
  padding: 0 var(--space-xl, 32px);
}

#footer a {
  color: #1a1a1a;
  text-decoration: none;
  font-family: var(--font-lusail, 'Lusail', sans-serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
}

#footer a:hover {
  color: #00417B;
}

/* Column nav links (Quick Links, IR, etc.) — smaller than generic #footer a */
#footer .footer-col ul a {
  font-size: 14px;
  line-height: 20px;
}

#footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg, 24px);
  align-items: start;
  padding-bottom: var(--space-xl, 32px);
  border-bottom: 1px solid rgba(26, 26, 26, 0.15);
}

#footer .footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs, 4px);
}

#footer .footer-title {
  font-family: var(--font-lusail, 'Lusail', sans-serif);
  font-weight: 400;
  font-style: normal;
  font-size: 26px;
  line-height: 32px;
  letter-spacing: 0;
  color: #00417B;
  margin: 0 0 6px;
}

#footer .footer-title.footer-subhead {
  margin-top: var(--space-lg, 24px);
  margin-bottom: var(--space-xs, 4px);
}

#footer .footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#footer .footer-col li {
  margin-bottom: 4px;
}

#footer .footer-col li:last-child {
  margin-bottom: 0;
}

#footer .footer-col-4 {
  min-height: 1px;
}

#footer .footer-newsletter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  width: 100%;
  padding: var(--space-lg, 24px) 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.15);
}

#footer .footer-logo {
  flex-shrink: 0;
}

#footer .footer-logo img {
  width: 200px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* A field people never see; the newsletter form ignores requests that fill it in (bots). */
#footer .footer-newsletter-trap {
  position: absolute !important;
  inset-inline-start: 0;
  top: 0;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

#footer .footer-newsletter {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px) auto;
  column-gap: var(--space-sm, 8px);
  row-gap: var(--space-sm, 8px);
  align-items: center;
}

#footer .footer-newsletter label {
  grid-column: 2 / -1;
  grid-row: 1;
  font-family: var(--font-lusail, 'Lusail', sans-serif);
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: 0;
  color: #00417B;
  margin: 0;
  text-align: start;
}

#footer .footer-newsletter .footer-newsletter-form-row {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px) auto;
  column-gap: var(--space-sm, 8px);
  width: 100%;
  align-items: center;
}

#footer .footer-newsletter input[type="email"] {
  grid-column: 2;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 10px 14px;
  font-family: 'Lusail Light', var(--font-lusail, 'Lusail', sans-serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 22px;
  border: 1px solid #00417B;
  background: #FFFFFF;
  color: #1a1a1a;
  border-radius: 2px;
  min-height: 44px;
  box-sizing: border-box;
  direction: ltr;
  text-align: start;
}

html[dir="rtl"] #footer .footer-newsletter input[type="email"] {
  direction: rtl;
  text-align: start;
}

#footer .footer-newsletter input[type="email"]::placeholder {
  color: #00417B;
  font-family: 'Lusail Light', var(--font-lusail, 'Lusail', sans-serif);
  font-weight: 300;
}

html[dir="rtl"] #footer .footer-newsletter input[type="email"]::placeholder {
  text-align: right;
}

#footer .footer-newsletter button {
  grid-column: 3;
  flex-shrink: 0;
  padding: 10px 20px;
  min-height: 44px;
  font-family: var(--font-lusail, 'Lusail', sans-serif);
  font-weight: 500;
  font-size: 15px;
  background: #00417B;
  color: #FFFFFF;
  border: none;
  border-radius: 2px;
  cursor: pointer;
}

#footer .footer-newsletter button:hover {
  opacity: 0.92;
}

#footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm, 8px);
  padding-top: var(--space-md, 16px);
}

/* --- Added for Newsletter Pop-up --- */

/* The Toast Container */
.subscribe-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #00417B; /* Matches your brand blue from footer.css */
    color: #FFFFFF;
    padding: 16px 28px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: none; /* Hidden by default */
    z-index: 9999;
    font-family: var(--font-lusail, 'Lusail', sans-serif);
    border-left: 5px solid #C9A84C; /* Gold accent */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* State when the toast is active */
.subscribe-toast.show {
    display: block;
    animation: slideInAndFade 0.5s forwards;
}

@keyframes slideInAndFade {
    from { 
        transform: translateY(20px); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

/* Optional: Red border for invalid input */
#footer .footer-newsletter input[type="email"].input-error {
    border-color: #ff4d4d !important;
}


/* SharePoint embed cleanup — remove default WebPart chrome spacing */
.ms-webpart-chrome-title,
.ms-webpart-frame-title,
.ms-webpart-titleText,
.ms-webpart-titleText span {
  display: none !important;
}

.ms-webpart-chrome,
.ms-webpart-zone,
.ms-webpart-cell {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.ms-webpart-chrome > div {
  margin: 0 !important;
  padding: 0 !important;
}

#footer .footer-copy,
#footer .footer-copyright {
  font-size: 14px;
  line-height: 22px;
  color: #1a1a1a;
  margin: 0;
  min-width: 0;
}

#footer .footer-social {
  display: flex;
  gap: var(--space-md, 16px);
}

#footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #1a1a1a;
  font-size: 16px;
}

#footer .footer-social a img {
  filter: none !important;
}

#footer .footer-social a:hover {
  background: #FFFFFF;
}

#footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md, 16px);
}

#footer .footer-legal a {
  color: #1a1a1a;
  font-size: 14px;
}

@media (max-width: 1023px) {
  #footer .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  #footer {
    padding: calc(12px + var(--space-lg, 24px)) calc(2 * var(--navbar-padding-x-xs, clamp(0.75rem, 0.5rem + 2vw, 1.25rem))) var(--space-lg, 24px);
  }

  #footer .footer-inner {
    padding: 0;
  }

  #footer .footer-grid {
    grid-template-columns: 1fr;
  }

  #footer .footer-col {
    align-items: center;
    text-align: center;
  }

  #footer .footer-title {
    text-align: center;
  }

  #footer .footer-col li,
  #footer .footer-col a {
    text-align: center;
  }

  #footer .footer-newsletter-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md, 16px);
    padding: var(--space-md, 16px) 0;
  }

  #footer .footer-logo {
    align-self: center;
  }

  #footer .footer-logo img {
    margin-inline: auto;
  }

  #footer .footer-newsletter {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    direction: unset;
  }

  #footer .footer-newsletter label {
    grid-column: unset;
    grid-row: unset;
    text-align: center;
  }

  html[dir="rtl"] #footer .footer-newsletter label {
    direction: unset;
  }

  #footer .footer-newsletter .footer-newsletter-form-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm, 8px);
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    grid-column: unset;
    grid-row: unset;
  }

  #footer .footer-newsletter input[type="email"] {
    grid-column: unset;
    max-width: none;
    width: 100%;
    text-align: center;
  }

  #footer .footer-newsletter .footer-newsletter-form-row button {
    grid-column: unset;
    width: 100%;
  }

  #footer .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-xs, 4px);
  }

  /* DOM: copyright → legal → social; mobile: social → policies → copyright */
  #footer .footer-bottom .footer-social {
    order: 1;
  }

  #footer .footer-bottom .footer-legal {
    order: 2;
  }

  #footer .footer-bottom .footer-copyright,
  #footer .footer-bottom .footer-copy {
    order: 3;
  }

  #footer .footer-legal {
    justify-content: center;
  }

  /* RTL: same centered mobile layout; keep newsletter input centered on mobile */
  html[dir="rtl"] #footer .footer-col,
  html[dir="rtl"] #footer .footer-title,
  html[dir="rtl"] #footer .footer-col li,
  html[dir="rtl"] #footer .footer-col a {
    text-align: center;
  }

  html[dir="rtl"] #footer .footer-newsletter-row {
    align-items: center;
    text-align: center;
  }

  html[dir="rtl"] #footer .footer-logo {
    text-align: center;
  }

  html[dir="rtl"] #footer .footer-newsletter {
    align-items: center;
    text-align: center;
  }

  html[dir="rtl"] #footer .footer-newsletter label {
    text-align: center;
  }

  html[dir="rtl"] #footer .footer-newsletter-form-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }

  html[dir="rtl"] #footer .footer-newsletter input[type="email"] {
    text-align: center;
    direction: ltr;
  }

  html[dir="rtl"] #footer .footer-newsletter input[type="email"]::placeholder {
    text-align: center;
  }

  html[dir="rtl"] #footer .footer-newsletter button {
    margin-inline: 0;
    width: 100%;
  }

  html[dir="rtl"] #footer .footer-bottom,
  html[dir="rtl"] #footer .footer-copyright {
    text-align: center;
  }

  html[dir="rtl"] #footer .footer-social {
    justify-content: center;
  }

  html[dir="rtl"] #footer .footer-legal {
    text-align: center;
    justify-content: center;
  }

  html[dir="rtl"] #footer .footer-legal a {
    margin-inline: 0;
  }
}

