.block .newsroom-event-calendar {
  padding: 1.5rem 0;
}

.block.--bg-black .newsroom-event-calendar .hgroup h2,
.block.--bg-black .newsroom-event-calendar .nec-intro {
  color: white;
}

/* NEC Items */
.block .newsroom-event-calendar .nec-items {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem; /* Space between items */
  padding: 2rem 0;
}

.block .newsroom-event-calendar .nec-items .nec-item {
  display: flex;
  flex-direction: column; /* Stacks content vertically */
  justify-content: space-between; /* Spaces between content and button */
  border-radius: 4px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.15);
  position: relative;
  width: 100%; /* Takes full width of the parent */
  height: auto; /* Allow natural height */
}

.block .newsroom-event-calendar .nec-items .nec-item .nec-item-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Keeps button at the bottom */
  flex-grow: 1; /* Allows content to fill available space */
  padding: 1.25rem;
  background-color: white;
  border-radius: 0 0 4px 4px;
  border-top: 1px solid var(--light-gray);
}

.block .newsroom-event-calendar .nec-items .nec-item .nec-item-content :nth-last-child(2) {
  margin-bottom: 2rem !important;
}

.block .newsroom-event-calendar .nec-items .nec-item .nec-item-content .nec-item-tag,
.block .newsroom-event-calendar .nec-items .nec-item .nec-item-content .nec-item-date {
  color: var(--cool-gray);
  font-family: var(--united-sans-cond);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.block .newsroom-event-calendar .nec-items .nec-item .nec-item-content .nec-item-date {
  margin-bottom: 2rem;
}

.block .newsroom-event-calendar .nec-items .nec-item .nec-item-content .nec-item-title {
  color: black;
  margin: 0;
  margin-bottom: 0.5rem;
  font-family: var(--acumin-pro);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}

/* Button styling */
.block .newsroom-event-calendar .nec-items .nec-item .btn-gold.btn-arrow {
  margin-top: auto; /* Pushes button to the bottom */
}

.block .newsroom-event-calendar .nec-items .nec-item:hover .btn-gold.btn-arrow {
  background-color: black;
  color: white;
}

.block .newsroom-event-calendar .nec-items .nec-item:hover .btn-gold.btn-arrow:after {
  background-image: var(--gold-arrow-url);
  transform: translateX(3px);
}

/* NEC Grid-Cards */
.block .newsroom-event-calendar .nec-items.grid-cards {
  flex-flow: row wrap; /* Ensures wrapping and layout */
  gap: 2rem; /* Space between items */
}

.block .newsroom-event-calendar .nec-items.grid-cards .nec-item {
  border-radius: 4px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.15);
  width: 100%; /* Responsive sizing */
  position: relative;
}

.block .newsroom-event-calendar .nec-items.grid-cards .nec-item:hover {
  box-shadow: 3px 5px 5px 0 rgba(0, 0, 0, 0.15);
}

.block .newsroom-event-calendar .nec-items.grid-cards a.nec-item {
  text-decoration: none;
}

.block .newsroom-event-calendar .nec-items.grid-cards .nec-item:after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  bottom: 0;
  position: absolute;
  transform: scaleX(0);
  transition: all 0.25s cubic-bezier(1, 0.25, 0, 0.75) 0s;
  background-color: var(--railway-gray);
  border-radius: 0 0 4px 4px;
}

.block .newsroom-event-calendar .nec-items.grid-cards .nec-item:hover:after {
  transform: scaleX(1);
}

.block .newsroom-event-calendar .nec-items.grid-cards .nec-item img,
.block .newsroom-event-calendar .nec-items.grid-cards .nec-item .nec-image-placeholder {
  border-radius: 4px 4px 0 0;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  object-fit: cover;
  object-position: top center;
  background-color: var(--light-gray);
}

.block .newsroom-event-calendar .nec-items.grid-cards .nec-item .nec-image-placeholder svg {
  color: var(--steam-gray);
  width: 80%;
  height: auto;
  aspect-ratio: 16 / 9;
  padding: 1rem 2rem;
}

/* Event Items */
.block .newsroom-event-calendar .nec-items.grid-cards .nec-item.event-item .nec-item-event-date-time,
.block .newsroom-event-calendar .nec-items.grid-cards .nec-item.event-item .nec-item-event-location {
  font-family: var(--acumin-pro);
  font-size: 0.875rem;
  line-height: 1.71;
  margin-bottom: 0.5rem;
  font-weight: 300;
  color: black;
}

@media screen and (min-width: 576px) {
  .block .newsroom-event-calendar .nec-items.grid-cards .nec-item {
  }
}

@media screen and (min-width: 768px) {
  .block .newsroom-event-calendar .nec-items.grid-cards .nec-item {
    width: calc(50% - 1rem);
  }
}

@media screen and (min-width: 992px) {
  .block .newsroom-event-calendar .nec-items.grid-cards .nec-item {
    width: calc(33% - 1.5rem);
  }
}

@media screen and (min-width: 1200px) {
  .block .newsroom-event-calendar .nec-items.grid-cards .nec-item {
    width: calc(25% - 1.5rem);
  }
}
