:root {
  --gov-navy: #0A2540;
  --gov-navy-light: #1A3A5C;
  --gov-navy-darker: #061A2D;
  --gov-accent: #2563EB;
  --gov-gold: #D4A53C;
  --gov-bg: #F8FAFC;
  --gov-border: #E2E8F0;
}

* { font-family: 'Bai Jamjuree', 'Bai Jamjuree', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.font-en { font-family: 'Bai Jamjuree', sans-serif; }

body {
  background-color: #fff;
  color: #1e293b;
  font-size: 0.95rem;
}
::selection { background-color: var(--gov-navy); color: white; }

/* ============ MODERN HEADER ============ */
.gov-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.gov-logo {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gov-navy) 0%, #1E40AF 100%);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(10,37,64,0.18), inset 0 1px 0 rgba(255,255,255,0.15);
  position: relative;
}
/* .gov-logo::after {
  content: '';
  position: absolute;
  bottom: -2px; right: -2px;
  width: 10px; height: 10px;
  background: var(--gov-gold);
  border-radius: 50%;
  border: 2px solid #fff;
} */
.gov-brand-title {
  color: var(--gov-navy);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.gov-brand-sub {
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.2;
  margin-top: 2px;
  letter-spacing: 0.01em;
}
.nav-link-gov {
  color: #475569;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}
.nav-link-gov:hover { color: var(--gov-navy); background: rgba(10,37,64,0.04); }
.nav-link-gov.active { color: var(--gov-navy); }
.nav-link-gov.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
}
.lang-btn {
  background: transparent;
  border: 1px solid var(--gov-border);
  color: #475569;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 8px;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: all 0.2s ease;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--gov-navy); color: var(--gov-navy); }
.lang-btn .bi-chevron-down { font-size: 0.65rem; opacity: 0.7; }
.lang-menu {
  border: 1px solid var(--gov-border);
  border-radius: 12px;
  padding: 0.4rem;
  box-shadow: 0 12px 32px -8px rgba(15,23,42,0.15);
  min-width: 180px;
}
.lang-option {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}
.lang-option:hover { background: #F1F5F9; color: var(--gov-navy); }
.lang-option.active { background: rgba(10,37,64,0.06); color: var(--gov-navy); font-weight: 600; }
.lang-option-flag { font-size: 1.1rem; line-height: 1; }
.lang-option-code { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: #94A3B8; }
.lang-option.active .lang-option-code { color: var(--gov-navy); }

/* ============ HERO ============ */
.gov-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  border-bottom: 3px solid var(--gov-gold);
  background-image: url("https://images.unsplash.com/photo-1523580494863-6f3031224c94?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.gov-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(15,23,42,0.82) 0%, rgba(30,41,59,0.76) 55%, rgba(51,65,85,0.72) 100%);
  z-index: 1;
}

.gov-hero > .container-xl { position: relative; z-index: 3; }

/* ============ HERO SCROLL MOUSE ============ */
.smart-hero-scroll-mouse {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) !important;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  animation: smart-hero-scroll-fade 0.8s ease-out 0.4s both;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
}
.smart-hero-scroll-mouse .mouse {
  width: 32px; height: 52px;
  border: 2.5px solid #fff;
  border-radius: 16px;
  position: relative;
  display: block;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(2px);
  transition: all 0.2s;
}
.smart-hero-scroll-mouse .wheel {
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 10px;
  background: #fff;
  border-radius: 2px;
  animation: smart-hero-wheel 1.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  box-shadow: 0 0 6px rgba(255,255,255,0.6);
}
.smart-hero-scroll-mouse .label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.smart-hero-scroll-mouse .arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-top: -2px;
}
.smart-hero-scroll-mouse .arrows span {
  display: block;
  width: 12px; height: 12px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg);
  animation: smart-hero-arrow 1.6s ease-in-out infinite;
}
.smart-hero-scroll-mouse .arrows span:nth-child(2) { animation-delay: 0.2s; opacity: 0.55; }
.smart-hero-scroll-mouse:hover .mouse { border-color: var(--gov-gold); background: rgba(212,165,60,0.18); }
.smart-hero-scroll-mouse:hover .wheel { background: var(--gov-gold); box-shadow: 0 0 8px rgba(212,165,60,0.8); }
.smart-hero-scroll-mouse:hover .arrows span { border-color: var(--gov-gold); }
.smart-hero-scroll-mouse:hover .label { color: var(--gov-gold); }

@keyframes smart-hero-wheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 16px); }
}
@keyframes smart-hero-arrow {
  0%, 100% { opacity: 0.35; transform: rotate(45deg) translate(-2px, -2px); }
  50% { opacity: 1; transform: rotate(45deg) translate(2px, 2px); }
}
@keyframes smart-hero-scroll-fade {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 768px) {
  .smart-hero-scroll-mouse { bottom: 24px; gap: 8px; }
  .smart-hero-scroll-mouse .mouse { width: 26px; height: 44px; }
  .smart-hero-scroll-mouse .label { display: none; }
}
.badge-year {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(252, 211, 77, 0.45);
  color: #fcd34d;
  font-weight: 500;
  padding: .45rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(8px);
}
.badge-year .dot {
  width: 6px; height: 6px;
  background: #fcd34d;
  border-radius: 50%;
  box-shadow: 0 0 10px #fcd34d;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.gov-hero h1 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.gov-hero-subtitle {
  color: #DBEAFE;
  font-size: 1.1rem;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}
.gov-hero-cta {
  background: var(--gov-gold);
  color: var(--gov-navy);
  border: none;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: all 0.2s ease;
  box-shadow: 0 8px 24px -8px rgba(212,165,60,0.5);
}
.gov-hero-cta:hover {
  background: #E5B445;
  color: var(--gov-navy);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(212,165,60,0.65);
}
.gov-hero-cta-outline {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}
.gov-hero-cta-outline:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}
.gov-hero-stat {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  transition: all 0.3s;
  text-align: center;
}
.gov-hero-stat:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.gov-hero-stat .num { font-size: 1.65rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.gov-hero-stat .label { font-size: 0.75rem; color: #E0E7FF; margin-top: .35rem; }

/* ============ NOTICE ============ */
.gov-notice {
  background: linear-gradient(90deg, #FFFBEB 0%, #FEF3C7 100%);
  border-bottom: 1px solid #FCD34D;
  color: #78350F;
  font-size: 0.88rem;
  padding: 0.7rem 0;
}

/* ============ SECTION ============ */
.gov-section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.gov-section-eyebrow::before {
  content: '';
  width: 16px; height: 2px;
  background: var(--gov-accent);
}
.gov-section-title { color: var(--gov-navy); font-weight: 600; letter-spacing: -0.01em; }

/* ============ EVENT CARD ============ */
.event-card {
  background: #fff;
  border: 1px solid var(--gov-border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  height: 100%;
  animation: fadeUp 0.4s ease-out backwards;
}
.event-card:hover {
  border-color: var(--gov-navy);
  box-shadow: 0 12px 32px -10px rgba(10,37,64,0.18);
  transform: translateY(-3px);
}
.event-card-header {
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  border-bottom: 1px solid #DBEAFE;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.2s;
}
/* Soft tinted variants by status */
.event-card[data-status="open"] .event-card-header {
  background: linear-gradient(135deg, #F8FAFC 0%, #ECFDF5 100%);
  border-bottom-color: #BBF7D0;
}
.event-card[data-status="partial"] .event-card-header {
  background: linear-gradient(135deg, #F8FAFC 0%, #F5F3FF 100%);
  border-bottom-color: #DDD6FE;
}
.event-card[data-status="full"] .event-card-header {
  background: linear-gradient(135deg, #F8FAFC 0%, #FFF7ED 100%);
  border-bottom-color: #FED7AA;
}
.event-card[data-status="pending"] .event-card-header {
  background: linear-gradient(135deg, #F8FAFC 0%, #FFFBEB 100%);
  border-bottom-color: #FDE68A;
}
.event-card[data-status="closed"] .event-card-header {
  background: linear-gradient(135deg, #F8FAFC 0%, #FEF2F2 100%);
  border-bottom-color: #FECACA;
}
.event-card[data-status="past"] .event-card-header {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border-bottom-color: #CBD5E1;
}
.event-card-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: #1D4ED8;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: linear-gradient(135deg, rgba(29,78,216,0.10), rgba(99,102,241,0.06));
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.event-card-code i { color: inherit; }
/* สี code ตาม prefix หมวด */
.event-card-code.code-AGR { color: #047857; background: linear-gradient(135deg, rgba(16,185,129,0.14), rgba(5,150,105,0.06)); }
.event-card-code.code-MKT { color: #1D4ED8; background: linear-gradient(135deg, rgba(29,78,216,0.12), rgba(99,102,241,0.06)); }
.event-card-code.code-AI  { color: #6D28D9; background: linear-gradient(135deg, rgba(139,92,246,0.14), rgba(124,58,237,0.06)); }
.event-card-code.code-ENG { color: #C2410C; background: linear-gradient(135deg, rgba(234,88,12,0.14), rgba(249,115,22,0.06)); }
.event-card-code.code-ENV { color: #047857; background: linear-gradient(135deg, rgba(16,185,129,0.14), rgba(5,150,105,0.06)); }
.event-card-code.code-SEC { color: #B91C1C; background: linear-gradient(135deg, rgba(220,38,38,0.14), rgba(239,68,68,0.06)); }
.event-card-code.code-HLT { color: #BE185D; background: linear-gradient(135deg, rgba(236,72,153,0.14), rgba(244,114,182,0.06)); }
.event-card-code.code-EDU { color: #4338CA; background: linear-gradient(135deg, rgba(79,70,229,0.14), rgba(99,102,241,0.06)); }
.event-card-code.code-GEN { color: #475569; background: linear-gradient(135deg, rgba(100,116,139,0.14), rgba(148,163,184,0.06)); }
.event-card-body { padding: 1.25rem; flex-grow: 1; display: flex; flex-direction: column; }
.event-category {
  color: var(--gov-accent);
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.event-title {
  color: var(--gov-navy);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.4;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.event-card:hover .event-title { color: var(--gov-accent); }
.event-subtitle {
  color: #64748b;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  font-family: 'Bai Jamjuree', sans-serif;
}
.event-info-box {
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 10px;
  padding: 0.85rem;
  margin-bottom: 1rem;
}
.event-info-box .info-line { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 0.7rem; }
.event-info-box .info-line:last-child { margin-bottom: 0; }
.info-line-main { font-size: 0.85rem; font-weight: 500; color: #0f172a; }
.info-line-sub { font-size: 0.78rem; color: #64748b; }

/* icon ทรงสี่เหลี่ยมมน + สีตามชนิดข้อมูล */
.event-info-box .info-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  margin-top: 0.05rem;
}
.event-info-box .info-icon i { color: inherit; margin: 0; }

/* date — น้ำเงินอมเขียว (สีหลักของระบบ) */
.info-icon-date {
  background: linear-gradient(135deg, rgba(29,78,216,0.12), rgba(99,102,241,0.08));
  color: #1D4ED8;
}
/* venue: onsite — แดงอมส้ม (geo-pin) */
.info-icon-onsite {
  background: linear-gradient(135deg, rgba(220,38,38,0.12), rgba(234,88,12,0.08));
  color: #DC2626;
}
/* online — ม่วงน้ำเงิน (camera) */
.info-icon-online {
  background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(79,70,229,0.10));
  color: #4F46E5;
}
/* hybrid — เขียวอมฟ้า (globe) */
.info-icon-hybrid {
  background: linear-gradient(135deg, rgba(16,185,129,0.16), rgba(5,150,105,0.08));
  color: #059669;
}

.speaker-block {
  display: flex; gap: 0.7rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed #cbd5e1;
  margin-bottom: 0.85rem;
}
.speaker-avatar {
  width: 38px; height: 38px;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--gov-navy), var(--gov-navy-light));
  box-shadow: 0 2px 6px -2px rgba(15,23,42,0.18);
}
.speaker-label { font-size: 0.72rem; color: #64748b; }
.speaker-name { font-size: 0.85rem; font-weight: 500; color: #0f172a; }
.speaker-title { font-size: 0.72rem; color: #64748b; }

/* ============ STATUS PILL ============ */
.status-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid;
  line-height: 1.2;
  white-space: nowrap;
}
.status-pill > i { font-size: 0.95rem; line-height: 1; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; display: none; }
.status-open    { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.status-partial { background: #F5F3FF; color: #6D28D9; border-color: #DDD6FE; }
.status-full    { background: #FFF7ED; color: #C2410C; border-color: #FED7AA; }
.status-closed  { background: #FEF2F2; color: #B91C1C; border-color: #FECACA; }
.status-past    { background: #F1F5F9; color: #475569; border-color: #CBD5E1; }
.status-pending { background: #FFFBEB; color: #B45309; border-color: #FDE68A; }

/* ============ CAPACITY ============ */
.capacity-bar { height: 6px; background: #F1F5F9; border-radius: 999px; overflow: hidden; }
.capacity-fill { height: 100%; border-radius: 999px; transition: width 0.5s ease; }
.capacity-fill.low { background: linear-gradient(90deg, #10B981, #059669); }
.capacity-fill.med { background: linear-gradient(90deg, #FBBF24, #F59E0B); }
.capacity-fill.high { background: linear-gradient(90deg, #EF4444, #DC2626); }

/* ============ BUTTONS ============ */
.btn-gov {
  background: var(--gov-navy); color: #fff; border: none;
  padding: 0.65rem 1.25rem;
  font-weight: 500; font-size: 0.9rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  box-shadow: 0 1px 2px rgba(10,37,64,0.1);
}
.btn-gov:hover { background: var(--gov-navy-light); color: #fff; box-shadow: 0 4px 12px rgba(10,37,64,0.2); transform: translateY(-1px); }
.btn-gov:disabled { background: #F1F5F9; color: #94A3B8; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-gov-outline {
  background: #fff; color: #475569; border: 1px solid var(--gov-border);
  padding: 0.55rem 1.1rem; font-weight: 500; font-size: 0.85rem;
  border-radius: 10px; transition: all 0.2s ease;
}
.btn-gov-outline:hover { background: #F8FAFC; border-color: var(--gov-navy); color: var(--gov-navy); }

/* ============ FORM ============ */
.gov-form-section { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.gov-step-num {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--gov-navy), var(--gov-navy-light));
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.85rem; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(10,37,64,0.2);
}
.gov-step-title { font-weight: 600; color: #0f172a; font-size: 1rem; margin: 0; }
.gov-form-content { padding-left: 2.85rem; }
.form-label-gov { font-size: 0.85rem; font-weight: 500; color: #334155; margin-bottom: 0.4rem; }
.required { color: #DC2626; font-weight: 600; }
.form-control, .form-select {
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gov-navy);
  box-shadow: 0 0 0 3px rgba(10,37,64,0.1);
}

.attendance-card {
  border: 2px solid var(--gov-border);
  border-radius: 12px;
  padding: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
  text-align: left;
  width: 100%;
  position: relative;
}
.attendance-card:hover { border-color: #cbd5e1; }
.attendance-card.active {
  border-color: var(--gov-navy);
  background: linear-gradient(135deg, #F0F7FF 0%, #FFFFFF 100%);
}
.attendance-card.disabled { opacity: 0.4; cursor: not-allowed; }
.attendance-card i { font-size: 1.3rem; color: #94A3B8; }
.attendance-card.active i { color: var(--gov-navy); }
.attendance-card .check-mark { position: absolute; top: 1rem; right: 1rem; color: var(--gov-navy); display: none; font-size: 1.1rem; }
.attendance-card.active .check-mark { display: inline-block; }

/* ============ FORM HEADER ============ */
.form-header-banner {
  background: linear-gradient(135deg, var(--gov-navy) 0%, #0F2D52 50%, var(--gov-navy-light) 100%);
  color: #fff;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}
.form-header-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  background: rgba(255,255,255,0.1);
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
}
.form-meta { display: inline-flex; align-items: center; gap: 0.4rem; color: #cbd5e1; font-size: 0.85rem; }
.form-meta i { color: var(--gov-gold); }

/* ============ SUCCESS ============ */
.success-icon-wrap {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #059669; font-size: 2.4rem;
  box-shadow: 0 8px 20px rgba(16,185,129,0.25);
}
.success-ref {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #F1F5F9;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #475569;
}
.success-ref strong { font-family: 'JetBrains Mono', monospace; color: var(--gov-navy); }
.qr-frame {
  background: #fff;
  padding: 0.75rem;
  border-radius: 10px;
  display: inline-block;
  border: 1px solid var(--gov-border);
}

/* ============ PWA install banner (มือถือ) ============ */
.pwa-install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1080;
  animation: pwa-slide-up 0.3s ease-out;
}
@keyframes pwa-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.pwa-install-card {
  background: #fff;
  border: 1px solid var(--gov-border);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 40px -12px rgba(15,23,42,0.25);
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}
.pwa-install-close {
  position: absolute;
  top: 6px; right: 8px;
  width: 26px; height: 26px;
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.pwa-install-close:hover { background: #F1F5F9; color: #0f172a; }
.pwa-install-icon { flex-shrink: 0; }
.pwa-install-text { flex-grow: 1; min-width: 0; padding-right: 1.5rem; }
.pwa-install-title {
  font-size: 0.92rem; font-weight: 600;
  color: var(--gov-navy); line-height: 1.3;
}
.pwa-install-sub {
  font-size: 0.78rem; color: #64748b;
  line-height: 1.45; margin-top: 2px;
}
.pwa-install-btn {
  flex-shrink: 0;
  background: var(--gov-navy);
  color: #fff;
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.pwa-install-btn:hover { background: #1A3A5C; transform: translateY(-1px); }
@media (max-width: 480px) {
  .pwa-install-card { padding: 12px; gap: 10px; }
  .pwa-install-title { font-size: 0.86rem; }
  .pwa-install-sub { font-size: 0.74rem; }
  .pwa-install-btn { padding: 0.45rem 0.95rem; font-size: 0.8rem; }
}

/* ============ LINE OpenChat success card ============ */
.line-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px -6px rgba(15,23,42,0.08);
  text-align: left;
}
.line-card-head {
  background: linear-gradient(135deg, #06C755 0%, #04a648 100%);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.line-badge {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.line-card-eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 1px;
}
.line-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.line-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.4rem 1.4rem 1rem;
}
.line-actions-hint {
  font-size: 0.85rem;
  color: #475569;
  margin: 0;
}
.line-qr-wrap {
  width: 232px; height: 232px;
  background: #fff;
  border: 2px solid #06C755;
  border-radius: 16px;
  padding: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -8px rgba(6,199,85,0.25);
}
.line-qr-wrap img {
  display: block;
  border-radius: 8px;
  width: 100%; height: 100%;
}
/* "หรือ" divider */
.line-or-divider {
  display: flex; align-items: center;
  width: 100%; gap: 0.7rem;
  margin: 0.2rem 0;
}
.line-or-divider::before,
.line-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}
.line-or-divider span {
  font-size: 0.74rem;
  color: #94A3B8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.line-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: #06C755;
  color: #fff !important;
  text-decoration: none !important;
  padding: 0.75rem 1.5rem;
  border-radius: 11px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.18s ease;
  box-shadow: 0 4px 12px -4px rgba(6,199,85,0.5);
  width: 100%;
  max-width: 320px;
}
.line-cta-btn i:first-child { font-size: 1.2rem; }
.line-cta-btn:hover {
  background: #04a648;
  box-shadow: 0 6px 16px -4px rgba(6,199,85,0.55);
  transform: translateY(-1px);
  color: #fff !important;
}
.line-mini-note {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.55;
  padding: 0.4rem 0 0;
  text-align: center;
  justify-content: center;
}
.line-mini-note i { color: #94A3B8; margin-top: 3px; flex-shrink: 0; }

.line-confirm-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.4rem 1.1rem 1.1rem;
  padding: 0.75rem 1rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: #334155;
  transition: all 0.15s ease;
}
.line-confirm-label:hover {
  background: #ECFDF5;
  border-color: #BBF7D0;
}
.line-confirm-label input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: #06C755;
  margin: 0; flex-shrink: 0;
  cursor: pointer;
}
.line-confirm-label input[type="checkbox"]:checked + span {
  color: #047857;
  font-weight: 500;
}

@media (max-width: 575px) {
  .line-card-body { padding: 1.1rem; gap: 0.7rem; }
  .line-qr-wrap { width: 200px; height: 200px; padding: 10px; }
  .line-cta-btn { font-size: 0.9rem; padding: 0.7rem 1rem; }
}

/* ============ ADMIN ============ */
.gov-stat-card {
  background: #fff;
  border: 1px solid var(--gov-border);
  border-radius: 14px;
  padding: 1.25rem;
  transition: all 0.2s;
}
.gov-stat-card:hover { box-shadow: 0 6px 20px -8px rgba(0,0,0,0.08); transform: translateY(-2px); }
.gov-stat-card .stat-label {
  font-size: 0.78rem; color: #64748b;
  display: flex; align-items: center; gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.gov-stat-card .stat-num { font-size: 1.85rem; font-weight: 600; color: var(--gov-navy); line-height: 1; letter-spacing: -0.02em; }
.gov-stat-card .stat-extra { font-size: 0.72rem; margin-top: 0.4rem; }
.gov-stat-card.success .stat-num { color: #059669; }
.gov-stat-card.warning .stat-num { color: #B45309; }
.gov-stat-card.danger  .stat-num { color: #B91C1C; }

.gov-table { width: 100%; }
.gov-table thead { background: #F8FAFC; border-bottom: 1px solid var(--gov-border); }
.gov-table thead th { font-size: 0.78rem; color: #475569; font-weight: 500; padding: 0.85rem 1.25rem; }
.gov-table tbody tr { border-bottom: 1px solid #F1F5F9; transition: background 0.15s; }
.gov-table tbody tr:hover { background: #F8FAFC; }
.gov-table tbody td { padding: 1rem 1.25rem; vertical-align: middle; font-size: 0.88rem; }

.icon-btn {
  width: 32px; height: 32px;
  border: none; background: transparent;
  border-radius: 6px;
  color: #475569;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.icon-btn:hover { background: #F1F5F9; color: var(--gov-navy); }

/* ============ MODERN FOOTER ============ */
.gov-footer {
  background: linear-gradient(180deg, #F1F5F9 0%, #E2E8F0 100%);
  color: #475569;
  margin-top: 7rem;
  position: relative;
  border-top: 1px solid #CBD5E1;
}
.footer-cta {
  background: #fff;
  border: 1px solid var(--gov-border);
  border-radius: 20px;
  padding: 2rem;
  margin-top: -3rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 40px -20px rgba(15,23,42,0.12);
}
.footer-cta-title { color: var(--gov-navy); font-weight: 700; font-size: 1.4rem; line-height: 1.3; letter-spacing: -0.01em; }
.footer-cta-text { color: #64748b; font-size: 0.9rem; }

.footer-logo {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gov-navy), #1D4ED8);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(10,37,64,0.25);
}

.gov-footer h5 {
  color: var(--gov-navy); font-size: 0.85rem; font-weight: 600;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.gov-footer a { color: #475569; text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.gov-footer a:hover { color: var(--gov-navy); }
.gov-footer ul { list-style: none; padding: 0; margin: 0; }
.gov-footer ul li { margin-bottom: 0.6rem; font-size: 0.88rem; display: flex; align-items: flex-start; gap: 0.5rem; color: #475569; }
.gov-footer ul li i { color: var(--gov-navy); width: 16px; flex-shrink: 0; margin-top: 2px; }

.social-btn {
  width: 38px; height: 38px;
  background: #fff;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #475569; font-size: 1.05rem;
  transition: all 0.2s ease;
}
.social-btn i { color: inherit; line-height: 1; }
.social-btn:hover {
  background: var(--gov-navy);
  border-color: var(--gov-navy);
  color: #fff;
  transform: translateY(-2px);
}
.social-btn:hover i { color: #fff; }
/* hover เป็นสีของแต่ละ brand เพื่อให้ icon มองเห็นชัดขึ้น */
.social-btn:has(.bi-facebook):hover  { background: #1877F2; border-color: #1877F2; }
.social-btn:has(.bi-youtube):hover   { background: #FF0000; border-color: #FF0000; }
.social-btn:has(.bi-line):hover      { background: #06C755; border-color: #06C755; }
.social-btn:has(.bi-twitter-x):hover { background: #0F172A; border-color: #0F172A; }
.social-btn:has(.bi-instagram):hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: #DC2743; }

.footer-bottom {
  border-top: 1px solid #CBD5E1;
  padding-top: 1.5rem;
  font-size: 0.78rem;
  color: #64748b;
}
.footer-bottom-links a { margin-left: 1.25rem; }
.footer-bottom-links span { color: #94A3B8; }

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease-out backwards; }

/* ============ VIEWS ============ */
.view { display: none; }
.view.active { display: block; }

.gov-breadcrumb {
  font-size: 0.85rem; color: #64748b;
  display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
}
.gov-breadcrumb a { color: #475569; text-decoration: none; }
.gov-breadcrumb a:hover { color: var(--gov-navy); }
.gov-breadcrumb .current { color: #0f172a; font-weight: 500; }

.deco-num {
  position: absolute;
  top: 0.5rem; right: 1rem;
  font-size: 5rem; font-weight: 200;
  color: rgba(10,37,64,0.04);
  line-height: 1; pointer-events: none;
  user-select: none; font-style: italic;
}

/* ============ FILTER PANEL ============ */
.filter-count-badge {
  background: var(--gov-navy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  min-width: 20px;
  line-height: 1.4;
}
.filter-panel {
  background: #F8FAFC;
  border: 1px solid var(--gov-border);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: none;
  animation: fadeUp 0.25s ease-out;
}
.filter-panel.show { display: block; }
.filter-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
  display: block;
}
.filter-search-wrap {
  position: relative;
}
.filter-search-wrap > i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 0.95rem;
  pointer-events: none;
}
.filter-search {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 0.6rem 0.9rem 0.6rem 2.4rem;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.filter-search:focus {
  outline: none;
  border-color: var(--gov-navy);
  box-shadow: 0 0 0 3px rgba(10,37,64,0.1);
}
.filter-select {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #0f172a;
  transition: all 0.2s;
  cursor: pointer;
}
.filter-select:focus {
  outline: none;
  border-color: var(--gov-navy);
  box-shadow: 0 0 0 3px rgba(10,37,64,0.1);
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px dashed #CBD5E1;
}
.filter-chips-label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
  margin-right: 0.25rem;
}
.filter-chip {
  background: #fff;
  border: 1px solid var(--gov-border);
  color: #475569;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: all 0.15s;
  cursor: pointer;
}
.filter-chip:hover {
  border-color: var(--gov-navy);
  color: var(--gov-navy);
}
.filter-chip.active {
  background: var(--gov-navy);
  border-color: var(--gov-navy);
  color: #fff;
  box-shadow: 0 2px 8px -2px rgba(10,37,64,0.3);
}
.filter-reset {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.82rem;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  transition: all 0.15s;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.filter-reset:hover {
  color: #B91C1C;
  background: #FEF2F2;
}

/* ============ EMPTY STATE ============ */
.events-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: #F8FAFC;
  border: 1px dashed var(--gov-border);
  border-radius: 14px;
  color: #64748b;
}
.events-empty > i {
  font-size: 3rem;
  color: #CBD5E1;
  margin-bottom: 0.75rem;
  display: block;
}
.events-empty h3 {
  color: var(--gov-navy);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.events-empty p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ============ STATUS MODAL ============ */
.status-modal {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(15,23,42,0.45);
}
.status-modal-header {
  background: linear-gradient(135deg, var(--gov-navy) 0%, #1D4ED8 100%);
  color: #fff;
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}
.status-modal-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gov-gold);
}
.status-modal-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.status-modal-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gov-gold);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.status-modal-title { font-weight: 600; letter-spacing: -0.01em; }
.status-modal-close {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.status-modal-close:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.status-modal-body { padding: 1.75rem; background: #fff; }
.status-input-group {
  position: relative;
}
.status-input-prefix {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 1rem;
  pointer-events: none;
}
.status-input {
  padding-left: 2.6rem !important;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  font-size: 0.95rem !important;
  text-transform: uppercase;
}
.status-hint {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.status-hint > i { color: #94A3B8; }
.status-sample-btn {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: var(--gov-navy);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  transition: all 0.15s;
}
.status-sample-btn:hover {
  background: var(--gov-navy);
  color: #fff;
  border-color: var(--gov-navy);
}

/* Status result */
.status-result-card {
  border: 1px solid var(--gov-border);
  border-radius: 14px;
  overflow: hidden;
  animation: fadeUp 0.3s ease-out;
}
.status-result-banner {
  padding: 1.25rem 1.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.status-result-banner.confirmed { background: linear-gradient(135deg, #059669, #10B981); }
.status-result-banner.pending { background: linear-gradient(135deg, #D97706, #F59E0B); }
.status-result-banner.cancelled { background: linear-gradient(135deg, #DC2626, #EF4444); }
.status-result-banner.notfound { background: linear-gradient(135deg, #475569, #64748b); }
.status-result-banner i { font-size: 2rem; }
.status-result-banner-title { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.status-result-banner-sub { font-size: 0.82rem; opacity: 0.9; }
.status-result-body { padding: 1.5rem; background: #fff; }
.status-result-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.88rem;
}
.status-result-row:last-child { border-bottom: none; }
.status-result-label { color: #64748b; flex-shrink: 0; }
.status-result-value { color: #0f172a; font-weight: 500; text-align: right; }
.status-result-value.mono { font-family: 'JetBrains Mono', monospace; }
.status-result-event {
  background: linear-gradient(135deg, #F0F7FF 0%, #F8FAFC 100%);
  border: 1px solid #DBEAFE;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.status-result-event-cat {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gov-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.status-result-event-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gov-navy);
  margin-bottom: 0.5rem;
}
.status-result-event-meta {
  font-size: 0.82rem;
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.status-result-event-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.status-result-event-meta i { color: var(--gov-navy); }

/* ============ MOBILE NAV (HEADER) ============ */
.header-menu-btn {
  background: transparent;
  border: 1px solid var(--gov-border);
  color: var(--gov-navy);
  width: 40px; height: 40px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  transition: all 0.15s;
}
.header-menu-btn:hover { background: #F1F5F9; border-color: var(--gov-navy); }
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0 0.85rem;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  margin-top: -0.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  color: #475569;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s;
}
.mobile-nav-link:hover { background: #F1F5F9; color: var(--gov-navy); }
.mobile-nav-link.active { background: rgba(10,37,64,0.06); color: var(--gov-navy); }
.mobile-nav-link i { width: 22px; font-size: 1rem; }

/* ============ FOOTER BRAND (rendered by components.js) ============ */
.footer-brand-title { color: #fff; font-weight: 600; font-size: 0.98rem; line-height: 1.25; }
.footer-brand-sub { color: #94A3B8; font-size: 0.72rem; line-height: 1.2; }
.footer-desc { font-size: 0.88rem; color: #475569; line-height: 1.7; max-width: 350px; }

/* ============ RESPONSIVE TWEAKS ============ */
@media (max-width: 767.98px) {
  .gov-hero { min-height: auto; }
  .gov-hero h1 { font-size: 1.65rem !important; }
  .gov-hero-subtitle { font-size: 0.95rem; }
  .gov-hero-cta, .gov-hero-cta-outline { width: 100%; justify-content: center; padding: 0.75rem 1.25rem; }
  .gov-hero-stat { padding: 0.85rem 0.6rem; }
  .gov-hero-stat .num { font-size: 1.25rem; }
  .gov-hero-stat .label { font-size: 0.68rem; }

  .badge-year { font-size: 0.72rem; padding: 0.35rem 0.8rem; }
  .gov-section-title { font-size: 1.25rem !important; }

  .filter-panel { padding: 1rem; }
  .filter-chips { gap: 0.4rem; }
  .filter-chip { font-size: 0.78rem; padding: 0.35rem 0.75rem; }

  .event-card { border-radius: 12px; }
  .event-card-body { padding: 1rem; }
  .event-title { font-size: 1rem; }

  .status-modal-header { padding: 1.1rem 1.25rem; }
  .status-modal-header h2 { font-size: 1rem !important; }
  .status-modal-icon { width: 40px; height: 40px; font-size: 1.1rem; }
  .status-modal-body { padding: 1.25rem; }

  .footer-cta { padding: 1.5rem 1.25rem; }
  .footer-cta-title { font-size: 1.1rem; }

  /* Touch-friendly tap targets */
  .nav-link-gov, .lang-btn, .btn-gov, .btn-gov-outline { min-height: 40px; }
}

@media (max-width: 575.98px) {
  .gov-header { padding: 0; }
  .gov-brand-title { font-size: 0.85rem; }
  .gov-brand-sub { font-size: 0.65rem; }
  .gov-logo { width: 38px; height: 38px; }
  .gov-notice { font-size: 0.8rem; padding: 0.6rem 0; }
  .footer-cta-title { font-size: 1.05rem; }
  .footer-cta-text { font-size: 0.82rem; }
}

/* Prevent horizontal overflow on small screens */
html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* ============ SWEETALERT2 THEME (USER SIDE) ============ */
.swal-dpu-popup {
  border-radius: 16px !important;
  font-family: 'Bai Jamjuree', 'Bai Jamjuree', sans-serif !important;
  padding: 1.75rem 1.5rem 1.5rem !important;
  box-shadow: 0 30px 80px -20px rgba(15,23,42,0.35) !important;
}
.swal-dpu-title { color: var(--gov-navy) !important; font-size: 1.15rem !important; font-weight: 600 !important; }
.swal-dpu-html { color: #475569 !important; font-size: 0.92rem !important; }
.swal-dpu-actions { gap: 0.5rem !important; margin-top: 1.5rem !important; }
.swal-dpu-confirm, .swal-dpu-cancel, .swal-dpu-danger {
  padding: 0.65rem 1.4rem !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  border-radius: 9px !important;
  border: 1px solid transparent !important;
  transition: all 0.15s !important;
  font-family: inherit !important;
  min-width: 100px;
}
.swal-dpu-confirm { background: var(--gov-navy) !important; color: #fff !important; }
.swal-dpu-confirm:hover { background: var(--gov-navy-light) !important; box-shadow: 0 4px 12px rgba(10,37,64,0.2); }
.swal-dpu-danger { background: #DC2626 !important; color: #fff !important; }
.swal-dpu-danger:hover { background: #B91C1C !important; box-shadow: 0 4px 12px rgba(220,38,38,0.25); }
.swal-dpu-cancel { background: #fff !important; color: #475569 !important; border-color: var(--gov-border) !important; }
.swal-dpu-cancel:hover { background: #F8FAFC !important; border-color: var(--gov-navy) !important; color: var(--gov-navy) !important; }
.swal-dpu-toast {
  border-radius: 12px !important;
  font-family: 'Bai Jamjuree', 'Bai Jamjuree', sans-serif !important;
  box-shadow: 0 12px 28px -10px rgba(15,23,42,0.2) !important;
  border: 1px solid var(--gov-border);
}
.swal-dpu-toast .swal2-title { font-size: 0.9rem !important; font-weight: 500 !important; }
