/* Career Fixx — public site, light mode, in the user dashboard's colours
   (user_dashboard/css/cf-shell.css): lilac-white page, white surfaces, dark violet-black text,
   violet gradients. Dark mode is not touched: every rule is scoped to data-theme="light".
   Loaded last in the layout; "html[data-theme] body" outranks the section stylesheets. */

html[data-theme="light"] {
    --d-bg: #f7f5fc;
    --d-card: #ffffff;
    --d-soft: #f4effe;
    --d-border: #eee9f8;
    --d-line: #d6c6fb;
    --d-heading: #16122b;
    --d-text: #4b4763;
    --d-muted: #6f6b85;
    --d-primary: #7c3aed;
    --d-grad: linear-gradient(135deg, #9b3cf6 0%, #6d28d9 100%);
    --d-panel: linear-gradient(160deg, #9b3cf6 0%, #7c3aed 55%, #5b21b6 100%);
    --d-hero:
        radial-gradient(60% 70% at 88% 0%, rgba(168, 85, 247, .18), transparent 70%),
        radial-gradient(50% 60% at 0% 90%, rgba(124, 58, 237, .12), transparent 70%),
        #f1ebfe;
}
html[data-theme="light"] body { background-color: #f7f5fc; }

/* ══ page banners and heroes: light ═══════════════════════════════════ */
html[data-theme="light"] body .rbt-breadcrumb-default,
html[data-theme="light"] body .cfx-about .cfx-ab-sec.cfx-ab-hero,
html[data-theme="light"] body .cfx-contact .cfx-co-hero,
html[data-theme="light"] body .cfj .cfj-hero { background: var(--d-hero) !important; color: var(--d-text); }

html[data-theme="light"] body .rbt-breadcrumb-default::before,
html[data-theme="light"] body .cfx-ab-hero::before,
html[data-theme="light"] body .cfx-co-hero::before,
html[data-theme="light"] body .cfj-hero::before {
    background-image: linear-gradient(rgba(91, 33, 182, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(91, 33, 182, .07) 1px, transparent 1px);
}

/* headings and body text */
html[data-theme="light"] body .rbt-breadcrumb-default :is(h1, h2, .title),
html[data-theme="light"] body .rbt-breadcrumb-default .breadcrumb-inner .title,
html[data-theme="light"] body .cfx-about .cfx-ab-hero h1,
html[data-theme="light"] body .cfx-contact .cfx-co-hero h1,
html[data-theme="light"] body .cfj .cfj-hero h1 { color: var(--d-heading) !important; }
html[data-theme="light"] body .rbt-breadcrumb-default :is(p, .description),
html[data-theme="light"] body .cfx-about .cfx-ab-hero p,
html[data-theme="light"] body .cfx-contact .cfx-co-hero p,
html[data-theme="light"] body .cfj .cfj-hero p { color: var(--d-text) !important; }
/* the highlighted words, deep enough to read on lilac */
html[data-theme="light"] body :is(.cfx-ab-words b, .cfx-co-hero h1 span, .cfj-hero h1 span) { background-image: var(--d-grad); }

/* crumbs */
html[data-theme="light"] body .rbt-breadcrumb-default .page-list li,
html[data-theme="light"] body .cfx-about .cfx-ab-crumbs li,
html[data-theme="light"] body .cfx-contact .cfx-co-crumbs li { color: var(--d-muted) !important; }
html[data-theme="light"] body .rbt-breadcrumb-default .page-list li a,
html[data-theme="light"] body .cfx-ab-crumbs a,
html[data-theme="light"] body .cfx-co-crumbs a { color: var(--d-primary) !important; }
html[data-theme="light"] body .rbt-breadcrumb-default .page-list :is(i, .icon-right),
html[data-theme="light"] body :is(.cfx-ab-crumbs, .cfx-co-crumbs) i { color: #8f86b5 !important; }

/* plan and course detail banners: prices, author and meta */
html[data-theme="light"] body .rbt-breadcrumb-style-3 :is(.rbt-author-info, .rbt-author-info > a, .rbt-meta li, .rbt-meta li b) { color: var(--d-heading) !important; }
html[data-theme="light"] body .rbt-breadcrumb-style-3 .rbt-meta li i { color: var(--d-primary) !important; }
html[data-theme="light"] body .rbt-breadcrumb-default .rbt-new-badge.rbt-new-badge-one,
html[data-theme="light"] body .cfx-ab-hero .cfx-ab-badge,
html[data-theme="light"] body .cfj-hero .cfj-badge { border-color: var(--d-line); background: var(--d-card); color: var(--d-primary); }

/* about: number cards; contact: quick links; jobs: search bar and "try" chips */
html[data-theme="light"] body .cfx-about .cfx-ab-stats li { border-color: var(--d-border); background: var(--d-card); color: var(--d-muted); box-shadow: 0 10px 24px rgba(76, 29, 149, .08); }
html[data-theme="light"] body .cfx-ab-stats b { color: var(--d-heading); }
html[data-theme="light"] body .cfx-co-quick a:not(.is-primary) { border-color: var(--d-line); background: var(--d-card); color: var(--d-heading); }
html[data-theme="light"] body .cfx-co-quick a:not(.is-primary):hover { background: var(--d-soft); color: var(--d-primary); }
html[data-theme="light"] body .cfj-search { box-shadow: 0 0 0 1px var(--d-border), 0 20px 44px rgba(76, 29, 149, .12); }
html[data-theme="light"] body .cfj-hero .cfj-quick span { color: var(--d-muted); }
html[data-theme="light"] body .cfj-hero .cfj-quick a { border-color: var(--d-line); background: var(--d-card); color: var(--d-heading); }
html[data-theme="light"] body .cfj-hero .cfj-quick a:hover { background: var(--d-soft); color: var(--d-primary); }
html[data-theme="light"] body .cfx-ab-hero .cfx-ab-btn.is-ghost { border-color: var(--d-line); background: var(--d-card); color: var(--d-heading); }

/* ══ boxed panels: the dashboard's violet card instead of night ═══════ */
html[data-theme="light"] body .cfx-auth .cfx-auth-side,
html[data-theme="light"] body .cfx-contact .cfx-co-aside,
html[data-theme="light"] body .cfx-about .cfx-ab-video,
html[data-theme="light"] body .cfx-policy .cfx-policy-help,
html[data-theme="light"] body .cfj .cfj-how-box,
html[data-theme="light"] body .cfx-sl-train-box,
html[data-theme="light"] body .cfx-pl-help,
html[data-theme="light"] body .cfx-ck .mobile-price-bar { background: var(--d-panel); }
html[data-theme="light"] body .cfx-ck { --ck-night: var(--d-panel); }
html[data-theme="light"] body .cfx-auth-steps li > span { background: #6d28d9; }
/* soft violet text and icons need to be paler on a violet panel */
html[data-theme="light"] body :is(.cfx-auth-side, .cfx-co-aside, .cfx-ab-video, .cfx-policy-help) :is(p, li, li i, .cfx-ab-badge, .cfx-auth-side-note, .cfx-policy-help-icon, span:not(.cfx-auth-side-icon)) { color: #fff; }
html[data-theme="light"] body .cfx-auth-side h2 span { background: none; color: #fde68a; }

/* ══ footer: white, like the dashboard's sidebar ══════════════════════ */
html[data-theme="light"] body .cfx-foot {
    --f-ink: #16122b;
    --f-text: #4b4763;
    --f-muted: #6f6b85;
    --f-line: #eee9f8;
    --f-glass: #f7f3ff;
    background: var(--d-card);
    border-top: 1px solid var(--d-border);
}
html[data-theme="light"] body .cfx-foot .cfx-foot-bg {
    background:
        radial-gradient(560px 320px at 6% 0%, rgba(168, 85, 247, .12), transparent 60%),
        radial-gradient(520px 320px at 100% 100%, rgba(124, 58, 237, .10), transparent 60%);
}
html[data-theme="light"] body .cfx-foot .cfx-foot-bg::after { display: none; }
/* call-to-action strip stays violet, with white text */
html[data-theme="light"] body .cfx-foot .cfx-foot-cta { --f-ink: #fff; --f-text: #f1e8ff; --f-grad: linear-gradient(100deg, #fde68a, #fff); background: var(--d-panel); border-color: transparent; box-shadow: 0 20px 40px -22px rgba(76, 29, 149, .55); }
html[data-theme="light"] body .cfx-foot .cfx-foot-btn.is-primary { background: #fff; color: #5b21b6 !important; box-shadow: 0 10px 22px -8px rgba(20, 5, 50, .45); }
html[data-theme="light"] body .cfx-foot .cfx-foot-social a { color: var(--d-primary) !important; }
html[data-theme="light"] body .cfx-foot .cfx-foot-social a:hover { color: #fff !important; }
html[data-theme="light"] body .cfx-foot .cfx-foot-contact-btn { background: var(--d-grad); }
html[data-theme="light"] body .cfx-foot .cfx-foot-links a:hover,
html[data-theme="light"] body .cfx-foot .cfx-foot-contact a:hover,
html[data-theme="light"] body .cfx-foot .cfx-foot-top:hover { color: var(--d-primary) !important; }
html[data-theme="light"] body .cfx-foot .cfx-foot-ico { background: var(--d-grad); color: #fff; }

/* ══ package cards: violet shades only (no pink or orange) ════════════ */
html[data-theme="light"] body section.cfx-sl-plans .cfx-sl-plan { --a: #6d28d9; --b: #9b3cf6; }
html[data-theme="light"] body section.cfx-sl-plans .cfx-sl-plan[style*="--tone: 1"] { --a: #5b21b6; --b: #7c3aed; }
html[data-theme="light"] body section.cfx-sl-plans .cfx-sl-plan[style*="--tone: 2"] { --a: #7c3aed; --b: #a855f7; }
html[data-theme="light"] body section.cfx-sl-plans .cfx-sl-plan[style*="--tone: 3"] { --a: #4c1d95; --b: #7c3aed; }
html[data-theme="light"] body section.cfx-sl-plans .cfx-sl-plan[style*="--tone: 4"] { --a: #6d28d9; --b: #8b5cf6; }
html[data-theme="light"] body section.cfx-sl-plans .cfx-sl-plan[style*="--tone: 5"] { --a: #3b0f86; --b: #6d28d9; }
html[data-theme="light"] body section.cfx-sl-plans .cfx-sl-plan.is-featured { background: linear-gradient(var(--sl-card), var(--sl-card)) padding-box, linear-gradient(110deg, #7c3aed, #c4b5fd, #a855f7, #7c3aed) border-box; background-size: 100% 100%, 300% 100%; }

/* checkout: the small line on the violet plan card */
html[data-theme="light"] body .cfx-ck .order-card-head .head-sub,
html[data-theme="light"] body .cfx-ck .mobile-price-bar .mp-label { color: #f1e8ff; }
