/* Amanda Care NAV-UI-004: match actual Beranda nav hover/focus behavior. */
/* Beranda reference: templatemo-633-celadon-style.css .nav a */
body.portal-theme .nav-links a:not(.active) {
  position: relative;
  color: var(--ink-2);
  padding: 9px 15px;
  border-radius: 99px;
  background: transparent;
  box-shadow: none;
  transform: none;
  transition: color .2s, box-shadow .25s var(--ease), background .25s;
}
body.portal-theme .nav-links a:not(.active):hover {
  color: var(--ink);
  background: rgba(220, 228, 243, .7);
  box-shadow: var(--well);
  transform: none;
}
body.portal-theme .nav-links a:not(.active):focus-visible {
  color: var(--ink);
  background: rgba(220, 228, 243, .7);
  box-shadow: var(--well);
  outline: 3px solid var(--jade-ink);
  outline-offset: 2px;
}
body.portal-theme .nav-links a:not(.active):active {
  transform: none;
  background: rgba(220, 228, 243, .7);
  box-shadow: var(--well);
}
/* Keep the existing maroon active style and official-service badge from NAV-UI-003. */
/* NAV-UI-005: one stable maroon gradient for the active nav of Lapor, Track, and Sukses.
   The sheen animation on active links previously made colors differ between captures. */
body.portal-theme .nav-links a.active,
body.portal-theme .nav-links a.active:hover,
body.portal-theme .nav-links a.active:focus-visible {
  color: #fff;
  background: linear-gradient(180deg, #D7A3AF 0%, #B76D7C 46%, #7A2438 46.01%, #5B1729 100%);
  background-image: linear-gradient(180deg, #D7A3AF 0%, #B76D7C 46%, #7A2438 46.01%, #5B1729 100%);
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-shadow: 0 12px 20px -11px rgba(74,18,32,.7), 0 3px 7px -3px rgba(74,18,32,.35), inset 0 1px 0 rgba(255,255,255,.8), inset 0 -1px 0 rgba(42,8,18,.52);
  transform: none;
  transition: box-shadow .2s ease, color .2s ease;
}
body.portal-theme .nav-links a.active:focus-visible { outline: 3px solid #7A2438; outline-offset: 2px; }
body.portal-theme .topbar .topbar-badge,
body.portal-theme .topbar .topbar-service-pill {
  background-image: var(--sheen-soft), var(--gloss-jade);
  background-size: 240% 100%, 100% 100%;
  background-position: -135% 0, 0 0;
  background-repeat: no-repeat;
  box-shadow: var(--lift-jade), var(--lip-jade);
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  body.portal-theme .nav-links a:not(.active) { transition: none; }
}
