.navbar .navbar-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: min(1440px, 100%);
  min-height: 76px;
  height: auto;
  margin: 0 auto;
  padding: 10px 28px;
}

.navbar-brand {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  min-width: 0;
  color: #101828;
  text-decoration: none;
}

.navbar-brand-logo {
  display: block;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.navbar-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.25;
}

.navbar-brand-ar {
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.navbar-brand-en {
  color: #667085;
  direction: ltr;
  font-size: 11px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.navbar-left {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-self: center;
  gap: clamp(14px, 2.2vw, 32px);
  margin: 0;
}

.navbar-left .navbar-item {
  font-size: 15px;
  font-weight: 700;
}

.navbar-left .navbar-link .dropdown-arrow {
  display: none;
}

.navbar-programs-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid #1e40af;
  border-radius: 11px;
  background: #1e40af;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, transform .2s ease;
}

.navbar-programs-cta:hover {
  background: #17358f;
  color: #fff;
  transform: translateY(-1px);
}

.navbar-mobile-btn {
  grid-column: 3;
  justify-self: end;
}

.navbar-mobile {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: #fff;
  transition: max-height .25s ease, opacity .2s ease;
}

.navbar-mobile-content {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.navbar-mobile-programs {
  justify-content: center;
  margin: 12px 20px 16px;
  border: 0;
  color: #fff;
}

@media (max-width: 767px) {
  .navbar .navbar-container {
    grid-template-columns: minmax(0, 1fr) 44px;
    min-height: 68px;
    padding: 8px 16px;
  }

  .navbar-brand {
    grid-column: 1;
    justify-self: start;
    gap: 8px;
  }

  .navbar-brand-logo {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .navbar-brand-ar { font-size: 14px; }
  .navbar-brand-en { font-size: 10px; }

  .navbar .navbar-left { display: none; }

  .navbar-mobile-btn {
    grid-column: 2;
    width: 42px;
    height: 42px;
  }

  .navbar-mobile.active {
    display: block;
    max-height: min(80vh, 560px);
    overflow-y: auto;
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .navbar-mobile-btn { display: none; }
  .navbar-mobile { display: none !important; }
}

@media (max-width: 380px) {
  .navbar-brand-logo {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  @media (prefers-reduced-motion: reduce) {
    .navbar-mobile { transition: none; }
  }

  .navbar-brand-ar { font-size: 12px; }
  .navbar-brand-en { font-size: 9px; }
}
