/* Curriculum pathways and school leadership. Scoped to the updated pages. */
.pathways-section {
  padding: 96px 0;
  background: #fbf8f3;
  border-top: 1px solid #ece3da;
  scroll-margin-top: 120px;
}
.pathways-heading { max-width: 760px; margin-bottom: 44px; }
.pathways-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  grid-template-areas: "photo heading";
  align-items: stretch;
  margin-bottom: 32px;
  overflow: hidden;
  background: #612d53;
  border: 1px solid #e8e1e4;
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(61, 36, 48, .08);
}
.pathways-intro .pathways-heading {
  grid-area: heading;
  align-self: center;
  max-width: none;
  margin: 0;
  padding: 40px;
}
.pathways-intro .section-eyebrow { color: #eddb57; font-size: 12px; letter-spacing: .1em; }
.pathways-intro .pathways-heading h2 {
  color: #fff;
  font-size: clamp(28px, 2.7vw, 38px);
  line-height: 1.25;
}
.pathways-intro .pathways-heading h2 span { color: #eddb57; }
.pathways-intro .pathways-heading p { color: #f2e8ed; font-size: 15px; }
.pathways-photo {
  grid-area: photo;
  display: grid;
  align-content: center;
  min-width: 0;
  margin: 0;
  padding: 16px;
  background: #f5eee8;
}
.pathways-photo img { display: block; width: 100%; height: auto; border-radius: 10px; }
.section-eyebrow {
  display: block;
  margin-bottom: 14px;
  color: #853953;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.pathways-heading h2, .leadership-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.2;
}
.pathways-heading h2 span { color: #853953; }
.pathways-heading p, .leadership-heading p { margin: 0; color: #55505a; line-height: 1.8; }
.pathways-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pathway-card {
  --pathway-accent: #853953;
  --pathway-tint: #f8edf1;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid #e8e1e4;
  border-top: 4px solid var(--pathway-accent);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(61, 36, 48, .04);
}
.pathway-card--life { --pathway-accent: #166884; --pathway-tint: #edf6fa; }
.pathway-card--technology { --pathway-accent: #24724e; --pathway-tint: #edf6f0; }
.pathway-card--commerce { --pathway-accent: #71418a; --pathway-tint: #f5eff9; }
.pathway-card-header { display: flex; align-items: flex-start; gap: 12px; min-height: 94px; margin-bottom: 20px; }
.pathway-card-header > div { min-width: 0; }
.pathway-number {
  flex: 0 0 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pathway-tint);
  color: var(--pathway-accent);
  font-family: var(--title-font);
  font-size: 20px;
  font-weight: 700;
}
.pathway-card h3 { margin: 0 0 5px; font-size: 23px; color: var(--pathway-accent); }
.pathway-card-header p { margin: 0; font-size: 13px; line-height: 1.6; color: #625c64; }
.pathway-label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #625c64; }
.pathway-subjects { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; min-height: 112px; padding: 0; margin: 0 0 20px; list-style: none; }
.pathway-subjects li { max-width: 100%; padding: 7px 9px; background: var(--pathway-tint); border-radius: 6px; color: var(--pathway-accent); font-size: 13px; font-weight: 600; line-height: 1.5; }
.pathway-careers { flex: 1; border-top: 1px solid #eee8eb; padding-top: 20px; }
.pathway-careers p { margin: 0; color: #48434b; font-size: 14px; line-height: 1.85; }
.pathways-guidance { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 32px; padding: 26px 30px; background: #612d53; border-radius: 12px; }
.pathways-guidance h3 { margin: 0 0 5px; color: #fff; font-size: 21px; }
.pathways-guidance p { margin: 0; color: #f0e5ed; font-size: 14px; }
.pathways-guidance a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 12px; padding: 13px 20px; border-radius: 6px; background: #eddb57; color: #402139; font-weight: 700; font-size: 14px; }
.pathways-guidance a:hover { background: #fff; }
.pathways-guidance a:focus-visible, .leadership-link:focus-visible { outline: 3px solid #166884; outline-offset: 5px; }
.leadership-section, .leadership-message { padding: 80px 0 90px; background: #fbf8f3; }
.leadership-heading { max-width: 810px; margin-bottom: 38px; }
.leadership-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.leadership-card { display: grid; grid-template-columns: 44% minmax(0, 1fr); overflow: hidden; background: #fff; border: 1px solid #e8e1e4; border-radius: 16px; }
.leadership-card img { width: 100%; height: 100%; min-height: 310px; object-fit: cover; object-position: center top; }
.leadership-card-body { padding: 32px 26px; align-self: center; }
.leadership-role { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #853953; }
.leadership-card h3 { margin: 0 0 12px; font-size: 24px; }
.leadership-card p { font-size: 14px; line-height: 1.8; color: #55505a; }
.leadership-link { display: inline-block; margin-top: 8px; padding-bottom: 4px; border-bottom: 1px solid #853953; color: #853953; font-size: 14px; font-weight: 700; }
.leadership-principles { margin: 36px 0 0; padding-left: 24px; border-left: 3px solid #d9bd62; color: #55505a; line-height: 1.9; }
.leadership-message .row { align-items: flex-start; row-gap: 32px; }
.leadership-portrait { margin: 0; overflow: hidden; border: 1px solid #e8e1e4; border-radius: 16px; background: #fff; box-shadow: 0 12px 32px rgba(61, 36, 48, .06); }
.leadership-portrait img { display: block; width: 100%; height: auto; }
.leadership-portrait figcaption { padding: 22px 24px; border-top: 3px solid #d9bd62; }
.leadership-portrait strong { display: block; color: #612d53; font-family: var(--title-font); font-size: 22px; }
.leadership-portrait span { display: block; color: #655c65; font-size: 14px; margin-top: 4px; }
.leadership-message-copy { padding: 36px 40px; background: #fff; border: 1px solid #e8e1e4; border-radius: 16px; }
.leadership-message-copy h2 { font-size: clamp(28px, 3vw, 36px); }
.leadership-message-copy p { color: #48434b; line-height: 1.9; }
.leadership-message-copy p:last-child { margin-bottom: 0; }
.leadership-message-copy hr { margin: 24px 0; color: #c9bac4; }
@media (max-width: 1199px) {
  .pathways-intro .pathways-heading { padding: 32px; }
  .pathways-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .pathway-card-header { min-height: 0; }
  .pathway-subjects { min-height: 78px; }
  .leadership-card { grid-template-columns: 1fr; }
  .leadership-card img { height: auto; min-height: 0; aspect-ratio: 4 / 5; object-position: center top; }
}
@media (max-width: 991px) {
  .pathways-intro { grid-template-columns: 1fr; grid-template-areas: "heading" "photo"; }
  .pathways-intro .pathways-heading { max-width: 760px; padding: 36px; }
  .pathways-intro .pathways-heading h2 { font-size: 34px; }
}
@media (max-width: 767px) {
  .pathways-section, .leadership-section, .leadership-message { padding: 60px 0; }
  .pathways-heading { margin-bottom: 30px; }
  .pathways-intro { margin-bottom: 24px; border-radius: 16px; }
  .pathways-intro .pathways-heading { padding: 28px 24px; }
  .pathways-intro .pathways-heading h2 { font-size: 28px; }
  .pathways-photo { padding: 10px; }
  .pathways-grid, .leadership-grid { grid-template-columns: 1fr; gap: 22px; }
  .pathway-card { padding: 24px; }
  .pathway-subjects { min-height: 0; }
  .pathways-guidance { align-items: flex-start; flex-direction: column; padding: 24px; }
  .leadership-card img { height: auto; aspect-ratio: 4 / 5; object-position: center top; }
  .leadership-card-body, .leadership-message-copy { padding: 26px 24px; }
  .leadership-portrait { max-width: 420px; margin: 0 auto; }
}
