.home-event-highlights {
  --heh-blue: #122f6f;
  --heh-blue-deep: #0b1d46;
  --heh-red: #e01717;
  --heh-red-soft: #ff6958;
  --heh-text: #132238;
  --heh-text-soft: #5d6b82;
  --heh-surface: #ffffff;
  --heh-surface-alt: #eef3fb;
  --heh-border: rgba(18, 47, 111, 0.12);
  --heh-shadow: 0 22px 52px rgba(9, 28, 67, 0.12);
  position: relative;
  padding: 8px 0 2px;
}

.home-event-highlights__intro {
  max-width: 760px;
  margin: 0 0 24px;
}

.home-event-highlights__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(224, 23, 23, 0.1);
  color: var(--heh-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.home-event-highlights__title {
  margin: 16px 0 10px;
  color: var(--heh-text);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}

.home-event-highlights__description {
  margin: 0;
  color: var(--heh-text-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.home-event-highlights__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.home-event-highlight {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 275px;
  border: 1px solid var(--heh-border);
  border-radius: 28px;
  background: var(--heh-surface);
  box-shadow: var(--heh-shadow);
}

.home-event-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(18, 47, 111, 0.08), transparent 48%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.94));
  pointer-events: none;
}

.home-event-highlight__media,
.home-event-highlight__content {
  position: relative;
  z-index: 1;
}

.home-event-highlight__media {
  min-height: 100%;
  background: linear-gradient(180deg, var(--heh-blue) 0%, var(--heh-blue-deep) 100%);
}

.home-event-highlight__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 18, 38, 0.08), rgba(9, 18, 38, 0.34));
  pointer-events: none;
}

.home-event-highlight__tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(18, 47, 111, 0.08);
  border: 1px solid rgba(18, 47, 111, 0.12);
  color: var(--heh-blue);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: normal;
}

.home-event-highlight__year {
  display: block;
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
  font-size: 2.9rem;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  opacity: 0.28;
}

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

.home-event-highlight__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 24px 22px;
}

.home-event-highlight__top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.home-event-highlight__pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--heh-surface-alt);
  color: var(--heh-blue);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
}

.home-event-highlight__heading {
  margin: 0;
  color: var(--heh-text);
  font-size: clamp(1.7rem, 2vw, 2.3rem);
  line-height: 1.02;
}

.home-event-highlight__text {
  margin: 12px 0 0;
  max-width: 500px;
  color: var(--heh-text-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

.home-event-highlight__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: end;
  gap: 14px;
}

.home-event-highlight__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--heh-red);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: 0 16px 30px rgba(224, 23, 23, 0.22);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.home-event-highlight__cta:hover,
.home-event-highlight__cta:focus {
  color: #fff !important;
  background: var(--heh-blue);
  box-shadow: 0 18px 34px rgba(18, 47, 111, 0.2);
  transform: translateY(-2px);
}

.home-event-highlight--iot .home-event-highlight__media {
  background: linear-gradient(180deg, #15397f 0%, #081733 100%);
}

.home-event-highlight--iot .home-event-highlight__image {
  object-position: 46% center;
}

.home-event-highlight--arduino .home-event-highlight__media {
  background: linear-gradient(180deg, #e01717 0%, #8c0e16 100%);
}

.home-event-highlight--arduino .home-event-highlight__image {
  object-position: 58% center;
}

.home-event-highlight--arduino .home-event-highlight__pill {
  background: rgba(224, 23, 23, 0.08);
  color: #b3131b;
}

@media (max-width: 1080px) {
  .home-event-highlights__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-event-highlight {
    grid-template-columns: 1fr;
  }

  .home-event-highlight__media {
    aspect-ratio: 16 / 9;
  }

  .home-event-highlight__year {
    font-size: 2.5rem;
  }

  .home-event-highlight__content {
    padding: 20px 18px 18px;
  }

  .home-event-highlight__tag {
    margin-bottom: 10px;
  }

  .home-event-highlight__cta {
    width: 48px;
    height: 48px;
  }
}
