
.bg-image {
   position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100% !important;
    transform: translate(-50%, -50%); 
    object-fit: cover; 
    transition: opacity 1s ease; 
    z-index: -1;
    display: block !important;
    opacity: 0;
}

.bg-image.fadeout {
  opacity: 0 !important;
}
.bg-image.next {
    opacity: 1;
    z-index: 0 !important;
}
.bg-image.current {
    opacity: 1;
    z-index: 1 !important; 
}

.table-col-con {
  display: flex;
  flex-direction: column;
  z-index: auto !important;
}

.hover-line-item {
 display: block; 
}

/* Only wraps the text width */
.table-line-item {
  position: relative;
  display: inline-block; /* limits width to text content */
  width: auto;           /* prevent full width stretch */
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
  align-self: flex-start; /* override column stretch behavior */
}

/* Optional: remove any flexbox stretching from parent */
.table-col-con > .table-line-item {
  align-self: flex-start;
}

/* Hover container stays positioned relative to the text */
.table-hover-con {
  position: absolute;
  top: 50%;
  left: calc(80% + 10px);
  transform: translateY(-50%) translateX(10px);
  opacity: 0;
  visibility: hidden;
  {#border-radius: 6px;#}
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  min-width: 180px;
  width: 240px;
  z-index: 1000;
}

/* Reveal smoothly */
.table-line-item:hover .table-hover-con,
.table-hover-con:hover,
.table-hover-con.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}
.table-hover-con.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50px);
}

@media (max-width: 575px) {
  .table-line-item:hover .table-hover-con, .table-hover-con:hover, .table-hover-con.active {
  transform: translateY(-130px) translateX(-100px);
  }
}
