/* Our Program page (design artboards 4j desktop / 4i mobile). */

/* Photo banner: 380px tall on desktop, 200px on a phone. */
.prog-banner { min-height: 380px; }
.prog-banner img { object-position: center 35%; }
/* Letters sit a little further apart than other banner headings (Karen, Oct 2026). */
.prog-banner h1 { font-size: clamp(21px, 3.5vw, 44px); line-height: 1.18; letter-spacing: -.005em; max-width: 760px; }
@media (max-width: 700px) {
  .prog-banner { min-height: 220px; }
  .prog-banner .wrap { padding-block: 16px; }
  .prog-banner__inner { gap: 8px; }
}

/* Main layout: text + schedule cards on the left, Slingerland card on the
   right, Curricula underneath spanning both columns. On a phone the
   Slingerland block drops below Curricula, as the mobile artboard shows. */
.prog-main { padding-block: clamp(22px, 4.4vw, 56px) clamp(20px, 4.4vw, 56px); }
.prog-grid { display: grid; gap: 0; }
.prog-teach { order: 1; }
.prog-curricula { order: 2; }
.prog-sling { order: 3; }
@media (min-width: 900px) {
  .prog-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    grid-template-areas: "teach sling" "curr curr";
    column-gap: 48px;
  }
  .prog-teach { grid-area: teach; display: flex; flex-direction: column; }
  .prog-cards { flex: 1; }
  .prog-card img { flex: 1 1 215px; min-height: 215px; height: auto; }
  /* The box stretches so its bottom lines up with the bottom of the two schedule cards (Karen, Oct 2026). */
  .prog-sling { grid-area: sling; align-self: stretch; margin-bottom: 44px; }
  .prog-curricula { grid-area: curr; }
}

/* Jump links to the four subjects, matching the pills on the Enrichment page (Karen, Nov 2026). */
.prog-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(20px, 3vw, 34px); }
.prog-jump a {
  display: inline-block; padding: 8px 16px; border: 1.5px solid var(--navy); border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none;
}
.prog-jump a:hover { background: var(--navy); color: #fff; }
.prog-subject { scroll-margin-top: 24px; }

.prog-label { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--brick); margin: 0 0 14px; }
.prog-teach > p { font-size: 17px; line-height: 1.75; max-width: none; }
.prog-teach > p:last-of-type { margin-bottom: 32px; }
@media (max-width: 700px) {
  .prog-teach > p { font-size: 15px; line-height: 1.7; }
  .prog-teach > p:last-of-type { margin-bottom: 16px; }
}

/* The two "typical day" cards. */
.prog-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; margin-bottom: 44px; }
@media (max-width: 700px) { .prog-cards { grid-template-columns: 1fr; gap: 14px; margin-bottom: 20px; } }
.prog-card {
  display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--sand-deep);
  border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: 0 2px 12px rgba(22, 35, 58, .06); transition: border-color .16s ease, transform .16s ease;
}
.prog-card:hover { border-color: var(--brick); transform: translateY(-2px); color: inherit; }
.prog-card img { width: 100%; height: 215px; object-fit: cover; }
.prog-card__body { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 24px; flex: 1; }
.prog-card h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.prog-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--warm-400); }
.prog-card__more {
  margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brick); text-decoration: underline; text-underline-offset: 3px;
}
@media (max-width: 700px) {
  .prog-card img { height: 130px; }
  .prog-card__body { gap: 4px; padding: 14px 16px 16px; }
  .prog-card h3 { font-size: 19px; }
  .prog-card p { font-size: 14px; line-height: 1.5; }
  .prog-card__more { padding-top: 8px; }
}

/* Navy Slingerland card. */
.prog-sling { background: var(--navy); color: #fff; border-radius: 10px; padding: 30px; }
.prog-sling .eyebrow { margin: 0; }
.prog-sling h2 { margin: 12px 0 14px; font-size: clamp(23px, 2.4vw, 30px); letter-spacing: -.025em; line-height: 1.1; }
.prog-sling p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.78); max-width: none; }
.prog-sling p:last-child { margin-bottom: 0; }
/* The photo under the text fills whatever space is left so the box still ends level with the cards. */
.prog-sling { display: flex; flex-direction: column; }
/* Two square photos side by side under the text, then the whiteboard photo (Karen, Nov 2026). */
.prog-sling__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.prog-sling__pair img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; display: block; }
.prog-sling__pair img:last-child { object-position: center 30%; }
.prog-sling__photo { width: 100%; height: 220px; margin-top: 10px; object-fit: cover; object-position: center 40%; border-radius: 8px; display: block; }
@media (min-width: 900px) { .prog-sling__photo { flex: 1 1 0; min-height: 170px; height: auto; } }
@media (max-width: 899px) {
  /* Full-bleed on a phone: stretch across the page gutters, and run straight into the footer
     with no pale strip between the two navy blocks (Karen, Nov 2026). */
  .prog-main { padding-bottom: 0; }
  .prog-sling { border-radius: 0; margin-inline: calc(-1 * var(--gutter)); padding: 26px var(--gutter) 32px; }
  .prog-sling p { font-size: 14px; }
}

/* Curricula: heading row with a navy rule, then one row per subject. */
.prog-curricula { padding-top: 22px; border-top: 2px solid var(--navy); margin-top: 0; }
@media (max-width: 899px) { .prog-curricula { margin-top: 6px; margin-bottom: 20px; padding-top: 16px; } }
/* The sentence sits under the Curricula heading (Karen, Oct 2026). */
.prog-curricula__head { display: block; margin-bottom: 8px; }
.prog-curricula__head h2 + p { margin-top: 8px; }
.prog-curricula__head h2 { margin: 0; font-size: clamp(24px, 2.7vw, 34px); letter-spacing: -.03em; line-height: 1.1; }
.prog-curricula__head p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--warm-400); max-width: 640px; }
@media (max-width: 700px) { .prog-curricula__head h2 + p { margin-top: 6px; } .prog-curricula__head p { font-size: 14px; line-height: 1.6; } }

.prog-subject { display: grid; gap: 36px; padding: 32px 0; border-top: 1px solid var(--line); align-items: start; }
.prog-subject:first-of-type { margin-top: 22px; }
.prog-subject img { width: 100%; height: 210px; object-fit: cover; border-radius: 8px; }
.prog-subject h3 { margin: 0 0 12px; font-size: 26px; font-weight: 800; letter-spacing: -.025em; color: var(--navy); }
.prog-subject p { margin: 0 0 12px; font-size: 16px; line-height: 1.75; max-width: 680px; }
.prog-subject p:last-child { margin-bottom: 0; }
/* A second column of photos on the right, one directly across from the photo on the left
   (Karen, Nov 2026). */
@media (min-width: 700px) {
  .prog-subject--photo { grid-template-columns: 300px minmax(0, 1fr); }
  .prog-subject__right { grid-column: 2; }
}
@media (min-width: 1000px) {
  .prog-subject--photo { grid-template-columns: 300px minmax(0, 1fr) 300px; }
  .prog-subject__right { grid-column: 3; }
}
/* A photo whose faces sit near the top: keep them in view when a phone crops it to a wide strip. */
.prog-subject .prog-subject__img--top { object-position: center 18%; }
.prog-subject__right { margin: 0; }
/* A subject with four photos (Math; Karen, Nov 2026). The two extra photos are a little taller
   than the first two. Phone: side by side below the text. Tablet: stacked under the left photo.
   Computer: one under the photo on each side. */
.prog-subject .prog-subject__extra { height: 260px; object-position: center; }
.prog-subject--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prog-subject--four > * { grid-column: 1 / -1; }
.prog-subject--four > .prog-subject__extra { grid-column: auto; height: auto; aspect-ratio: 1 / 1; }
@media (min-width: 700px) {
  .prog-subject--four { grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: auto auto 1fr; row-gap: 12px; }
  .prog-subject--four > img:first-child { grid-column: 1; grid-row: 1; }
  .prog-subject--four > div { grid-column: 2; grid-row: 1 / span 3; }
  .prog-subject--four > .prog-subject__extra { grid-column: 1; height: 260px; aspect-ratio: auto; }
  .prog-subject--four > .prog-subject__extra--left { grid-row: 2; }
  .prog-subject--four > .prog-subject__extra--right { grid-row: 3; }
  .prog-subject--four > .prog-subject__right { grid-column: 2; grid-row: 4; margin-top: 12px; }
}
@media (min-width: 1000px) {
  .prog-subject--four { grid-template-columns: 300px minmax(0, 1fr) 300px; grid-template-rows: auto 1fr; }
  .prog-subject--four > div { grid-row: 1 / span 2; }
  .prog-subject--four > .prog-subject__right { grid-column: 3; grid-row: 1; margin-top: 0; }
  .prog-subject--four > .prog-subject__extra--left { grid-column: 1; grid-row: 2; }
  .prog-subject--four > .prog-subject__extra--right { grid-column: 3; grid-row: 2; }
}
.prog-subject__right img { object-position: center 28%; }
@media (max-width: 699px) {
  .prog-subject { gap: 14px; padding: 16px 0; }
  .prog-subject:first-of-type { margin-top: 16px; }
  .prog-subject img { height: 160px; }
  .prog-subject h3 { font-size: 19px; margin-bottom: 8px; }
  .prog-subject p { font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
}
