.footer-hover {
  position: relative;
  display: inline-block;
  padding: 6px 10px;
  background: #485268;
  color: #fff;
  border-radius: 8px;
  cursor: default;
  white-space: nowrap;
  transition: background 0.3s ease;
  width: 127px;
}

.footer-hover::after {
  content: attr(data-tooltip);
  visibility: hidden;
  opacity: 0;
  background-color: #222;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s;
  font-size: 0.75rem;
  line-height: 1.3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: inline-block;
  min-width: 250px;
  max-width: 400px;
}

#learn-more-footer {
  padding: 20px 10px;
  background-color: #e9ecef;
  font-size: 0.85rem;
}

.footer-hover-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer-hover {
  position: relative;
  display: inline-block;
  padding: 6px 10px;
  background: #485268;
  color: #fff;
  border-radius: 8px;
  cursor: default;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.footer-hover:hover {
  background: #60708c;
}

.footer-hover::after {
  content: attr(data-tooltip);
  visibility: hidden;
  opacity: 0;
  width: 400px;
  background-color: #222;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s;
  font-size: 0.75rem;
  line-height: 1.3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.footer-hover:hover::after {
  visibility: visible;
  opacity: 1;
}

.footer-hover::after, .hover-item::after {
  content: attr(data-tooltip);
  visibility: hidden;
  opacity: 0;
  max-width: 400px;
  background-color: #222;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 10px 14px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s;
  font-size: 0.82rem;
  line-height: 1.4;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
}

*, ::after, ::before {
  box-sizing: border-box;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

