/* Home Update — Upcoming events. Scoped to .hk-hu-events; reuses theme fonts (FreightBig Pro / Now). */
.hk-hu-events {
  --hk-font-headline: "FreightBig Pro", Georgia, "Times New Roman", serif;
  --hk-font-body:
    "Now", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --hk-navy: #09334a;
  --hk-gold: #8c752c;
  --hk-beige: #edeae3;
  --hk-line: rgba(9, 51, 74, 0.2);
}
.hk-hu-events,
.hk-hu-events * {
  box-sizing: border-box;
}
/* Beige panel */
.hk-hu-events {
  padding: 30px clamp(16px, 2.604vw, 50px);
  background: var(--hk-beige);
  border-radius: 3px;
  scroll-margin-top: 90px;
}
.hk-hu-events__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 431px);
  align-items: center;
  gap: clamp(40px, 3.906vw, 75px);
  max-width: 1295px;
  margin-inline: auto;
}
.hk-hu-events--no-media .hk-hu-events__wrap {
  grid-template-columns: minmax(0, 1fr);
}

/* Content */
.hk-hu-events__inner {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
}
.hk-hu-events__eyebrow {
  display: block;
  font-family: var(--hk-font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hk-gold);
  margin: 0 0 -20px;
}
.hk-hu-events__title {
  font-family: var(--hk-font-headline) !important;
  font-weight: 600 !important;
  font-size: clamp(30px, 2.291vw, 44px) !important;
  line-height: 1.25 !important;
  text-transform: none !important;
  color: var(--hk-navy) !important;
  margin: 0 !important;
}
.hk-hu-events__text {
  max-width: 520px;
  font-family: var(--hk-font-body);
  font-size: clamp(16px, 0.9895vw, 19px);
  line-height: 1.5;
  color: var(--hk-navy);
}
.hk-hu-events__text p {
  margin: 0;
  color: inherit;
}

/* Event rows — date / name / price / Book, divided by thin lines */
.hk-hu-events__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--hk-line);
}
.hk-hu-events__row {
  display: grid;
  /* Date and price take only their own width, the event name gets the rest */
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: clamp(24px, 2.083vw, 40px);
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid var(--hk-line);
  font-family: var(--hk-font-body);
  font-size: clamp(16px, 0.9895vw, 19px);
  line-height: 1.5;
  color: var(--hk-navy);
}
.hk-hu-events__row::before {
  display: none;
}
.hk-hu-events__date {
  font-weight: 500;
  color: var(--hk-navy);
}
.hk-hu-events__name {
  font-weight: 400;
  color: var(--hk-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}
.hk-hu-events__name:hover {
  color: var(--hk-gold);
}
.hk-hu-events__price {
  font-weight: 400;
  color: var(--hk-navy);
  white-space: nowrap;
}
.hk-hu-events__book {
  justify-self: end;
  font-weight: 400;
  color: var(--hk-navy);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s ease;
}
.hk-hu-events__book:hover {
  color: var(--hk-gold);
}

/* Fallback when there are no upcoming events */
.hk-hu-events__empty {
  padding: 20px 0;
  border-top: 1px solid var(--hk-line);
  border-bottom: 1px solid var(--hk-line);
  font-family: var(--hk-font-body);
  font-size: clamp(16px, 0.9895vw, 19px);
  line-height: 1.5;
  color: var(--hk-navy);
}
.hk-hu-events__empty p {
  margin: 0 0 8px;
  color: inherit;
}
.hk-hu-events__empty p:last-child {
  margin-bottom: 0;
}
.hk-hu-events__empty a:not(.hk-hu-events__btn) {
  color: var(--hk-navy);
  text-decoration: underline;
}
/* CTA under the "no upcoming events" text */
.hk-hu-events__empty .hk-hu-events__btn {
  margin-top: 20px;
}

/* Buttons */
.hk-hu-events__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.hk-hu-events__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 20px;
  font-family: var(--hk-font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  border: 1px solid var(--hk-navy);
  border-radius: 3px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.hk-hu-events__btn--solid {
  background: var(--hk-navy);
  color: #fff;
}
.hk-hu-events__btn--solid:hover {
  background: var(--hk-gold);
  border-color: var(--hk-gold);
  color: #fff;
}
.hk-hu-events__btn--outline {
  background: transparent;
  color: var(--hk-navy);
}
.hk-hu-events__btn--outline:hover {
  background: var(--hk-navy);
  color: #fff;
}

/* Image — portrait 431×638 */
.hk-hu-events__media {
  position: relative;
  aspect-ratio: 431 / 638;
  border-radius: 3px;
  overflow: hidden;
}
.hk-hu-events__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  .hk-hu-events__wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  /* Mobile mockup: image first, square */
  .hk-hu-events__media {
    order: -1;
    aspect-ratio: 1 / 1;
    max-height: 600px;
  }
}

@media (max-width: 767px) {
  .hk-hu-events {
    padding: 20px;
  }
  .hk-hu-events__inner {
    gap: 20px;
  }
  .hk-hu-events__eyebrow {
    margin-bottom: -15px;
  }
  /* Row in two lines: date + price, then name + Book */
  .hk-hu-events__row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "date price"
      "name book";
    gap: 6px 12px;
    padding: 16px 0;
  }
  .hk-hu-events__date {
    grid-area: date;
  }
  .hk-hu-events__name {
    grid-area: name;
  }
  .hk-hu-events__price {
    grid-area: price;
    justify-self: end;
  }
  .hk-hu-events__book {
    grid-area: book;
  }
  .hk-hu-events__actions {
    flex-direction: column;
  }
  .hk-hu-events__btn {
    width: 100%;
  }
}
