@charset "utf-8";
:root {
  --gov-blue-deep: #003049;
  --gov-blue-ocean: #023e8a;
  --gov-blue-light: #48cae4;
  --gov-gold: #ffb703;
  --font-main: 'Kanit', sans-serif;
}
body {
  font-family: var(--font-main);
  background-color: #f8f9fa;
  padding-top: 0;
  transition: background-color 0.3s, color 0.3s;
}
.fixed-top-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s;
}
.gov-hero {
  position: relative;
  height: auto;
  min-height: 350px;
  background: linear-gradient(135deg, #023e8a 0%, #48cae4 100%);
  margin-top: 0 !important;
  padding-top: 120px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}
.gov-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}
.gov-title {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.5rem;
}
.gov-divider {
  width: 60px;
  height: 4px;
  background-color: var(--gov-gold);
  margin: 10px auto;
  border-radius: 2px;
}
.gov-subtitle {
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 2px;
  font-size: 1rem;
}
.gov-search-section {
  margin-top: -80px;
  position: relative;
  z-index: 10;
}
.gov-search-card {
  background: #fff;
  border-radius: 50px;
  padding: 5px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
  transition: background-color 0.3s, border-color 0.3s;
}
.btn-search {
  background: linear-gradient(90deg, #0077b6, #0096c7);
  color: #fff;
  border-radius: 40px;
  border: none;
  transition: all 0.3s;
}
.btn-search:hover {
  background: linear-gradient(90deg, #0096c7, #00b4d8);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 119, 182, 0.3);
}
.main-card-gov {
  background-color: #fff;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}
.card-header, .card-footer {
  background-color: #fff;
}
.gov-thead {
  background-color: #f8f9fa;
}
.icon-stat {
  background-color: #f8f9fa;
  color: var(--gov-blue-ocean);
}
.gov-badge {
  background-color: #f8f9fa;
  color: var(--gov-blue-ocean);
}
.gov-text-sub, .gov-year {
  color: #6c757d;
}
.btn-gov-solid {
  background: linear-gradient(90deg, #023e8a 0%, #0096c7 100%);
  border: none;
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(2, 62, 138, 0.2);
}
.btn-gov-solid:hover {
  background: linear-gradient(90deg, #0096c7 0%, #023e8a 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(2, 62, 138, 0.3);
}
.btn-gov-outline {
  background-color: transparent;
  border: 1px solid var(--gov-blue-ocean);
  color: var(--gov-blue-ocean);
  transition: all 0.3s ease;
}
.btn-gov-outline:hover {
  background: linear-gradient(90deg, #023e8a 0%, #0096c7 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 6px rgba(2, 62, 138, 0.2);
}
.custom-pagination {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
}
.custom-pagination a, .custom-pagination span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 38px;
  width: auto;
  padding: 0 12px;
  height: 38px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid #dee2e6;
  color: #555;
  background: #fff;
  font-weight: 500;
  transition: all 0.2s;
  font-size: 0.9rem;
  white-space: nowrap;
}
.custom-pagination span.active, .custom-pagination span[class*="active"] {
  background-color: var(--gov-blue-ocean);
  color: #fff;
  border-color: var(--gov-blue-ocean);
}
.custom-pagination a:hover {
  background-color: #f1f1f1;
  color: var(--gov-blue-ocean);
  border-color: var(--gov-blue-ocean);
}
@media (max-width: 768px) {
  .gov-title {
    font-size: 1.8rem;
  }
  .gov-hero {
    padding-top: 100px;
    min-height:300px;
  }
  thead {
    display: none;
  }
  tbody tr {
    display: block;
    background: #fff;
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
  }
  tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    padding: 5px 0;
    text-align: right;
  }
  tbody td:nth-child(2):before {
    content: "ตำแหน่ง:";
    color: #999;
    font-size: 0.9rem;
  }
  tbody td:nth-child(3):before {
    content: "ตั้งแต่:";
    color: #999;
    font-size: 0.9rem;
  }
  tbody td:nth-child(4):before {
    content: "ถึง:";
    color: #999;
    font-size: 0.9rem;
  }
  tbody td:first-child {
    justify-content: center;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
}
[data-bs-theme="dark"] body, [data-theme="dark"] body {
  background-color: #0d1117 !important;
  color: #e6edf3 !important;
}
[data-bs-theme="dark"] .fixed-top-wrapper, [data-theme="dark"] .fixed-top-wrapper {
  background: rgba(22, 27, 34, 0.95) !important;
  border-bottom: 1px solid #30363d !important;
}
[data-bs-theme="dark"] .gov-search-card, [data-theme="dark"] .gov-search-card {
  background-color: #161b22 !important;
  border-color: #30363d !important;
  box-shadow: none !important;
}
[data-bs-theme="dark"] .gov-search-card input, [data-theme="dark"] .gov-search-card input {
  background-color: transparent !important;
  color: #e6edf3 !important;
}
[data-bs-theme="dark"] .gov-search-card input::placeholder, [data-theme="dark"] .gov-search-card input::placeholder {
  color: #8b949e !important;
}
[data-bs-theme="dark"] .main-card-gov, [data-theme="dark"] .main-card-gov {
  background-color: #161b22 !important;
  box-shadow: none !important;
  border: 1px solid #30363d !important;
}
[data-bs-theme="dark"] .card-header, [data-bs-theme="dark"] .card-footer, [data-theme="dark"] .card-header, [data-theme="dark"] .card-footer {
  background-color: #1c2128 !important;
  border-color: #30363d !important;
  color: #e6edf3 !important;
}
[data-bs-theme="dark"] .gov-thead, [data-theme="dark"] .gov-thead {
  background-color: #21262d !important;
  color: #e6edf3 !important;
}
[data-bs-theme="dark"] .table, [data-theme="dark"] .table {
  color: #e6edf3 !important;
}
[data-bs-theme="dark"] .gov-row, [data-theme="dark"] .gov-row {
  border-color: #30363d !important;
}
[data-bs-theme="dark"] .gov-row:hover, [data-theme="dark"] .gov-row:hover {
  background-color: #21262d !important;
}
[data-bs-theme="dark"] .gov-text-main, [data-bs-theme="dark"] .gov-name, [data-theme="dark"] .gov-text-main, [data-theme="dark"] .gov-name {
  color: #e6edf3 !important;
}
[data-bs-theme="dark"] .gov-text-sub, [data-bs-theme="dark"] .gov-year, [data-bs-theme="dark"] .text-muted, [data-theme="dark"] .gov-text-sub, [data-theme="dark"] .gov-year, [data-theme="dark"] .text-muted {
  color: #8b949e !important;
}
[data-bs-theme="dark"] .icon-stat, [data-bs-theme="dark"] .gov-badge, [data-theme="dark"] .icon-stat, [data-theme="dark"] .gov-badge {
  background-color: #21262d !important;
  color: #58a6ff !important;
  border-color: #30363d !important;
}
[data-bs-theme="dark"] .btn-gov-solid, [data-theme="dark"] .btn-gov-solid {
  background: linear-gradient(90deg, #1e6091 0%, #48cae4 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(72, 202, 228, 0.2);
}
[data-bs-theme="dark"] .btn-gov-solid:hover, [data-theme="dark"] .btn-gov-solid:hover {
  background: linear-gradient(90deg, #48cae4 0%, #1e6091 100%) !important;
}
[data-bs-theme="dark"] .btn-gov-outline, [data-theme="dark"] .btn-gov-outline {
  color: #58a6ff !important;
  border-color: #58a6ff !important;
}
[data-bs-theme="dark"] .btn-gov-outline:hover, [data-theme="dark"] .btn-gov-outline:hover {
  background: linear-gradient(90deg, #1e6091 0%, #48cae4 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
}
[data-bs-theme="dark"] .custom-pagination a, [data-bs-theme="dark"] .custom-pagination span, [data-theme="dark"] .custom-pagination a, [data-theme="dark"] .custom-pagination span {
  background-color: #161b22 !important;
  border-color: #30363d !important;
  color: #c9d1d9 !important;
}
[data-bs-theme="dark"] .custom-pagination a:hover, [data-theme="dark"] .custom-pagination a:hover {
  background-color: #1f6feb !important;
  color: #fff !important;
  border-color: #1f6feb !important;
}
[data-bs-theme="dark"] .custom-pagination span.active, [data-theme="dark"] .custom-pagination span.active {
  background-color: #1f6feb !important;
  border-color: #1f6feb !important;
}
@media (max-width: 768px) {
  [data-bs-theme="dark"] tbody tr, [data-theme="dark"] tbody tr {
    background-color: #161b22 !important;
    border-color: #30363d !important;
  }
}