/* ============================================
   FOR INDIVIDUALS — Page-Specific Styles
   ============================================ */

/* —— Shared Helpers —— */
.individuals-section--soft { background: var(--color-bg-soft); }
.individuals-section__action { margin-top: var(--space-xl); }
.individuals-microcopy { margin: var(--space-sm) auto 0; max-width: 680px; color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-normal); }

/* —— Hero —— */
.individuals-hero__microcopy { max-width: 620px; margin: var(--space-md) 0 0; color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-normal); }

/* —— How It Works / Journey —— */

.individuals-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1060px;
  margin: var(--space-xl) auto 0;
  padding: 0;
  list-style: none;
}

/* Horizontal journey line */
.individuals-timeline::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--color-border);
  z-index: 0;
}

.individuals-timeline .timeline__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0 var(--space-md);
  text-align: center;
}

.individuals-timeline .timeline__step::before {
  display: none;
}

.individuals-timeline .timeline__marker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.individuals-timeline .timeline__content {
  max-width: 190px;
  padding: 0;
}

.individuals-timeline .timeline__title {
  margin: 0 0 var(--space-xs);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
}

.individuals-timeline .timeline__desc {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

/* —— Commitment —— */
.commitment-track { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--space-md); margin-top: var(--space-xl); }
.commitment-step { padding: var(--space-lg); background: var(--color-bg); border: 1px solid var(--color-border-light); border-radius: var(--radius-lg); }
.commitment-step__time { display: inline-flex; margin-bottom: var(--space-sm); padding: 6px 12px; border-radius: var(--radius-full); background: var(--color-primary-light); color: var(--color-primary); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.commitment-step h3 { margin: 0 0 var(--space-xs); font-size: var(--text-lg); font-weight: var(--weight-semibold); }
.commitment-step p { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-normal); }

/* —— Challenge Grid —— */
.challenge-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-md); margin-top: var(--space-xl); }
.challenge-card { padding: var(--space-lg); background: var(--color-bg); border: 1px solid var(--color-border-light); border-radius: var(--radius-lg); transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base); }
.challenge-card:hover { transform: translateY(-3px); border-color: var(--color-border); box-shadow: var(--shadow-md); }
.challenge-card h3 { margin: 0 0 var(--space-xs); font-size: var(--text-lg); font-weight: var(--weight-semibold); }
.challenge-card p { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-normal); }

/* —— Skills Opportunities —— */

.skills-opportunities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.skills-opportunities-grid .activity-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.skills-opportunities-grid .activity-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.skills-opportunities-grid .activity-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.skills-opportunities-grid .activity-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skills-opportunities-grid .activity-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--space-md);
}

.skills-opportunities-grid .activity-card__body .btn {
  margin-top: auto;
}

.skills-opportunities__loading {
  grid-column: 1 / -1;
  margin: 0;
  padding: var(--space-xl);
  color: var(--color-text-muted);
  text-align: center;
}

/* —— Matching / Skills Profile —— */
.match-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: 0;
  color: var(--color-text);
}
.match-panel h2 { color: var(--color-text); }
.match-panel__content p { max-width: 560px; margin: var(--space-md) 0 0; color: var(--color-text-muted); font-size: var(--text-lg); line-height: var(--leading-normal); }
#matching [data-open-signup] {
    display: inline-flex;
    margin-top: 24px;
}
.match-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: var(--space-md);
  align-items: stretch;
}
.match-flow__item {
  height: 100%;
  min-height: 190px;
  padding: var(--space-lg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}
.match-flow__item--accent { border-color: var(--color-primary-light); background: var(--color-primary-light); }
.match-flow__item strong,
.match-flow__item span { display: block; }
.match-flow__item strong { color: var(--color-text); font-size: var(--text-lg); }
.match-flow__role { margin-top: var(--space-xs); color: var(--color-text-muted); font-size: var(--text-sm); }
.match-flow__chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-lg); }
.match-flow__chips span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: var(--color-bg-soft);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}
.match-flow__item--accent .match-flow__chips span { background: white; color: var(--color-primary); }
.match-flow__arrow {
  position: relative;
  display: inline-flex;
  align-self: center;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  box-shadow: var(--shadow-md);
}
.match-flow__arrow::before,
.match-flow__arrow::after {
  position: absolute;
  color: var(--color-primary);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: 1;
}
.match-flow__arrow::before { content: '→'; right: calc(100% + var(--space-xs)); }
.match-flow__arrow::after { content: '←'; left: calc(100% + var(--space-xs)); }

/* —— Defined Opportunity Quality —— */
.defined-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.defined-item { display: flex; gap: var(--space-md); align-items: flex-start; padding: var(--space-md); border-bottom: 1px solid var(--color-border-light); }
.defined-item__number { color: var(--color-primary); font-size: var(--text-sm); font-weight: var(--weight-bold); }
.defined-item h3 { margin-bottom: var(--space-xs); font-size: var(--text-lg); }
.defined-item p { color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-normal); }

/* —— Reassurance —— */
.concerns-list { display: grid; gap: var(--space-sm); margin-top: var(--space-xl); }
.concern { padding: var(--space-md) var(--space-lg); background: var(--color-bg); border: 1px solid var(--color-border-light); border-radius: var(--radius-lg); }
.concern h3 { margin: 0 0 6px; font-size: var(--text-base); font-weight: var(--weight-semibold); }
.concern p { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-normal); }

/* —— Other Ways —— */
.other-ways-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-lg); margin-top: var(--space-xl); }
.other-way { display: flex; flex-direction: column; align-items: flex-start; padding: var(--space-lg); border: 1px solid var(--color-border-light); border-radius: var(--radius-lg); background: var(--color-bg); transition: transform var(--transition-base), box-shadow var(--transition-base); }
.other-way:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.other-way h3 { margin: 0 0 var(--space-xs); font-size: var(--text-lg); font-weight: var(--weight-semibold); }
.other-way p { flex: 1; margin: 0 0 var(--space-md); color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-normal); }
.other-way__eyebrow { display: inline-flex; margin-bottom: var(--space-sm); padding: 5px 10px; border-radius: var(--radius-full); background: var(--color-primary-light); color: var(--color-primary); font-size: var(--text-xs); font-weight: var(--weight-semibold); }
.other-way--featured { border-color: var(--color-primary); }

/* —— Final CTA —— */
.individuals-final-cta__microcopy { margin: var(--space-md) auto 0; color: rgba(255,255,255,.72); font-size: var(--text-sm); line-height: var(--leading-normal); }

/* —— Existing / Legacy Individuals Components —— */
.ways-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-lg); }
.ways-card { background: var(--color-bg); border: 1px solid var(--color-border-light); border-radius: var(--radius-lg); padding: var(--space-lg); text-align: center; transition: all var(--transition-base); }
.ways-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ways-card__icon { width: 56px; height: 56px; border-radius: var(--radius-lg); background: var(--color-primary-light); display: flex; align-items: center; justify-content: center; color: var(--color-primary); margin-inline: auto; margin-bottom: var(--space-sm); }
.ways-card__title { font-size: var(--text-lg); font-weight: var(--weight-semibold); margin-bottom: var(--space-xs); }
.ways-card__desc { font-size: var(--text-sm); color: var(--color-text-muted); line-height: var(--leading-normal); margin-bottom: var(--space-md); }

.feature-split { display: flex; gap: var(--space-2xl); align-items: center; }
.feature-split__content { flex: 1; }
.feature-split__desc { font-size: var(--text-base); color: var(--color-text-muted); line-height: var(--leading-normal); margin-bottom: var(--space-md); }
.feature-split__list { list-style: disc; padding-left: var(--space-md); margin-bottom: var(--space-lg); }
.feature-split__list li { font-size: var(--text-sm); color: var(--color-text-muted); padding: 3px 0; }
.feature-split__image { flex: 1; border-radius: var(--radius-xl); overflow: hidden; }
.feature-split__image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

.skills-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); }
.skill-chip { font-size: var(--text-sm); font-weight: var(--weight-medium); padding: 8px 20px; border-radius: var(--radius-full); border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text); transition: all var(--transition-fast); }
.skill-chip:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-light); }

.cta-registration__inner { text-align: center; max-width: 600px; margin-inline: auto; }
.cta-registration__title { margin-bottom: var(--space-sm); }
.cta-registration__desc { font-size: var(--text-lg); color: var(--color-text-muted); margin-bottom: var(--space-lg); }

.btn--secondary-light { background: rgba(255,255,255,.15); color: white; border: 1.5px solid rgba(255,255,255,.4); }
.btn--secondary-light:hover { background: rgba(255,255,255,.25); transform: translateY(-1px); }

/* —— Responsive —— */
@media (max-width: 968px) {
  .skills-opportunities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commitment-track { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .challenge-grid, .other-ways-grid, .ways-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .match-panel { grid-template-columns: 1fr; gap: var(--space-xl); }
}

@media (max-width: 768px) {
  .feature-split { flex-direction: column !important; }

  .match-flow {
    grid-template-columns: 1fr;
  }

  .match-flow__arrow {
    justify-self: center;
  }

  .match-flow__arrow::before {
    content: '↑';
    right: auto;
    bottom: calc(100% + var(--space-xs));
    left: 50%;
    transform: translateX(-50%);
  }

  .match-flow__arrow::after {
    content: '↓';
    top: calc(100% + var(--space-xs));
    left: 50%;
    transform: translateX(-50%);
  }

  .defined-grid {
    grid-template-columns: 1fr;
  }

  .match-panel { padding: var(--space-xl); }

  .individuals-timeline {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 560px;
  }

  .individuals-timeline::before {
    display: none;
  }

  .individuals-timeline .timeline__step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: var(--space-md);
    align-items: start;
    padding: 0;
    text-align: left;
  }

  .individuals-timeline .timeline__marker {
    width: 40px;
    height: 40px;
    margin: 0;
  }

  .individuals-timeline .timeline__content {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .skills-opportunities-grid { grid-template-columns: 1fr; }
  .commitment-track, .challenge-grid, .other-ways-grid { grid-template-columns: 1fr; }
  .individuals-hero__microcopy { margin-top: var(--space-sm); }
}

@media (max-width: 480px) {
  .ways-grid { grid-template-columns: 1fr; }
}
