/*
 * Insights → Webinars: styles for the OPTIONAL card parts managed in WP Admin
 * (image, time, description). Cards without them keep the original design from
 * style.css / responsive.css, which this file does not override.
 */

/* Card with an image: stack image → tag → date row, and let the date row fill
   the rest of the card so the button still sits at the bottom. */
.webinar-card.has-thumb {
  display: flex;
  flex-direction: column;
  gap: 0; /* keep the original tag → date spacing */
}
.webinar-card.has-thumb .webinar-date {
  height: auto;
  flex: 1 1 auto;
}
.webinar-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
  background: var(--color-bg-soft);
}
.webinar-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.webinar-body .webinar-time {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-teal-600);
  margin-bottom: 6px;
}

.webinar-body .webinar-desc {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-600);
  margin: calc(var(--space-sm) * -0.5) 0 var(--space-sm);
}

/* Tag label emptied in WP Admin: the date row no longer needs to leave room for it. */
.webinar-card.no-tag:not(.has-thumb) .webinar-date {
  height: 100%;
}

.webinars-empty {
  margin-bottom: var(--space-lg);
}
