/* Two-up "events" hero for the UX Australia home page — two events side by side
   on wide screens, stacked (UX Australia first, then Design Research) on narrow.
   Sits in the `overrides` layer so it tops the vendored WD design system. */
@layer overrides {
  .events-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .event-hero {
    color: #fff;
    padding: clamp(40px, 6vw, 104px) clamp(20px, 4vw, 56px);
    display: grid;
    justify-items: center;
    align-content: center;
    text-align: center;
    gap: clamp(12px, 1.8vw, 20px);
    min-height: clamp(360px, 46vw, 560px);
    overflow-wrap: anywhere;
  }

  /* Per-event brand gradients (sampled from the live Web Directions sites) */
  .event-hero--uxa {
    background: linear-gradient(119deg, hsla(38, 95%, 53%, 1) 0%, hsla(5, 85%, 54%, 1) 100%);
    --hero-ink: #c42d1a;
    --hero-accent: #ffcb0b;
  }
  .event-hero--dr {
    background: linear-gradient(119deg, #ea494b 0%, #5b408f 100%);
    --hero-ink: #4b3575;
    --hero-accent: #fec50b;
  }

  .event-hero-logo { height: clamp(38px, 6vw, 64px); width: auto; margin-bottom: .25rem; }

  .event-hero .event-date-venue {
    font-size: var(--font-size-regular);
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
    margin: 0;
  }

  .event-hero h2 { margin: 0; max-width: 20ch; line-height: 1.1; font-size: clamp(1.5rem, 4.5vw, 2.6rem); }
  .event-hero-intro { margin: 0; max-width: 42ch; opacity: .95; }

  .event-hero-ctas { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-top: .4rem; }
  .event-hero .button { background: #fff; color: var(--hero-ink); }
  .event-hero .button:hover { background: var(--hero-accent); color: var(--hero-ink); }

  /* Narrow screens: stack to a single column. Source order is UX Australia
     first, Design Research second, so they stack in that order automatically. */
  @media (max-width: 760px) {
    .events-hero { grid-template-columns: 1fr; }
  }
}
