@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700;800&display=swap");

:root {
  --green-900:#0f513d;
  --green-800:#146c50;
  --green-700:#19835f;
  --green-600:#23966f;
  --green-500:#31aa7e;
  --green-100:#e8f7f1;
  --green-50:#f3fbf8;

  --orange-600:#e98725;
  --orange-100:#fff0df;
  --blue-100:#eaf3ff;

  --ink:#20312c;
  --text:#344842;
  --muted:#758680;
  --line:#e4ece8;
  --surface:#ffffff;
  --bg:#f5f8f7;
  --danger:#c94b4b;
  --danger-soft:#fff0f0;

  --radius-xl:28px;
  --radius-lg:20px;
  --radius-md:14px;
  --radius-sm:10px;

  --shadow-sm:0 4px 14px rgba(16,61,47,.05);
  --shadow-md:0 12px 34px rgba(16,61,47,.08);
  --shadow-lg:0 24px 60px rgba(16,61,47,.13);
}

* { box-sizing:border-box; }

html { scroll-behavior:smooth; }

body {
  margin:0;
  min-height:100vh;
  font-family:"Noto Sans Thai","Segoe UI",Tahoma,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(49,170,126,.07), transparent 24rem),
    var(--bg);
}

button,input,textarea,select { font:inherit; }

a { color:inherit; text-decoration:none; }

img { max-width:100%; }

.hidden { display:none !important; }

.muted { color:var(--muted); }

.eyebrow {
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-bottom:10px;
  color:var(--green-700);
  font-size:13px;
  font-weight:800;
  letter-spacing:.02em;
}

.eyebrow::before {
  content:"";
  width:20px;
  height:2px;
  border-radius:999px;
  background:var(--green-500);
}

/* ---------- Header ---------- */
.site-header {
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(228,236,232,.95);
}

.nav-shell {
  width:min(1240px, calc(100% - 32px));
  min-height:76px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:22px;
}

.brand {
  margin-right:auto;
  display:flex;
  align-items:center;
  gap:12px;
  min-width:max-content;
}

.brand-copy {
  display:flex;
  flex-direction:column;
  line-height:1.15;
}

.brand-copy strong {
  font-size:18px;
  color:var(--green-900);
}

.brand-copy small {
  margin-top:4px;
  font-size:10px;
  color:var(--muted);
  font-weight:600;
}

.nav-links {
  display:flex;
  gap:4px;
  align-items:center;
}

.nav-links a {
  position:relative;
  padding:10px 12px;
  border-radius:10px;
  font-size:14px;
  font-weight:600;
  color:#52635d;
  transition:.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color:var(--green-800);
  background:var(--green-50);
}

.nav-links a.active::after {
  content:"";
  position:absolute;
  height:3px;
  left:14px;
  right:14px;
  bottom:-7px;
  border-radius:99px;
  background:var(--green-500);
}

.account-box {
  display:flex;
  align-items:center;
  gap:8px;
}

.account-user {
  display:flex;
  align-items:center;
  gap:9px;
  padding:5px 7px 5px 5px;
  background:#f8fbfa;
  border:1px solid var(--line);
  border-radius:999px;
}

.account-avatar {
  width:33px;
  height:33px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--green-100);
  color:var(--green-800);
  font-weight:800;
}

.account-name {
  max-width:125px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:12px;
  font-weight:700;
}

/* ---------- Layout ---------- */
.container,
.page-shell {
  width:min(1180px, calc(100% - 32px));
  margin:auto;
  padding:30px 0 68px;
}

.page-shell.wide {
  width:min(1240px, calc(100% - 32px));
}

.page-hero {
  padding:34px 0 20px;
}

.page-hero h1 {
  margin:5px 0 8px;
  font-size:clamp(30px,4vw,46px);
  line-height:1.2;
  color:var(--ink);
}

.page-hero p {
  max-width:760px;
  margin:0;
  color:var(--muted);
  line-height:1.75;
}

.hero-home {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:365px;
  border-radius:var(--radius-xl);
  padding:54px;
  display:flex;
  align-items:center;
  background:
    radial-gradient(circle at 83% 25%, rgba(255,255,255,.22), transparent 12rem),
    radial-gradient(circle at 75% 120%, rgba(255,197,120,.25), transparent 20rem),
    linear-gradient(135deg,#116a4c 0%,#1f9169 55%,#39ac81 100%);
  color:white;
  box-shadow:var(--shadow-lg);
}

.hero-home::after {
  content:"";
  position:absolute;
  width:320px;
  height:320px;
  right:-80px;
  bottom:-120px;
  border-radius:50%;
  border:55px solid rgba(255,255,255,.07);
  z-index:-1;
}

.hero-content { max-width:720px; }

.hero-kicker {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 11px;
  margin-bottom:15px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  background:rgba(255,255,255,.12);
  font-size:13px;
  font-weight:700;
}

.hero-home h1 {
  margin:0 0 14px;
  font-size:clamp(34px,5.5vw,62px);
  line-height:1.12;
  letter-spacing:-.02em;
}

.hero-home p {
  margin:0;
  max-width:690px;
  font-size:17px;
  line-height:1.8;
  color:rgba(255,255,255,.9);
}

.hero-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:24px;
}

.hero-actions .btn-outline {
  color:white;
  border-color:rgba(255,255,255,.38);
  background:rgba(255,255,255,.08);
}

.hero-actions .btn-outline:hover {
  background:rgba(255,255,255,.15);
}

.quick-strip {
  margin-top:-24px;
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  padding:0 24px;
}

.quick-card {
  display:flex;
  align-items:center;
  gap:13px;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:white;
  box-shadow:var(--shadow-md);
}

.quick-icon {
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  flex:none;
  border-radius:13px;
  background:var(--green-100);
  color:var(--green-800);
  font-size:19px;
}

.quick-card strong {
  display:block;
  color:var(--ink);
  font-size:14px;
}

.quick-card small {
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:11px;
}

/* ---------- Buttons ---------- */
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:41px;
  padding:9px 15px;
  border:1px solid transparent;
  border-radius:11px;
  cursor:pointer;
  font-weight:700;
  font-size:14px;
  transition:.18s ease;
}

.btn:hover { transform:translateY(-1px); }

.btn-primary {
  color:#fff;
  background:linear-gradient(135deg,var(--green-700),var(--green-500));
  box-shadow:0 7px 16px rgba(35,150,111,.18);
}

.btn-primary:hover { box-shadow:0 10px 22px rgba(35,150,111,.24); }

.btn-outline {
  color:var(--ink);
  background:white;
  border-color:var(--line);
}

.btn-soft {
  color:var(--green-800);
  background:var(--green-100);
}

.btn-danger {
  color:#fff;
  background:var(--danger);
}

.btn-warning {
  color:#704312;
  background:var(--orange-100);
  border-color:#f4d4ae;
}

/* ---------- Section heading / filters ---------- */
.section-title {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:18px;
  margin:38px 0 16px;
}

.section-title h2,
.section-title h1 {
  margin:0;
  color:var(--ink);
}

.section-subtitle {
  margin-top:5px;
  color:var(--muted);
  font-size:13px;
}

.news-toolbar {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  margin:18px 0 20px;
}

.search-box {
  position:relative;
}

.search-box input {
  padding-left:42px;
}

.search-box::before {
  content:"⌕";
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  color:var(--muted);
  font-size:20px;
  z-index:2;
}

.category-chips {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  align-items:center;
}

.chip {
  border:1px solid var(--line);
  background:white;
  color:#61716c;
  border-radius:999px;
  padding:8px 12px;
  cursor:pointer;
  font-size:12px;
  font-weight:700;
}

.chip:hover,
.chip.active {
  color:var(--green-800);
  background:var(--green-100);
  border-color:#cce9dd;
}

/* ---------- News ---------- */
.news-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.news-card {
  position:relative;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  min-height:100%;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:var(--surface);
  box-shadow:var(--shadow-sm);
  transition:transform .2s ease, box-shadow .2s ease;
}

.news-card:hover {
  transform:translateY(-4px);
  box-shadow:var(--shadow-md);
}

.news-card.featured {
  grid-column:span 2;
}

.news-card.featured .news-cover {
  aspect-ratio:2.05/1;
}

.news-cover {
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  background:#eef5f2;
}

.news-cover.placeholder {
  display:grid;
  place-items:center;
  background:
    linear-gradient(135deg,rgba(35,150,111,.12),rgba(255,240,223,.85));
  color:var(--green-700);
}

.placeholder-mark {
  width:64px;
  height:64px;
  display:grid;
  place-items:center;
  border-radius:20px;
  background:white;
  box-shadow:var(--shadow-sm);
  font-size:29px;
}

.news-body {
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:9px;
  flex:1;
}

.news-body h3 {
  margin:0;
  color:var(--ink);
  font-size:18px;
  line-height:1.45;
}

.news-card.featured .news-body h3 {
  font-size:23px;
}

.news-summary {
  color:var(--muted);
  font-size:13px;
  line-height:1.65;
}

.news-meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:auto;
  padding-top:4px;
  color:var(--muted);
  font-size:11px;
}

.badges {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.badge {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 9px;
  border-radius:999px;
  background:var(--green-100);
  color:var(--green-800);
  font-size:10px;
  font-weight:800;
}

.badge.orange {
  color:#a15e15;
  background:var(--orange-100);
}

.empty-state {
  grid-column:1/-1;
  text-align:center;
  padding:52px 24px;
  border:1px dashed #cbd9d3;
  border-radius:var(--radius-lg);
  background:rgba(255,255,255,.7);
}

.empty-state .empty-icon {
  width:66px;
  height:66px;
  display:grid;
  place-items:center;
  margin:0 auto 12px;
  border-radius:20px;
  background:var(--green-100);
  color:var(--green-700);
  font-size:28px;
}

.empty-state h3 {
  margin:0 0 6px;
  color:var(--ink);
}

/* ---------- Cards / forms ---------- */
.card {
  padding:24px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:white;
  box-shadow:var(--shadow-sm);
}

.form-shell {
  display:grid;
  grid-template-columns:235px minmax(0,1fr);
  gap:22px;
  align-items:start;
}

.form-rail {
  position:sticky;
  top:100px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:white;
  box-shadow:var(--shadow-sm);
}

.form-rail-title {
  margin-bottom:12px;
  color:var(--ink);
  font-size:13px;
  font-weight:800;
}

.form-step {
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 8px;
  border-radius:10px;
  color:var(--muted);
  font-size:12px;
  font-weight:650;
}

.step-dot {
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  flex:none;
  border-radius:50%;
  background:#eef3f1;
  color:#667a73;
  font-size:10px;
  font-weight:800;
}

.form-step.highlight {
  color:var(--green-800);
  background:var(--green-50);
}

.form-step.highlight .step-dot {
  color:#fff;
  background:var(--green-600);
}

.form-main {
  display:grid;
  gap:16px;
}

.form-section {
  padding:25px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:white;
  box-shadow:var(--shadow-sm);
}

.section-head {
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:20px;
}

.section-number {
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  flex:none;
  border-radius:12px;
  background:var(--green-100);
  color:var(--green-800);
  font-size:12px;
  font-weight:800;
}

.section-head h3 {
  margin:0;
  color:var(--green-900);
  font-size:18px;
}

.section-head p {
  margin:3px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
}

.form-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:15px;
}

.form-group {
  display:flex;
  flex-direction:column;
  gap:7px;
}

.form-group.full { grid-column:1/-1; }

label {
  color:#3c514a;
  font-size:12px;
  font-weight:750;
}

.required { color:var(--danger); }

input,
textarea,
select {
  width:100%;
  border:1px solid #dce6e1;
  border-radius:11px;
  background:white;
  padding:11px 12px;
  color:var(--ink);
  transition:border-color .15s ease, box-shadow .15s ease;
}

textarea {
  min-height:120px;
  resize:vertical;
  line-height:1.6;
}

input::placeholder,
textarea::placeholder { color:#a0aea9; }

input:focus,
textarea:focus,
select:focus {
  outline:none;
  border-color:#6bc5a3;
  box-shadow:0 0 0 4px rgba(49,170,126,.1);
}

input[readonly] {
  color:#71817c;
  background:#f3f6f5;
}

.form-actions {
  position:sticky;
  bottom:12px;
  z-index:10;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:12px;
  border:1px solid rgba(228,236,232,.95);
  border-radius:15px;
  background:rgba(255,255,255,.93);
  backdrop-filter:blur(12px);
  box-shadow:var(--shadow-md);
}

/* ---------- Alerts ---------- */
.alert {
  padding:12px 14px;
  margin:12px 0;
  border-radius:12px;
  border:1px solid transparent;
  font-size:13px;
}

.alert-success {
  color:#176649;
  background:#eaf8f2;
  border-color:#caeadc;
}

.alert-danger {
  color:#9a3333;
  background:var(--danger-soft);
  border-color:#f3cccc;
}

.alert-info {
  color:#315e91;
  background:var(--blue-100);
  border-color:#d5e5f7;
}

/* ---------- Auth ---------- */
.auth-page {
  min-height:calc(100vh - 76px);
  display:grid;
  grid-template-columns:1.1fr .9fr;
}

.auth-visual {
  position:relative;
  overflow:hidden;
  min-height:650px;
  display:flex;
  align-items:center;
  padding:56px;
  color:#fff;
  background:
    radial-gradient(circle at 80% 15%,rgba(255,255,255,.17),transparent 12rem),
    linear-gradient(145deg,#0e6045,#23966f 65%,#49b98f);
}

.auth-visual::before,
.auth-visual::after {
  content:"";
  position:absolute;
  border-radius:50%;
  border:55px solid rgba(255,255,255,.06);
}

.auth-visual::before {
  width:300px;height:300px;right:-80px;bottom:-80px;
}

.auth-visual::after {
  width:170px;height:170px;left:-80px;top:-60px;
}

.auth-visual-content {
  position:relative;
  z-index:1;
  max-width:540px;
}

.auth-visual h1 {
  margin:0 0 15px;
  font-size:clamp(36px,5vw,58px);
  line-height:1.15;
}

.auth-visual p {
  margin:0;
  max-width:500px;
  color:rgba(255,255,255,.88);
  line-height:1.8;
}

.auth-points {
  display:grid;
  gap:12px;
  margin-top:28px;
}

.auth-point {
  display:flex;
  gap:10px;
  align-items:center;
  font-size:13px;
}

.auth-check {
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.2);
}

.auth-panel {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:42px 28px;
  background:#fbfdfc;
}

.auth-card {
  width:min(450px,100%);
  padding:30px;
  border:1px solid var(--line);
  border-radius:24px;
  background:white;
  box-shadow:var(--shadow-md);
}

.auth-card h2 {
  margin:0 0 5px;
  color:var(--ink);
  font-size:27px;
}

.auth-card .form-group { margin-bottom:14px; }

/* ---------- History ---------- */
.history-toolbar {
  display:flex;
  gap:10px;
  margin-bottom:16px;
}

.history-toolbar .search-box { flex:1; }

.list {
  display:grid;
  gap:12px;
}

.list-item {
  display:flex;
  align-items:center;
  gap:16px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:white;
  box-shadow:var(--shadow-sm);
}

.list-accent {
  width:5px;
  align-self:stretch;
  border-radius:999px;
  background:linear-gradient(var(--green-500),#85d2b6);
}

.list-main { flex:1; min-width:0; }

.list-item h3 {
  margin:0 0 4px;
  color:var(--ink);
  font-size:17px;
}

.meta {
  color:var(--muted);
  font-size:11px;
}

.actions {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:10px;
}

/* ---------- Admin ---------- */
.admin-summary {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:20px;
}

.stat-card {
  padding:18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:white;
  box-shadow:var(--shadow-sm);
}

.stat-label {
  color:var(--muted);
  font-size:11px;
  font-weight:700;
}

.stat-value {
  margin-top:6px;
  color:var(--ink);
  font-size:28px;
  font-weight:800;
}

.admin-layout {
  display:grid;
  grid-template-columns:minmax(380px,.85fr) minmax(0,1.15fr);
  gap:18px;
  align-items:start;
}

.admin-form-card {
  position:sticky;
  top:100px;
}

.admin-list-toolbar {
  display:flex;
  gap:9px;
  margin-bottom:12px;
}

.admin-list-toolbar input { flex:1; }

/* ---------- Modal ---------- */
.modal {
  position:fixed;
  inset:0;
  z-index:100;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(12,32,26,.54);
  backdrop-filter:blur(6px);
}

.modal.open { display:flex; }

.modal-box {
  position:relative;
  width:min(850px,100%);
  max-height:90vh;
  overflow:auto;
  padding:28px;
  border-radius:24px;
  background:white;
  box-shadow:0 30px 80px rgba(0,0,0,.22);
}

.modal-close {
  position:sticky;
  top:0;
  float:right;
  width:38px;
  height:38px;
  margin:-8px -8px 0 10px;
  border:1px solid var(--line);
  border-radius:50%;
  background:white;
  color:#66756f;
  cursor:pointer;
  font-size:23px;
}

.detail-block {
  padding:12px 0;
  border-bottom:1px solid var(--line);
}

.detail-block strong {
  display:block;
  margin-bottom:4px;
  color:var(--green-900);
  font-size:12px;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top:20px;
  border-top:1px solid var(--line);
  background:#fff;
}

.footer-shell {
  width:min(1180px,calc(100% - 32px));
  margin:auto;
  padding:30px 0;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
}

.footer-brand {
  color:var(--green-900);
  font-size:18px;
  font-weight:800;
}

.footer-note {
  margin-top:4px;
  max-width:520px;
  color:var(--muted);
  font-size:12px;
  line-height:1.7;
}

.footer-links {
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  color:#62726c;
  font-size:12px;
  font-weight:600;
}

.footer-bottom {
  padding:12px 20px 20px;
  text-align:center;
  color:#96a39e;
  font-size:10px;
}


/* ---------- Organizational logos ---------- */
.org-logo-bar {
  background:#fff;
  border-bottom:1px solid var(--line);
}

.org-logo-shell {
  width:min(1240px, calc(100% - 32px));
  min-height:74px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:8px 0;
}

.org-logo-label {
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
}

.org-logo-list {
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.org-logo-list img {
  display:block;
  width:auto;
  height:54px;
  max-width:155px;
  object-fit:contain;
  background:#fff;
  border-radius:8px;
}

.brand-logo-wrap {
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:15px;
  background:#fff;
  box-shadow:0 7px 18px rgba(16,61,47,.12);
  flex:none;
}

.brand-logo-image {
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

@media (max-width:900px) {
  .org-logo-shell {
    min-height:66px;
    padding:7px 0;
  }

  .org-logo-list {
    gap:9px;
  }

  .org-logo-list img {
    height:46px;
    max-width:130px;
  }

  .org-logo-label {
    display:none;
  }
}

@media (max-width:640px) {
  .org-logo-shell {
    justify-content:center;
    width:min(100% - 20px,1240px);
  }

  .org-logo-list {
    width:100%;
    justify-content:center;
    gap:6px;
  }

  .org-logo-list img {
    height:38px;
    max-width:31%;
  }

  .brand-logo-wrap {
    width:44px;
    height:44px;
    border-radius:12px;
  }
}

/* ---------- Responsive ---------- */
@media (max-width:1050px) {
  .brand-copy small { display:none; }
  .nav-links a { padding:9px 9px; }
  .admin-layout { grid-template-columns:1fr; }
  .admin-form-card { position:static; }
}

@media (max-width:900px) {
  .nav-shell {
    flex-wrap:wrap;
    padding:10px 0 12px;
    gap:10px 14px;
  }

  .nav-links {
    order:3;
    width:100%;
    overflow-x:auto;
    padding-bottom:1px;
  }

  .nav-links a.active::after { bottom:-3px; }

  .news-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .news-card.featured { grid-column:span 2; }

  .form-shell { grid-template-columns:1fr; }
  .form-rail { position:static; display:none; }

  .auth-page { grid-template-columns:1fr; }
  .auth-visual { min-height:auto; padding:44px 28px; }
  .auth-panel { padding:32px 18px 56px; }

  .admin-summary { grid-template-columns:repeat(2,1fr); }
}

@media (max-width:640px) {
  .nav-shell { width:min(100% - 22px,1240px); }
  .brand-copy strong { font-size:16px; }
  .account-name { display:none; }

  .container,
  .page-shell,
  .page-shell.wide { width:min(100% - 22px,1240px); padding-top:20px; }

  .hero-home { padding:34px 24px; min-height:330px; }
  .hero-home h1 { font-size:37px; }
  .hero-home p { font-size:14px; }

  .quick-strip {
    grid-template-columns:1fr;
    padding:0 10px;
  }

  .news-toolbar { grid-template-columns:1fr; }
  .news-grid { grid-template-columns:1fr; }
  .news-card.featured { grid-column:auto; }

  .section-title {
    align-items:flex-start;
    flex-direction:column;
  }

  .form-grid { grid-template-columns:1fr; }
  .form-group.full { grid-column:auto; }
  .form-section { padding:19px 16px; }

  .form-actions { justify-content:stretch; }
  .form-actions .btn { width:100%; }

  .list-item { align-items:flex-start; }
  .list-item > .btn { width:auto; }

  .admin-summary { grid-template-columns:1fr 1fr; }

  .footer-shell { flex-direction:column; }
}



/* =========================================================
   HOME V4 — อ้างอิงหน้าตาตามภาพตัวอย่างของผู้ใช้
   ========================================================= */
.home-reference-page {
  background:
    radial-gradient(circle at 80% 0%, rgba(81,135,98,.08), transparent 26rem),
    linear-gradient(180deg,#fbf5eb 0%,#f6f1e7 100%);
}

.home-topbar {
  position:sticky;
  top:0;
  z-index:70;
  background:rgba(251,247,239,.86);
  backdrop-filter:blur(15px);
}

.home-topbar-inner {
  width:min(1320px,calc(100% - 28px));
  min-height:72px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:22px;
}

.home-mini-brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  font-weight:800;
  color:#234f3d;
  margin-right:auto;
}

.home-mini-brand img {
  width:42px;
  height:42px;
  object-fit:contain;
  border-radius:50%;
  background:white;
  box-shadow:0 5px 15px rgba(35,79,61,.09);
}

.home-nav {
  display:flex;
  align-items:center;
  gap:4px;
}

.home-nav a {
  padding:9px 12px;
  border-radius:999px;
  color:#5f7069;
  font-size:13px;
  font-weight:700;
}

.home-nav a:hover,
.home-nav a.active {
  color:#1d7d5e;
  background:rgba(255,255,255,.75);
}

.home-account-box {
  padding:5px;
  border-radius:999px;
  background:rgba(255,255,255,.9);
  box-shadow:0 6px 24px rgba(54,70,61,.09);
}

.home-reference-shell {
  width:min(1380px,calc(100% - 26px));
  margin:0 auto;
  padding:10px 0 58px;
}

.home-white-card {
  padding:28px;
  border-radius:38px;
  background:rgba(255,255,255,.88);
  box-shadow:0 20px 50px rgba(55,70,60,.09);
  border:1px solid rgba(255,255,255,.92);
}

.project-hero {
  position:relative;
  overflow:hidden;
  min-height:292px;
  padding:38px 34px;
  border-radius:20px;
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(360px,.8fr);
  gap:36px;
  align-items:center;
  color:white;
  background:
    radial-gradient(circle at 4% 110%,rgba(255,255,255,.08) 0 15rem, transparent 15rem),
    radial-gradient(circle at 90% 20%,rgba(255,255,255,.08) 0 9rem, transparent 9rem),
    linear-gradient(100deg,#32bf7b 0%,#2dbb7d 45%,#13a97b 100%);
  box-shadow:0 22px 42px rgba(25,159,112,.18);
}

.project-hero::before {
  content:"";
  position:absolute;
  left:-90px;
  top:20px;
  width:360px;
  height:360px;
  border-radius:50%;
  background:rgba(255,255,255,.055);
}

.project-hero::after {
  content:"";
  position:absolute;
  right:-80px;
  top:-40px;
  width:280px;
  height:280px;
  border-radius:50%;
  background:rgba(255,255,255,.055);
}

.project-hero-copy,
.project-logo-panel {
  position:relative;
  z-index:2;
}

.project-pill {
  width:max-content;
  max-width:100%;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  margin-bottom:16px;
  border-radius:999px;
  color:#247a58;
  background:white;
  font-size:12px;
  font-weight:800;
  box-shadow:0 5px 14px rgba(0,0,0,.04);
}

.project-pill-icon {
  color:#ff4d5e;
  font-size:14px;
}

.project-hero h1 {
  margin:0 0 10px;
  max-width:900px;
  font-size:clamp(28px,3.1vw,43px);
  line-height:1.24;
  letter-spacing:-.01em;
  color:white;
}

.project-hero p {
  margin:0;
  max-width:940px;
  color:rgba(255,255,255,.94);
  font-size:14px;
  line-height:1.75;
  font-weight:650;
}

.project-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:26px;
}

.project-btn {
  min-height:52px;
  padding:0 22px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  font-weight:800;
  transition:.18s ease;
}

.project-btn:hover {
  transform:translateY(-2px);
}

.project-btn-light {
  color:#207b59;
  background:white;
  box-shadow:0 7px 20px rgba(0,0,0,.08);
}

.project-btn-outline {
  color:white;
  border:1.5px solid rgba(255,255,255,.88);
  background:rgba(255,255,255,.06);
}

.project-btn-icon {
  font-size:18px;
  line-height:1;
}

.project-logo-panel {
  min-height:190px;
  padding:20px 26px;
  border-radius:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  background:rgba(255,255,255,.20);
  border:1px solid rgba(255,255,255,.35);
  backdrop-filter:blur(4px);
}

.project-logo-panel img {
  width:auto;
  height:112px;
  max-width:30%;
  object-fit:contain;
  border-radius:16px;
  background:transparent;
}

.reference-news-section {
  padding:8px 4px 4px;
}

.home-footer {
  background:transparent;
  border-top:0;
}

@media (max-width:1050px) {
  .project-hero {
    grid-template-columns:1fr;
  }

  .project-logo-panel {
    min-height:150px;
  }

  .project-logo-panel img {
    height:96px;
  }
}

@media (max-width:860px) {
  .home-nav {
    display:none;
  }

  .home-reference-shell {
    width:min(100% - 14px,1380px);
  }

  .home-white-card {
    padding:14px;
    border-radius:28px;
  }

  .project-hero {
    padding:28px 22px;
    gap:24px;
  }

  .project-hero h1 {
    font-size:32px;
  }
}

@media (max-width:640px) {
  .home-topbar-inner {
    width:min(100% - 16px,1320px);
    min-height:64px;
  }

  .home-mini-brand span {
    display:none;
  }

  .home-mini-brand img {
    width:38px;
    height:38px;
  }

  .home-account-box .btn {
    padding:8px 10px;
    font-size:11px;
  }

  .home-white-card {
    padding:10px;
  }

  .project-hero {
    border-radius:17px;
    padding:24px 18px;
  }

  .project-pill {
    font-size:10px;
  }

  .project-hero h1 {
    font-size:27px;
  }

  .project-hero p {
    font-size:12px;
  }

  .project-actions {
    flex-direction:column;
  }

  .project-btn {
    width:100%;
    justify-content:center;
  }

  .project-logo-panel {
    min-height:118px;
    gap:10px;
    padding:15px;
    border-radius:20px;
  }

  .project-logo-panel img {
    height:72px;
    max-width:31%;
  }
}



/* =========================================================
   V5 — UDA-inspired organizational homepage
   Inspired by information architecture, not a direct copy.
   ========================================================= */

.uda-home {
  background:#fff;
  color:#36463f;
}

.uda-header {
  position:relative;
  z-index:80;
  background:#fff;
  box-shadow:0 2px 14px rgba(30,54,45,.06);
}

.uda-org-strip {
  border-bottom:1px solid #edf1ef;
  background:#fafcfb;
}

.uda-org-strip-inner {
  width:min(1240px,calc(100% - 30px));
  min-height:70px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.uda-org-logos {
  display:flex;
  align-items:center;
  gap:12px;
}

.uda-org-logos img {
  width:auto;
  height:54px;
  max-width:140px;
  object-fit:contain;
  border-radius:8px;
  background:white;
}

.uda-account-box {
  margin-left:auto;
}

.uda-nav {
  background:white;
  border-bottom:1px solid #edf1ef;
}

.uda-nav-inner {
  width:min(1240px,calc(100% - 30px));
  min-height:78px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:25px;
}

.uda-brand {
  display:flex;
  align-items:center;
  gap:11px;
  margin-right:auto;
}

.uda-brand img {
  width:54px;
  height:54px;
  object-fit:contain;
  border-radius:50%;
}

.uda-brand span {
  display:flex;
  flex-direction:column;
  line-height:1.15;
}

.uda-brand strong {
  color:#195e45;
  font-size:17px;
}

.uda-brand small {
  margin-top:4px;
  color:#84928d;
  font-size:10px;
}

.uda-menu {
  display:flex;
  align-items:center;
  gap:2px;
}

.uda-menu a {
  padding:10px 11px;
  border-radius:9px;
  color:#53635e;
  font-size:15px;
  font-weight:700;
  transition:.18s ease;
}
}

.uda-menu a:hover,
.uda-menu a.active {
  color:#17805b;
  background:#eef8f4;
}

.uda-menu-btn {
  display:none;
  width:42px;
  height:42px;
  border:1px solid #e4ebe8;
  border-radius:10px;
  background:#fff;
  color:#2e6652;
  font-size:20px;
}

/* Slider */
.uda-slider {
  position:relative;
  overflow:hidden;
  min-height:480px;
  background:#1b845f;
}

.uda-slide-track {
  display:flex;
  width:100%;
  transition:transform .6s cubic-bezier(.22,.61,.36,1);
}

.uda-slide {
  position:relative;
  min-width:100%;
  min-height:480px;
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr);
  align-items:center;
  gap:42px;
  padding:58px max(6vw,calc((100vw - 1240px)/2 + 15px));
  color:#fff;
}

.uda-slide-one {
  background:
    radial-gradient(circle at 85% 20%,rgba(255,255,255,.16),transparent 15rem),
    linear-gradient(120deg,#0f6e4d,#21a173 58%,#50bd91);
}

.uda-slide-two {
  background:
    radial-gradient(circle at 80% 70%,rgba(255,255,255,.12),transparent 18rem),
    linear-gradient(120deg,#14614e,#2b7c67 50%,#40a782);
}

.uda-slide-three {
  background:
    radial-gradient(circle at 82% 26%,rgba(255,199,89,.16),transparent 17rem),
    linear-gradient(120deg,#1f6f56,#198965 52%,#22a775);
}

.uda-slide-content {
  max-width:760px;
}

.uda-slide-tag {
  display:inline-flex;
  padding:7px 12px;
  margin-bottom:14px;
  border:1px solid rgba(255,255,255,.25);
  border-radius:999px;
  background:rgba(255,255,255,.12);
  font-size:12px;
  font-weight:800;
}

.uda-slide h1,
.uda-slide h2 {
  margin:0 0 15px;
  color:white;
  font-size:clamp(37px,4vw,58px);
  line-height:1.16;
}

.uda-slide h2 {
  font-size:clamp(34px,3.7vw,53px);
}

.uda-slide p {
  max-width:710px;
  margin:0;
  color:rgba(255,255,255,.9);
  font-size:16px;
  line-height:1.75;
}

.uda-slide-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:25px;
}

.uda-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 18px;
  border:1px solid transparent;
  border-radius:8px;
  font-size:13px;
  font-weight:800;
  transition:.18s ease;
}

.uda-btn:hover { transform:translateY(-2px); }

.uda-btn-light {
  color:#176647;
  background:#fff;
  box-shadow:0 9px 24px rgba(0,0,0,.12);
}

.uda-btn-ghost {
  color:#fff;
  border-color:rgba(255,255,255,.55);
  background:rgba(255,255,255,.06);
}

.uda-btn-green {
  color:#fff;
  background:#18815c;
}

.uda-slide-visual {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:300px;
}

.uda-hero-logo-card {
  width:min(330px,90%);
  aspect-ratio:1;
  padding:30px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.2);
  box-shadow:0 25px 60px rgba(0,0,0,.12);
}

.uda-hero-logo-card img {
  width:90%;
  height:90%;
  object-fit:contain;
  border-radius:50%;
}

.uda-process-visual {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-content:center;
}

.uda-process-bubble {
  width:88px;
  height:88px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#176149;
  background:#fff;
  border:8px solid rgba(255,255,255,.25);
  background-clip:padding-box;
  font-size:30px;
  font-weight:900;
  box-shadow:0 12px 28px rgba(0,0,0,.12);
}

.uda-news-symbol {
  width:280px;
  height:190px;
  display:grid;
  place-items:center;
  border:2px solid rgba(255,255,255,.35);
  border-radius:24px;
  background:rgba(255,255,255,.13);
  font-size:45px;
  font-weight:900;
  letter-spacing:.12em;
}

.uda-slider-arrow {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:4;
  width:44px;
  height:58px;
  border:0;
  border-radius:8px;
  color:#fff;
  background:rgba(0,0,0,.16);
  font-size:35px;
  cursor:pointer;
}

.uda-prev { left:18px; }
.uda-next { right:18px; }

.uda-slider-dots {
  position:absolute;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  z-index:5;
  display:flex;
  gap:7px;
}

.uda-slider-dots button {
  width:9px;
  height:9px;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.45);
  cursor:pointer;
}

.uda-slider-dots button.active {
  width:28px;
  border-radius:999px;
  background:#fff;
}

/* Sections */
.uda-section {
  width:min(1180px,calc(100% - 30px));
  margin:auto;
  padding:66px 0;
}

.uda-section-heading {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:27px;
}

.uda-section-heading.center {
  display:block;
  text-align:center;
}

.uda-section-heading span,
.uda-kicker {
  display:block;
  margin-bottom:5px;
  color:#1d8d66;
  font-size:11px;
  font-weight:900;
  letter-spacing:.1em;
}

.uda-section-heading h2 {
  margin:0;
  color:#263b34;
  font-size:32px;
}

.uda-section-heading p {
  margin:5px 0 0;
  color:#7a8984;
  font-size:13px;
}

.uda-text-link {
  color:#1b825f;
  font-size:13px;
  font-weight:800;
}

/* Circle shortcuts */
.uda-shortcuts {
  padding-top:58px;
}

.uda-circle-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:34px;
  margin-top:35px;
}

.uda-circle-item {
  text-align:center;
}

.uda-circle {
  width:160px;
  height:160px;
  display:grid;
  place-items:center;
  margin:0 auto 18px;
  border-radius:50%;
  color:#fff;
  font-size:54px;
  box-shadow:0 15px 34px rgba(35,83,64,.13);
  transition:.22s ease;
}

.uda-circle-item:hover .uda-circle {
  transform:translateY(-7px) scale(1.02);
}

.uda-circle-1 { background:linear-gradient(145deg,#e28e2d,#f5b650); }
.uda-circle-2 { background:linear-gradient(145deg,#1f9b75,#4dc095); }
.uda-circle-3 { background:linear-gradient(145deg,#277c9b,#55a8c0); }
.uda-circle-4 { background:linear-gradient(145deg,#66589d,#8f80c0); }

.uda-circle-item h3 {
  margin:0 0 5px;
  color:#2e413a;
  font-size:18px;
}

.uda-circle-item p {
  min-height:38px;
  margin:0 0 9px;
  color:#86938e;
  font-size:12px;
}

.uda-circle-item strong {
  color:#1e8b65;
  font-size:11px;
}

/* News */
.uda-news-area {
  padding-top:30px;
}

.uda-news-toolbar {
  margin-bottom:22px;
}

.uda-news-grid .news-card {
  border-radius:10px;
}

.uda-news-grid .news-card.featured {
  grid-column:auto;
}

.uda-news-grid .news-card.featured .news-cover {
  aspect-ratio:16/9;
}

.uda-news-grid .news-card.featured .news-body h3 {
  font-size:18px;
}

/* Project section */
.uda-project-section {
  padding:62px 0;
  background:#f3f7f5;
  border-top:1px solid #e7eeea;
  border-bottom:1px solid #e7eeea;
}

.uda-project-inner {
  width:min(1180px,calc(100% - 30px));
  margin:auto;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:55px;
  align-items:center;
}

.uda-project-copy h2 {
  margin:0 0 15px;
  color:#263d35;
  font-size:34px;
  line-height:1.3;
}

.uda-project-copy p {
  margin:0 0 22px;
  color:#667872;
  line-height:1.85;
  font-size:14px;
}

.uda-partner-panel {
  padding:28px;
  border-radius:15px;
  background:#fff;
  border:1px solid #e2ebe7;
  box-shadow:0 13px 35px rgba(40,73,60,.06);
}

.uda-partner-title {
  margin-bottom:17px;
  color:#75857f;
  text-align:center;
  font-size:11px;
  font-weight:800;
}

.uda-partner-logos {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
  align-items:center;
}

.uda-partner-logos img {
  width:100%;
  height:105px;
  object-fit:contain;
  padding:7px;
  border-radius:8px;
  background:white;
}

/* Process */
.uda-process-grid {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
  margin-top:32px;
}

.uda-step {
  position:relative;
  overflow:hidden;
  min-height:190px;
  padding:22px 18px;
  border:1px solid #e2eae6;
  border-radius:12px;
  background:#fff;
  box-shadow:0 8px 24px rgba(40,73,60,.05);
}

.uda-step b {
  display:block;
  margin-bottom:18px;
  color:#cfe9df;
  font-size:35px;
}

.uda-step h3 {
  margin:0 0 7px;
  color:#1d805d;
  font-size:18px;
}

.uda-step p {
  margin:0;
  color:#7d8c86;
  font-size:11px;
  line-height:1.7;
}

/* Contact */
.uda-contact-section {
  width:min(1180px,calc(100% - 30px));
  margin:0 auto;
  padding:12px 0 70px;
}

.uda-contact-card {
  display:grid;
  grid-template-columns:1fr auto;
  gap:35px;
  align-items:center;
  padding:34px;
  border-radius:15px;
  color:#fff;
  background:linear-gradient(120deg,#17694e,#21906a);
}

.uda-contact-card h2 {
  margin:0 0 7px;
  font-size:25px;
}

.uda-contact-card p {
  margin:0;
  color:rgba(255,255,255,.82);
  font-size:13px;
}

.uda-contact-card .uda-kicker {
  color:#b9e8d8;
}

.uda-contact-items {
  display:flex;
  gap:15px;
}

.uda-contact-items > div {
  min-width:170px;
  padding:13px 16px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:9px;
  background:rgba(255,255,255,.08);
}

.uda-contact-items small {
  display:block;
  margin-bottom:4px;
  color:rgba(255,255,255,.65);
  font-size:10px;
}

.uda-contact-items strong {
  font-size:13px;
}

/* Footer */
.uda-footer {
  color:#d9e6e1;
  background:#18372d;
}

.uda-footer-inner {
  width:min(1180px,calc(100% - 30px));
  margin:auto;
  padding:32px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
}

.uda-footer-brand {
  display:flex;
  align-items:center;
  gap:12px;
}

.uda-footer-brand img {
  width:56px;
  height:56px;
  object-fit:contain;
  border-radius:50%;
}

.uda-footer-brand div {
  display:flex;
  flex-direction:column;
}

.uda-footer-brand strong {
  color:#fff;
  font-size:17px;
}

.uda-footer-brand small {
  margin-top:4px;
  color:#9cb2aa;
  font-size:10px;
}

.uda-footer-links {
  display:flex;
  flex-wrap:wrap;
  gap:15px;
  color:#bccdc7;
  font-size:11px;
}

.uda-footer-links a:hover {
  color:#fff;
}

.uda-footer-bottom {
  padding:13px 20px;
  border-top:1px solid rgba(255,255,255,.07);
  text-align:center;
  color:#819991;
  font-size:10px;
}

@media (max-width:1000px) {
  .uda-org-logos img { height:45px; max-width:115px; }
  .uda-menu-btn { display:block; }

  .uda-menu {
    position:absolute;
    left:15px;
    right:15px;
    top:100%;
    display:none;
    flex-direction:column;
    align-items:stretch;
    padding:10px;
    border:1px solid #e4ebe8;
    border-radius:12px;
    background:#fff;
    box-shadow:0 15px 35px rgba(0,0,0,.11);
  }

  .uda-menu.open { display:flex; }
  .uda-menu a { padding:11px 12px; }

  .uda-nav { position:relative; }

  .uda-slide {
    grid-template-columns:1fr;
    min-height:580px;
    padding-top:45px;
    padding-bottom:55px;
  }

  .uda-slide-visual { min-height:180px; }
  .uda-hero-logo-card { width:210px; }
  .uda-process-visual { justify-content:center; }

  .uda-circle-grid { grid-template-columns:repeat(2,1fr); }
  .uda-project-inner { grid-template-columns:1fr; }
  .uda-process-grid { grid-template-columns:repeat(3,1fr); }

  .uda-contact-card { grid-template-columns:1fr; }
}

@media (max-width:680px) {
  .uda-org-strip-inner {
    min-height:58px;
  }

  .uda-org-logos {
    gap:5px;
  }

  .uda-org-logos img {
    height:38px;
    max-width:88px;
  }

  .uda-account-box .account-user {
    display:none;
  }

  .uda-account-box .btn {
    padding:7px 9px;
    font-size:10px;
  }

  .uda-nav-inner {
    min-height:67px;
  }

  .uda-brand img {
    width:45px;
    height:45px;
  }

  .uda-brand small {
    display:none;
  }

  .uda-slide {
    min-height:570px;
    gap:15px;
    padding-left:24px;
    padding-right:24px;
  }

  .uda-slide h1,
  .uda-slide h2 {
    font-size:31px;
  }

  .uda-slide p {
    font-size:13px;
  }

  .uda-slider-arrow {
    display:none;
  }

  .uda-section {
    padding:48px 0;
  }

  .uda-section-heading h2 {
    font-size:27px;
  }

  .uda-section-heading {
    align-items:flex-start;
    flex-direction:column;
  }

  .uda-circle-grid {
    grid-template-columns:1fr 1fr;
    gap:28px 14px;
  }

  .uda-circle {
    width:120px;
    height:120px;
    font-size:41px;
  }

  .uda-circle-item h3 {
    font-size:15px;
  }

  .uda-process-grid {
    grid-template-columns:1fr;
  }

  .uda-partner-logos img {
    height:82px;
  }

  .uda-contact-items {
    flex-direction:column;
  }

  .uda-contact-items > div {
    min-width:0;
  }

  .uda-footer-inner {
    align-items:flex-start;
    flex-direction:column;
  }
}



/* V6 — Contact project information */
.uda-contact-card-full {
  grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);
  gap:28px;
}

.uda-contact-info-list {
  display:grid;
  gap:10px;
  margin-top:18px;
}

.uda-contact-line {
  display:flex;
  align-items:flex-start;
  gap:11px;
  color:#fff;
}

.uda-contact-line-icon {
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  flex:none;
  border-radius:9px;
  background:rgba(255,255,255,.11);
  border:1px solid rgba(255,255,255,.15);
}

.uda-contact-line span:last-child {
  display:flex;
  flex-direction:column;
}

.uda-contact-line small,
.uda-hours-card small {
  color:rgba(255,255,255,.66);
  font-size:10px;
  font-weight:700;
}

.uda-contact-line strong {
  margin-top:2px;
  color:#fff;
  font-size:13px;
  line-height:1.6;
}

a.uda-contact-line:hover strong {
  text-decoration:underline;
}

.uda-hours-card {
  display:flex;
  align-items:flex-start;
  gap:13px;
  padding:20px;
  border-radius:12px;
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.16);
}

.uda-hours-icon {
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  flex:none;
  border-radius:50%;
  background:rgba(255,255,255,.13);
  font-size:20px;
}

.uda-hours-card > div:last-child {
  display:flex;
  flex-direction:column;
}

.uda-hours-card strong {
  margin-top:4px;
  color:#fff;
  font-size:14px;
}

.uda-hours-card p {
  margin:5px 0 0;
  color:rgba(255,255,255,.75);
  font-size:11px;
  line-height:1.6;
}

@media (max-width:900px) {
  .uda-contact-card-full {
    grid-template-columns:1fr;
  }
}



/* ===== V7: Admin report review ===== */
.review-pending {
  background:#fff2d9 !important;
  color:#a46a18 !important;
}

.review-approved {
  background:#e7f7ef !important;
  color:#176a4c !important;
}

.review-revision {
  background:#fff0f0 !important;
  color:#a33e3e !important;
}

.admin-review-toolbar {
  display:grid;
  grid-template-columns:minmax(0,1fr) 180px;
  gap:10px;
}

.admin-report-item {
  align-items:flex-start;
}

.admin-report-item > .btn {
  margin-top:4px;
  flex:none;
}

.admin-report-meta-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  margin-top:12px;
}

.admin-report-meta-grid > div {
  min-width:0;
  padding:9px 10px;
  border-radius:9px;
  background:#f7faf8;
  border:1px solid #edf2ef;
}

.admin-report-meta-grid small {
  display:block;
  margin-bottom:2px;
  color:var(--muted);
  font-size:8px;
}

.admin-report-meta-grid strong {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#41544d;
  font-size:10px;
}

.review-note-preview {
  margin-top:10px;
  padding:9px 11px;
  border-left:3px solid #e7a84a;
  border-radius:7px;
  background:#fff9ee;
  color:#6f5a39;
  font-size:10px;
  line-height:1.55;
}

.admin-report-modal-box {
  width:min(980px,100%);
}

.admin-report-detail-header {
  padding-bottom:16px;
  margin-bottom:8px;
  border-bottom:1px solid var(--line);
}

.admin-report-detail-header h2 {
  margin:9px 0 5px;
  color:var(--ink);
  font-size:24px;
}

.admin-report-section {
  margin-top:22px;
}

.admin-report-section > h3 {
  margin:0 0 9px;
  color:var(--green-900);
  font-size:16px;
}

.admin-detail-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 20px;
}

.review-panel {
  margin-top:26px;
  padding:20px;
  border:1px solid #cfe7dc;
  border-radius:13px;
  background:#f5fbf8;
}

.review-panel-title {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:15px;
  margin-bottom:15px;
}

.review-panel-title h3 {
  margin:0;
  color:var(--green-900);
  font-size:17px;
}

.review-panel-title p {
  margin:4px 0 0;
  color:var(--muted);
  font-size:10px;
}

.review-last-info {
  margin-top:10px;
  color:var(--muted);
  font-size:9px;
}

@media(max-width:850px) {
  .admin-report-meta-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .admin-detail-grid {
    grid-template-columns:1fr;
  }
}

@media(max-width:650px) {
  .admin-review-toolbar {
    grid-template-columns:1fr;
  }

  .admin-review-toolbar select {
    width:100%;
  }

  .admin-report-item {
    flex-wrap:wrap;
  }

  .admin-report-item > .btn {
    width:100%;
  }

  .admin-report-meta-grid {
    grid-template-columns:1fr;
  }
}



/* ===== V8: member report downloads ===== */
.history-download-actions,
.admin-report-card-actions {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  flex:none;
}

@media(max-width:760px) {
  .history-download-actions,
  .admin-report-card-actions {
    width:100%;
  }

  .history-download-actions .btn,
  .admin-report-card-actions .btn {
    flex:1;
    min-width:110px;
  }
}



/* ===== V9: ช่องทางการติดตาม Social Media ===== */
.uda-contact-side {
  display:grid;
  gap:12px;
}

.uda-social-card {
  display:grid;
  gap:8px;
  padding:18px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.08);
}

.uda-social-title {
  margin-bottom:2px;
  color:rgba(255,255,255,.72);
  font-size:10px;
  font-weight:800;
}

.uda-social-link {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:50px;
  padding:8px 10px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.13);
  background:rgba(255,255,255,.08);
  transition:.18s ease;
}

.uda-social-link:hover {
  transform:translateY(-1px);
  background:rgba(255,255,255,.14);
}

.uda-social-icon {
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  flex:none;
  border-radius:8px;
  color:#fff;
  font-size:15px;
  font-weight:900;
}

.social-facebook .uda-social-icon {
  background:#1877f2;
}

.social-youtube .uda-social-icon {
  background:#ff0000;
}

.social-tiktok .uda-social-icon {
  background:#111;
}

.uda-social-link > span:last-child {
  display:flex;
  flex-direction:column;
  min-width:0;
}

.uda-social-link strong {
  color:#fff;
  font-size:12px;
}

.uda-social-link small {
  margin-top:2px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:rgba(255,255,255,.68);
  font-size:9px;
}

.uda-footer-right {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:9px;
}

.uda-footer-social {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.uda-footer-social a {
  padding:5px 9px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.11);
  color:#9fb5ad;
  font-size:9px;
}

.uda-footer-social a:hover {
  color:#fff;
  border-color:rgba(255,255,255,.24);
}

@media (max-width:680px) {
  .uda-footer-right {
    align-items:flex-start;
  }
}



/* ===== V11: แนบรูปกิจกรรมหลายรูป ===== */
.photo-upload-box {
  display:grid;
  gap:12px;
}

.photo-picker {
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:105px;
  padding:18px;
  border:2px dashed #bfd9ce;
  border-radius:14px;
  background:#f7fcf9;
  color:var(--green-900);
  cursor:pointer;
  transition:.18s ease;
}

.photo-picker:hover {
  border-color:var(--green-500);
  background:#eff9f4;
  transform:translateY(-1px);
}

.photo-picker-icon {
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  flex:none;
  border-radius:50%;
  background:var(--green-100);
  color:var(--green-800);
  font-size:27px;
  line-height:1;
}

.photo-picker > span:last-child {
  display:flex;
  flex-direction:column;
  text-align:left;
}

.photo-picker strong {
  font-size:14px;
}

.photo-picker small {
  margin-top:4px;
  color:var(--muted);
  font-size:10px;
}

.photo-upload-summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:10px;
}

.photo-preview-grid,
.report-image-gallery {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.photo-preview-card {
  position:relative;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  box-shadow:0 5px 16px rgba(25,61,47,.05);
}

.photo-preview-card > img {
  display:block;
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  background:#edf3f0;
}

.photo-remove-btn {
  position:absolute;
  top:7px;
  right:7px;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  padding:0;
  border:2px solid rgba(255,255,255,.9);
  border-radius:50%;
  background:rgba(164,45,45,.9);
  color:#fff;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 3px 10px rgba(0,0,0,.18);
}

.photo-remove-btn:hover {
  background:#b83737;
}

.photo-preview-info {
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:8px 9px;
}

.photo-preview-info strong {
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:var(--ink);
  font-size:9px;
}

.photo-preview-info small {
  margin-top:2px;
  color:var(--muted);
  font-size:8px;
}

.report-image-gallery {
  margin:10px 0 18px;
}

.report-gallery-item {
  position:relative;
  display:block;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:10px;
  background:#f0f5f2;
}

.report-gallery-item img {
  display:block;
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  transition:.2s ease;
}

.report-gallery-item:hover img {
  transform:scale(1.025);
}

.report-gallery-item span {
  position:absolute;
  right:6px;
  bottom:6px;
  min-width:24px;
  height:24px;
  display:grid;
  place-items:center;
  padding:0 6px;
  border-radius:999px;
  background:rgba(0,0,0,.58);
  color:#fff;
  font-size:9px;
  font-weight:800;
}

.report-gallery-empty {
  margin:8px 0 18px;
  padding:18px;
  border:1px dashed #d4e0db;
  border-radius:10px;
  text-align:center;
  color:var(--muted);
  font-size:10px;
  background:#fafcfb;
}

button:disabled {
  opacity:.65;
  cursor:not-allowed;
  transform:none !important;
}

@media(max-width:900px) {
  .photo-preview-grid,
  .report-image-gallery {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:650px) {
  .photo-preview-grid,
  .report-image-gallery {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .photo-picker {
    align-items:flex-start;
    justify-content:flex-start;
  }
}



/* ===== V12: ไฟล์แนบ + บีบอัดรูปและไฟล์ ===== */
.compression-chip {
  display:inline-flex;
  align-self:flex-start;
  margin-top:5px;
  padding:3px 6px;
  border-radius:999px;
  background:#e7f7ef;
  color:#176a4c;
  font-size:8px;
  font-weight:800;
}

.attachment-divider {
  height:1px;
  margin:20px 0;
  background:var(--line);
}

.file-upload-box {
  display:grid;
  gap:12px;
}

.file-picker {
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:90px;
  padding:16px;
  border:2px dashed #cbd8e6;
  border-radius:14px;
  background:#f8fbff;
  color:#315e91;
  cursor:pointer;
  transition:.18s ease;
}

.file-picker:hover {
  border-color:#7fa9d5;
  background:#f1f7fd;
  transform:translateY(-1px);
}

.file-picker-icon {
  width:43px;
  height:43px;
  display:grid;
  place-items:center;
  flex:none;
  border-radius:50%;
  background:#e7f1fb;
  font-size:20px;
}

.file-picker > span:last-child {
  display:flex;
  flex-direction:column;
  text-align:left;
}

.file-picker strong {
  color:#315e91;
  font-size:14px;
}

.file-picker small {
  margin-top:4px;
  color:#70859a;
  font-size:10px;
}

.attachment-list,
.stored-file-list {
  display:grid;
  gap:8px;
}

.attachment-item,
.stored-file-item {
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
}

.attachment-type {
  min-width:42px;
  height:34px;
  display:grid;
  place-items:center;
  padding:0 5px;
  border-radius:7px;
  background:#edf4fa;
  color:#39698f;
  font-size:8px;
  font-weight:900;
}

.attachment-info,
.stored-file-copy {
  display:flex;
  flex-direction:column;
  min-width:0;
  flex:1;
}

.attachment-info strong,
.stored-file-copy strong {
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:var(--ink);
  font-size:10px;
}

.attachment-info small,
.stored-file-copy small {
  margin-top:2px;
  color:var(--muted);
  font-size:8px;
}

.attachment-remove-btn {
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  padding:0;
  flex:none;
  border:1px solid #eccccc;
  border-radius:50%;
  background:#fff2f2;
  color:#a33e3e;
  font-size:18px;
  cursor:pointer;
}

.stored-file-item {
  transition:.18s ease;
}

.stored-file-item:hover {
  transform:translateY(-1px);
  border-color:#c7ddd3;
  background:#fbfdfc;
}

.stored-file-icon {
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  flex:none;
  border-radius:8px;
  background:#eef5f2;
}

.stored-file-download {
  flex:none;
  color:var(--green-700);
  font-size:9px;
  font-weight:800;
}

@media(max-width:650px) {
  .file-picker {
    align-items:flex-start;
    justify-content:flex-start;
  }

  .stored-file-download {
    display:none;
  }
}


/* ===== V13: กิจกรรมหลายวัน ===== */
.field-hint {
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:9px;
  line-height:1.45;
}



/* ===== V14: Forgot password ===== */
.password-label-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.forgot-password-link {
  color:var(--green-700);
  font-size:10px;
  font-weight:800;
}

.forgot-password-link:hover {
  text-decoration:underline;
}

.dev-reset-box {
  display:grid;
  gap:8px;
  margin-top:14px;
  padding:13px;
  border:1px dashed #b8d9cb;
  border-radius:10px;
  background:#f3faf7;
  color:#496159;
  font-size:10px;
  line-height:1.55;
}

.dev-reset-box strong {
  color:var(--green-900);
  font-size:11px;
}

.dev-reset-box .btn {
  justify-self:start;
}

/* ===== V16: server-side pagination ===== */
.pagination-bar {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin:20px 0 6px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}

.pagination-bar .btn[disabled] {
  opacity:.45;
  pointer-events:none;
}
