/* =====================================================================
   Membership plan card (Views/Components/_LiveMembershipPlans.cshtml)
   One horizontal card per plan: the offer on the left (name, duration, price, button), what you get on the right
   (numbers, short lists, the courses). Each membership type has its own colour: bootcamp cyan to blue,
   self-paced indigo, live teal, job-oriented slate. Same layout for every type, so the pages feel like one family.
   ===================================================================== */
.pc-wrap {
    --pc-ink: #0f1b2d; --pc-body: #46566b; --pc-muted: #6b7c91; --pc-line: rgba(20, 90, 140, .16);
    --pc-card: #ffffff; --pc-soft: #f3f8fc;
    --pc-lift: 0 1px 2px rgba(15, 60, 100, .06), 0 24px 44px -28px rgba(15, 80, 130, .45);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--pc-body);
}
[data-bs-theme="dark"] .pc-wrap {
    --pc-ink: #eef7ff; --pc-body: #b4c6d9; --pc-muted: #8aa0b6; --pc-line: rgba(110, 190, 230, .18);
    --pc-card: #0a1d33; --pc-soft: rgba(255, 255, 255, .04);
    --pc-lift: 0 1px 2px rgba(0, 0, 0, .4), 0 24px 44px -28px rgba(0, 0, 0, .85);
}
.pc-wrap *, .pc-wrap *::before, .pc-wrap *::after { box-sizing: border-box; }

.pc-list { display: grid; gap: 24px; max-width: 1180px; margin-inline: auto; }

.pc { --k1: #0891b2; --k2: #2563eb; --kt: rgba(8, 145, 178, .10); --kink: #0b6f8c;
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; overflow: hidden; scroll-margin-top: 96px;
    background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: 22px; box-shadow: var(--pc-lift);
    transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .25s; }
@media (min-width: 992px) { .pc { grid-template-columns: minmax(320px, 390px) minmax(0, 1fr); } }
.pc:hover { border-color: color-mix(in srgb, var(--k1) 38%, var(--pc-line)); }
.pc--sp { --k1: #4f46e5; --k2: #7c6cf0; --kt: rgba(79, 70, 229, .10); --kink: #4338ca; }
.pc--lv { --k1: #0d9488; --k2: #14b8a6; --kt: rgba(13, 148, 136, .10); --kink: #0f766e; }
.pc--jo { --k1: #475569; --k2: #64748b; --kt: rgba(71, 85, 105, .10); --kink: #334155; }
[data-bs-theme="dark"] .pc { --kink: color-mix(in srgb, var(--k1) 45%, #fff); --kt: color-mix(in srgb, var(--k1) 18%, transparent); }
[data-bs-theme="dark"] .pc--sp { --k1: #6f68f2; }

/* left: the offer */
.pc-main { position: relative; display: flex; flex-direction: column; padding: 30px 28px 26px; background: linear-gradient(165deg, var(--kt), transparent 65%); border-bottom: 1px solid var(--pc-line); }
.pc-main::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--k1), var(--k2)); }
@media (min-width: 992px) { .pc-main { border-bottom: 0; border-right: 1px solid var(--pc-line); } .pc-main::before { inset: 0 auto 0 0; width: 4px; height: auto; background: linear-gradient(180deg, var(--k1), var(--k2)); } }
.pc-top { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.pc-kind { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--kt); color: var(--kink); font-size: .8125rem; font-weight: 800; letter-spacing: .01em; }
.pc-kind i { font-size: .95rem; }
.pc-cur { height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: .75rem; font-weight: 700; }
.pc-sale { margin-left: auto; height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; background: linear-gradient(135deg, var(--k1), var(--k2)); color: #fff; font-size: .75rem; font-weight: 800; }
.pc-sale[hidden] { display: none; }

.pc-name { margin: 18px 0 6px; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; color: var(--pc-ink); }
.pc-plan { align-self: flex-start; margin-bottom: 6px; padding: 2px 10px; border-radius: 999px; background: var(--kt); color: var(--kink); font-size: .75rem; font-weight: 700; }
.pc-tag { margin: 0 0 18px; font-size: .9375rem; line-height: 1.5; color: var(--pc-body); }

.pc-dur { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pc .membership-duration-pill { height: 36px; padding: 0 15px; border: 1px solid var(--pc-line); border-radius: 999px; background: var(--pc-card); color: var(--pc-ink); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.pc .membership-duration-pill:hover { border-color: color-mix(in srgb, var(--k1) 45%, var(--pc-line)); }
.pc .membership-duration-pill:active { transform: scale(.97); }
.pc .membership-duration-pill.active { background: linear-gradient(135deg, var(--k1), var(--k2)); border-color: transparent; color: #fff; box-shadow: 0 10px 18px -12px var(--k1); }
.pc .membership-duration-pill:focus-visible { outline: 2px solid var(--k1); outline-offset: 2px; }

.pc-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.pc-price b { font-size: 2.6rem; line-height: 1; letter-spacing: -.04em; font-weight: 800; color: var(--pc-ink); font-variant-numeric: tabular-nums; }
.pc-price del { font-size: 1rem; color: var(--pc-muted); }
.pc-price del[hidden] { display: none; }
.pc-access { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 8px 0 20px; font-size: .875rem; color: var(--pc-muted); }
.pc-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.pc-cta { margin-top: auto; }
.pc .buy-now-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; padding: 0 20px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--k1), var(--k2)); color: #fff; font-size: 1rem; font-weight: 700; text-decoration: none; box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 16px 26px -14px var(--k1); transition: transform .2s cubic-bezier(.2, .7, .2, 1), filter .2s; }
.pc .buy-now-btn:hover { transform: translateY(-2px); color: #fff; filter: brightness(1.06); }
.pc .buy-now-btn:active { transform: scale(.985); }
.pc-emi { align-self: center; margin-top: 12px; border: 0; background: none; padding: 6px 2px; font: inherit; font-size: .8125rem; font-weight: 600; color: var(--pc-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pc-emi:hover { color: var(--pc-ink); }
.pc-emi:focus-visible { outline: 2px solid var(--k1); outline-offset: 2px; border-radius: 6px; }

/* right: what you get */
.pc-side { display: grid; align-content: start; gap: 24px; padding: 28px; min-width: 0; }
.pc-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.pc-stats li { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--pc-line); border-radius: 14px; background: var(--pc-soft); transition: transform .2s, border-color .2s; }
.pc-stats li:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--k1) 40%, var(--pc-line)); }
.pc-stats b { font-size: 1.7rem; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; background: linear-gradient(100deg, var(--k1), var(--k2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.pc-stats span { font-size: .8125rem; font-weight: 600; color: var(--pc-body); }

.pc-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pc-muted); }
.pc-h small { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--kt); color: var(--kink); font-size: .7rem; font-weight: 800; letter-spacing: 0; display: inline-grid; place-items: center; }
.pc-lists { display: grid; gap: 22px 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .pc-lists--2, .pc-lists--3, .pc-lists--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pc-lists ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pc-lists li { position: relative; padding-left: 26px; font-size: .9375rem; line-height: 1.45; color: var(--pc-ink); }
.pc-lists li::before { content: ""; position: absolute; left: 0; top: .15em; width: 18px; height: 18px; border-radius: 50%; background: var(--kt); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k1) 40%, transparent); }
.pc-lists li::after { content: ""; position: absolute; left: 5.5px; top: calc(.15em + 5px); width: 7px; height: 4px; border-left: 2px solid var(--k1); border-bottom: 2px solid var(--k1); transform: rotate(-45deg); }

.pc-courses ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pc-courses li { padding: 6px 12px; border: 1px solid var(--pc-line); border-radius: 999px; background: var(--pc-soft); font-size: .8125rem; font-weight: 600; color: var(--pc-ink); transition: border-color .2s, background .2s; }
.pc-courses li:hover { border-color: color-mix(in srgb, var(--k1) 45%, var(--pc-line)); background: var(--kt); }

/* fallback when the plan text is not in the usual group format */
.pc-rich { font-size: .9rem; line-height: 1.55; color: var(--pc-body); }
.pc-rich * { background: transparent !important; color: inherit !important; font-size: inherit !important; font-family: inherit !important; max-width: 100%; }
.pc-rich ul, .pc-rich ol { display: block !important; list-style: none; margin: 0 0 8px; padding: 0; }
.pc-rich li { display: block !important; padding: 2px 0; }

@media (max-width: 575.98px) {
    .pc { border-radius: 18px; }
    .pc-main, .pc-side { padding: 22px 18px; }
    .pc-name { font-size: 1.3rem; }
    .pc-price b { font-size: 2.2rem; }
    .pc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .pc, .pc .buy-now-btn, .pc-stats li { transition: none; } .pc-stats li:hover { transform: none; } }
.pc ul::before, .pc ul::after, .pc ol::after { content: none !important; }
.pc-lists li::before, .pc-lists li::after { content: "" !important; }

/* chips stay one line and natural height; list rows carry no site-wide li decoration */
.pc-courses ul { align-items: flex-start; }
.pc-courses li { flex: none; white-space: nowrap; align-self: flex-start; }
.pc li { border-left: 0; border-right: 0; }
.pc-lists li, .pc-stats li { border-right: 0 !important; }
