:root {
  --training-card-avatar-h: 62px;
  --training-card-avatar-w: 62px;
  --training-card-avatar-h-half: 31px;
  --training-card-hero-mobile-h: 210px;
  --training-card-hero-tablet-h: 125px;
  --training-card-hero-laptop-h: 172px;
  --training-card-hero-desktop-h: 204px;
  --training-card-hero-xl-desktop-h: 240px;
}

/* .training-card-page-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: space-between;
} */

.training-card-container {
  height: inherit;
}

.training-card {
  position: relative;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 0;
  background-color: #fff;
  transition: background-color 0.3s ease-in, border 0.3s ease-in;
}

.training-card button {
  background: none;
  border: none;
  padding: 0;
  text-align: start;
}

.training-card:hover {
  border: 1px solid #555;
  background-color: #efefef;
}

.training-card-hero {
  position: relative;
  height: var(--training-card-hero-mobile-h);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  overflow: hidden;
}
.training-card-hero img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
}

.training-card-avatar {
  position: absolute;
  top: calc(var(--training-card-hero-mobile-h) - var(--training-card-avatar-h-half));
  left: 40px;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 50%;
  height: 62px;
  width: 62px;
}

.training-card-avatar img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
}

.training-card-text-content {
  padding: 50px 30px 26px 30px;
}

.training-card-text-content h2 {
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 600;
  color: #000;
}

.training-card-text-content p {
  font-size: 0.875rem;
  line-height: 1.2;
  margin-bottom: 34px;
  color: #000;
}

.social-stats-area .social-stats {
  height: 24px;
  padding: 4px 0 0 10px;
  font-size: 14px;
  line-height: 0;
  color: #000;
}

.heart-icon,
.compress-icon {
  width: 24px;
  height: 24px;
}

/* this fix corrects an issue where if the modal is open the page shifts to the right. */
.modal-open[style] {
    padding-right: 0px !important;
}

.course-container .video {
  width: 100%;
  height: auto;
}

.course-container .video {
  width: 100%;
  height: auto;
}


.modal-avatar {
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 62px;
  height: 62px;
}

.modal-avatar img {
  width: 62px;
  height: 62px;
}

.modal-avatar-information {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-avatar-information p {
  line-height: 0;
  margin: 0 10px;
}

.course-assets a.course-links {
  color: #e4002b;
  transition: color 0.3s ease-in-out;
}

.course-assets a.course-links:hover {
  color: #555;
}


/* Small devices (landscape phones, 576px and up) */
/* @media (min-width: 576px) {
} */

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .training-card-hero {
    height: var(--training-card-hero-tablet-h);
  }
  .training-card-avatar {
    top: calc(var(--training-card-hero-tablet-h) - var(--training-card-avatar-h-half));
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .training-card-hero {
    height: var(--training-card-hero-laptop-h);
  }

  .training-card-avatar {
    top: calc(var(--training-card-hero-laptop-h) - var(--training-card-avatar-h-half));
  }

}

/* // X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .training-card-hero {
    height: var(--training-card-hero-desktop-h);
  }

  .training-card-avatar {
    top: calc(var(--training-card-hero-desktop-h) - var(--training-card-avatar-h-half));
  }
}

/* // XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .training-card-hero {
    height: var(--training-card-hero-xl-desktop-h);
  }

  .training-card-avatar {
    top: calc(var(--training-card-hero-xl-desktop-h) - var(--training-card-avatar-h-half));
  }
}
