/* ==========================================================================
   Next Event List — matches the site's own event list styling (colors/sizes
   taken from the live "Event Genius" calendar markup, not a boxed card)
   ========================================================================== */

.nec-list-widget {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 1100px;
  width: 100%;
  margin: 2rem auto;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

.nec-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.nec-list-item__row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
}

.nec-list-item__date-badge {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 80px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
  text-align: center;
}

.nec-list-item__month {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #666666;
  line-height: 1.3;
}

.nec-list-item__day {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: #02467d;
}

.nec-list-item__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  min-width: 0;
}

.nec-list-item__title {
  font-family: EmabiszBalginDisplay, Inter, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px 0;
  color: #27241d;
}

.nec-list-item__date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #02467d;
  margin: 0 0 8px 0;
}

.nec-list-item__venue {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #666666;
  margin: 0 0 8px 0;
}

.nec-list-item__meta-icon {
  flex: 0 0 auto;
  color: currentColor;
}

.nec-list-item__countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 16px 0;
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(2, 70, 125, 0.08);
  color: #02467d;
  font-size: 0.78rem;
  font-weight: 700;
}

.nec-list-item__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 29px;
  padding: 0 18px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #333333;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 5px;
  white-space: nowrap;
}

.nec-list-item__arrow {
  font-size: 1.1rem;
  line-height: 1;
}

.nec-list-item__image {
  flex: 0 0 auto;
  width: 420px;
  aspect-ratio: 2 / 1;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.05);
}

@media (max-width: 600px) {
  .nec-list-widget {
    gap: 20px;
    margin: 1.5rem auto;
  }

  .nec-list-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nec-list-item__row {
    gap: 10px;
  }

  .nec-list-item__image {
    order: -1;
    width: 100%;
    aspect-ratio: 2 / 1;
    border-radius: 8px;
  }

  .nec-list-item__date-badge {
    width: 70px;
    height: 61px;
  }

  .nec-list-item__month {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #666666;
    line-height: 1.3;
  }

  .nec-list-item__day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #02467d;
  }

  .nec-list-item__date {
    margin-bottom: 1px;
  }

  .nec-list-item__venue {
    margin-bottom: 4px;
  }

  .nec-list-item__countdown-badge {
    display: none;
  }

  .nec-list-item__cta {
    margin-top: 8px;
  }
}
