
    body {
  font-family: 'Prompt', sans-serif;
  background: #f6f8fb;
  margin: 0;
  color: #162032;
}

a {
  color: #1e72b8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.header {
  background: #fff;
  border-bottom: 1px solid #e3e8ef;
  padding: 0;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 24px 8px 24px;
  gap: 24px;
}
.logo {
  height: 80px;
}
.header-titles {
  margin-left: 14px;
  margin-right: 32px;
  line-height: 1.1;
}
.site-title {
  font-size: 1.01rem;
  font-weight: bold;
}
.site-title span {
  color: #3cb371;
}
.site-subtitle {
  font-size: 0.93rem;
  color: #888;
}
.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  margin-right: 18px;
}
.nav a {
  font-size: 1rem;
  color: #162032;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s;
  text-decoration: none;
}
.nav a:hover {
  background: #e6f1ff;
}
.login-icon{
width: 22px;
height: 22px;
flex-shrink: 0;
}
.login-btn {
  background: transparent;
  color: #162032;
  font-family: 'Prompt', sans-serif;
  font-weight: 100;
  font-size: 1.1rem;
  border: none;
  border-radius: 80px;
  padding: 8px 32px;
  letter-spacing: .2px;
  cursor: pointer;
  transition: background .15s;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  flex: 0 0 auto;
  margin-left: auto;
}
.login-wrapper {
  display: flex;
  align-items: center; /* ✅ ให้ทุกอย่างอยู่กลางแนวดิ่ง */
  gap: 8px;
  background: transparent;
}
.login-btn:hover { background: #e0e0e0; }
.user-icon{
 width: 22px;
height: 22px;
flex-shrink: 0;
}

.main-hero {
  background: url('/assets/img/Bg3.jpg') no-repeat center/cover;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 100%;
  margin: 0 auto;
  padding: 46px 24px 14px 24px;
  gap: 48px;
  position: relative;
  flex-wrap: wrap;
  padding: 35px;
  background-color: #0f2b46; 
  color: white;
}

.hero-left {
  flex: 1.3;
  min-width: 350px;
}
.hero-title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 18px;
  margin-top: 12px;
  color: #ffffff;
  line-height: 1.2;
}
.highlight-green {
  color: #3cb371;
}

.hero-desc {
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: #ffffff;
}
.hero-desc .link {
  color: #18b03c;
}
.hero-desc a{
  text-decoration: none;
  color: #fff; 
}
.hero-desc a:hover {
  color: #fef1a7;   
}


.hero-img {
  width: 330px;
  border-radius: 15px;
  box-shadow: 0 2px 22px #00336620;
}
.hero-logos {
  display: flex;
  gap: 20px;
  margin-top: -35px;
  margin-right: -35px;
  padding: 20px;
  border-radius: 0px 0px 0px 40px;
  background-color: rgba(255, 255, 255, 0.7);
}


.info-section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px #00336610;
  max-width: 1080px;
  margin: 32px auto 0 auto;
  padding: 22px 28px 18px 28px;
}
.info-title {
  display: flex;
  align-items: center;
  font-size: 1.22rem;
  font-weight: bold;
  color: #21406a;
  margin-bottom: 14px;
  gap: 10px;
}
.info-icon {
  width: 34px;
}
.info-main {
  display: flex;
  gap: 36px;
}
.info-desc {
  flex: 2.1;
  font-size: 1.03rem;
  color: #162032;
  line-height: 1.7;
}
.info-checklist {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 2px;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f6f8fb;
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 1.01rem;
  color: #1a5a1a;
  box-shadow: 0 1px 5px #58ebc313;
}

.video-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1080px;
  margin: 38px auto 0 auto;
  padding: 0 24px;
  background: none;
}
.video-card {
  width: 500px;
  max-width: 1000px; /* หรือ 100% */
  margin-left: -160px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.stats-contact {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px 0 24px;
  gap: 38px;
}
.stats {
  flex: 1;
  min-width: 210px;
}
.stats-title {
  font-size: 1.13rem;
  font-weight: bold;
  margin-bottom: 6px;
}
.stat-item {
  font-size: 0.97rem;
  margin-bottom: 5px;
  color: #162032;
}
.stat-link {
  color: #3cb371;
  font-weight: bold;
}

.contact {
  flex: 1;
  min-width: 210px;
}
.contact-title {
  font-size: 1.13rem;
  font-weight: bold;
  margin-bottom: 6px;
}
.contact-social {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin-bottom: 10px;
}
.qr-code {
  margin-top: 4px;
  border-radius: 7px;
  box-shadow: 0 1px 6px #00336622;
}

.footer {
  background: #fff;
  border-top: 1px solid #e3e8ef;
  padding: 30px 0 12px 0;
  margin-top: 34px;
  text-align: center;
  font-size: 0.98rem;
  color: #888;
}

.modal-backdrop {
  display: none;
  position: fixed;
  z-index: 1090;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 18, 23, 0.82);
  width: 100vw; height: 100vh;
}
.login-modal {
  display: none;
  position: fixed;
  z-index: 1100;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #183964;
  border-radius: 20px;
  box-shadow: 0 6px 40px #0005;
  padding: 36px 36px 22px 36px;
  width: 360px;
  min-width: 320px;
  color: #fff;
   font-family: 'Prompt',
  animation: modalIn 0.15s;
}
@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, -60%);}
  to { opacity: 1; transform: translate(-50%, -50%);}
}
.close-btn {
  position: absolute; top: 18px; right: 18px;
  background: none; border: none;
  font-size: 2rem; color: #fff; cursor: pointer;
  z-index: 1200; padding: 0;
}
.login-modal-title { font-size: 2rem; font-weight: bold; margin-bottom: 22px; }
.login-form { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; align-items: center;}
.login-input {
  width: 100%; padding: 14px 12px; border-radius: 9px;
  border: 2px solid #5c7893; background: #284d73;
  color: #fff; font-size: 1.15rem;  font-family: 'Prompt', sans-serif;
  outline: none; transition: border 0.15s;
}
.login-input:focus { border-color: #5ee7df; }
.login-submit-btn {
  margin-top: 8px; width: 100%; padding: 13px 0; border-radius: 9px;
  background: #112947; font-size: 1.15rem; font-weight: bold;
  color: #fff; border: none; cursor: pointer; transition: background 0.18s;
  font-family: 'Prompt', sans-serif;
}
.login-submit-btn:hover { background: #1b335a; }
.login-modal-links {
  display: flex; justify-content: space-between; gap: 22px; margin: 10px 0 0 0;
}
.login-link {
  color: #fff; font-weight: bold; font-size: 1.04rem; text-decoration: none;
  transition: color 0.15s;
}
.login-link:hover { color: #5ee7df; text-decoration: underline; }
.login-modal-note {
  margin-top: 18px; font-size: 0.97rem; color: #a7f3c5; background: none;
  border-radius: 7px; padding: 0;
}
.note-title { display: block; font-weight: bold; color: #5ee7df; margin-bottom: 3px; }
/* Modal show/hide */
#loginModal.active, #loginModalBackdrop.active { display: block; }
/* Responsive */
@media (max-width: 440px) {
  .login-modal { width: 98vw; min-width: 0; padding: 18px 6vw 20px 6vw; }
}
.main-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 35px;
  background-color: #0f2b46; /* หรือพื้นหลังที่คุณใช้ */
  color: white;
}

.signup-button {
  position: absolute;
  bottom: 20px;
  right: 40px;
  background-color: white;
  color: #003366;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 1.25rem; 
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: 0.3s;
  
}

.signup-button:hover {
  background-color: #f0f0f0;
  text-decoration: none;
}
.abtc-banner {
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-pic {
  border-radius: 10px;
  max-width: 100%;
   box-shadow: 
    5px 5px 10px rgba(66, 156, 252, 0.3),   
   -5px -5px 10px rgba(66,156,252,0.3); 
}
.zoom-img {
  display:block;
  width:100%;
  height:auto;
  border-radius:10px;
  cursor: zoom-in;
  transition: transform .15s ease;
  transform-origin: center center; 
  touch-action: none;             
}

.zoom-img.active {
  transform: scale(1.5);
  cursor: zoom-out;
}


.abtc-btn:hover {
  background: #d5bc6a;
}
/* ---------- Footer ---------- */
.abtc-footer{
  --ft-bg:#112947;
  --ft-fg:#ffffff;
  --ft-accent:#e1cf91;
  --ft-soft:rgba(255,255,255,.14);
  --ft-softText:rgba(255,255,255,.75);
  --ft-max:1200px;

  background:var(--ft-bg);
  color:var(--ft-fg);
  font-family:'Prompt',sans-serif;
}

.footer-inner{
  max-width:var(--ft-max);
  margin:0 auto;
  padding:40px 24px 16px;
}

.footer-grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:32px;
  align-items:start;
}

.ft-col{
  min-width:0;
}
.footer-grid > .ft-col:not(:first-child){
  border-left:1px solid var(--ft-soft);
  padding-left:24px;
}

.ft-title{
  margin:0 0 12px;
  font-size:1.25rem;
  font-weight:700;
  color:var(--ft-accent);
}

.ft-list{
  margin:0;
  padding-left:18px;
  line-height:1.75;
  color:var(--ft-softText);
}

.ft-center{
  text-align:center;
}

/* แบรนด์ + QR */
.ft-brand{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  margin-bottom:10px;
}
.brand-logo{
  width:28px;height:28px;object-fit:contain;
}

.ft-qr{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}
.ft-qr img{
  width:130px;height:130px;object-fit:cover;
  border-radius:10px;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
  background:#fff;
}
.qr-caption a{
  color:#9be3ff;
  text-decoration:none;
  font-weight:600;
}
.ft-links{
  margin-top:6px;
  color:var(--ft-softText);
}
.ft-links a{
  color:#9be3ff;
  text-decoration:none;
}
.ft-links .dot{ margin:0 8px; opacity:.6; }

/* ที่อยู่ + ปุ่มสโตร์ */
.ft-address{
  margin:0 0 14px;
  font-style:normal;
  line-height:1.7;
}
.ft-address a{
  color:var(--ft-softText);
  text-decoration:none;
}

.store-badges{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.store-badges img{
  height:44px;
  width:auto;
  display:block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.25));
}
/* ---------- Bottom Bar ---------- */
.footer-bottom{
  margin-top:28px;
  padding-top:16px;
  border-top:1px solid var(--ft-soft);
  text-align:center;
  font-size:.95rem;
  color:var(--ft-softText);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px){
  .footer-grid{
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > .ft-col:nth-child(3){
    border-left:none;
    padding-left:0;
    grid-column:1 / -1;    
  }
  .ft-center{ text-align:left; }
}

@media (max-width: 680px){
  .footer-grid{
    grid-template-columns: 1fr;
    gap:22px;
  }
  .footer-grid > .ft-col{
    border-left:none;
    padding-left:0;
  }
  .ft-center{ text-align:center; }
  .store-badges{ align-items:center; }
}

.apec-card {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
  color: white;
  text-decoration: none;
  
}

.apec-logo {
  width: 24px;
  height: 24px;
}

.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4px;
  
}

.qr-code {
  width: 110px;
  height: 110px;
  background: #fff;
  padding: 5px;
  border-radius: 8px;
  margin-bottom: 4px;
}

.qr-label {
  font-weight: bold;
  color: #fff;
}

.about-contact {
  margin-top: 8px;
  text-align: center;
  
}
.about-contact div {
  font-size: 1rem;
  margin-bottom: 2px;
  color: white;
  text-decoration: none; 
  color: white;
  text-decoration: none;
}

.footer-column.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
 

.location {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 10px;
}

.location a {
color: white;
text-decoration: none; 
}

.store-badge img {
  width: 150px;
  margin-bottom: 4px;
}
.footer-column.follow a {
  color: white;
  text-decoration: none; 
}

.footer-bottom {
  background: #10233d;
  color: #b8c7e0;
  text-align: center;
  padding: 8px 32px;
  font-size: 0.95rem;
  border-top: 1px solid #2c466e;
  margin-top: 8px;
}
/* อ่านรายละเอียดเพิ่มเติม */
/* ---------- Base (Desktop) ---------- */
.header { background:#fff; position:sticky; top:0; z-index:1000; }
.header-container { display:flex; align-items:center; justify-content:space-between; gap:16px; position:relative; }
.logo { height:80px; }

.nav { display:flex; gap:1rem; }
.nav a { text-decoration:none; color:#1b1b1b; padding:.5rem .75rem; }

/* ปุ่ม Hamburger: ซ่อนใน Desktop */
.nav-toggle { display:none; background:none; border:0; padding:6px; cursor:pointer; }
.nav-toggle span { display:block; width:24px; height:3px; background:#1b1b1b; border-radius:2px; }
.nav-toggle span + span { margin-top:5px; }

  /* ซ่อนเมนูเป็นค่าเริ่มต้น */
  .nav {
    display:none;
    position:absolute;
    top:64px;         /* ระยะจากขอบบน (ความสูง header) */
    right:12px;
    left:auto;
    width:min(86vw, 320px);
    flex-direction:column;
    background:#fff;
    border:1px solid #eaeaea;
    border-radius:12px;
    padding:.5rem;
    box-shadow:0 12px 24px rgba(0,0,0,.12);
    animation: menuDrop .18s ease-out;
  }
  .nav a {
    padding:.75rem 1rem;
    border-radius:8px;
  }
  .nav a:hover { background:#f6f7f8; }

  /* แสดงเมนูเมื่อเปิด */
  .nav.is-open { display:flex; }

  /* กันซ้อนกับปุ่ม Login: ให้ปุ่มอยู่ด้านขวาได้พอดี */
  .login-btn { margin-left:auto; }


/* เอฟเฟกต์เปิดเมนู */
@keyframes menuDrop {
  from { transform: translateY(-6px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* สถานะแปลงไอคอนเป็นกากบาท (ถ้าอยากทำอนิเมชันเพิ่ม) */
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity:0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-toggle span { transition: transform .18s ease, opacity .12s ease; }
/* 900px */
@media (max-width: 900px) {
  .main-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 16px 80px 16px;
  }
  .signup-button {
    position: static;
    display: inline-flex;
    margin: 6px 0 0 0;
  }
}
/* ========== Mobile-first NAV ========== */
/* ค่าเริ่มต้น = มือถือ */
.nav-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border:0; background:transparent; cursor:pointer;
}
.nav-toggle span{
  display:block; width:22px; height:2px; background:#0f223d; margin:4px 0;
  transition:transform .18s ease, opacity .12s ease;
}

/* เมนูแบบลิ้นชัก (มือถือ) */
.nav{
  display:none; position:fixed; top:0; right:0; bottom:0; width:min(86vw,340px);
  flex-direction:column; padding:14px; background:#fff; border-left:1px solid #eaeaea;
  box-shadow:-18px 0 40px rgba(0,0,0,.18); z-index:1200; overflow-y:auto;
}
.nav.is-open{ display:flex; }

.nav a{
  font-size:1.06rem; font-weight:700; color:#162032;
  padding:14px 12px; border-radius:12px; background:#f6f8fb; margin-bottom:10px; text-decoration:none;
}
.nav a:hover{ background:#eaf0ff; }

/* ฉากหลังเมื่อเปิดเมนู */
.nav-backdrop{ position:fixed; inset:0; background:rgba(15,18,23,.45); z-index:1190; backdrop-filter:blur(1px); }
.nav-backdrop[hidden]{ display:none; }

/* แอนิเมชันเป็นกากบาทเมื่อเปิด */
.nav-toggle.active span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2){ opacity:0; }
.nav-toggle.active span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* ========== Desktop overrides (จอใหญ่ค่อยซ่อน hamburger) ========== */
@media (min-width: 901px){
  .nav-toggle{ display:none; }
  .nav{
    position:static; display:flex; width:auto; height:auto; padding:0;
    box-shadow:none; border:0; background:transparent; overflow:visible;
    flex-direction:row; gap:8px;
  }
  .nav a{ background:transparent; margin:0; padding:8px 12px; font-weight:600; }
  .nav-backdrop{ display:none !important; }
}

.nav{ position: fixed; z-index: 10001; }     /* เมนู */
.nav-backdrop{ position: fixed; z-index: 10000; }  /* ฉากหลัง */

.nav-backdrop{
  background: rgba(15,18,23,.45);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav{
  transform: translate3d(100%,0,0);
  transition: transform .22s ease, opacity .22s ease;
  opacity: .01;
}
.nav.is-open{
  transform: translate3d(0,0,0);  /* คมชัดขึ้น */
  opacity: 1;
  will-change: transform;
  backface-visibility: hidden;
}

/* Backdrop */
.nav-backdrop{
  position: fixed; inset: 0;
  z-index: 9000;
  background: rgba(15,18,23,.45);
  backdrop-filter: none;            /* ปิด blur ให้ชัด */
  -webkit-backdrop-filter: none;
}
.nav-backdrop[hidden]{ display:none; }

/* Hamburger (mobile-first) */
.nav-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border:0; background:transparent; cursor:pointer;
}
.nav-toggle span{ width:22px; height:2px; background:#0f223d; margin:4px 0; display:block; transition:transform .18s, opacity .12s; }
.nav-toggle.active span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2){ opacity:0; }
.nav-toggle.active span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* Drawer (overlay) */
.nav{
  position: fixed; top:0; right:0; bottom:0; width: min(86vw, 340px);
  z-index: 9001;                    /* สูงกว่า backdrop เสมอ */
  display: flex; flex-direction: column;
  padding: 14px; background:#fff; border-left:1px solid #eaeaea;
  box-shadow:-18px 0 40px rgba(0,0,0,.18); overflow-y:auto;

  /* ซ่อนแบบคมชัด: ไม่ใช้ opacity ต่ำค้าง */
  transform: translate3d(100%,0,0);
  visibility: hidden; pointer-events: none; opacity: 0;
  transition: transform .22s ease, opacity .22s ease, visibility 0s linear .22s;
}
.nav.is-open{
  transform: translate3d(0,0,0);
  visibility: visible; pointer-events: auto; opacity: 1;
  transition: transform .22s ease, opacity .22s ease, visibility 0s;
  will-change: transform; backface-visibility: hidden;
}
.nav a{
  font-size:1.06rem; font-weight:700; color:#162032;
  padding:14px 12px; margin-bottom:10px; border-radius:12px; background:#f6f8fb; text-decoration:none;
}
.nav a:hover{ background:#eaf0ff; }

/* Desktop: ซ่อนปุ่ม + เมนูแผ่แนวนอน */
@media (min-width: 901px){
  .nav-toggle{ display:none; }
  .nav{
    position: static; transform:none; opacity:1; visibility:visible; pointer-events:auto;
    display:flex; flex-direction:row; gap:8px; padding:0; box-shadow:none; border:0; background:transparent; overflow:visible;
  }
  .nav a{ background:transparent; margin:0; padding:8px 12px; font-weight:600; }
  .nav-backdrop{ display:none !important; }
}

:root{
  --abtc-nav-width: min(86vw, 340px);
}

/* Backdrop */
#navBackdrop{
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15,18,23,.45);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#navBackdrop[hidden]{ display: none; }

/* Hamburger (mobile-first) */
#navToggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 0; background: transparent; cursor: pointer;
  padding: 0; margin: 0;
}
#navToggle span{
  display:block; width:22px; height:2px; background:#0f223d; margin:4px 0;
  transition: transform .18s ease, opacity .12s ease;
}
#navToggle.active span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
#navToggle.active span:nth-child(2){ opacity:0; }
#navToggle.active span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* Drawer (overlay) */
#siteNav{
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: var(--abtc-nav-width);
  z-index: 9001; /* above backdrop */
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: #fff;
  border-left: 1px solid #eaeaea;
  box-shadow: -18px 0 40px rgba(0,0,0,.18);
  overflow-y: auto;

  /* hidden state */
  transform: translate3d(100%,0,0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease, visibility 0s linear .22s;
}
#siteNav.is-open{
  transform: translate3d(0,0,0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform .22s ease, opacity .22s ease, visibility 0s;
  will-change: transform;
  backface-visibility: hidden;
}
#siteNav a{
  font-size: 1.06rem;
  font-weight: 700;
  color: #162032;
  padding: 14px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #f6f8fb;
  text-decoration: none;
}
#siteNav a:hover{ background:#eaf0ff; }

/* Scroll lock when menu is open */
.no-scroll{ overflow: hidden; height: 100vh; }

/* Desktop overrides */
@media (min-width: 901px){
  #navToggle{ display: none; }
  #navBackdrop{ display: none !important; }
  #siteNav{
    position: static;
    transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    width: auto; height: auto;
    display: flex; flex-direction: row; gap: 8px; padding: 0;
    border: 0; box-shadow: none; background: transparent; overflow: visible;
  }
  #siteNav a{ background: transparent; margin: 0; padding: 8px 12px; font-weight: 600; }
}

/* Active link highlight (optional) */
#siteNav a[aria-current="page"]{ background:#eaf0ff; outline:2px solid #c9dbff; }

/* Crisp Hamburger (span) */
#navToggle{
  display:inline-grid; place-items:center;
  width:40px; height:40px; padding:0; border:0; background:transparent; cursor:pointer;
  -webkit-tap-highlight-color: transparent;
}
#navToggle span{
  display:block;
  width:24px;               /* กว้างเท่ากัน */
  height:3px;               /* หนาขึ้น (3px) -> คมบนจอส่วนใหญ่ */
  margin:5px 0;             /* ระยะห่างคู่กับ 3px จะลงล็อกพิกเซล */
  background:#0f223d;
  border-radius:2px;
  transform: translateZ(0);  /* กันฟุ้งตอนแอนิเมชัน */
  transition: transform .18s ease, opacity .12s ease;
}
/* X animation */
#navToggle.active span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
#navToggle.active span:nth-child(2){ opacity:0; }
#navToggle.active span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* Crisp Hamburger (SVG) */
.nav-toggle{ display:inline-grid; place-items:center; width:40px; height:40px; background:transparent; border:0; cursor:pointer; }
.burger{ width:24px; height:24px; stroke:#0f223d; stroke-width:2.5; stroke-linecap:round; fill:none; }
.burger .line{ transition: transform .18s ease, opacity .12s ease; transform-origin:12px 12px; }
.nav-toggle.active .line2{ opacity:0; }
.nav-toggle.active .line1{ transform: translateY(5px) rotate(45deg); }
.nav-toggle.active .line3{ transform: translateY(-5px) rotate(-45deg); }

/* ซ่อน hamburger บนเดสก์ท็อปแบบบังคับ */
@media (min-width: 901px){
  #navToggle{ display: none !important; }
}
@media (min-width: 1024px){
  #navToggle{ display: none !important; }
}

/* Backdrop โปร่งใส ไม่มีหม่น ไม่มีเบลอ */
#navBackdrop{
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* เมนูต้องคมชัด ไม่โปร่ง ไม่ฟิลเตอร์ */
#siteNav{
  background: #ffffff !important;
  opacity: 1 !important;
  filter: none !important;
}
/* Desktop overrides */
@media (min-width: 901px){
  #navToggle{ display: none; }
  #navBackdrop{ display: none !important; }
  #siteNav{
    position: static;
    transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    width: auto; height: auto;
    display: flex; flex-direction: row; gap: 8px; padding: 0;
    border: 0; box-shadow: none; background: transparent; overflow: visible;
  }
  #siteNav a{ background: transparent; margin: 0; padding: 8px 12px; font-weight: 600; }
}

/* Active link highlight (optional) */
#siteNav a[aria-current="page"]{ background:#eaf0ff; outline:2px solid #c9dbff; }

/* Crisp Hamburger (span) */
#navToggle{
  display:inline-grid; place-items:center;
  width:40px; height:40px; padding:0; border:0; background:transparent; cursor:pointer;
  -webkit-tap-highlight-color: transparent;
}
#navToggle span{
  display:block;
  width:24px;               /* กว้างเท่ากัน */
  height:3px;               /* หนาขึ้น (3px) -> คมบนจอส่วนใหญ่ */
  margin:5px 0;             /* ระยะห่างคู่กับ 3px จะลงล็อกพิกเซล */
  background:#0f223d;
  border-radius:2px;
  transform: translateZ(0);  /* กันฟุ้งตอนแอนิเมชัน */
  transition: transform .18s ease, opacity .12s ease;
}
/* X animation */
#navToggle.active span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
#navToggle.active span:nth-child(2){ opacity:0; }
#navToggle.active span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* Crisp Hamburger (SVG) */
.nav-toggle{ display:inline-grid; place-items:center; width:40px; height:40px; background:transparent; border:0; cursor:pointer; }
.burger{ width:24px; height:24px; stroke:#0f223d; stroke-width:2.5; stroke-linecap:round; fill:none; }
.burger .line{ transition: transform .18s ease, opacity .12s ease; transform-origin:12px 12px; }
.nav-toggle.active .line2{ opacity:0; }
.nav-toggle.active .line1{ transform: translateY(5px) rotate(45deg); }
.nav-toggle.active .line3{ transform: translateY(-5px) rotate(-45deg); }

/* ===== Header layout: Grid ซ้าย-กลาง-ขวา ===== */
.header { background:#fff; border-bottom:1px solid #e3e8ef; position:sticky; top:0; z-index:1000; }
.header-container{
  max-width: 1200px;            /* ปรับได้ตามดีไซน์ */
  margin: 0 auto;
  padding: 10px 24px 8px;
  display: grid;
  grid-template-columns: auto 1fr auto;  /* โลโก้ | เมนู(กึ่งกลาง) | ปุ่มขวา */
  align-items: center;
  gap: 16px;
}

/* โลโก้คงเดิม */
.logo{ height:80px; }

/* ===== Mobile-first: เมนูเป็น drawer ===== */
#siteNav{
  position: fixed; inset: 0 0 0 auto; width: min(86vw,340px);
  display: none; flex-direction: column; padding:14px;
  background:#fff; border-left:1px solid #eaeaea; box-shadow:-18px 0 40px rgba(0,0,0,.18);
  transform: translateX(100%); opacity:0; visibility:hidden; pointer-events:none;
  transition: transform .22s ease, opacity .22s ease, visibility 0s linear .22s;
}
#siteNav.is-open{ display:flex; transform:none; opacity:1; visibility:visible; pointer-events:auto; transition: transform .22s, opacity .22s; }
#siteNav a{ font-size:1.06rem; font-weight:700; color:#162032; padding:14px 12px; margin-bottom:10px; border-radius:12px; background:#f6f8fb; text-decoration:none; }
#siteNav a:hover{ background:#eaf0ff; }

#navToggle{ display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border:0; background:transparent; cursor:pointer; }
#navToggle span{ width:22px; height:2px; background:#0f223d; display:block; margin:4px 0; transition:transform .18s, opacity .12s; }
#navToggle.active span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
#navToggle.active span:nth-child(2){ opacity:0; }
#navToggle.active span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

#navBackdrop{ position:fixed; inset:0; background:rgba(15,18,23,.45); z-index:9000; }
#navBackdrop[hidden]{ display:none; }

/* ===== Desktop overrides (>=901px): เมนูอยู่ "กลางจริง" ===== */
@media (min-width:901px){
  #navToggle{ display:none; }
  #navBackdrop{ display:none !important; }

  /* ล้างโหมด drawer */
  #siteNav{
    position: static; transform:none; opacity:1; visibility:visible; pointer-events:auto;
    display:flex; flex-direction:row; gap:12px; width:auto; height:auto;
    padding:0; border:0; box-shadow:none; background:transparent; overflow:visible;
    justify-self: center;                 /* << กึ่งกลางคอลัมน์กลาง */
  }
  #siteNav a{ background:transparent; margin:0; padding:8px 12px; font-weight:600; color:#162032; }

  .login-wrapper{ justify-self: end; }    /* ปุ่มกลุ่มขวา */
}

/* ไฮไลต์ลิงก์หน้าเดียวกัน */
#siteNav a[aria-current="page"]{ background:#eaf0ff; outline:2px solid #c9dbff; border-radius:8px; }
