/* Diagram system for strategy-led sections */
.diagram-opportunity .opportunity-grid,
.diagram-college .feature-grid,
.diagram-journey .journey {
  position: relative;
  gap: 28px;
  border: 0;
  background: transparent;
}

.diagram-opportunity .opportunity-grid::before,
.diagram-college .feature-grid::before,
.diagram-journey .journey::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50px;
  left: 8%;
  right: 8%;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--gold));
}

/* High School opportunity: three connected outcomes */
.diagram-opportunity {
  overflow: hidden;
  background:
    radial-gradient(circle at 91% 13%, rgba(26,159,192,.16) 0 110px, transparent 112px),
    var(--navy);
}

.diagram-opportunity .opportunity {
  position: relative;
  z-index: 1;
  min-height: 285px;
  padding: 92px 32px 32px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 24px;
  background: rgba(255,255,255,.055);
}

.diagram-opportunity .opportunity .number {
  position: absolute;
  top: 15px;
  left: 28px;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 7px solid var(--navy);
  border-radius: 50%;
  background: var(--cyan);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.diagram-opportunity .opportunity:nth-child(2) .number { background: var(--green); }
.diagram-opportunity .opportunity:nth-child(3) .number { background: var(--gold); color: var(--navy); }
.diagram-opportunity .opportunity h3 { margin: 34px 0 10px; }

.diagram-opportunity .opportunity:not(:last-child)::after,
.diagram-college .feature:not(:last-child)::after,
.diagram-journey .journey-item:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 44px;
  right: -21px;
  width: 13px;
  height: 13px;
  border-top: 4px solid var(--green);
  border-right: 4px solid var(--green);
  transform: rotate(45deg);
}

/* College Credit: a four-stage implementation sequence */
.diagram-college .diagram-key {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 44px 0 -30px;
  text-align: center;
}

.diagram-college .diagram-key span {
  color: #167f99;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.diagram-college .feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: credit-step;
}

.diagram-college .feature-grid::before { top: 39px; }

.diagram-college .feature {
  position: relative;
  z-index: 1;
  min-height: 300px;
  padding: 90px 25px 28px;
  border-radius: 24px;
  counter-increment: credit-step;
}

.diagram-college .feature::before {
  content: "0" counter(credit-step);
  position: absolute;
  top: 0;
  left: 50%;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  transform: translate(-50%, -2px);
  border: 8px solid var(--mist);
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}

.diagram-college .feature:nth-child(2)::before { background: var(--cyan); }
.diagram-college .feature:nth-child(3)::before { background: var(--green); }
.diagram-college .feature:nth-child(4)::before { background: var(--gold); color: var(--navy); }
.diagram-college .feature h3 { margin-top: 24px; }

/* Shared hub-and-spoke diagrams */
.diagram-career .interest-grid,
.diagram-schools .feature-grid,
.diagram-higher .feature-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(240px,.78fr) minmax(0,1fr);
  grid-template-areas: "a hub b" "c hub d" "e hub f";
  gap: 18px 34px;
}

.diagram-schools .feature-grid,
.diagram-higher .feature-grid {
  grid-template-areas: "a hub b" "c hub d";
}

.diagram-hub {
  grid-area: hub;
  position: relative;
  z-index: 2;
  align-self: stretch;
  display: flex;
  min-height: 310px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 25px;
  border-radius: 999px;
  background: linear-gradient(150deg, var(--navy), var(--navy2));
  box-shadow: 0 22px 55px rgba(10,42,102,.2);
  color: #fff;
  text-align: center;
}

.diagram-hub::before,
.diagram-hub::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.diagram-hub::before { right: 100%; }
.diagram-hub::after { left: 100%; }

.diagram-hub small {
  color: var(--cyan);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.diagram-hub strong {
  margin: 13px 0;
  font: 800 1.65rem/1.08 "Manrope", sans-serif;
}

.diagram-hub span { color: #cad8e3; font-size: .88rem; }

.diagram-career .interest,
.diagram-schools .feature,
.diagram-higher .feature {
  position: relative;
  z-index: 1;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.diagram-career .interest:nth-of-type(1),
.diagram-schools .feature:nth-of-type(1),
.diagram-higher .feature:nth-of-type(1) { grid-area: a; }
.diagram-career .interest:nth-of-type(2),
.diagram-schools .feature:nth-of-type(2),
.diagram-higher .feature:nth-of-type(2) { grid-area: b; }
.diagram-career .interest:nth-of-type(3),
.diagram-schools .feature:nth-of-type(3),
.diagram-higher .feature:nth-of-type(3) { grid-area: c; }
.diagram-career .interest:nth-of-type(4),
.diagram-schools .feature:nth-of-type(4),
.diagram-higher .feature:nth-of-type(4) { grid-area: d; }
.diagram-career .interest:nth-of-type(5) { grid-area: e; }
.diagram-career .interest:nth-of-type(6) { grid-area: f; }

.diagram-career .interest { border: 1px solid rgba(255,255,255,.08); box-shadow: 0 15px 35px rgba(10,42,102,.08); }
.diagram-career .interest:nth-of-type(3n+2) { background: var(--navy2); }
.diagram-career .interest:nth-of-type(3n+3) { background: #0c487b; }

.diagram-schools .audience-list {
  justify-content: center;
  margin: 32px auto 55px;
}

.diagram-schools .feature,
.diagram-higher .feature { box-shadow: 0 14px 32px rgba(10,42,102,.06); }

.diagram-schools .diagram-hub { background: linear-gradient(150deg, var(--navy), #0d527e); }
.diagram-higher .diagram-hub { background: linear-gradient(150deg, var(--navy), #157d87); }

/* Complete Pathways: student journey timeline */
.diagram-journey .journey { gap: 20px; margin-top: 70px; }
.diagram-journey .journey::before { top: 37px; }

.diagram-journey .journey-item {
  position: relative;
  z-index: 1;
  min-height: 230px;
  padding: 88px 22px 26px;
  text-align: center;
  box-shadow: 0 14px 32px rgba(10,42,102,.06);
}

.diagram-journey .journey-item span {
  position: absolute;
  top: 0;
  left: 50%;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  transform: translateX(-50%);
  border: 8px solid var(--mist);
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
}

.diagram-journey .journey-item:nth-child(2) span { background: var(--cyan); }
.diagram-journey .journey-item:nth-child(3) span { background: #278f9b; }
.diagram-journey .journey-item:nth-child(4) span { background: var(--green); }
.diagram-journey .journey-item:nth-child(5) span { background: var(--gold); color: var(--navy); }

@media (max-width: 1050px) {
  .diagram-college .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .diagram-college .diagram-key { display: none; }
  .diagram-college .feature-grid::before,
  .diagram-college .feature:not(:last-child)::after { display: none; }

  .diagram-career .interest-grid,
  .diagram-schools .feature-grid,
  .diagram-higher .feature-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: none;
  }
  .diagram-career .interest,
  .diagram-schools .feature,
  .diagram-higher .feature,
  .diagram-hub { grid-area: auto !important; }
  .diagram-hub { grid-column: 1 / -1; min-height: 220px; border-radius: 32px; }
  .diagram-hub::before,
  .diagram-hub::after { display: none; }
}

@media (max-width: 720px) {
  .diagram-opportunity .opportunity-grid,
  .diagram-college .feature-grid,
  .diagram-journey .journey,
  .diagram-career .interest-grid,
  .diagram-schools .feature-grid,
  .diagram-higher .feature-grid { grid-template-columns: 1fr; gap: 20px; }

  .diagram-opportunity .opportunity-grid::before,
  .diagram-journey .journey::before {
    top: 35px;
    bottom: 35px;
    left: 35px;
    right: auto;
    width: 4px;
    height: auto;
    background: linear-gradient(180deg, var(--cyan), var(--green), var(--gold));
  }

  .diagram-opportunity .opportunity { min-height: 0; padding: 28px 24px 28px 96px; }
  .diagram-opportunity .opportunity .number { top: 50%; left: 0; transform: translate(-2px,-50%); }
  .diagram-opportunity .opportunity h3 { margin-top: 0; }
  .diagram-opportunity .opportunity:not(:last-child)::after,
  .diagram-journey .journey-item:not(:last-child)::after { display: none; }

  .diagram-college .feature { min-height: 0; padding: 28px 24px 28px 92px; }
  .diagram-college .feature::before { top: 50%; left: 0; transform: translate(-2px,-50%); border-color: var(--mist); }
  .diagram-college .feature h3 { margin-top: 0; }

  .diagram-hub { grid-column: auto; min-height: 220px; }

  .diagram-journey .journey-item { min-height: 0; padding: 28px 24px 28px 94px; text-align: left; }
  .diagram-journey .journey-item span { top: 50%; left: 0; transform: translate(-2px,-50%); }
}
