.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  padding: 2rem;
  list-style: none;
  margin: 0 auto;
  max-width: 1000px;
  font-family: system-ui, sans-serif;
}

.link-grid li {
  margin: 0;
}

.link-grid a {
  display: block;
  padding: 1.25rem 1rem;
  border-radius: 12px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #fff;
  position: relative;
}

.link-grid li:nth-child(5n+1) a { background-color: #3B4A6B; }
.link-grid li:nth-child(5n+2) a { background-color: #666666; }
.link-grid li:nth-child(5n+3) a { background-color: #A3A3A3; color: #000; }
.link-grid li:nth-child(5n+4) a { background-color: #5C96B2; }
.link-grid li:nth-child(5n+5) a { background-color: #232D4B; }

.link-grid a:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.link-grid a.important {
  border-left: 6px solid #E57200;
  padding-left: calc(1.25rem - 6px);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.link-grid a.important::after {
  content: "★";
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1rem;
  color: #fff;
  opacity: 0.5;
  pointer-events: none;
}
