/* ==========================================================================
   Training Page (dedicated)
   ========================================================================== */

/* --- Programs overview --- */
/* ── Map-window pockets (match the homepage's Suppliers/Turnkey sections) ── */
.training-overview,
.training-formats,
.training-curriculum {
  position: relative;
  background: transparent;
  overflow: hidden;
}

/* Content sits above the map window, inset like the homepage map cards */
.training-overview .container,
.training-formats .container,
.training-curriculum .container {
  position: relative;
  z-index: 1;
  padding-left: 4rem;
  padding-right: 4rem;
}

/* First section (page hero) as a map pocket — kept centered */
.page-hero--pocket .container {
  padding-left: 4rem;
  padding-right: 4rem;
}

/* Drop the pocket below the fixed navbar so its top corners aren't clipped
   square by the navbar (same offset the homepage hero uses). */
.page-hero--pocket .map-window {
  top: calc(var(--navbar-height) + 1rem);
}

/* Training Tracks + Key Topics: fill the pocket light grey (like Trusted
   Suppliers) instead of showing the live map. */
.training-overview .map-window,
.training-curriculum .map-window {
  background: var(--bg-secondary);
}

.training-overview {
  padding: 4rem 0;
}

.training-overview .section-header {
  text-align: left;
  margin-bottom: 3rem;
}

.training-overview .section-subtitle {
  margin: 0;
}

/* --- Program cards (3-col) --- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 2px solid transparent;   /* turns accent on hover (matches homepage) */
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.program-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--accent-primary);
  box-shadow: 0 12px 40px var(--shadow-color);
}

.program-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: rgba(var(--accent-primary-rgb), 0.08);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.12);
}

.program-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent-primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.program-card:nth-child(2) .program-icon {
  background: rgba(var(--accent-primary-rgb), 0.08);
  border-color: rgba(var(--accent-primary-rgb), 0.12);
}
.program-card:nth-child(2) .program-icon svg { stroke: var(--accent-primary); }

.program-card:nth-child(3) .program-icon {
  background: rgba(var(--accent-dark-rgb), 0.08);
  border-color: rgba(var(--accent-dark-rgb), 0.12);
}
.program-card:nth-child(3) .program-icon svg { stroke: var(--accent-dark); }

.program-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.program-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.program-card .program-topics {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.program-topics li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.program-topics li svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-primary);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Delivery formats --- */
.training-formats {
  padding: 4rem 0;
}

.training-formats .section-header {
  text-align: left;
  margin-bottom: 3rem;
}

.training-formats .section-subtitle {
  margin: 0;
}

.formats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.format-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 2px solid transparent;   /* turns accent on hover (matches homepage) */
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.format-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--accent-primary);
  box-shadow: 0 12px 40px var(--shadow-color);
}

.format-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.format-card h3 svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-primary);
  fill: none;
  stroke-width: 2;
}

.format-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.format-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.format-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.format-features li svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-primary);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Curriculum highlights --- */
.training-curriculum {
  padding: 4rem 0;
}

.training-curriculum .section-header {
  text-align: left;
  margin-bottom: 3rem;
}

.training-curriculum .section-subtitle {
  margin: 0;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.curriculum-item {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 2px solid transparent;   /* turns accent on hover (matches homepage) */
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition);
  box-shadow: 0 2px 8px var(--shadow-color);
}

.curriculum-item:hover {
  transform: translateY(-3px);
  border-top-color: var(--accent-primary);
}

.curriculum-item svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent-primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 0.75rem;
}

.curriculum-item:nth-child(2) svg { stroke: var(--accent-primary); }
.curriculum-item:nth-child(3) svg { stroke: var(--accent-dark); }
.curriculum-item:nth-child(4) svg { stroke: var(--accent-primary); }

.curriculum-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.curriculum-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }
  .curriculum-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .formats-grid {
    grid-template-columns: 1fr;
  }
  .curriculum-grid {
    grid-template-columns: 1fr;
  }
}
