body { font-family: 'Kanit', sans-serif; background: #f5f7fb; color: #222; }
.navbar { padding: 10px 0; }
.navbar-brand span { font-size: 18px; letter-spacing: .3px; }
.navbar-nav .nav-link { font-weight: 500; margin-right: 8px; transition: .2s; }
.navbar-nav .nav-link:hover { opacity: .85; }
.btn-logout { border-radius: 20px; padding: 5px 12px; }
@media (max-width: 768px) { .navbar-brand span { font-size: 16px; } }

.text-navy { color: #1a2c6b; }
.hero { background: #fff; border-radius: .5rem; }
.tag-link { text-decoration: none; font-size: 14px; font-weight: 400; transition: .15s; }
.tag-link:hover, .tag-link.active { background: #0d6efd !important; color: #fff !important; }

.resource-card { transition: transform .15s, box-shadow .15s; }
.resource-card:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.12) !important; }
.resource-card .card-img-top { height: 220px; object-fit: cover; background: #e9eef8; }
.resource-card .cover-placeholder { height: 220px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#dbe6ff,#f1f5ff); color: #6c8ad8; font-size: 64px; }
.resource-card .card-title { font-size: 1.05rem; font-weight: 600; }
.resource-card .badge { font-weight: 400; white-space: normal; text-align: left; }
.resource-card .desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.site-footer { font-size: 14px; color: #777; background: #fff; border-top: 1px solid #eee; word-break: break-word; }
.form-card { max-width: 560px; margin: 0 auto; }
.brand-logo { height: 42px; width: 42px; border-radius: 50%; object-fit: cover; margin-right: 10px; border: 2px solid rgba(255,255,255,.85); background: #fff; }
