/* Student stories share the site's type and controls, with their own blue editorial layout. */
.ck-cases,
.ck-case-detail {
    --case-navy: #08244d;
    --case-blue: #1748cb;
    --case-text: #314763;
    --case-line: #dce7f7;
    --case-tint: #f2f7ff;
}

.ck-cases-banner {
    color: #fff;
    background: linear-gradient(90deg, #09264df2 0%, #103667d1 42%, #173e782e 90%),
        url("career-city.webp") center 44% / cover no-repeat #123d76;
}

.ck-cases-intro {
    padding-block: 44px 102px;
}

.ck-cases-intro h1,
.ck-case-hero h1 {
    max-width: 690px;
    margin: 14px 0 18px;
    color: #fff;
    font-size: clamp(36px, 5vw, 65px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.ck-cases-intro > p {
    max-width: 510px;
    margin: 0;
    color: #e2edff;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.8;
}

.ck-cases-intro .ck-breadcrumb,
.ck-case-hero .ck-breadcrumb {
    margin: 0 0 22px;
    color: #e1edff;
    font-size: 13px;
    line-height: 1.6;
}

.ck-cases-intro .ck-breadcrumb a,
.ck-case-hero .ck-breadcrumb a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: .23em;
}

.ck-cases-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.ck-cases .ck-case-button-outline {
    border: 1px solid #adc6ed;
    color: #fff;
    background: #12336050;
}

.ck-cases .ck-case-button-outline:hover {
    background: #1748cb;
}

.ck-case-library {
    padding-block: clamp(42px, 7vw, 88px) 56px;
    scroll-margin-top: 30px;
}

.ck-case-section-heading {
    max-width: 700px;
    margin: 0 auto 26px;
    text-align: center;
}

.ck-case-section-heading h2,
.ck-case-related h2 {
    margin: 0 0 9px;
    color: var(--case-navy);
    font-size: clamp(28px, 3.5vw, 43px);
    font-weight: 800;
    letter-spacing: -.02em;
}

.ck-case-section-heading p {
    margin: 0;
    color: var(--case-text);
    font-size: 16px;
}

.ck-case-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 28px;
}

.ck-case-filters a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 7px 15px;
    border: 1px solid var(--case-line);
    border-radius: 50px;
    background: #fff;
    color: var(--case-navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.ck-case-filters a:hover {
    border-color: var(--case-blue);
    color: var(--case-blue);
}

.ck-case-filters a[aria-current="true"] {
    border-color: var(--case-blue);
    background: var(--case-blue);
    color: #fff;
}

.ck-case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 26px);
}

.ck-case-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--case-line);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 26px #0a34630d;
}

.ck-case-card > a {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    color: inherit;
}

.ck-case-card:focus-within {
    outline: 3px solid var(--case-blue);
    outline-offset: 3px;
}

.ck-case-card-image,
.ck-case-hero-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #173e78;
}

.ck-case-cover {
    background-image: url("brand-skyline.webp");
    background-position: 65% center;
    background-size: cover;
}

.ck-case-card:nth-child(3n + 2) .ck-case-cover {
    background-image: url("career-mountain.webp");
    background-position: 58% center;
}

.ck-case-card:nth-child(3n + 3) .ck-case-cover {
    background-image: url("brand-skyline.webp");
    background-position: center;
}

.ck-case-card-image img,
.ck-case-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ck-case-portrait img {
    object-position: center 39%;
}

.ck-case-card-image-label {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 4px;
    padding: 26px 16px 12px;
    background: linear-gradient(transparent, #051736ed);
    color: #fff;
    line-height: 1.35;
}

.ck-case-card-image-label strong {
    font-size: 17px;
    font-weight: 800;
}

.ck-case-card-image-label span,
.ck-case-hero-image figcaption {
    color: #f0f6ff;
    font-size: 11px;
    font-weight: 600;
}

.ck-case-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px 19px 19px;
}

.ck-case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 11px;
}

.ck-case-tags span {
    padding: 4px 9px;
    border-radius: 6px;
    background: #ebf3ff;
    color: #11448f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.ck-case-tags .ck-case-preview-label {
    color: #743e15;
    background: #fff4df;
}

.ck-case-card h3 {
    margin: 0 0 6px;
    color: var(--case-navy);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 800;
    line-height: 1.35;
}

.ck-case-background {
    margin: 0 0 9px;
    color: var(--case-text);
    font-size: 14px;
    font-weight: 650;
}

.ck-case-excerpt {
    margin: 5px 0 11px;
    padding-top: 10px;
    border-top: 1px solid var(--case-line);
    color: var(--case-text);
    font-size: 14px;
    line-height: 1.67;
}

.ck-case-card-link,
.ck-case-back {
    width: fit-content;
    color: var(--case-blue);
    font-size: 14px;
    font-weight: 800;
}

.ck-case-card-link {
    margin-top: auto;
    padding-top: 9px;
}

.ck-case-card a:hover .ck-case-card-link {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ck-case-invite {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 315px;
    padding: clamp(20px, 3vw, 32px);
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(145deg, #193b785c, #09214af0),
        url("career-mountain.webp") center/cover no-repeat #154396;
}

.ck-case-invite h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
}

.ck-case-invite p {
    margin: 0 0 20px;
    color: #e9f1ff;
    font-size: 15px;
}

.ck-case-empty {
    padding: clamp(28px, 5vw, 60px);
    border: 1px solid var(--case-line);
    border-radius: 20px;
    background: linear-gradient(130deg, #f5f8fd, #eef5ff);
    text-align: center;
}

.ck-case-empty h3 {
    margin: 0;
    color: var(--case-navy);
    font-size: 24px;
}

.ck-case-empty p {
    margin: 8px 0 18px;
    color: var(--case-text);
}

.ck-case-note {
    margin: 20px 0 0;
    padding: 11px 14px;
    border-left: 3px solid #8eb3ed;
    background: var(--case-tint);
    color: var(--case-text);
    font-size: 13px;
    line-height: 1.65;
}

.ck-case-hero {
    color: #fff;
    background: linear-gradient(117deg, #071e41, #143b72 75%, #195ca4);
}

.ck-case-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    align-items: center;
    gap: clamp(24px, 5vw, 76px);
    padding-block: clamp(34px, 6vw, 75px);
}

.ck-case-hero h1 {
    font-size: clamp(32px, 4.1vw, 56px);
}

.ck-case-hero-image {
    margin: 0;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    box-shadow: 0 16px 40px #03193560;
}

.ck-case-hero-image figcaption {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 7px;
    border-radius: 4px;
    background: #07234cd9;
}

.ck-case-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin: 0 0 22px;
}

.ck-case-facts > div {
    min-width: 0;
    padding: 9px 11px;
    border: 1px solid #9ebce84d;
    border-radius: 8px;
    background: #fff1;
}

.ck-case-facts dt {
    margin-bottom: 3px;
    color: #d0e3ff;
    font-size: 12px;
    font-weight: 600;
}

.ck-case-facts dd {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.ck-case-article {
    max-width: 900px;
    padding-block: clamp(36px, 7vw, 82px) 46px;
}

.ck-case-article-content {
    color: var(--case-text);
    font-size: 17px;
    line-height: 1.85;
}

.ck-case-article-content h2 {
    margin: 0 0 11px;
    padding-left: 12px;
    border-left: 4px solid var(--case-blue);
    color: var(--case-navy);
    font-size: clamp(23px, 3vw, 30px);
    font-weight: 800;
}

.ck-case-article-content > :not(:first-child):is(h2, section),
.ck-case-section + .ck-case-section {
    margin-top: 36px;
}

.ck-case-article-content p,
.ck-case-article-content ul,
.ck-case-article-content ol {
    margin-block: 0 14px;
}

.ck-case-article-content img {
    display: block;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
}

.ck-case-article-content .ck-case-challenges,
.ck-case-article-content .ck-case-plan,
.ck-case-article-content .ck-case-timeline {
    padding-left: 0;
    list-style: none;
}

.ck-case-challenges li,
.ck-case-plan li {
    position: relative;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--case-line);
    border-radius: 9px;
    background: var(--case-tint);
    counter-increment: case-step;
}

.ck-case-challenges,
.ck-case-plan {
    display: grid;
    gap: 9px;
    counter-reset: case-step;
}

.ck-case-plan {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ck-case-challenges li::before,
.ck-case-plan li::before {
    content: counter(case-step);
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 50%;
    background: #dfeafe;
    color: var(--case-blue);
    font-size: 12px;
    font-weight: 800;
}

.ck-case-article-content .ck-case-timeline {
    margin-left: 5px;
    border-left: 2px solid var(--case-line);
}

.ck-case-timeline li {
    position: relative;
    padding: 4px 0 12px 18px;
}

.ck-case-timeline li::before {
    position: absolute;
    top: 13px;
    left: -6px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--case-blue);
    border-radius: 50%;
    background: #fff;
    content: "";
}

.ck-case-article-content :is(.ck-case-challenges, .ck-case-plan, .ck-case-timeline) p {
    margin: 0;
}

.ck-case-review-note {
    margin: 0 0 26px;
    padding: 13px 15px;
    border: 1px solid #ebd8ba;
    border-radius: 8px;
    background: #fff8ec;
    color: #604012;
    font-size: 14px;
}

.ck-case-back {
    display: inline-block;
    margin-top: 24px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ck-case-related {
    padding-bottom: 54px;
}

.ck-case-related h2 {
    margin-bottom: 20px;
    font-size: clamp(26px, 3vw, 33px);
}

.ck-case-card,
.ck-case-card-image img {
    transition: transform 180ms ease, box-shadow 180ms ease;
}

@media (hover: hover) {
    .ck-case-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 33px #0a346321;
    }
}

@media (max-width: 910px) {
    .ck-case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 730px) {
    .ck-case-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .ck-case-hero-image {
        aspect-ratio: 16 / 8;
    }
}

@media (max-width: 570px) {
    .ck-cases-banner {
        background-image: linear-gradient(90deg, #09264df5 0%, #123667c9 76%),
            url("career-city.webp");
        background-position: 62% center;
    }

    .ck-cases-intro {
        padding-block: 26px 72px;
    }

    .ck-case-grid,
    .ck-case-plan {
        grid-template-columns: minmax(0, 1fr);
    }

    .ck-case-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ck-case-invite {
        min-height: 210px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ck-case-card,
    .ck-case-card-image img {
        transition: none;
    }
}
