.event-archive-hero {
  background: #22262e;
  padding: 72px 0 180px;
}

.event-archive-head h1 {
  margin: 0;
  text-align: center;
  color: #f8f8f8;
  font-size: 56px;
  line-height: 1.1;
  font-weight: 700;
}

.event-archive-controls {
  margin-top: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.event-archive-tabs {
  display: flex;
  align-items: center;
  gap: 32px;
}

.event-archive-tabs a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.event-archive-tabs a:hover {
  color: #ffffff;
  text-decoration: none;
}

.event-archive-tabs a.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.event-archive-search {
  width: 100%;
  max-width: 370px;
  height: 54px;
  border-radius: 999px;
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 10px 0 18px;
}

.event-archive-search input {
  width: 100%;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  font-size: 15px;
  color: #313641;
}

.event-archive-search button {
  border: none;
  background: transparent;
  color: #81848a;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.event-archive-content {
  background: #f4f4f5;
  padding: 0 0 90px;
}

.event-archive-grid {
  transform: translateY(-110px);
  margin-bottom: -110px;
  row-gap: 30px;
}

.event-card-entry {
  margin: 0;
}

.event-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  transition: transform 0.22s ease;
}

.event-card-link:hover {
  color: inherit;
  text-decoration: none;
  transform: translateY(-5px);
}

.event-card-link:hover .event-card-body {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.event-card-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
}

.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-card-badge {
  position: absolute;
  right: 16px;
  left: auto;
  bottom: 24px;
  background: var(--color-primary);
  color: #22262e;
  border-radius: 8px 8px 0 0;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  padding: 8px 10px;
}

.event-card-body {
  background: #fff;
  border-radius: 0 0 8px 8px;
  padding: 20px;
  margin-top: -26px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.event-card-title {
  font-size: 24px;
  line-height: 1.25;
  color: #22262e;
  font-weight: 600;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-excerpt {
  margin: 0 0 12px;
  color: #81848a;
  font-size: 15px;
  line-height: 1.5;
}

.event-card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.event-card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9aa0a8;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 300;
}

.event-card-meta-row i {
  color: #b0b5bc;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  transform: translateY(-1.5px);
}

.event-archive-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.event-archive-pagination .page-numbers {
  margin: 0 4px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  background: #ffffff;
  color: #313641;
  font-weight: 600;
}

.event-archive-pagination .page-numbers.current {
  background: var(--color-primary);
  color: #22262e;
}

.event-archive-empty {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  margin: 0;
}

@media screen and (max-width: 1199px) {
  .event-archive-head h1 {
    font-size: 46px;
  }

  .event-card-title {
    font-size: 24px;
  }
}

@media screen and (max-width: 991px) {
  .event-archive-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-archive-search {
    max-width: 100%;
  }

  .event-card-title {
    font-size: 20px;
  }
}

@media screen and (max-width: 767px) {
  .event-archive-hero {
    padding: 52px 0 170px;
  }

  .event-archive-head h1 {
    font-size: 36px;
  }

  .event-archive-tabs {
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .event-archive-grid {
    transform: translateY(-96px);
    margin-bottom: -96px;
  }

  .event-card-title {
    font-size: 18px;
  }
}
