.repo-header {
  margin-top: 3rem;
}

.sub-repo-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  width: 80%;
  max-width: 925px;
}

.sub-repo-card {
  width: 100%;
  background-color: var(--secondary-bg-color);
  padding: 0.1rem 1.2rem 1rem 1.2rem;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  border-left: 1rem solid transparent;
  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-left-color 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.sub-repo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--theme-color);
}

.sub-repo-card h3 {
  font-size: 1.5rem;
  margin-bottom: -0.25rem;
}

.sub-repo-card p {
  opacity: 0.85;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.sub-repo-card a {
  color: var(--theme-color);
  font-weight: 600;
  align-self: flex-end;

  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.sub-repo-card:hover a {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

@media (max-width: 640px) {
  .sub-repo-card a {
    opacity: 1;
  }
}