/* Create two equal columns that floats next to each other */
.column {
  float: left;
  width: 50%;
  padding: 10px;
  box-sizing: border-box;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column {
    width: 100%;
  }
}

.sticky-header {
  position: -webkit-sticky; /* For Safari */
  position: sticky;
  top: 0;
  background-color: #333;
  color: #fff;
  padding: 10px 0;
  text-align: center;
  z-index: 1000; /* Ensure the header stays on top */
}

/* Hover tooltips for truncated card titles */
#whatsn .columns-layout .column h3,
.whatsnew-collection-list .columns-layout .column h3,
.athena-home ul.thumbnails > li > h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  cursor: pointer;
}

/* Tooltip styling */
#whatsn .columns-layout .column h3[title]:hover::after,
.whatsnew-collection-list .columns-layout .column h3[title]:hover::after,
.athena-home ul.thumbnails > li > h3[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  white-space: normal;
  width: max-content;
  max-width: 300px;
  font-size: 13px;
  line-height: 1.4;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  word-wrap: break-word;
  margin-bottom: 8px;
}

/* Tooltip arrow */
#whatsn .columns-layout .column h3[title]:hover::before,
.whatsnew-collection-list .columns-layout .column h3[title]:hover::before,
.athena-home ul.thumbnails > li > h3[title]:hover::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333;
  z-index: 1001;
  pointer-events: none;
  margin-bottom: 2px;
}