:root{
  --bg:#ffffff;
  --text:#0b1220;
  --muted:#5b6b7a;
  --primary:#0b5cff;
  --border:#e9eef5;
  --shadow:0 8px 24px rgba(16,24,40,.06);

  --blue:#0b5cff;
  --ins-bg:#eaf1ff;
  --ins-max:1200px;
}

*{ box-sizing:border-box; }
html,body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Prompt,"TH Sarabun New","Noto Sans Thai",sans-serif;
  color:var(--text);
  background:#f4f7fb;
  line-height:1.6;
}
/* ---------- Top Navigation ---------- */
.nav{ position:sticky; top:0; z-index:10; background:var(--bg); border-bottom:1px solid var(--border); }
.nav .container{ max-width:1200px; margin:auto; padding:10px 20px; display:flex; align-items:center; gap:16px; justify-content:space-between; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; min-width:0; }
.brand img{ height:65px; display:block; }
.brand .tag{ font-size:20px; color:var(--text); letter-spacing:.03em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* ครอบทุก section */

.container {
  max-width: 1200px;   /* กำหนดความกว้างสูงสุด */
  margin: 0 auto;      /* จัดกึ่งกลาง */
  padding: 0 20px;     /* ช่องว่างซ้าย-ขวาเท่ากัน */
  box-sizing: border-box;
}

.container{ max-width:1200px; margin:auto; padding:10px 20px; }
@media (max-width:1200px){
  .container{ max-width:none; width:100%; padding:10px 16px; }
}    

/* ปรับให้รูปภาพ/การ์ดด้านในชิด container */
.hero-banner, .hero-banner img {
  width: 100%;
  display: block;
  border-radius: 12px;  /* ถ้ามีมุมโค้ง */
}


.menu{ margin-left:auto; display:flex; align-items:center; gap:32px; }
.menu>li{ list-style:none; position:relative; }
.menu>li>a,.menu>li>button{
  appearance:none; background:none; border:0; cursor:pointer;
  display:flex; align-items:center; gap:8px;
  padding:10px 8px; font-size:14px; color:var(--text); text-decoration:none; border-radius:8px;
}
.menu>li>a:hover,.menu>li>button:hover{ background:#f6f8fb; }
.caret{ border:solid var(--muted); border-width:0 1.8px 1.8px 0; display:inline-block; padding:3px; transform:rotate(45deg); margin-top:2px; }

.dropdown{
  position:absolute; left:0; top:100%; min-width:240px;
  opacity:0; visibility:hidden; transform:translateY(6px); transition:.18s ease;
  background:#fff; border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow); padding:8px;
}
.menu>li:focus-within .dropdown,.menu>li:hover .dropdown{ opacity:1; visibility:visible; transform:translateY(0); }
.dropdown a{ display:block; padding:10px 12px; border-radius:8px; text-decoration:none; color:var(--text); font-size:15px; }
.dropdown a:hover{ background:#f3f6ff; color:#1030a6; }

.actions{ display:flex; align-items:center; gap:12px; }
.btn{ padding:8px 12px; border-radius:10px; border:1px solid var(--border); background:#00ff3c; color:#1b2a41; text-decoration:none; }
.btn:hover{ background:#eef3ff; border-color:#d6e3ff; }

/* --- Hamburger & Drawer (Mobile/Tablet) --- */
.hamburger{
  display:none; position:relative; width:40px; height:34px; border:1px solid var(--border);
  border-radius:10px; background:#00ff26; cursor:pointer;}
.hamburger span{ position:absolute; left:8px; right:8px; height:2px; background:var(--text); }
.hamburger span:nth-child(1){ top:10px; } .hamburger span:nth-child(2){ top:16px; } .hamburger span:nth-child(3){ top:22px; }

.drawer{
  position:fixed; top:0; left:0; width:min(80vw,380px); height:100vh;
  background:#fff; border-right:1px solid var(--border); box-shadow:var(--shadow);
  transform:translateX(-100%); will-change:transform; transition:transform .22s ease;
  z-index:10001; display:flex; flex-direction:column; overflow:auto;
}
.drawer.open{ transform:translateX(0); }
.drawer-header{ position:sticky; top:0; background:#fff; border-bottom:1px solid var(--border); padding:14px; z-index:1; display:flex; align-items:center; gap:10px; }
.drawer-close{ margin-right:auto; width:40px; height:34px; border:1px solid var(--border); background:#fff; border-radius:10px; cursor:pointer; }
.drawer-nav{ display:grid; gap:8px; padding:12px; }
.drawer-nav a{ display:block; padding:12px 10px; border:1px solid var(--border); border-radius:10px; text-decoration:none; color:var(--text); background:#fff; }
.drawer-nav a:hover{ background:#eef3ff; border-color:#d6e3ff; }

.backdrop{ position:fixed; inset:0; background:rgba(16,24,40,.32); z-index:10000; }
.backdrop[hidden]{ display:none !important; }
body.noscroll{ overflow:hidden; height:100vh; position:fixed; width:100%; }

/* --- Responsive: compact nav --- */
@media (max-width:1024px){
  .brand .tag{ max-width:55vw; }
  .hamburger{ display:inline-flex; align-items:center; justify-content:center; }
  .menu{ display:none !important; }
  .actions{ margin-left:0; }
}
@media (max-width:768px){
  .brand img{ height:40px; }
}

.q-wrap {
  max-width:1200px;
  margin:28px auto 56px;
  padding:0 20px;
  display:grid;
  grid-template-columns:1.05fr .95fr; 
  gap:28px;
}

@media (min-width:600px) and (max-width:980px){
  .q-wrap {
    grid-template-columns:1fr 1fr; 
    gap:24px;                    
  }
}

@media (max-width:599px){
  .q-wrap {
    grid-template-columns:1fr;
  }
}


.q-left{ grid-column:1 / -1; max-width:900px; margin:0 auto; text-align:center; }
.q-left h1{ font-size:clamp(26px,3.6vw,40px); line-height:1.25; margin:8px 0 6px; }
.q-sub{ color:var(--muted); margin:0 0 18px; }
.q-promo{
  background:#eaf1ff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  margin:0 auto;
  max-width:none;          
}
@media (min-width:1280px){
  .q-promo{ max-width:960px; } 
}

.q-art{
  width:100%;
  height:auto;              
  border-radius:14px;
  box-shadow:0 8px 18px rgba(16,24,40,.08);
}

@media (max-width: 600px){
  .q-promo{ padding:12px; }
  .q-art{ max-height:55vh; } 
}
@media (min-width: 600px) and (max-width: 820px){
  .q-promo{ 
    max-width: 820px;  
    padding: 16px;
  }
  .q-art{
    aspect-ratio: 16 / 9; 
    max-height: 65vh;     
    object-fit: cover;
    object-position: center;
  }
}

@media (min-width: 821px) and (max-width: 1024px){
  .q-promo{
    max-width: 960px; 
    padding: 16px;
  }
  .q-art{
    aspect-ratio: 16 / 9;
    max-height: 70vh;  
    object-fit: cover;
    object-position: center;
  }
}

@media (min-width: 900px) and (max-width: 1024px){
  .q-wrap{
    grid-template-columns: 1.05fr .95fr; 
    gap: 28px;
  }
}

.q-points-line{ font-size:20px; text-align:center; font-weight:600; margin-top:50px; }

/* ---------- Insurance Logos Section ---------- */
.ins-why{ background:var(--ins-bg); padding:20px 20px 56px; border-top:1px solid rgba(16,24,40,.06); }
.ins-container{ max-width:var(--ins-max); margin:0 auto; text-align:center; color:var(--text); }
.ins-title{ font-size:clamp(20px,2.2vw,28px); font-weight:700; margin:0 0 10px; }
.ins-subtitle{ color:var(--blue); font-weight:700; margin:8px 0 6px; font-size:clamp(18px,2vw,24px); }
.ins-note{ color:var(--muted); margin:0 0 22px; font-size:clamp(13px,1.5vw,16px); }
.ins-logos{
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center;
  gap:22px 28px; padding:0 24px; margin:12px auto 56px; max-width:1200px; box-sizing:border-box;
}
.ins-logos a{ width:96px; height:96px; display:grid; place-items:center; }
.ins-logos img{
  width:96px; height:96px; object-fit:contain; background:#fff; border-radius:999px;
  padding:12px; border:1px solid var(--border); box-shadow:0 10px 22px rgba(16,24,40,.08);
  transition:transform .12s ease, box-shadow .12s ease;
}
.ins-logos a:hover img, .ins-logos img:active{ transform:translateY(-2px); box-shadow:0 14px 26px rgba(16,24,40,.12); }

@media (max-width: 768px) {
  .ins-logos { display: grid; grid-template-columns: repeat(4, 1fr); /* 4 คอลัมน์แน่นอน */ gap: 16px; justify-items: center;}
  .ins-logos a, .ins-logos img { width: 70px; height: 70px; padding: 8px;}
}

@media (max-width:768px){
  .ins-logos{ gap:16px 18px; padding:0 20px; }
  .ins-logos a, .ins-logos img{ width:72px; height:72px; padding:10px; }
}
@media (min-width:601px) and (max-width:1024px){
  .ins-logos{ gap:20px 24px; padding:0 28px; }
  .ins-logos a, .ins-logos img{ width:86px; height:86px; }
}

/* ---------- Compare Cards ---------- */
.ins-compare{ max-width:900px; margin:50px auto 40px; text-align:center; padding:0 20px; }
.ins-compare h1{ font-size:28px; color:#0b1220; margin-bottom:6px; }
.ins-compare h2{ font-size:20px; color:var(--blue); margin-bottom:14px; }
.ins-compare p{ font-size:15px; color:var(--muted); }

.ins-cards{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:24px; max-width:1200px; margin:0 auto 60px; padding:0 20px;
}
.card{
  background:#fff; border:1px solid var(--border); border-radius:12px; text-align:center;
  padding:28px 20px; box-shadow:0 4px 12px rgba(16,24,40,.05);
  transition:transform .2s ease, box-shadow .2s ease;
}
.card:hover{ transform:translateY(-4px); box-shadow:0 8px 18px rgba(16,24,40,.08); }
.card h3{ font-size:20px; margin-bottom:10px; color:#0b1220; }
.card span{ font-size:36px; color:var(--blue); font-weight:700; }
.card p{ font-size:16px; color:#344054; margin:12px 0 18px; line-height:1.5; }
.btn-detail{ display:inline-block; padding:10px 16px; border-radius:8px; background:var(--blue); color:#fff; text-decoration:none; font-size:15px; font-weight:600; transition:background .2s ease; }
.btn-detail:hover{ background:#093ecc; }

/* ---------- 3 Steps ---------- */
.steps-wrap{ padding:40px 20px 70px; background:#fff; }
.steps-container{ max-width:1200px; margin:0 auto; }
.steps-heading{ text-align:center; color:var(--blue); font-size:clamp(20px,2.4vw,28px); font-weight:700; margin-bottom:26px; }
.steps-grid{ display:grid; grid-template-columns:1fr auto 1fr auto 1fr; gap:24px 36px; align-items:stretch; }
.step-card{ background:#fff; border:1px solid var(--border); border-radius:14px; text-align:center; padding:28px 24px; box-shadow:var(--shadow); }
.step-icon {
  width:92px;
  height:92px;
  border-radius:999px;         
  background:rgba(11,92,255,.12); 
  display:grid;
  place-items:center;           
  margin:0 auto 14px;
}

.step-icon img {
  width:46px;
  height:46px;
  object-fit:contain;            
}

.step-num{ color:var(--blue); font-weight:700; margin:6px 0; }
.step-title{ color:var(--blue); font-size:20px; line-height:1.45; margin:0 0 10px; }
.step-desc{ color:var(--text); opacity:.85; line-height:1.7; margin:0; }
.step-arrow{ width:28px; height:28px; display:grid; place-items:center; align-self:center; justify-self:center; color:#b8c7ff; font-size:40px; line-height:1; user-select:none; }
@media (max-width:1060px){
  .steps-grid{ grid-template-columns:1fr; gap:18px; }
  .step-arrow{ display:none; }
  .step-card{ padding:24px 18px; }
  .step-title{ font-size:18px; }
  .step-icon{ width:82px; height:82px; }
  .step-icon img{ width:40px; height:40px; }
}

/* ---------- Health Cards ---------- */
.health-wrap{ padding:40px 20px 60px; }
.health-container{ max-width:1200px; margin:0 auto; display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:28px; }
.health-card{ background:#fff; border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow); overflow:hidden; display:flex; flex-direction:column; transition:transform .2s ease, box-shadow .2s ease; }
.health-card:hover{ transform:translateY(-4px); box-shadow:0 10px 20px rgba(16,24,40,.1); }
.health-img img{ width:100%; height:auto; display:block; object-fit:cover; }
.health-body{ padding:18px 20px 24px; }
.health-title{ font-size:18px; font-weight:700; margin:0 0 6px; color:var(--blue); }
.health-sub{ font-size:15px; color:var(--muted); margin:0 0 14px; }
.health-list{ list-style:none; padding:0; margin:0; }
.health-list li{ margin:6px 0; font-size:15px; line-height:1.5; padding-left:22px; position:relative; }
.health-list li::before{ content:"✔"; position:absolute; left:0; color:green; font-weight:bold; }

/* ---------- Promo Grid ---------- */
.promo-wrap{ padding:24px 0 36px; }
.promo-grid{ max-width:1200px; margin:0 auto; display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:28px; }
.promo-card{ background:#fff; border:1px solid var(--border); border-radius:18px; box-shadow:0 12px 28px rgba(16,24,40,.10); overflow:hidden; transition:transform .2s, box-shadow .2s; }
.promo-card:hover{ transform:translateY(0px); box-shadow:0 18px 32px rgba(16,24,40,.14); }
.promo-img img{ width:100%; aspect-ratio:1/1; object-fit:contain; display:block; aspect-ratio:auto; }
.promo-body{ padding:14px 16px 18px; }
.promo-title{ margin:2px 0 8px; font-size:18px; font-weight:700; }
.promo-excerpt{ margin:0; color:#5b6b7a; line-height:1.55; }
@media (max-width:1024px){ .promo-grid{ gap:22px; } }
@media (max-width:640px){ .promo-wrap{ padding:16px 0 28px; } .promo-grid{ gap:16px; } }

/* ---------- LINE CTA ---------- */
.line-wrap{ padding:28px 16px 40px; display:grid; place-items:center; }
.line-card{ width:100%; max-width:420px; text-align:center; }
.line-heading{ margin:0 0 14px; font-size:28px; font-weight:700; color:var(--text); }
.line-button{ display:inline-block; border-radius:12px; box-shadow:var(--shadow); overflow:hidden; transition:transform .2s, box-shadow .2s, filter .2s; background:#fff; }
.line-button img{ display:block; width:150px; max-width:90vw; height:auto; }
.line-button:hover{ transform:translateY(-2px); box-shadow:0 16px 32px rgba(16,24,40,.14); filter:saturate(1.05); }
.line-button:focus{ outline:3px solid #06C755; outline-offset:4px; }
.line-note{ margin:12px 0 0; font-size:16px; color:#49505a; line-height:1.6; }
.line-note .em{ color:#e32; margin-left:6px; }

/* ---------- Footer ---------- */
.footer{ background:#f8f9fb; border-top:1px solid var(--border); padding:40px 20px 30px; font-size:14px; color:#333; }
.footer-container{ max-width:1200px; margin:0 auto; display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:28px; }
.footer-col h4{ font-size:15px; font-weight:700; margin-bottom:12px; color:#0b1220; }
.footer-col ul{ list-style:none; padding:0; margin:0; }
.footer-col ul li{ margin:6px 0; }
.footer-col a{ text-decoration:none; color:#344054; }
.footer-col a:hover{ color:var(--blue); text-decoration:underline; }
.footer .contact p{ margin:6px 0; color:#444; line-height:1.5; }
.contact-box{ margin:14px 0; padding:12px; background:#f0f4ff; border-radius:8px; }
.contact-box .phone{ display:inline-block; margin-top:6px; font-weight:700; color:var(--blue); text-decoration:none; }
.contact-box .line{ display:inline-block; margin-left:10px; font-weight:700; color:green; text-decoration:none; }
.social{ margin-top:14px; display:flex; gap:12px; }
.social img{ width:28px; height:28px; display:block; }


/* ---------- Small-screen nav tweaks ---------- */
@media (max-width:640px){
  .nav .container{ flex-wrap:wrap; row-gap:8px; }
  .brand img{ height:40px; }
  .menu{ order:3; width:100%; margin-left:0; display:grid; grid-template-columns:1fr; gap:8px; overflow:visible; padding:6px 0 0; }
  .menu>li{ position:static; }
  .menu>li>a,.menu>li>button{
    width:100%; justify-content:space-between; padding:12px 14px; font-size:16px; background:#fff;
    border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow);
  }
  .caret{ margin-left:auto; }
  .dropdown{ position:static; width:100%; margin-top:6px; border-radius:10px; display:none; opacity:1; visibility:visible; transform:none; }
  .menu>li:focus-within .dropdown,.menu>li:hover .dropdown{ display:block; }
  .dropdown a{ padding:12px 14px; font-size:16px; }
  .actions{ order:2; margin-left:auto; }
  .btn{ padding:10px 14px; font-weight:600; }
}

@media (max-width: 768px) {
  .nav .container {display: flex;align-items: center;justify-content: space-between;gap: 8px;flex-wrap: nowrap;}
  .brand {display: flex;align-items: center;gap: 6px;flex: 1 1 auto;min-width: 0; }
  .brand img {height: 36px;}
  .brand .tag {font-size: 15px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
  .hamburger {display: inline-flex !important;align-items: center;justify-content: center;width: 40px;height: 34px;border: 1px solid var(--border);border-radius: 10px;background: #fff;flex: 0 0 auto;}
  .actions {display: flex;flex: 0 0 auto;align-items: center;}
  .actions .btn {padding: 6px 12px;font-size: 14px;font-weight: 600;}
}

@media (min-width:768px) and (max-width:1024px){
  .nav .container{
    display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:nowrap;}
  .menu{ display:none !important; }
  .hamburger{order:2; display:inline-flex !important;align-items:center; justify-content:center;width:54px; height:44px;border:1px solid var(--border);border-radius:10px;background:#fff; cursor:pointer;}
  .hamburger span{height:3px; background:var(--text); border-radius:2px;}
  .brand{order:1;flex:1 1 auto;min-width:0;gap:10px;}
  .brand img{ height:42px; }
  .brand .tag{font-size:18px;white-space:nowrap; overflow:hidden; text-overflow:ellipsis;max-width:55vw;}
  .actions{order:3;display:flex; align-items:center; margin-left:0;gap:8px;}
  .actions .btn{ padding:10px 14px; }
}
/* ---------- contact ---------- */
  .contact {max-width: 1100px;margin: 40px auto;padding: 0 20px;}
  .contact h2 { font-size: 22px; font-weight: 700; color: #0b1220; margin-bottom: 14px; border-bottom: 2px solid #2e4d78; padding-bottom: 8px;}
  .contact-info .row {display: flex; margin: 10px 0;}
  .contact-info .label { flex: 0 0 120px;   font-weight: 600; color: #344054; text-align: right;    padding-right: 16px; }
  .contact-info .value { flex: 1; color: #333;}
  .contact-info a:hover { text-decoration: underline;}
  .map-link { color: #333; text-decoration: none; }
  .map-link:hover { color: #160568; }
  .line-link { color: #2d07ec;  font-weight: bold; text-decoration: none;}
  .line-link:hover { text-decoration: underline;}

/* ---------- About-the-Company ---------- */
.about-hero {
  background: #eaf1ff;
  padding: 60px 20px;
  text-align: center;
}

.about-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  color: #0b1220;
  margin-bottom: 12px;
}

.about-hero p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  color: #5b6b7a;
  line-height: 1.6;
}

.about-content {
  padding: 50px 20px;
  background: #fff;
}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.about-card {
  background: #fff;
  padding: 24px 28px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  max-width: 900px;         
  margin: 0 auto;            
}

.about-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 14px;
}

.about-card p {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  text-align: justify;
  text-justify: inter-word;
}



/* ===== Product Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.card {
  background: #fff;
  border-radius: 10px;   
  border: 1px solid #e5e7eb; 
  padding: 20px;
  box-shadow: none;      
  transition: none;      
}

.card:hover {
  box-shadow: none;      
  transform: none;    
}

.card img {
  width: 80px;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 10px 0;
}

.card p {
  margin: 4px 0;
  color: #555;
  font-size: 14px;
}

div.card .price span {
  font-size: 20px;
}

.card .price {
  font-size: 20px;
  font-weight: bold;
  color: #0d47a1;
  margin: 10px 0;
}

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
}


/* ===== buttons ===== */
.contact-buttons {
  text-align: center;
  margin: 40px auto;
}

/* ให้อยู่บรรทัดเดียวกันเสมอ */
.btn-tiles {
  display: flex;
  flex-wrap: nowrap;           /* ไม่ให้ตัดบรรทัด */
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.btn-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;              /* ขนาดคงที่ ไม่หด */
  width: 140px;
  height: 90px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
  transition: 0.2s;
}

/* เอาขีดล่างออกทั้งหมด */
.contact-buttons .btn-tile,
.contact-buttons .btn-tile:link,
.contact-buttons .btn-tile:visited,
.contact-buttons .btn-tile:hover,
.contact-buttons .btn-tile:active,
.contact-buttons .btn-tile .tile-text{
  text-decoration: none;
}

.btn-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}

.btn-tile img {
  max-height: 60px;
  width: auto;
}

.btn-tile .tile-text{
  font-size: 25px;
  font-weight: 700;
  color: #0d47a1;
}

/* ถ้าหน้าจอแคบมาก ให้เลื่อนในแนวนอนได้แทนการตัดบรรทัด */
@media (max-width: 560px){
  .btn-tiles{
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 10px 6px;
  }
  .btn-tiles::-webkit-scrollbar{ display:none; }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
/* ถ้าหน้าจอแคบมาก: ปุ่มยังอยู่บรรทัดเดียวกันและจัดกึ่งกลาง */
@media (max-width: 560px){
  .btn-tiles{
    justify-content: center;          /* จาก flex-start -> center */
    flex-wrap: nowrap;                /* ยังไม่ให้ตัดบรรทัด */
    overflow-x: auto;                 /* ถ้าเกินจอก็เลื่อนเอาได้ */
    -webkit-overflow-scrolling: touch;
    padding: 0 10px 6px;
  }
  .btn-tiles::-webkit-scrollbar{ display:none; }
}

/* แท็บเล็ต: จัดกึ่งกลาง */
@media (min-width: 561px) and (max-width: 1024px){
  .btn-tiles{
    justify-content: center;
  }
}

/* ===== contact (เดิม) ===== */
section.contact {
  position: relative;
  padding-right: 380px; 
  margin-bottom: 40px;
}

section.contact > .map-box {
  position: absolute;
  right: 20px;
  top: 60px;
  width: 340px;
  height: 220px;
  border: 1px solid #d9dce3;
  background: #f7f9ff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
}

section.contact > .map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 980px) {
  section.contact { padding-right: 0; }
  section.contact > .map-box {
    position: static;
    width: 100%;
    height: 220px;
    margin-top: 14px;
  }
}


/* ----------Contact Banner  ---------- */
.contact-cta{ background:#0D6EFD; padding:56px 24px 48px; color:#fff; }
.contact-cta__inner{ max-width:1200px; margin:0 auto; }
.contact-cta__title{ font-size:clamp(26px,3vw,40px); font-weight:800; margin:0 0 22px; }

.contact-cta__grid{
  display:grid;
  grid-template-columns: .9fr 1.1fr;   
  gap:28px;
  align-items:start;
}
.contact-cta__logo{ height:58px; width:auto; margin:6px 0 18px; filter:drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.contact-cta__social{ display:flex; gap:14px; align-items:center; list-style:none; padding:0; margin:1px 0 0; }
.social-btn{
  display:inline-grid; place-items:center; width:44px; height:44px; border-radius:999px;
  background:rgba(255,255,255,.12); border:2px solid rgba(255,255,255,.25); color:#fff; font-weight:800; text-decoration:none;
  transition:.2s ease;
}
.title-logo {
  height: 80px;          
  width: auto;
  margin-right: 10px;    
  vertical-align: middle; 
}

.social-btn:hover{ transform:translateY(-2px); background:rgba(255,255,255,.22); }
.contact-cta__label{ font-size:18px; font-weight:700; margin:0 0 12px; }
.contact-info-wrap{
  display:flex; align-items:flex-start; gap:28px; margin-top:0px;
}
.contact-text{
  flex:0 1 100%;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  border-radius:12px;
  padding:14px 16px;
  box-shadow:0 8px 20px rgba(0,0,0,.12);
}
.contact-cta__addr{ margin:0 0 10px; line-height:1.7; font-size:15px; }
.contact-cta__mail{ margin:0; font-weight:700; }
.contact-cta__addr a[href^="tel"]{ color:#fff; font-weight:800; text-decoration:none; }
.contact-cta__addr a[href^="tel"]:hover{ text-decoration:underline; }
.map-wrap{
  flex:1 1 105%;
  border-radius:12px; overflow:hidden;
}
.map-wrap iframe{ width:100%; height:280px; border:0; display:block; border-radius:8px; }
@media (max-width:1024px){
  .contact-cta__grid{ grid-template-columns:1fr; gap:18px; }
  .contact-cta{ padding:32px 18px 28px; }
  .map-wrap iframe{ height:280px; }
}

@media (max-width: 768px) {
  .contact-cta__grid {
    grid-template-columns: 1fr;  
    gap: 18px;
  }
  
  .title-logo {
    height: 26px;   
    margin-right: 6px;
  }

  .contact-cta__logo {
    height: 48px;   
    margin: 4px 0 12px;
  }

  .contact-info-wrap {
    display: block;              
  }

  .contact-text {
    margin-bottom: 12px;         
  }

  .map-wrap {
    width: 100%;                 
  }
  .map-wrap iframe {
    width: 100%;
    height: clamp(220px, 40vh, 320px); 
    border-radius: 10px;
  }
}

@media (max-width:360px){
  .contact-cta{ padding:24px 12px 24px; }
  .contact-cta__title{ font-size:18px; }
  .contact-cta__social{ gap:6px; }
  .social-btn{ width:34px; height:34px; }
  .map-wrap iframe{ height: 200px; }
}

/* ----------product ---------- */
.product-showcase {
  background: #f6f8fb;
  padding: 50px 20px;
  text-align: center;
}

.product-showcase .container {
  max-width: 1200px;
  margin: auto;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #0d47a1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.product-card img {
  width: 100%;
  height: 280px;
  object-fit: contain;    
  background-color: #f9fafb; 
}

.product-content {
  padding: 20px;
  text-align: left;
}

.product-content h3 {
  color: #0d47a1;
  margin-bottom: 10px;
}

.product-content p {
  color: #444;
  margin-bottom: 14px;
  line-height: 1.6;
}

.product-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.product-content li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 6px;
}


/* ----------product A---------- */
.product-image-only {
  width: 100%;
  max-width: 600px; /* ปรับได้ตามต้องการ */
  margin: 20px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-image-only img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 3 คอลัมน์ต่อแถว */
  gap: 24px; /* ระยะห่างระหว่างภาพ */
  max-width: 1200px; /* กำหนดความกว้างสูงสุด */
  margin: 40px auto; /* จัดกึ่งกลางหน้า */
  padding: 0 20px;
}
.product-image-only {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-image-only img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* ----------truck-hero--------- */
:root{
  --hero-bg: #0D6EFD;
  --hero-accent: #eeeeee;
  --hero-cta: #fffdf6;
  --hero-cta-text: #0d47a1;
}

.truck-hero{
  position: relative;
  color:#fff;
  background: var(--hero-bg) url("images/hero-city-bg.jpg") center/cover no-repeat;
  overflow: hidden;
  padding: clamp(40px, 6vw, 80px) 0;
}
.truck-hero__overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(5,33,45,.55), #0D6EFD);
}

.truck-hero__grid{
  position:relative; z-index:1;
  display:grid; grid-template-columns: 1.2fr .8fr; gap: 24px;
  align-items: end;
}
@media (max-width: 980px){
  .truck-hero__grid{ grid-template-columns: 1fr; align-items: start; gap:12px; }
}

.truck-hero__left{ padding-right: 8px; }
.truck-hero__kicker{
  margin:0 0 8px; font-weight:700; letter-spacing:.2px; opacity:.95;
  font-size:14px;
}
.truck-hero__title{
  margin:0 0 12px; line-height:1.1; font-size: clamp(28px, 5vw, 56px);
}
.truck-hero__title .accent{
  color: var(--hero-accent); position: relative;
}
.truck-hero__desc{ margin: 10px 0 18px; max-width: 54ch; opacity:.95; }

.truck-hero__cta{
  display:inline-flex; align-items:center; gap:10px;
  background:#fff;
  color: var(--hero-cta-text); font-weight: 700;
  padding: 12px 16px; border-radius: 999px;
  box-shadow: 0 14px 32px rgba(0,0,0,.16);
  border:1px solid rgba(16,24,40,.06);
  text-decoration:none;
  position:relative;
}
.truck-hero__cta:hover{ transform: translateY(-2px); }
.truck-hero__cta-icon{
  width:24px; height:24px; border-radius:999px; display:inline-grid; place-items:center;
  background: rgba(13,110,253,.16); font-size:14px; line-height:1;
}

.truck-hero__note{ margin:12px 0 18px; opacity:.85; }

.insurer-logos{
  display:grid; grid-template-columns: repeat(8, minmax(0,1fr));
  gap:10px; margin-top: 18px;
}
@media (max-width: 980px){
  .insurer-logos{ grid-template-columns: repeat(4, minmax(0,1fr)); }
}
.logo{
  background:#fff; border-radius:10px; padding:8px;
  display:grid; place-items:center; min-height:56px;
}
.logo img{ max-height:30px; max-width:100%; display:block; }

.truck-hero__right{ position:relative; min-height: 320px; }
@media (max-width:980px){ .truck-hero__right{ min-height:260px; } }

.hero-scene{
  position:absolute; bottom:0;
  left: clamp(-80px, -6vw, -24px);
  width: clamp(360px, 52vw, 620px);
  transform: none;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.35));
}
.hero-person{
  position:absolute; right:0; bottom:0;
  width: 52%; max-width: 340px;
  filter: drop-shadow(0 18px 38px rgba(0,0,0,.45));
}
.bubble{
  position:absolute; top:8%; right:18%;
  background:#fff; color:#d10f3a; font-weight:800;
  padding:6px 10px; border-radius:999px;
  box-shadow:0 6px 14px rgba(0,0,0,.15);
}

/* 📱 iPad / Tablet PORTRAIT — ให้เหมือนเดสก์ท็อป (ตัวอักษรซ้าย รูปขวา) */
@media (min-width:744px) and (max-width:980px) and (orientation:portrait){
  /* กลับมาเป็น 2 คอลัมน์ */
  .truck-hero__grid{
    grid-template-columns: 1.1fr .9fr;
    align-items: end;
    gap: 20px;
  }

  .truck-hero__left{ text-align: left; padding-right: 10px; }
  .truck-hero__right{ min-height: 300px; }

  /* จัดรูปให้อยู่ขวา บรรทัดเดียวกับข้อความ */
  .hero-scene{
    position: absolute;
    bottom: -6px;
    left: auto;               /* ยกเลิกการกึ่งกลาง */
    right: clamp(-12px, -2vw, 0px);
    width: clamp(380px, 46vw, 560px);
    transform: none;
  }

  /* ถ้าไม่ต้องการคน ให้ซ่อนไว้ */
  .hero-person{ display: none; }

  /* ปุ่มให้ขนาดพอดี ไม่เต็มความกว้าง */
  .truck-hero__cta{ width: auto; justify-content: flex-start; }
}


/* 📱 มือถือ */
@media (max-width: 600px){
  .truck-hero{ padding: 24px 0 8px; }
  .truck-hero__title{ font-size: clamp(22px, 6.4vw, 30px); }
  .truck-hero__cta{ width: max(260px, 78%); justify-content:center; margin-top:8px; }
  .truck-hero__note{ margin-top:10px; }

  .hero-person{ display:none; }

  /* ขยับภาพขึ้น */
  .hero-scene{
    left:50%;
    bottom: clamp(28px, 12vw, 64px);  /* เดิม -4px  → เลื่อนขึ้น */
    width:min(420px, 92%);
    transform: translateX(-50%);
    filter: drop-shadow(0 16px 34px rgba(0,0,0,.24));
  }

  .insurer-logos{ grid-template-columns: repeat(3, 1fr); gap:8px; }
  .logo{ min-height:48px; }
  .bubble{ top:8px; right:12px; font-size:12px; padding:4px 8px; }
}

/* 🧭 แท็บเล็ตแนวนอน (iPad ฯลฯ) ให้พอดี ไม่ล้น */
@media (min-width:900px) and (max-width:1024px) and (orientation:landscape){
  .truck-hero{ padding: 34px 0 18px; }
  .truck-hero__grid{ grid-template-columns: 1.1fr .9fr; gap: 20px; align-items:end; }
  .truck-hero__title{ font-size: clamp(26px, 4.2vw, 44px); }
  .truck-hero__right{ min-height: 280px; }
  .hero-scene{
    position:absolute; left: clamp(-28px, -3vw, -16px); bottom:-6px;
    width: clamp(420px, 48vw, 560px);
    transform: none;
  }
}


:root{
  /* ปรับเลขนี้ได้ตามใจ – กว้างสุดของภาพบนเดสก์ท็อป */
  --hero-media-max: 800px;
}

/* กล่องครอบภาพ */
.hero-media{
  width: clamp(320px, 82vw, var(--hero-media-max));  /* ใกล้เคียงภาพตัวอย่าง */
  margin: 22px auto;
  padding: clamp(8px, 1.6vw, 16px);
  border-radius: 18px;
}

/* ตัวรูป */
.hero-media__img{
  width: 100%;
  aspect-ratio: 16 / 9;                /* ให้ทรง 16:9 สม่ำเสมอ */
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* มือถือ – ขยายเต็มที่แต่ไม่หลุดขอบ */
@media (max-width: 600px){
  .hero-media{
    width: min(94vw, 560px);
    padding: 12px;
  }
}


/* ===== Health posters (ใหม่) ===== */
.health-posters{ padding:32px 20px; background:#f7f9fc; }

.poster-grid{
  max-width:1200px; margin:0 auto;
  display:grid; grid-template-columns: repeat(2,minmax(0,1fr));
  column-gap:1px;         
  row-gap:16px;
  align-items:start;
  justify-items:stretch;   
}
@media (max-width:768px){
  .poster-grid{ grid-template-columns:1fr; }
}

.poster-card{
  border:none;
  box-shadow:none;
  background:transparent;
  padding:0;
  border-radius:0;
  max-width:560px;
}

.poster-img{
  width: min(88%, 520px);
  margin-inline: auto;
  display:block;
  border-radius:12px;
  aspect-ratio: 1 / 1.414;
  object-fit: contain;
}

@media (max-width:768px){
  .poster-img{ width: min(92%, 420px); }
}
