/* Homepage (client's Canva design). Everything is scoped under #homePage. */
#homePage {
    --hp-green: #004238;
    --hp-deep: #01372f;
    --hp-accent: #D5D52B;
    --hp-cream: #F5F3EB;
    --hp-sage: #E9EBE0;
    --hp-ink: #0c1f1a;
    --hp-muted: #4B5850;
    --hp-line: #E3E1D6;
    --hp-line-2: #D8D6CA;
    background: var(--hp-cream);
    color: var(--hp-ink);
    font-size: 16px;
    line-height: 1.5;
}
#homePage *, #homePage *::before, #homePage *::after { box-sizing: border-box; }
#homePage section { scroll-margin-top: var(--site-header-h, 76px); }
/* :where() keeps these at element weight, so section rules (.hp-hero h1, .hp-band-green h2) win */
:where(#homePage) h1, :where(#homePage) h2 { margin: 0; color: var(--hp-ink); font-weight: 600; }
:where(#homePage) h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
#homePage p { margin: 0; }
#homePage [hidden] { display: none !important; }
#homePage a { text-decoration: none; }
#homePage img { display: block; max-width: 100%; }
#homePage svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.hp-wrap { max-width: 1240px; margin: 0 auto; padding: 96px 32px; }
.hp-stack { display: flex; flex-direction: column; gap: 22px; }
.hp-gap-lg { gap: 48px; }
.hp-gap-sm { gap: 10px; }
.hp-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.hp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #3E4C44; display: flex; align-items: center; gap: 8px; }
.hp-eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--hp-green); border-radius: 2px; }
.hp-lead { font-size: 17px; color: var(--hp-muted); max-width: 48ch; }
.hp-side { color: var(--hp-muted); max-width: 36ch; }
.hp-small { font-size: 12.5px; color: var(--hp-muted); }
.hp-center { text-align: center; }
.hp-mini { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hp-muted); }
/* who offers the course: the partner's logo, or the educator's photo */
.hp-logo { flex: none; display: inline-flex; align-items: center; justify-content: center; height: 46px; width: 120px; max-width: 50%; padding: 4px 8px; border: 1px solid var(--hp-line); border-radius: 8px; background: #fff; }
.hp-logo img { height: 100%; width: 100%; object-fit: contain; }
.hp-logo-person { padding: 0; border-radius: 50%; width: 42px; height: 42px; overflow: hidden; }
.hp-logo-person img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.hp-tag { font-size: 11px; font-weight: 600; color: var(--hp-green); border: 1px solid var(--hp-line-2); border-radius: 6px; padding: 3px 8px; white-space: nowrap; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.hp-link { font-weight: 600; font-size: 15px; color: var(--hp-green); }
.hp-link:hover { color: var(--hp-deep); text-decoration: underline; }
.hp-big { font-size: clamp(34px, 4.4vw, 58px) !important; line-height: 1.05 !important; letter-spacing: -0.025em !important; }
.hp-green { color: var(--hp-green) !important; }
.hp-white { color: #fff !important; }

/* buttons */
.hp-btn { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-weight: 600; font-size: 15px; padding: 14px 22px; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; transition: transform .1s ease-out, background-color .15s, box-shadow .15s; }
.hp-btn:active { transform: scale(.97); }
.hp-btn-dark { background: var(--hp-green); color: #fff !important; }
.hp-btn-dark:hover { background: var(--hp-deep); }
.hp-btn-line { background: #fff; color: var(--hp-green) !important; border-color: #CFCDBF; }
.hp-btn-line:hover { border-color: var(--hp-green); }
.hp-btn-accent { background: var(--hp-accent); color: var(--hp-deep) !important; }
.hp-btn-accent:hover { box-shadow: 0 6px 18px -8px rgba(213, 213, 43, .8); }
.hp-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* hero */
.hp-hero .hp-wrap:first-child { padding-top: 64px; padding-bottom: 40px; }
.hp-hero .hp-wrap + .hp-wrap { padding-top: 0; padding-bottom: 72px; }
.hp-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hp-hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hp-hero h1 { font-size: clamp(40px, 4.8vw, 66px); line-height: 1.02; letter-spacing: -0.03em; color: var(--hp-green); }
.hp-check { font-size: 13.5px; color: var(--hp-muted); display: flex; gap: 8px; align-items: center; }
.hp-check svg { width: 16px; height: 16px; stroke: var(--hp-green); stroke-width: 2.6; }
.hp-hero-media { position: relative; padding-bottom: 28px; }
.hp-hero-photo { position: relative; aspect-ratio: 5 / 4; border-radius: 28px; background: linear-gradient(160deg, #DDE6C9, #C9D7B4); overflow: hidden; }
/* slides cross-fade; "contain" sits a cut-out on the green, "cover" fills the box with a photo */
.hp-slide { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transform: scale(1.03); transition: opacity .7s ease, transform 1.2s ease; }
.hp-slide.is-on { opacity: 1; transform: none; }
.hp-fit-contain img { height: 96%; width: auto; max-width: 100%; object-fit: contain; }
.hp-fit-cover img { width: 100%; height: 100%; object-fit: cover; }
.hp-float-card { position: absolute; left: -12px; bottom: 0; background: #fff; border-radius: 16px; padding: 16px 18px; width: 240px; box-shadow: 0 18px 40px -18px rgba(12, 31, 26, .45); display: flex; flex-direction: column; gap: 8px; }
.hp-float-card b { font-size: 17px; line-height: 1.25; font-weight: 600; }
.hp-bars { display: flex; gap: 4px; }
.hp-bars i { flex: 1; height: 5px; border-radius: 3px; background: var(--hp-line-2); }
.hp-bars i.on { background: var(--hp-green); }
.hp-card-text { display: flex; flex-direction: column; gap: 8px; animation: hpTextIn .45s ease; }
@keyframes hpTextIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.hp-card-text.is-on { animation: none; } /* the first slide's text is there from the start */
/* slide picker: each bar is a button; the current one fills up until the next slide */
.hp-bars button { position: relative; flex: 1; height: 5px; padding: 0; border: 0; border-radius: 3px; background: var(--hp-line-2); cursor: pointer; overflow: hidden; }
.hp-bars button::before { content: ""; position: absolute; inset: -8px 0; } /* bigger tap target */
.hp-bars button::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--hp-green); }
.hp-bars button.is-done::after { transform: scaleX(1); }
.hp-bars button.is-on::after { animation: hpFill var(--hp-slide-ms, 6000ms) linear forwards; }
[data-hp-slider].is-paused .hp-bars button.is-on::after { animation-play-state: paused; }
.hp-bars button:focus-visible { outline: 2px solid var(--hp-green); outline-offset: 3px; }
@keyframes hpFill { to { transform: scaleX(1); } }
.hp-stats { padding-top: 28px; border-top: 1px solid var(--hp-line); display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 24px; align-items: end; }
.hp-stats p { font-size: 15px; color: var(--hp-muted); max-width: 26ch; }
.hp-stat { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hp-stat b { font-size: 44px; font-weight: 600; letter-spacing: -0.02em; color: var(--hp-green); font-variant-numeric: tabular-nums; line-height: 1; }
.hp-stat > span { color: var(--hp-muted); }

/* bands */
.hp-band-white { background: #fff; border-top: 1px solid var(--hp-line); border-bottom: 1px solid var(--hp-line); }
.hp-band-sage { background: var(--hp-sage); }
.hp-band-green { background: var(--hp-green); color: #F5F3EB; }
.hp-band-green h2 { color: #fff; }
.hp-band-green .hp-eyebrow { color: var(--hp-accent); }
.hp-band-green .hp-eyebrow::before { background: var(--hp-accent); }
.hp-band-green .hp-lead { color: #C9D6CD; }

/* learn: tabs, search, course cards */
#learn .hp-wrap { padding-top: 80px; padding-bottom: 80px; }
.hp-tools { align-items: center; }
.hp-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.hp-tab { min-height: 40px; padding: 8px 16px; border-radius: 99px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; background: #fff; color: var(--hp-ink); border: 1.5px solid var(--hp-line-2); transition: background-color .15s, color .15s, border-color .15s; }
.hp-tab:hover { border-color: var(--hp-green); }
.hp-tab.is-on { background: var(--hp-green); color: #fff; border-color: var(--hp-green); }
.hp-search { position: relative; flex: 0 1 340px; min-width: min(100%, 300px); margin: 0; }
.hp-search-box { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--hp-line-2); border-radius: 10px; padding: 0 14px; min-height: 46px; background: #fff; margin: 0; cursor: text; transition: border-color .15s; }
.hp-search-box:focus-within { border-color: var(--hp-green); }
.hp-search-box svg { width: 16px; height: 16px; color: var(--hp-muted); }
.hp-search-box input { border: 0; outline: none; font: inherit; font-size: 14.5px; flex: 1; min-width: 0; background: transparent; color: var(--hp-ink); padding: 0; height: 44px; box-shadow: none; }
.hp-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border: 1px solid var(--hp-line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(12, 31, 26, .35); overflow: hidden; max-height: 360px; overflow-y: auto; }
.hp-suggest a, .hp-suggest-none { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; color: var(--hp-ink); font-size: 14px; border-bottom: 1px solid #F0EEE6; }
.hp-suggest a small { font-size: 11.5px; color: var(--hp-muted); white-space: nowrap; }
.hp-suggest a:hover, .hp-suggest a.is-active { background: #F2F1EA; }
.hp-suggest-none { color: var(--hp-muted); }
.hp-suggest .hp-suggest-all { font-size: 13px; font-weight: 600; color: var(--hp-green); background: #F7F6F0; border-bottom: 0; }
.hp-course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hp-course { border: 1px solid var(--hp-line); border-radius: 18px; overflow: hidden; background: #fff; display: flex; flex-direction: column; color: var(--hp-ink); transition: box-shadow .2s, transform .2s; }
.hp-course:hover { box-shadow: 0 18px 40px -22px rgba(12, 31, 26, .45); transform: translateY(-2px); color: var(--hp-ink); }
.hp-course-img { position: relative; aspect-ratio: 16 / 9; background: #E4E1D2; display: flex; align-items: center; justify-content: center; color: #8A866F; overflow: hidden; }
.hp-course-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hp-course-img svg { width: 34px; height: 34px; stroke-width: 1.5; }
.hp-course-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.hp-course-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.hp-course-title { font-size: 19px; line-height: 1.3; font-weight: 600; flex: 1; }
.hp-course-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid #EEECE3; font-size: 13px; color: var(--hp-muted); }
.hp-course-foot > span:first-child { display: flex; gap: 6px; align-items: center; }
.hp-course-foot svg { width: 14px; height: 14px; }
.hp-arrow { font-weight: 700; color: var(--hp-green); }
.hp-empty { color: var(--hp-muted); grid-column: 1 / -1; }
.hp-empty a { color: var(--hp-green); font-weight: 600; }

/* split sections */
.hp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hp-split-media { position: relative; padding-bottom: 30px; }
.hp-photo { aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: #2C5A45; }
.hp-photo img { width: 100%; height: 100%; object-fit: cover; }
.hp-photo-tall { aspect-ratio: 5 / 4; border-radius: 28px; background: #D3D0BF; }
.hp-note-card { position: absolute; left: 24px; right: 24px; bottom: 0; background: var(--hp-accent); color: var(--hp-deep); border-radius: 14px; padding: 14px 18px; display: flex; gap: 12px; align-items: center; }
.hp-note-card svg { width: 22px; height: 22px; }
.hp-note-card > span { display: flex; flex-direction: column; }
.hp-note-card .hp-mini { color: var(--hp-deep); font-size: 10.5px; }
.hp-note-card b { font-size: 16px; font-weight: 600; }
.hp-points { display: flex; flex-direction: column; gap: 14px; }
.hp-points > div { display: flex; gap: 12px; }
.hp-points svg { color: var(--hp-accent); margin-top: 2px; }
.hp-points span { font-size: 14px; color: #C9D6CD; }
.hp-points b { display: block; color: #fff; font-weight: 600; font-size: 16px; }

/* learning formats */
.hp-formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hp-line-2); }
.hp-format { color: var(--hp-ink); padding: 24px 22px 28px; display: flex; flex-direction: column; gap: 12px; border-bottom: 3px solid var(--hp-line); transition: background-color .15s, border-color .15s; }
.hp-format:hover { background: #fff; border-bottom-color: var(--hp-green); color: var(--hp-ink); }
.hp-format-top { display: flex; justify-content: space-between; align-items: center; color: var(--hp-green); }
.hp-format-top span { font-size: 12.5px; color: var(--hp-muted); }
.hp-format b { font-size: 20px; font-weight: 600; }
.hp-format-text { font-size: 14px; color: var(--hp-muted); flex: 1; }
.hp-format-count { font-size: 13px; color: var(--hp-green); font-weight: 700; }

/* degrees */
.hp-degree-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hp-degree { background: #fff; border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; color: var(--hp-ink); transition: box-shadow .2s; }
.hp-degree:hover { box-shadow: 0 18px 40px -22px rgba(12, 31, 26, .45); color: var(--hp-ink); }
.hp-degree > b { font-size: 18px; line-height: 1.3; font-weight: 600; flex: 1; }

/* steps */
.hp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
.hp-step { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--hp-line-2); padding-top: 16px; }
.hp-step > span { font-size: 13px; color: var(--hp-muted); font-variant-numeric: tabular-nums; }
.hp-step b { font-size: 20px; font-weight: 600; }
.hp-step p { font-size: 14.5px; color: var(--hp-muted); }

/* plans */
.hp-plans { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.hp-plan { border: 1px solid var(--hp-line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.hp-plan-name { font-size: 20px; font-weight: 600; }
.hp-plan-price { font-size: 44px; font-weight: 600; letter-spacing: -0.02em; color: var(--hp-green); line-height: 1.1; }
.hp-plan-sub { font-size: 14px; color: var(--hp-muted); }
.hp-plan ul { list-style: none; margin: 0 0 8px; padding: 12px 0 0; border-top: 1px solid #EEECE3; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.hp-plan li::before { content: "✓ "; }
.hp-plan li.no { color: #6A746D; }
.hp-plan li.no::before { content: "– "; }
.hp-plan .hp-btn { margin-top: auto; }
.hp-plan-premium { background: var(--hp-green); color: #fff; border: 0; gap: 18px; }
.hp-plan-premium .hp-plan-name { color: #fff; }
.hp-pill { background: var(--hp-accent); color: var(--hp-deep); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; }
.hp-periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hp-period { text-align: left; min-height: 44px; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; font: inherit; background: var(--hp-deep); color: #fff; border: 2px solid #2F5543; transition: background-color .15s, color .15s, border-color .15s; }
.hp-period.is-on { background: #fff; color: var(--hp-deep); border-color: var(--hp-accent); }
.hp-period-name { font-size: 12px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.hp-period-name i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; }
.hp-period.is-on .hp-period-name i { background: var(--hp-green); border-color: var(--hp-green); }
.hp-period b { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hp-period span, .hp-period small { font-size: 12px; opacity: .8; }
.hp-perks { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: #D3DED6; }

/* reviews */
.hp-satisfied { display: flex; align-items: center; gap: 14px; }
.hp-satisfied b { font-size: 44px; font-weight: 600; letter-spacing: -0.02em; color: var(--hp-green); }
.hp-satisfied span { font-size: 14px; color: var(--hp-muted); max-width: 20ch; }
.hp-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hp-review { margin: 0; background: #fff; border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.hp-stars { color: #C98A1B; letter-spacing: 2px; }
.hp-review blockquote { margin: 0; font-size: 16px; line-height: 1.55; flex: 1; color: var(--hp-ink); }
.hp-review figcaption { display: flex; gap: 12px; align-items: center; padding-top: 14px; border-top: 1px solid #EEECE3; }
.hp-initials { width: 40px; height: 40px; border-radius: 50%; background: var(--hp-green); color: var(--hp-accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; }
.hp-review figcaption > span:last-child { display: flex; flex-direction: column; line-height: 1.3; font-size: 13px; color: var(--hp-muted); }
.hp-review figcaption b { font-size: 15px; font-weight: 600; color: var(--hp-ink); }

/* faq */
.hp-faq { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.hp-qa { border-bottom: 1px solid var(--hp-line-2); }
.hp-qa summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; font-size: 17px; font-weight: 600; }
.hp-qa summary::-webkit-details-marker { display: none; }
.hp-qa summary span::before { content: "+"; font-size: 22px; line-height: 1; color: var(--hp-green); }
.hp-qa[open] summary span::before { content: "−"; }
.hp-qa p { padding: 0 0 20px; color: var(--hp-muted); font-size: 15px; max-width: 60ch; }

/* tablet */
@media (max-width: 991px) {
    .hp-wrap { padding: 72px 24px; }
    .hp-hero .hp-wrap:first-child { padding-top: 48px; }
    .hp-hero-grid, .hp-split, .hp-faq { grid-template-columns: 1fr; gap: 36px; }
    .hp-stats { grid-template-columns: repeat(3, 1fr); }
    .hp-stats p { grid-column: 1 / -1; }
    .hp-course-grid, .hp-degree-grid, .hp-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-plans { grid-template-columns: 1fr; }
}

/* phone */
@media (max-width: 640px) {
    .hp-wrap { padding: 56px 16px; }
    .hp-hero .hp-wrap:first-child { padding-top: 36px; padding-bottom: 32px; }
    .hp-hero .hp-wrap + .hp-wrap { padding-bottom: 48px; }
    .hp-stats { gap: 12px; }
    .hp-stat { flex-direction: column; gap: 4px; }
    .hp-stat b { font-size: 32px; }
    .hp-float-card { left: 8px; width: 210px; padding: 12px 14px; }
    .hp-float-card b { font-size: 15px; }
    .hp-course-grid, .hp-degree-grid, .hp-reviews, .hp-formats, .hp-steps, .hp-periods { grid-template-columns: 1fr; }
    .hp-format { padding: 20px 4px; }
    .hp-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
    .hp-tabs::-webkit-scrollbar { display: none; }
    .hp-tab { flex: none; }
    .hp-search { flex-basis: 100%; }
    .hp-note-card { left: 12px; right: 12px; }
    .hp-btn { align-self: stretch; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    #homePage * { transition: none !important; }
    .hp-card-text { animation: none; }
    .hp-bars button.is-on::after { animation: none; transform: scaleX(1); }
}

/* "Explore Our Top Programs": category list on the left, three program cards per row */
.hp-programs-band { background: #fff; }
.hp-programs-head { display: flex; flex-direction: column; gap: 22px; margin-bottom: 36px; }
/* Eyebrow with "View all courses" on the right above; heading with the search box on the right below */
.hp-programs-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.hp-programs-head .hp-link { flex: none; white-space: nowrap; }
.hp-programs-head .hp-head-row { align-items: center; flex-wrap: nowrap; gap: 28px; }
.hp-programs-head .hp-head-row h2 { flex: none; }
.hp-programs-head .hp-search { flex: 0 1 560px; margin-left: auto; min-width: 0; }
@media (max-width: 1100px) {
    .hp-programs-head .hp-head-row { flex-wrap: wrap; row-gap: 16px; }
    .hp-programs-head .hp-search { flex-basis: 100%; margin-left: 0; }
}
.hp-prog { background: #fff; }
.hp-programs-band .hp-prog-tab { background: #fff; }
.hp-programs { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 44px; align-items: start; }
.hp-prog-tabs { display: flex; flex-direction: column; gap: 8px; position: sticky; top: calc(var(--site-header-h, 76px) + 20px); }
.hp-prog-tab { text-align: left; font: inherit; font-size: 14px; line-height: 1.35; color: var(--hp-ink); background: #fff; border: 1px solid var(--hp-line); border-radius: 8px; padding: 10px 14px; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.hp-prog-tab:hover { border-color: var(--hp-green); color: var(--hp-green); }
.hp-prog-tab.is-on { background: var(--hp-green); border-color: var(--hp-green); color: #fff; font-weight: 600; }
.hp-prog-tab:focus-visible { outline: 2px solid var(--hp-accent); outline-offset: 2px; }
.hp-prog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hp-prog { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hp-line); border-radius: 16px; padding: 8px; color: var(--hp-ink); box-shadow: 0 6px 18px -14px rgba(12, 31, 26, .35); transition: box-shadow .2s, transform .2s; }
.hp-prog:hover { color: var(--hp-ink); box-shadow: 0 18px 38px -22px rgba(12, 31, 26, .45); transform: translateY(-2px); }
.hp-prog-img { position: relative; aspect-ratio: 3 / 2; border-radius: 10px; background: #E4E1D2; display: flex; align-items: center; justify-content: center; color: #8A866F; overflow: hidden; }
.hp-prog-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #F2F1EA; }
.hp-prog-img svg { width: 30px; height: 30px; stroke-width: 1.5; }
/* partner badge: a white tab overlapping the bottom of the image */
.hp-prog-badge { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; max-width: calc(100% - 16px); min-height: 44px; margin: -24px 0 0 8px; padding: 6px 10px; background: #fff; border-radius: 10px; box-shadow: 0 4px 14px -6px rgba(12, 31, 26, .35); font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--hp-ink); }
.hp-prog-badge img { height: 30px; width: auto; max-width: 96px; object-fit: contain; flex: none; }
.hp-prog-badge img.is-person { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.hp-prog-badge span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hp-prog-body { display: flex; flex-direction: column; flex: 1; padding: 14px 10px 6px; }
.hp-prog-title { font-size: 15.5px; font-weight: 500; line-height: 1.38; min-height: calc(1.38em * 3); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; margin-bottom: 16px; }
.hp-prog-meta { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--hp-muted); margin-top: auto; }
.hp-prog-btn { display: block; text-align: center; margin-top: 14px; padding: 8px 12px; border: 1px solid var(--hp-line); border-radius: 8px; font-size: 13px; color: var(--hp-green); transition: background-color .15s, border-color .15s; }
.hp-prog:hover .hp-prog-btn { border-color: var(--hp-green); background: #F4F6EF; }
@media (max-width: 1100px) {
    .hp-prog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .hp-programs { grid-template-columns: 1fr; gap: 24px; }
    .hp-prog-tabs { position: static; flex-direction: row; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
    .hp-prog-tabs::-webkit-scrollbar { display: none; }
    .hp-prog-tab { flex: none; white-space: nowrap; }
}
@media (max-width: 560px) {
    .hp-prog-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .hp-prog, .hp-prog-tab, .hp-prog-btn { transition: none; }
    .hp-prog:hover { transform: none; }
}

/* "Stay curious": a narrower photo leaves more room before the text, and the note card hugs its words */
.hp-split-curious { gap: 72px; }
.hp-split-curious .hp-split-media { width: 86%; }
.hp-split-curious .hp-note-card { right: auto; max-width: calc(100% - 48px); padding: 12px 20px 12px 16px; }
@media (max-width: 991px) {
    .hp-split-curious { gap: 36px; }
    .hp-split-curious .hp-split-media { width: 100%; }
    .hp-split-curious .hp-note-card { max-width: calc(100% - 24px); }
}

/* Formats: each card gets its own top and bottom line, with a gap between cards; white on hover */
.hp-formats { border-top: 0; column-gap: 28px; row-gap: 8px; }
.hp-format { border-top: 3px solid var(--hp-line); padding-left: 18px; padding-right: 18px; }
.hp-format:hover { background: #fff; border-top-color: var(--hp-green); }

/* Degrees: soft off-white cards on the sage, and the photo's top-right corner rounded much further */
.hp-band-sage .hp-degree { background: #F7F7F2; border: 1px solid #DCDED2; }
.hp-band-sage .hp-degree:hover { background: #fff; }
.hp-photo-degree { border-radius: 16px 72px 16px 16px; }

/* Hero: partner university logos in place of the counts */
.hp-stats { grid-template-columns: 1.2fr 3fr; align-items: center; }
.hp-unis { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.hp-unis img { height: 44px; width: auto; max-width: 100%; object-fit: contain; opacity: .85; }
.hp-unis img:first-child { height: 56px; } /* Essex's wordmark is small inside its image */
@media (max-width: 991px) {
    .hp-stats { grid-template-columns: 1fr; }
    .hp-unis { gap: 28px; }
    .hp-unis img { height: 36px; }
    .hp-unis img:first-child { height: 46px; }
}
