.tooltip {
    position: relative;
    text-decoration: underline;
    display: inline-block;
    cursor: help;
  }

  .tooltip .tooltiptext {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    max-width: 300px;
    width: max-content;
    text-align: left;
    transition: opacity 0.3s ease;
    font-size: 0.85em;
    white-space: normal;
  }

  .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
  }

  .tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
  }

/* Optional: overlay behind your existing modal style */
.info-modal-overlay {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
  }
  
  /* Show the modal when active */
  .info-modal-overlay.active {
    display: block;
  }