/* Icon styling that matches the black and white theme */
.ic-badge{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;flex:0 0 auto;border-radius:16px;
  background:#000;color:#fff;border:2px solid #fff;font-size:1.35rem;
  box-shadow:0 0 0 1px rgba(0,0,0,.35),0 6px 16px rgba(0,0,0,.35);transition:transform .25s ease}
.ic-badge i{color:inherit}
.ic-badge.ic-sm{width:38px;height:38px;border-radius:12px;font-size:1rem}
.ic-badge.ic-lg{width:68px;height:68px;border-radius:20px;font-size:1.8rem}
/* on a selected (black) card the badge flips to white */
.cv-card.on .ic-badge{background:#fff;color:#000;border-color:#fff}

.cv-card:hover .ic-badge,.cur-pick:hover .ic-badge,.subject:hover .ic-badge{transform:translateY(-2px) rotate(-6deg) scale(1.07)}
.cv-card .ic-badge,.cur-pick .ic-badge{margin-bottom:10px}
.cv-head{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.cv-head h3{margin:0!important}

/* small inline icons */
.cv-stage i,.cv-chip i,.mat-badge i,.mat-pill i,.cv-level i,.cv-bar i,.btn i{margin-right:7px}
.cv-stage i{color:#fff}
.cv-level i,.mat-pill i,.cv-chip i,.mat-badge i,.btn i,.btn-outline i{color:inherit}
.mat-row .btn i{margin-right:6px}

/* Menu icons (added with CSS only, so header.php needs no change) */
.nav a::before{font-family:"Font Awesome 6 Free";font-weight:900;color:#fff;margin-right:7px;font-size:.88em;display:inline-block}
.nav a.btn::before{content:none}
.nav a[href$="index.php"]::before{content:"\f015"}
.nav a[href$="courses.php"]::before{content:"\f19d"}
.nav a[href$="curriculum.php"]::before{content:"\f518"}
.nav a[href$="materials.php"]::before{content:"\f07c"}
.nav a[href$="about.php"]::before{content:"\f05a"}
.nav a[href$="contact.php"]::before{content:"\f0e0"}
.nav a[href$="dashboard.php"]::before{content:"\f201"}
.nav a[href$="profile.php"]::before{content:"\f007"}
.nav a[href$="admin/index.php"]::before{content:"\f3ed"}
.nav a[href$="instructor/index.php"]::before{content:"\f51c"}
.nav a[href$="admin/materials.php"]::before{content:"\f0ee"}
.nav a[href$="login.php"]::before,.nav a[href*="mode=login"]::before{content:"\f090"}
.nav .link-button::before{content:"\f08b";font-family:"Font Awesome 6 Free";font-weight:900;color:#fff;margin-right:7px;font-size:.88em}

@media (prefers-reduced-motion:reduce){.ic-badge{transition:none}.cv-card:hover .ic-badge,.cur-pick:hover .ic-badge{transform:none}}
