:root {
  --bg: #f0f7ff;
  --text: #222;
  --muted: #666;
  --primary: #1c4c8b;
  --secondary: #3a7bd5;
  --border: #e5e7eb;
}
html {
  overflow-y: auto;
  scrollbar-gutter: stable;
}
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Noto Sans", "PingFang HK", "Microsoft JhengHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.5;
}
h1 {
  font-size: 20px;
  margin: 0 0 8px;
}
.container {
  display: block;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
}
.subtitle {
  color: var(--muted);
  font-size: 14px;
}
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 20px 0 20px;
}
.filters label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.filters input,
.filters select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  box-sizing: border-box;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  background: #fff;
}
thead th {
  text-align: left;
  font-size: 12px;
  color: #fff;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
  background: var(--primary);
  position: relative;
  top: 0;
  z-index: 1;
  cursor: pointer;
}
thead th:hover {
  background-color: rgba(28, 76, 139, 0.9);
  color: #e5e7eb;
  transition: background-color 0.2s ease, color 0.2s ease;
}
thead th .sort-icon {
  margin-left: 6px;
  font-size: 12px;
  opacity: 0.6;
}
thead th.asc .sort-icon::after {
  content: "▲";
}
thead th.desc .sort-icon::after {
  content: "▼";
}
tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
tbody tr {
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
tbody tr:hover {
  background: var(--bg);
}
tbody th:first-child,
tbody td:first-child {
  text-align: center;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
}
.empty {
  padding: 18px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  background-color: #fff;
}
footer {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.note {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .filters {
    grid-template-columns: 1fr;
  }
}
.site-header {
  position: relative;
  width: 100%;
  text-align: center;
}

.site-header img {
  width: 100%;
  height: auto;
  display: block;
}

.site-banner p {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  text-align: justify;
}

@media (max-width: 768px) {
  .site-header {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
  }

  .site-header img {
    max-height: 100px;
    width: auto;
    height: 100%;
    display: block;
  }

  .site-banner {
    display: block !important;
    width: 100%;
    height: auto;
  }
}

.lang-bar {
  position: absolute;
  top: 10px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 1000;
}

.lang-bar button {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.lang-bar button:hover {
  background: var(--primary);
  color: #fff;
}

#langSelect {
  display: none;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  border-radius: 6px;
  padding: 4px 8px;
}

#jobsTable thead tr th {
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .lang-bar button {
    display: none;
  }
  #langSelect {
    display: inline-block;
  }
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}
