/*
  Event / Webinar detail HERO section.
  Source: Events & Webinars content doc §1 (image3 mockup).

  Two-column layout on desktop: text column on the left (breadcrumb,
  tag chips, H1, Overview body, Event Details block, dual CTAs) and
  a large image/video on the right. Stacks single-column below 900px.

  Mobile-first, tokens only, no hardcoded colors/sizes.
*/

.event-hero {
  padding-block: clamp(24px, 3vw, 60px) var(--section-padding-block);
}

.event-hero__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-inline);
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

/* ---------------------------------------------------------------
   Topline — breadcrumb (left) + share icons (right)
   --------------------------------------------------------------- */
.event-hero__topline {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
  justify-content: space-between;
}

@media (min-width: 600px) {
  .event-hero__topline {
    flex-direction: row;
    align-items: center;
  }
}

.event-hero__breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-family-sans);
  font-size: var(--font-size-eyebrow);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.event-hero__breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.event-hero__breadcrumb a:hover,
.event-hero__breadcrumb a:focus-visible {
  color: var(--color-accent);
}

.event-hero__breadcrumb [aria-current="page"] {
  color: var(--color-text-heading);
}

.event-hero__breadcrumb-sep {
  color: var(--color-border);
}

.event-hero__share {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.event-hero__share-label {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-sm);
  color: var(--color-text-body);
}

.event-hero__share-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.event-hero__share-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--color-text-heading);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.event-hero__share-list a:hover,
.event-hero__share-list a:focus-visible {
  color: var(--color-accent);
}

/* ---------------------------------------------------------------
   Tag chips row
   --------------------------------------------------------------- */
.event-hero__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4_5);
}

.event-hero__tag {
  display: inline-flex;
  align-items: center;
  padding: 5px var(--space-2);
  border: 1px solid var(--color-green-2);
  border-radius: 200px;
  font-family: var(--font-family-sans);
  font-size: var(--font-size-eyebrow);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-navy-blue);
  white-space: nowrap;
}

/* ---------------------------------------------------------------
   Body: text column + media column
   --------------------------------------------------------------- */
.event-hero__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
}

@media (min-width: 900px) {
  .event-hero__body {
    grid-template-columns: 588fr 588fr;
    column-gap: clamp(var(--space-10), 6vw, 96px);
  }
}

.event-hero__col-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.event-hero__heading {
  font-family: var(--font-family-display);
  font-size: clamp(40px, 24px + 3vw, 72px);
  font-weight: var(--font-weight-regular);
  line-height: 1.1;
  margin: 0;
  color: var(--color-text-heading);
}

.event-hero__section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4_5);
}

.event-hero__subhead {
  font-family: var(--font-family-display);
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-card-title);
  margin: 0;
  color: var(--color-text-heading);
}

.event-hero__overview {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-body);
  line-height: var(--line-height-loose);
  color: var(--color-text-body);
}

.event-hero__overview p {
  margin: 0 0 var(--space-4);
}

.event-hero__overview p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------
   Event Details block — icon + two-line text per row
   --------------------------------------------------------------- */
.event-hero__details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.event-hero__detail {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-4_5);
  align-items: start;
}

.event-hero__detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-heading);
}

.event-hero__detail-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.event-hero__detail-primary {
  margin: 0;
  font-family: var(--font-family-sans);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
  color: var(--color-text-heading);
}

.event-hero__detail-secondary {
  margin: 0;
  font-family: var(--font-family-sans);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: 1.4;
  color: var(--color-text-body);
}

/* ---------------------------------------------------------------
   CTA row
   --------------------------------------------------------------- */
.event-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* ---------------------------------------------------------------
   Media column — image / video poster
   --------------------------------------------------------------- */
.event-hero__col-media {
  position: relative;
}

.event-hero__media {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 588 / 480;
  background-color: var(--color-surface-alt);
}

.event-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Optional video overlay: activated when the hero has an event_video_url.
   Uses the same play-button icon as latest-updates videos. */
.event-hero__media--video {
  cursor: pointer;
  position: relative;
}

.event-hero__media--video::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.event-hero__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  pointer-events: none;
  transition: transform 0.25s ease-out;
}

.event-hero__media--video:hover .event-hero__play,
.event-hero__media--video:focus-visible .event-hero__play {
  transform: translate(-50%, -50%) scale(1.06);
}

/* ---------------------------------------------------------------
   Reveal stagger — topline → tags → body cascade in
   --------------------------------------------------------------- */
.event-hero__tags { --reveal-delay: 0.08s; }
.event-hero__body { --reveal-delay: 0.16s; }
