/* Paid classes (blog/classes.py): app/classes.html, class.html, classes_teach.html, classes_rules.html.
   Shared bits (.sfp-*, .sfc-*) come from plus.css; brand gradient = var(--sfp-grad). Titles and banners are centred. */
.kc { font-family: 'Nunito', system-ui, sans-serif; }
.kc-hero { position: relative; margin: 0 0 16px; padding: 28px 20px 24px; border-radius: 24px; text-align: center; color: #fff;
    box-shadow: 0 12px 30px rgba(120, 60, 200, .22); }   /* background: the shared aurora in plus.css */
.kc-hero h1 { margin: 0 0 6px; font-size: 30px; font-weight: 900; color: #fff; }
.kc-hero p { margin: 0 auto; max-width: 560px; font-weight: 700; opacity: .95; }
.kc-hero-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.kc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 160px; padding: 11px 20px; border: 0; border-radius: 999px;
    background: var(--sfp-grad); color: #fff !important; font: 800 15px 'Nunito', system-ui, sans-serif; text-decoration: none !important; cursor: pointer;
    box-shadow: 0 6px 16px rgba(120, 60, 200, .25); }
.kc-btn:disabled { opacity: .6; cursor: default; }
.kc-hero .kc-btn { background: rgba(255, 255, 255, .22); border: 1.5px solid rgba(255, 255, 255, .6); box-shadow: none; backdrop-filter: blur(6px); }
.kc-btn.soft { background: #f3eefc; color: #7a3fc4 !important; box-shadow: none; }
.kc-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.kc-stats span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-weight: 800; font-size: 13px; }

.kc-h { margin: 22px 0 10px; text-align: center; font-size: 20px; font-weight: 900; color: #151827; }
.kc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 14px; }
.kc-chips a { padding: 7px 13px; border-radius: 999px; background: #fff; color: #5b6275; font-weight: 800; font-size: 14px; text-decoration: none;
    box-shadow: 0 1px 3px rgba(20, 30, 60, .08); }
.kc-chips a.on { background: var(--sfp-grad); color: #fff; }

.kc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.kc-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #fff; color: #151827 !important; text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(20, 30, 60, .05), 0 8px 24px rgba(20, 30, 60, .07); transition: transform .15s; }
.kc-card:hover { transform: translateY(-2px); }
.kc-cover { position: relative; height: 140px; display: grid; place-items: center; font-size: 52px; }   /* background: the shared aurora in plus.css */
.kc-price { position: absolute; right: 10px; bottom: 10px; padding: 5px 11px; border-radius: 999px; background: #fff; color: #7a3fc4; font-weight: 900; font-size: 14px;
    box-shadow: 0 2px 8px rgba(20, 30, 60, .15); }
.kc-body { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 14px 16px; text-align: center; }
.kc-body b { font-size: 17px; font-weight: 900; line-height: 1.25; }
.kc-body small { color: #6b7180; font-weight: 700; }
.kc-tag { padding: 3px 10px; border-radius: 999px; background: #f3eefc; color: #7a3fc4; font-weight: 800; font-size: 12px; }
.kc-tag.ok { background: #e7f8ef; color: #18864b; }
.kc-tag.warn { background: #fff4e0; color: #a86400; }

.kc-test { margin: 0 0 14px; padding: 10px 14px; border-radius: 16px; text-align: center; font-weight: 800; color: #8a4b00; background: #fff4e0; border: 1.5px dashed #f0b45a; }
.kc-done { margin: 0 0 14px; padding: 14px; border-radius: 16px; text-align: center; font-weight: 800; color: #18864b; background: #e7f8ef; }

.kc-top { text-align: center; }
.kc-top .sfc-hero-body { display: flex; flex-direction: column; align-items: center; }
.kc-big-price { margin: 6px 0 2px; font-size: 30px; font-weight: 900; color: #151827; }
.kc-big-price small { font-size: 15px; color: #6b7180; }
.kc-top .sfc-actions { justify-content: center; }
.kc-note { margin: 8px 0 0; color: #6b7180; font-weight: 700; font-size: 13px; }

.kc-box { margin-bottom: 14px; padding: 16px; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(20, 30, 60, .05), 0 8px 24px rgba(20, 30, 60, .06); }
.kc-box h2 { margin: 0 0 12px; text-align: center; font-size: 18px; font-weight: 900; }
.kc-sess { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #eef0f5; }
.kc-sess:first-of-type { border-top: 0; }
.kc-date { flex: none; width: 54px; padding: 6px 0; border-radius: 14px; text-align: center; background: #f3eefc; color: #7a3fc4; font-weight: 900; line-height: 1.1; }
.kc-date small { display: block; font-size: 11px; text-transform: uppercase; }
.kc-sess div { flex: 1; min-width: 0; }
.kc-sess b { display: block; font-weight: 900; }
.kc-sess span { color: #6b7180; font-weight: 700; font-size: 14px; }

.kc-money { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.kc-money div { padding: 14px 10px; border-radius: 16px; text-align: center; background: #f7f5fd; }
.kc-money b { display: block; font-size: 22px; font-weight: 900; color: #151827; }
.kc-money small { color: #6b7180; font-weight: 800; }
.kc-money .hi { background: var(--sfp-grad); }
.kc-money .hi b, .kc-money .hi small { color: #fff; }
.kc-table { width: 100%; border-collapse: collapse; font-weight: 700; font-size: 14px; }
.kc-table th, .kc-table td { padding: 8px 6px; border-top: 1px solid #eef0f5; text-align: center; }
.kc-table th { color: #6b7180; font-weight: 800; border-top: 0; }
.kc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 10px 0; border-top: 1px solid #eef0f5; text-align: center; }
.kc-row:first-of-type { border-top: 0; }
.kc-row a { color: #151827; font-weight: 900; }

.kc-form label { text-align: left; }
.kc-agree { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-weight: 700 !important; }
.kc-agree input { margin-top: 4px; }

.kc-rules h2 { text-align: center; }
.kc-rules li { margin: 0 0 8px; line-height: 1.5; }
.kc-rules p { line-height: 1.55; }

.kc-toast { position: fixed; left: 50%; bottom: 90px; z-index: 9999; transform: translateX(-50%); max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 14px;
    background: var(--sfp-grad); color: #fff; font: 800 14px 'Nunito', system-ui, sans-serif; text-align: center; box-shadow: 0 10px 30px rgba(120, 60, 200, .35); }

/* College spaces (app/college.html, college_placements.html) */
.kc-small { margin: 12px auto 0 !important; font-size: 13px; opacity: .85 !important; }
.kc-center { text-align: center; }
.kc-acts-center { justify-content: center; }
.kc-inline { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 6px 0 4px; }
.kc-inline input { flex: 1 1 240px; max-width: 360px; padding: 11px 14px; border: 1.5px solid #d9dde8; border-radius: 999px; font: 700 15px 'Nunito', system-ui, sans-serif; outline: none; }
.kc-inline input:focus { border-color: #b84fe0; }
.kc-search { margin: 0 0 14px; }
.kc-code { margin: 10px auto; width: fit-content; padding: 10px 22px; border-radius: 16px; background: #f3eefc; color: #7a3fc4; font: 900 28px ui-monospace, 'Cascadia Mono', monospace; letter-spacing: .08em; }
.kc-group { justify-content: center; min-height: 140px; }
.kc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
@media (max-width: 700px) { .kc-two { grid-template-columns: 1fr; } }
.kc-calc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kc-calc label { display: flex; flex-direction: column; gap: 4px; text-align: center; font-weight: 800; font-size: 13px; color: #5b6275; }
.kc-calc input { padding: 9px 6px; border: 1.5px solid #d9dde8; border-radius: 12px; text-align: center; font: 800 17px 'Nunito', system-ui, sans-serif; outline: none; }
.kc-result { margin: 12px 0 0; padding: 12px; border-radius: 14px; text-align: center; font-weight: 800; background: #f7f5fd; color: #5b6275; }
.kc-result.ok { background: #e7f8ef; color: #18864b; }
.kc-result.warn { background: #fff4e0; color: #a86400; }
.kc-story h3 { margin: 12px 0 4px; text-align: center; font-size: 15px; font-weight: 900; color: #5b6275; }
.kc-story small { margin-left: 6px; color: #6b7180; font-weight: 700; }
.kc-tabs { position: sticky; top: 64px; z-index: 5; margin: -2px 0 16px; padding: 8px 0; background: rgba(247, 247, 250, .92); backdrop-filter: blur(8px); }
.kc-stats-plain { margin: 0 0 14px; }
.kc-stats-plain span { background: #fff; color: #5b6275; box-shadow: 0 1px 3px rgba(20, 30, 60, .08); }
.kc-tiles .kc-group { min-height: 110px; }
.kc-narrow { max-width: 720px; margin: 0 auto; }
.kc-page { max-width: 760px; margin: 0 auto; line-height: 1.6; color: #2b2f36; }
.kc-page p { margin: 0 0 12px; }
.kc-page a { font-weight: 700; overflow-wrap: anywhere; }

/* Wide layout (with .sfw from plus.css): laptops get the profile's width, a tall hero and wider grids */
.kc-stories, .kc-rules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 14px; align-items: start; }
.kc-span { grid-column: 1 / -1; }
.kc-rules-grid .kc-box { height: 100%; margin: 0; }
@media (min-width: 900px) {
    .kc-hero { min-height: 320px; display: flex; flex-direction: column; justify-content: center; padding: 48px 40px; border-radius: 28px; }
    .kc-hero h1 { font-size: 42px; line-height: 1.15; }
    .kc-hero p { max-width: 860px; font-size: 18px; }
    .kc-hero .kc-small { font-size: 14px; }
    .kc-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
    .kc-cover { height: 180px; font-size: 64px; }
    .kc-narrow { max-width: 980px; }
    .kc-page { max-width: 1040px; padding: 28px 36px; font-size: 17px; }
    .kc-two { gap: 18px; }
    .kc-top .sfc-hero-cover { height: 40vh; min-height: 300px; max-height: 520px; }
    .kc-money b { font-size: 26px; }
}

/* College OS directory (app/colleges.html) and "what do you study" (app/college.html) */
.kc-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 16px; }
.kc-filters input, .kc-filters select { flex: 1 1 180px; max-width: 320px; padding: 10px 14px; border: 1.5px solid #d9dde8; border-radius: 999px; background: #fff;
    font: 700 14px 'Nunito', system-ui, sans-serif; color: #2b2f36; outline: none; }
.kc-filters input:focus, .kc-filters select:focus { border-color: #b84fe0; }
.kc-filters .kc-btn { min-width: 0; }
.kc-countries { margin-top: -4px; }
.kc-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0 0; font-weight: 800; color: #5b6275; }
.kc-find { margin-bottom: 14px; }
.kc-me { display: inline-block; margin-left: 8px; font-weight: 700; color: #2b6b48; }
.kc-about .sfc-choice { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kc-about h2, .kc-about > .kc-note { text-align: center; }
