/* 
-----------------------------------
Events Filter Layout
-----------------------------------
*/

.events-filter-wrapper {
  margin-bottom: 35px;
}

.events-filter-row {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;
}

/* TOP ROW */

.top-row {
  margin-bottom: 30px;
}

.events-filter-title {
  margin: 0;

  font-size: 32px;

  font-weight: 600;
}

.events-dropdowns {
  display: flex;

  gap: 15px;
}

.events-dropdowns select {
  min-width: 160px;

  font-family: "Inter 18pt";
  padding: 12px 18px;
  color: #5c3d2e;
  border: 1px solid #ddd;

  background: #fff;

  font-size: 15px;

  cursor: pointer;
}

/* SECOND ROW */

.bottom-row {
  border-bottom: 1px solid #eee;

  padding-bottom: 25px;
}

.frequency-filter {
  display: flex;

  gap: 12px;
}

.frequency-filter label {
  cursor: pointer;
}

.frequency-filter input {
  display: none;
}

.frequency-filter span {
  display: block;

  padding: 10px 25px;

  border: 1px solid #ddd;

  transition: 0.3s;
}

.frequency-filter input:checked + span {
  background: #000;

  color: #fff;

  border-color: #000;
}

/* CLEAR BUTTON */

#clear-events-filter {
  background: transparent;

  border: 1px solid #000;

  padding: 12px 30px;

  cursor: pointer;

  font-size: 15px;

  transition: 0.3s;
}

#clear-events-filter:hover {
  background: #000;

  color: #fff;
}

/*
-----------------------------------
Events Grid
-----------------------------------
*/

.events-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;
}

.event-card {
  background: #fff;
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.event-image img {
  width: 100%;

  height: 260px;

  object-fit: cover;
}

.event-content {
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.event-content h3 {
  margin-top: 0;

  margin-bottom: 15px;
}

.event-meta {
  margin-bottom: 8px;

  font-size: 15px;
}

.event-link {
  display: inline-block;

  margin-top: 15px;

  text-decoration: none;
}

/*
-----------------------------------
Responsive
-----------------------------------
*/

@media (max-width: 991px) {
  .events-filter-row {
    flex-direction: column;

    align-items: flex-start;
  }

  .events-dropdowns {
    width: 100%;

    flex-wrap: wrap;
  }

  .events-dropdowns select {
    flex: 1;
  }

  .bottom-row {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .events-dropdowns {
    flex-direction: column;
  }

  .events-dropdowns select {
    width: 100%;
  }

  .frequency-filter {
    flex-wrap: wrap;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .events-filter-title {
    font-size: 26px;
  }
}
