.village-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.village-gallery-card {
  background: #ffffff;
  border: 1px solid #d7dde7;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.village-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}

.village-gallery-image-wrap {
  padding: 18px 18px 0;
}

.village-gallery-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 3px solid #9e2218;
  border-radius: 10px;
  display: block;
}

.village-gallery-caption {
  padding: 16px 18px 20px;
  text-align: center;
}

.village-gallery-caption h4 {
  font-size: 28px;
  margin-bottom: 0;
}

.page-intro-card {
  background: #ffffff;
  border: 1px solid #e7edf4;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.05);
}

.site-navbar-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.site-navbar-logo img {
  display: block;
  width: auto;
  max-width: min(100%, 460px);
  height: 74px;
  object-fit: contain;
}

.offcanvas__logo .site-navbar-logo img {
  height: 78px;
  max-width: 340px;
}

.admin-shell {
  background: #f6f8fb;
  min-height: 100vh;
  padding: 40px 0;
}

.admin-card {
  background: #ffffff;
  border: 1px solid #e1e7ef;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.05);
}

.admin-preview-image {
  width: 120px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #d7dde7;
}

.directory-table-wrap {
  background: #ffffff;
  border: 1px solid #e1e7ef;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.05);
}

.directory-table thead th {
  background: #9e2218;
  color: #ffffff;
  border-color: #9e2218;
  white-space: nowrap;
}

.directory-table td,
.directory-table th {
  vertical-align: middle;
}

.directory-photo {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #d7dde7;
}

.directory-photo-lg {
  width: 180px;
  height: 180px;
}

.directory-table td:last-child,
.directory-table th:last-child {
  text-align: center;
}

.directory-section-heading {
  margin-bottom: 20px;
}

.directory-section-heading h3 {
  margin-bottom: 8px;
}

.infrastructure-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.infrastructure-card {
  background: linear-gradient(180deg, #ffffff 0%, #fff7f5 100%);
  border: 1px solid #efd9d4;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
  height: 100%;
}

.infrastructure-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.infrastructure-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #9e2218;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.infrastructure-card h3 {
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 0;
}

.infrastructure-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.infrastructure-card-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: #4f5560;
}

.infrastructure-card-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9e2218;
  position: absolute;
  top: 9px;
  left: 0;
}

.infrastructure-card-list li:last-child {
  margin-bottom: 0;
}

.finggu-links-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.finggu-link-card {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, #fff6f3 100%);
  border: 1px solid #eed8d3;
  border-radius: 18px;
  padding: 28px 24px;
  min-height: 150px;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.finggu-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
  border-color: #9e2218;
}

.finggu-link-card h3 {
  color: #1f2937;
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 0;
}

.managed-content-box {
  background: #ffffff;
  border: 1px solid #e3e8ef;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.05);
}

.managed-content-box ul {
  margin: 0;
  padding-left: 22px;
}

.managed-content-box li {
  margin-bottom: 12px;
  color: #4f5560;
}

.managed-content-box li:last-child {
  margin-bottom: 0;
}

.about-panel-card {
  background: #fffdfb;
  border: 3px solid #9e2218;
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  height: 100%;
}

.about-panel-head {
  padding: 18px 20px 12px;
}

.about-panel-head h3 {
  margin-bottom: 8px;
  font-size: 34px;
}

.about-panel-head p {
  color: #5f6368;
}

.about-info-table {
  margin-bottom: 0;
}

.about-info-table thead th {
  background: #f8f3ee;
  color: #202124;
  font-weight: 700;
  border-bottom: 1px solid #d9dde3;
  border-top: 1px solid #d9dde3;
}

.about-info-table th,
.about-info-table td {
  vertical-align: middle;
  border-color: #d9dde3;
  padding: 16px 18px;
}

.about-info-table tbody td:first-child,
.about-info-table thead th:first-child {
  text-align: center;
  width: 90px;
}

.about-bank-card {
  padding-bottom: 10px;
}

.about-bank-details {
  padding: 0 20px 20px;
}

.about-bank-detail-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.about-bank-detail-item:last-child {
  margin-bottom: 0;
}

.about-bank-detail-item span {
  display: block;
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 6px;
}

.about-bank-detail-item strong {
  display: block;
  color: #111827;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
}

.population-chart-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.05);
}

.population-chart-header h4 {
  margin-bottom: 6px;
}

.population-chart-header p {
  color: #6b7280;
}

.population-chart-total {
  margin: 18px 0 16px;
}

.population-chart-total span {
  display: block;
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 4px;
}

.population-chart-total strong {
  display: block;
  color: #111827;
  font-size: 30px;
  line-height: 1.2;
}

.population-chart-canvas-wrap {
  position: relative;
  min-height: 280px;
}

@media (max-width: 991.98px) {
  .site-navbar-logo img {
    height: 60px;
    max-width: 320px;
  }

  .about-panel-head h3 {
    font-size: 28px;
  }
}

@media (max-width: 767.98px) {
  .site-navbar-logo img,
  .offcanvas__logo .site-navbar-logo img {
    height: 52px;
    max-width: 280px;
  }

  .directory-table-wrap {
    padding: 14px;
  }

  .directory-table,
  .directory-table thead,
  .directory-table tbody,
  .directory-table tr,
  .directory-table th,
  .directory-table td {
    display: block;
    width: 100%;
  }

  .directory-table thead {
    display: none;
  }

  .directory-table tbody tr {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  }

  .directory-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .directory-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border: 0;
    white-space: normal;
    text-align: right;
  }

  .directory-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #9e2218;
    text-align: left;
    flex: 0 0 42%;
  }

  .directory-table .directory-empty-cell {
    display: table-cell;
    text-align: center;
    padding: 24px 12px;
  }

  .directory-table .directory-empty-cell::before {
    content: none;
  }

  .directory-photo-cell {
    display: block !important;
    text-align: center !important;
    padding-top: 14px !important;
  }

  .directory-photo-cell::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 10px;
    text-align: center;
  }

  .directory-photo-lg {
    width: 96px;
    height: 96px;
  }

  .directory-photo {
    display: block;
    margin: 0 auto;
    border-width: 2px;
  }

  .about-info-table th,
  .about-info-table td {
    padding: 12px;
  }

  .about-bank-detail-item strong {
    font-size: 16px;
  }
}

