*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Sarabun', sans-serif;
  background: #FFFDF5; color: #1a1a1a;
  overflow-x: hidden; max-width: 100vw;
  padding-top: 122px;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ==================== TOP BAR ==================== */
.topbar {
  background: #3c7e3c;
  padding: 10px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}
.topbar-container {
  max-width: 1400px; margin: 0 auto; padding: 0 32px;
  display: flex; justify-content: flex-end; gap: 28px;
}
.topbar a {
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  transition: color 0.2s;
}
.topbar a:hover { color: #F5C800; }
.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-btn-top {
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 14px; cursor: pointer; padding: 2px 4px;
  font-family: 'Sarabun', sans-serif; font-weight: 500;
  transition: color 0.2s;
}
.lang-btn-top:hover, .lang-btn-top.active { color: #F5C800; }

/* ==================== NAVBAR ==================== */
.navbar {
  background: white;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  position: fixed;
  top: 42px;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 8px 0;
}
.nav-container {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 4px;
}
.logo { text-decoration: none; flex-shrink: 0; margin-right: 12px; }
.logo-img { height: 64px; width: auto; display: block; border-radius: 6px; }
.nav-links {
  display: flex; align-items: center;
  gap: 0; list-style: none; flex: 1;
}
.nav-links > li { position: relative; list-style: none; }
.nav-right { margin-left: auto; flex-shrink: 0; }
.btn-contact {
  background: #F5C800; color: #3a3000;
  padding: 10px 20px; border-radius: 999px;
  text-decoration: none; font-size: 14px; font-weight: 600;
  transition: background 0.2s; white-space: nowrap;
}
.btn-contact:hover { background: #e0b400; }
.menu-toggle {
  display: none; background: none; border: none;
  font-size: 22px; cursor: pointer; margin-left: 8px;
}

/* ==================== DROPDOWN ==================== */
.has-dropdown > a {
  display: flex; align-items: center; gap: 50px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 16px; font-weight: 500;
  color: #1f2937; text-decoration: none;
  transition: all .25s ease;
  white-space: nowrap; position: relative;
}
.has-dropdown:hover > a { background: #f3f4f6; color: #2d6a2d; }
.arrow { font-size: 10px; opacity: .5; transition: all .25s ease; }
.has-dropdown:hover .arrow { transform: rotate(180deg); opacity: 1; }
.has-dropdown::after {
  content: ''; position: absolute;
  top: 100%; left: 0; width: 100%; height: 14px;
  background: transparent;
}
.has-dropdown:hover > a::after {
  content: ''; position: absolute;
  bottom: -6px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid white;
  filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.08));
}
.dropdown {
  position: absolute;
  top: calc(100% + 2px); left: 0;
  min-width: 240px; padding: 10px;
  padding-top: 14px; margin-top: -10px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,.1);
  list-style: none; z-index: 9997;
  opacity: 0; visibility: hidden;
  transform: translateY(8px) scale(.98);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.has-dropdown:hover .dropdown {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.dropdown li { list-style: none; }
.dropdown li a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; margin-bottom: 3px;
  border-radius: 10px; text-decoration: none;
  color: #1f2937; font-size: 16px; font-weight: 500;
  border-left: 3px solid transparent;
  transition: all .18s ease;
}
.dropdown li a:hover {
  background: linear-gradient(135deg, #dcfce7, #f0fdf4);
  color: #2d6a2d; transform: translateX(3px);
  border-left: 3px solid #2d6a2d;
}
.dropdown li a::before {
  content: ""; width: 5px; height: 5px;
  border-radius: 50%; background: #2d6a2d;
  opacity: 0; transform: scale(0); flex-shrink: 0;
  transition: all .2s ease;
}
.dropdown li a:hover::before { opacity: 1; transform: scale(1); }

/* ==================== HERO ==================== */
.hero {
  position: relative;
  width: calc(100% - 2px);
  height: calc(100vh - 122px);
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d2e0d, #2d6a2d);
  margin: 1px;
  z-index: 0;
  display: flex;
  align-items: flex-end;
}
.hero-video-wrap {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; overflow: hidden;
}
.hero-video-wrap iframe {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: max(100%, calc(100vh * 16 / 9));
  height: max(100%, calc(100vw * 9 / 16));
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 5% 8%;
  color: white;
  max-width: 640px;
  width: 100%;
}
.hero-label {
  font-size: 12px; letter-spacing: 5px;
  font-weight: 600; opacity: 0.8; margin-bottom: 10px;
}
.hero-title {
  font-size: clamp(20px, 3vw, 41px); /* ลด 40% จาก clamp(32px,5vw,68px) */
  font-weight: 700; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 14px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.hero-line {
  width: 56px; height: 3px; background: #F5C800;
  margin-bottom: 16px; border-radius: 2px;
}
.hero-desc {
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.8; opacity: 0.9;
  word-break: break-word; overflow-wrap: break-word;
  margin-bottom: 30px; max-width: 480px;
}
.hero-btn {
  display: inline-block; padding: 12px 32px;
  border: 2px solid rgba(255,255,255,0.8);
  color: white; text-decoration: none;
  font-size: 14px; font-weight: 600;
  letter-spacing: 1px; border-radius: 4px;
  backdrop-filter: blur(4px); transition: all 0.3s;
}
.hero-btn:hover { background: white; color: #1a4a1a; }
.hero-social {
  position: absolute; right: 24px; top: 50%;
  transform: translateY(-50%);
  z-index: 2; display: flex; flex-direction: column; gap: 10px;
}
.hero-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  color: white; text-decoration: none;
  font-size: 15px; font-weight: 700; transition: background 0.2s;
}
.hero-social a:hover { background: rgba(255,255,255,0.3); }

/* ==================== ABOUT ==================== */
.about { position: relative; z-index: 1; padding: 80px 0; background: white; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.about-text p { font-size: 15px; color: #555; line-height: 1.9; }

/* About image slider */
.about-slider-wrap {
  position: relative;
  border-radius: 20px; overflow: hidden;
  height: 420px;
  background: #f0f5f0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.about-slider-track {
  display: flex; height: 100%;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
  will-change: transform;
}
.about-slide {
  flex: 0 0 100%; height: 100%; position: relative; overflow: hidden;
}
.about-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.about-slide-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: white; font-size: 14px; font-weight: 500;
  padding: 28px 20px 14px; text-align: center;
}
.about-slide-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; opacity: 0.25;
}

/* Arrows */
.about-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: none;
  font-size: 20px; color: #2d6a2d; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: all 0.2s; line-height: 1; z-index: 2;
}
.about-prev { left: 12px; }
.about-next { right: 12px; }
.about-arrow:hover { background: #2d6a2d; color: white; }

/* Dots */
.about-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.about-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.55); border: none;
  cursor: pointer; padding: 0; transition: all 0.25s;
}
.about-dot.active { background: white; width: 20px; border-radius: 4px; }
.btn-green {
  text-decoration: none; color: white; background: #2d6a2d;
  padding: 12px 28px; border-radius: 8px; font-size: 15px;
  transition: background 0.2s;
}
.btn-green:hover { background: #1a4a1a; }
.btn-read-more {
  text-decoration: none; color: #2d6a2d; font-size: 15px; font-weight: 600;
  border-bottom: 2px solid #F5C800; padding-bottom: 3px; transition: color 0.2s;
}
.btn-read-more:hover { color: #1a4a1a; }

/* ==================== SECTION LABELS ==================== */
.section-label-green {
  font-size: 13px; letter-spacing: 3px; font-weight: 600;
  color: #2d6a2d; margin-bottom: 10px; text-transform: uppercase;
}
.section-label-yellow {
  font-size: 13px; letter-spacing: 3px; font-weight: 600;
  color: #F5C800; margin-bottom: 10px; text-transform: uppercase;
}
.section-title-dark {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700; margin-bottom: 28px; color: #1a1a1a;
}
.section-title-white {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700; margin-bottom: 40px; color: white;
}

/* ==================== PRODUCTS SLIDER ==================== */
.products { padding: 80px 0; background: #FFFDF5; }

/* Label "ผลิตภัณฑ์ของเรา" — ใหญ่ขึ้น 2x และอยู่บนสุด */
.products-main-label {
  font-size: 26px !important;
  letter-spacing: 4px;
  margin-bottom: 16px;
  display: block;
}

/* Header row */
.prod-slider-header {
  display: flex; justify-content: flex-end;
  align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 16px;
}
.prod-slider-controls { display: flex; align-items: center; gap: 10px; }
.psc-arrow {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid #d0e8d0; background: white;
  font-size: 20px; color: #2d6a2d; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; line-height: 1;
}
.psc-arrow:hover { background: #2d6a2d; color: white; border-color: #2d6a2d; }
.psc-more {
  font-size: 14px; font-weight: 600; color: #2d6a2d;
  text-decoration: none; padding: 8px 18px;
  border: 1.5px solid #2d6a2d; border-radius: 8px;
  transition: all 0.2s; white-space: nowrap;
}
.psc-more:hover { background: #2d6a2d; color: white; }

/* Slider container */
.prod-slider-outer {
  overflow: hidden; border-radius: 4px;
}
.prod-slider-track {
  display: flex; gap: 20px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Individual card */
.psc-card {
  flex: 0 0 calc(33.33% - 14px);
  background: white; border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  border: 1px solid #eeede8;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.psc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}
.psc-top {
  height: 160px; display: flex;
  align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.psc-body { padding: 20px 18px; flex: 1; display: flex; flex-direction: column; }
.psc-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 3px; color: #1a1a1a; }
.psc-en { font-size: 12px; color: #2d6a2d; font-weight: 600; margin-bottom: 12px; }
.psc-spec { list-style: none; margin-bottom: 16px; flex: 1; }
.psc-spec li {
  font-size: 12px; color: #666; padding: 4px 0;
  border-top: 1px solid #f5f5f0;
}
.psc-btn {
  display: block; text-align: center;
  background: #f0faf0; color: #2d6a2d;
  font-size: 13px; font-weight: 600;
  padding: 9px 16px; border-radius: 8px;
  text-decoration: none; transition: all 0.2s;
  border: 1px solid #c8e6c8;
}
.psc-btn:hover { background: #2d6a2d; color: white; }

/* Dots */
.prod-slider-dots {
  display: flex; justify-content: center; gap: 7px; margin-top: 20px;
}
.psd {
  width: 8px; height: 8px; border-radius: 50%;
  background: #d0e8d0; border: none; cursor: pointer;
  padding: 0; transition: all 0.2s;
}
.psd.active { background: #2d6a2d; width: 22px; border-radius: 4px; }

/* Responsive */
@media (max-width: 960px) {
  .psc-card { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 640px) {
  .psc-card { flex: 0 0 calc(100%); }
  .prod-slider-header { flex-direction: column; align-items: flex-start; }
}

/* ==================== YARDS SLIDER ==================== */
.process { padding: 80px 0; background: #75b975; }

.yards-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 28px; flex-wrap: wrap; gap: 14px;
}
.yards-all-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid rgba(245,200,0,0.6); color: #F5C800;
  padding: 9px 20px; border-radius: 8px; font-size: 14px;
  font-weight: 600; text-decoration: none; transition: all 0.2s;
  white-space: nowrap;
}
.yards-all-btn:hover { background: #F5C800; color: #1a1a1a; }

/* Arrows — ใน header row */
.yards-arrow {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.25);
  color: white; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; line-height: 1;
}
.yards-arrow:hover { background: #F5C800; color: #1a1a1a; border-color: #F5C800; }

/* Clip wrapper — overflow:hidden คลิปการ์ด */
.yards-clip { overflow: hidden; margin-top: 20px; }

/* Track — เลื่อนระหว่าง page */
.yards-slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
  will-change: transform;
}

/* Each page = 2 rows grid */
.yards-page {
  flex: 0 0 100%; min-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Individual card — กด เปิด modal */
.yard-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s;
}
.yard-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.13);
}
.yard-img { height: 110px; overflow: hidden; background: rgba(255,255,255,0.05); }
.yard-img img { width:100%; height:100%; object-fit:cover; display:block; }
.yard-no-img {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-size:36px; opacity:0.35;
}
.yard-body { padding: 10px 12px; }
.yard-body h4 {
  font-size: 13px; font-weight: 700; color: white;
  line-height: 1.4; margin-bottom: 4px;
}
.yard-phone { font-size: 12px; color: rgba(255,255,255,0.6); }

/* Dots */
.yards-dots { display:flex; justify-content:center; gap:6px; margin-top:16px; }
.yd {
  width:7px; height:7px; border-radius:50%;
  background:rgba(255,255,255,0.3); border:none;
  cursor:pointer; padding:0; transition:all .25s;
}
.yd.active { background:#F5C800; width:18px; border-radius:4px; }

/* ===== Yard Modal ===== */
.yard-modal-box {
  position: relative; background: white; border-radius: 20px;
  width: 100%; max-width: 440px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  animation: ymIn 0.25s ease;
  max-height: 90vh; overflow-y: auto;
}
@keyframes ymIn { from { opacity:0; transform:scale(0.95); } to { opacity:1; transform:scale(1); } }
.yard-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: none;
  font-size: 16px; cursor: pointer; color: #333;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.yard-modal-close:hover { background: #f0f0f0; }
.yard-modal-img { height: 220px; overflow: hidden; background: #f0f5f0; }
.yard-modal-img img { width:100%; height:100%; object-fit:cover; display:block; }
.yard-modal-body { padding: 20px 22px 24px; }
.yard-modal-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 14px; color: #1a1a1a; }
.ym-row {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: #555; margin-bottom: 10px; line-height: 1.5;
}
.ym-row a { color: #2d6a2d; text-decoration: none; font-weight: 600; }
.ym-actions { margin-top: 14px; }
.ym-map-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #2d6a2d; color: white;
  padding: 10px 20px; border-radius: 9px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: background .2s;
}
.ym-map-btn:hover { background: #1a4a1a; }

@media (max-width: 640px) {
  .yards-page { grid-template-columns: repeat(2,1fr); }
  .yard-modal-box { max-width: 100%; border-radius: 16px 16px 0 0; align-self: flex-end; }
}

/* ==================== PROCESS (original kept for reference) ==================== */
.steps { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 140px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px; padding: 24px 16px;
  text-align: center; color: white;
}
.step-num { font-size: 12px; font-weight: 700; color: #F5C800; letter-spacing: 2px; margin-bottom: 10px; }
.step-icon { font-size: 32px; margin-bottom: 10px; }
.step h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 12px; opacity: 0.7; line-height: 1.6; }
.step-arrow { font-size: 20px; color: #F5C800; opacity: 0.6; flex-shrink: 0; margin-top: 56px; }

/* ==================== CONTACT SECTION (Map + Dept) ==================== */
.contact-section-wrap { background: #f8fdf8; }
.contact-map-layout {
  display: grid; grid-template-columns: 1fr 420px;
  align-items: stretch;
  max-width: 80%;
  margin: 0 auto;
}
.contact-map-box {
  position: relative; background: #e8f5e8; overflow: hidden;
}
.contact-map-box iframe { width:100%; height:100%; min-height:0; display:block; border:0; }
.contact-map-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #1a3a1a;
}
.contact-info-box {
  background: white; display: flex; flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,0.06);
}
.contact-name-bar {
  background: #1a3a1a; color: white;
  padding: 16px 24px; font-size: 17px; font-weight: 700;
}
.contact-info-body { padding: 22px 24px; flex: 1; overflow-y: auto; }
.contact-address-block h4 { font-size: 14px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.contact-main-phone {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: #1a3a1a; margin-bottom: 16px;
}
.main-phone-icon { font-size: 20px; }

/* Dept grid */
.dept-grid { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.dept-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: #f8fdf8; border-radius: 8px;
  border: 1px solid #e8f5e8;
}
.dept-name { font-size: 13px; color: #444; }
.dept-phone {
  font-size: 13px; font-weight: 700; color: #1a3a1a;
  text-decoration: none; transition: color 0.2s;
}
.dept-phone:hover { color: #2d6a2d; }

/* Social row */
.contact-social-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; border-top: 1px solid #f0f0f0; }
.contact-social-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px; font-size: 13px;
  font-weight: 600; text-decoration: none; transition: opacity 0.2s;
}
.contact-social-btn:hover { opacity: 0.85; }
.contact-social-btn.fb   { background: #1877f2; color: white; }
.contact-social-btn.line { background: #06c755; color: white; }
.contact-social-btn.yt   { background: #ff0000; color: white; }

@media (max-width: 768px) {
  .contact-map-layout { grid-template-columns: 1fr; }
  .contact-map-box { min-height: 260px; }
}

/* ==================== FOOTER ==================== */
.footer { background: #0d1f0d; color: #999; padding: 48px 0 20px; }

/* Layout ใหม่: 3 คอลัมน์ — info | nav (เยื้องขวา) | social (ชิดขวา) */
.footer-new-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; margin-bottom: 36px;
  align-items: flex-start;
}
.footer-col-info {}
.footer-col-nav { padding-left: 40px; }  /* เยื้องขวา */
.footer-col-social { text-align: right; justify-self: end; }

/* ที่อยู่ inline */
.footer-addr-row {
  display: flex; gap: 6px; align-items: flex-start;
  margin-top: 12px; font-size: 13px; line-height: 1.7;
}
.footer-addr-label { color: #888; white-space: nowrap; flex-shrink: 0; }
.footer-addr-val { color: #bbb; word-break: break-word; }

/* เก็บ footer-grid เดิมไว้ไม่ให้พัง */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 36px; margin-bottom: 36px;
}
@media (max-width: 768px) {
  .footer-new-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-col-nav { padding-left: 0; }
  .footer-col-social { text-align: left; justify-self: start; }
}
.footer-logo-img { height: 48px; width: auto; border-radius: 6px; }
.footer h4 { color: #F5C800; margin-bottom: 12px; font-size: 14px; }
.footer p, .footer li { font-size: 13px; line-height: 1.8; }
#footerAddress { display: inline; word-break: break-word; overflow-wrap: break-word; }
.footer p #footerAddress { display: block; margin-top: 2px; max-width: 260px; line-height: 1.6; }
.footer ul { list-style: none; }
.footer a { color: #999; text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: #F5C800; }
.footer-copy { border-top: 1px solid #222; padding-top: 18px; text-align: center; font-size: 12px; }

/* ==================== SCROLL ANIMATION ==================== */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ==================== SPLASH SCREEN ==================== */
.splash {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px); padding: 16px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  box-sizing: border-box;
}
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-content {
  background: white; border-radius: 20px;
  padding: 16px; width: 100%; max-width: 860px;
  height: calc(100vh - 32px);
  overflow: hidden; text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  animation: splashIn 0.4s ease both;
  display: flex; flex-direction: column; gap: 10px;
}
@keyframes splashIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
.splash-slider {
  flex: 1; min-height: 0;
  border: 1px solid #d0e8d0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.splash-slides {
  display: flex; height: 100%;
  width: 100%;
  transition: transform 0.4s ease;
  will-change: transform;
}
.splash-slide {
  flex: 0 0 100%; min-width: 0; width: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  background: #f8fdf8;
  height: 100%;
}
.slide-img-wrap {
  flex: 1; min-height: 0; width: 100%;
  display: flex; align-items: center;
  justify-content: center;
  background: #f8fdf8; padding: 16px;
  box-sizing: border-box;
}
.slide-img-wrap img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  display: block; margin: 0 auto;
}
.slide-no-img { font-size: 80px; }
.slide-text-wrap {
  padding: 12px 24px 14px;
  background: white;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0; width: 100%;
  text-align: center;
}
.slide-title {
  font-size: 16px; color: #1a1a1a;
  line-height: 1.6; font-weight: 600;
  margin: 0 auto; max-width: 600px;
  text-align: center;
}
.splash-news-tag { display: none; }
.splash-news-date { display: none; }
.splash-controls {
  display: flex; align-items: center;
  justify-content: center; gap: 12px;
  flex-shrink: 0;
}
.slide-arrow {
  background: white; border: 1.5px solid #d0e8d0;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s; color: #2d6a2d;
  padding: 0; flex-shrink: 0;
}
.slide-arrow:hover { background: #2d6a2d; color: white; border-color: #2d6a2d; }
.splash-dots {
  display: flex; align-items: center;
  justify-content: center; gap: 6px;
}
.splash-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ccc; cursor: pointer;
  transition: all 0.3s; border: none; padding: 0;
}
.splash-dot.active { background: #2d6a2d; width: 24px; border-radius: 4px; }
.splash-btn {
  display: flex; align-items: center;
  justify-content: center; gap: 8px;
  width: 40%; margin: 0 auto;
  background: #2d6a2d; color: white;
  border: none; padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: 'Sarabun', sans-serif;
  box-shadow: 0 4px 14px rgba(45,106,45,0.3);
  transition: all 0.25s ease; flex-shrink: 0;
}
.splash-btn:hover { background: #1a4a1a; transform: translateY(-2px); }
.splash-btn-arrow { font-size: 16px; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-right { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-slider-wrap { height: 280px; }
  .stat-divider { display: none; }
  .steps { justify-content: center; }
  .step-arrow { display: none; }
}
@media (max-width: 768px) {
  .hero { height: calc(100vh - 90px); }
  .hero-content { left: 5%; right: 5%; bottom: 8%; }
  .hero-social { display: none; }
  .topbar-container { gap: 14px; flex-wrap: wrap; justify-content: center; }
  body { padding-top: 90px; }
}
@media (max-width: 600px) {
  .splash-btn { width: 70%; font-size: 13px; }
  .slide-title { font-size: 14px; }
}
@media (max-width: 380px) {
  .splash-content { border-radius: 14px; }
}

/* Splash loading spinner */
.splash-loading-spinner {
  width: 48px; height: 48px;
  border: 4px solid #e0f0e0;
  border-top-color: #2d6a2d;
  border-radius: 50%;
  animation: splashSpin 0.8s linear infinite;
}
@keyframes splashSpin { to { transform: rotate(360deg); } }

/* Slide tag & date */
.slide-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  background: #e8f5e8; color: #2d6a2d;
  padding: 2px 10px; border-radius: 999px;
  margin-bottom: 6px;
}
.slide-date {
  font-size: 12px; color: #999;
  margin-top: 4px;
}