.training-carousel-wrapper .training-link {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  height: 100%;
}

.training-carousel-wrapper .training-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.training-carousel-wrapper .training-image {
  position: relative;
  overflow: hidden;
}

.training-carousel-wrapper .training-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.training-carousel-wrapper .training-content {
  padding: 30px;
  border: 1px solid var(--primary-color, #000000);
  border-radius: 20px;
  height: 100%;
}

.training-carousel-wrapper .training-title {
  font-size: 1.5rem;
  margin: 0 0 20px;
  line-height: 1.2;
  height: calc(1.2em * 1);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.training-carousel-wrapper .training-excerpt {
  font-size: 0.9em;
  line-height: 1.2;
  color: #000;
  height: calc(1.2em * 9);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 9;
  text-overflow: ellipsis;
}

.training-carousel-wrapper .training-item {
  padding: 10px !important;
  min-height: 100%;
}

.training-carousel-wrapper .training-categories {
  line-height: 1.1;
  margin: 0 0 20px;
  height: calc(1.1em * 2);
}
