.tn-elementor-event-cards {
  --tn-event-cards-columns: 3;
  display: grid;
  grid-template-columns: repeat(var(--tn-event-cards-columns), minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.tn-elementor-event-archive__filter {
  margin: 0 0 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  background: #f8fbfe;
  color: #182033;
}

.tn-elementor-event-archive__filter span {
  color: #65758b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tn-elementor-event-archive__filter strong {
  font-weight: 900;
}

.tn-elementor-event-archive__filter a {
  margin-left: auto;
  color: #00a0cc;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 640px) {
  .tn-elementor-event-archive__filter {
    align-items: flex-start;
    flex-direction: column;
  }

  .tn-elementor-event-archive__filter a {
    margin-left: 0;
  }
}

.tn-event-card-grid__card,
.tn-event-card-grid__see-all {
  min-width: 0;
  overflow: hidden;
}

.tn-event-card-grid__card {
  display: flex;
  flex-direction: column;
  border: 1px solid #d9d4ce;
  background: #fff;
  color: #241f1f;
}

.tn-event-card-grid__image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.tn-event-card-grid__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.tn-event-card-grid__image:hover img {
  transform: scale(1.035);
}

.tn-event-card-grid__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 28px);
  padding: 7px 11px;
  border-radius: 999px;
  background: #eef6f0;
  color: #1f6f45;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.tn-event-card-grid__badge span {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.tn-event-card-grid__badge--static {
  position: static;
  align-self: flex-start;
  margin: 18px 18px 0;
}

.tn-event-card-grid__badges-static {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 18px 18px 0;
}

.tn-event-card-grid__badges-static .tn-event-card-grid__badge--static {
  margin: 0;
}

.tn-event-card-grid__sold-out {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 28px);
  padding: 8px 12px;
  border-radius: 999px;
  background: #ff531a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(255, 83, 26, 0.24);
}

.tn-event-card-grid__sold-out--static {
  position: static;
}

.tn-event-card-grid__card.is-sold-out .tn-event-card-grid__image img {
  filter: saturate(0.78);
}

.tn-event-card-grid__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 11px;
  padding: 18px 20px 20px;
}

.tn-event-card-grid__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.13;
  letter-spacing: 0;
}

.tn-event-card-grid__title a {
  color: inherit;
  text-decoration: none;
}

.tn-event-card-grid__title a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tn-event-card-grid__summary {
  margin: 0;
  color: color-mix(in srgb, currentColor 78%, transparent);
  font-size: 14px;
  line-height: 1.45;
}

.tn-event-card-grid__details {
  display: grid;
  gap: 8px;
  margin: 0;
}

.tn-event-card-grid__details div {
  display: grid;
  grid-template-columns: minmax(72px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.tn-event-card-grid__details dt,
.tn-event-card-grid__details dd {
  min-width: 0;
  margin: 0;
}

.tn-event-card-grid__details dt {
  color: color-mix(in srgb, currentColor 58%, transparent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.tn-event-card-grid__details dd {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.tn-event-card-grid__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 42px;
  margin-top: auto;
  padding: 0 18px;
  border-radius: 999px;
  background: #00a0cc;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.tn-event-card-grid__button:hover {
  color: #fff;
  filter: brightness(1.12);
}

.tn-event-card-grid__see-all {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid #d9d4ce;
  border-radius: 18px;
  background: #fff;
  color: #241f1f;
  text-align: center;
  text-decoration: none;
}

.tn-event-card-grid__see-all-icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f8fc;
  color: #00a0cc;
}

.tn-event-card-grid__see-all-icon svg {
  display: block;
  width: 25px;
  height: 25px;
}

.tn-event-card-grid__see-all-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tn-event-card-grid__see-all strong {
  font-size: 18px;
  line-height: 1.2;
}

.tn-elementor-event-cards-empty {
  padding: 18px;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  color: #4f4f4f;
}

.tn-elementor-event-archive {
  display: grid;
  gap: 28px;
}

.tn-event-archive-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tn-event-archive-pagination .page-numbers a,
.tn-event-archive-pagination .page-numbers span {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #d9d4ce;
  border-radius: 999px;
  color: #241f1f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.tn-event-archive-pagination .page-numbers .current {
  border-color: #00a0cc;
  background: #00a0cc;
  color: #fff;
}

.tn-event-archive-pagination .page-numbers a:hover {
  border-color: #00a0cc;
  color: #00a0cc;
}

@media (max-width: 767px) {
  .tn-elementor-event-cards {
    gap: 18px;
  }

  .tn-event-card-grid__body {
    padding: 18px;
  }

  .tn-event-card-grid__title {
    font-size: 18px;
  }

  .tn-event-card-grid__details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
