@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Noto+Kufi+Arabic:wght@500;600;700&display=swap');

body.aym-shared-nav .site-header,
body.aym-shared-nav .top-bar {
  display: none !important;
}

.logo-pair {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 10px;
  justify-content: center;
}

.logo-pair > img {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.nav-logo .logo-pair,
.aym-logo .logo-pair {
  gap: 12px;
}

.nav-logo .logo-pair > img:last-child,
.aym-logo .logo-pair > img:last-child {
  height: 118px !important;
  width: auto !important;
}

.footer-logo .logo-pair {
  gap: 10px;
}

.footer-group-note {
  color: #8a8a8a;
  font-size: 11px;
  line-height: 1.6;
  max-width: 1120px;
  text-align: center;
}

.phone-ltr {
  direction: ltr;
  display: inline-block;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.aym-nav-shell {
  --aym-navy: #0d3b4f;
  --aym-navy-dark: #082731;
  --aym-gold: #b08d4c;
  --aym-cream: #faf6ef;
  --aym-line: rgba(13, 59, 79, 0.12);
  background: rgba(250, 246, 239, 0.97);
  border-bottom: 1px solid var(--aym-line);
  box-shadow: 0 14px 34px rgba(13, 59, 79, 0.04);
  color: #4a4a4a;
  font-family: 'DM Sans', sans-serif;
  position: relative;
  z-index: 100;
  width: 100%;
}

.aym-nav {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr) minmax(190px, auto);
  align-items: center;
  gap: 28px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 48px;
}

.aym-logo {
  align-items: center;
  color: var(--aym-navy-dark);
  display: flex;
  gap: 13px;
  min-width: 0;
  text-decoration: none;
}

.aym-logo img {
  display: block;
  height: 148px;
  max-height: none;
  object-fit: contain;
  width: auto;
}

.aym-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.aym-brand-name {
  color: var(--aym-navy-dark);
  font-family: 'Amiri', serif;
  font-size: 25px;
  font-weight: 700;
  white-space: nowrap;
}

.aym-brand-sub {
  color: var(--aym-gold);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-top: 7px;
  text-transform: uppercase;
  white-space: nowrap;
}

.aym-links {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: center;
  min-width: 0;
}

.aym-label-short {
  display: none;
}

.aym-links a,
.aym-menu-trigger {
  background: none;
  border: 0;
  color: #4a4a4a;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 0;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}

.aym-links a::after,
.aym-menu-trigger::after {
  background: var(--aym-gold);
  bottom: 5px;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  transition: width 0.2s ease;
  width: 0;
}

.aym-links a:hover,
.aym-links a.active,
.aym-menu-trigger.active,
.aym-menu-trigger:hover,
.aym-menu:focus-within .aym-menu-trigger {
  color: var(--aym-navy-dark);
}

.aym-links a:hover::after,
.aym-links a.active::after,
.aym-menu-trigger.active::after,
.aym-menu-trigger:hover::after,
.aym-menu:focus-within .aym-menu-trigger::after {
  width: 100%;
}

.aym-menu {
  align-items: center;
  display: flex;
  position: relative;
}

.aym-caret {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #9c8b74;
  height: 0;
  margin-top: 2px;
  width: 0;
}

.aym-menu-trigger {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.aym-submenu {
  background: #fff;
  border: 1px solid var(--aym-line);
  border-radius: 6px;
  box-shadow: 0 18px 42px rgba(13, 59, 79, 0.12);
  display: none;
  left: 50%;
  min-width: 176px;
  padding: 7px;
  position: absolute;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 120;
}

.aym-country-submenu {
  min-width: 190px;
}

.aym-submenu::before {
  content: '';
  height: 10px;
  left: 0;
  position: absolute;
  right: 0;
  top: -10px;
}

.aym-menu:hover .aym-submenu,
.aym-menu:focus-within .aym-submenu,
.aym-menu.open .aym-submenu {
  display: flex;
  flex-direction: column;
}

.aym-submenu a {
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.2;
  padding: 11px 12px;
}

.aym-submenu a:hover,
.aym-submenu a.active {
  background: #f4ede0;
}

.aym-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.aym-cta {
  background: var(--aym-navy);
  border: 0;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(13, 59, 79, 0.16);
  color: var(--aym-cream);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  padding: 12px 20px;
  white-space: nowrap;
}

.aym-lang {
  align-items: center;
  display: flex;
  position: relative;
}

.aym-lang-btn {
  align-items: center;
  background: #fff;
  border: 1px solid var(--aym-line);
  border-radius: 4px;
  color: var(--aym-navy-dark);
  cursor: pointer;
  display: flex;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  gap: 7px;
  justify-content: center;
  line-height: 1;
  min-width: 68px;
  padding: 11px 14px;
  white-space: nowrap;
}

.aym-lang-btn::after {
  color: #888;
  content: '\25BE';
  font-size: 9px;
}

.aym-lang-menu {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: none;
  min-width: 116px;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 130;
}

.aym-lang.open .aym-lang-menu {
  display: block;
}

.aym-lang-menu a {
  color: #444;
  display: block;
  font-size: 12px;
  padding: 10px 14px;
  text-decoration: none;
  white-space: nowrap;
}

.aym-lang-menu a:hover,
.aym-lang-menu a.active {
  background: #f5f7f5;
  color: #1a6b5a;
  font-weight: 600;
}

.aym-nav-shell[dir='rtl'],
.aym-nav-shell[dir='rtl'] .aym-links a,
.aym-nav-shell[dir='rtl'] .aym-menu-trigger,
.aym-nav-shell[dir='rtl'] .aym-submenu a,
.aym-nav-shell[dir='rtl'] .aym-cta,
.aym-nav-shell[dir='rtl'] .aym-lang-btn {
  font-family: 'IBM Plex Sans Arabic', 'Noto Kufi Arabic', sans-serif;
}

.aym-nav-shell[dir='rtl'] .aym-brand-name {
  font-family: 'Noto Kufi Arabic', 'Amiri', serif;
}

.aym-nav-shell[dir='rtl'] .aym-lang-menu {
  left: 0;
  right: auto;
}

@media (min-width: 1121px) and (max-width: 1240px) {
  .aym-nav {
    gap: 18px;
    grid-template-columns: minmax(290px, auto) minmax(0, 1fr) minmax(210px, auto);
    padding: 14px 28px;
  }

  .aym-logo {
    gap: 12px;
  }

  .aym-logo img {
    height: 112px;
  }

  .nav-logo .logo-pair > img:last-child,
  .aym-logo .logo-pair > img:last-child {
    height: 90px !important;
    width: auto !important;
  }

  .aym-brand-name {
    font-size: 22px;
  }

  .aym-brand-sub {
    font-size: 8.5px;
    letter-spacing: 0.05em;
  }

  .aym-links {
    gap: 20px;
  }

  .aym-links a,
  .aym-menu-trigger {
    font-size: 15px;
  }

  .aym-actions {
    gap: 8px;
  }

  .aym-cta {
    padding: 12px 16px;
  }
}

@media (max-width: 1120px) {
  .aym-nav {
    gap: 12px 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px 28px;
  }

  .aym-logo img {
    max-height: 90px;
    width: 132px;
  }

  .nav-logo .logo-pair > img:last-child,
  .aym-logo .logo-pair > img:last-child {
    height: auto !important;
    max-height: 72px !important;
    width: 106px !important;
  }

  .aym-brand-name {
    font-size: 22px;
  }

  .aym-brand-sub {
    font-size: 9px;
    letter-spacing: 0.05em;
  }

  .aym-links {
    flex-wrap: wrap;
    gap: 18px 26px;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    padding: 6px 0 4px;
  }
}

@media (max-width: 640px) {
  .nav-logo .logo-pair > img,
  .aym-logo .logo-pair > img {
    height: auto !important;
    max-height: 58px !important;
    width: clamp(54px, 17vw, 78px) !important;
  }

  .nav-logo .logo-pair > img:last-child,
  .aym-logo .logo-pair > img:last-child {
    height: auto !important;
    max-height: 46px !important;
    width: clamp(43px, 13.6vw, 62px) !important;
  }

  .footer-logo .logo-pair > img {
    height: 50px !important;
  }

  .aym-nav {
    gap: 12px;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 16px 18px 14px;
  }

  .aym-logo {
    column-gap: 18px;
    display: grid;
    grid-column: 1;
    grid-template-columns: auto minmax(0, 1fr);
    grid-row: 1;
    align-items: center;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 clamp(28px, 8vw, 48px);
    box-sizing: border-box;
  }

  .aym-logo img {
    max-height: 66px;
    width: 104px;
  }

  .aym-brand {
    align-items: flex-end;
    min-width: 0;
    text-align: right;
    width: 100%;
  }

  .aym-brand-name {
    display: block;
    font-size: clamp(13px, 3.4vw, 16px);
    line-height: 1.05;
    max-width: 100%;
    overflow: visible;
    white-space: nowrap;
  }

  .aym-brand-sub {
    display: block;
    font-size: 7.5px;
    letter-spacing: 0.04em;
    margin-top: 4px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .aym-actions {
    gap: 14px;
    grid-column: 1;
    grid-row: 2;
    justify-content: center;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 clamp(28px, 8vw, 48px);
    box-sizing: border-box;
  }

  .aym-cta {
    font-size: 12px;
    padding: 10px 18px;
  }

  .aym-lang-btn {
    min-width: 68px;
    padding: 10px 14px;
  }

  .aym-links {
    box-sizing: border-box;
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(10px, 2.5vw, 16px);
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
    justify-content: center;
    max-width: 100vw;
    min-width: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: visible;
    overflow-y: visible;
    padding: 8px clamp(12px, 4vw, 28px) 10px;
    scrollbar-width: none;
    width: 100vw;
  }

  .aym-links::-webkit-scrollbar {
    display: none;
  }

  .aym-links a,
  .aym-menu-trigger {
    flex: 0 0 auto;
    font-size: clamp(11px, 2.85vw, 12.5px);
    padding: 8px 0;
  }

  .aym-label-full {
    display: inline;
  }

  .aym-label-short {
    display: none;
  }

  .aym-menu {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    position: relative;
  }

  .aym-submenu {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 30px rgba(13, 59, 79, 0.14);
    flex-basis: auto;
    left: 50%;
    margin-top: 0;
    max-width: calc(100vw - 24px);
    min-width: 150px;
    right: auto;
    top: calc(100% - 1px);
    transform: translateX(-50%);
    width: max-content;
    z-index: 200;
  }

  .aym-submenu::before {
    display: block;
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
  }

  .aym-nav-shell[dir='rtl'] .aym-submenu {
    left: auto;
    right: 50%;
    transform: translateX(50%);
  }
}
