.events-container {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.event-card {
  display: flex;
  flex-direction: row;
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  width: 90%;
  height: 50vh;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-card img {
  height: 50vh;
  width: 50%;
  object-fit: cover;
}

.event-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  width: 50%;
}

.event-content h2 {
  font-size: 1.5rem;
  color: #1f3c88;
}

.event-content h3 {
  font-size: 1.2rem;
}

.tag {
  background-color: #f0f4ff;
  color: #1f3c88;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.tag:hover {
  background-color: #dbe3ff;
}

.event-actions {
  display: flex;
  gap: 1rem;
}

.btn {
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  background-color: #e0e7ff;
  color: #1f3c88;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #c7d2fe;
}

.btn-primary {
  background-color: #1f3c88;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #162d6c;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.tag {
  background-color: #f0f4ff;
  color: #1f3c88;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.tag:hover {
  background-color: #dbe3ff;
}

.events-tags-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 2rem 0;
  max-width: 1300px;
  margin: 0 auto;
}

/* Individual Tag Button */
.events-tags-filter .tag-filter {
  padding: 0.5rem 1rem;
  background-color: #e0e7ff;
  color: #1f3c88;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  user-select: none;
}

/* On hover */
.events-tags-filter .tag-filter:hover {
  background-color: #c7d2fe;
}

/* Active/selected tag */
.events-tags-filter .tag-filter.active {
  background-color: #1f3c88;
  color: #ffffff;
}

#pagination {
  text-align: center;
  margin: 4rem 0;
}

#pagination a,
#pagination span {
  margin: 0 5px;
  padding: 6px 10px;
  text-decoration: none;
  color: #1e3a8a;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

#pagination a.active {
  background-color: #c7d2fe;
}

#pagination a:hover {
  background-color: #e0e7ff;
}

#toggle-event-tags {
  display: inline-block;
  width: 14vw;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #1e3a8a; /* Deep blue similar to other CTA buttons */
  border: none;
  border-radius: 9999px; /* pill shape */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#toggle-event-tags:hover {
  background-color: #1d4ed8; /* slightly lighter blue on hover */
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/*  */
.date-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #2b3b7b;
  background-color: #f5f7fb;
  padding: 1rem;
  border-radius: 1rem;
}

.date-filters label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  flex: 1 1 150px;
  max-width: 250px;
}

.date-filters input[type="date"] {
  margin-top: 0.25rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e0;
  border-radius: 0.75rem;
  font-size: 15px;
  color: #2b3b7b;
  background-color: #ffffff;
  transition: border 0.3s ease;
}

.date-filters input[type="date"]:focus {
  border-color: #2b3b7b;
  outline: none;
}

#apply-date-filter {
  padding: 0.6rem 3rem;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background-color: #2b3b7b;
  border: none;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#apply-date-filter:hover {
  background-color: #1f2f66;
}

@media (max-width: 900px) {
  .event-card {
    flex-direction: column;
    height: auto;
  }

  .event-card img,
  .event-content {
    width: 100%;
  }

  .event-card img {
    height: 30vh;
  }

  .event-content h2 {
    font-size: 1.2rem;
  }
  .event-content h3 {
    font-size: 0.9rem;
  }
  .tag {
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .date-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .date-filters label,
  #apply-date-filter {
    width: 100%;
    flex-basis: 25px;
  }

  #apply-date-filter {
    text-align: center;
    width: 225px;
  }
}
@media (max-width: 425px) {
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}
