:root{
  --navy:#0b2a52;
  --navy-dark:#071c38;
  --gold:#d4af37;
  --gold-soft:#f6e7b0;
  --bg:#f3f6fb;
  --white:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --line:rgba(11,42,82,.08);
  --radius:18px;
  --shadow:0 14px 36px rgba(15,23,42,.08);
  --shadow-hover:0 18px 42px rgba(15,23,42,.12);
}

html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:"Noto Sans Thai",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:15px;
  line-height:1.7;
}

a{
  text-decoration:none !important;
}

a:hover{
  text-decoration:none !important;
}

.gov-header{
  background:
    linear-gradient(135deg, rgba(11,42,82,.97), rgba(7,28,56,.99)),
    url("/assets/images/hero.jpg");
  background-size:cover;
  background-position:center;
  color:#fff;
  border-bottom:3px solid var(--gold);
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}

.site-logo{
  width:40px !important;
  height:40px !important;
  min-width:40px;
  object-fit:contain;
  border-radius:10px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  padding:4px;
  box-shadow:0 4px 12px rgba(0,0,0,.16);
}

.site-title{
  font-weight:800;
  font-size:1.05rem;
  line-height:1.2;
  letter-spacing:.1px;
  margin:0;
}

.site-sub{
  font-size:.84rem;
  opacity:.88;
  margin-top:2px;
}

.gov-nav{
  background:rgba(255,255,255,.05);
  border-top:1px solid rgba(255,255,255,.08);
}

.nav-link-gov{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  color:#fff !important;
  font-weight:700;
  font-size:.90rem;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.10);
  transition:.2s ease;
  text-decoration:none !important;
}

.nav-link-gov:hover{
  color:#fff !important;
  background:rgba(212,175,55,.18);
  border-color:rgba(212,175,55,.35);
  transform:translateY(-1px);
  text-decoration:none !important;
}

.section-title{
  font-weight:800;
  color:var(--navy);
  display:flex;
  align-items:center;
  gap:.65rem;
  margin:0;
  font-size:1.20rem;
}

.section-title:before{
  content:"";
  width:10px;
  height:26px;
  background:linear-gradient(180deg,var(--gold),#c79e1c);
  border-radius:999px;
  display:inline-block;
}

.card-gov{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  transition:.2s ease;
}

.card-gov:hover{
  box-shadow:var(--shadow-hover);
}

.btn-gold{
  background:linear-gradient(180deg,#e5c85f,#cfa62a);
  color:#1d1d1d !important;
  border:0;
  font-weight:800;
  border-radius:999px;
  padding:10px 18px;
  box-shadow:0 8px 18px rgba(212,175,55,.20);
  text-decoration:none !important;
}

.btn-gold:hover{
  color:#111 !important;
  filter:brightness(.98);
  text-decoration:none !important;
}

.btn-outline-secondary,
.btn-outline-light,
.btn-outline-danger{
  border-radius:999px;
  text-decoration:none !important;
}

.thumb{
  width:100%;
  height:210px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--line);
  background:#eef2f7;
}

.thumb-sm{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--line);
  background:#eef2f7;
}

.badge-status{
  display:inline-flex;
  align-items:center;
  padding:.48rem .85rem;
  border-radius:999px;
  font-weight:800;
  font-size:.88rem;
}

.badge-received{
  background:rgba(11,42,82,.08);
  color:var(--navy);
  border:1px solid rgba(11,42,82,.14);
}

.badge-progress{
  background:rgba(255,193,7,.18);
  color:#7a5a00;
  border:1px solid rgba(255,193,7,.35);
}

.badge-done{
  background:rgba(25,135,84,.13);
  color:#146c43;
  border:1px solid rgba(25,135,84,.26);
}

.form-control,
.form-select{
  min-height:46px;
  border-radius:14px;
  border:1px solid rgba(11,42,82,.12);
  box-shadow:none !important;
}

.form-control:focus,
.form-select:focus{
  border-color:rgba(11,42,82,.35);
}

textarea.form-control{
  min-height:150px;
}

.table{
  margin-bottom:0;
}

.table thead th{
  background:#f8fafc;
  color:var(--navy);
  font-weight:800;
  border-bottom:1px solid rgba(11,42,82,.10);
}

.table td{
  vertical-align:middle;
}

.admin-topbar{
  background:linear-gradient(135deg, rgba(11,42,82,.98), rgba(7,28,56,1));
  color:#fff;
  border-bottom:3px solid var(--gold);
}

.admin-nav{
  background:#0d274d;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.gov-footer{
  margin-top:42px;
  background:linear-gradient(135deg, rgba(11,42,82,.98), rgba(7,28,56,1));
  border-top:3px solid var(--gold);
  color:#fff;
}

.footer-title{
  font-weight:800;
  font-size:1rem;
}

.footer-sub{
  opacity:.88;
  font-size:.92rem;
}

.alert{
  border-radius:16px;
}

@media (max-width: 768px){
  .site-logo{
    width:36px !important;
    height:36px !important;
    min-width:36px;
    padding:3px;
  }
  .site-title{
    font-size:.96rem;
  }
  .site-sub{
    font-size:.80rem;
  }
  .thumb{
    height:185px;
  }
  .thumb-sm{
    height:140px;
  }
}

/* =========================
   LEADERS PAGE PREMIUM
========================= */

.section-title-sm{
  font-size: 1.05rem;
}

.leader-main-wrap{
  position: relative;
}

.leader-main-card{
  position: relative;
  padding: 34px 28px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(11,42,82,.03), rgba(212,175,55,.06));
  border: 1px solid rgba(212,175,55,.28);
  box-shadow: 0 18px 46px rgba(15,23,42,.10);
}

.leader-main-card:before{
  content:"";
  position:absolute;
  right:-80px;
  top:-80px;
  width:240px;
  height:240px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(212,175,55,.14), transparent 68%);
  pointer-events:none;
}

.leader-main-card:after{
  content:"";
  position:absolute;
  left:-60px;
  bottom:-60px;
  width:180px;
  height:180px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(11,42,82,.08), transparent 68%);
  pointer-events:none;
}

.leader-main-badge{
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e6ca6b, #cfa62a);
  color: #1f1f1f;
  font-size: .84rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(212,175,55,.24);
  z-index: 2;
}

.leader-main-photo{
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid rgba(212,175,55,.75);
  box-shadow: 0 16px 36px rgba(15,23,42,.16);
  background: #f4f6fb;
}

.leader-main-content{
  position: relative;
  z-index: 2;
}

.leader-rank{
  display:inline-flex;
  align-items:center;
  padding:7px 14px;
  border-radius:999px;
  background:rgba(11,42,82,.08);
  color:var(--navy);
  font-size:.84rem;
  font-weight:800;
  border:1px solid rgba(11,42,82,.10);
  margin-bottom:12px;
}

.leader-main-name{
  margin:0 0 8px;
  font-size:1.75rem;
  line-height:1.25;
  font-weight:800;
  color:var(--navy);
}

.leader-main-position{
  display:inline-block;
  margin-bottom:14px;
  font-size:1rem;
  font-weight:700;
  color:#7a5a00;
  background:rgba(212,175,55,.14);
  border:1px solid rgba(212,175,55,.30);
  padding:8px 14px;
  border-radius:999px;
}

.leader-main-desc{
  color:#5f6b7a;
  line-height:1.8;
  max-width: 52ch;
}

.leader-sub-card{
  position: relative;
  padding: 22px 18px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  border:1px solid rgba(11,42,82,.08);
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
  transition: .22s ease;
}

.leader-sub-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(15,23,42,.12);
}

.leader-sub-rank{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(11,42,82,.08);
  color:var(--navy);
  font-size:.82rem;
  font-weight:800;
  border:1px solid rgba(11,42,82,.10);
  margin-bottom:14px;
}

.leader-sub-photo{
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(212,175,55,.55);
  background:#f4f6fb;
  box-shadow: 0 12px 24px rgba(15,23,42,.10);
  margin: 0 auto 14px;
  display:block;
}

.leader-sub-body{
  text-align:center;
}

.leader-sub-name{
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 5px;
}

.leader-sub-position{
  color:#6b7280;
  font-size:.92rem;
  line-height:1.5;
}

.leader-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  color:var(--navy);
  background:
    linear-gradient(180deg, rgba(11,42,82,.06), rgba(212,175,55,.08));
}

@media (max-width: 991px){
  .leader-main-card{
    padding: 28px 22px;
  }

  .leader-main-photo{
    width: 190px;
    height: 190px;
  }

  .leader-main-name{
    font-size: 1.45rem;
  }

  .leader-main-badge{
    position: static;
    margin-bottom: 18px;
  }
}

@media (max-width: 576px){
  .leader-main-card{
    padding: 22px 18px;
    border-radius: 20px;
  }

  .leader-main-photo{
    width: 160px;
    height: 160px;
  }

  .leader-main-name{
    font-size: 1.25rem;
  }

  .leader-main-position{
    font-size: .92rem;
  }

  .leader-sub-photo{
    width: 104px;
    height: 104px;
  }
}