/* About / section sub-nav — horizontal swipe on mobile (LTR EN · RTL AR) */

.about-nav {
  background: white;
  border-bottom: 1px solid var(--line, rgba(212, 166, 55, 0.18));
  position: sticky;
  top: 74px;
  z-index: 50;
}

.about-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none; /* Firefox */
  scroll-snap-type: x proximity;
}

.about-nav-inner::-webkit-scrollbar {
  display: none;
  height: 0;
}

.about-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 18px 28px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(10, 31, 21, 0.5);
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
  white-space: nowrap;
  text-decoration: none;
  scroll-snap-align: start;
}

.about-nav a:hover,
.about-nav a.active {
  color: var(--green-900, #052e1c);
  border-bottom-color: var(--gold-500, #d4a637);
}

/* Edge fade hints on mobile */
.about-nav {
  --about-nav-fade: linear-gradient(to right, white 0%, white 88%, transparent 100%);
}

[dir="rtl"] .about-nav {
  --about-nav-fade: linear-gradient(to left, white 0%, white 88%, transparent 100%);
}

@media (max-width: 900px) {
  .about-nav {
    top: 64px;
  }

  .about-nav-scroller {
    position: relative;
  }

  .about-nav-scroller::after {
    content: "";
    pointer-events: none;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 36px;
    z-index: 1;
    background: var(--about-nav-fade);
  }

  [dir="ltr"] .about-nav-scroller::after {
    right: 0;
  }

  [dir="rtl"] .about-nav-scroller::after {
    left: 0;
  }

  .about-nav-inner {
    padding: 0 16px;
    gap: 0;
    /* Native swipe: EN left→right content, AR right→left via document dir */
    scroll-padding-inline: 16px;
  }

  .about-nav a {
    padding: 14px 16px;
    font-size: 12px;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 480px) {
  .about-nav a {
    padding: 12px 14px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }
}
