/* =============================================================================
   chwd/css/program-page.css
   Programme detail pages for the CHWD sub-site.

   An ADDITIVE layer, loaded last — the vendor bundle (style.css) is minified and
   is never edited, exactly as brand.css relates to the main site's theme.css.
   Everything here is namespaced under .chwd-prog so it cannot leak into any
   other CHWD page.

   Palette taken from the sub-site's own stylesheets, not invented:
     #2A3F79  navy   — css/style_v6.css (headings, links, primary buttons)
     #009F93  teal   — css/style_v6.css (topbar, .fun-facts, .slicknav_nav)
     #36298B  indigo — css/color1.css (used sparingly, for depth on the CTA band)
   Type is Roboto, already loaded by css/robot_font.css.
   ========================================================================== */

.chwd-prog {
    --nav: #2A3F79;
    --teal: #009F93;
    --ink: #333f4d;
    --muted: #6b7684;
    --line: #e4e8ee;
    --wash: #f6f8fa;
    color: var(--ink);
}

/* ---- page title ---------------------------------------------------------- */
.chwd-prog .prog-eyebrow {
    display: block;
    text-align: center;
    color: var(--teal);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
/* The theme's h2 carries a very tight line-height, which collides on a phone as
   soon as a programme name wraps to three lines ("Master Program in Epidemiology
   in Practice"). Set both here rather than touching the vendor rule. */
.chwd-prog .prog-title {
    text-align: center;
    color: var(--nav);
    font-weight: 700;
    font-size: clamp(24px, 4.2vw, 38px);
    line-height: 1.25;
    margin: 0 0 10px;
}
.chwd-prog .prog-lede {
    max-width: 760px;
    margin: 0 auto 6px;
    text-align: center;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}
.chwd-prog .prog-rule {
    width: 64px;
    height: 3px;
    background: var(--teal);
    border: 0;
    opacity: 1;
    margin: 18px auto 34px;
}

/* ---- key facts strip ----------------------------------------------------- */
.chwd-prog .prog-facts {
    list-style: none;
    margin: 0 0 38px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}
.chwd-prog .prog-facts li {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--teal);
    border-radius: 6px;
    padding: 18px 20px;
    text-align: center;
}
.chwd-prog .prog-facts .k {
    display: block;
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}
.chwd-prog .prog-facts .v {
    display: block;
    color: var(--nav);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

/* ---- content sections ---------------------------------------------------- */
.chwd-prog .prog-section { margin: 0 0 36px; }
.chwd-prog .prog-section > h3 {
    position: relative;
    color: var(--nav);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 18px;
    padding-bottom: 12px;
}
.chwd-prog .prog-section > h3:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    background: var(--teal);
}
.chwd-prog .prog-section p { line-height: 1.85; margin-bottom: 14px; }

/* Teal-marker lists, replacing the browser default bullet. */
.chwd-prog .prog-list { list-style: none; margin: 0; padding: 0; }
.chwd-prog .prog-list > li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 11px;
    line-height: 1.75;
}
.chwd-prog .prog-list > li:before {
    content: "";
    position: absolute;
    left: 2px;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
}
.chwd-prog .prog-list ul {
    list-style: none;
    margin: 10px 0 0;
    padding-left: 0;
}
.chwd-prog .prog-list ul > li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    color: var(--muted);
    line-height: 1.7;
}
.chwd-prog .prog-list ul > li:before {
    content: "";
    position: absolute;
    left: 2px;
    top: 11px;
    width: 10px;
    height: 1px;
    background: var(--muted);
    opacity: .7;
}

/* Numbered list (admission requirements) with navy counters. */
.chwd-prog .prog-ol { list-style: none; counter-reset: pstep; margin: 0; padding: 0; }
.chwd-prog .prog-ol > li {
    counter-increment: pstep;
    position: relative;
    padding-left: 42px;
    margin-bottom: 14px;
    line-height: 1.75;
    min-height: 28px;
}
.chwd-prog .prog-ol > li:before {
    content: counter(pstep);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--nav);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
}

/* ---- aside: at a glance -------------------------------------------------- */
.chwd-prog .prog-aside {
    background: var(--wash);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    position: sticky;
    top: 20px;
}
.chwd-prog .prog-aside h4 {
    color: var(--nav);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    margin: 0 0 16px;
}
.chwd-prog .prog-aside dl { margin: 0 0 20px; }
.chwd-prog .prog-aside dt {
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}
.chwd-prog .prog-aside dd {
    margin: 2px 0 14px;
    color: var(--nav);
    font-weight: 600;
    line-height: 1.5;
}
.chwd-prog .prog-aside figure { margin: 0 0 18px; }
.chwd-prog .prog-aside img { width: 100%; height: auto; border-radius: 6px; display: block; }

/* ---- buttons ------------------------------------------------------------- */
.chwd-prog .prog-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.chwd-prog .prog-btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.chwd-prog .prog-btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.chwd-prog .prog-btn-primary:hover,
.chwd-prog .prog-btn-primary:focus { background: #00887e; border-color: #00887e; color: #fff; text-decoration: none; }
.chwd-prog .prog-btn-outline { background: transparent; color: var(--nav); border-color: var(--nav); }
.chwd-prog .prog-btn-outline:hover,
.chwd-prog .prog-btn-outline:focus { background: var(--nav); color: #fff; text-decoration: none; }
.chwd-prog .prog-aside .prog-btn { display: block; text-align: center; margin-bottom: 10px; }

/* ---- fees table ---------------------------------------------------------- */
.chwd-prog .prog-table-wrap { overflow-x: auto; }
.chwd-prog .prog-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.chwd-prog .prog-table th {
    background: var(--nav);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .4px;
    text-align: left;
    padding: 13px 16px;
    border: 1px solid var(--nav);
}
.chwd-prog .prog-table td {
    padding: 13px 16px;
    border: 1px solid var(--line);
    line-height: 1.6;
}
.chwd-prog .prog-table tbody tr:nth-child(even) { background: var(--wash); }
.chwd-prog .prog-table .prog-total { color: var(--nav); font-weight: 700; white-space: nowrap; }
.chwd-prog .prog-note { font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: 12px; }
.chwd-prog .prog-note a,
.chwd-prog .prog-section a { color: var(--teal); text-decoration: underline; }
.chwd-prog .prog-note a:hover,
.chwd-prog .prog-section a:hover { color: var(--nav); }

/* ---- closing CTA band ---------------------------------------------------- */
.chwd-prog .prog-cta {
    background: linear-gradient(135deg, #36298B 0%, var(--nav) 55%, var(--teal) 100%);
    border-radius: 8px;
    padding: 34px 30px;
    margin: 8px 0 10px;
    text-align: center;
}
.chwd-prog .prog-cta h3 { color: #fff; font-size: 24px; font-weight: 700; margin: 0 0 8px; }
.chwd-prog .prog-cta p { color: rgba(255, 255, 255, .88); margin: 0 0 20px; }
.chwd-prog .prog-cta .prog-btns { justify-content: center; }
.chwd-prog .prog-cta .prog-btn-primary { background: #fff; color: var(--nav); border-color: #fff; }
.chwd-prog .prog-cta .prog-btn-primary:hover { background: rgba(255, 255, 255, .88); color: var(--nav); }
.chwd-prog .prog-cta .prog-btn-outline { color: #fff; border-color: rgba(255, 255, 255, .8); }
.chwd-prog .prog-cta .prog-btn-outline:hover { background: #fff; color: var(--nav); }

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 991.98px) {
    .chwd-prog .prog-aside { position: static; margin-top: 30px; }
}
@media (max-width: 575.98px) {
    .chwd-prog .prog-facts { grid-template-columns: 1fr 1fr; gap: 12px; }
    .chwd-prog .prog-facts li { padding: 14px 12px; }
    .chwd-prog .prog-section > h3 { font-size: 19px; }
    .chwd-prog .prog-cta { padding: 26px 18px; }
    .chwd-prog .prog-cta h3 { font-size: 20px; }
}
