/* HEADER */
#main-header {
  padding: 1rem 2rem;
  min-height: auto;
}

/* SEARCH/FILTER/RESET */
.custom-search-bar {
  width: 350px !important;
  max-width: 250px !important;
  min-width: 180px;
}

.ml-2 {
  margin-left: 0.5rem !important;
}

.is-flex {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* EVENT CARDS */
#event-list {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.custom-event-card {
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 400px; /* Fixed height */
  overflow: hidden;
  width: 400px;
  margin: 1rem 0; 
}

.one-line-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.custom-event-card:hover {
  transform: translateY(-3px);
}

.card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  object-fit: cover;
  width: 100%;
  height: 100px;
  display: block;
}

.card-image figure {
  width: 100%;
  height: 200px;
  margin: 0;
}

.card-content .tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: left;
  min-height: 30px;
}

.card-content .tags > * {
  flex-shrink: 0;
}

/* TAGS */
.tag {
  font-size: 0.8rem;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.2rem;
  justify-content: left !important;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 5px;
  min-width: fit-content;
  max-width: 100%;
}

.tag.is-venue {
  max-width: 50% !important;
  min-width: 10% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: inline-block !important; 

}

.tag.is-title {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.is-title {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.tag.is-time {
  background-color: #c8f0f6 !important;
  color: #339ca6 !important;
}

/* CREATE EVENT BUTTON */
.create-event-btn {
  background-color: #5f65b1 !important;
  color: white !important;
  border-color: #5f65b1 !important;
  font-weight: 600;
}

.create-event-btn:hover {
  background-color: #4a4d9d !important;
  border-color: #4a4d9d !important;
}

/* MEDIA QUERIES */
@media (max-width: 1024px) {
  .column.is-4-desktop {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
}

@media (max-width: 768px) {
  .column.is-4-desktop,
  .column.is-6-tablet {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .custom-event-card {
    width: 100% !important;
    height: auto !important;
  }
}
