.event-list {
  display: grid;
  font-family: "Rubik", sans-serif;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 80px;
  margin-bottom: 100px;
}

.event-item {
  background-color: rgba(0, 0, 0, 0.01);
  /* border: 1px solid orangered; */
  padding: 20px;
  display: grid;
  /* filter: blur(6px); */
  grid-template-rows: auto 1fr auto;
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  transition: transform 0.3s;
  position: relative;
}

.event-image {
  position: relative;
}

.event-image img {
  width: auto;
  max-width: 250px;
  max-height: 200;
  height: auto;
  border-radius: 10px;
}

.event-type {
  background-color: green;
  color: white;
  border-radius: 8px;
  padding: 2px 5px;
  font-size: 0.9em;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

.event-details {
  margin-top: 20px;
  color: #333;
  /* Darker shade for better readability */
}

.event-title {
  color: #ff4500;
  /* Orangered color for title */
  font-size: 1.2em;
  font-weight: bold;
}

.event-description {
  color: #808080;
  /* Dark gray color for description */
  margin: 15px 0;
  font-size: 0.8em;
}

.event-category,
.event-time,
.event-address,
.event-date {
  color: #696969;
  /* Dim gray color for other details */
  margin: 10px 0;
  font-size: 0.8em;
}

.event-form {
  margin-top: 20px;
}

.event-btn {
  display: inline-block;
  padding: 5px 8px;
  background-color: orangered;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
  margin: 10px 0;
}

.event-btn:hover {
  background-color: orangered;
  color: white;
  text-decoration: underline;
  transform: scale(1.05);
}

.no-event {
  text-align: center;
  padding: 50px 0;
}

.no-events-message {
  font-size: 1.5em;
  color: #666;
}

.create-event-btn {
  background-color: orangered;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  display: inline-block;
  margin-top: 20px;
}

/* Media Queries */
@media screen and (max-width: 600px) {
  .event-list {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 0px 20px;
  }

  .event-item {
    padding: 15px;
  }

  .event-title {
    font-size: 1.4em !important;
  }

  .event-description,
  .event-address,
  .event-category,
  .event-date,
  .event-time {
    font-size: 0.7em;
  }

  .event-btn,
  .create-event-btn {
    padding: 8px 12px;
  }
}

#events-heading {
  text-align: center;
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: 30px;
  margin-bottom: 40px;
  position: relative;
  display: block;
}

#events-heading::after {
  content: "";
  display: block;
  width: 50px;
  /* Adjust the width to make the underline smaller */
  height: 3px;
  /* Adjust the height to make the underline smaller */
  background-color: orangered;
  margin: 5px auto 0;
  /* Center the underline and add some margin to create space between the text and the underline */
  border-radius: 5px;
  /* Optional: make the underline rounded */
}
