/* training-list-style.css */
/* Overall container */
.training-path {
  font-family: Arial, sans-serif;
  padding: 20px;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.training-path h1 {
  text-align: center;
  margin-bottom: 30px;
}

/* Admin-only buttons */
.controls-container {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}
.control-button {
  background-color: #1f4a71;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}
.control-button:hover {
  background-color: #16324d;
}

/* Grid layout */
.training-grid {
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.training-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 stages by default */
  gap: 20px;
  align-items: start;
}
.training-row.stage-headings {
  grid-template-columns: repeat(3, 1fr);
}
.stage-title {
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
  font-size: 14px;
  color: #444;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Topic header */
.topic-header {
  margin: 20px 0 5px;
  text-align: center;
}
.topic-title {
  display: inline-block;
  font-weight: bold;
  color: #3c8aa4;
  font-size: 2.2rem;
}

/* Training block styling */
.training-block {
  background-color: #b2d235;
  border-radius: 5px;
  padding: 15px;
  cursor: pointer;
  margin-bottom: 10px;
}
.training-block:hover {
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.training-block-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}
.training-block-item {
  background-color: #1f4a71;
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 5px;
  padding: 5px;
  text-align: center;
  border-radius: 3px;
}
.training-block-item:last-child {
  margin-bottom: 0;
}

/* Modal styling */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
  background-color: #fff;
  color: #000000;
  margin: 5% auto;
  padding: 20px;
  border-radius: 5px;
  width: 900px;
  position: relative;
  font-family: Arial, sans-serif;
}
.close-modal {
  position: absolute;
  top: 10px;
  right: 5px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
.register-button {
  background-color: #1f4a71;
  font-size: 18px;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}
.register-button:hover {
  background-color: #16324d;
}
.modal-section-title {
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 5px;
}
.modal-section-list {
  margin-left: 20px;
  list-style: disc;
}

/* Form styling */
#trainingFormModal form label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}
#trainingFormModal form input,
#trainingFormModal form select,
#trainingFormModal form textarea {
  width: 100%;
  padding: 6px;
  margin-top: 5px;
}
