.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  margin-bottom: 1rem;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #e8f3fb;   /* light blue background */
  color: #003c4d;              /* DMV dark blue text */
  text-decoration: none !important;
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
  position: relative;
}

/* Default arrow (text) */
.link-list a::after {
  content: "→";
  color: #003c4d;
  font-size: 1.35rem;
  font-weight: 800;
  display: inline-block;
  margin-left: 0.25rem;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

/* Hover/focus background & text */
.link-list a:hover,
.link-list a:focus {
  background-color: #094f8d; /* deep blue hover */
  color: #ffffff;
}

/* Create the SVG as a separate pseudo-element layered on top */
.link-list a::before {
  content: "";
  position: absolute;
  right: 1.25rem;
  width: 1.35rem;
  height: 1.35rem;
  background: url('/themes/custom/ngpsb2/images/light-yellow-arrow.svg') no-repeat center;
  background-size: contain;
  opacity: 0;
  transform: scale(0.6); /* start small */
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* When hovered, fade out the text arrow & grow/fade in the gold one */
.link-list a:hover::after,
.link-list a:focus::after {
  opacity: 0;
  transform: scale(1.3); /* fade out + slightly expand text arrow */
}

.link-list a:hover::before,
.link-list a:focus::before {
  opacity: 1;
  transform: scale(1.1); /* grow into view */
  animation: arrowWiggle 0.8s ease-in-out infinite;
}

/* Active/highlighted state */
.link-list a.active,
.link-list a[aria-current="page"] {
  background-color: #ffd200;
  color: #003c4d;
}

.link-list a.active::after,
.link-list a[aria-current="page"]::after {
  opacity: 1;
  transform: scale(1);
  color: #003c4d;
}

.link-list a.active::before,
.link-list a[aria-current="page"]::before {
  opacity: 0; /* no SVG in active state */
}

/* Accessibility focus ring */
.link-list a:focus-visible {
  outline: 2px solid #f4ba4e;
  outline-offset: 3px;
}

/* Wiggle animation for hover state */
@keyframes arrowWiggle {
  0%, 100% {
    transform: translateX(0) scale(1.1);
  }
  50% {
    transform: translateX(4px) scale(1.15);
  }
}
