#agenda,
#news {
  max-width: 1200px;
  margin: auto;
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 20px;
  border-radius: 4px;
}

#news {
  background-color: white;
}

#agenda>.heading,
#news>.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 30px;
}

#agenda>.heading *,
#news>.heading * {
  margin: 0;
}

#agenda>.heading a,
#news>.heading a {
  font-size: 0.8rem;
}

.events {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-gap: 20px 25px;
  justify-content: center;
  justify-items: center;
}

.event {
  width: 100%;
  background-color: white;
  color: rgb(70, 62, 75);
  border-radius: 8px;
  z-index: 100;
}

#news .event {
  background-color: rgb(238, 240, 242);
}

.event a {
  color: black;
}

.event .event-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.event .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px;
}

.event-details {
  padding: 10px;
}

.event-details .title {
  font-weight: 600;
  font-size: 1em;
  color: black;
  height: 3.5rem;
}

.event-details .title a:hover {
  text-decoration: none;
}

.event .event-image {
  text-align: center;
  align-items: center;
  justify-content: center;
  height: 260px;
}

.event .date {
  display: flex;
  gap: 6px;
  font-weight: normal;
  font-size: 0.8em;
}

.event .location {
  display: flex;
  gap: 6px;
  font-weight: normal;
  font-size: 0.8em;
}

.all-events-link {}

.all-events-link a {
  color: rgb(80, 122, 176);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.all-events-link a:hover {
  text-decoration: none;
  color: rgb(60, 100, 166);
}

@media all and (min-width:800px) {
  .event:hover {
    transform: scale(1.03);
    transition: transform 0.5s;
  }
}