/* Section and card should be full-width */
section.eventCard,
.eventCard {
  display: flex;
  flex-direction: column;
  background-color: var(--light);
  border-radius: 8px;
  padding: 0;
  width: 100%;
  max-width: 414.023px;
  box-sizing: border-box;
  min-height: 550px;
}

@media screen and (max-width: 768px) {
  section.eventCard,
  .eventCard {
    max-width: 100%;
  }
}

.eventCard__title, .eventCard__category{
    margin-top: 0px;
  height; 24.500px;
    margin-bottom: 6px;
}

/* Image Wrapper */
.eventCard__img {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
}

/* Image itself */
.eventCard__img img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.3s ease, border-radius 0.3s ease;
  width: 100%;
  opacity: 1 !important;       /* prevents fade */
  filter: none !important;     /* ensures no fade or blur */
}

/* Hover effect */
.eventCard__img:hover img {
  transform: scale(1.1);
}

.eventCard__img:hover {
  border-radius: 0 !important;
}


/* Description */
.eventCard__description {
  font-size: 18px !important;
  margin: 0.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;       /* Number of lines to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;}
  padding-bottom: 8px;
}

/* Date and Duration */
.eventCard__date,.eventCard__duration , .eventCard__date span,
.eventCard__duration span, span {
  font-size: 18px !important;
}

/* Link Text below card */
.eventCard__linkText {
  font-size: 18px;
  text-decoration: underline;
  display: inline-block;
  margin-top: 16px;
  transition: font-weight 0.3s ease;
  color: #272727;
}

.eventCard__linkText:hover {
  font-weight: bold;
}

/* Remove side padding */
.eventCard__content {
  padding-top: 24px;
  padding-left: 0;
  padding-right: 0;
}