/* KBM homepage sections: original content and animations (replaces the old template sections). */
.kh-old{display:none!important}
#kbm-home{--ink:#1c1433;--brand:#2e1a87;--mist:#f5f3fb;--line:#e4e0f0;--ok:#16865c;--bad:#c2364b;--mark:#ffe08a;color:var(--ink);font-family:"Noto Sans",system-ui,sans-serif}
#kbm-home *{box-sizing:border-box}
.kh-wrap{max-width:1180px;margin:0 auto;padding:0 24px}
.kh-sec{padding:96px 0;scroll-margin-top:72px}
.kh-sec.mist{background:var(--mist)}
.kh-h2{font-weight:800;letter-spacing:-.02em;line-height:1.05;font-size:clamp(2.1rem,4.6vw,3.3rem);margin:0 0 16px;max-width:16ch}
.kh-lead{font-size:1.08rem;line-height:1.6;max-width:52ch;margin:0;color:#3d3558}
.kh-grid{display:grid;gap:56px;align-items:center}
@media(min-width:900px){.kh-grid{grid-template-columns:1fr 1.05fr}}

/* Tip strip */
.kh-strip{border-top:1px solid var(--line);border-bottom:1px solid var(--line);overflow:hidden;padding:18px 0;background:#fff}
.kh-track{display:flex;gap:48px;width:max-content;animation:kh-scroll 60s linear infinite}
.kh-strip:hover .kh-track{animation-play-state:paused}
.kh-track span{white-space:nowrap;font-size:.98rem;color:#3d3558}
.kh-track span b{color:var(--brand);font-weight:700;margin-right:8px}
@keyframes kh-scroll{to{transform:translateX(-50%)}}

/* Steps */
.kh-steps{list-style:none;margin:40px 0 0;padding:0;counter-reset:s}
.kh-steps li{position:relative;padding:0 0 30px 56px}
.kh-steps li:before{counter-increment:s;content:counter(s);position:absolute;left:0;top:0;width:36px;height:36px;border-radius:50%;background:var(--brand);color:#fff;font-weight:800;display:grid;place-items:center}
.kh-steps li:not(:last-child):after{content:"";position:absolute;left:17px;top:42px;bottom:6px;width:2px;background:var(--line)}
.kh-steps h3{margin:4px 0 6px;font-size:1.2rem;font-weight:800}
.kh-steps p{margin:0;line-height:1.55;color:#3d3558;max-width:44ch}

/* Feedback demo card */
.kh-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px;box-shadow:0 18px 50px -30px rgba(46,26,135,.45)}
.kh-card-top{display:flex;justify-content:space-between;align-items:center;font-size:.85rem;color:#6b6385;margin-bottom:18px}
.kh-timer{font-variant-numeric:tabular-nums;font-weight:700;color:var(--brand)}
.kh-essay{font-size:1.12rem;line-height:1.75;min-height:5.4em;margin:0}
.kh-essay .w{opacity:0}
.kh-essay .w.on{opacity:1}
.kh-essay .err{position:relative}
.kh-essay .err.flag{text-decoration:underline wavy var(--bad);text-underline-offset:5px}
.kh-fix{display:inline-block;max-width:0;overflow:hidden;vertical-align:bottom;color:var(--ok);font-weight:700;white-space:nowrap;transition:max-width .6s ease}
.kh-fix.on{max-width:6em}
.kh-essay .err.fixed{text-decoration:line-through;color:#9a93b0}
.kh-crit{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:22px}
.kh-chip{border:1px solid var(--line);border-radius:12px;padding:10px 12px;font-size:.82rem;color:#3d3558;display:flex;justify-content:space-between;opacity:0;transform:translateY(6px);transition:all .4s ease}
.kh-chip b{color:var(--ink)}
.kh-chip.on{opacity:1;transform:none}
.kh-band{margin-top:16px;display:flex;align-items:center;gap:12px;opacity:0;transition:opacity .5s}
.kh-band.on{opacity:1}
.kh-band strong{font-size:2rem;font-weight:800;color:var(--brand)}
.kh-band span{font-size:.9rem;color:#3d3558}

/* Skills */
.kh-skills{display:grid;gap:20px;margin-top:48px}
@media(min-width:700px){.kh-skills{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1100px){.kh-skills{grid-template-columns:repeat(4,1fr)}}
.kh-skill{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px}
.kh-skill h3{margin:18px 0 8px;font-size:1.25rem;font-weight:800}
.kh-skill p{margin:0;line-height:1.55;color:#3d3558;font-size:.97rem}
.kh-art{height:96px;border-radius:12px;background:var(--mist);position:relative;overflow:hidden}
/* reading: a highlighter sweeps across lines */
.kh-read i{position:absolute;left:16px;height:8px;border-radius:4px;background:#cfc8e6}
.kh-read i:nth-child(1){top:18px;width:70%}.kh-read i:nth-child(2){top:36px;width:80%}.kh-read i:nth-child(3){top:54px;width:60%}.kh-read i:nth-child(4){top:72px;width:74%}
.kh-read em{position:absolute;left:16px;top:33px;height:14px;width:0;background:var(--mark);mix-blend-mode:multiply;border-radius:3px;animation:kh-mark 3.2s ease-in-out infinite}
@keyframes kh-mark{0%,15%{width:0}55%,85%{width:52%}100%{width:0}}
/* listening: equaliser */
.kh-listen{display:flex;align-items:center;justify-content:center;gap:6px}
.kh-listen i{width:8px;border-radius:4px;background:var(--brand);height:20px;animation:kh-eq 1.1s ease-in-out infinite}
.kh-listen i:nth-child(2n){animation-delay:-.3s}.kh-listen i:nth-child(3n){animation-delay:-.6s}.kh-listen i:nth-child(5n){animation-delay:-.85s}
@keyframes kh-eq{0%,100%{height:14px}50%{height:62px}}
/* writing: a pen draws a line of handwriting */
.kh-write svg{position:absolute;inset:0;width:100%;height:100%}
.kh-write path{fill:none;stroke:var(--brand);stroke-width:3;stroke-linecap:round;stroke-dasharray:420;stroke-dashoffset:420;animation:kh-draw 3.4s ease-in-out infinite}
@keyframes kh-draw{0%{stroke-dashoffset:420}60%,85%{stroke-dashoffset:0}100%{stroke-dashoffset:-420}}
/* speaking: mic with rings */
.kh-speak{display:grid;place-items:center}
.kh-speak b{width:44px;height:44px;border-radius:50%;background:var(--brand);display:grid;place-items:center;position:relative;z-index:1}
.kh-speak b svg{width:20px;height:20px}
.kh-speak i{position:absolute;left:50%;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;border:2px solid var(--brand);opacity:0;animation:kh-ring 2.4s ease-out infinite}
.kh-speak i:nth-of-type(2){animation-delay:.8s}.kh-speak i:nth-of-type(3){animation-delay:1.6s}
@keyframes kh-ring{0%{transform:scale(1);opacity:.6}100%{transform:scale(2.6);opacity:0}}

/* Band meter (the one big moment) */
.kh-meter{display:grid;gap:40px;align-items:center}
@media(min-width:900px){.kh-meter{grid-template-columns:auto 1fr}}
.kh-ring{width:260px;height:260px;position:relative;margin:0 auto}
.kh-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.kh-ring circle{fill:none;stroke-width:18}
.kh-ring .bg{stroke:#e4e0f0}
.kh-ring .fg{stroke:var(--brand);stroke-linecap:round;stroke-dasharray:691;stroke-dashoffset:691;transition:stroke-dashoffset 2.2s cubic-bezier(.3,.8,.3,1)}
.kh-ring-num{position:absolute;inset:0;display:grid;place-items:center;text-align:center}
.kh-ring-num strong{display:block;font-size:4.4rem;font-weight:800;line-height:1;color:var(--ink);font-variant-numeric:tabular-nums}
.kh-ring-num span{font-size:.9rem;color:#6b6385}
.kh-bars{display:grid;gap:18px;max-width:560px}
.kh-bar-top{display:flex;justify-content:space-between;font-size:.95rem;margin-bottom:6px}
.kh-bar-top b{font-variant-numeric:tabular-nums}
.kh-bar{height:12px;border-radius:6px;background:#e4e0f0;overflow:hidden}
.kh-bar i{display:block;height:100%;width:0;background:var(--brand);border-radius:6px;transition:width 1.8s cubic-bezier(.3,.8,.3,1)}
.kh-bar.low i{background:#7b6bd0}
.kh-note{font-size:.85rem;color:#6b6385;margin-top:6px}

/* Pakistan strip */
.kh-three{display:grid;gap:32px;margin-top:40px}
@media(min-width:800px){.kh-three{grid-template-columns:repeat(3,1fr)}}
.kh-three div{border-top:3px solid var(--brand);padding-top:18px}
.kh-three h3{margin:0 0 8px;font-size:1.15rem;font-weight:800}
.kh-three p{margin:0;line-height:1.55;color:#3d3558}

@media (prefers-reduced-motion: reduce){
  .kh-track,.kh-read em,.kh-listen i,.kh-write path,.kh-speak i{animation:none!important}
  .kh-read em{width:52%}.kh-write path{stroke-dashoffset:0}
  .kh-ring .fg,.kh-bar i,.kh-chip,.kh-band,.kh-fix{transition:none!important}
}
.kh-by{width:100%;margin:18px 0 0;font-size:.85rem;color:#6b6385}
.kh-chip{gap:10px}.kh-chip b{flex:none}
