/* Career Fixx — home "Career Toolkit" section (light by default, dark overrides below) */

.cfx-tk {
    --tk-card: #ffffff;
    --tk-line: #eee9f8;
    --tk-ink: #16122b;
    --tk-text: #5f5a78;
    --tk-chip: #f4effe;
    --tk-accent: #6d28d9;
    --tk-shadow: 0 14px 34px rgba(60, 30, 130, .08);
}
html[data-theme="dark"] .cfx-tk {
    --tk-card: #17132a;
    --tk-line: #2e2650;
    --tk-ink: #f4f1ff;
    --tk-text: #c8c1e2;
    --tk-chip: #221c3d;
    --tk-accent: #d8b4fe;
    --tk-shadow: 0 14px 34px rgba(0, 0, 0, .3);
}

.cfx-tk .cfx-tk-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.cfx-tk-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 16px;
    border: 1px solid var(--tk-line);
    border-radius: 999px;
    background: var(--tk-card);
    color: var(--tk-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.cfx-tk .cfx-tk-head .title { margin: 0 0 10px; color: var(--tk-ink); }
.cfx-tk .cfx-tk-head p { margin: 0; color: var(--tk-text); font-size: 16px; text-align: center; }

/* ── Three tool cards ───────────────────────────────────────────────── */
.cfx-tk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cfx-tk-card {
    --tone: #7c3aed;
    --tint: rgba(124, 58, 237, .12);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    padding: 30px 28px;
    border: 1px solid var(--tk-line);
    border-radius: 28px;
    background: linear-gradient(180deg, var(--tint), transparent 46%), var(--tk-card);
    box-shadow: var(--tk-shadow);
    transition: transform .3s ease, border-color .3s ease;
}
.cfx-tk-card.is-rose { --tone: #db2777; --tint: rgba(219, 39, 119, .11); }
.cfx-tk-card.is-teal { --tone: #0f766e; --tint: rgba(13, 148, 136, .13); }
.cfx-tk-card:hover { border-color: var(--tone); transform: translateY(-6px); }
.cfx-tk-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    border-radius: 18px;
    background: var(--tone);
    box-shadow: 0 10px 22px var(--tint);
    color: #fff;
    font-size: 25px;
}
.cfx-tk .cfx-tk-card h3 { margin: 0 0 8px; color: var(--tk-ink); font-size: 22px; }
.cfx-tk .cfx-tk-card p { margin: 0 0 18px; color: var(--tk-text); font-size: 15px; line-height: 1.7; text-align: left; }
.cfx-tk .cfx-tk-card ul { margin: 0 0 24px; padding: 0; list-style: none; }
.cfx-tk .cfx-tk-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    color: var(--tk-ink);
    font-size: 14px;
    font-weight: 600;
}
.cfx-tk-card li i { color: var(--tone); font-size: 16px; }
.cfx-tk-card > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--tk-ink);
    font-size: 15px;
    font-weight: 700;
}
.cfx-tk-card > a::after { content: ''; position: absolute; inset: 0; } /* whole card is clickable */
.cfx-tk-card > a i { transition: transform .25s ease; }
.cfx-tk-card:hover > a i { transform: translateX(5px); }
html[data-theme="dark"] .cfx-tk-card li i { color: var(--tk-accent); }

/* ── Learning path ──────────────────────────────────────────────────── */
.cfx-tk-path {
    margin-top: 24px;
    padding: 30px 28px 32px;
    border: 1px solid var(--tk-line);
    border-radius: 28px;
    background: var(--tk-card);
    box-shadow: var(--tk-shadow);
}
.cfx-tk-path-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 30px; }
.cfx-tk .cfx-tk-path-head h3 { margin: 0; color: var(--tk-ink); font-size: 22px; }
.cfx-tk-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #9b3cf6, #6d28d9);
    box-shadow: 0 10px 22px rgba(109, 40, 217, .25);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}
.cfx-tk-btn:hover { color: #fff; }
.cfx-tk .cfx-tk-path ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.cfx-tk .cfx-tk-path li { position: relative; margin: 0; text-align: center; }
/* dashed link from one step to the next */
.cfx-tk-path li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    left: calc(50% + 44px);
    width: calc(100% - 64px);
    border-top: 2px dashed #d6c6fb;
}
html[data-theme="dark"] .cfx-tk-path li:not(:last-child)::after { border-color: var(--tk-line); }
.cfx-tk-step {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--tk-chip);
    color: var(--tk-accent);
    font-size: 24px;
}
.cfx-tk-step b {
    position: absolute;
    top: -4px;
    right: -4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid var(--tk-card);
    border-radius: 50%;
    background: #6d28d9;
    color: #fff;
    font-size: 12px;
}
.cfx-tk .cfx-tk-path h4 { margin: 0 0 4px; color: var(--tk-ink); font-size: 16px; }
.cfx-tk .cfx-tk-path li p { margin: 0; color: var(--tk-text); font-size: 14px; line-height: 1.6; text-align: center; }

/* ── Richer card and path styling ───────────────────────────────────── */
.cfx-tk-card { padding-top: 34px; isolation: isolate; }
.cfx-tk-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--tone), color-mix(in srgb, var(--tone) 35%, #fff));
}
.cfx-tk-card:hover { box-shadow: 0 24px 48px color-mix(in srgb, var(--tone) 22%, transparent); }
.cfx-tk .cfx-tk-card .cfx-tk-mark {
    position: absolute;
    right: -22px;
    bottom: -26px;
    z-index: -1;
    color: var(--tone);
    font-size: 150px;
    opacity: .08;
    transform: rotate(-12deg);
    transition: transform .35s ease, opacity .35s ease;
}
.cfx-tk .cfx-tk-card:hover .cfx-tk-mark { opacity: .14; transform: rotate(0) scale(1.06); }
.cfx-tk-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-bottom: 20px; }
.cfx-tk-top .cfx-tk-icon {
    width: 64px;
    height: 64px;
    margin: 0;
    border-radius: 20px;
    background: linear-gradient(140deg, color-mix(in srgb, var(--tone) 70%, #fff), var(--tone));
    box-shadow: 0 12px 24px color-mix(in srgb, var(--tone) 35%, transparent), inset 0 1px 0 rgba(255, 255, 255, .45);
    font-size: 27px;
}
.cfx-tk-tag {
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--tint);
    color: var(--tone);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}
html[data-theme="dark"] .cfx-tk-tag { color: var(--tk-ink); }
.cfx-tk .cfx-tk-card ul { display: flex; flex-wrap: wrap; gap: 8px; }
.cfx-tk .cfx-tk-card li { gap: 7px; margin: 0; padding: 5px 12px; border: 1px solid var(--tk-line); border-radius: 999px; background: var(--tk-card); font-size: 13px; }
.cfx-tk-card > a {
    padding: 11px 22px;
    border-radius: 999px;
    background: var(--tint);
    transition: background .25s ease, color .25s ease;
}
.cfx-tk-card:hover > a { background: var(--tone); color: #fff; }

/* Learning path: a soft lavender panel with one white tile per step */
.cfx-tk .cfx-tk-path {
    border-color: #e6dcfb;
    background: radial-gradient(55% 110% at 100% 0%, rgba(236, 72, 153, .10), transparent 70%), radial-gradient(55% 110% at 0% 100%, rgba(124, 58, 237, .12), transparent 70%), #fbf9ff;
}
.cfx-tk .cfx-tk-path ol { gap: 18px; }
.cfx-tk .cfx-tk-path li {
    padding: 22px 16px 20px;
    border: 1px solid var(--tk-line);
    border-radius: 20px;
    background: var(--tk-card);
    box-shadow: 0 8px 20px rgba(60, 30, 130, .07);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.cfx-tk .cfx-tk-path li:hover { border-color: #c4a8fa; box-shadow: 0 16px 30px rgba(109, 40, 217, .16); transform: translateY(-4px); }
/* arrow bead between neighbouring tiles */
.cfx-tk .cfx-tk-path li:not(:last-child)::after {
    content: '\203A';
    top: 50%;
    left: auto;
    right: -20px;
    z-index: 1;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #9b3cf6, #6d28d9);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 19px;
}
.cfx-tk .cfx-tk-path .cfx-tk-step { background: linear-gradient(145deg, #f6f1ff, #e9defd); box-shadow: inset 0 0 0 1px #ddd0fb; }
.cfx-tk .cfx-tk-path .cfx-tk-step b { background: linear-gradient(135deg, #9b3cf6, #6d28d9); }
html[data-theme="dark"] .cfx-tk .cfx-tk-path {
    border-color: var(--tk-line);
    background: radial-gradient(55% 110% at 100% 0%, rgba(236, 72, 153, .14), transparent 70%), radial-gradient(55% 110% at 0% 100%, rgba(124, 58, 237, .2), transparent 70%), #131022;
}
html[data-theme="dark"] .cfx-tk .cfx-tk-path li { box-shadow: none; }
html[data-theme="dark"] .cfx-tk .cfx-tk-path .cfx-tk-step { background: var(--tk-chip); box-shadow: inset 0 0 0 1px var(--tk-line); }

@media (max-width: 991.98px) {
    .cfx-tk-grid { grid-template-columns: minmax(0, 1fr); }
    .cfx-tk .cfx-tk-path ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cfx-tk .cfx-tk-path li::after { display: none; }
}
@media (max-width: 575.98px) {
    .cfx-tk-card, .cfx-tk-path { padding: 24px 20px; }
    .cfx-tk .cfx-tk-path ol { grid-template-columns: minmax(0, 1fr); }
    .cfx-tk-btn { justify-content: center; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .cfx-tk-card, .cfx-tk-card > a, .cfx-tk-card > a i, .cfx-tk .cfx-tk-card .cfx-tk-mark, .cfx-tk .cfx-tk-path li { transition: none; }
    .cfx-tk-card:hover, .cfx-tk .cfx-tk-path li:hover { transform: none; }
}
