/* Career Fixx — home "Success Managers" section */

.cfx-mgr {
    --mgr-card: #ffffff;
    --mgr-line: #eee9f8;
    --mgr-ink: #16122b;
    --mgr-text: #6f6b85;
    --mgr-chip: #f5f1fd;
    --mgr-grad: linear-gradient(135deg, #9b3cf6 0%, #7c3aed 45%, #5b21b6 100%);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(600px 320px at 8% 0%, rgba(155, 60, 246, .09), transparent 70%),
        radial-gradient(520px 300px at 95% 100%, rgba(91, 33, 182, .09), transparent 70%);
}
html[data-theme="dark"] .cfx-mgr {
    --mgr-card: #17132a;
    --mgr-line: #2e2650;
    --mgr-ink: #f4f1ff;
    --mgr-text: #c8c1e2;
    --mgr-chip: #221c3d;
}
.cfx-mgr > .container { position: relative; }

/* ── Floating background glows ──────────────────────────────────────── */
.cfx-mgr-bg { position: absolute; inset: 0; pointer-events: none; }
.cfx-mgr-bg span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .22; animation: cfxMgrDrift 14s ease-in-out infinite; }
.cfx-mgr-bg span:nth-child(1) { width: 260px; height: 260px; top: 8%; left: 6%; background: #9b3cf6; }
.cfx-mgr-bg span:nth-child(2) { width: 220px; height: 220px; top: 40%; right: 8%; background: #5b21b6; animation-duration: 18s; animation-direction: reverse; }
.cfx-mgr-bg span:nth-child(3) { width: 200px; height: 200px; bottom: 4%; left: 42%; background: #a855f7; animation-duration: 22s; }
@keyframes cfxMgrDrift {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ── Scroll reveal (only hides once the script is running) ──────────── */
.cfx-mgr.is-ready .cfx-mgr-reveal { opacity: 0; transition: opacity .7s ease; }
.cfx-mgr.is-ready.is-visible .cfx-mgr-reveal { opacity: 1; transform: none; }
.cfx-mgr.is-ready.is-visible .cfx-mgr-slider { transition-delay: .15s; }
.cfx-mgr.is-ready.is-visible .cfx-mgr-cta { transition-delay: .3s; }

/* ── Heading ────────────────────────────────────────────────────────── */
.cfx-mgr-head { max-width: 640px; margin: 0 auto 20px; text-align: center; }
.cfx-mgr-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--mgr-chip);
    border: 1px solid var(--mgr-line);
    color: #7c3aed;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
html[data-theme="dark"] .cfx-mgr-badge { color: #d8b4fe; }
.cfx-mgr-head .title { margin-bottom: 10px; }
.cfx-mgr-head .description { margin: 0; }

/* ── Slider ─────────────────────────────────────────────────────────── */
/* extra bottom room: side cards sit lower on the arc */
.cfx-mgr-swiper { padding: 30px 0 96px; }
.cfx-mgr-swiper .swiper-slide {
    height: auto;
    transform-origin: 50% 100%;
    transition-property: transform;
    transition-timing-function: cubic-bezier(.34, 1.2, .5, 1);
}

.cfx-mgr-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--mgr-line);
    border-radius: 24px;
    background: var(--mgr-card);
    text-align: center;
    box-shadow: 0 10px 26px rgba(40, 16, 90, .07);
    isolation: isolate;
    transform: scale(.88);
    opacity: .72;
    transition: transform .7s cubic-bezier(.34, 1.4, .5, 1), opacity .6s ease, box-shadow .6s ease, border-color .6s ease;
}
/* gradient fill that opens as a circle behind the name */
.cfx-mgr-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(150deg, #6d28d9 0%, #7c3aed 55%, #5b21b6 100%);
    clip-path: circle(0% at 50% 80%);
    transition: clip-path .8s cubic-bezier(.65, 0, .35, 1);
}
/* light sweep across the centre card */
.cfx-mgr-card::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -80%;
    width: 50%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
    opacity: 0;
}
.swiper-slide-prev .cfx-mgr-card,
.swiper-slide-next .cfx-mgr-card { transform: scale(.94); opacity: .94; }
.swiper-slide-active .cfx-mgr-card {
    transform: scale(1.05);
    opacity: 1;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(155, 60, 246, .32); /* stays inside the slider's padding, so it is not clipped */
}
.swiper-slide-active .cfx-mgr-card::before { clip-path: circle(130% at 50% 80%); }
.swiper-slide-active .cfx-mgr-card::after { opacity: 1; animation: cfxMgrShine 2.6s ease-in-out .6s infinite; }
@keyframes cfxMgrShine {
    0% { left: -80%; }
    60%, 100% { left: 140%; }
}

/* ── Photo: fills the card edge to edge ─────────────────────────────── */
.cfx-mgr-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(160deg, var(--mgr-chip), var(--mgr-line));
}
.cfx-mgr-initials,
.cfx-mgr-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.cfx-mgr-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mgr-ink);
    font-size: 54px;
    font-weight: 700;
}
/* no background: initials stay visible until the photo has loaded; top-anchored so faces are not cut */
.cfx-mgr-photo img {
    object-fit: cover;
    object-position: 50% 0;
    color: transparent;
    transition: transform .9s cubic-bezier(.2, .7, .3, 1);
}
.swiper-slide-active .cfx-mgr-photo img,
.cfx-mgr-card:hover .cfx-mgr-photo img { transform: scale(1.05); }

/* learners chip: frosted pill sitting on the photo */
.cfx-mgr-count {
    position: absolute;
    bottom: 10px;
    left: 50%;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(22, 12, 48, .66);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transform: translateX(-50%);
}

/* ── Name panel under the photo ─────────────────────────────────────── */
.cfx-mgr-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 14px 12px 18px;
}
.cfx-mgr .cfx-mgr-name {
    max-width: 100%;
    margin: 0 0 2px;
    color: var(--mgr-ink);
    font-size: 17px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    transition: color .4s ease;
}
.cfx-mgr-role { color: var(--mgr-text); font-size: 13px; line-height: 1.5; transition: color .4s ease; }
.cfx-mgr .swiper-slide-active .cfx-mgr-name,
.cfx-mgr .swiper-slide-active .cfx-mgr-role { color: #fff; }

/* text rises in one line after another on the centre card */
.swiper-slide-active .cfx-mgr-name { animation: cfxMgrRise .6s ease .2s both; }
.swiper-slide-active .cfx-mgr-role { animation: cfxMgrRise .6s ease .32s both; }
@keyframes cfxMgrRise {
    from { opacity: 0; }
    to { opacity: 1; transform: none; }
}

/* ── Arrows + autoplay timer ────────────────────────────────────────── */
.cfx-mgr-controls { display: flex; align-items: center; justify-content: center; gap: 18px; }
.cfx-mgr-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--mgr-line);
    border-radius: 50%;
    background: var(--mgr-card);
    color: var(--mgr-ink);
    font-size: 18px;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}
.cfx-mgr-arrow:hover { background: var(--mgr-grad); color: #fff; transform: scale(1.1); }
.cfx-mgr-progress { width: 160px; height: 4px; overflow: hidden; border-radius: 99px; background: var(--mgr-line); }
.cfx-mgr-progress span { display: block; height: 100%; background: var(--mgr-grad); transform: scaleX(0); transform-origin: left; }
.cfx-mgr-progress.is-running span { animation: cfxMgrTimer var(--mgr-delay, 2800ms) linear forwards; }
@keyframes cfxMgrTimer { to { transform: scaleX(1); } }

/* ── CTA strip ──────────────────────────────────────────────────────── */
.cfx-mgr-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 32px;
    padding: 18px 22px;
    border: 1px solid var(--mgr-line);
    border-radius: 20px;
    background: var(--mgr-card);
}
.cfx-mgr .cfx-mgr-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.cfx-mgr .cfx-mgr-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--mgr-ink);
    font-size: 15px;
    font-weight: 600;
}
.cfx-mgr-steps b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--mgr-chip);
    font-size: 13px;
}
.cfx-mgr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    background: var(--mgr-grad);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease;
}
.cfx-mgr-btn:hover {
    color: #fff;
   
    box-shadow: 0 12px 26px rgba(124, 58, 237, .35);
}

@media (max-width: 991.98px) {
    .cfx-mgr-cta { flex-direction: column; text-align: center; }
    .cfx-mgr .cfx-mgr-steps { justify-content: center; }
}
@media (max-width: 575.98px) {
    .cfx-mgr-swiper { padding-bottom: 60px; }
    .cfx-mgr .cfx-mgr-steps { flex-direction: column; align-items: flex-start; }
    .cfx-mgr-btn { width: 100%; justify-content: center; }
    .cfx-mgr-progress { width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
    .cfx-mgr *, .cfx-mgr *::before, .cfx-mgr *::after { animation: none !important; transition: none !important; }
    .cfx-mgr-swiper { padding-bottom: 40px; }
    .cfx-mgr-btn:hover, .cfx-mgr-arrow:hover { transform: none; }
}
