/* ===== CSS Variables ===== */
:root {
  --primary: #0b6b5f;
  --primary-dark: #052e28;
  --primary-light: #10b3a3;
  --accent: #f59e0b;
  --text: #0f1f1c;
  --text-light: #52625e;
  --bg: #ffffff;
  --bg-alt: #e9f3f1;
  --border: #dbe6e3;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(11, 107, 95, 0.10);
  --shadow-hover: 0 10px 30px rgba(11, 107, 95, 0.18);
  --shadow-glow: 0 14px 32px rgba(11, 107, 95, 0.26);
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  --max-width: 1180px;
  --transition: all 0.25s ease;
}

/* ===== Icons (SVG sprite) ===== */
.icon-svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: block;
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Prompt', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1600px) {
  :root { --max-width: 1360px; }
  html { font-size: 17px; }
  .section-head h2, .page-hero h1 { white-space: nowrap; }
}
@media (min-width: 2200px) {
  :root { --max-width: 1600px; }
  html { font-size: 19px; }
}

h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }

/* ระยะห่างระหว่างส่วนต่างๆ (ลดลงทั้งเว็บ: เดิม 80px / tight 48px) */
section { padding: 56px 0; }
section.section-tight { padding: 36px 0; }
section.section-tight .section-head { margin-bottom: 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(11, 107, 95, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 107, 95, 0.25);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn-block { width: 100%; }

/* ===== Section Heading ===== */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}
.eyebrow {
  display: inline-block;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(11, 107, 95, 0.1), rgba(16, 179, 163, 0.18));
  box-shadow: 0 2px 10px rgba(11, 107, 95, 0.08);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 10px; }
.section-head p { color: var(--text); font-size: 1.05rem; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 24px rgba(11, 107, 95, 0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary-dark);
}
.logo-img {
  width: 153px;
  height: 68px;
  display: block;
  background-color: var(--primary-dark);
  -webkit-mask-image: url(../images/logo-isothai-blue.png);
  mask-image: url(../images/logo-isothai-blue.png);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  filter: drop-shadow(0 4px 8px rgba(11, 107, 95, 0.35));
}
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
}

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

.nav-links a {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Dropdown menu */
.nav-item-dropdown { position: relative; }
.nav-drop-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--text);
  padding: 6px 0;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}
.nav-drop-toggle .icon-svg { width: 14px; height: 14px; transition: var(--transition); }
.nav-item-dropdown:hover .nav-drop-toggle,
.nav-item-dropdown.open .nav-drop-toggle,
.nav-drop-toggle.active { color: var(--primary); }
.nav-item-dropdown.open .nav-drop-toggle .icon-svg { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-hover);
  padding: 10px;
  min-width: 230px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: var(--transition);
  z-index: 10;
}
.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.dropdown-menu a:hover { background: var(--bg-alt); color: var(--primary); }
.dropdown-menu a .icon-svg { width: 20px; height: 20px; color: var(--primary); }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  /* เขียวเข้มแบบเดิม + ไล่ให้ฝั่งขวาเข้มขึ้นอีกนิด */
  background:
    linear-gradient(90deg, rgba(2, 20, 17, 0) 35%, rgba(2, 20, 17, 0.6) 100%),
    linear-gradient(160deg, var(--primary-dark) 0%, #0a4c43 100%);
  padding: 56px 0 70px; /* ขยับหัวข้อขึ้นชิดเมนูอีกนิด (เดิม 90px) */
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}
.hero::before { display: none; } /* ตัดแสงดวงฝั่งขวาบนออก */
.hero::after { width: 300px; height: 300px; background: rgba(245, 158, 11, 0.2); bottom: -120px; left: 4%; }
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  text-align: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.hero-tag .icon-svg { width: 16px; height: 16px; color: var(--accent); }
.hero h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.hero h1 span { color: #ff7a3d; } /* ส้มอมแดงสด โทนคล้ายโลโก้ Claude แต่สว่างกว่าให้คมบนพื้นเขียวเข้ม */
.hero p span {
  color: #ff7a3d;
  /* บรรทัด "เราขอเสนอ..." ตัวหนาขึ้น + เงาดำแน่นรอบตัวอักษร ให้ส้มคมบนพื้นเขียว */
  font-weight: 600;
  font-size: 1.18em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.85), 0 0 6px rgba(0, 0, 0, 0.45);
}
.hero p strong {
  font-weight: 800;
  color: #ffffff;
  /* ขอบอักษรหนาเท่าป้าย Coming soon!! ด้านล่าง */
  -webkit-text-stroke: 3px #b91c1c;
  paint-order: stroke fill;
  text-shadow: none;
}
/* ป้าย "Coming soon!!" ท้ายบรรทัด ISOengines: เขียวสว่าง + ขอบอักษรแดงเข้ม */
.hero p em {
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.2em; /* ตกไปบรรทัดใหม่ใต้ "เราขอเสนอ..." จึงขยายให้เด่นขึ้น */
  color: #4dff88;
  -webkit-text-stroke: 3px #b91c1c;
  paint-order: stroke fill;
  text-shadow: none;
  white-space: nowrap;
}
.hero p {
  font-size: 1.1rem;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  margin: 0 auto;
  max-width: none;
  text-wrap: balance;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .hero-actions { justify-content: center; }
.hero .btn-primary {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.hero .btn-primary:hover {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}
.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.hero .btn-outline:hover {
  background: var(--white);
  border-color: transparent;
  color: var(--primary-dark);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* วิดีโอ ISOengines ใต้ข้อความ hero: 16:9 บนจอกว้าง, 9:16 บนมือถือ (≤ 767px) */
.hero-video {
  position: relative;
  width: 100%;
  margin: 0 auto;
  /* เงาตามรูปทรงที่เฟดแล้ว (drop-shadow) จึงไม่เห็นเป็นกรอบสี่เหลี่ยม */
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
}
.hero-video video { display: block; width: 100%; height: auto; background: #f8fafc; }
/* จอกว้าง: ขอบขวาของวิดีโอค่อยๆ จางกลืนไปกับพื้นเขียว */
.hero-video .hv-desktop {
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 68%, rgba(0, 0, 0, 0.75) 84%, rgba(0, 0, 0, 0.2) 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 68%, rgba(0, 0, 0, 0.75) 84%, rgba(0, 0, 0, 0.2) 100%);
}
.hero-video .hv-mobile { display: none; }
@media (max-width: 767px) {
  .hero-video { max-width: 400px; }
  .hero-video .hv-desktop { display: none; }
  .hero-video .hv-mobile { display: block; }
}
/* ===== Page Hero (inner pages) ===== */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 46px 0;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  filter: blur(50px);
  top: -140px; right: -60px;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 12px; }
.page-hero p { opacity: 0.9; max-width: 560px; margin: 0 auto; }

/* ===== Cards Grid (Services) ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  position: relative;
  background: var(--white);
  border: 2px solid #9ca3af;
  border-radius: var(--radius);
  padding: 32px 26px;
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11, 107, 95, 0.1), rgba(16, 179, 163, 0.2));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--primary);
  transition: var(--transition);
}
.card:hover .card-icon {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(11, 107, 95, 0.3);
  transform: scale(1.06) rotate(-4deg);
}
.card-icon .icon-svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--text); font-size: 0.96rem; margin-bottom: 16px; }
.card-link { color: var(--primary); font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; }

/* Standards grid: solid, rotating icon colors + an always-on top accent so
   each card reads clearly against a light section instead of blending in */
.standards-grid .card::before { transform: scaleX(1); }
.standards-grid .card-icon { color: var(--white); box-shadow: 0 8px 18px rgba(11, 107, 95, 0.22); }
.standards-grid .card:nth-child(6n+1) .card-icon { background: var(--primary); }
.standards-grid .card:nth-child(6n+1)::before { background: var(--primary); }
.standards-grid .card:nth-child(6n+2) .card-icon { background: var(--primary-light); box-shadow: 0 8px 18px rgba(16, 179, 163, 0.28); }
.standards-grid .card:nth-child(6n+2)::before { background: var(--primary-light); }
.standards-grid .card:nth-child(6n+3) .card-icon { background: var(--accent); box-shadow: 0 8px 18px rgba(245, 158, 11, 0.3); }
.standards-grid .card:nth-child(6n+3)::before { background: var(--accent); }
.standards-grid .card:nth-child(6n+4) .card-icon { background: var(--primary-dark); box-shadow: 0 8px 18px rgba(5, 46, 40, 0.3); }
.standards-grid .card:nth-child(6n+4)::before { background: var(--primary-dark); }
.standards-grid .card:nth-child(6n+5) .card-icon { background: var(--primary); }
.standards-grid .card:nth-child(6n+5)::before { background: var(--primary); }
.standards-grid .card:nth-child(6n+6) .card-icon { background: var(--primary-light); box-shadow: 0 8px 18px rgba(16, 179, 163, 0.28); }
.standards-grid .card:nth-child(6n+6)::before { background: var(--primary-light); }
.standards-grid .card ul { padding-left: 0; list-style: none; }
.standards-grid .card li {
  position: relative;
  padding-left: 32px;
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.standards-grid .card li::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 20px; height: 20px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(11, 107, 95, 0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"), var(--gradient-primary);
  background-size: 12px 12px, cover;
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
}
.standards-grid .card li:last-child { margin-bottom: 0; }
.standards-grid .card h3 { font-size: 1.08rem; }

/* ส่วนมาตรฐาน: พื้นเทาอ่อน กรอบการ์ดขาวล้วน มุมเหลี่ยม */
.section-standards { background: #f3f4f6; }
.standards-grid .card { border-radius: 0; background: #ffffff; padding: 28px 22px; }

.bg-alt { background: linear-gradient(180deg, var(--bg-alt) 0%, #dcefec 100%); }

/* ===== Process / Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { text-align: center; position: relative; }
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 6px 16px rgba(11, 107, 95, 0.3);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin: 0 auto 18px;
}
.step h4 { margin-bottom: 8px; font-size: 1.05rem; }
.step p { color: var(--text); font-size: 0.92rem; }

/* ===== About page ===== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about-visual {
  position: relative;
  aspect-ratio: 1/1;
  border: 2px solid #9ca3af;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  transition: var(--transition);
}
.about-visual:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}
.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* หน้าบริการของเรา: ภาพประกอบเล็กลง (สูงสุด 450px) ให้ข้อความได้พื้นที่มากขึ้น */
[data-page="services"] .about-grid { grid-template-columns: 1.15fr 0.85fr; }
[data-page="services"] .about-grid:has(> .about-visual:first-child) { grid-template-columns: 0.85fr 1.15fr; }
[data-page="services"] .about-visual { width: 100%; max-width: 450px; justify-self: center; }
@media (max-width: 980px) {
  [data-page="services"] .about-grid,
  [data-page="services"] .about-grid:has(> .about-visual:first-child) { grid-template-columns: 1fr; }
  [data-page="services"] .about-visual { max-width: 320px; }
}
.about-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.check {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 4px 10px rgba(11, 107, 95, 0.3);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
/* เกี่ยวกับเรา › พันธกิจของเรา: กรอบมุมเหลี่ยม */
.value-grid .card { border-radius: 0; }
/* บริการของเรา: กรอบมุมเหลี่ยมแบบเดียวกัน */
.services-grid .card { border-radius: 0; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.team-card { text-align: center; }
.team-avatar {
  width: 100%; aspect-ratio: 1/1;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; color: var(--white);
  margin-bottom: 16px;
}
.team-card h4 { font-size: 1rem; margin-bottom: 4px; }
.team-card span { color: var(--primary); font-size: 0.85rem; font-weight: 500; }

.stats-band {
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 50px 0;
}
.stats-band .grid-4 { text-align: center; }
.stats-band strong { display: block; font-size: 2.2rem; margin-bottom: 6px; }
.stats-band span { opacity: 0.85; font-size: 0.9rem; }

/* ===== Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  position: relative;
  transform: scale(1.03);
}
.price-badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.price-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.price-card .price { font-size: 2.2rem; font-weight: 800; color: var(--primary-dark); margin: 14px 0; }
.price-card .price small { font-size: 0.95rem; font-weight: 500; color: var(--text-light); }
.price-card ul { margin: 22px 0; flex-grow: 1; }
.price-card li {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: var(--text);
}

/* ===== Portfolio ===== */
.filter-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-light);
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-alt), #e2f1ef);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  position: relative;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(15,118,110,0.9), transparent);
  color: var(--white);
  padding: 18px 16px 12px;
  font-size: 0.85rem;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ===== Blog ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-grid.news-grid { grid-template-columns: repeat(4, 1fr); }
.blog-card { background: var(--white); border: 2px solid #9ca3af; border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.blog-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-hover); }
/* การ์ดบทความ/ข่าวสารทุกหน้า: มุมเหลี่ยม */
.blog-card { border-radius: 0; }
.blog-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: var(--white);
  position: relative;
  overflow: hidden;
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-thumb .icon-svg { width: 42px; height: 42px; color: rgba(255,255,255,0.9); }
.blog-body { padding: 24px; }
.blog-meta { display: flex; gap: 14px; font-size: 0.8rem; color: var(--text-light); margin-bottom: 10px; }
.blog-body h3 { font-size: 1.08rem; margin-bottom: 10px; }
.blog-body p { color: var(--text); font-size: 0.92rem; margin-bottom: 14px; }

/* ===== Knowledge base (องค์ความรู้) ===== */
.category-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }

/* Plain list of articles (no thumbnails) - used on the องค์ความรู้ page and
   the homepage's "บทความน่ารู้" section. */
.article-list { border-top: 1px solid var(--border); }
.article-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  transition: var(--transition);
}
.article-row:hover { background: var(--bg-alt); }
.article-row-cat {
  display: inline-block;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.article-row-main h3 { font-size: 1.1rem; font-weight: 400; margin-bottom: 0; }
.article-row-main p { color: var(--text); font-size: 0.92rem; max-width: 640px; }
.article-row-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-light);
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}
.article-row-meta .icon-svg { width: 18px; height: 18px; color: var(--primary); }

.article-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: 50px; }
.article-hero-img { border-radius: 0; overflow: hidden; margin-bottom: 30px; aspect-ratio: 16/8; }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article-content { font-size: 1.02rem; color: var(--text); }
.article-content h2 { font-size: 1.4rem; margin: 32px 0 14px; }
.article-content p { color: var(--text); margin-bottom: 18px; line-height: 1.7; }
.article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: var(--primary-dark); }
.article-content ul { margin: 0 0 18px 0; }
.article-content li { color: var(--text); display: flex; gap: 10px; margin-bottom: 10px; line-height: 1.7; }
.article-content li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-top: 9px; flex-shrink: 0; }
.article-content table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; margin: 0 0 22px; font-size: 0.95rem; border-radius: 0; overflow: hidden; box-shadow: var(--shadow); }
.article-content th, .article-content td { border: 1px solid var(--border); border-left: none; padding: 12px 16px; text-align: left; vertical-align: top; overflow-wrap: break-word; }
.article-content th:first-child, .article-content td:first-child { width: 25%; }
.article-content th { background: var(--primary-dark); color: var(--white); font-weight: 600; border-color: var(--primary-dark); text-align: center; }
.article-content td { color: var(--text); }
.article-content tbody tr:nth-child(even) { background: var(--bg-alt); }
.article-content tbody tr td:first-child { border-left: 4px solid var(--primary); font-weight: 600; color: var(--text); }
.article-content tbody tr:nth-child(3n+2) td:first-child { border-left-color: var(--primary-light); }
.article-content tbody tr:nth-child(3n+3) td:first-child { border-left-color: var(--accent); }
.article-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.article-tags span { background: var(--bg-alt); color: var(--primary-dark); font-size: 0.82rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; }

.sidebar-card { background: var(--bg-alt); border-radius: 0; padding: 26px; margin-bottom: 24px; }
.sidebar-card-green { border-top: 4px solid var(--primary); }
.sidebar-card-orange { background: #fdf3e7; border-top: 4px solid var(--accent); }
.sidebar-card h4 { font-size: 1rem; margin-bottom: 16px; }
.sidebar-cat-list a { display: flex; justify-content: space-between; padding: 10px 0; font-size: 0.92rem; border-bottom: 1px solid var(--border); }
.sidebar-cat-list a:last-child { border-bottom: none; }
.sidebar-cat-list a:hover { color: var(--primary); }
.sidebar-cat-list span { color: var(--text-light); font-size: 0.82rem; }
.sidebar-post { display: flex; gap: 12px; margin-bottom: 16px; }
.sidebar-post:last-child { margin-bottom: 0; }
.sidebar-post-thumb { width: 60px; height: 60px; border-radius: 0; flex-shrink: 0; background: linear-gradient(135deg, var(--primary-light), var(--primary)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-thumb .icon-svg { width: 22px; height: 22px; color: #fff; }
.sidebar-post h5 { font-size: 0.88rem; line-height: 1.5; }
.sidebar-post h5 a:hover { color: var(--primary); }

/* ===== Testimonials ===== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.stars { color: var(--accent); margin-bottom: 14px; letter-spacing: 2px; }
.testi-card p { color: var(--text); margin-bottom: 20px; font-size: 0.95rem; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--primary);
}
.testi-person strong { display: block; font-size: 0.92rem; }
.testi-person span { font-size: 0.8rem; color: var(--text-light); }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 4px;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
}
.faq-question .icon { font-size: 1.3rem; color: var(--primary); transition: var(--transition); flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text);
  font-size: 0.94rem;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 22px; }

/* ===== CTA Band ===== */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-radius: 24px;
  padding: 60px;
  text-align: center;
  margin: 0 24px;
  box-shadow: 0 20px 46px rgba(11, 107, 95, 0.25);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  filter: blur(60px);
  top: -160px; right: -60px;
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta-band p { opacity: 0.9; margin-bottom: 30px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; }
.contact-info-card {
  background: #fdf3e7;
  border: 2px solid #9ca3af;
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: var(--transition);
}
.contact-info-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info-item .card-icon { margin-bottom: 0; flex-shrink: 0; background: var(--white); }
.contact-info-item h4 { font-size: 0.98rem; margin-bottom: 4px; }
.contact-info-item p { color: var(--text); font-size: 0.9rem; margin: 0; }
.social-row { display: flex; gap: 12px; margin-top: 10px; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.social-row a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid #9ca3af;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 107, 95, 0.12);
}
.form-note { font-size: 0.82rem; color: var(--text-light); margin-top: 10px; }
.form-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.form-success.show { display: block; }
.form-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.form-error.show { display: block; }

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(180deg, #0a332d 0%, var(--primary-dark) 100%);
  color: #cdece7;
  padding: 56px 0 0;
  margin-top: 0; /* section สุดท้ายมี padding อยู่แล้ว (เดิม 100px) */
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 1.2rem; color: var(--white); margin-bottom: 16px; }
.footer-logo-img { height: 52px; width: auto; display: block; filter: brightness(0) invert(1); }
.footer-logo-text { line-height: 1.3; }
.footer-about p { font-size: 0.9rem; opacity: 0.75; margin-bottom: 20px; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 20px; }
.footer-col li { margin-bottom: 12px; font-size: 0.9rem; opacity: 0.8; display: flex; align-items: flex-start; gap: 10px; }
.footer-col li .icon-svg { width: 16px; height: 16px; margin-top: 2px; color: var(--primary-light); }
.footer-col a:hover { opacity: 1; color: var(--primary-light); }
.footer-social { display: flex; gap: 10px; margin-top: 6px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary-light); }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 90;
  font-size: 1.2rem;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ===== AI chat widget (js/chat-widget.js) ===== */
body.has-chat .back-to-top { bottom: 92px; }
.chat-widget { position: fixed; right: 28px; bottom: 28px; z-index: 95; font-family: inherit; }
.chat-toggle {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--gradient-primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow); transition: var(--transition);
}
.chat-toggle:hover { transform: translateY(-2px) scale(1.04); }
.chat-widget.is-open .chat-toggle,
.chat-widget.is-open .chat-label { display: none; }
/* "มีคำถาม? …" speech label beside the chat button */
.chat-label {
  position: absolute; right: 68px; bottom: 9px; white-space: nowrap; cursor: pointer;
  background: var(--white); color: var(--primary-dark); border: 1px solid var(--border);
  font: inherit; font-size: 0.9rem; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  box-shadow: var(--shadow-hover); animation: chat-label-in 0.5s ease 1s both;
}
.chat-label::after {
  content: ""; position: absolute; right: -6px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  background: var(--white); border-top: 1px solid var(--border); border-right: 1px solid var(--border); transform: rotate(45deg);
}
.chat-label:hover { color: var(--primary); }
@keyframes chat-label-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.chat-panel {
  position: absolute; right: 0; bottom: 0;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 18px 48px rgba(5, 46, 40, 0.25);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: var(--white);
}
.chat-head strong { display: block; font-size: 1rem; }
.chat-head span { font-size: 0.75rem; opacity: 0.85; }
.chat-close { background: none; border: none; color: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-preview-note { background: #fff7ed; color: #9a3412; font-size: 0.75rem; padding: 6px 14px; border-bottom: 1px solid #fed7aa; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-alt); }
.chat-msg { max-width: 86%; padding: 9px 13px; border-radius: 14px; font-size: 0.9rem; line-height: 1.6; overflow-wrap: anywhere; }
.chat-msg a { color: inherit; text-decoration: underline; }
.chat-msg-assistant { align-self: flex-start; background: var(--white); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-msg-user { align-self: flex-end; background: var(--primary); color: var(--white); border-bottom-right-radius: 4px; }
.chat-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-light); animation: chat-dot 1.2s infinite ease-in-out; }
.chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--white); }
.chat-form textarea {
  flex: 1; resize: none; border: 1px solid var(--border); border-radius: 12px; padding: 9px 12px;
  font: inherit; font-size: 0.9rem; line-height: 1.5; max-height: 120px; outline: none;
}
.chat-form textarea:focus { border-color: var(--primary); }
.chat-form button {
  width: 40px; height: 40px; flex-shrink: 0; border: none; border-radius: 50%; cursor: pointer;
  background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center;
}
.chat-form button:disabled { opacity: 0.5; cursor: default; }
.chat-foot { font-size: 0.7rem; color: var(--text-light); text-align: center; padding: 0 12px 10px; background: var(--white); }
.chat-foot a { color: var(--primary); }
@media (max-width: 600px) {
  .chat-widget { right: 16px; bottom: 16px; }
  body.has-chat .back-to-top { right: 20px; bottom: 84px; }
  .chat-panel { position: fixed; right: 8px; left: 8px; bottom: 8px; width: auto; height: calc(100vh - 16px); height: calc(100dvh - 16px); }
}

/* ===== ISOengines page ===== */
.ie-intro { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.ie-shot {
  display: block;
  background: #fff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 18px 40px rgba(15, 31, 28, 0.14);
  overflow: hidden;
  transition: var(--transition);
}
.ie-shot:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(15, 31, 28, 0.2); }
.ie-shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.ie-en { font-size: 0.82rem; font-weight: 600; color: var(--primary-light); letter-spacing: 0.02em; margin-bottom: 4px; }
.ie-ea { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ie-ea-item { background: var(--white); border: 2px solid #9ca3af; padding: 18px 20px; }
.ie-ea-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; color: var(--primary); margin-bottom: 6px; }
.ie-ea-title .icon-svg { width: 22px; height: 22px; color: var(--accent); }
.ie-ea-item p { font-size: 0.93rem; color: var(--text); margin: 0; }
.ie-modules .card { border-radius: 0; }
.ie-modules .card h3 { margin-bottom: 8px; }
.ie-modules .card p { margin-bottom: 0; }
.ie-feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.ie-feature + .ie-feature { margin-top: 56px; }
.ie-feature.reverse .ie-shot { order: 2; }
.ie-feature h3 { font-size: 1.6rem; margin-bottom: 12px; }
.ie-feature p { color: var(--text); font-size: 1.02rem; margin-bottom: 18px; }
@media (max-width: 980px) {
  .ie-intro, .ie-feature { grid-template-columns: 1fr; gap: 32px; }
  .ie-feature.reverse .ie-shot { order: 0; }
  .ie-feature + .ie-feature { margin-top: 40px; }
}
@media (max-width: 600px) {
  .ie-ea { grid-template-columns: 1fr; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero .container, .about-grid, .contact-grid, .article-layout { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .value-grid, .team-grid, .pricing-grid, .gallery-grid, .blog-grid, .blog-grid.news-grid, .testi-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Nav switches to the mobile hamburger menu earlier than the 768px content
   breakpoint below - the desktop nav row (logo + links + CTA) no longer fits
   its content without wrapping once the viewport drops under ~1150px. */
@media (max-width: 1170px) {
  .nav-links {
    position: fixed; top: 101px; left: 0; right: 0; height: calc(100vh - 101px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    gap: 24px;
    transform: translateX(-100%);
    transition: var(--transition);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-cta .btn-outline { display: none; }
  .nav-item-dropdown { width: 100%; }
  .nav-drop-toggle { width: 100%; justify-content: space-between; }
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 6px;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
  }
  .nav-item-dropdown:hover .dropdown-menu,
  .nav-item-dropdown.open .dropdown-menu,
  .nav-item-dropdown.open:hover .dropdown-menu {
    transform: none;
  }
  .nav-item-dropdown:hover .dropdown-menu { max-height: 0; }
  .nav-item-dropdown.open .dropdown-menu,
  .nav-item-dropdown.open:hover .dropdown-menu {
    max-height: 260px;
    margin: 6px 0 0;
  }
}

@media (max-width: 768px) {
  section { padding: 40px 0; }
  section.section-tight { padding: 28px 0; }
  .cta-band { padding: 40px 24px; margin: 0 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
}

@media (max-width: 620px) {
  .grid-3, .grid-4, .value-grid, .team-grid, .pricing-grid, .gallery-grid, .blog-grid, .blog-grid.news-grid, .testi-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-row { flex-direction: column; gap: 8px; }
  .article-row-meta { padding-top: 0; }
}

/* ป้ายข้อความเด่นใต้คำอธิบายหน้า (เช่น Coming Soon!! บนหน้า ISOengines) — แก้ข้อความได้ในแอดมิน */
.page-hero .page-hero-badge {
  margin: 18px auto 0;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  opacity: 1;
  color: #4dff88;
  -webkit-text-stroke: 4px #b91c1c;
  paint-order: stroke fill;
}
