/* Training courses hydrate + video modal */
[data-wscit-training-courses]:not(.is-hydrated) {
  opacity: 0;
}

[data-wscit-training-courses].is-hydrated {
  opacity: 1;
  transition: opacity 0.2s ease;
}

button.trn-course__link {
  appearance: none;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0b78d0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

button.trn-course__link:hover {
  text-decoration: underline;
}

.trn-course__link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}

.trn-video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.trn-video-modal.is-open {
  display: flex;
}

.trn-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.trn-video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.trn-video-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #1a1a1a;
  color: #fff;
}

.trn-video-modal__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.trn-video-modal__close {
  appearance: none;
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.trn-video-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.trn-video-modal__body {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}

.trn-video-modal__body video,
.trn-video-modal__body iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.trn-video-modal__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  color: #bbb;
  text-align: center;
  font-size: 14px;
}

body.trn-video-modal-open {
  overflow: hidden;
}
