/**
 * Asiatic Events - UI refinements for the events page and home block.
 * Scoped to this module's sections so the rest of the site is unaffected.
 */

#events-asiaticsociety .home-event-card,
#home-events-asiaticsociety .home-event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Date bar shown ABOVE the banner (no overlap with the image). */
#events-asiaticsociety .home-event-datebar,
#home-events-asiaticsociety .home-event-datebar {
  padding: 12px 12px 0;
}

#events-asiaticsociety .home-event-date,
#home-events-asiaticsociety .home-event-date {
  position: static;
  display: inline-block;
  background: #8b1c2d;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Image banner: fill the area cleanly with the top of the poster visible. */
#events-asiaticsociety .home-event-image,
#home-events-asiaticsociety .home-event-image {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #f4f3f3;
  margin-top: 12px;
}

#events-asiaticsociety .home-event-image a,
#home-events-asiaticsociety .home-event-image a {
  display: block;
  width: 100%;
  height: 100%;
}

#events-asiaticsociety .home-event-image img,
#home-events-asiaticsociety .home-event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Keep the content area growing so cards line up evenly. */
#events-asiaticsociety .home-event-content,
#home-events-asiaticsociety .home-event-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/* Responsive: slightly shorter banner on small screens. */
@media (max-width: 767px) {
  #events-asiaticsociety .home-event-image,
  #home-events-asiaticsociety .home-event-image {
    height: 260px;
  }
}
