
.em-event.em-item {
  position: relative;
  display: flex;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #ffffff;
  margin-bottom: 24px;
  box-shadow: -4px -4px 12px #1a1a1a1a;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.em-category-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6px;
  background-color: #37bccf;
  left: 250px;
  border-radius: 0 3px 3px 0;
}
.em-item-image {
  flex: 0 0 250px;
  position: relative;
}
p.em-item-meta-line {
  font-weight: 500 !important;
  color: #7a7a7a
}

.em-item-info {
  flex-grow: 1;
  padding: 20px 30px 20px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.em-event-categories {
  margin-left: 0;
  padding-left: 0;
}
.em-item-info h3.em-item-title a {
  color: #7a7a7a;
}
h3.events-label {
  color: #7a7a7a;
}

.em-item-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 8px;
}


/* mobile styles*/
@media (max-width: 768px) {
  .em-event.em-item {
    flex-direction: column;
    position: static;
  }

  .em-category-line {
    position: static;
    width: 100%;
    height: 6px;
    border-radius: 0;
    margin: 0 !important;
    background-color: #37bccf;
    padding-top: 0 !important;
  }

  .em-item-image {
    display: block;
    flex: none;
    width: 100%;
    height: auto; /* overrides previous fixed height */
    margin-bottom: 0 !important;
  }

  .em-item-image img {
    display: block;
    width: 100%;
    object-fit: contain;
    height: auto;
    max-height: 180px;
    margin-bottom: 0 !important;
  }

  .em-item-info {
    padding: 15px 20px 20px 20px;
  }

  .em-item-title {
    font-size: 1.25em;
  }

  .em-item-desc {
    font-size: 0.95em;
  }

  .em-item-actions .em-item-read-more {
    padding: 8px 14px;
    font-size: 17px;
  }
}
