.events-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 32px 0;
}

.event-card {
  display: flex;
  text-decoration: none;
  color: #1E1E1E;
  border-radius: 15px;
  background: #FFFFFF;
  min-height: 250px;
  max-width: 650px;
}

.event-card__image-box {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: 250px;
  border-radius: 15px;
}

.event-card__img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  object-fit: cover;
  object-position: center;
  height: 100%;
  width: 100%;
}

.event-card__content {
  padding: 30px;
}

.event-card__subtitle {
  font-size: 12px;
  font-weight: 400;
  line-height: 12px;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 13px;
  margin-bottom: 8px;
  opacity: 0.5;
  color: #1E1E1E;
  gap: 4px;
}

.event-card__title {
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  line-height: 110%;
  margin-bottom: 8px;
  color: #1E1E1E;
}

.event-card__text {
  font-size: 14px;
  font-weight: 300;
  font-style: normal;
  line-height: 18px;
  color: #1E1E1E;
}

.event-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-card-tag {
  font-size: 12px;
  font-weight: 300;
  font-style: normal;
  line-height: 110%;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: #121217;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 15px;
  background: #FFFFFF;
  gap: 4px;
}

.event-card-tag.recommended {
  color: #ffffff;
  background: linear-gradient(
          169.76deg,
          rgba(189, 12, 30, 0.68) 32.45%,
          rgba(209, 30, 159, 0.85) 52.46%,
          rgba(189, 12, 30, 0.697) 82.46%,
          rgba(189, 12, 30, 0.85) 86.52%
  );
}

.event-card-tag.recommended::after, .events-recommended-filter__btn::after {
  width: 12px;
  height: 8px;
  content: '';
  background-image: url(img/icon-recommendation-tag.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}


.event-card-tag.certificated {
  border-color: rgba(189, 12, 30, 0.3);
}

@media (max-width: 1200px) {
  .events-list{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .events-list{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 16px 0;
  }

  .event-card{
    flex-direction: column;
    border-radius: 8px;
  }

  .event-card__image-box{
    width: 100%;
    border-radius: 8px 8px 0 0;
    aspect-ratio: 1;
  }

  .event-card__content{
    padding: 16px 8px;
  }

  .event-card__subtitle {
    font-size: 10px;
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: 0;
  }

  .event-card__title{
    font-size: 14px;
    line-height: 110%;
    margin-bottom: 8px;
  }

  .event-card__text{
    display: none;
  }

  .event-card-tag{
    font-size: 10px;
    line-height: 105%;
    padding: 3px 8px;
  }
}