/*---------------- qualifications ----------------*/
.qualifications {
  padding: 15px 50px;
  border-bottom: 1px solid #777;
  overflow-x: auto;
  /*overflow-y: visible;*/
  white-space: nowrap;
  background-color: #2a398f;
  box-shadow:
    inset 0 0 15px 0 rgba(0,0,0,0.5),
    0 0 10px 0 rgba(0,0,0,0.3),
    inset 20px 0 20px -20px rgba(0,0,0,1),
    inset -20px 0 20px -20px rgba(0,0,0,1);
}

.qualifications ul {
  display: flex;
  gap: 25px;
  list-style: none;
  min-width: max-content;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.qualifications li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  z-index: 2;
}
.qualifications li:hover .tooltip {
  opacity: 1;
}

/* arrow */
.qualifications .tooltip::after {
  content: "";
  position: absolute;
  bottom: -6px; /* arrow positioned just below tooltip */
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(0,0,0,0.85);
}

.qualifications li span {
	text-shadow: 0 0 10px rgba(0,0,0,1);
}
.dynamic_tooltip {
  position: fixed;           /* fixed relative to viewport */
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  max-width: 80%;            /* optional max-width */
  white-space: nowrap;       /* prevent wrapping */
  text-align: center;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 9999;
}

/* visible state */
.dynamic_tooltip.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-30px);
}

/* optional arrow */
.dynamic_tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(0,0,0,0.85);
}
.qualifications img {
  width: 30px;
  height: auto;
  display: block;
	filter: drop-shadow(0 0 5px rgba(255,255,255,0.4));
}
/* Optional: Make scrollbar hidden */
.qualifications::-webkit-scrollbar {
  display: none;
}