/* List Component - used for news and events */
.list-section {
  background: white;
  border: 1px solid var(--njtpa-gray-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: var(--space-4xl);
}

@media (min-width: 769px) {
  .list-section {
    min-height: 500px;
    padding: var(--space-4xl);
  }
}

.list-section__title {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 0 var(--space-lg);
  margin: 0;
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--njtpa-dark-blue);
  text-align: center;
  max-width: 400px;
}

@media (min-width: 769px) {
  .list-section__title {
    top: -20px;
    width: max-content;
  }
}

.list-section__content {
  margin-top: var(--space-xl);
  flex: 1;
}

.list-section__link {
  color: var(--njtpa-dark-blue);
  display: block;
  text-align: center;
  width: 100%;
  margin-top: auto;
  margin-bottom: 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
}

.list-section__link:hover {
  color: var(--njtpa-maroon);
}

/* News List Items */
.news-item {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.news-item:not(:first-child) {
  margin-top: var(--space-lg);
}

.news-item__icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Teaser image styles */
.news-item__teaser {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--njtpa-gray-light);
}

.news-item__teaser-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item__content h3 {
  margin-bottom: 0px;
  margin-top: 0px;
  line-height: 0.5;
}

.news-item__title {
  color: var(--njtpa-dark-blue);
  text-decoration: none;
  font-size: var(--font-size-base);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-bold);
}

.news-item__title:hover {
  color: var(--njtpa-maroon);
}

.news-item__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0;
}

.news-item__source-date {
  color: var(--njtpa-gray-medium);
  font-size: var(--font-size-sm);
}

.news-item__paywall-chip {
  background-color: var(--njtpa-maroon);
  color: white;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  padding: 2px var(--space-sm);
  border-radius: var(--border-radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Event List Items */
.event-item {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
}

.event-item__left {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  flex: 1;
}

.event-item__date {
  border-radius: var(--border-radius);
  text-align: center;
  min-width: 50px;
  flex-shrink: 0;
  overflow: hidden;
}

.event-item__month {
  display: block;
  background-color: var(--njtpa-maroon);
  color: white;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  padding: var(--space-xs) var(--space-sm);
}

.event-item__day {
  display: block;
  background-color: #e5e7eb;
  color: #333;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  padding: var(--space-sm) var(--space-sm);
}

.event-item__content h3 {
  color: var(--njtpa-dark-blue);
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
}

.event-item__time {
  color: var(--njtpa-gray-medium);
  font-size: var(--font-size-sm);
  margin: 0;
}

.event-item__link {
  color: var(--njtpa-dark-blue);
  text-decoration: underline;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.event-item__link:hover {
  color: var(--njtpa-maroon);
  text-decoration: underline;
}
