.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(1, 18, 32, 0.94);
  border-bottom: 1px solid rgba(216, 173, 75, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  isolation: isolate;
  pointer-events: auto !important;
}

.site-nav {
  width: min(1240px, calc(100% - 40px));
  min-height: 82px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  direction: rtl;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  padding: 12px 0;
  font-family: "Cairo", sans-serif;
  position: relative;
  z-index: 1001;
  pointer-events: auto !important;
}

.site-nav a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 2px;
  z-index: 1002;
  pointer-events: auto !important;
  touch-action: manipulation;
  cursor: pointer;
}

.site-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -9px;
  width: 0;
  height: 2px;
  background: #f2d889;
  transform: translateX(50%);
  transition: width 0.22s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #f2d889;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

@media (max-width: 1050px) {
  .site-nav {
    gap: 8px 16px;
    min-height: 72px;
  }

  .site-nav a {
    font-size: 15px;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: relative;
  }

  .site-nav {
    width: calc(100% - 24px);
    min-height: auto;
    gap: 12px 20px;
    padding: 16px 0;
  }

  .site-nav a {
    font-size: 15px;
  }

  .site-nav a::after {
    bottom: -5px;
  }
}
