.workshop-carousel-container {
  height: 350px;
  background: #f4f3f3;
}

/* carousel */

.workshop-carousel-container .carousel {
  height: 315px;
  max-height: 315px;
  padding: initial;
  margin: initial;
}

.workshop-carousel-container .carousel-inner {
  height: 100%;
}

.workshop-carousel-container .carousel-control-prev,
.workshop-carousel-container .carousel-control-next {
  width: 8%;
}

/* workshops header */

.events-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  margin-bottom: 0.75rem;
  font-family:
    'ComeniaSansCondBold', 'ComeniaSansCondRegular', 'Lucida Grande',
    'Lucida Sans Unicode', Arial, sans-serif;
}

.events-header h2 {
  font-size: 1rem;
}

.btn-see-all {
  font-size: 0.75rem;
}

/* workshops card */

.event-card {
  background: #ffffff;
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 10px;
  height: 100%;
}

.event-date {
  font-size: 1.55rem;
  font-weight: bold;
  line-height: 1.6rem;
}

.event-month,
.event-year {
  font-size: 0.75rem;
  font-weight: bold;
  line-height: 0.85rem;
}

.event-details-container {
  height: 11rem;
}

.event-label {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.55rem;
  font-weight: bold;
  border-radius: 15px;
  margin: 0.5rem 0;
  max-height: 100px;
}

.label-workshop {
  background-color: #5da899;
}

.label-lecture {
  background-color: #94cbec;
}

.label-course {
  background-color: #dccd7d;
}

.event-title {
  font-weight: bold;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;

  line-height: 0.9rem;
  height: 5rem;
  max-height: 5rem;
  overflow: hidden;

  /* overflow: hidden;
  text-overflow: ellipsis;
  text-wrap: nowrap; */
}

.event-time {
  white-space: nowrap;
  overflow-x: hidden;
  font-weight: bold;
}

.event-time,
.event-location {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

/* Mobile: one compact card per row */
@media (max-width: 768px) {
  .workshop-carousel-container,
  .workshop-carousel-container .carousel {
    height: auto;
    max-height: none;
  }

  .workshop-carousel-container .carousel-item .row {
    row-gap: 0.75rem;
  }

  .event-card {
    display: grid;
    grid-template-columns: 3.25rem 1fr auto;
    grid-template-rows: auto auto 1fr;
    column-gap: 0.75rem;
    align-items: start;
    padding: 12px 10px;
  }

  .event-date {
    grid-area: 1 / 1 / 2 / 2;
  }

  .event-month {
    grid-area: 2 / 1 / 3 / 2;
  }

  .event-year {
    grid-area: 3 / 1 / 4 / 2;
  }

  .event-details-container {
    grid-area: 1 / 2 / 4 / 3;
    height: auto;
  }

  .event-label {
    margin: 0 0 0.35rem;
  }

  .event-title {
    height: auto;
    max-height: 2.2rem;
    line-height: 1.1rem;
    margin-bottom: 0.35rem;
  }

  .event-card .learn-more {
    grid-area: 1 / 3 / 4 / 4;
    align-self: center;
    margin-top: 0;
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

.learn-more {
  margin-top: 5px;
  background: #ffd600;
  color: black;
  font-weight: bold;
  border-radius: 4px;
  padding: 12px 10px;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
  text-wrap: nowrap;
}
