/* =========================
   TRAINING MODAL – FIX
   ========================= */

.exercise-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;
}

.exercise-modal.hidden {
  display: none;
}

.exercise-modal-content {
  position: relative;
  background: #fff;
  border-radius: 14px;
  max-width: 650px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.exercise-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
}

.exercise-modal .warning {
  margin-top: 1rem;
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
}
/* =========================
   TRAINING – MODAL MEDIA
   ========================= */

.training-cover img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.training-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 1rem;
}

.training-description {
  margin: 0.8rem 0 1rem 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* --- Video --- */
.training-video {
  position: relative;
  padding-top: 56.25%;
  margin: 1rem 0;
  border-radius: 12px;
  overflow: hidden;
}

.training-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* --- Galleri --- */
.training-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.training-gallery img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.training-gallery img:hover {
  transform: scale(1.03);
}

/* Tips */
.training-tip {
  margin-top: 1rem;
  background: #eaf9ff;
  border-left: 4px solid #00a6ff;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
}

.training-program-group {
  margin-top: 1.2rem;
}

.training-program-exercise-list {
  list-style: none;
  padding-left: 0;
}

.training-program-exercise-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px dashed #ddd;
}
