.cb-education-filter {
    color: #163642;
    background: #163642;
    font: inherit;
    margin:0 0 50px;
}

.cb-education-filter *,
.cb-education-filter *::before,
.cb-education-filter *::after {
    box-sizing: border-box;
}

.cb-education-filter__panel {
    padding: clamp(28px, 4vw, 48px);
    border-radius: 20px 0 20px 0;
    background: #fff;
}

.cb-education-filter__panel[hidden],
.cb-education-filter__result[hidden],
.cb-education-filter__empty[hidden] {
    display: none;
}

.cb-education-filter__step {
    margin: 0 0 24px;
    color: #00759a;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cb-education-filter__title {
    margin: 0 0 22px;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    line-height: 1.15;
}

.cb-education-filter__title:focus {
    outline: 0;
}

.cb-education-filter__back,
.cb-education-filter__restart {
    padding: 0;
    border: 0;
    color: #536c77;
    background: transparent;
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
}

.cb-education-filter__back {
    margin: 0 0 22px;
}

.cb-education-filter__result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.cb-education-filter__options {
    display: grid;
    gap: 12px;
}

.cb-education-filter__options--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cb-education-filter__options--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cb-education-filter__option {
    display: flex;
    min-width: 0;
    min-height: 104px;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border: 1px solid #cfdae0;
    border-radius: 16px 0 16px 0;
    color: inherit;
    background: #fff;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.cb-education-filter__option:hover {
    border-color: #00759a;
    box-shadow: 0 4px 16px rgba(22, 54, 66, .1);
    transform: translateY(-2px);
}

.cb-education-filter__option:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.cb-education-filter__option strong {
    font-size: 1.05rem;
}

.cb-education-filter__option span {
    margin-top: 8px;
    color: #5a717c;
    font-size: .9rem;
}

.cb-education-filter__option--highlight {
    border-color: #ffe000;
    background: #ffe000;
}

.cb-education-filter__option--highlight span {
    color: inherit;
}

.cb-education-filter__option--center {
    min-height: 64px;
    padding: 18px;
    align-items: center;
    text-align: center;
}

.cb-education-filter__selection {
    margin: -10px 0 24px;
    color: #607783;
    font-size: .9375rem;
    line-height: 1.5rem;
}

.cb-education-filter__results {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    justify-content: start;
}

.cb-education-filter__result {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 240px;
    padding: 20px;
    flex-direction: column;
    border: 1px solid #d8e1e5;
    border-radius: 16px 0 16px 0;
    background: #fff;
}

.cb-education-filter__result h3 {
    margin: 20px 0 6px;
    color: #163642;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
}

.cb-education-filter__badge {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 10px 0 10px 0;
    background: #e8f1f5;
    font-weight: 800;
}

.cb-education-filter__badge--yellow { background: #fbf5dc; }
.cb-education-filter__badge--lime { background: #f1f3df; }
.cb-education-filter__badge--green { background: #e9eee3; }
.cb-education-filter__badge--light-blue { background: #e6eef3; }
.cb-education-filter__badge--blue { background: #dfe8ed; }
.cb-education-filter__badge--beige { background: #efe8e0; }
.cb-education-filter__badge--help { background: #dfeef4; color: #00759a; }

.cb-education-filter__outcome {
    margin: 0;
    color: #607783;
    font-size: .8125rem;
    line-height: 1.45;
}

.cb-education-filter__duration {
    width: fit-content;
    margin: auto 0 0;
    padding: 7px 10px 6px;
    border-radius: 4px;
    background: #f3f7f8;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.2;
}

.cb-education-filter__card-link {
    position: static;
}

.cb-education-filter__card-link::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: inherit;
}

.cb-education-filter__result:has(.cb-education-filter__card-link) {
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.cb-education-filter__result:has(.cb-education-filter__card-link):hover {
    border-color: #9cb3bc;
    box-shadow: 0 5px 16px rgba(22, 54, 66, .1);
    transform: translateY(-2px);
}

.cb-education-filter__result:has(.cb-education-filter__card-link:focus-visible) {
    outline: 3px solid #ffe000;
    outline-offset: 3px;
}

.cb-education-filter__card-link:focus-visible {
    outline: 0;
}

.cb-education-filter__help {
    background: #f1f5f6;
}

.cb-education-filter__help h3 {
    max-width: 220px;
    margin-bottom: 4px;
}

.cb-education-filter__button {
    display: inline-block;
    width: fit-content;
    margin-top: 7px;
    padding: 11px 15px;
    border-radius: 8px 0 8px 0;
    color: #fff;
    background: #163642;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
}

.cb-education-filter__button--yellow {
    color: #163642;
    background: #ffe000;
}

.cb-education-filter__empty {
    margin: 24px 0 0;
    padding: 24px;
    border: 1px solid #d8e1e5;
    border-radius: 16px 0 16px 0;
    background: #fff;
    color: #163642;
}

.cb-education-filter__empty-text {
    font-size: .9375rem;
    line-height: 1.5rem;
}

.cb-education-filter__empty-text > :first-child {
    margin-top: 0;
}

.cb-education-filter__empty-text > :last-child {
    margin-bottom: 0;
}

.cb-education-filter__empty-link {
    display: inline-flex;
    align-items: center;
    margin-top: 14px;
    color: #00759a;
    font-size: .9375rem;
    font-weight: 700;
    text-decoration: none;
}

.cb-education-filter__empty-link:hover {
    color: #163642;
    text-decoration: underline;
}

.cb-education-filter__option:focus-visible,
.cb-education-filter__back:focus-visible,
.cb-education-filter__restart:focus-visible,
.cb-education-filter a:focus-visible {
    outline: 3px solid #ffe000;
    outline-offset: 3px;
}

.cb-education-filter__status,
.cb-education-filter__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1260px) {
    
    .cb-education-filter {
        padding:0 30px;
    }
    
}

@media (max-width: 991.98px) {
    .cb-education-filter__options--three,
    .cb-education-filter__results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .cb-education-filter__panel {
        padding: 24px 18px;
    }

    .cb-education-filter__options--two,
    .cb-education-filter__options--three {
        grid-template-columns: 1fr;
    }

    .cb-education-filter__results {
        grid-template-columns: minmax(0, 1fr);
    }

    .cb-education-filter__result-head {
        flex-direction: column;
        gap: 0;
    }

    .cb-education-filter__restart {
        margin-bottom: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cb-education-filter__option {
        transition: none;
    }
}
