/*.tags-new {*/
/*    width: fit-content !important;*/
/*}*/
.events-section {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.events-section__title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 32px;
}

/* =========================
   GRID (FLEX, SAFE)
========================= */

.events-grid {
  display: flex;
  flex-wrap: wrap;
    gap: 15px;
    row-gap: 30px;
}

.events-grid > .events-card {
  width: calc(25% - 15px);
}

/* =========================
   CARD
========================= */

.events-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position:relative;
}

/* Image */
.events-card__image {
  position: relative;
  overflow: hidden;
}

.events-card__image img {
  width: 100%;
  height: 350px !important;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.events-card:hover img {
  transform: scale(1.03);
}



.events-card__meta {
  position: absolute;
    top: 8px;
    left: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.events-card__date,
.events-card__tags {
  background: #ffffff;
  font-size: 12px;
    font-weight: 400;
  line-height: 1;
  padding: 6px 8px;
  width: fit-content;
}


.events-card__content {
  margin-top: 12px;
}

.events-card__title {
  font-size: 18px;
  font-weight: 500;
    line-height: 110%;
margin-bottom: 8px;
}

.events-card__text {
  font-size: 14px;
  color: #666666;
  margin: 0;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
  .events-grid > .events-card {
    width: calc(33.333% - 22px);
  }
  .events-section__title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 32px;
}

}

@media (max-width: 900px) {
  .events-grid > .events-card {
    width: calc(50% - 16px);
  }
  .events-section {
    gap: 40px;
}
.events-section__title {
  font-size: 38px;
}

}

@media (max-width: 520px) {
  .events-grid > .events-card {
    width: 100%;
  }
   .events-section {
    gap: 30px;
}
  .events-grid {
    gap: 12px;
}
.events-card__image img {
  height: 260px !important;
}
.events-section__title {
  font-size: 32px;
  margin-bottom: 22px;
}
.events-card__title {
  font-size: 16px;

}
}
