/* Site header (takaful-home-hero.html design), generated from the marketing site's
   styles/scss/components/_site-header.scss so both sites match. Buying-only rules follow it. */
:root {
  --sh-height: 104px;
}

.sh-header,
.sh-drawer {
  --sh-ink: #eaf2ee;
  --sh-muted: #9db1aa;
  --sh-surface: #141e1b;
  --sh-surface-2: #18241f;
  --sh-glass: rgba(20, 30, 27, 0.92);
  --sh-line: rgba(214, 240, 230, 0.1);
  --sh-line-strong: rgba(214, 240, 230, 0.2);
  --sh-green-deep: #7fbf3f;
  --sh-green-text: #aedc52;
  --sh-teal-text: #8adae2;
  --sh-tint: rgba(152, 200, 41, 0.12);
  --sh-grad: linear-gradient(90deg, #7fcfd6, #7fbf3f);
  --sh-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6), 0 8px 20px -10px rgba(0, 0, 0, 0.4);
  --sh-shadow-sm: 0 10px 24px -14px rgba(0, 0, 0, 0.6);
  --sh-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color: var(--sh-ink);
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}
.sh-header a,
.sh-drawer a {
  color: inherit;
  text-decoration: none;
  transition-property: background-color, border-color, color, box-shadow, transform;
}
.sh-header button,
.sh-drawer button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition-property: background-color, border-color, color, box-shadow, transform;
}
.sh-header :focus-visible,
.sh-drawer :focus-visible {
  outline: 2.5px solid var(--sh-green-deep) !important;
  outline-offset: 3px;
}
.sh-header .sh-ic,
.sh-drawer .sh-ic {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Bar */
.sh-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: var(--sh-height);
  padding-block: 14px;
  pointer-events: none;
}
.sh-header .sh-wrap {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 16px;
}
.sh-header .sh-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 76px;
  padding-inline: 18px 14px;
  background: var(--sh-glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--sh-line);
  border-radius: 24px;
  pointer-events: auto;
  transition: box-shadow 0.3s, height 0.3s;
}
.sh-header.is-scrolled .sh-bar {
  height: 66px;
  box-shadow: var(--sh-shadow-sm);
}
.sh-header .sh-logo {
  display: flex;
  align-items: center;
  flex: none;
}
.sh-header .sh-logo img {
  display: block;
  height: 54px;
  width: auto;
  transition: height 0.3s;
}
.sh-header.is-scrolled .sh-logo img {
  height: 46px;
}
.sh-header .sh-logos {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sh-header .sh-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  margin-inline: auto;
}
.sh-header .sh-trigger,
.sh-header .sh-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: var(--fw-medium, 500);
  line-height: 1.2;
  white-space: nowrap;
  color: var(--sh-ink);
  transition: background 0.2s, color 0.2s;
}
.sh-header .sh-trigger:hover,
.sh-header .sh-link:hover,
.sh-header .sh-trigger[aria-expanded=true],
.sh-header .sh-link.is-active {
  background: var(--sh-tint);
  color: var(--sh-ink);
}
.sh-header .sh-nav-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
}
.sh-header .sh-nav-icon img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.sh-header .sh-chev {
  width: 14px;
  height: 14px;
  color: var(--sh-muted);
  transition: transform 0.3s var(--sh-ease);
}
.sh-header .sh-trigger[aria-expanded=true] .sh-chev {
  transform: rotate(180deg);
}
.sh-header .sh-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.sh-header .sh-lang {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--sh-line-strong);
  font-size: 17px;
  line-height: 1;
  transition: border-color 0.2s, background 0.2s;
}
.sh-header .sh-lang:hover {
  border-color: var(--sh-green-deep);
  background: var(--sh-tint);
  color: var(--sh-ink);
}
.sh-header .sh-pill.sh-quote {
  display: none;
}
.sh-header .sh-burger {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--sh-line-strong);
}

/* Buttons (header and drawer) */
.sh-header .sh-btn,
.sh-drawer .sh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--sh-ink);
  font-weight: var(--fw-medium, 500);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.sh-header .sh-btn .sh-ic,
.sh-drawer .sh-btn .sh-ic {
  width: 18px;
  height: 18px;
  color: var(--sh-green-deep);
}
.sh-header .sh-btn:hover,
.sh-drawer .sh-btn:hover {
  background: var(--sh-ink);
  color: #0c1311;
}
.sh-header .sh-btn--icon,
.sh-drawer .sh-btn--icon {
  width: 44px;
  padding: 0;
}
.sh-header .sh-pill,
.sh-drawer .sh-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--sh-grad);
  color: #fff;
  font-weight: var(--fw-bold, 700);
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0, 60, 40, 0.25);
}
.sh-header .sh-pill:hover,
.sh-drawer .sh-pill:hover {
  color: #fff;
}
.sh-header .sh-pill .sh-ic,
.sh-drawer .sh-pill .sh-ic {
  width: 18px;
  height: 18px;
}

/* Mega menu: one container that morphs between panels */
.sh-header .sh-mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: var(--w, 500px);
  height: var(--h, 300px);
  transform: translateX(var(--x, 0px)) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  background: var(--sh-surface);
  border: 1px solid var(--sh-line);
  border-radius: 22px;
  box-shadow: var(--sh-shadow);
  transition: opacity 0.22s, transform 0.4s var(--sh-ease), width 0.4s var(--sh-ease), height 0.4s var(--sh-ease);
}
.sh-header .sh-mega.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(var(--x, 0px)) translateY(0);
}
.sh-header .sh-mega.is-snap {
  transition: opacity 0.22s;
}
.sh-header .sh-mega-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}
.sh-header .sh-mega-caret {
  position: absolute;
  top: -7px;
  left: var(--cx, 40px);
  width: 14px;
  height: 14px;
  background: var(--sh-surface);
  border-left: 1px solid var(--sh-line);
  border-top: 1px solid var(--sh-line);
  transform: translateX(-50%) rotate(45deg);
  transition: left 0.4s var(--sh-ease);
}
.sh-header .sh-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 380px;
  max-width: calc(100vw - 48px);
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(var(--from, 0px));
  transition: opacity 0.25s, transform 0.35s var(--sh-ease), visibility 0s 0.25s;
}
.sh-header .sh-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s 0.05s, transform 0.4s var(--sh-ease), visibility 0s;
}
.sh-header .sh-panel--desc {
  width: 440px;
}
.sh-header .sh-panel--cols {
  width: 680px;
}
.sh-header .sh-panel--feature {
  width: 640px;
}

/* Menu links (mega panels and drawer) */
.sh-header,
.sh-drawer {
  /* Side card after the links (left/right is chosen in the CMS) */
  /* One card per slot is visible: the hovered sub-link's, else the top-level one */
}
.sh-header .sh-panel-label,
.sh-drawer .sh-panel-label {
  margin: 0 0 10px;
  padding-inline-start: 10px;
  color: var(--sh-muted);
  font-size: 11.5px;
  font-weight: var(--fw-medium, 500);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sh-header .sh-grid,
.sh-drawer .sh-grid {
  display: grid;
  gap: 2px;
  align-content: start;
}
.sh-header .sh-cols,
.sh-drawer .sh-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 14px;
}
.sh-header .sh-grid + .sh-cols,
.sh-drawer .sh-grid + .sh-cols {
  margin-top: 2px;
}
.sh-header .sh-split,
.sh-drawer .sh-split {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 18px;
}
.sh-header .sh-mlink,
.sh-drawer .sh-mlink {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  color: var(--sh-ink);
  transition: background 0.2s;
}
.sh-header .sh-mlink:hover,
.sh-drawer .sh-mlink:hover {
  background: var(--sh-surface-2);
  color: var(--sh-ink);
}
.sh-header .sh-mlink:hover .sh-mico,
.sh-drawer .sh-mlink:hover .sh-mico {
  background: var(--sh-grad);
  color: #fff;
}
.sh-header .sh-cols .sh-mlink,
.sh-drawer .sh-cols .sh-mlink {
  padding: 7px 10px;
}
.sh-header .sh-mico,
.sh-drawer .sh-mico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex: none;
  background: var(--sh-tint);
  color: var(--sh-green-text);
  transition: background 0.2s, color 0.2s;
}
.sh-header .sh-mico .sh-ic,
.sh-drawer .sh-mico .sh-ic {
  width: 19px;
  height: 19px;
}
.sh-header .sh-mico img,
.sh-drawer .sh-mico img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.sh-header .sh-cols .sh-mico,
.sh-drawer .sh-cols .sh-mico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.sh-header .sh-cols .sh-mico .sh-ic,
.sh-header .sh-cols .sh-mico img,
.sh-drawer .sh-cols .sh-mico .sh-ic,
.sh-drawer .sh-cols .sh-mico img {
  width: 17px;
  height: 17px;
}
.sh-header .sh-mtext,
.sh-drawer .sh-mtext {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sh-header .sh-mtext b,
.sh-drawer .sh-mtext b {
  font-size: 14.5px;
  font-weight: var(--fw-medium, 500);
  line-height: 1.3;
}
.sh-header .sh-cols .sh-mtext b,
.sh-drawer .sh-cols .sh-mtext b {
  font-size: 14px;
}
.sh-header .sh-mtext small,
.sh-drawer .sh-mtext small {
  color: var(--sh-muted);
  font-size: 12.5px;
  line-height: 1.35;
}
.sh-header .sh-feature,
.sh-drawer .sh-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--sh-grad);
  color: #fff;
}
.sh-header .sh-feature .sh-flower,
.sh-drawer .sh-feature .sh-flower {
  position: absolute;
  inset-inline-end: -30px;
  bottom: -30px;
  width: 150px;
  height: 150px;
  fill: rgba(255, 255, 255, 0.22);
  stroke: none;
}
.sh-header .sh-feature-big,
.sh-drawer .sh-feature-big {
  position: relative;
  font-size: 56px;
  font-weight: var(--fw-black, 900);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.sh-header .sh-feature p,
.sh-drawer .sh-feature p {
  position: relative;
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: var(--fw-bold, 700);
  line-height: 1.25;
}
.sh-header .sh-feature-more,
.sh-drawer .sh-feature-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: var(--fw-medium, 500);
}
.sh-header .sh-feature-more .sh-ic,
.sh-drawer .sh-feature-more .sh-ic {
  width: 14px;
  height: 14px;
}
.sh-header a.sh-feature,
.sh-drawer a.sh-feature {
  color: #fff;
}
.sh-header .sh-feature--text p,
.sh-drawer .sh-feature--text p {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.sh-header .sh-feature--image,
.sh-drawer .sh-feature--image {
  padding: 0;
  min-height: 200px;
  background: var(--sh-surface-2);
}
.sh-header .sh-feature--image img,
.sh-drawer .sh-feature--image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sh-header .sh-split--end,
.sh-drawer .sh-split--end {
  grid-template-columns: minmax(0, 1fr) 200px;
}
.sh-header .sh-split--end > .sh-cardslot,
.sh-drawer .sh-split--end > .sh-cardslot {
  order: 2;
}
.sh-header .sh-cardslot,
.sh-drawer .sh-cardslot {
  display: grid;
  min-width: 0;
}
.sh-header .sh-cardslot > .sh-feature,
.sh-drawer .sh-cardslot > .sh-feature {
  grid-area: 1/1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0s 0.25s;
}
.sh-header .sh-cardslot > .sh-feature.is-on,
.sh-drawer .sh-cardslot > .sh-feature.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s, visibility 0s;
}

/* Mobile drawer */
.sh-drawer {
  position: fixed;
  inset: 0;
  z-index: 1045;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s 0.45s;
}
.sh-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s 0s;
}
.sh-drawer .sh-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  background: rgba(6, 20, 16, 0.55);
  opacity: 0;
  transition: opacity 0.3s;
}
.sh-drawer.is-open .sh-scrim {
  opacity: 1;
}
.sh-drawer .sh-drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  padding: 16px 18px 18px;
  overflow-y: auto;
  background: var(--sh-surface);
  transform: translateX(100%);
  transition: transform 0.45s var(--sh-ease);
}
.sh-drawer.is-open .sh-drawer-panel {
  transform: none;
}
.sh-drawer .sh-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sh-drawer .sh-drawer-top img {
  display: block;
  height: 48px;
  width: auto;
}
.sh-drawer .sh-icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--sh-line-strong);
}
.sh-drawer details {
  border-bottom: 1px solid var(--sh-line);
}
.sh-drawer summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  list-style: none;
  font-size: 16px;
  font-weight: var(--fw-medium, 500);
  cursor: pointer;
}
.sh-drawer summary::-webkit-details-marker {
  display: none;
}
.sh-drawer .sh-chev {
  width: 16px;
  height: 16px;
  margin-inline-start: auto;
  color: var(--sh-muted);
  transition: transform 0.3s;
}
.sh-drawer details[open] .sh-chev {
  transform: rotate(180deg);
}
.sh-drawer details .sh-grid {
  padding-bottom: 12px;
}
.sh-drawer .sh-dlink {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--sh-line);
  font-size: 16px;
  font-weight: var(--fw-medium, 500);
}
.sh-drawer .sh-dlink:hover {
  color: var(--sh-ink);
}
.sh-drawer .sh-nav-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
}
.sh-drawer .sh-nav-icon img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.sh-drawer .sh-drawer-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}
.sh-drawer .sh-drawer-actions > * {
  flex: 1;
}

[dir=rtl] .sh-drawer .sh-drawer-panel {
  transform: translateX(-100%);
}

[dir=rtl] .sh-drawer.is-open .sh-drawer-panel {
  transform: none;
}

[dir=rtl] .sh-header .sh-pill .sh-ic {
  transform: scaleX(-1);
}

/* Responsive. The header script also adds .is-compact / .is-collapsed when the CMS labels
   do not fit (Arabic labels are longer), so the same steps apply at any width. */
.sh-header.is-compact .sh-bar {
  gap: 12px;
}
.sh-header.is-compact .sh-trigger,
.sh-header.is-compact .sh-link {
  padding: 0 9px;
  font-size: 14px;
}
.sh-header.is-compact .sh-trigger .sh-nav-icon,
.sh-header.is-compact .sh-link .sh-nav-icon {
  display: none;
}

.sh-header.is-collapsed .sh-nav,
.sh-header.is-collapsed .sh-actions,
.sh-header.is-collapsed .sh-mega {
  display: none;
}
.sh-header.is-collapsed .sh-pill.sh-quote {
  display: inline-flex;
  margin-inline-start: auto;
}
.sh-header.is-collapsed .sh-burger {
  display: grid;
  margin-inline-start: auto;
}
.sh-header.is-collapsed .sh-quote + .sh-burger {
  margin-inline-start: 0;
}

@media (max-width: 1240px) {
  .sh-header .sh-bar {
    gap: 12px;
  }
  .sh-header .sh-trigger,
  .sh-header .sh-link {
    padding: 0 9px;
    font-size: 14px;
  }
  .sh-header .sh-trigger .sh-nav-icon,
  .sh-header .sh-link .sh-nav-icon {
    display: none;
  }
}
@media (max-width: 1099px) {
  .sh-header .sh-nav,
  .sh-header .sh-actions,
  .sh-header .sh-mega {
    display: none;
  }
  .sh-header .sh-pill.sh-quote {
    display: inline-flex;
    margin-inline-start: auto;
  }
  .sh-header .sh-burger {
    display: grid;
    margin-inline-start: auto;
  }
  .sh-header .sh-quote + .sh-burger {
    margin-inline-start: 0;
  }
}
@media (max-width: 560px) {
  :root {
    --sh-height: 94px;
  }
  .sh-header .sh-bar {
    height: 66px;
    gap: 10px;
    padding-inline: 12px 10px;
    border-radius: 20px;
  }
  .sh-header.is-scrolled .sh-bar {
    height: 60px;
  }
  .sh-header .sh-logo img, .sh-header.is-scrolled .sh-logo img {
    height: 44px;
  }
  .sh-header .sh-quote {
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }
  .sh-header .sh-quote .sh-ic {
    display: none;
  }
  .sh-header .sh-burger {
    width: 40px;
    height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sh-header *,
  .sh-drawer * {
    transition-duration: 0.01ms !important;
  }
}

/* Buying only: a partner (affinity) logo sits beside the Takaful logo. */
.sh-header .sh-logo--partner img {
  max-width: 140px;
  object-fit: contain;
}
