.hze-events {
  --hze-primary: #6cadea;
  --hze-accent: #f4a261;
  --hze-columns: 3;
  --hze-text: #1d2736;
  --hze-muted: #5b6575;
  --hze-border: rgba(29, 39, 54, 0.09);
  font-family: inherit;
  width: 100%;
}

.hze-grid {
  display: grid;
  grid-template-columns: repeat(var(--hze-columns), minmax(0, 1fr));
  gap: 28px;
  width: 100%;
}

.hze-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--hze-border);
  border-radius: 22px;
  box-shadow: 0 10px 32px rgba(29, 39, 54, 0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.hze-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(29, 39, 54, 0.13);
}

.hze-image-link {
  display: block;
  background: #f4f6f8;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hze-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.hze-card:hover .hze-image {
  transform: scale(1.025);
}

.hze-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.hze-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hze-event-type,
.hze-badge,
.hze-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1;
  text-transform: uppercase;
}

.hze-event-type,
.hze-kicker {
  padding: 7px 11px;
  color: var(--hze-accent);
  background: color-mix(in srgb, var(--hze-accent) 12%, white);
}

.hze-badge {
  padding: 7px 11px;
  color: var(--hze-primary);
  background: color-mix(in srgb, var(--hze-primary) 12%, white);
}

.hze-title {
  margin: 0 0 16px;
  color: var(--hze-text);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.17;
  font-weight: 800;
}

.hze-when {
  padding: 15px 16px;
  margin-bottom: 16px;
  border-left: 4px solid var(--hze-primary);
  border-radius: 0 12px 12px 0;
  background: #f7f9fc;
}

.hze-date {
  color: var(--hze-text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.hze-time {
  margin-top: 3px;
  color: var(--hze-muted);
  font-size: 14px;
  font-weight: 600;
}

.hze-description {
  margin: 0 0 22px;
  color: var(--hze-muted);
  font-size: 15px;
  line-height: 1.65;
}

.hze-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: auto;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--hze-primary), color-mix(in srgb, var(--hze-primary) 82%, #1d2736));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--hze-primary) 26%, transparent);
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease;
}

.hze-button:hover,
.hze-button:focus {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--hze-primary) 32%, transparent);
}

.hze-empty {
  max-width: 820px;
  padding: 48px 32px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--hze-border);
  border-radius: 22px;
  box-shadow: 0 10px 32px rgba(29, 39, 54, 0.08);
}

.hze-empty h3 {
  margin: 16px 0 10px;
  color: var(--hze-text);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
}

.hze-empty p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--hze-muted);
  font-size: 16px;
  line-height: 1.65;
}

.hze-admin-error,
.hze-public-error {
  padding: 16px 18px;
  border-radius: 10px;
  background: #fff4f4;
  border: 1px solid #f3bcbc;
  color: #7f1d1d;
}

@supports not (color: color-mix(in srgb, red 10%, white)) {
  .hze-event-type,
  .hze-kicker {
    background: #fff7ef;
  }

  .hze-badge {
    background: #eff7ff;
  }

  .hze-button {
    background: var(--hze-primary);
    box-shadow: 0 8px 20px rgba(29, 39, 54, 0.14);
  }
}

@media (max-width: 1100px) {
  .hze-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .hze-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hze-card-body {
    padding: 20px;
  }

  .hze-card-topline {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .hze-empty {
    padding: 36px 22px;
  }
}
