.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-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(360px, 46vw, 560px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #061735;
  background-image: var(--tn-archive-hero-image, none);
  background-position: var(--tn-archive-hero-position, center center);
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  text-align: center;
}

.tn-elementor-event-archive-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 23, 53, .58);
}

.tn-elementor-event-archive-hero__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(84px, 12vw, 150px) 0 clamp(56px, 8vw, 96px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tn-elementor-event-archive-hero__kicker {
  display: inline-block;
  margin: 0 0 16px;
  color: #78d8e8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.tn-elementor-event-archive-hero__logo {
  width: clamp(130px, 16vw, 220px);
  height: auto;
  margin: 0 0 22px;
}

.tn-elementor-event-archive-hero h1 {
  max-width: 920px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.2rem, 7.2vw, 7rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: .9;
}

.tn-elementor-event-archive-hero p {
  max-width: 720px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.65;
}

.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-archive-hero {
    min-height: 390px;
  }

  .tn-elementor-event-archive-hero__inner {
    width: calc(100% - 28px);
  }

  .tn-elementor-event-archive-hero h1 {
    font-size: 3.3rem;
    line-height: .98;
  }

  .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;
  }
}
