.resource-stage-menu {
  margin-bottom: 20px;
}
.stage-link {
  padding: 8px 16px;
  margin-right: 8px;
  text-decoration: none;
  border-radius: 4px;
  color: #333;
  font-size: 25px;
}
/* Icon styling inside stage link */
.stage-link .stage-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-right: 6px;
  vertical-align: middle;
  filter: brightness(0);
}

/* Label containers */
.stage-link .label {
  vertical-align: middle;
}

/* Full label is hidden unless active */
.stage-link .full-label {
  display: none;
}

.stage-link.active .short-label {
  display: none;
}

.stage-link.active .full-label {
  display: inline;
}

/* Optional: hover styling for non-active */
.stage-link:hover,
.stage-link.active {
  color: var(--primary-color);
}
.stage-link:hover .stage-icon,
.stage-link.active .stage-icon {
  filter: brightness(1);
}
.spinner {
  width: 30px;
  height: 30px;
  border: 4px solid #eee;
  border-top: 4px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.no-results {
  text-align: center;
  font-style: italic;
  margin-top: 20px;
  color: #777;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 50px;
  margin-top: 24px;
}

.resource-item {
  text-align: center;
}

.resource-item .thumb img {
  width: 100%;
  height: auto;
}

.download-link a {
  display: inline-block;
  position: relative;
  margin-top: 8px;
  font-size: 25px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  color: #333;
  /* border-bottom: 1px solid; */
}
.download-link a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background-color: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.download-link a:hover::after {
  transform: scaleX(1);
}

.spinner {
  text-align: center;
  margin: 20px;
}

.no-results {
  text-align: center;
  margin: 20px;
  font-style: italic;
  display: none;
}
@media only screen and (max-width: 480px) {
  .resource-stage-menu {
    display: flex;
    flex-direction: column;
  }
  .resource-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
  }
}
