:root {
  --training-ink: #162536;
  --training-muted: #607387;
  --training-accent: #0f766e;
  --training-accent-bright: #14b8a6;
  --training-surface: #f7fafc;
  --training-line: #d9e4ec;
}

.training-module-progress .progress,
#checklist-progress-bar {
  height: 0.75rem;
}

.training-module-progress {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--training-line);
  border-radius: 1rem;
  background: linear-gradient(135deg, #f8fbff, #eef8f7);
  box-shadow: 0 0.75rem 2rem rgba(22, 37, 54, 0.06);
}

.training-module-progress .progress {
  background-color: #dce8ee;
  border-radius: 999px;
}

.training-module-progress .progress-bar {
  background: linear-gradient(90deg, var(--training-accent), var(--training-accent-bright)) !important;
  border-radius: inherit;
}

.training-overview-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(45, 212, 191, 0.3), transparent 35%),
    linear-gradient(135deg, #162536 0%, #164e63 100%);
  box-shadow: 0 1.25rem 2.5rem rgba(22, 37, 54, 0.18);
}

.training-program {
  color: #b7d5da;
}

.training-module-badge {
  padding: 0.45rem 0.75rem;
  color: #ccfbf1;
  border: 1px solid rgba(204, 251, 241, 0.4);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.training-overview-title {
  max-width: 42rem;
  margin: 1.5rem 0 0.5rem;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.training-overview-lead {
  max-width: 40rem;
  margin-bottom: 1.75rem;
  color: #d7edf0;
}

.training-overview-hero .training-eyebrow {
  color: #5eead4;
}

.training-meta-label {
  display: block;
  margin-bottom: 0.2rem;
  color: #9fc2ca;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.training-overview-hero strong {
  color: #fff;
}

.training-topic-dashboard {
  --dashboard-ink: #162536;
  --dashboard-muted: #607387;
  color: var(--dashboard-ink);
}

.training-course-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5rem;
  gap: 1.25rem 2rem;
  align-items: center;
  margin: 1.5rem 0 2.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: #fff;
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 90% 15%, rgba(45, 212, 191, 0.3), transparent 30%),
    linear-gradient(120deg, #162536, #164e63 65%, #0f766e);
  box-shadow: 0 1.25rem 2.5rem rgba(22, 37, 54, 0.18);
}

.training-course-hero .training-eyebrow,
.training-exam-panel .training-eyebrow {
  color: #5eead4;
}

.training-course-hero h2,
.training-exam-panel h2 {
  margin: 0.35rem 0;
  color: #fff;
}

.training-course-hero p {
  max-width: 40rem;
  margin-bottom: 0;
  color: #d7edf0;
}

.training-course-progress {
  grid-column: 1 / -1;
}

.training-course-progress .progress {
  height: 0.8rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.training-course-progress .progress-bar {
  background: linear-gradient(90deg, #5eead4, #fbbf24) !important;
  border-radius: inherit;
}

.training-course-progress [data-progress-text] {
  margin-top: 0.5rem;
  color: #c8e4e6;
}

.training-course-progress .progress-bar,
.training-topic-progress .progress-bar {
  transition: width 350ms ease;
}

.training-course-progress + .training-section-heading {
  margin-top: 0;
}

.training-course-progress .progress {
  min-width: 0;
}

.training-course-progress {
  min-width: 0;
}

.training-course-progress .progress {
  width: 100%;
}

.training-course-progress [data-progress-text] {
  white-space: normal;
}

.training-course-progress {
  position: relative;
}

.training-course-progress::before {
  position: absolute;
  right: 0;
  bottom: 0;
  color: rgba(255, 255, 255, 0.75);
  content: "COURSE COMPLETION";
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.training-course-progress-ring {
  display: grid;
  width: 5rem;
  height: 5rem;
  place-items: center;
  border: 0.35rem solid rgba(94, 234, 212, 0.35);
  border-top-color: #fbbf24;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.1rem;
  font-weight: 800;
}

.training-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin: 0 0 0.85rem;
}

.training-section-heading h2 {
  margin: 0.35rem 0 0;
}

.training-module-count {
  padding: 0.35rem 0.7rem;
  color: #0f766e;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  background: #f0fdfa;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.training-module-row {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) minmax(10rem, 14rem) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border-color: var(--training-line);
  border-left: 0.25rem solid #99f6e4;
  background: #fff;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
  cursor: pointer;
}

.training-module-row:hover {
  border-left-color: #0f766e;
  background: #f8fbfc;
  transform: translateX(0.15rem);
}

.training-module-row:focus-visible {
  border-left-color: #f59e0b;
  outline: 0.2rem solid rgba(245, 158, 11, 0.35);
  outline-offset: -0.2rem;
}

.training-module-row .training-module-info,
.training-module-row .training-module-progress,
.training-module-row .training-module-action {
  position: relative;
  z-index: 1;
}

.training-module-index {
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.training-module-info {
  min-width: 0;
}

.training-module-info h3 {
  margin-bottom: 0.3rem !important;
}

.training-module-info h3 a {
  color: #164e63;
  text-decoration: none;
}

.training-module-info h3 a:hover {
  color: #0f766e;
  text-decoration: underline;
}

.training-module-info p {
  color: var(--dashboard-muted);
}

.training-module-row .training-module-progress {
  min-width: 0;
}

.training-module-row .training-module-progress .progress {
  height: 0.55rem;
  background: #e5eef2;
  border-radius: 999px;
}

.training-module-row .training-module-progress .progress-bar {
  background: linear-gradient(90deg, #0f766e, #2dd4bf) !important;
  border-radius: inherit;
}

.training-module-row .training-module-progress [data-progress-text] {
  color: var(--dashboard-muted) !important;
}

.training-module-action {
  white-space: nowrap;
}

.training-exam-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  color: #fff;
  border-radius: 1rem;
  background: linear-gradient(120deg, #164e63, #312e81);
  box-shadow: 0 0.75rem 2rem rgba(49, 46, 129, 0.18);
}

.training-exam-panel p {
  color: #dbeafe;
}

.training-exam-panel .btn-primary {
  flex-shrink: 0;
  color: #172554;
  border-color: #fbbf24;
  background-color: #fbbf24;
}

.training-exam-placeholder {
  flex-shrink: 0;
  padding: 0.55rem 0.8rem;
  color: #dbeafe;
  border: 1px solid rgba(219, 234, 254, 0.4);
  border-radius: 0.5rem;
  font-size: 0.85rem;
}

.training-subtopics-header {
  margin-top: 1.5rem;
}

.training-eyebrow {
  display: block;
  color: var(--training-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.training-subtopic-panel {
  overflow: hidden;
}

.training-subtopic-panel > summary {
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) minmax(10rem, 12rem) auto;
  align-items: center;
  gap: 1.25rem;
  padding: 0.9rem 1.15rem;
  cursor: pointer;
  color: var(--training-ink);
  list-style: none;
}

.training-subtopic-label {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.training-subtopic-badge {
  box-sizing: border-box;
  width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.training-subtopic-title {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.training-subtopic-action {
  color: var(--training-muted);
  font-size: 0.875rem;
  text-align: right;
  white-space: nowrap;
}

.training-subtopic-panel > summary::-webkit-details-marker {
  display: none;
}

.training-subtopic-panel > summary::after {
  color: var(--training-accent);
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
}

.training-subtopic-panel[open] > summary {
  border-bottom: 1px solid var(--training-line);
  background-color: #f8fbfc;
}

.training-subtopic-panel[open] > summary::after {
  content: "−";
}

.training-detail-card {
  overflow: hidden;
  border: 1px solid var(--training-line);
  border-radius: 0.75rem;
  background-color: #fff;
}

.training-detail-card-heading {
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, #f3fbfa, #f8fbff);
}

.training-detail-tabs {
  padding: 0 1rem;
  border-bottom-color: var(--training-line);
}

.training-detail-tabs .nav-link {
  color: var(--training-muted);
  border-color: transparent;
  border-radius: 0.55rem 0.55rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.training-detail-tabs .nav-link:hover,
.training-detail-tabs .nav-link:focus-visible {
  color: var(--training-accent);
  border-color: var(--training-line) var(--training-line) transparent;
}

.training-detail-tabs .nav-link.active {
  color: var(--training-accent);
  border-color: var(--training-line) var(--training-line) #fff;
  background-color: #fff;
}

.training-detail-panel {
  padding: 1.15rem;
  animation: training-panel-in 180ms ease-out;
}

.training-strength-panel {
  padding: 1rem 1.15rem;
  border: 1px solid;
  border-radius: 0.65rem;
}

.training-strength-panel h4,
.training-strength-panel h5 {
  margin-top: 0;
}

.training-advantages {
  color: #087f5b;
  border-color: rgba(32, 201, 151, 0.55);
  background-color: rgba(32, 201, 151, 0.1);
}

.training-advantages h4,
.training-advantages h5 {
  color: #087f5b !important;
}

.training-disadvantages {
  color: #c92a2a;
  border-color: rgba(250, 82, 82, 0.5);
  background-color: rgba(250, 82, 82, 0.1);
}

.training-disadvantages h4,
.training-disadvantages h5 {
  color: #c92a2a !important;
}

.training-subtopic-panel {
  border: 1px solid var(--training-line);
  border-radius: 1rem;
  box-shadow: 0 0.75rem 1.75rem rgba(22, 37, 54, 0.06);
  animation: training-panel-in 180ms ease-out;
}

@keyframes training-panel-in {
  from { opacity: 0; transform: translateY(0.35rem); }
  to { opacity: 1; transform: translateY(0); }
}

.training-subtopics details > summary,
.training-hints details > summary {
  cursor: pointer;
}

.training-subtopics details[open] > summary,
.training-hints details[open] > summary {
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.training-case {
  border: 0;
  background-color: #152b3c;
}

.training-chart-panel {
  border: 1px solid #405363;
}

.training-chart-canvas {
  position: relative;
  min-height: 18rem;
}

.quiz-feedback {
  padding: 0;
}

.quiz-feedback:not(:empty) {
  padding: 0.75rem 1rem;
}

.training-next-steps {
  border-left-width: 0.35rem;
}

.training-subtopic-figure img {
  display: block;
  width: 100%;
  max-height: 12rem;
  object-fit: contain;
  background-color: #fff;
}

.training-subtopic-formula {
  overflow-wrap: anywhere;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
}

@media (max-width: 575.98px) {
  .training-chart-canvas {
    min-height: 15rem;
  }

  .training-subtopic-panel > summary {
    grid-template-columns: 1fr auto;
  }

  .training-subtopic-label {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .training-subtopic-badge {
    width: fit-content;
  }

  .training-subtopic-action {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
  }

  .training-subtopic-panel > summary::after {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .training-course-hero {
    grid-template-columns: 1fr;
  }

  .training-course-progress {
    grid-column: 1;
  }

  .training-course-progress::before {
    display: none;
  }

  .training-course-progress-ring {
    width: 4.25rem;
    height: 4.25rem;
  }

  .training-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .training-module-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .training-module-index {
    font-size: 0.68rem;
  }

  .training-module-action {
    width: 100%;
  }

  .training-exam-panel {
    align-items: stretch;
    flex-direction: column;
  }
}
