.program-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.program-summary-card,
.grade-detail,
.schedule-grid article {
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 35, 61, 0.08);
    box-shadow: var(--shadow-sm);
}

.program-summary-card,
.schedule-grid article {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.program-summary-card h3 {
    margin-bottom: 14px;
    min-height: 64px;
    display: flex;
    align-items: center;
}

.program-summary-card p,
.schedule-grid article p {
    line-height: 1.75;
}

.program-summary-grid .program-summary-card {
    padding: 30px 28px;
}

.program-summary-grid .program-summary-card p {
    max-width: 26ch;
}

.grade-stack {
    display: grid;
    gap: 22px;
}

.grade-detail {
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    gap: 28px;
    align-items: center;
}

.grade-detail.reverse .grade-copy {
    order: 2;
}

.grade-detail.reverse .grade-visual {
    order: 1;
}

.grade-badge {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 107, 53, 0.12);
    color: var(--secondary);
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    justify-self: start;
    width: fit-content;
}

.grade-copy h2 {
    margin: 18px 0 14px;
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

.grade-visual img {
    width: 100%;
    min-height: 340px;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.schedule-panel {
    display: grid;
    gap: 30px;
    padding: 48px 40px 40px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(233, 240, 247, 0.72), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(16, 35, 61, 0.08);
}

.schedule-panel > div:first-child {
    display: grid;
    gap: 14px;
    max-width: 900px;
}

.schedule-panel .section-kicker {
    padding: 12px 18px;
    font-size: 0.88rem;
}

.schedule-panel h2 {
    max-width: 880px;
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.12;
}

.section-heading.center {
    justify-items: center;
}

.section-heading.center .section-kicker {
    justify-self: center;
}

.section-heading.center h2 {
    max-width: 940px;
    text-wrap: balance;
}

.schedule-grid article strong {
    display: block;
    margin-bottom: 14px;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.schedule-grid article {
    padding: 32px 28px;
    border-radius: 28px;
}

.schedule-grid article p {
    font-size: 1.02rem;
    line-height: 1.8;
}

@media (max-width: 1080px) {
    .program-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grade-detail {
        grid-template-columns: 1fr;
    }

    .grade-detail.reverse .grade-copy,
    .grade-detail.reverse .grade-visual {
        order: initial;
    }
}

@media (max-width: 700px) {
    .program-summary-grid,
    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .schedule-panel {
        padding: 28px 24px 24px;
    }

    .schedule-grid article {
        padding: 28px 24px;
    }
}

.grade-actions {
    margin-top: 24px;
}

.grade-read-more {
    width: fit-content;
}

.program-detail-hero {
    padding-bottom: 56px;
}

.program-detail-layout {
    display: flex;
    gap: 32px;
    align-items: start;
}

.program-detail-main,
.program-sidebar-card {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(16, 35, 61, 0.08);
    box-shadow: var(--shadow-sm);
}

.program-detail-main {
    flex: 1 1 0;
    min-width: 0;
    display: grid;
    gap: 24px;
}

.program-detail-media img {
    width: 100%;
    min-height: 360px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.program-detail-copy {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.program-detail-copy h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
    max-width: 14ch;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.program-detail-rich {
    margin-top: 8px;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.program-detail-rich p,
.program-detail-rich li,
.program-detail-rich blockquote,
.program-detail-copy p,
.program-detail-copy li {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.program-detail-sidebar {
    flex: 0 0 320px;
    width: 320px;
    max-width: 100%;
    position: sticky;
    top: 110px;
    display: grid;
    gap: 18px;
}

.program-sidebar-card {
    display: grid;
    gap: 16px;
}

.program-sidebar-card h3 {
    margin: 0;
    color: var(--primary);
}

.program-sidebar-list {
    display: grid;
    gap: 12px;
}

.program-sidebar-list a {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(14, 47, 86, 0.05);
    border: 1px solid rgba(16, 35, 61, 0.08);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.program-sidebar-list a:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 107, 53, 0.25);
    box-shadow: var(--shadow-sm);
}

.program-sidebar-list strong {
    color: var(--primary);
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.program-sidebar-list span {
    color: var(--text);
    font-weight: 700;
    line-height: 1.55;
}

@media (max-width: 1240px) {
    .program-detail-layout {
        flex-direction: column;
    }

    .program-detail-sidebar {
        width: 100%;
        position: static;
    }
}
