body { font-family: "Noto Sans Thai", system-ui, sans-serif; background: #f4f5f9; }
.app-navbar { background: #3c3489; }
.card { border: 0; border-radius: 12px; }
.stat-card .stat-num { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.stat-card .stat-icon { font-size: 1.8rem; opacity: .6; }
.login-box { max-width: 460px; margin: 2rem auto; }

/* แถบเกียรติบัตร: เรียงแนวนอน เลื่อนซ้าย-ขวาได้ */
.cert-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.cert-item { flex: 0 0 auto; width: 132px; scroll-snap-align: start; }
.cert-thumb { width: 132px; height: 132px; padding: 0; border: 1px solid #dee2e6; border-radius: 10px; overflow: hidden; background: #f1f2f6; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.cert-thumb:hover { border-color: #534ab7; box-shadow: 0 0 0 2px rgba(83,74,183,.2); }
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cert-pdf { display: flex; flex-direction: column; align-items: center; color: #dc3545; }
.cert-pdf .bi { font-size: 3rem; line-height: 1; }
.cert-name { font-size: .8rem; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* แดชบอร์ดรายหลักสูตร */
.dash-card[role=button], .dash-row[role=button] { cursor: pointer; }
.dash-card[role=button]:hover { box-shadow: 0 0 0 2px rgba(83,74,183,.25) !important; }
.dash-row[role=button]:hover { background: rgba(83,74,183,.06); }
