@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@400;500;600;700&display=swap');
/* เลื่อนนุ่ม ๆ ทุกลิงก์ #hash */
html{ scroll-behavior:smooth; }

/* ชดเชยความสูง header เวลาเลื่อนไปยัง anchor */
:root{ --header-h:72px; }           /* ปรับตามจริง */
section[id], [data-anchor]{
  scroll-margin-top: calc(var(--header-h) + 12px);
}


:root{
 /* --blue:#0A4AA6;*/
  --light-blue:#2e5e8c;
  --mid-blue:#2e5e8c;
  --gold:#C9A14A;
  --text:#1a2a3a;
  --muted:#6b7a90;
  --bg:#ffffff;
  --shadow:0 6px 20px rgba(10,74,166,.12);
  --radius:16px;
  --container:1200px;

 --page-container: 1200px;   /* max-width ของคอนเทนต์หลัก */
  --page-gutter: 24px;        /* ระยะขอบซ้ายขวา */
  --header-h: 72px;           /* สูงแถบเมนู/โลโก้ */
  --blue: #2e5e8c;

  /* เดิม ~34vh -> เพิ่มเป็น 44vh (ยิ่งมาก = ยิ่งต่ำ) */
  --caption-shift: 44vh;
  --caption-align: 54%;      /* 52% = ชิดซ้ายตาม container, 54–56% = ขยับเข้าไปทางขวา */

   --font-sans: "Prompt", "Noto Sans Thai", system-ui, -apple-system,
               "Segoe UI", Roboto, Arial, sans-serif;


   --cap-offset-x: 0px;        /* ค่านี้จะถูกอัปเดตด้วย JS */
  --cap-offset-nudge: 0px;    /* เผื่อจูนเพิ่ม/ลดได้เล็กน้อย */

   --about-blue:#254e9d;
  --about-gold:#8e7d2f; /* ตามดีไซน์ */

  --ph-w: 286px;           /* ขนาดการ์ดรูป */
  --ph-h: 348px;
  --ph-b-left: 200px;      /* ระยะซ้ายของรูปที่ 2 (ซ้อนนิดเดียว) */
  --ph-b-top: 95px;        /* ยกขึ้นด้านบนเล็กน้อย */

  --benefit-blue:#254e9d; 
  --benefit-gold:#8e7d2f;



  --card:#ffffff;
  --muted:#333333;
  --line:#e7eefc;
  --accent:#0a4aa6;
  --btn:#00c300;


   --brand:#2e5e8c;
  --ink:#0f172a;
  --muted:#6b7a90;
  --line:#e6ebf2;
  --white:#fff;
  --shadow:0 10px 30px rgba(18,38,63,.08);



}
*{box-sizing:border-box}
html, body{ margin:0; }
body{
  font-family: var(--font-sans);
  background:#fff; color:var(--text); line-height:1.6;
}
/* ถ้าต้องการน้ำหนักตัวหนังสือให้ดูแน่นขึ้นสำหรับหัวข้อ/ปุ่ม */
/* ขนาด h1 ทั่วเว็บ (responsive) */
h1{
  font-size: clamp(28px, 3.0vw + 0.5rem, 56px);
  line-height: 1.15;
  font-weight: 800;  /* หนาแบบหัวเรื่อง */
}

h2 {
  color: var(--about-blue);
}

h3, .btn { font-weight: 700; }   /* ปรับตามดีไซน์ได้ */ 

a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:none}
.container{max-width:var(--container);margin:0 auto;padding:0 16px}
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 18px;border-radius:999px;background:var(--blue);color:#fff;border:0;cursor:pointer;box-shadow:var(--shadow);font-weight:700}
.btn.secondary{background:#fff;color:var(--blue);border:2px solid var(--blue)}

/* ปรับปุ่ม Ghost ให้เล็กลง */
.btn.ghost{
  background:transparent;
  color:var(--blue);
  border:1px solid #abbee9;
  padding:8px 12px;      /* เดิม ~12px 18px */
  font-size:14px;        /* เดิม ~16px */
  line-height:1.1;
  border-radius:16px;    /* มนกำลังดี */
  gap:6px;
  text-decoration:none;  /* กันเส้นใต้กรณีเป็น <a> */
}
.btn.ghost:hover{ text-decoration:none; }

/* มือถือ: ย่ออีกนิด */
@media (max-width:600px){
  .btn.ghost{ padding:7px 10px; font-size:13px; }
}


.btn:focus{outline:3px solid #b9d3ff}
.badge{display:inline-block;padding:4px 10px;border-radius:999px;background:#eff5ff;color:var(--blue);font-weight:600;font-size:12px}

/* Header */
/* ------- Topbar: ข้อความสีขาว, น้ำหนักปกติ, ลิงก์ไม่ขีดเส้น ------- */
.topbar{
  background: var(--light-blue);
  font-size: 11px;
  color: #fff;                 /* ตัวหนังสือสีขาว */
  border-bottom: 1px solid #dfe9ff;
}

.topbar .container{
  display:flex;justify-content:space-between;align-items:center;
  padding:6px 16px;
}

.topbar .left, 
.topbar .right{
  display:flex;align-items:center;gap:14px;
}

/* ลิงก์ใน topbar: สีขาว, ไม่หนา, ไม่ขีดเส้นแม้ hover/focus */
.topbar a{
  color:#fff !important;
  font-weight:400;            /* ไม่หนา */
  text-decoration:none !important;
}
.topbar a:hover,
.topbar a:focus{
  text-decoration:none !important;
  opacity:.9;                 /* feedback เบา ๆ แทนเส้นใต้ */
}

/* เส้น | ให้เป็นสีขาวอ่อน */
.topbar .left > span,
.topbar .right > span{
  color:rgba(255,255,255,.9);
}

/* ป้าย “สายด่วน” ให้ยังอ่านง่ายบนพื้นหลังฟ้าอ่อน */
.topbar .badge{
  background: rgba(255,255,255,.18);
  color:#fff;
  font-weight:400;
}

/* ลิงก์โทรศัพท์ใน topbar: จัดไอคอนและตัวเลขให้กึ่งกลางแนวตั้ง */
.topbar a[href^="tel:"],
.topbar .phone-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;                 /* ระยะห่างไอคอนกับตัวเลข */
  color: #fff;              /* ใช้สีขาวตาม topbar */
  font-weight: 400;         /* ไม่หนา */
  text-decoration: none;    /* ไม่ขีดเส้นใต้ */
  line-height: 1;
}

/* ขนาดไอคอนให้สัมพันธ์กับตัวหนังสือ */
.topbar a[href^="tel:"] svg,
.topbar .phone-link svg{
  width: 12px;              /* ปรับได้ 14–18px ตามชอบ */
  height: 12px;
  display: block;
  flex: 0 0 auto;
}

/* ให้สีของเส้น SVG ตามสีตัวอักษร (ที่นี่คือสีขาว) */
.topbar a[href^="tel:"] .st0,
.topbar .phone-link .st0{
  fill: currentColor !important;
}



header{position:sticky;top:0;z-index:1000;background:#fff;border-bottom:1px solid #edf3ff}
.nav{display:flex;align-items:center;gap:16px;height:64px}
.nav .logo{display:flex;align-items:center;gap:12px}
.nav .logo img{height:45px;width:auto}
.nav ul{display:flex;gap:18px;list-style:none;margin:0;padding:0}
.nav a{font-weight:700;color:#224}

.nav .line{margin-left:auto;font-weight:800;color:var(--blue)}
/* ปุ่ม LINE เขียว */
.btn-line{
  background:#d4b24c;
  color:#fff;
  border:0;
  padding:10px 16px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  text-decoration:none;
  box-shadow:var(--shadow);
  line-height:1;
}


.btn-line:hover{ filter:brightness(0.95); text-decoration:none; }
.btn-line:active{ transform:translateY(1px); }

/* ขนาดไอคอน */
.btn-line svg{ width:22px; height:22px; display:block; }

/* บังคับสีตัวอักษรปุ่ม LINE ให้เป็นขาว */
.btn-line,
.btn-line:link,
.btn-line:visited { color:#fff; text-decoration:none; }

.btn-line span { color:#fff !important; 
  font-weight: 500 !important;   /* 500 = medium; ถ้าอยากบางกว่านี้ใช้ 400 */
  }   /* กันเผื่อมีสไตล์ global ของ <a> ทับ */
.btn-line:hover { text-decoration:none; }


/* กันเส้นใต้เวลาโฮเวอร์ */
.btn-line,
.btn-line:hover {
  text-decoration: none;
}
/* จัดตำแหน่งในแถบเมนูให้ชิดขวา */
.nav .line{ margin-left:auto; display:flex; align-items:center; }

/* ย่อบนหน้าจอเล็ก */
@media (max-width:860px){
  .btn-line{ padding:9px 14px; font-size:14px; }
  .btn-line svg{ width:20px; height:20px; }
}



.btn-line2{
  background:#2e5e8c;
  color:#fff;
  border:0;
  padding:10px 16px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  text-decoration:none;
  box-shadow:var(--shadow);
  line-height:1;
}

.btn-line2:hover{ filter:brightness(0.95); text-decoration:none; }
.btn-line2:active{ transform:translateY(1px); }

/* ขนาดไอคอน */
.btn-line2 svg{ width:22px; height:22px; display:block; }

/* บังคับสีตัวอักษรปุ่ม LINE ให้เป็นขาว */
.btn-line2,
.btn-line2:link,
.btn-line2:visited { color:#fff; text-decoration:none; }

.btn-line2 span { color:#fff !important; 
  font-weight: 500 !important;   /* 500 = medium; ถ้าอยากบางกว่านี้ใช้ 400 */
  }   /* กันเผื่อมีสไตล์ global ของ <a> ทับ */
.btn-line2:hover { text-decoration:none; }


/* กันเส้นใต้เวลาโฮเวอร์ */
.btn-line2,
.btn-line2:hover {
  text-decoration: none;
}
/* จัดตำแหน่งในแถบเมนูให้ชิดขวา */
.nav .line2{ margin-left:auto; display:flex; align-items:center; }

/* ย่อบนหน้าจอเล็ก */
@media (max-width:860px){
  .btn-line2{ padding:9px 14px; font-size:14px; }
  .btn-line2 svg{ width:20px; height:20px; }
}



.nav .lang a{font-weight:700}
.nav .menu-toggle{display:none}
@media (max-width:860px){
  .nav ul{display:none;position:absolute;top:64px;left:0;right:0;background:#fff;padding:16px;border-bottom:1px solid #edf3ff}
  .nav ul.open{display:block}
  .nav .menu-toggle{display:block;margin-left:auto}
}
/* ให้แถบ Topbar และ Header พื้นหลังเต็มจอเสมอ */
.topbar, header{
  width: 100vw;
  margin-left: calc(50% - 50vw);   /* full-bleed background */
  margin-right: calc(50% - 50vw);
}

/* คอนเทนต์ด้านในยังคุมความกว้างตามขนาดจอ */
.container{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;      /* กั๊กขอบซ้ายขวาตามจอ */
}

/* ความสูง header คุมด้วยตัวแปรเดิม */
header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #edf3ff;
}

/* เมนูปรับตามขนาดจอ (มีแฮมเบอร์เกอร์เมื่อจอแคบ) */
.nav{
  display:flex; align-items:center; gap:16px; height:64px;
}
@media (max-width: 860px){
  .nav ul{display:none; position:absolute; top:64px; left:0; right:0;
          background:#fff; padding:16px; border-bottom:1px solid #edf3ff;}
  .nav ul.open{display:block}
  .nav .menu-toggle{display:block; margin-left:auto}
}


/* ซ่อนปุ่ม LINE เมื่อจอกว้าง ≤ 860px */
@media (max-width: 860px){
  header .nav .line { 
    display: none !important;
  }
}

/* ===== Hero Slider (Full-bleed) ===== */
/* ==== HERO (full-bleed) ==== */
.hero{
  background: linear-gradient(180deg,#f6faff,#e9f1ff);
  padding: 0;                 /* ไม่มีพื้นที่ว่างใต้แบนเนอร์ */
}

/* ตัวสไลด์เต็มหน้าจอ ซ้าย-ขวา */
.hero .slider{
  width:100vw;
  margin-left:calc(50% - 50vw);
  position:relative;
  overflow:hidden;
  /* สูงแบบยืดหยุ่น: อ้างอิง 1920x945 และไม่สูงเกินจอ */
  height:clamp(520px, 49.22vw, 945px);
  max-height:95svh;
}

/* Tablet 16:9 */
@media (max-width:1024px){
  .hero .slider{ height:auto; aspect-ratio:16/9; max-height:95svh; }
}

/* Mobile 9:16 */
@media (max-width:768px){
  .hero .slider{ aspect-ratio:9/16; max-height:100svh; }
}

/* เลเยอร์สไลด์ + fade */
.slide{ position:absolute; inset:0; opacity:0; visibility:hidden; transition:opacity .6s ease, visibility .6s ease; }
.slide.active{ opacity:1; visibility:visible; }

/* สื่อครอบเต็มกรอบเสมอ */
.slide picture, .slide img, .slide video{
  width:100%; height:100%; object-fit:cover; display:block;
}

/* กล่องคำบรรยาย (caption) */

.slide .caption{
  position:absolute;
  /* เลื่อนลงกว่าของเดิม: max 620px */
  top: clamp(calc(var(--header-h) + 80px), var(--caption-shift), 620px);

  /* ชิดซ้ายตามแนว container แต่ขยับไปทางขวาตาม --caption-align */
  left: max(var(--page-gutter), calc(var(--caption-align) - var(--page-container)/2));

  max-width: 680px;
  background: rgba(255,255,255,.85);
  padding: 20px;
  border-radius: 16px;
  backdrop-filter: saturate(140%) blur(2px);
}

/* ===== Centered Caption (no card background) ===== */
.slide .caption{
  position: absolute;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  width: min(90vw, 800px);
  max-width: 90vw;
  text-align: center;

  /* ยกเลิกสไตล์การ์ดเดิม */
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* ตัวอักษรสีขาว + เงาอ่านง่ายบนภาพ */
.slide .caption h1{
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.slide .caption p{
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
  margin-bottom: 16px;
}

/* ปุ่มให้อยู่กึ่งกลาง และเวอร์ชัน secondary บนพื้นภาพเข้ม */
.slide .caption .cta{
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.slide .caption .btn.secondary{
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.95);
}

/* มือถือ: ปรับให้อ่านง่ายขึ้นนิดหน่อย */
@media (max-width: 768px){
  .slide .caption{
    width: min(92vw, 640px);
    transform: translate(-50%, -50%); /* ยังอยู่กลาง */
  }
}


.slide h1{ margin:0 0 12px; color:var(--blue); font-weight:800; }
.slide p{  margin:0 0 16px; }

/* จุดบอกตำแหน่ง */
.slider .dots{
  position:absolute; left:0; right:0; bottom:12px;
  display:flex; gap:10px; justify-content:center; z-index:5;
  align-items:center;
}

.slider .dots button{
  inline-size:12px;               /* = width */
  block-size:12px;                /* = height */
  aspect-ratio:1 / 1;             /* บังคับเป็นสี่เหลี่ยมจัตุรัสเสมอ */
  display:block;
  padding:0;
  border:0;
  border-radius:999px;            /* ให้กลมพอดี */
  background:#bcd0ff;
  cursor:pointer;
  -webkit-appearance:none;
  appearance:none;
  transform-origin:center center; /* กันการ scale เพี้ยนเป็นวงรี */
  transition:transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.slider .dots button.active{
  background:var(--blue);
  transform:scale(1.15);          /* จะยังคงกลมเพราะ aspect-ratio = 1 */
  box-shadow:0 0 0 3px rgba(27,77,215,.12);
}



/* Section */
.section{padding:48px 0}
.section.bg{background:linear-gradient(180deg,#ffffff, #f3f7ff)}
h2{font-size:28px;margin:0 0 10px 0;color:#0A2c6b}
.sub{color:var(--muted);margin:0 0 24px 0}



/* พื้นหลังไล่สีส่วนนี้ */  
.section.about-split{
  padding: 96px 0 72px;                         /* เว้นมากขึ้น */
   scroll-margin-top: calc(var(--header-h) + 16px); /* เวลา anchor จะไม่ถูกหัวเมนูบัง */
  background:linear-gradient(180deg,#fff,#f3f7ff)
}
/* หน้าจอกลาง-เล็ก ลดระยะลงเล็กน้อยให้บาลานซ์ */
@media (max-width: 980px){
  .section.about-split{ padding-top: 80px; }
}
@media (max-width: 600px){
  .section.about-split{ padding-top: 64px; }
}

/* วางสองคอลัมน์ตามภาพ */
.about-wrap{
  display:grid;
  grid-template-columns: 520px 1fr;
  gap:42px;
  align-items:center;
}


/* ----- ซ้าย: รูปซ้อน + การ์ด ----- */
.about-media .stack{
  position:relative;
  min-height:420px;
}
.ph{
  /*width:286px; height:348px; */

  width:var(--ph-w);
  height:var(--ph-h);
  overflow:hidden;
  border:2px solid #cfe0ff;
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow);
}
.ph img{width:100%;height:100%;object-fit:cover;display:block}

/* จัดวางซ้อน */
/*.ph-a{position:absolute; left:0; top:0; z-index:2}
.ph-b{position:absolute; left:170px; top:90px; z-index:1}*/


/* รูปที่ 1 */
.ph-a{
  position:absolute;
  left:0; 
  top:0;
  z-index:2;
}
/* รูปที่ 2 – ซ้อนน้อยลงและยกขึ้น + ให้อยู่ชั้นบน */
.ph-b{
  position:absolute;
  left:var(--ph-b-left);
  top:var(--ph-b-top);
  z-index:3;               /* เหนือรูปที่ 1 เล็กน้อย */
}

/* มือถือ/แท็บเล็ต: ลดขนาดและระยะให้พอดีเฟรม */
@media (max-width:980px){
  .about-wrap{ grid-template-columns:1fr; gap:28px; }
  .about-media .stack{ min-height:390px; }

  :root{
    --ph-w: 260px;
    --ph-h: 320px;
    --ph-b-left: 180px;   /* ซ้อนนิดเดียวบนจอแคบ */
    --ph-b-top: 24px;
  }
}

@media (max-width:600px){
  .about-media .stack{ min-height:340px; }
  :root{
    --ph-w: 230px;
    --ph-h: 290px;
    --ph-b-left: 150px;   /* ไม่ชนขอบจอ */
    --ph-b-top: 20px;
  }
}


/* ไอคอนเล็กด้านบน */
.mini-icons{
  position:absolute;
  top:30px;
  right:24px;              /* เดิม 8px → ขยับซ้ายเข้ามา */
  display:flex;
  gap:10px;
  z-index:3;
  color:var(--about-blue);
}
.mini-icons svg{width:32px;height:32px;fill:currentColor;opacity:.9}

/* จอกว้าง ขยับซ้ายเพิ่มอีกนิด */
@media (min-width:1280px){
  .mini-icons{ right:32px; }
}

/* การ์ดตัวเลข 15 แห่ง 12 จังหวัด */
.stat-card{
  position:absolute;
  left:12px;
  bottom:-60px;                 /* เดิม -18px → เลื่อนลงอีก */
  z-index:5;
  background:#fff;
  border:1px solid #e5eeff;
  border-radius:16px;
  padding:14px 16px;
  box-shadow:var(--shadow);
  text-align:center;
  min-width:180px;              /* กว้างขึ้นเล็กน้อย */
}

.stat-card .big{
  font-size:48px;
  line-height:1;
  font-weight:900;
  color:var(--about-gold, #8e7d2f);   /* ทองตามดีไซน์ */
}
.stat-card .small{
  font-size:14px;
  color:#3a4863;
}

/* แท็บเล็ต: ขยับขึ้นนิดให้สมดุล */
@media (max-width:980px){
  .stat-card{ bottom:-26px; }
}

/* มือถือ: ไม่ให้ล้นขอบ */
@media (max-width:600px){
  .stat-card{
    bottom:-16px;
    left:6px;
    min-width:160px;
  }
}


/* ----- ขวา: เนื้อหา ----- */
.about-copy .eyebrow{
  color:var(--about-gold);
  font-weight:700;
  font-size:14px;
  letter-spacing:.3px;
  margin-bottom:6px;
}
.about-title{
  color:var(--about-blue);
  font-weight:800;
  font-size:32px; /* ปรับได้ 30–38 ตามต้องการ */
  margin:0 0 10px 0;
}
.about-copy p{margin:10px 0;color:#2a3550}
.about-copy b{font-weight:700}

/* จุดบูลเล็ตพร้อมไอคอน */
.about-points{list-style:none; margin:14px 0 6px 0; padding:0; display:grid; gap:12px}
.about-points li{display:grid; grid-template-columns:28px 1fr; align-items:start; gap:10px}
.about-points .ico{
  width:28px; height:28px; border-radius:8px; display:grid; place-items:center;
  background:#eaf2ff; color:var(--about-blue); font-weight:800;
}

/* ปุ่ม CTA ตามสี #254e9d */
.about-cta{
  background:var(--about-blue); color:#fff; border:0;
}
.about-cta:hover{filter:brightness(.95); text-decoration:none}

/* ตอบสนองหน้าจอเล็ก */
@media (max-width:980px){
  .about-wrap{grid-template-columns:1fr; gap:28px}
  .about-media .stack{min-height:390px}
  .ph-a{left:0; top:0}
  .ph-b{left:140px; top:80px}
}
@media (max-width:600px){
  .ph{width:240px; height:300px}
  .ph-b{left:120px; top:70px}
  .stat-card{left:6px; bottom:-14px}
  .about-title{font-size:26px}
}


/* About teaser */
.about-grid{display:grid;grid-template-columns:286px 1fr 286px;gap:20px;align-items:start}
.about-card{border:2px solid #cfe0ff;border-radius:14px;height:348px;background:#fff;box-shadow:var(--shadow)}
.about-text{padding:8px 8px 8px 12px}
.about-text p{margin:10px 0}
.bignum{font-size:64px;color:var(--gold);font-weight:900;line-height:1}
@media(max-width:900px){.about-grid{grid-template-columns:1fr;}.about-card{height:220px}}

/* Benefits overview */
/* หัวข้อ + ป้าย */
/* ชิดด้านบนและจัดกลาง */
.benefits-head{
  margin-top: 0;
  padding-top: 8px;   /* เดิมอาจมากเกินไป */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 6px;       /* ระยะระหว่าง h2 กับพารากราฟ */

   /* หัวข้ออยู่กลางแล้ว – เพิ่มระยะห่างด้านล่าง */
  margin-bottom: clamp(16px, 2.6vw, 36px);
}

/* ตัด margin ที่ h2/p ทิ้งให้ชิด */
.benefits-head h2{
  margin: 0 0 4px 0;
  line-height: 1.15;
}
.benefits-head p{
  margin: 0;
}

/* ถ้าบล็อกนี้อยู่ใน section ที่ใช้คลาส .section ให้ลด padding-top ของ section ด้วย */
.section.benefits,
section.benefits{
  padding-top: 65px;  /* ปรับเพิ่ม/ลดได้ตามต้องการ */
}


/* === กล่องการ์ดให้แสดงกึ่งกลางภาพ === */
/* ใช้กริดของ .benefits-overview ช่วยจัดกลาง */
.benefits-overview{ 
  display:grid; 
  place-items:center;
  margin-bottom: 36px;
    margin-top: 0;      /* ถ้ามี margin-top เดิม ให้ทับตรงนี้ */

 }

.tag-pill{
  display:inline-block; background:var(--benefit-blue); color:#fff;
  padding:6px 14px; border-radius:12px; margin:0 0 14px 0; font-weight:700;
}

/* กรอบภาพพื้นหลัง “อยู่ในคอนเทนต์” ไม่เต็มจอ */
.benefits-overview{
  position:relative; border-radius:20px; overflow:hidden; min-height:520px;
  box-shadow:var(--shadow);
   background-image:url('../img/All_img-06.webp'); /* ขยับขึ้นมาหนึ่งระดับ */
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
}

/* กลุ่มการ์ดชิดซ้ายภาพ */
.overlay-left{
  position:absolute; left:24px; top:50%; transform:translateY(-50%);
  display:flex; flex-direction:column; gap:8px; max-width:min(520px, 48%);
}

/* การ์ดจัด 2×2 */
.benefit-cards{
  display:grid; grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}

/* สไตล์การ์ด */
.b-card{
  /*display:flex; flex-direction:column; gap:6px;*/
  padding:14px 14px; border-radius:16px;
  border:1px solid #dbe8ff;
  background:rgba(255,255,255,.65);
  backdrop-filter:blur(4px) saturate(130%);
   display:flex;
  flex-direction:column;
  justify-content:center;   /* กลางแนวตั้ง */
  align-items:center;       /* กลางแนวนอน */
  text-align:center;        /* ข้อความกึ่งกลาง */
  gap:8px;                  /* ระยะห่างระหว่างไอคอนกับข้อความ */

}
/* ไอคอนให้วางกลางพอดีด้วย */
.b-card .icon-wrap{
  display:grid;
  place-items:center;       /* กึ่งกลางทั้งสองแกน */
  margin:0;                 /* กัน margin ซ้าย/ขวา */
}

/* ให้บรรทัดย่อยเรียงแนวตั้งสวย ๆ */
.b-card .b-text small{
  display:block;
  margin-top:2px;
}

/* ไอคอนภายในการ์ด 34px */
.icon-wrap{
  width:60px; height:60px; border-radius:16px;
  display:grid; place-items:center;
  background:rgba(255,255,255,.7);
  border:1px solid rgba(207,224,255,.9); color:var(--benefit-blue);
}
.icon-wrap svg{ width:34px; height:34px; }

.b-text strong{ color:var(--benefit-blue); font-weight:700; line-height:1.2; }
.b-text small{ display:block; font-size:13px; opacity:.9; }

/* ข้อความหมายเหตุใต้การ์ด */
.benefit-note{
  margin:2px 4px 0; font-size:14px; color:#213255;
  background:rgba(255,255,255,.75); padding:6px 10px;
  border:1px solid #e5eeff; border-radius:10px; display:inline-block;
}

/* Responsive: แท็บเล็ต */
@media (max-width:1024px){
  .benefits-overview{
    background-position:center; min-height:390px;
  }
  .overlay-left{ max-width:55%; left:20px; }
}

/* มือถือ: ปรับให้พอดีภาพและคอนเทนต์ */
@media (max-width:768px){
  .benefits-overview{
    min-height:520px; /* พอดีกับภาพตั้ง */
    background-position:center;
  }
  .overlay-left{
    position:relative; left:auto; top:auto; transform:none;
    max-width:100%; padding:16px;
  }
  .benefit-cards{ grid-template-columns:repeat(2,1fr); }
   .benefits .benefits-head{ margin-bottom: 20px; }
}


/* จอเล็กมาก: เรียงเดี่ยว */
@media (max-width:420px){
  .benefit-cards{ grid-template-columns:1fr; }
}

/* Cards */
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.card{border:1px solid #e5eeff;border-radius:16px;overflow:hidden;background:#fff;box-shadow:var(--shadow)}
.card img{width:100%;height:auto;display:block}
.card .body{padding:12px}
.card h3{margin:0 0 8px 0;font-size:18px;color:#0a2d6b}
.card .meta{font-size:12px;color:var(--muted);margin-bottom:6px}
.card .cta{margin-top:10px}

/* Filters nav */
.filters{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.select{padding:10px 14px;border-radius:12px;border:1px solid #d8e6ff;background:#fff}
.more{text-align:center;margin-top:16px}

/* Event grid */
.event-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
@media(max-width:1000px){.cards,.event-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:580px){.cards,.event-grid{grid-template-columns:1fr}}

/* Line join */
/* Section background + diagonal split */
.section.line-hero{
  position: relative;
  background:#f5f8ff;
  overflow: hidden;
}
.section.line-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:#abbee9;
  /* ครึ่งซ้ายเอียงตามภาพ */
  clip-path: polygon(0 0, 55% 0, 30% 100%, 0% 100%);
  z-index:0;
}

/* Layout */
.line-join{
  position: relative;
  z-index: 1;                 /* ให้อยู่เหนือพื้นหลังเอียง */
  display:grid;
  grid-template-columns: 480px 1fr; /* ซ้ายกว้างนิดหน่อย */
  gap:24px;
  align-items:center;
  padding: clamp(0px, 0vw, 0px) 0;


}

/* ซ้าย: รูปภาพวางซ้อนขึ้น */
.phone-mock{
  height: 100%;              /* กินความสูงของกริดทั้งหมด */
  display: flex;
  justify-content: center;
  align-items: flex-end;     /* ดันรูปชิดขอบล่าง */
}
.qr{ display:none; }          /* ไม่ใช้แล้ว */

.phone-figure.phone-figure{
  transform: none !important;
  display: block;
  max-width: 70%;   /* ลดขนาดเหลือ 70% ของคอลัมน์ */
  height: auto;
}

/* กันกรณีมี padding ด้านล่างจากภายนอก */
.section.line-hero,
.line-join { padding-bottom: 0 !important; }

/* ขวา: ข้อความ */
.copy{
  max-width: 640px;      /* จำกัดความกว้างไม่ให้ยืดเต็ม */
  width: 100%;
}

.copy h2{
  font-size: clamp(20px, 5vw, 28px);   /* ย่อหัวข้อ */
  line-height: 1.3;
  color:var(--about-blue); 
}

.copy .sub{
  font-size: clamp(14px, 4vw, 16px);   /* ย่อข้อความยาว */
  line-height: 1.6;
}

/* ปุ่ม LINE */
.btn-line{
  background:#d4b24c;
  color:#fff;
  border-radius: 999px;
  padding: .9rem 1.2rem;
  font-weight:700;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
 /* box-shadow:0 8px 20px rgba(0,195,0,.25);
  transition:transform .08s ease, box-shadow .2s ease;*/
}
/*.btn-line:hover{ transform: translateY(-1px); box-shadow:0 12px 26px rgba(0,195,0,.32); }*/
/*.btn-line:active{ transform:none; box-shadow:0 6px 14px rgba(0,195,0,.24); }*/

/* Responsive */
@media (max-width: 900px){
  .line-join{ grid-template-columns:1fr; gap:20px; }
  .section.line-hero::before{
    /* พื้นหลังเอียงให้เหมาะกับแนวตั้ง */
    clip-path: polygon(0 0, 100% 0, 70% 35%, 0% 55%);
  }
  .phone-figure{ max-width: 520px; transform: translateY(-3%); }
 .copy{
    max-width: 100%;
    padding: 0 16px 32px;   /* เพิ่ม padding ด้านล่าง */
    text-align: center;
  }
  .copy h2{
    font-size: 20px;
  }
  .copy .sub{
    font-size: 14px;
      color: #333333;

  }
  .copy .cta{
    margin-top: 16px;
    margin-bottom: 40px;    /* เว้นห่างปุ่มกับ footer */
    display: flex;
    justify-content: center;
  }
}







/* Room finder */
.finder{display:grid;grid-template-columns:260px 1fr;gap:24px}
.finder .panel{border:1px solid #e5eeff;border-radius:16px;padding:14px}
.gallery{border:1px solid #e5eeff;border-radius:16px;padding:10px}
.gallery img{width:100%;height:auto;border-radius:10px}
.list{margin-top:12px}
.list .row{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:4px 0;border-bottom:1px dashed #eef4ff;font-size:14px}
.features{display:grid;grid-template-columns:repeat(4, minmax(0,1fr));gap:8px;margin-top:8px}
.feature{display:flex;align-items:center;gap:8px;font-size:13px;color:#124}
.feature .dot{width:24px;height:24px;border-radius:6px;background:#eaf2ff;display:grid;place-items:center}





/* ===== Care Card layout ===== */
.care-card .care-grid{
  display:grid;
  grid-template-columns: minmax(0, 640px) 1fr;
  gap:24px;
  align-items:start;
}

/* มือถือ/แท็บเล็ต: ซ้ายอยู่บน ขวาอยู่ล่าง */
@media (max-width: 980px){
  .care-card .care-grid{ grid-template-columns: 1fr; }
}

/* ===== Care Card - responsive image ===== */
#care-card .care-left { width: 100%; }

#care-card .cc-figure{
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #f6faff;         /* กันกรณีรูปยังไม่โหลด */
}

/* เดสก์ท็อป: ให้กว้างสุดเท่าคอลัมน์และรักษาสัดส่วน */
#care-card .cc-figure img{
  display: block;
  width: 100%;
  height: auto;                 /* รักษาสัดส่วนตามรูป */
}

/* มือถือ/แท็บเล็ตเล็ก: เต็มความกว้างแบบพอดีจอ */
@media (max-width: 900px){
  /* สลับเลย์เอาต์เป็นบน-ล่างอยู่แล้วจาก grid ที่มี */
  #care-card .cc-figure{
    width: 100%;
    max-width: none;
    margin: 0 auto 16px;        /* เว้นระยะจากเนื้อหาถัดไปเล็กน้อย */
    aspect-ratio: 649 / 447;    /* อ้างอิงสัดส่วนรูปต้นฉบับ */
  }
  #care-card .cc-figure img{
    width: 100%;
    height: 100%;
    object-fit: cover;          /* เติมกรอบให้เต็ม ถ้าสัดส่วนหน้าจอไม่เท่ากับรูป */
  }
}



/* ซ้าย: ภาพหลัก (ratio 649x447) */
.cc-figure{
  aspect-ratio: 649 / 447;
  border-radius:16px;
  overflow:hidden;
  box-shadow: var(--shadow);
  background:#f5f8ff;
}
.cc-figure img{ width:100%; height:100%; object-fit:cover; display:block; }

/* ===== Slider 1 การ์ด/สไลด์ ===== */
.cc-carousel{ margin-top:14px; }
.cc-slider{ position:relative; border-radius:16px; overflow:hidden; background:#fff; box-shadow:var(--shadow); padding:12px; }

.cc-slide{ display:none; }
.cc-slide.active{ display:block; }

/* Card ภายในสไลด์ */
/* ย่อรูป ให้ cc-body กว้างขึ้น */
.cc-card{
  display:grid;
  grid-template-columns: 320px 1fr;  /* เดิม 393px */
  gap:18px;
  align-items:start;
}
@media (max-width: 720px){
  .cc-card{ grid-template-columns: 1fr; }
}

/* สัดส่วนรูปเหมือนเดิม แต่กว้างลดลงตามคอลัมน์ */
.cc-thumb{
  width:100%;
  aspect-ratio: 393 / 242;
  object-fit:cover;
  border-radius:12px;
  display:block;
}


/* ทำให้ข้อความใน .meta เล็กลง */
.cc-body .meta {
  font-size: 10px;     /* หรือ 11px ถ้าอยากเล็กกว่านี้ */
  color: #333;         /* สีดำอมเทา อ่านง่าย */
  margin-bottom: 4px;  /* เว้นเล็กน้อยก่อน h3 */
}


/* เพิ่มพื้นที่เนื้อหา และอ่านสบายขึ้น */
.cc-body{ padding:10px 4px 12px; }
.cc-body h3{ margin:0 0 8px 0; font-size:18px; }
.cc-body .small{ 
  margin:10px 0 12px; 
   color: #000 !important;
}

/* ปุ่มเล็ก */
.btn.tiny{ padding:8px 12px; font-size:13px; border-radius:12px; }

/* ปุ่ม Prev/Next คงเดิม */
.cc-prev, .cc-next{
  position:absolute; top:50%; transform:translateY(-50%);
  width:36px; height:36px; border-radius:50%;
  border:1px solid #d8e6ff; background:#fff; box-shadow:var(--shadow);
  display:grid; place-items:center; cursor:pointer;
}
.cc-prev{ left:10px; }
.cc-next{ right:10px; }

/* จุดบ่งชี้: อยู่ใต้รูป (นอก .cc-slider) ห่างลงมานิดเดียว */
/* จุดบ่งชี้สไลด์ (Care Card) — กลม 100% */
.cc-dots1{
  margin-top:14px;
  display:flex;
  justify-content:center;
  gap:10px;
}

.cc-dots1 button{
  /* รีเซ็ตสไตล์ปุ่มให้ไม่บวม */
  padding:0;
  margin:0;
  border:2px solid #cfe0ff;
  background:#9bb7f8;
  -webkit-appearance:none;
  appearance:none;

  /* ทำให้เป็นวงกลมจริง ๆ */
  width:12px;              /* เส้นผ่านศูนย์กลาง */
  aspect-ratio:1 / 1;      /* กว้าง = สูง */
  border-radius:50%;
  box-sizing:border-box;

  /* สวยงาม */
  box-shadow:0 2px 6px rgba(0,0,0,.12);
  cursor:pointer;
  display:block;           /* กัน inline baseline ทำให้ดูเอียง */
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
}

.cc-dots1 button.active{
  background:var(--blue);
  border-color:var(--blue);
  transform:scale(1.12);
}

.cc-dots1 button:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(27,77,215,.25);
}



/* ขวา: หัวเรื่อง/ซับบาร์ */
.care-title{ margin:0 0 6px 0; color:#0A2c6b; font-size:28px; }
.care-subbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin:6px 0 10px 0;
}
.care-subbar .lead{ margin:0; font-weight:600; color:#1a2a3a; }
.care-link{ font-weight:700; color:var(--blue); white-space:nowrap; }
.care-link:hover{ text-decoration:underline; }

/* ระยะห่างส่วนนี้จากแบนเนอร์ให้พอดี */
.section.care-card{ padding-top: 56px; }   /* ปรับได้ 48–72 ตามต้องการ */




/* ===== Packages: header ===== */
.pkg-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:18px;
  margin-bottom:12px;
}
.pkg-head .pkg-all{
  color:#254e9d; font-weight:700; text-decoration:none;
}
.pkg-head .pkg-all:hover{ text-decoration:underline; }

/* ===== Filter bar (center) ===== */
.pkg-filterbar{
  display:flex; align-items:center; justify-content:center;
  gap:14px; flex-wrap:wrap; margin:10px auto 18px;
}
.pill{
  background:#eef3ff; color:#0a2c6b; border-radius:999px; padding:8px 14px; font-weight:700;
}
.pkg-tabs{
  display:flex; gap:6px; padding:6px; background:#ececec; border-radius:999px;
}
.pkg-tabs button{
  border:0; background:transparent; padding:10px 18px; border-radius:999px;
  font-weight:700; color:#4b5565; cursor:pointer;
}
.pkg-tabs button.active{
  background:#fff; color:#0a2c6b; box-shadow:0 2px 10px rgba(0,0,0,.08);
}
.pkg-hosp .select{ min-width:220px }

/* ===== Carousel layout ===== */
.pkg-carousel{ position:relative; }
.pkg-viewport{ overflow:hidden; }
.pkg-track{
  --gap:18px;
  display:flex; gap:var(--gap);
  transition:transform .45s ease;
  will-change:transform;
  padding-bottom:4px; /* กันเงาติดขอบ */
}

/* 4 ใบ/แถว บนเดสก์ท็อป — ปรับตามจอ */
.pkg-card{ 
  flex:0 0 calc((100% - var(--gap)*3)/4);
  border:1px solid #e6efff; border-radius:18px; overflow:hidden;
  background:#fff; box-shadow:0 10px 30px rgba(0,0,0,.06);
}
@media (max-width:1200px){ .pkg-card{ flex-basis:calc((100% - var(--gap)*2)/3); } }
@media (max-width:900px){  .pkg-card{ flex-basis:calc((100% - var(--gap))/2); } }
@media (max-width:560px){  .pkg-card{ flex-basis:100%; } }

/* ภาพกินเต็มกรอบด้านบนแบบแนวตั้ง */
.pkg-thumb{ position:relative; width:100%; height:440px; overflow:hidden; }
.pkg-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

/* ป้ายภาคมุมขวา */
.region-badge{
  position:absolute; right:12px; top:12px;
  background:rgba(255,255,255,.9); color:#254e9d; border:1px solid #cfe0ff;
  padding:6px 10px; border-radius:999px; font-weight:700; font-size:13px;
}

/* ตัวเนื้อหาการ์ด */
.pkg-body{ padding:14px 16px 16px; }
.pkg-meta{ font-size:13px; color:#6b7280; margin-bottom:6px; }
.pkg-title{ margin:0 0 12px; color:#0a2c6b; font-weight:800; font-size:22px; line-height:1.35; }
.pkg-cta{ display:flex; gap:8px; flex-wrap:wrap; }

.btn.tiny{ padding:8px 12px; border-radius:999px; font-size:14px; line-height:1; }
.btn.tiny.secondary{ background:#fff; color:#254e9d; border:2px solid #254e9d; }
.btn.tiny.line{ background:#19d119; color:#fff; border:0; }

/* ปุ่มเลื่อน */
.pkg-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:36px; height:36px; border-radius:50%; border:0; cursor:pointer;
  background:#fff; box-shadow:0 6px 16px rgba(0,0,0,.12);
}
.pkg-nav.prev{ left:-10px; } .pkg-nav.next{ right:-10px; }
.pkg-nav:disabled{ opacity:.4; cursor:default; }








/* Footer */
footer{background:#2e5e8c;color:#ddebff;margin-top:40px}
footer a{color:#fff}
.footer-top{padding:24px 0;border-bottom:1px solid rgba(255,255,255,.2)}
.footer-bottom{padding:18px 0;font-size:14px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.social{display:flex;gap:10px}
.social a{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.15)}
/* Utility */
.hidden{display:none!important}
.small{font-size:13px;color:var(--muted)}




/*แพ็กเกจ*/
/* ===== Layout basics ===== */
.section { padding: 28px 0 40px; }
.agent-container{
  max-width:none; /* ยกเลิกความกว้างคงที่ของ bootstrap */
  width:100%;
  margin:0;
  padding:0 15px; /* ถ้าต้องการระยะขอบด้านใน */
}


/* ===== Head ===== */
.packages-head{
  display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:16px
}
.packages-head h2{ margin:0 0 6px; font-size:28px; line-height:1.1; }
.packages-head .sub{ margin:0; color:#5b6470; font-size:15px }
.packages-head .head-link{
  text-decoration:none; font-weight:600; white-space:nowrap;
  border-bottom:1px solid #cfd6e4; padding-bottom:2px; color:#0d47a1;
}
.packages-head .head-link:hover{ border-color:#0d47a1 }

/* ===== Filters block ===== */
.filters-wrap{
  background:#f6f8fb; border:1px solid #e6ebf2; border-radius:12px;
  padding:14px; display:grid; grid-template-columns:auto 1fr; gap:12px; margin-bottom:18px
}
.filters-title{ font-weight:700; align-self:center; padding:4px 0 }
.filters{ display:flex; flex-wrap:wrap; align-items:center; gap:10px }
.filter-label{ font-size:14px; color:#475166 }
.select{
  appearance:none; border:1px solid #d9e2ef; background:#fff;
  padding:10px 14px; border-radius:10px; min-width:180px; font-size:14px;
  background-image: linear-gradient(45deg, transparent 50%, #8592a6 50%),
                    linear-gradient(135deg, #8592a6 50%, transparent 50%),
                    linear-gradient(#fff,#fff);
  background-position: calc(100% - 18px) calc(50% - 3px),
                       calc(100% - 12px) calc(50% - 3px),
                       100% 0;
  background-size: 6px 6px, 6px 6px, 2.5em 100%;
  background-repeat: no-repeat;
}
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

/* ===== Slider ===== */
.pkg-slider{ position:relative; }
.pkg-slider .nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:38px; height:38px; border-radius:50%; border:1px solid #dfe6f2;
  background:#fff; font-size:22px; line-height:1; cursor:pointer;
  display:grid; place-items:center; z-index:2;
}
.pkg-slider .prev{ left:-6px }
.pkg-slider .next{ right:-6px }
.pkg-slider .nav:hover{ box-shadow:0 3px 10px rgba(10,30,60,.12) }

.track{
  overflow:auto hidden; 
  scroll-snap-type:x mandatory;
  display:flex; 
  gap:16px; 
  padding:4px; 
  margin:0 28px; /* เผื่อพื้นที่ปุ่ม */
}


/* ===== Mobile (<=640px): แสดงทีละ 1 ใบ ===== */
@media (max-width:640px){
  .pkg-card{
    flex: 0 0 100%;     /* ความกว้างการ์ด = กว้างแทร็ก */
    max-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;  /* บังคับหยุดทีละใบ */
  }

  .track{
    /* เว้นขอบซ้าย/ขวาให้ดูไม่ชิด และบอก scroll-snap ให้เว้นเท่าเดิม */
    padding: 6px 16px;
    scroll-padding: 0 16px;    /* ให้ใบแรก-ใบสุดท้ายชิดสวย */
    gap: 12px;
    -webkit-overflow-scrolling: touch;
  }

  /* ปุ่มลูกศรอยู่ด้านในนิดหน่อย แตะง่าย */
  .pkg-slider .prev{ left: 10px; }
  .pkg-slider .next{ right: 10px; }
}

.track::-webkit-scrollbar{ height:10px }


/* ===== Card ===== */
/* ===== Card ===== */
.pkg-card{
  scroll-snap-align:start; 
  flex:0 0 calc((100% - 48px)/4); /* 4 ใบ/แถว (gap รวม 48px ถ้ามี 16px x 3) */
  max-width:100%; 
  background:#fff; 
  border:1px solid #e6ebf2; 
  border-radius:14px; 
  overflow:hidden;
  box-shadow:0 2px 10px rgba(18,38,63,.05);
}

@media (max-width: 1024px){
  .pkg-card{ flex-basis: calc((100% - 32px)/3) } /* 3 ใบ */
}
@media (max-width: 768px){
  .pkg-card{ flex-basis: calc((100% - 16px)/2) } /* 2 ใบ */
}
@media (max-width: 480px){
  .pkg-card{ flex-basis: 100% } /* 1 ใบ */
}

/* กล่องภาพ */
.pkg-thumb{
  position:relative;
  width:100%;
  height:auto;   /* fix ความสูงเท่ากันทุก card */
  overflow:hidden;
  display:block;
  margin:0;
  padding:0;
}

/* รูปในกล่อง */
.pkg-thumb img{
  width:100%;
  height:100%;        /* ให้เต็มกล่องสูง 440px */
  object-fit:cover;   /* ครอบเต็มกรอบ ไม่เหลือขอบ */
  display:block;
}


/* ป้ายภาคมุมขวา */
.region-badge{
  position:absolute; right:10px; top:10px; z-index:1;
  background:rgba(0,0,0,.72); color:#fff; font-size:13px; font-weight:700;
  padding:6px 10px; border-radius:999px
}

.pkg-card .body{ padding:12px 14px 14px }
.pkg-card .date{ font-size:12px; color:#6b7380; margin-bottom:6px }
.pkg-card .hospital{ font-size:13px; font-weight:600; color:#8e7d2f; margin-bottom:4px }
.pkg-card .pkg-title{ 
  font-size:16px;
  line-height:1.35;
  margin:0 0 10px;
  color:#0f172a;
  font-weight:600;   /* <-- ใส่น้ำหนักตัวหนา */
}

/* ปุ่มเล็ก */
.btn.tiny{
  display:inline-block; font-size:13px; line-height:1; padding:9px 12px; border-radius:999px;
  border:1px solid #dfe6f2; text-decoration:none; white-space:nowrap
}
.btn.tiny.secondary{ background:#f5f7fb; color:#0f172a }
.btn.tiny.line{ background:#00c300; color:#fff; border-color:#00c300 }
.btn.tiny + .btn.tiny{ margin-left:8px }
.btn.tiny:hover{ filter:brightness(.96) }


/* แถบฟิลเตอร์หลัก */
.filters-bar{
  display:flex; justify-content:space-between; align-items:center;
  gap:16px; padding:14px; margin-bottom:18px;
 /* background:#f6f8fb; 
  border:1px solid #e6ebf2; */
  border-radius:24px;
}
.filters-left{ display:flex; align-items:center; gap:14px; min-width:0 }
.filters-right{ display:flex; align-items:center; gap:10px; flex-shrink:0 }
.filters-title{ font-weight:700; white-space:nowrap; color:#1f2a37 }

/* ====== Mobile (<= 640px) ====== */
@media (max-width: 640px){
  /* กล่องฟิลเตอร์รวม */
  .filters-bar{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  /* ซ้าย: หัวข้อ + segmented */
  .filters-left{
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
  }
  .filters-title{ font-size: 16px; }

  /* segmented ภาค: ให้เลื่อนในแนวนอน และกว้างเต็ม */
  .region-segment{
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 4px;
    padding: 4px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  .region-segment::-webkit-scrollbar{ display:none; } /* ซ่อนแถบเลื่อน */
  .region-segment{ scrollbar-width: none; }
  .seg-btn{
    flex: 0 0 auto;               /* คงขนาดปุ่ม ไม่ถูกบีบ */
    padding: 10px 12px;
    font-size: 14px;
  }

  /* ขวา: ป้าย + select ให้เต็มบล็อก */
  .filters-right{
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    flex-shrink: 0;
  }
  .sort-label{ font-size: 16px; }
  .select{
    min-width: unset;
    width: 100%;
  }

  /* สไลด์การ์ด: แสดงทีละ 1 ใบ และเว้นขอบซ้าย/ขวาให้พอดี */
  .pkg-card{
    flex-basis: 100%;
    max-width: 100%;
  }
  .track{
    padding: 4px 12px;   /* เว้นจากขอบซ้าย/ขวาให้เยอะขึ้นบนจอเล็ก */
  }
  .pkg-slider .prev{ left: 4px; }
  .pkg-slider .next{ right: 4px; }
}

/* จอเล็กมาก (<= 380px) ปรับขนาดปุ่มอีกนิด */
@media (max-width: 380px){
  .seg-btn{
    padding: 8px 10px;
    font-size: 13px;
  }
}


/* segmented (แท็บโค้ง) */
.region-segment{
  display:flex; align-items:center; gap:2px; padding:4px;
  background:#e9edf2; border-radius:999px; position:relative;
}
.seg-btn{
  border:0; background:transparent; padding:10px 16px; border-radius:999px;
  font-weight:600; color:#5b6470; cursor:pointer; white-space:nowrap;
}
.seg-btn.is-active{
  background:#fff; color:#111827; box-shadow:0 1px 0 rgba(0,0,0,.04);
}

/* select มาตรฐาน + ซ่อนตัว region select ไว้ */
.select{
  appearance:none; border:1px solid #d9e2ef; background:#fff; color:#111827;
  padding:10px 14px; border-radius:10px; min-width:200px; font-size:14px;
  background-image: linear-gradient(45deg, transparent 50%, #8592a6 50%),
                    linear-gradient(135deg, #8592a6 50%, transparent 50%),
                    linear-gradient(#fff,#fff);
  background-position: calc(100% - 18px) calc(50% - 3px),
                       calc(100% - 12px) calc(50% - 3px),
                       100% 0;
  background-size: 6px 6px, 6px 6px, 2.5em 100%;
  background-repeat: no-repeat;
}
.hidden-select{ position:absolute; left:-9999px; }
.sort-label{ font-weight:700; color:#374151; white-space:nowrap }

/* responsive */
@media (max-width: 840px){
  .filters-bar{ flex-direction:column; align-items:stretch; gap:12px }
  .filters-right{ justify-content:flex-start }
}


/* Desktop/Tablet: ใช้ segmented, ซ่อน select ภาค */
.region-segment{ display:flex; }
#pkg-region.hidden-select{ position:absolute; left:-9999px; }

/* ===== Mobile (<=640px): ซ่อน segmented แล้วโชว์ select ===== */
@media (max-width:640px){
  .region-segment{ display:none; }                 /* ซ่อนแท็บภาค */
  #pkg-region.hidden-select{
    position:static; left:auto;                    /* โชว์ select ภาค */
    display:block; width:100%;
  }
  /* จัดเลย์เอาต์ฟิลเตอร์ให้เป็นคอลัมน์ */
  .filters-bar{
    flex-direction:column; align-items:stretch; gap:10px; padding:12px;
  }
  .filters-left{ flex-direction:column; align-items:stretch; gap:8px; }
  .filters-right{ flex-direction:column; align-items:stretch; gap:6px; }

  /* ขนาด select ให้กดง่ายบนมือถือ */
  .select{
    min-width:unset; width:100%;
    padding:12px 14px; font-size:16px; line-height:1.2;
    border-radius:12px;
  }
}

/*จบแพ็กเกจ*/



/*กิจกรรม*/
/* Head */
#events h2{ margin:0 0 6px; font-size:28px; line-height:1.1; }
#events .sub{ margin:0 0 12px; color:#5b6470; }

/* Filters */
.filters-bar{
  background:#f6f8fb; border:1px solid #e6ebf2; border-radius:16px;
  padding:12px; margin: 8px 0 20px;
}

/* กล่องฟิลเตอร์รวม */
.filters-bar{
  display:flex; justify-content:space-between; align-items:center;
  gap:16px; padding:12px; margin:8px 0 20px;
  background:#f6f8fb; border:1px solid #e6ebf2; border-radius:16px;
}
.filters-left{ display:flex; align-items:center; gap:12px; min-width:0 }
/* Make sort label and select appear on the same line */
.filters-right{
  display:flex;
  align-items:center;
  gap:12px;
}
.filters-right .sort-label{
  white-space:nowrap;
  margin-right:8px;
}
/* Visual-hide the accessibility label (if not already styled elsewhere) */
label.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}
@media (max-width:576px){
  .filters-right{ flex-wrap:wrap; }
}

.filters-title{ font-weight:700; color:#1f2a37; white-space:nowrap }
.filter-label{ font-size:14px; color:#475166; font-weight:600; }

/* segmented (เหมือนภาค) */
.type-segment{
  display:flex; align-items:center; gap:2px; padding:4px;
  background:#e9edf2; border-radius:999px; position:relative;
}
.seg-btn{
  border:0; background:transparent; padding:10px 16px; border-radius:999px;
  font-weight:600; color:#5b6470; cursor:pointer; white-space:nowrap;
}
.seg-btn.is-active{ background:#fff; color:#111827; box-shadow:0 1px 0 rgba(0,0,0,.04) }

/* select มาตรฐาน + ซ่อน select ประเภทไว้ (desktop/tablet) */
.select{
  appearance:none; border:1px solid #d9e2ef; background:#fff; color:#111827;
  padding:10px 14px; border-radius:10px; min-width:200px; font-size:14px;
  background-image: linear-gradient(45deg, transparent 50%, #8592a6 50%),
                    linear-gradient(135deg, #8592a6 50%, transparent 50%),
                    linear-gradient(#fff,#fff);
  background-position: calc(100% - 18px) calc(50% - 3px),
                       calc(100% - 12px) calc(50% - 3px),
                       100% 0;
  background-size: 6px 6px, 6px 6px, 2.5em 100%;
  background-repeat: no-repeat;
}
.hidden-select{ position:absolute; left:-9999px; }

/* ===== มือถือ (<=640px): ซ่อน segmented แล้วโชว์ select ประเภท ===== */
@media (max-width:640px){
  .filters-bar{ flex-direction:column; align-items:stretch; gap:10px; padding:12px }
  .filters-left{ flex-direction:column; align-items:stretch; gap:8px }
  .filters-right{ flex-direction:column; align-items:stretch; gap:6px }

  .type-segment{
    display:none; /* ซ่อนแท็บบนมือถือ */
  }
  #evt-type.hidden-select{
    position:static; left:auto; display:block; width:100%; min-width:unset;
  }
  .select{ width:100%; min-width:unset; padding:12px 14px; font-size:16px }
}


.filters-grid{
  display:grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap:12px; align-items:end;
}
.filter-label{ font-size:14px; color:#475166; font-weight:600; grid-column: span 1 / auto; }
#evt-type, #evt-region, #evt-hospital{ grid-column: span 2 / auto; }

.select{
  appearance:none; border:1px solid #d9e2ef; background:#fff; color:#111827;
  padding:10px 14px; border-radius:10px; font-size:14px; width:100%;
  background-image: linear-gradient(45deg, transparent 50%, #8592a6 50%),
                    linear-gradient(135deg, #8592a6 50%, transparent 50%),
                    linear-gradient(#fff,#fff);
  background-position: calc(100% - 18px) calc(50% - 3px),
                       calc(100% - 12px) calc(50% - 3px),
                       100% 0;
  background-size: 6px 6px, 6px 6px, 2.5em 100%;
  background-repeat: no-repeat;
}

/* Grid 2 คอลัมน์ */
.event-grid{
  display:grid; gap:16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Card */
.evt-card{
  background:#fff; border:1px solid #e6ebf2; border-radius:14px; overflow:hidden;
  box-shadow:0 2px 10px rgba(18,38,63,.05);
  display:flex; flex-direction:column;
}
/* ช่องรูปของการ์ดกิจกรรม */
.evt-thumb{
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 366 / 288; /* สัดส่วนแนวตั้งให้ภาพกินเต็มการ์ดสวย ๆ */
  overflow: hidden;
  display: block;
  margin: 0;               /* กัน margin เริ่มต้นของ <figure> */
}

/* รูปให้กินเต็มกรอบ (อาจครอบนิดหน่อย) */
.evt-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;        /* เติมเต็มกรอบ ไม่เหลือขอบ */
  object-position: center;  /* จัดกึ่งกลางเวลาโดนครอบ */
  display: block;
}

.region-badge{
   position: absolute;
  left: 10px;      /* ย้ายจาก right เป็น left */
  top: 10px;       /* ยังคงอยู่ด้านบน */
  z-index: 1;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}

.region-badge {
  display: inline-block;   /* ใช้ความกว้างพอดีกับข้อความ */
  width: auto;             /* ยกเลิกการขยายเต็ม */
  max-width: max-content;  /* กันข้อความยาวเกิน */
  white-space: nowrap;     /* ป้องกันตัดบรรทัด */
}
.evt-card .body{ padding:12px 14px 14px; }
.evt-card .date{ font-size:12px; color:#6b7380; margin-bottom:6px }
.evt-card .hospital{ font-size:13px; font-weight:600; color:#8e7d2f; margin-bottom:4px }
.evt-title{ font-size:18px; line-height:1.35; margin:0 0 10px; color:#0f172a; font-weight:600 }




/* ปุ่มเล็ก */
.btn.tiny{
  display:inline-block; font-size:13px; line-height:1; padding:9px 12px; border-radius:999px;
  border:1px solid #dfe6f2; text-decoration:none; white-space:nowrap
}
.btn.tiny.secondary{ background:#f5f7fb; color:#0f172a }
.btn.tiny.line{ background:#00c300; color:#fff; border-color:#00c300 }
.btn.tiny + .btn.tiny{ margin-left:8px }

/* more */
.more{ text-align:center; margin-top:16px }
.more .btn.secondary{ background:#f5f7fb }

/* Responsive */
@media (max-width: 1200px){
  .event-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 840px){
  .filters-grid{ grid-template-columns: 1fr; }
  .filter-label{ grid-column: auto; }
  #evt-type, #evt-region, #evt-hospital{ grid-column: auto; }
  .event-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } /* ยังคง 2 คอลัมน์ */
}
@media (max-width: 540px){
  .event-grid{ grid-template-columns: 1fr; } /* มือถือ = 1 ใบต่อแถว */
}

/* ===== Desktop (กว้าง > 840px): ทุกอย่างอยู่บรรทัดเดียว ===== */
@media (min-width: 841px){
  .events-filters{
    display:flex;
    align-items:center;      /* จัดแนวบนเดียวกัน */
    gap:16px;
    flex-wrap:nowrap;        /* ไม่ให้ตกล่าง */
  }

  /* ซ้าย = แท็บประเภท (กินพื้นที่ที่เหลือ) */
  .events-filters .filters-left{
    flex:1 1 auto;
    min-width:0;             /* กันแท็บดันแตกบรรทัด */
  }
  .events-filters .type-segment{
    max-width:100%;
    overflow-x:auto;         /* ถ้าแท็บยาว เลื่อนได้ */
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;    /* ซ่อนสกอร์บาร์ */
  }
  .events-filters .type-segment::-webkit-scrollbar{ height:0; }

  /* ขวา = ภาค / โรงพยาบาล (ย่อและชิดขวา) */
  .events-filters .filters-right{
    margin-left:auto;        /* ดันไปชิดขวา */
    display:grid;
    grid-auto-flow:column;
    grid-template-columns: auto 100px auto 100px;  /* label | select | label | select */
    column-gap:12px;
    align-items:center;      /* label อยู่กลางแนวตั้งกับ select */
    flex:0 0 auto;
  }
  .events-filters .filters-right .select{
    width:150px;             /* ปรับ 180–220 ได้ตามใจ */
    min-width:0;
  }
  .events-filters .filters-right label{
    white-space:nowrap;      /* ป้องกันขึ้นบรรทัดใหม่ */
    margin:0;
  }
}

/* ===== Mobile เหมือนเดิม: เรียงแนวตั้ง และใช้ select แทน segmented ===== */
@media (max-width:640px){
  .events-filters{ flex-direction:column; align-items:stretch; gap:10px }
  .events-filters .filters-left{ flex-direction:column; gap:8px }
  .events-filters .filters-right{ display:flex; flex-direction:column; gap:6px }
  .type-segment{ display:none }
  #evt-type.hidden-select{ position:static; display:block; width:100% }
  .select{ width:100%; min-width:unset }
}

/*จบกิจกรรม*/





/*รพ.*//* Section & Heading */
/* Section & Heading */
.hospitals{ background:var(--bg); padding:clamp(56px,3vw,68px) 0 48px; }
.hospitals .container{ width:min(1200px,92%); margin:0 auto; }
.hospitals h2{ font-size:clamp(22px,3.2vw,32px); margin:0 0 16px; color:var(--about-blue); font-weight:800; }

/* GRID: 4 / 2 / 1 */
.card-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:16px;
}
@media (max-width:1024px){ .card-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){
  .card-grid{
    display:flex; gap:12px; overflow-x:auto;
    scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
    padding:8px 12px 4px;
  }
  .card-grid::-webkit-scrollbar{ height:0; }
}

/* CARD */
.card{
  position:relative;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  min-height:160px;
  display:flex; align-items:center; justify-content:center;
  padding:16px;
  margin: 20px 0;
  overflow:hidden;
  transition: transform .15s ease, box-shadow .2s ease;
}
.card:focus{ outline:2px solid #96b6ff; outline-offset:2px; }
.card:hover{ transform:translateY(-2px); box-shadow:0 12px 28px rgba(0,0,0,.06); }

/* มือถือ: แสดงทีละ 1 ใบ */
@media (max-width:560px){
  .card{ flex:0 0 92%; max-width:92%; scroll-snap-align:center; margin:12px 0; }
}

/* การ์ดเนื้อหา */
.card-body{ text-align:center; }
.card .logo{ height:48px; width:auto; object-fit:contain; display:block; margin:0 auto 10px; }
.card .name{ margin:0; font-weight:700; color:var(--text); font-size:14px; line-height:1.4; }

/* ซ่อนไว้ก่อน: แผงข้อมูล (overlay) เป็นแบบวางทับ */
.overlay{
  position:absolute; inset:0;
  background:rgba(255,255,255,.98);
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition:opacity .18s ease;
}
.card:hover .overlay, .card.open .overlay, .card:focus-within .overlay{
  opacity:1; pointer-events:auto;
}
/* เนื้อหาข้างในการ์ด */
.ovl{
  width: 100%;
  max-width: 100%;          /* ให้กว้างเต็มการ์ด */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  background: transparent;   /* ลบพื้นหลัง (โปร่งใส) */
  border-radius: 0;          /* ไม่ต้องมีกล่อง */
  box-shadow: none;          /* ไม่ต้องมีเงา */
}
/* โลโก้ด้านบน */
.logo-large{
  height: 60px; width: auto; object-fit: contain;
  margin: 6px auto 12px;
}

/* แถวข้อมูลแต่ละบรรทัด (แทน <br>) */
.iconrow{
  display:flex; align-items:center; gap:12px;
  padding: 6px 0;
  color: #184f90;            /* สีเข้มขึ้น */
  text-decoration: none;
  font-size: 16px; line-height: 1.4;
}
.iconrow svg{ flex:0 0 22px; color:#184f90; }
.iconrow:hover span{ text-decoration: underline; }

/* ปุ่ม CTA */
.btn-cta{
  margin-top: 10px;
  background: #2c57c5;
  color:#fff; font-weight:800;
  padding: 12px 18px;
  border-radius: 14px;
  width: 100%;
  text-align:center;
  box-shadow: 0 8px 18px rgba(44,87,197,.25);
  transition: transform .08s ease, box-shadow .2s ease;
}
.btn-cta:hover{ transform: translateY(-1px); box-shadow:0 14px 28px rgba(44,87,197,.32); }

/* เมื่อ hover (เดสก์ท็อป) หรือ .open (มือถือ) */
/* 1) ซ่อนเนื้อหารูป/ชื่อเดิม */
.card:hover .card-body,
.card.open  .card-body{ display:none; }

/* 2) เปลี่ยน overlay เป็น block ปกติ ให้ดันขนาดการ์ดจริง (ไม่เป็นสกอร์บาร์) */
.card:hover .overlay,
.card.open  .overlay{
  position: static;           /* ไม่ overlay แล้ว */
  background: transparent;
  opacity:1; pointer-events:auto;
  padding: 0;                 /* padding ไปคุมใน .ovl แทน */
   opacity:1; 
   pointer-events:auto; 
}

/* 3) กล่องข้อมูลภายใน: กำหนดระยะ/สไตล์ตามตัวอย่าง */
.ovl{
  width: 100%;
  max-width: 950px;           /* ความกว้างเนื้อหาในการ์ด */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;

}

/* โลโก้บนสุด */
.logo-large{
  height: 56px; width: auto; object-fit: contain;
  margin: 6px auto 8px;
}

/* แถวข้อมูล */
.iconrow{
  display:flex; align-items:center; gap:12px;
  padding: 10px 2px;
  border: 0; background: transparent;
  color: #0a4aa6;             /* สีข้อความ/ลิงก์ฟ้า */
  text-decoration: none;
  font-size: 16px; line-height: 1.3;
}
.iconrow svg{ flex:0 0 22px; color:#0a4aa6; }
.iconrow:hover span{ text-decoration: none; }

/* CTA ปุ่มสีน้ำเงินเต็มความกว้าง โค้งมน */
.btn-cta{
   display: inline-block;
  margin-top: 10px;
  background: #5eaee0;      /* พื้นหลังฟ้า */
  color: #2e5e8c;              /* ข้อความสีดำ */
  font-weight: 600;
  font-size: 14px;          /* ขนาดเล็กลง */
  padding: 8px 14px;        /* ปรับให้ปุ่มเล็กลง */
  border-radius: 8px;       /* มุมโค้งเล็กลง */
  text-align: center;       /* ข้อความตรงกลาง */
  width: auto;              /* ไม่บังคับเต็ม */
  min-width: 120px;         /* กันปุ่มเล็กเกิน */
  transition: all 0.25s ease;
}
.btn-cta:hover {
  background: #2e5e8c;      /* พื้นหลังน้ำเงินเข้ม */
  color: #fff;              /* ข้อความสีขาว */
}

/* ====== MOBILE ====== */
/* มือถือยังคงสไลด์ 1 ใบ/หน้า; เวลาแตะจะใส่ .open ให้การ์ดขยายจริง */
@media (max-width:560px){
  .ovl{ max-width: 100%; }   /* กินเต็มการ์ดบนมือถือ */
  .card{ align-items: stretch; }   /* เผื่อให้ขยายสูงได้ */
}

/*จบ รพ*/


/* ====== FIX: ตัดช่องว่างหัว-ท้ายเว็บ ====== */

/* รีเซ็ต margin ที่มักชนกันระหว่าง section */
section, header, footer { margin: 0; }

/* ฮีโร่: ไม่ให้มีช่องว่างถัดลงมา */
.hero { margin-bottom: 0; }
.hero .container { padding-bottom: 0; }

/* บล็อก LINE hero: ตัดระยะล่างให้เรียบกับ section ถัดไป */
.section.line-hero,
.line-join { padding-bottom: 0 !important; }
.line-hero .copy .cta { margin-bottom: 0 !important; }

/* หัวข้อ/พารากราฟตัวแรกของแต่ละ section ไม่ให้มี margin-top เกิน */
.section > *:first-child { margin-top: 0; }

/* ส่วน “รพ.ในเครือฯ”: ลด padding บนลงเล็กน้อย */
.hospitals { padding-top: 28px; } /* เดิม clamp(56px,3vw,68px) */

/* ฟุตเตอร์: เอาช่องว่างด้านบนออก */
footer,
.footer { margin-top: 0 !important; }

/* กัน margin-collapse ระหว่างสอง section ให้แนบสนิท */
.section + .section { padding-top: 24px; }   /* ปรับได้ 16–32px ตามชอบ */



/* === HERO: full-bleed background + readable copy === */
.hero{
  /* พื้นหลังเต็มจอ */
  background: linear-gradient(160deg,#eaf2ff 0%, #e9eefb 32%, #f7f8ff 48%, #f1e9f6 72%, #f9eef2 100%);
  width: 100vw;
  margin-left: calc(50% - 50vw);  /* ดันให้เต็มขอบจอจริง ๆ */
  margin-right: calc(50% - 50vw);
}

.hero .wrap{
  /* ระยะหายใจด้านบน/ล่าง */
  padding-block: clamp(28px, 6vw, 96px);
}

/* กล่องตัวเนื้อหาหลัก: จำกัดความกว้างเพื่อให้อ่านสบายตา */
.hero .copy{
  max-width: min(72ch, 100%);   /* ~ความยาวบรรทัดที่อ่านสบาย */
}

/* แท็ก eyebrow ด้านบนหัวข้อ */
.hero .eyebrow{
  display: inline-block;
  font-weight: 700;
  font-size: clamp(14px, 1.4vw, 18px);
  color: #536387;
  margin-bottom: 8px;
}

/* หัวเรื่องหลัก: responsive + balance บรรทัด */
.hero .title{
  margin: 0 0 12px 0;
  font-weight: 900;
  font-size: clamp(24px, 3.5vw + 8px, 64px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;           /* เบราว์เซอร์ใหม่จะจัดบรรทัดให้บาลานซ์ */
  overflow-wrap: anywhere;      /* กันคำยาวหลุดกรอบ */
}

/* แถว “วันที่/สถานที่” ใต้หัวข้อ */
.hero .copy > div{
  font-size: clamp(14px, 1.2vw, 18px);
  color:#1b2a41;
}

/* breadcrumb ให้เป็นชิปอ่านง่าย และไม่ดันกว้างเกิน */
.breadcrumb{
  display:flex; flex-wrap:wrap; gap:8px;
  list-style:none; padding:10px 12px; margin:14px 0 0 0;
  background:#ffffffcc; backdrop-filter: blur(4px) saturate(130%);
  border:1px solid #e6ebf2; border-radius: 12px;
}
.breadcrumb li{ display:flex; align-items:center; gap:6px; color:#334155; }
.breadcrumb a{ color:#0a4aa6; text-decoration:none; font-weight:700; }
.breadcrumb a:hover{ text-decoration:underline; }

/* มือถือ: ข้อความอ่านง่ายขึ้น */
@media (max-width: 640px){
  .hero .copy{ max-width: 92vw; }   /* กินกรอบจอพอดี */
  .breadcrumb{ padding:8px 10px; border-radius:10px; }
}

.hero .title{
  display:block;
  max-width: 48rem;     /* คุมความกว้างเฉพาะหัวข้อ (ปรับได้) */
}

/*ติดต่อ*/
.section.contact{
  padding:95px 0;
  background:#f7fbff
}


.contact-grid{
  display:grid;
  grid-template-columns: 1.05fr 1fr;
  gap:28px;
  align-items:start;
}
@media (max-width: 980px){
  .contact-grid{ grid-template-columns:1fr; }
}

/* left */
.contact-info h2{margin:0 0 6px; color:var(--brand); font-size:32px; font-weight:800;}
.contact-info .org{margin:0 0 10px; color:var(--ink); font-weight:700}
.contact-info .addr{margin:0 0 16px; color:#2a3550}

.contact-list{list-style:none; padding:0; margin:0 0 16px; display:grid; gap:8px}
.contact-list li{display:flex; align-items:center; gap:10px}
.contact-list svg{width:18px;height:18px; fill:var(--brand)}
.contact-list a{color:var(--brand); font-weight:700; text-decoration:none}
.contact-list a:hover{text-decoration:none}

/* map */
.map-wrap{
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  box-shadow:var(--shadow);
  background:#eef4ff;
  aspect-ratio: 16/9;
}
.map-wrap iframe{width:100%; height:100%; border:0; display:block}

/* right */
.contact-form{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:18px 18px 20px;
}
.contact-form h2{margin:0 0 12px; color:var(--brand); font-size:26px; font-weight:800}

/* form grid */
.grid-2{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media (max-width:640px){ .grid-2{ grid-template-columns:1fr; } }

/* fields */
.field{display:flex; flex-direction:column; gap:6px}
.field span{font-weight:600; color:#1f2a37}
.req{color:#e11d48; margin-left:2px}
.hint{color:var(--muted); font-size:12px}

input, textarea{
  width:100%; padding:12px 14px; border-radius:12px;
  border:1px solid var(--line); background:#fff; color:#111827;
  font:inherit; outline:none;
}
textarea{resize:vertical; min-height:120px}
input:focus, textarea:focus{ border-color:#a7c0ff; box-shadow:0 0 0 3px rgba(46,94,140,.12) }

/* consent + submit */
.consent{display:flex; align-items:flex-start; gap:10px; margin:6px 0 12px; color:#334155; font-size:14px}
.consent a{color:var(--brand); text-decoration:underline}
.consent input{margin-top:3px}

.btn.send{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 18px; border-radius:12px; border:0; cursor:pointer;
  font-weight:800; background:#2e5e8c; color:#fff; width:100%;
  transition:transform .08s ease, filter .2s ease, opacity .2s ease;
}
.btn.send[disabled]{opacity:.5; cursor:not-allowed}
.btn.send:not([disabled]):hover{ filter:brightness(.95) }
.btn.send:not([disabled]):active{ transform:translateY(1px) }
/*จบติดต่อ*/




.filters-right .select {
  min-width: 280px; /* ปรับตัวเลขได้ตามความเหมาะสม เช่น 250px, 300px */
}