/* Change Management — How we'll work together */
.cm-work {
    background: #fff;
    padding: 120px 20px;
    box-sizing: border-box;
}
.cm-work__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}
.cm-work__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.cm-work__title {
    margin: 0;
    max-width: 736px;
    font-family: 'avenir_next_worldbold', 'Verdana';
    font-weight: normal;
    font-size: 40px;
    line-height: 48px;
    color: #333;
}
.cm-work__subtitle {
    margin: 0;
    max-width: 736px;
    font-family: 'avenir_next_worldmedium', 'Verdana';
    font-weight: normal;
    font-size: 16px;
    line-height: 28px;
    color: #707070;
}

/* Tabs */
.cm-work__tabs {
    display: inline-flex;
    gap: 8px;
    padding: 8px;
    border: 1px solid #e6e6e6;
    border-radius: 40px;
    box-sizing: border-box;
}
.cm-work__tab {
    margin: 0;
    padding: 12px 20px;
    border: none;
    border-radius: 48px;
    background: transparent;
    font-family: 'avenir_next_worlddemi', 'Verdana';
    font-weight: normal;
    font-size: 14px;
    line-height: 20px;
    color: #707070;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.cm-work__tab.is-active, .cm-work__tab:focus {
    background: #333;
    color: #fff;
    outline: none;
}

/* Panels */
.cm-work__panels {
    width: 100%;
    position: relative;
    transition: height 0.3s ease;
}
.cm-work__panels.is-animating {
    overflow: hidden;
}
.cm-work__panel {
    display: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.cm-work__panel.is-active {
    display: block;
    opacity: 1;
    transform: none;
}
/* transient states used by work.js for the crossfade */
.cm-work__panel.is-leaving {
    opacity: 0;
    transform: translateY(-6px);
}
.cm-work__panel.is-entering {
    opacity: 0;
    transform: translateY(6px);
}
@media (prefers-reduced-motion: reduce) {
    .cm-work__panels,
    .cm-work__panel {
        transition: none;
    }
}

/* Per-tab short description */
.cm-work__panel-desc {
    margin: 0 auto 20px auto;
    /* max-width: 736px; */
    font-family: 'avenir_next_worldmedium', 'Verdana';
    font-weight: normal;
    font-size: 16px;
    line-height: 28px;
    color: #707070;
    text-align: center;
}

/* Steps grid */
.cm-work__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #e6e6e6;
}
.cm-work__step {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 48px 32px 32px 32px;
    border-right: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
    box-sizing: border-box;
}
.cm-work__step:nth-child(4n+1) {
    padding-left: 0;
}
.cm-work__step:nth-child(4n) {
    padding-right: 0;
    border-right: none;
}
/* 5-up variant — Small & Mid-Sized schools tab */
.cm-work__grid--5 {
    grid-template-columns: repeat(5, 1fr);
}
.cm-work__grid--5 .cm-work__step:nth-child(4n+1) {
    padding-left: 32px;
}
.cm-work__grid--5 .cm-work__step:nth-child(4n) {
    padding-right: 32px;
    border-right: 1px solid #e6e6e6;
}
.cm-work__grid--5 .cm-work__step:nth-child(5n+1) {
    padding-left: 0;
}
.cm-work__grid--5 .cm-work__step:nth-child(5n) {
    padding-right: 0;
    border-right: none;
}
.cm-work__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 5.333px;
    font-family: 'avenir_next_worlddemi', 'Verdana';
    font-weight: normal;
    font-size: 12px;
    line-height: 20px;
    color: #333;
}
.cm-work__num--blue   { background: #7feaf6; }
.cm-work__num--yellow { background: #ffdb7f; }
.cm-work__num--green  { background: #c8e487; }
.cm-work__num--pink   { background: #ffb5c9; }
.cm-work__num--teal   { background: #82e8d3; }
.cm-work__num--violet { background: #c3c3ff; }
.cm-work__step-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cm-work__step-title {
    margin: 0;
    font-family: 'avenir_next_worldbold', 'Verdana';
    font-weight: normal;
    font-size: 16px;
    line-height: 24px;
    color: #333;
}
.cm-work__step-desc {
    margin: 0;
    font-family: 'avenir_next_worldmedium', 'Verdana';
    font-weight: normal;
    font-size: 14px;
    line-height: 24px;
    color: #707070;
}
/* iPad Pro (992–1024): tighten spacing, heading -2px */
@media (min-width: 992px) and (max-width: 1024px) {
    .cm-work {
        padding: 88px 20px;
    }
    .cm-work__title {
        font-size: 38px;
    }
}
@media (max-width: 991px) {
    .cm-work {
        padding: 48px 16px;
    }
    .cm-work__title {
        font-size: 28px;
        line-height: 36px;
    }
    .cm-work__step{
        padding: 32px 20px 20px 20px;
    }
    .cm-work__grid--5 .cm-work__step:nth-child(4n+1) {
        padding-left: 20px;
    }
    .cm-work__grid--5 .cm-work__step:nth-child(4n) {
        padding-right: 20px;
    }
    .cm-work__grid--5 .cm-work__step:nth-child(5n+1) {
        padding-left: 0;
    }
    .cm-work__grid--5 .cm-work__step:nth-child(5n) {
        padding-right: 0;
    }
}
/* Mobile: stacked centered steps, full-width tabs */
@media (max-width: 767px) {
    .cm-work {
        padding: 48px 16px;
    }
    .cm-work__inner {
        gap: 32px;
    }
    .cm-work__title {
        font-size: 28px;
        line-height: 36px;
    }
    .cm-work__tabs {
        display: flex;
        /* flex-direction: column; */
        width: 100%;
        max-width: 480px;
    }
    .cm-work__tab {
        flex: 1 1 0;
        padding: 8px 8px;
        white-space: normal;
        font-size: 12px;
        line-height: 18px;
    }
    .cm-work__panel-desc {
        margin-bottom: 25px;
        font-size: 14px;
        line-height: 24px;
    }
    .cm-work__grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
        border-top: none;
    }
    .cm-work__step {
        padding: 0;
        border: none;
        align-items: center;
        text-align: center;
    }
    .cm-work__step:nth-child(4n+1),
    .cm-work__step:nth-child(4n) {
        padding: 0;
    }
    .cm-work__grid--5 .cm-work__step:nth-child(4n+1),
    .cm-work__grid--5 .cm-work__step:nth-child(4n),
    .cm-work__grid--5 .cm-work__step:nth-child(5n+1),
    .cm-work__grid--5 .cm-work__step:nth-child(5n) {
        padding: 0;
        border: none;
    }
    .cm-work__step-text {
        align-items: center;
    }
}
