/* Banner Container fixed at the bottom */
.bottom-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
  overflow: hidden;
  padding: 10px 0;
  white-space: nowrap;
  z-index: 9999;
}

/* Track holding the posts */
.banner-track {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
}

/* Pause animation on hover */
.bottom-banner:hover .banner-track {
  animation-play-state: paused;
}

/* Individual Post Card */
.banner-item {
  display: inline-block;
  width: 250px;
  margin: 0 15px;
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #dddddd;
  border-radius: 8px;
  text-decoration: none;
  color: #333333;
  transition: background-color 0.3s, transform 0.3s;
  flex-shrink: 0;
}

/* Card Hover Effects */
.banner-item:hover {
  background-color: #f1f5f9;
  transform: translateY(-3px);
}

.banner-item h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #1a73e8;
}

.banner-item p {
  margin: 0;
  font-size: 14px;
  color: #666666;
  white-space: normal; /* Allows description to wrap */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Keyframe for Scrolling */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 4 - 30px * 4)); 
    /* The 100% value should equal the exact total width of one set of items, 
       including margins, to loop seamlessly. */
  }
}