

{# Filters #}
.events-listing__filters{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.events-listing__dropdown{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.events-listing__filter > div,
.events-listing__search{
  background-color: #F0F0F0;
  padding: 1rem;
}

.events-listing__filter{
  position: relative;
  min-width: 300px;
}

.events-listing__filter label{
  position: relative;
}

.events-listing__filter input{
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.events-listing__filter ul{
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  margin: 0;
  list-style: none;
  background-color: #fff;
}

.events-listing__filter ul li{
  cursor: pointer;
}

.events-listing__filter ul li:hover,
.events-listing__filter ul li.active{
  color: var(--primary-color);
}

.events-listing__filter:has(input[type="checkbox"]:checked) ul{
  opacity: 1;
  max-height: 10000px;
  transition: all 0.2s ease-out;
}

.events-listing__filter:not(:has(input[type="checkbox"]:checked)) ul{
  opacity: 0;
  max-height: 0px;
  overflow: hidden;
  transition: all 0.2s ease-out;
}

.events-listing__search{
  position: relative;
}

.events-listing__search input{
  border: 0;
  outline: 0;
  background-color: transparent;
  min-width: 384px;
}

.events-listing__search span,
.events-listing__filter span:last-of-type{
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
}

.events-listing .isotope-pager{
  padding: 0;
}

.events-listing .isotope-pager a,
.events-listing .isotope-pager svg{
  width: 2rem;
  aspect-ratio: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: var(--dark-color);
  fill: var(--dark-color);
}

.events-listing .isotope-pager a.active,
.events-listing .isotope-pager a:not(:has(svg)):hover{
  color: #fff;
  background-color: var(--primary-color);
  border-radius: 0;
  transition: all 0.2s ease-out;
}

@media screen and (max-width: 767px){
  .events-listing__filters{
    flex-direction: column;
  }

  .events-listing__dropdown{
    width: 100%;
  }

  .events-listing__dropdown > div:not(.events-listing__filter){
    min-width: max-content;
  }

  .events-listing__filter,
  .events-listing__search{
    min-width: auto;
    width: 100%;
  }

  .events-listing__search input{
    min-width: 100%;
  }

  .events-listing .isotope-pager a,
  .events-listing .isotope-pager svg{
    width: 1.5rem;
    font-size: 0.75rem;
    margin-left: 0.25rem;
  }
}

{# Section #}
.events-listing__listing{
  display: grid;
  height: auto !important;
}

.events-listing__listing:not(.basic){
  margin: 3rem 0 4rem 0;
}

{# Events Card #}
.event{
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  height: fit-content !important;
}

.event img{
  width: 100%;
  aspect-ratio: 1.3;
  object-fit: cover;
  object-position: center;
}

.event__content{
  margin-top: 1.25rem;
}

.event__content > span{
  font-size: 1rem;
  line-height: 1.5;
  color: var(--primary-color);
}

.event__content > h4{
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.event__content > p{
  line-height: 1.5;
  margin-bottom: 0;
}

.event__content > h4,
.event__content > p{
  color: var(--dark-color);
}

.event__datetime{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.event__datetime > div:first-of-type{
  text-wrap: auto;
  max-width: 192px;
}

.event__datetime.basic,
.event__datetime.basic > div{
  display: inline;
}

.event__links{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.event__links > a{
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media screen and (max-width: 767px){
  .events-listing__listing{
    grid-template-columns: 1fr;
  }

  .event__datetime{
    flex-wrap: wrap;
  }

  .event__datetime > div:first-of-type{
    text-wrap: auto;
    max-width: 95%;
  }

  .event__datetime > div:last-of-type{
    width: 100%;
  }
}

#first.pagination-arrow,
#last.pagination-arrow {
  display: flex;
}

#first.pagination-arrow svg,
#last.pagination-arrow svg {
  width: 10px;
}