/* Home page class cards (js/classcards.js) */
#classGrid { display: block; width: 100%; padding: 0 16px; box-sizing: border-box; }
.ccard-grid {
    max-width: 1120px; margin: 0 auto;
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.ccard {
    position: relative; display: flex; flex-direction: column; gap: 4px;
    padding: 20px 20px 18px; min-height: 178px;
    background: #fff; border-radius: 20px; text-decoration: none; color: var(--hr-ink, #29434A);
    border: 2px solid transparent; box-shadow: 0 2px 6px rgba(27, 54, 49, .08), 0 8px 22px rgba(27, 54, 49, .06);
    transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.ccard:not(.ccard--soon):hover, .ccard:not(.ccard--soon):focus-visible {
    transform: translateY(-5px); background: #006B45; color: #fff; outline: none;
    box-shadow: 0 14px 32px rgba(0, 107, 69, .28);
}
.ccard:not(.ccard--soon):active { transform: translateY(-2px) scale(.99); }
.ccard-num {
    width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: #F9C22E; color: #4a3200; font-weight: 800; font-size: 15px; margin-bottom: 14px;
}
.ccard-title { margin: 0; font-family: var(--hr-display, "Fredoka", sans-serif); font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; line-height: 1.1; color: inherit; }
.ccard-sub { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: var(--hr-muted, #61787B); transition: color .2s ease; }
.ccard:not(.ccard--soon):hover .ccard-sub, .ccard:not(.ccard--soon):focus-visible .ccard-sub { color: rgba(255, 255, 255, .85); }
.ccard-go {
    margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 800; color: #006B45; display: inline-flex; align-items: center; gap: 6px;
    transition: color .2s ease, gap .2s ease;
}
.ccard:hover .ccard-go { color: #fff; gap: 10px; }
.ccard--soon { background: #f1f3f2; box-shadow: none; border: 2px dashed #d3dad7; color: #8a9a97; cursor: default; }
.ccard--soon .ccard-num { background: #dfe5e3; color: #8a9a97; }
.ccard-go--soon { color: #9aa9a6; font-weight: 700; }
@media (max-width: 520px) {
    .ccard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .ccard { min-height: 150px; padding: 16px 14px; border-radius: 16px; }
    .ccard-num { width: 32px; height: 32px; font-size: 13px; margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .ccard { transition: none; } }
