.event-item {
  padding: 1.2rem 1.25rem 0;
  box-sizing: border-box;
  background: var(--bg);
  width: 100%;
  padding: 0;
  border-bottom: 1px solid var(--gray);
  border-left: 1px solid var(--gray);
  margin-left: -1px;
}

.event-item__description-block a{
  color: var(--secondary);
  font-weight: 700;
}

@media (max-width: 1024px) {
  .event-item {
    width: 100%;
  }
}

.event-item__image-container {
  position: relative;
  height: 30rem;
}

.event-item__image-container img {
  width: 100%;
  height: 30rem;
  object-fit: cover;
}

.event-item__heading {
  color: var(--white);
  position: absolute;
  left: 2.5rem;
  bottom: 3rem;
}

.event-item__title {
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1.17;
  margin-bottom: 5px;
}

.event-item__subtitle {
  font-weight: 700;
  font-size: 2.4rem;
}

.event-item__text {
  padding: 2rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event-item__description-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

@media (max-width: 767px) {
  .event-item__heading {
    left: 2.5rem;
    bottom: 3.2rem;
  }

  .event-item__image-container,
  .event-item__image-container img {
    height: 26rem;
  }

  .event-item__title {
    max-width: 50%;
    font-size: 2rem;
  }

  .event-item__subtitle {
    font-size: 1.8rem;
  }

  .event-item__text {
    padding: 1.5rem 2.6rem 1.5rem;
    gap: 1rem;
  }
}
