/* ==========================================================================
   Cards: pillars, features, steps, roles, grades, plans
   ========================================================================== */
.pillar { --pc: var(--blue); --pc2: #4d8dff; position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; color: #fff !important; padding: 1.8rem 1.5rem 1.5rem; border-radius: var(--radius);
    background: linear-gradient(145deg, var(--pc2), var(--pc)); box-shadow: 0 16px 36px color-mix(in srgb, var(--pc) 38%, transparent); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pillar::after { content: ''; position: absolute; right: -36px; top: -36px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .16); transition: transform .5s var(--ease); }
.pillar:hover { transform: translateY(-10px) rotate(-1deg); box-shadow: 0 26px 48px color-mix(in srgb, var(--pc) 48%, transparent); color: #fff !important; }
.pillar:hover::after { transform: scale(1.5); }
.pillar .p-ico { width: 68px; height: 68px; border-radius: 22px; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: 1.9rem; margin-bottom: 1.1rem; position: relative; z-index: 1; transition: transform .4s var(--ease); }
.pillar:hover .p-ico { transform: scale(1.12) rotate(-8deg); }
.pillar h3 { color: #fff; font-size: 1.45rem; margin-bottom: .5rem; position: relative; z-index: 1; }
.pillar p { color: rgba(255, 255, 255, .92); font-size: .98rem; margin-bottom: 1rem; position: relative; z-index: 1; flex: 1; }
.pillar .more { font-family: var(--font-head); font-weight: 500; position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .5rem; }
.pillar .more i { transition: transform .3s var(--ease); }
.pillar:hover .more i { transform: translateX(6px); }
.pillar.green { --pc: #0f9d58; --pc2: #3ed598; }
.pillar.purple { --pc: #5b2de0; --pc2: #9a6bff; }
.pillar.orange { --pc: #f57c00; --pc2: #ffb830; }

.f-card { height: 100%; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; position: relative; overflow: hidden; }
.f-card::before { content: ''; position: absolute; left: 0; top: 0; height: 5px; width: 100%; background: var(--fc, var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.f-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--fc, var(--blue)); }
.f-card:hover::before { transform: scaleX(1); }
.f-ico { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.5rem; color: var(--fc, var(--blue)); background: color-mix(in srgb, var(--fc, var(--blue)) 14%, #fff); margin-bottom: 1rem; transition: transform .4s var(--ease); }
.f-card:hover .f-ico { transform: rotate(-10deg) scale(1.1); }
.f-card h4 { font-size: 1.22rem; margin-bottom: .4rem; }
.f-card p { color: var(--muted); margin: 0; font-size: .98rem; }

.step { position: relative; text-align: center; padding: 0 .8rem; }
.step .num { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--navy); background: var(--grad-gold); box-shadow: 0 12px 26px rgba(255, 159, 10, .4); position: relative; z-index: 1; transition: transform .4s var(--ease); }
.step:hover .num { transform: scale(1.12) rotate(-8deg); }
.step h4 { font-size: 1.3rem; }
.step p { color: var(--muted); }
.steps-row { position: relative; }
.steps-row::before { content: ''; position: absolute; left: 16%; right: 16%; top: 42px; border-top: 4px dashed #c6dcff; z-index: 0; }

.role-card { height: 100%; border-radius: var(--radius); padding: 1.8rem 1.5rem; background: #fff; border: 2px solid var(--line); position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; text-align: center; }
.role-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.role-card .r-ico { width: 82px; height: 82px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; font-size: 2rem; color: #fff; background: var(--rc, var(--blue)); box-shadow: 0 12px 24px color-mix(in srgb, var(--rc, var(--blue)) 40%, transparent); animation: floaty 6s ease-in-out infinite; }
.role-card h4 { font-size: 1.4rem; }
.role-card ul { list-style: none; padding: 0; margin: 1rem 0 1.3rem; text-align: left; }
.role-card li { padding: .22rem 0 .22rem 1.7rem; position: relative; color: var(--muted); font-weight: 700; font-size: .96rem; }
.role-card li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; color: var(--rc, var(--blue)); }

.grade-wrap { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.grade { --gc: var(--blue); font-family: var(--font-head); font-weight: 500; font-size: 1.02rem; padding: .5rem 1.15rem; border-radius: 999px; color: var(--gc); background: color-mix(in srgb, var(--gc) 12%, #fff); border: 2px solid color-mix(in srgb, var(--gc) 30%, #fff); transition: transform .25s var(--ease), background .25s, color .25s; cursor: default; }
.grade:hover { transform: translateY(-4px) scale(1.07); background: var(--gc); color: #fff; }
.grade.pre { --gc: #0f9d58; } .grade.low { --gc: #0b4fc4; } .grade.up { --gc: #f57c00; }
.grade.jun { --gc: #6d3ff0; } .grade.sen { --gc: #d6347f; } .grade.kcse { --gc: #0a2472; } .grade.cod { --gc: #0a8fd6; }
.grade-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: center; margin-top: 1.4rem; font-size: .88rem; font-weight: 800; color: var(--muted); }
.grade-legend i { font-size: .7rem; margin-right: .35rem; }
