:root {
  --bg: #0f1113;
  --bg-soft: #171a1d;
  --card: #2a2e33;
  --ink: #e7eef7;
  --ink-dim: #bfc9d6;
  --brand: #16a34a;
  /* green */
  --brand-2: #ef4444;
  /* red */
  --accent: #27a9f8;
  /* blue strip */
  --strip-notch-h: clamp(14px, 3vw, 42px);
  /* ความสูงหาง (responsive) */
  --primary: #1ea7ff;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .25);
  --brand-h: clamp(14px, 1.4vw, 20px);
  /* min 14px, ปกติสเกลตาม 1.4vw, max 20px */
  --hero-logo-w: clamp(220px, 28vw, 425px);
  --header-h: clamp(56px, 8vw, 72px);
  --fs-h3: clamp(18px, 2vw, 30px);
  --nav-underline: #3c315d;
  /* สีเส้น */
  --nav-uline-h: 2px;
  /* หนา */
  --nav-uline-w: 2.2em;
  /* ยาว ~ เท่าความกว้างตัวอักษร 2.2em */
  --footer-h: 160px;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: 'Noto Sans Thai', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Noto Sans Thai', sans-serif;
  color: var(--ink);
  background: #0b0c0e url('../images/Web ATC-03.png') center/cover fixed no-repeat;
  line-height: 1.55;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top));
  padding-bottom: var(--footer-h, 220px);

}

h3 {
  font-size: var(--fs-h3);
}

/* Utilities */
.container {
  width: min(1180px, 92%);
  margin-inline: auto
}

.container-outservice {
  width: min(1180px, 92%);
  margin-inline: auto
}

.section-title {
  font-size: clamp(22px, 2.6vw, 45px);
  text-align: center;
  margin: 0 0 24px;
  font-weight: 800;
  color: #3eabfb;
  padding: 25px 0px 0px 0px;
}

.section-title::after {
  content: "";
  display: block;
  width: clamp(88px, 60vw, 300px);
  height: clamp(4px, 0.6vw, 8px);
  margin: clamp(16px, 2vw, 10px) auto 0;
  background: rgba(255, 255, 255, .75);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .2);
}

.section-title-contact {
  font-size: clamp(22px, 2.6vw, 34px);
  text-align: center;
  margin: 0 0 24px;
  font-weight: 800;
  color: #3eabfb;
  padding: 25px 0px 0px 0px;
}

.section-title-contact::after {
  content: "";
  display: block;
  width: clamp(88px, 60vw, 300px);
  height: clamp(4px, 0.6vw, 8px);
  margin: clamp(16px, 2vw, 10px) auto 0;
  background: rgba(255, 255, 255, .75);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .2);
}


/* แท็บเล็ต */
@media (max-width: 960px) {
  .section-title {
    font-size: clamp(26px, 8.8vw, 40px);
  }

  .section-title-contact {
    font-size: clamp(26px, 8.8vw, 40px);
  }

  .nav .btn {
    margin-top: 10px;
  }
}

/* มือถือ */
@media (max-width: 600px) {
  .section-title {
    font-size: clamp(26px, 6.8vw, 40px);
  }

  .section-title-contact {
    font-size: clamp(26px, 8.8vw, 40px);
  }

  .nav .btn {
    margin-top: 10px;
  }
}

@media (max-width: 1024px) {
  .container-outservice {
    width: min(1180px, 92%);
    margin-inline: auto;
    padding-block: clamp(26px, 5.5vw, 228px);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 999px;
  padding: .9rem 1.25rem;
  font-weight: 700;
  transition: transform .15s ease,
    box-shadow .15s ease, opacity .15s ease;
  border: 1.5px solid transparent;
}

.nav a:not(.btn-contact):hover {
  background: rgba(2, 6, 23, .06);
}

/* .btn:hover{transform:translateY(-1px)} */
.btn:active {
  transform: translateY(0)
}

.btn-contact {
  --btn-bg: var(--accent);
  --btn-bg-hover: #0a5585;
  background-color: var(--btn-bg);
  color: #000000;
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a,
.nav-link {
  font-weight: 600;
  text-decoration: none;
  color: #0b1220;
  padding: 10px 12px;
}

/* ตัวครอบปุ่มที่มีดรอปดาวน์ */
.nav-item,
.has-dropdown {
  position: relative;
}

/* ===== Dropdown (Desktop) ===== */
.has-dropdown>.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  /* กึ่งกลางตามปุ่ม */
  transform: translateX(-50%);
  /* เลื่อนให้ศูนย์กลางตรงกัน */
  min-width: 220px;
  display: none;
  list-style: none;
  margin: 8px 0 0;
  padding: 10px 0 15px;
  background: #e4e4e4;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  z-index: 50;
  text-align: center;
  white-space: nowrap;
}

.has-dropdown>.dropdown a {
  display: block;
  padding: .6rem .9rem;
  border-radius: 8px;
}

.has-dropdown>.dropdown a:hover {
  background: #2ea3ff;
  color: #153969;
}

/* แสดงเมื่อ hover/โฟกัส */
.has-dropdown:hover>.dropdown,
.has-dropdown:focus-within>.dropdown {
  display: block;
}

/* ===== Mobile ===== */
@media (max-width:768px) {
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    padding: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: .2s;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-item {
    width: 100%;
    text-align: center;
  }

  .has-dropdown>.dropdown {
    position: static;
    transform: none;
    display: none;
    margin: 6px 0px 0px 0px;
    padding: 10px;
    background: #cecece;
    box-shadow: none;
    min-width: 0;
    text-align: center;
    white-space: normal;

  }

  .has-dropdown.open>.dropdown {
    display: block;
  }
}

/* เปิดด้วย hover/focus (เดสก์ท็อป) */
.has-dropdown:hover>.dropdown,
.has-dropdown:focus-within>.dropdown {
  display: block
}

.nav a.btn-contact:hover,
.nav a.btn-contact:focus-visible {
  background-color: var(--btn-bg-hover);
  color: #fff;
  transform: translateY(-5px);
}

.nav a:not(.btn-contact)::after {
  /* ... ของเดิม ... */
}

.nav a:not(.btn-contact):hover::after,
.nav a:not(.btn-contact).active::after,
/* ← ค้างเส้นหลังคลิก */
.nav a:not(.btn-contact)[aria-current="page"]::after {
  transform: scaleX(1);
}

/* เลื่อนนุ่ม ๆ */
html {
  scroll-behavior: smooth;
}

/* กันหัวเว็บ fixed ทับหัว section ตอนกดลิงก์ */
section[id] {
  scroll-margin-top: var(--header-h, 72px);
}

/* แสดงเส้นใต้เมื่อ active (คุณมีอยู่แล้ว แค่ย้ำให้แน่ใจว่ามีกฎนี้) */
.nav a:not(.btn-contact).active::after,
.nav a:not(.btn-contact)[aria-current="page"]::after {
  transform: scaleX(1);
}

/* กดค้างให้ยุบลงนิด */
.btn-contact:active {
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #6b7280
}

.btn-sm {
  padding: .6rem .9rem;
  font-size: .95rem
}

/* ============ Header / Nav ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* ยึดบนสุดและเต็มจอ */
  z-index: 1000;
  height: var(--header-h);
  display: grid;
  align-items: center;
  /* จัดให้อยู่กึ่งกลางแนวตั้ง */
  backdrop-filter: saturate(140%) blur(10px);
  background: white;
  /* หรือ rgba(245,248,252,.92) ถ้าต้องการโปร่งนิดๆ */
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  padding-top: env(safe-area-inset-top);
  /* รองรับ iOS notch */
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .5px
}

.brand-mark {
  height: 32px;
  width: auto
}

.brand-text {
  font-size: 14px;
  opacity: .9
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px
}

.nav a:not(.btn-contact) {
  --pad-x: 12px;
  position: relative;
  padding: 10px var(--pad-x);
  color: #0b1220;
  font-weight: 600;
  text-decoration: none;
}

/* เอาพื้นหลัง hover เดิมออก ให้โชว์เฉพาะเส้น */
.nav a:not(.btn-contact):hover {
  background: transparent;
}

/* เส้นใต้ (ซ่อนอยู่ก่อน) */
.nav a:not(.btn-contact)::after {
  content: "";
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: -8px;
  height: 2px;
  background: #173669;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
}

/* แสดงเส้นตอน hover/active (เฉพาะลิงก์ทั่วไป) */
.nav a:not(.btn-contact):hover::after,
.nav a:not(.btn-contact).active::after,
.nav a:not(.btn-contact)[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ปุ่มติดต่อยังใช้สไตล์ของปุ่มตามปกติ */
.nav a.btn-contact {
  /* สไตล์ปุ่มของคุณ เช่น พื้น/สี/รัศมี */
}

.nav a.btn-contact:hover {
  /* สี hover ของปุ่ม */
}

.nav .btn {
  margin-left: 4px
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 6px;
  margin-left: auto
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  transition: all .2s ease;
  border-radius: 3px
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg)
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg)
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: min(8vw, 90px) 0 min(6vw, 60px);
  background: radial-gradient(1200px 600px at 20% 10%, rgba(39, 169, 248, .12), transparent 60%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/Web ATC-03.png') center/cover no-repeat;
  opacity: .16;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
}

.hero-grid-I5 {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
}

.hero-copy .eyebrow {
  font-size: clamp(16px, 1.7vw, 30px);
  margin: 0 0 8px;
  opacity: .9;
  font-weight: 800
}

.hero-copy .title {
  font-size: clamp(26px, 3.3vw, 37px);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 18px
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px
}

.hero-art {
  display: grid;
  /* ช่วยให้กลางแน่นอน */
  place-items: center;
  /* กลางแนวนอน/ตั้ง */
  animation-delay: .05s;
}

.hero-art img {
  width: min(100%, clamp(260px, 72vw, 1150px));
  height: auto;
  display: block;
  /* ใช้ margin auto ได้ */
  margin-inline: auto;
  /* กึ่งกลางแนวนอน */
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45));
  margin-top: 10px;
}

.hero-art-logo {
  animation-delay: 0s;
}

.hero-art-logo img {
  width: min(100%, var(--hero-logo-w));
  /* ย่อขยายตามหน้าจอ แต่ไม่เกินคอนเทนเนอร์ */
  height: auto;
  display: block;
  /* ให้ใช้ margin auto ได้ */
  margin-inline: auto;
  /* กึ่งกลางแนวนอน */
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45));
}

/* ใส่กับกล่องรูป */
.hero-art-logo,
/* โลโก้ ATC */
.hero-art {
  /* แผงรูปสามภาพ */
  will-change: transform, opacity;
  animation: riseUp .9s ease-out both;
}

/* อนิเมชันขึ้นบน */
@keyframes riseUp {
  from {
    transform: translateY(18px);
    opacity: 0;
  }

  /* เดิม 30px */
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-logo {
  position: absolute;
  left: max(4%, 50% - 580px);
  bottom: -18px;
  opacity: .85
}

.hero-logo img {
  height: 22px;
  width: auto
}

/* ============ Blue Strip ============ */
.strip {
  position: relative;
  background: var(--accent);
  color: #fff;
  margin-bottom: var(--strip-notch-h);
  /* กันชนไม่ให้ทับกับส่วนถัดไป */
  display: grid;
  place-items: center;
  /* กลางทั้ง 2 แกน */
  text-align: center;
  /* ให้ข้อความในบรรทัดกลางด้วย */
  min-height: clamp(44px, 6vw, 68px);
}

.strip .container {
  padding: 14px 0;
}

.strip h3 {
  margin: 0;
  margin-bottom: clamp(-30px, -1.5vw, 0px);
  /* จอใหญ่ ~ -30px → จอเล็กเข้าใกล้ 0 */
  font-size: var(--fs-h3);
}

.strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-0.9 * var(--strip-notch-h));
  height: var(--strip-notch-h);
  background: var(--accent);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  /* ทำเป็นรูปตัว V */
}

/* ============ Intro ============ */
.intro {
  padding: 0px 0px 30px
}



/* .intro .container{padding:32px 0} */
/*.intro p{
  background:rgba(255,255,255,.04);
  padding:18px 22px; border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.06);
} */

/* ============ Services ============ */
/* เดสก์ท็อป: 3 คอลัมน์ */
.svc-list {
  display: grid;
  /* grid-template-columns: repeat(2, 1fr); */
  justify-content: center;
  gap: clamp(16px, 4vw, 56px);
}

.svc-list.inline .svc {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.5vw, 16px);
  text-align: left;
}

.svc-title {
  margin: 0px 0px -35px 0px;
  font-weight: 800;
  font-size: clamp(22px, 3.4vw, 20px);
  color: #fff;
  text-align: start;
}

.svc-sub {
  white-space: pre-line;
}

.svc-text {
  max-width: 75ch
}


@media (max-width:1325px) {
  .svc-sub{
    font-size: clamp(17px, 3.4vw, 23px);
  }
  .svc-title{
    font-size: clamp(17px, 3.4vw, 25px);
    margin: 0px 0px -55px 0px;
  }
  .svc-icon img{
    width: 140px;
  }
  .container-outservice{
    margin-top: 90px;
    margin-bottom: 90px;
  }
  .section-title{
    font-size: 55px;
  }
}
@media (max-width:1024px) {
    .container-outservice{
    margin-top: 0px;
    margin-bottom: 0px;
  }
}

/* มือถือ: 1 คอลัมน์ แต่ยัง “แถว” (ไอคอนซ้าย / ข้อความขวา) */
@media (max-width:780px) {
  .svc-list {
    grid-template-columns: 1fr;
  }

  .svc-list.inline .svc {
    width: 100%;
    max-width: 560px;
    /* ให้กึ่งกลางสวย ๆ */
    margin-inline: auto;
    flex-direction: row;
    /* คงไอคอนซ้าย / ข้อความขวา */
    align-items: center;
    text-align: left;
    gap: clamp(12px, 4vw, 20px);
    margin: 0px 0px 0px -20px;
  }

  .svc-list.inline .svc-icon {
    flex: 0 0 auto;
  }

  .svc-list.inline .svc-icon img {
    width: clamp(59px, 27vw, 95px);
    margin: 0;
  }

  /* ขยายไอคอนบนมือถือ */
  .svc-list.inline .svc-text {
    flex: 1 1 0;
  }

  /* ให้ข้อความกินพื้นที่ที่เหลือ */
  .svc-sub {
    white-space: normal;
    text-align: start;
    font-size: clamp(12px, 3.4vw, 13px);
    margin-top: 0px;
  }

  .svc-title {
    margin: 0;
    font-weight: 800;
    font-size: clamp(17px, 3.4vw, 18px);
    color: #fff;
    text-align: start;
  }
  .section-title{
    font-size: 26px;
  }

  /*ขึ้นบรรทัดตามที่พิมพ์*/
}








/* ============ Fleet ============ */
.fleet .container {
  padding: 42px 0
}

.vehicle-card {
  position: relative;
  /* พื้นหลัง = ภาพที่ 1 */
  background: url('../images/Web ATC-22.png') center/cover no-repeat;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  overflow: hidden;
  padding: 220px 22px 22px;
  /* เว้นที่ให้รถวางลอยบนสุด */
}

/* รูปรถ (กึ่งกลางแนวนอนเสมอ) */
.vehicle-card .car-art {
  position: absolute;
  inset: 55px 0 auto 0;
  /* top:-36px; left:0; right:0 */
  margin-inline: auto;
  /* ← จัดกลางแนวนอน */
  width: clamp(240px, 68%, 460px);
  height: auto;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, .5));
}

/* รูปรถ (กึ่งกลางแนวนอนเสมอ) */
.vehicle-card .car-art-detail {
  position: absolute;
  inset: 15px 0 auto 0;
  /* top:-36px; left:0; right:0 */
  margin-inline: auto;
  /* ← จัดกลางแนวนอน */
  width: clamp(240px, 68%, 460px);
  height: auto;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, .5));
}

/* ===== Fleet background (responsive) ===== */
.fleet {
  /* ปรับค่าทึบของ overlay เป็นตัวแปร เพื่อจูนตาม breakpoint ได้ */
  --overlay-top: .25;
  --overlay-bottom: .45;

  position: relative;
  background: url('../images/Web ATC-16.png') center / cover no-repeat;
  isolation: isolate;
  /* กัน ::before ไม่ไปรบกวนลูก ๆ */
}

/* overlay ช่วยให้อ่านการ์ดชัด */
.fleet::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, var(--overlay-top)),
      rgba(0, 0, 0, var(--overlay-bottom)));
  z-index: 0;
}

/* คอนเทนต์วางเหนือ overlay และมี spacing แบบ fluid */
.fleet>.container {
  position: relative;
  z-index: 1;
  padding-block: clamp(28px, 6vw, 64px);
  /* ระยะบน/ล่าง responsive */
}

/* ===== จัดกริดการ์ดให้ responsive (ถ้าคุณยังไม่ได้ตั้ง) ===== */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
}

@media (max-width: 1024px) {
  .fleet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-card .car-art {
    inset: 13px 0 auto 0;
    width: clamp(220px, 78%, 520px);
  }
}

@media (max-width: 720px) {
  .fleet-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ปรับเฟรมภาพพื้นหลังตามขนาดจอ ===== */
@media (max-width: 1200px) {

  /* ขยับ focus ไปทางขวาให้ subject ไม่โดนบัง */
  .fleet {
    background-position: 60% center;
  }
}

@media (max-width: 900px) {
  .fleet {
    background-position: 70% center;
  }
}

@media (max-width: 640px) {
  .fleet {
    background-position: 78% center;
    /* โฟกัสขวาอีกนิดบนมือถือ */
    --overlay-top: .45;
    /* ทึบขึ้นนิดให้อ่านการ์ดชัด */
    --overlay-bottom: .65;
  }
}

/* มือถือ: ขยับลงและขยายได้อีกนิด */
@media (max-width: 680px) {
  .vehicle-card {
    padding-top: 190px;
  }

  .vehicle-card .car-art {
    inset: 13px 0 auto 0;
    width: clamp(220px, 78%, 520px);
  }

  .vehicle-card .car-art-detail {
    inset: 50px 0 auto 0;
    width: clamp(220px, 78%, 520px);
  }
}

.vehicle-body {
  padding: 16px 16px 18px;
}

.vehicle-body-detail {
  padding: 50px 16px 18px;
}

.vehicle-body h3 {
  margin: 2px 0 6px;
  font-size: 20px
}

.vehicle-body .sub {
  opacity: .85;
  margin: 0 0 10px
}

/* กล่องสเปก (responsive) */
.vehicle-card .specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* เดสก์ท็อป=2 คอลัมน์ */
  gap: 0;
  border-bottom: 3px solid rgb(255, 255, 255);
  border-top: 3px solid rgb(255, 255, 255);
  padding: clamp(10px, 1.6vw, 14px);
  margin: clamp(12px, 2vw, 18px) 0;
}

.vehicle-card .specs li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* padding: clamp(8px, 1.6vw, 12px) clamp(8px, 2vw, 14px); */
}

/* เส้นกั้นกลาง */
/* .vehicle-card .specs li:not(:last-child){
  border-right: 1px solid rgba(255,255,255,.18);  
} */

/* หัว/ค่า (ขนาดฟอนต์ยืดหยุ่น) */
.vehicle-card .specs li strong {
  display: block;
  margin-bottom: clamp(4px, .6vw, 6px);
  font-weight: 800;
  opacity: .95;
  font-size: clamp(14px, 1.5vw, 16px);
}

.vehicle-card .specs li span {
  display: block;
  font-weight: 700;
  opacity: .9;
  font-size: clamp(14px, 1.6vw, 18px);
}

/* Tablet-เล็กลง: ยัง 2 คอลัมน์ แต่อ่านสบายขึ้น */
@media (max-width: 780px) {
  .vehicle-card .specs {
    padding: 12px;
  }

  .vehicle-card .specs li span {
    font-size: clamp(13px, 2.6vw, 16px);
  }
}

/* มือถือ: สลับเป็น 1 คอลัมน์ และเปลี่ยนเส้นกั้นเป็นแนวนอน */
@media (max-width: 420px) {

  /* .vehicle-card .specs{ grid-template-columns: 1fr; } */
  .vehicle-card .specs li:not(:last-child) {
    border-right: 0;
  }
}

/* ล้างสไตล์เดิมของแผงปุ่มในการ์ด */
.vehicle-card .card-actions {
  background: transparent;
  border: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 2vw, 16px);
  margin-top: clamp(12px, 2vw, 18px);
}

/* ปุ่มให้เหมือนกันทั้งสองอัน */
.vehicle-card .card-actions .btn {
  --btn-blue: #4cb7ff;
  --btn-blue-hover: #2aa8ff;
  min-width: clamp(120px, 28%, 180px);
  padding: .7rem 1.1rem;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  border: none;
  background: var(--btn-blue);
  color: #fff;
  text-decoration: none;
  text-align: center;
  transition: background-color .2s ease, transform .15s ease;
}

.vehicle-card .card-actions .btn:hover {
  background: var(--btn-blue-hover);
  transform: translateY(-2px);
}

/* ให้ .btn-outline ในส่วนนี้เป็นแบบเติมสีเหมือนกัน */
.vehicle-card .card-actions .btn-outline {
  background: var(--btn-blue);
  color: #fff;
}

/* Responsive: มือถือให้เรียงลงและกว้างเต็ม */
@media (max-width: 560px) {
  .vehicle-card .card-actions {
    flex-direction: column;
  }

  .vehicle-card .card-actions .btn {
    width: min(440px, 100%);
  }
}

.vehicle-card.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  text-align: center
}

.vehicle-card.placeholder .vehicle-body {
  padding: 24px
}

/* ============ Stats ============ */
.stats {
  background: rgb(9 147 210);
  border-top: 1px solid rgba(39, 169, 248, .25);
  border-bottom: 1px solid rgba(39, 169, 248, .25);
}


.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 26px 0
}

.stat {
  text-align: center;
  padding: 10px 6px
}

.stat .num {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900
}

.stat .cap {
  opacity: .85
}

.stat {
  text-align: center;
  display: grid;
}

.stat p {
  font-size: 20px;
  font-weight: 800;
  margin: 0px;
}

@media (max-width:640px) {
  .stat p {
    font-size: 15px;
    font-weight: 800;
    margin: 0px;
  }
}

.count {
  font-weight: 900;
  font-size: clamp(22px, 3.2vw, 40px);
  display: inline-block
}

/* ============ Why Us ============ */
.why .container {
  padding: 42px 0
}

.why-grid {
  display: grid;
  gap: 24px;
}

.why-item {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  align-items: center;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 16px;
  border-radius: var(--radius-lg)
}

.why-item img {
  width: 100%;
  border-radius: 16px;
  display: block
}

.why-body h3 {
  margin: 6px 0 8px
}

.why-body p {
  margin: 0;
  opacity: .95
}

.why-item .why-body {
  grid-area: body;
}

.why-item>img {
  grid-area: media;
  display: block;
  width: 100%;
  height: auto;
  position: static;
}

/* สลับซ้าย-ขวาบนเดสก์ท็อป */
.why-item {
  grid-template-areas: "body media";
}

.why-item:nth-child(even) {
  grid-template-areas: "media body";
}

/* มือถือ: รูปบน/ข้อความล่างทุกใบ (ทับแน่นอน) */
@media (max-width:640px) {
  .why-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "body" !important;
    /* กันไม่ให้โดน nth-child ทับ */
  }
}



/* ============ Footer ============ */
/* .site-footer{ background:#0b0d10; border-top:1px solid rgba(255,255,255,.08) } */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(320px, 640px) minmax(260px, 380px);
  gap: clamp(16px, 3vw, 32px);
  justify-content: space-between;
  align-items: center;
  justify-items: start;
}

/* พื้นหลัง footer แบบไล่เฉด */
.site-footer {
  background: linear-gradient(180deg, #3b3d40 0%, #232528 60%, #121315 100%);
  padding-block: clamp(20px, 3.5vw, 44px);
}

.site-footer-contact {
  background: linear-gradient(180deg, #3b3d40 0%, #232528 60%, #121315 100%);
  padding-block: clamp(20px, 3.5vw, 44px);
  /* position: fixed; */
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 50;
}

/* คอลัมน์โลโก้ */
.brand-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* โลโก้ ATC (บน) */
.footer-logo {
  width: clamp(225px, 12vw, 340px);
  align-self: center;
  /* กึ่งกลางตามแกนขวางของ flex-column */
  display: block;
  height: auto;
  margin-inline: auto;
}

/* แถบ www (ล่าง) — เล็กกว่า และชิดซ้ายใต้โลโก้ */
.footer-cop {
  width: clamp(345px, 20vw, 420px);
  height: auto;
  display: block;
}

.footer-facebook {
  width: clamp(45px, 1vw, 308px);
  display: block;
}

.contact-col {
  justify-self: end;
  margin: 0;
}

.phone {
  margin: 12px 0px 0px 0px;
  font-size: 18px;
}

.tel {
  text-decoration: none;
  color: wheat;
}

.www {
  text-decoration: none;
  color: #00afff;
}


@media (max-width:960px) {
  .site-footer-contact {
    background: linear-gradient(180deg, #3b3d40 0%, #232528 60%, #121315 100%);
    padding-block: clamp(32px, 16.5vw, 132px);
  }

  .contact-col {
    display: grid;
    justify-items: center;
  }

  .site-footer {
    background: linear-gradient(180deg, #3b3d40 0%, #232528 60%, #121315 100%);
    padding-block: clamp(31px, 20.8vw, 232px);
  }

}

@media (max-width:1325px) {
  .site-footer-contact {
    background: linear-gradient(180deg, #3b3d40 0%, #232528 60%, #121315 100%);
    padding-block: clamp(84px, 29.5vw, 35px);
  }

  .site-footer {
    background: linear-gradient(180deg, #3b3d40 0%, #232528 60%, #121315 100%);
    padding-block: clamp(45px, 6.7vw, 232px);
  }

  .contact-col {
    display: grid;
    justify-items: start;
  }

}

/* มือถือ: จัดกึ่งกลางทั้งชุด */
@media (max-width: 600px) {
  .brand-col {
    align-items: center;
    text-align: center;
  }

  .footer-cop {
    width: clamp(320px, 22vw, 420px);
    margin: 5px 0px 0px 0px;
  }

  .site-footer-contact {
    background: linear-gradient(180deg, #3b3d40 0%, #232528 60%, #121315 100%);
    padding-block: clamp(55px, 3.5vw, 44px);
  }
}



.footer-brand {
  margin-top: 8px;
  font-weight: 800
}

.copy {
  opacity: .7;
  font-size: .95rem
}

.contact-col h4,
.cta-col h4 {
  margin: .2rem 0 .5rem
}

.socials {
  display: flex;
  gap: 12px;
  margin: 8px 0;
}

.socials svg {
  width: 22px;
  height: 22px;
  fill: #e7eef7;
  opacity: .9
}

.socials a:hover svg {
  opacity: 1
}

.socials-www {
  display: flex;
  gap: 12px;
  margin: 8px 0;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center
  }

  .hero-cta {
    justify-content: center
  }

  .hero-logo {
    left: 4%
  }

  .fleet-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .why-item {
    grid-template-columns: 1fr
  }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    ;
    background: rgb(255 255 255 / 98%);
    ;
    padding: 12px 4%;
    display: none;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .08)
  }

  .nav.open {
    display: flex
  }

  .nav-toggle {
    color: #183567;
    display: block;
  }

  /* สีปกติ */
  .nav-toggle:hover {
    color: #183567;
  }

  /* สีโฮเวอร์ */

  .nav-toggle span,
  .nav-toggle::before,
  .nav-toggle::after {
    background-color: currentColor;
    /* แท่งสามขีดจะเปลี่ยนตาม color */
  }

  .brand-text {
    display: none
  }

  .fleet-grid {
    grid-template-columns: 1fr
  }

  .service-grid {
    grid-template-columns: 1fr
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr
  }

  .hero-logo {
    display: none
  }

  .socials-www {
  margin: 8px 15px 0px 0px;
}

}

/* โลโก้ตรง header */
.brand-mark {
  height: var(--brand-h);
  width: auto;
  display: block;
  object-fit: contain;
}

/* (ไม่บังคับ) ลด padding header ลงนิดให้สมส่วนกับโลโก้ใหม่ */
.nav-wrap {
  padding: 10px 0;
}

/* เดิม 14px */
.nav a {
  padding: 6px 8px;
}

/* ให้หัวเมนูเตี้ยลงนิด */

@media (max-width: 480px) {
  :root {
    --brand-h: 14px;
  }

  /* บังคับต่ำสุดที่ 14px บนมือถือจอเล็ก */
}

.hero-art-logo {
  display: grid;
  place-items: center;
}

/* จอแท็บเล็ตลงไป: หดลงอีกนิด */
@media (max-width: 1024px) {

  .hero-copy .title,
  .h-title {
    font-size: clamp(20px, 2.8vw, 28px);
  }
}

/* มือถือ: อ่านง่ายแต่ไม่ใหญ่เกิน */
@media (max-width: 640px) {

  .hero-copy .title,
  .h-title {
    font-size: clamp(18px, 5.2vw, 24px);
  }
}

/* มือถือ/แท็บเล็ตเล็ก: ให้ footer เป็นคอลัมน์เดียวและกึ่งกลางทั้งหมด */
@media (max-width: 720px) {
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* 1 คอลัมน์ */
    justify-items: center;
    /* กึ่งกลางแนวนอน */
    row-gap: 14px;
    text-align: center;
    /* ตัวหนังสือกึ่งกลาง */
  }

  .brand-col,
  .contact-col {
    justify-self: center;
    /* ถ้าเป็น flex-column */
    margin: -11px 5px 0px 0px;
    display: grid;
    justify-items: start;

    
  }

  .contact-col .socials {
    display: flex;
    justify-content: center;
    /* ไอคอนกลาง */
    gap: 12px;
  }
}

.txtservices {
  font-size: 20px;
  /* จาก 20 → 18 เป็นฐาน */
  font-weight: 700;
  text-align: center;
  white-space: normal;
}

.services-copy {
  max-width: 980px;
  width: min(92%, 90ch);
  margin-inline: auto;
  text-align: left;          /* คุมระดับบล็อก */
}

.services-copy p {
  font-size: 30px;           /* คงขนาดที่ต้องการ */
  white-space: normal;       /* ต้องเอา pre ออก ไม่งั้น justify ไม่ทำงาน */
  text-align: justify;       /* ยืดเต็มบรรทัด */
  text-justify: inter-character; /* ยืดเป็นตัวอักษร (เหมาะกับภาษาไทย) */
  text-align-last: left;     /* บรรทัดสุดท้ายไม่ยืด */
  line-break: loose;         /* ตัดบรรทัดแนว CJK/Thai */
  word-break: break-word;    /* กันคำยาวล้น */
}

.services-copy::after {
  content: "";
  display: block;
  width: clamp(88px, 60vw, 300px);
  height: clamp(4px, 0.6vw, 8px);
  margin: clamp(16px, 2vw, 10px) auto 0;
  background: rgba(255, 255, 255, .75);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .2);
}

/* กล่องรายชื่อให้คล้ายภาพตัวอย่าง 2 */
.about-list {
  list-style: none;
}

/* ข้อความแต่ละบรรทัด */
.about-list li {
  position: relative;
  padding-left: 1.75rem;
  /* ระยะย่อหน้าจากจุดกลม */
  font-weight: 500;
  font-size: clamp(26px, 1.35vw, 24px);
  /* font-size: clamp(14px, 1.35vw, 18px); */
  line-height: 1.6;
  color: #e9eef5;
  white-space: normal;
    text-align: justify;
  text-justify: inter-character;
  line-break: loose;
  word-break: break-word;
}

/* เว้นระยะบรรทัด */
.about-list li+li {
  margin-top: clamp(8px, 1.2vw, 14px);
}

/* จุดกลมด้านซ้าย */
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  /* จัดให้อยู่กึ่งกลางบรรทัด */
  width: .55em;
  height: .55em;
  border-radius: 50%;
  background: #fff;
  /* จุดสีขาวตามภาพ */
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .12);
  /* วงแหวนจาง ๆ */
}

.services-copy::after {
  content: "";
  box-shadow: 0 1px 0 rgba(0, 0, 0, .2);
}

/* อนุญาตให้เลือกข้อความได้แน่ ๆ ทั้งหัวข้อกับเนื้อหา */
.section-title,
.section-title *,
.services-copy,
.services-copy * {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default;
  /* iOS long-press copy */
}

/* กันเลเยอร์ตกแต่งมาขวางเมาส์ */
.hero-art,
.hero-art-logo,
.strip {
  pointer-events: none;
  /* ยังเห็นภาพ แต่เมาส์ทะลุไปหา text */
  z-index: 0;
}

/* จัดลำดับชั้นให้ส่วนหัวข้อ/เนื้อหาอยู่บน */
#home .container,
.hero .hero-grid,
.section-title,
.services-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-content: center;
}

/* (เผื่อไว้) ถ้า .strip ถูกวางแบบ absolute/fixed ให้กดไว้ใต้เนื้อหา */
.strip {
  position: relative;
  /* หรือ absolute ก็ได้ แต่ต้องต่ำกว่า */
  /* z-index: 0;  (คงไว้ตามด้านบน) */
  /* overflow: visible;  ป้องกัน hitbox แปลก ๆ */
}

/* ปรับน้ำหนัก/สีตัวอักษรบนพื้นหลังเข้ม */
@media (max-width: 640px) {
  .about-list {
    margin: 0px;
  }

  .about-list li {
    /* font-size: clamp(13px, 4.2vw, 14px); */
    font-size: clamp(13px, 4.2vw, 17px);
    right: 25px;
  }
}


/* จอแท็บเล็ตลงไป—ลดอีกนิด */

@media (max-width: 1325px) {
  .services-copy p {
    white-space: normal;
    margin: 10px 0px 10px 0px;
  }

  .about-list {
    list-style: none;
    margin: 0px;
  }
}

/* มือถือเล็ก—กำหนดคงที่ให้เล็กลงชัดเจน */
@media (max-width: 480px) {
  .services-copy p {
    /* font-size: 14px; */
    font-size: 18px;
    line-height: 1.6;
    line-height: 1.6;
    white-space: normal;
    margin: 5px 0px 10px 0px;
  }
}

/* แถบพื้นหลังเข้ม */
.contact-strip {
  background: #222;
  /* สีพื้นตามภาพ */
  padding-block: clamp(32px, 4vw, 56px);
  /* เดิมเล็กไป */
  /* ถ้ายังอยากเว้นนอกบล็อกเพิ่ม: */
  margin-block: clamp(8px, 2vw, 24px);
}

/* กริดการ์ด 5 ใบ */
.contact-cards {
  list-style: none;
  margin: 0;
  padding: 0 clamp(8px, 1.5vw, 16px);
  display: flex;
  flex-wrap: wrap;
  /* พับขึ้นบรรทัดใหม่ */
  justify-content: center;
  /* จัดให้อยู่กึ่งกลางทุกรายแถว */
  gap: clamp(18px, 6.6vw, 73px);
  /* ระยะห่างคงเดิม */
}


/* การ์ดพื้นครีม */
.contact-cards .card {
  width: 100%;
  max-width: 300px;
  min-height: 260px;
  background: #2a7497;
  /* โทนครีม */
  color: #ffffff;
  border-radius: 6px;
  padding: 18px 16px 14px;
  text-align: center;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .15), 0 10px 24px rgba(0, 0, 0, .18);
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative;
  padding-top: 85px;
}

.contact-cards .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .2), 0 14px 28px rgba(0, 0, 0, .22);
}

/* ไอคอนพื้นแดง */
.contact-cards .icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  background: #a61919;
}

.contact-cards .icon .mono {
  font-weight: 900;
  font-size: 12px;
  color: #fff;
  letter-spacing: .3px;
}

.contact-cards h5 {
  margin: 6px 0 4px;
  font-weight: 800;
  font-size: clamp(14px, 1.4vw, 18px);
}

.contact-cards p {
  margin: 0;
  font-size: clamp(16px, 1.2vw, 17px);
}

.contact-cards a {
  color: #efd9af;
  text-decoration: none;
  font-size: clamp(20px, 4vw, 22px);
}

.contact-cards a:hover {
  text-decoration: underline;
}



/* Responsive */
@media (max-width: 1100px) {
  .contact-cards {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 720px) {
  .contact-cards {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 480px) {
  .contact-cards {
    grid-template-columns: 1fr;
    margin: 40px 0px 25px 0px;
  }
}

/* --- Tour & Activities Header --- */
.ta-head {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: clamp(8px, 2.5vw, 28px) auto 22px;
}

.ta-head img {
  max-height: clamp(56px, 9vw, 120px);
  /* ขนาดรถ “เท่ากัน” อัตโนมัติ */
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .28));
}

.ta-title {
  margin: 0;
  font-weight: 800;
  color: #23B0FF;
  /* น้ำเงินสดตามภาพ */
  font-size: clamp(22px, 3.2vw, 46px);
  line-height: 1.1;
  letter-spacing: .3px;
  position: relative;
  text-align: center;
}

/* เส้นขาวใต้หัวข้อ */
.ta-title::after {
  content: "";
  display: block;
  height: 6px;
  width: clamp(160px, 34vw, 459px);
  margin: .38em auto 0;
  background: #E6EDF7;
  /* ขาวอมเทาแบบตัวอย่าง */
  border-radius: 6px;
}

/* ปรับระยะเล็กน้อยให้ทรงใกล้เคียงตัวอย่าง */
.ta-van {
  transform: translateY(4px);
}

.ta-car {
  transform: translateY(2px);
}

.wrap {
  max-width: 1200px;
  margin: 20px auto;
  padding: 10px;
}

.wrap-gme {
  max-width: 1200px;
  margin: 20px auto;
  padding: 10px;
}

.panel {
  background: rgb(99 99 99);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.panel-gme {
  background: rgb(99 99 99);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.bar {
  background: var(--bar);
  color: #fff;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 10px;
  margin: 14px 0 10px;
}

/* แถวภาพ: 4 คอลัมน์ + รูปเล็กลง */
.row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;

  content-visibility: auto;
  contain-intrinsic-size: 600px 400px;
}

.thumb {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #3f474f;
  background: #1f2328;
}

.thumb img {

  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .8);
  z-index: 9999;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(4px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, .28);
}

.thumb:hover img {
  transform: scale(1.04);
}





/* Responsive */
@media (max-width:1024px) {
  .wrap {
    max-width: 760px
  }

  .wrap-gme {
    max-width: 760px;
  }

  .panel-gme{
    height: 720px;
    padding: 5px 20px 0px 20px;
  }

  .thumb img {
    height: 130px;
  }

  .ta-head {
    gap: clamp(12px, 2.5vw, 28px);
  }

  .ta-title::after {
    height: 5px;
    width: 65%;
  }
}

@media (max-width:1325px) {
  .panel-gme{
    margin-top: 100px;
    margin-bottom: 100px;
  }
  
}


@media (max-width:720px) {
  .row {
    grid-template-columns: repeat(2, 1fr);
  }

  .thumb img {
    height: 145px;
  }

  .ta-head {
    gap: 12px;
  }

  .ta-head img {
    max-height: 75px;
  }

  /* ลดขนาดรถ */
  .ta-title {
    font-size: clamp(20px, 5.8vw, 30px);
  }

  .ta-title::after {
    height: 4px;
    width: 105%;
  }
    .panel-gme{
    margin: 0px;
    height:auto;
        padding: 15px 10px 10px 15px;
  }
}

@media (max-width:390px) {
    .thumb img {
    height: 130px;
  }

}

@media (max-width:720px) {
}

/* ขนาดกรอบ hero ที่ยืดหยุ่น */
.contact-hero {
  position: relative;
  width: 100%;
  /*aspect-ratio: 16 / 9;             /* คงสัดส่วน, เปลี่ยนได้ตามต้องการ */
  min-height: clamp(240px, 42vw, 560px);
  overflow: hidden;
}

/* ให้รูป “fit” เต็มกรอบเสมอ */
.contact-hero__img {
  /* position: absolute; */
  inset: 0;
  width: 100%;
  height: clamp(240px, 55vw, 685px);
  object-fit: cover;
  /* คลุมทั้งกรอบ, ไม่บิดภาพ */
  object-position: center;
  /* โฟกัสกลางภาพ */
}

/* เลเยอร์ไล่เฉด/ทับข้อความ (ถ้ามี) */
.contact-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0ea5e999 0%, transparent 40%);
  pointer-events: none;
  margin: 0px 0px 8px 0px;
}

.contact-hero__text {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
}

.contact-hero__text h1 {
  font-size: clamp(28px, 4vw, 56px);
  margin: 0 0 -16px;
}

.contact-hero__text p {
  font-size: clamp(14px, 2vw, 20px);
  margin: 0;
}

/* เผื่อเบราว์เซอร์ไม่รองรับ aspect-ratio */
@supports not (aspect-ratio: 1) {
  .contact-hero {
    height: calc(100vw * 9 / 16);
  }

  @media (min-width: 1200px) {
    .contact-hero {
      height: 560px;
    }
  }
}

/* ============ Contact Cards ============ */
.contact-block {
  padding: 40px 0;
  margin: 55px 0px 0px 0px;
}

.top-icon {
  position: absolute;
  /* ลอยทับ */
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  /* กดให้ครึ่งวงกลมทับลงมา */
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0a5585;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  z-index: 2;
}

.top-icon img {
  width: 62%;
  height: auto;
}


.card-box {
  width: 100%;
  background: #fff;
  border-radius: 22px;
  padding: 28px 20px 22px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .08);
}

.title-c {
  font-size: 25px;
  font-weight: 800;
}

.card-box p {
  margin: 6px 0;
  color: #ffffff;
}

.card-box a {
  color: #0b7dda;
  text-decoration: none;
}

.card-box a:hover {
  text-decoration: underline;
}

/* ------- Responsive ------- */
@media (max-width: 1024px) {
  .contact-cards {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    justify-content: center;
    /* จัดกริดทั้งชุดให้กึ่งกลาง */
  }

  .contact-cards>.card:nth-last-child(2) {
    justify-content: center;
    /* เลื่อนการ์ดตัวแรกของแถวล่างไปคอลัมน์ที่ 2 */
  }

  .top-icon {
    width: 120px;
    height: 120px;
  }

  .contact-cards .card {
    padding-top: 70px;
  }
}

@media (max-width: 560px) {
  .contact-block {
    margin: 0;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .top-icon {
    width: 110px;
    height: 110px;
  }

  .contact-cards .card {
    padding-top: 64px;
  }
}

.section-Contact {
  display: block;
  width: clamp(88px, 60vw, 300px);
  height: clamp(4px, 0.6vw, 8px);
  margin: clamp(16px, 2vw, 10px) auto 0;
  background: #efd9af;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .2);
  margin-bottom: clamp(15px, 2vw, 15px);
}

.btn.btn-line {
  background: #06c755;
  color: #fff;
  border: 0;
  padding: .6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  margin: .3rem 0;
  display: inline-block;
  text-decoration: none
}