/* Featured Events Grid */
.featured-events-grid {
  display: flex;
  gap: 6rem;
  padding: 40px;
  max-width: 1600px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

/* Event Card */
.event-card {
  background: #5d14f7;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease-in-out;
  text-align: center;
  width: 48%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Fix <a> tag issues - Make sure it doesn't break layout */
.event-card a {
  display: flex; /* Ensures flex behavior is maintained */
  flex-direction: column; /* Stacks image and content */
  text-decoration: none;
  color: inherit; /* Prevents default link colors */
  width: 100%;
  height: 100%;
}

/* Event Image (Background Image) */
.event-image {
  width: 100%;
  min-height: 200px; /* Ensures image doesn't shrink too much */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* Event Content Section */
.event-content {
  background: #5d14f7;
  color: white;
  padding: 20px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

/* Prevent extra spacing in headings */
.event-content h3 {
  margin-bottom: 0;
  text-transform: uppercase;
}

/* Register Now Button */
.event-button {
  display: inline-block;
  background: #efea5a;
  color: #000;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 9999px;
  cursor: pointer;
  border: 3px solid #efea5a;
  transition: all 0.2s ease-in-out;
  align-self: center; /* Center button */
}

.event-card:hover {
  /* transform: translateY(-10px); */
  transform: scale(1.07);
}

/* Button Hover Effect - Parent Card Hover */
.event-card:hover .event-button {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .featured-events-grid {
    flex-direction: column;
    align-items: center;
  }
  .event-card {
    width: 90%;
    max-width: 500px;
  }
}

@media (min-width: 567px) {
  .event-image {
    min-height: 300px;
  }
}
