@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800&display=swap');
:root{
  --blue1:#0b63ce;
  --blue2:#1a90e6;
  --bg:#f3f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e7eef6;
  --shadow: 0 10px 30px rgba(2, 22, 55, .08);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Kanit", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 600px at 50% 0%, #eaf4ff 0%, var(--bg) 55%, #f8fbff 100%);
}

.topbar{
  background: linear-gradient(90deg, var(--blue1), var(--blue2));
  padding: 18px 22px;
  color:#fff;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  color:#fff;
}
.brand-icon{
  width:44px;height:44px;
  border-radius:14px;
  background: rgba(255,255,255,.18);
  display:grid;place-items:center;
  font-size:20px;
}
.brand-title{font-weight:800;font-size:22px;line-height:1}
.brand-sub{opacity:.9;font-size:13px;margin-top:6px}

.container{
  max-width: 1100px;
  margin: 28px auto 60px;
  padding: 0 18px;
}

.page-title{
  margin: 18px 0 18px;
  font-size: 30px;
  letter-spacing: -.2px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 900px){
  .grid{grid-template-columns:1fr}
}

.dept-card{
  display:flex;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration:none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.dept-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(2,22,55,.12);
}

.dept-icon{
  width:56px;height:56px;
  border-radius: 16px;
  background: #e8f3ff;
  display:grid;place-items:center;
  font-size: 24px;
  flex: 0 0 auto;
}
.dept-title{font-weight:800;font-size:20px;margin-top:2px}
.dept-desc{color:var(--muted);margin-top:6px;font-size:14px}
.dept-meta{
  margin-top: 10px;
  display:flex;
  align-items:center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.dot{width:8px;height:8px;border-radius:99px;display:inline-block}
.dot.blue{background:#2b7fff}
.dot.green{background:#22c55e}

.back{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color: var(--muted);
  text-decoration:none;
  margin: 10px 0 6px;
}
.back:hover{color:#334155}

.dept-header{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.dept-big-title{font-weight:900;font-size:28px}
.dept-big-desc{color:var(--muted);margin-top:6px}

.tab-row{
  display:flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.tab{
  border: 1px solid var(--line);
  background: #f7fbff;
  padding: 12px 14px;
  border-radius: 14px;
  cursor:pointer;
  font-weight:800;
  display:flex;
  align-items:center;
  gap:10px;
}
.tab:hover{background:#eef7ff}
.tab-ic{opacity:.9}
.badge{
  margin-left: 2px;
  background:#e8f3ff;
  border: 1px solid #d6ebff;
  color:#0b63ce;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.hint{
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.doc-list{
  display:flex;
  flex-direction:column;
  gap: 14px;
  margin-top: 18px;
}
.doc-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  box-shadow: var(--shadow);
}
.doc-left{
  display:flex;
  align-items:center;
  gap: 14px;
}
.doc-ic{
  width:44px;height:44px;
  border-radius: 14px;
  background:#e8f3ff;
  display:grid;place-items:center;
  font-size:18px;
}
.doc-title{font-weight:900}
.doc-sub{color:var(--muted);font-size:12.5px;margin-top:3px}

.btn-download{
  background:#16a34a;
  color:#fff;
  text-decoration:none;
  font-weight:900;
  padding: 10px 14px;
  border-radius: 14px;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  white-space:nowrap;
}
.btn-download:hover{filter: brightness(.97)}

.toast{
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  width: 260px;
  opacity: 0;
  transform: translateY(8px);
  transition: .18s ease;
}
.toast.show{
  opacity: 1;
  transform: translateY(0);
}
.toast-title{font-weight: 900}
.toast-desc{color:var(--muted);font-size:13px;margin-top:4px}

.empty{
  margin-top: 24px;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--muted);

}

