.language-link {
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: bold;
  color: inherit;
  height: 90px;
  line-height: 90px; /* vertically center text */
  display: inline-block;

  padding: 0 0.5rem;       /* ✅ Add padding for touch */
  position: relative;      /* ✅ Needed for absolute image positioning */
  z-index: 1;              /* ✅ Ensure it stays above background elements */
}

/* Position the image behind the text */
.language-link .lang-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* center behind text */
  z-index: -1;
  width: 40px;  /* adjust as needed */
  height: auto;
  opacity: 0.2;  /* optional: semi-transparent */
  pointer-events: none; /* let text be clickable */
}

/* flags */

.list a {
  display: flex;
  flex-direction: column;    /* Stack vertically */
  align-items: center;       /* Center text and image */
  justify-content: center;
  padding: 0.5rem 1rem;
  text-align: center;
  font-weight: 500;
  text-decoration: none;
  color: black;
  gap: 0.25rem;
}

.flag-bg {
  width: 3rem;      /* smaller width */
  height: auto;     /* maintain aspect ratio */
}


@media (max-width: 768px) {
  .list a {
    width: 2.5rem;
    padding: 0.25rem;
  }
}

/* @media (max-width: 768px) {
  .language-link {
    font-size: 1px;
  }

  .lang-bg {
    width: 1px;
    height: 1px;
  }
} */
