:root {
    --program-ink: #142732;
    --program-muted: #62727b;
    --program-line: #dce5e6;
    --program-surface: #ffffff;
    --program-soft: #f2f6f6;
    --program-pop: #ed613c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: #edf2f2;
    color: var(--program-ink);
    font-family: "Segoe UI", Arial, sans-serif;
}
button, a { font: inherit; }
.program-page {
    --program-accent: #e45436;
    max-width: 1380px;
    min-height: 100vh;
    margin: 0 auto;
    background: #f7f9f8;
    box-shadow: 0 0 60px rgba(17, 40, 46, .08);
}
.program-hero {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    padding: 36px clamp(24px, 5vw, 74px) 55px;
    background: var(--program-accent);
    color: #fff;
}
.program-hero:before,
.program-hero:after {
    content: "";
    position: absolute;
    pointer-events: none;
}
.program-hero:before {
    right: -90px;
    bottom: -320px;
    width: 750px;
    height: 750px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    box-shadow: 0 0 0 55px rgba(255,255,255,.035),
                0 0 0 110px rgba(255,255,255,.03),
                0 0 0 165px rgba(255,255,255,.02);
}
.program-hero:after {
    top: 0;
    right: 10%;
    width: 280px;
    height: 100%;
    transform: skewX(-25deg);
    border-left: 1px solid rgba(255,255,255,.08);
    border-right: 1px solid rgba(255,255,255,.08);
}
.program-hero-top,
.program-hero-content {
    position: relative;
    z-index: 1;
}
.program-hero-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 70px;
}
.program-hero-copy { flex: 1; min-width: 0; }
.program-hero-brand {
    position: relative;
    display: block;
    flex: none;
    width: 180px;
    height: auto;
    min-height: 0;
    align-self: stretch;
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.program-club-logo {
    position: absolute;
    top: 10px;
    left: 10px;
    display: block;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: contain;
}
.program-home {
    color: rgba(255,255,255,.82);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}
.program-home:hover { color: #fff; }
.program-home span { margin-left: 5px; font-size: 17px; }
.program-hero-content {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 28px;
    margin-top: 52px;
}
.program-kicker,
.program-eyebrow,
.program-footer-label {
    margin: 0;
    color: var(--program-pop);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
    line-height: 1.5;
}
.program-hero h1 {
    margin: 7px 0 9px;
    color: #fff;
    font-size: clamp(46px, 6vw, 84px);
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: 1;
}
.program-hero h1 span { color: var(--program-pop); }
.program-hero-lead {
    max-width: 620px;
    margin: 0;
    color: #c9d6d8;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.6;
}
.program-main { padding: 45px clamp(24px, 5vw, 74px) 78px; }
.program-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}
.program-toolbar .program-eyebrow { color: var(--program-accent); }
.program-toolbar h2 {
    margin: 6px 0 0;
    font-size: clamp(25px, 3vw, 37px);
    font-weight: 760;
    letter-spacing: -.04em;
    line-height: 1.15;
}
.program-print {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #d4dfe0;
    border-radius: 10px;
    background: #fff;
    color: var(--program-ink);
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}
.program-print:hover { border-color: var(--program-accent); background: #f2f6f6; }
.program-print svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.program-notice {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 28px;
    padding: 20px 24px;
    border: 1px solid #d5e3e3;
    border-left: 4px solid var(--program-accent);
    border-radius: 12px;
    background: #fff;
    color: #344d56;
    font-size: 14px;
    line-height: 1.6;
}
.program-notice p:first-child { margin-top: 0; }
.program-notice p:last-child { margin-bottom: 0; }
.program-notice-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: var(--program-ink);
    color: #fff;
    font-weight: 800;
}
.program-group {
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid var(--program-line);
    border-radius: 20px;
    background: var(--program-surface);
    box-shadow: 0 12px 35px rgba(14, 49, 56, .05);
}
.program-group-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    border-bottom: 1px solid var(--program-line);
    background: #fff;
}
.program-group-number {
    display: grid;
    place-items: center;
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: #edf2f3;
    color: var(--program-accent);
    font-size: 20px;
    font-weight: 800;
}
.program-group-title { min-width: 0; flex: 1; }
.program-group-title .program-eyebrow { color: var(--program-accent); }
.program-group-title h2 {
    margin: 3px 0 0;
    font-size: clamp(22px, 2.5vw, 31px);
    font-weight: 760;
    letter-spacing: -.035em;
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.program-group-code {
    flex: none;
    max-width: 150px;
    padding: 8px 12px;
    border: 1px solid var(--program-line);
    border-radius: 9px;
    color: #52666d;
    font-size: 12px;
    font-weight: 800;
    overflow-wrap: anywhere;
}
.program-group-body { padding: 0 32px 32px; }
.program-description {
    max-width: 1000px;
    padding: 25px 0 20px;
    color: #43565e;
    font-size: 15px;
    line-height: 1.72;
    overflow-wrap: anywhere;
}
.program-description > :first-child { margin-top: 0; }
.program-description > :last-child { margin-bottom: 0; }
.program-description h2,
.program-description h3,
.program-description h4 {
    margin: 1.45em 0 .45em;
    color: var(--program-ink);
    font-weight: 750;
    line-height: 1.25;
}
.program-description h2 { font-size: 21px; }
.program-description h3 { font-size: 18px; }
.program-description h4 { font-size: 16px; }
.program-description p { margin: 0 0 14px; }
.program-description ul,
.program-description ol { margin: 0 0 16px; padding-left: 24px; }
.program-description li { margin: 5px 0; padding-left: 3px; }
.program-description a { color: #146c79; text-underline-offset: 3px; }
.program-description table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}
.program-description th,
.program-description td { padding: 7px 10px; border: 1px solid var(--program-line); }
.program-team-list { display: grid; gap: 15px; }
.program-team {
    overflow: hidden;
    border: 1px solid #dce6e7;
    border-radius: 15px;
    background: #fcfdfd;
}
.program-team-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 22px 24px;
    border-bottom: 1px solid #e2e9e9;
}
.program-team-identity { min-width: 0; }
.program-team-code {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--program-accent);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.program-team-identity h3 {
    margin: 0;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 750;
    letter-spacing: -.025em;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.program-price {
    flex: none;
    min-width: 100px;
    text-align: right;
}
.program-price span,
.program-detail-label {
    display: block;
    color: #7a8a90;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
}
.program-price strong {
    display: block;
    margin-top: 4px;
    color: var(--program-ink);
    font-size: 18px;
    font-weight: 800;
}
.program-team-details {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 45px;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e9e9;
}
.program-detail strong {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    font-weight: 700;
}
.program-team-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr);
    gap: 20px 38px;
    padding: 20px 24px 24px;
}
.program-team-bottom h4 {
    margin: 0 0 13px;
    color: #607179;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.program-schedule-row {
    display: grid;
    grid-template-columns: 100px 135px minmax(0, 1fr);
    gap: 8px 14px;
    padding: 10px 0;
    border-top: 1px solid #e6ecec;
    font-size: 13px;
    line-height: 1.4;
}
.program-schedule-row:first-of-type { border-top: 0; padding-top: 0; }
.program-day { font-weight: 750; }
.program-time { color: #314b54; }
.program-location { color: #73848b; overflow-wrap: anywhere; }
.program-location:empty { display: none; }
.program-instructor {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid #e6ecec;
    font-size: 13px;
    line-height: 1.4;
}
.program-instructor:first-of-type { border-top: 0; padding-top: 0; }
.program-instructor span { color: #73848b; }
.program-instructor strong { font-weight: 700; text-align: right; }
.program-comma:last-child { display: none; }
.program-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    min-height: 175px;
    padding: 38px clamp(24px, 5vw, 74px);
    background: #142932;
    color: #fff;
}
.program-footer-label { color: #ef8a6d; }
.program-footer p { margin: 7px 0 0; color: #cbd7d8; font-size: 14px; }
.program-footer img {
    display: block;
    max-width: 180px;
    max-height: 65px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

@media (max-width: 850px) {
    .program-team-bottom { grid-template-columns: 1fr; }
    .program-schedule-row { grid-template-columns: 95px 120px minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .program-hero-content { flex-direction: column; }
    .program-hero-brand { align-self: flex-end; height: 102px; margin-top: 0; }
}
@media (max-width: 600px) {
    .program-hero { min-height: 0; padding: 24px 20px 38px; }
    .program-hero-top { min-height: 34px; }
    .program-hero-brand { align-self: flex-end; height: 102px; margin-top: 0; }
    .program-home { font-size: 0; }
    .program-home span { font-size: 22px; }
    .program-hero-content { align-items: flex-start; flex-direction: column; gap: 28px; margin-top: 40px; }
    .program-hero-copy { width: 100%; }
    .program-hero h1 { font-size: clamp(36px, 9vw, 52px); overflow-wrap: break-word; }

    .program-main { padding: 32px 14px 56px; }
    .program-toolbar { align-items: flex-start; flex-direction: column; }
    .program-toolbar h2 { font-size: 26px; }
    .program-group { margin-top: 18px; border-radius: 16px; }
    .program-group-heading { gap: 12px; padding: 18px; }
    .program-group-number { width: 40px; height: 40px; font-size: 15px; }
    .program-group-code { padding: 6px 8px; font-size: 10px; }
    .program-group-title h2 { font-size: 20px; }
    .program-group-body { padding: 0 17px 18px; }
    .program-description { padding: 19px 0 15px; font-size: 14px; }
    .program-team-head { align-items: flex-start; padding: 18px; }
    .program-team-details, .program-team-bottom { padding: 17px 18px; }
    .program-schedule-row { grid-template-columns: 1fr 1fr; }
    .program-location { grid-column: 1 / -1; }
    .program-footer { align-items: flex-start; flex-direction: column; min-height: 0; padding: 32px 22px; }
}

@page { size: A4; margin: 13mm; }
@media print {
    body { background: #fff; }
    .program-page { max-width: none; box-shadow: none; background: #fff; }
    .program-hero { min-height: 0; padding: 0 0 15mm; background: #fff; color: #172631; }
    .program-hero:before, .program-hero:after, .program-home, .program-print { display: none !important; }
    .program-hero-brand { margin-top: 0; padding: 0; background: transparent; box-shadow: none; }
    .program-club-logo { max-height: 25mm; }
    .program-hero-content { margin-top: 8mm; }
    .program-hero h1 { color: #172631; font-size: 38pt; }
    .program-hero-lead { color: #52646b; }

    .program-main { padding: 0; }
    .program-toolbar { margin-bottom: 7mm; }
    .program-group { margin-top: 7mm; border-radius: 0; box-shadow: none; }
    .program-group-heading { break-after: avoid; }
    .program-team { break-inside: avoid; }
    .program-footer { margin-top: 10mm; min-height: 0; padding: 5mm 0; background: #fff; color: #172631; border-top: 1px solid #dce5e6; }
    .program-footer p { color: #52646b; }
    .program-footer img { padding: 0; }
}
