/* ============================================================
   MOU LabourPro — Red/White theme inspired by apthai.com
   ============================================================ */
:root {
  --red: #d61f2c;
  --red-dark: #b01523;
  --red-deep: #8f1019;
  --ink: #1e2228;
  --gray: #5c6570;
  --gray-light: #f5f6f8;
  --line: #e6e8ec;
  --white: #ffffff;
  --shadow: 0 8px 30px rgba(20, 24, 32, .08);
  --shadow-lg: 0 16px 48px rgba(20, 24, 32, .14);
  --radius: 14px;
  --font-head: 'Prompt', sans-serif;
  --font-body: 'Sarabun', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  /* overflow-x: clip กันเมนูมือถือ (ที่ซ่อนไว้นอกจอ) ทำให้เลื่อนซ้าย-ขวาได้
     ใช้ clip ไม่ใช้ hidden เพราะ hidden จะทำให้ header แบบ sticky พัง */
  overflow-x: clip;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.3; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.container-narrow { width: min(820px, 92%); }
.txt-red { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
  padding: 13px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  text-align: center;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(214, 31, 44, .35); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.ico-btn { width: 19px; height: 19px; }
.ico-inline { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.btn-contact-line {
  background: #fff; color: var(--red-dark);
  margin-bottom: 26px; padding: 15px 30px; font-size: 17px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.btn-contact-line:hover { background: #fdeaec; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--red-deep); color: #fff; font-size: 13.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; gap: 12px; flex-wrap: wrap; }
.topbar-contact { display: flex; gap: 18px; align-items: center; }
.topbar-line { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.topbar-line .ico-inline { margin-right: 0; vertical-align: 0; }
.topbar a { color: #fff; opacity: .92; }
.topbar a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.logo { display: flex; align-items: center; gap: 11px; }
.logo-img { height: 44px; width: auto; }
.logo-text { font-family: var(--font-head); font-size: 23px; color: var(--ink); }
.logo-text b { font-weight: 700; color: var(--red); letter-spacing: .5px; }
.logo-divider { width: 1px; height: 30px; background: #d5d8dd; }
.logo-slogan {
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: var(--ink); letter-spacing: .2px; white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-family: var(--font-head); font-size: 15px; font-weight: 400;
  padding: 9px 14px; border-radius: 8px; color: var(--ink);
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--red); background: #fdf1f2; }
.nav-link.active { color: var(--red); font-weight: 500; }
.nav-cta {
  background: var(--red); color: #fff !important; border-radius: 999px;
  padding: 10px 22px; margin-left: 8px; font-weight: 500;
}
.nav-cta:hover { background: var(--red-dark) !important; }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.nav-cta .ico-inline { margin-right: 0; vertical-align: 0; }

.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 40px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 55%, #fff 100%),
    linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,252,252,.9) 42%, rgba(255,255,255,.45) 100%),
    url('../assets/hero.jpg') center/cover no-repeat;
}
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-block; font-family: var(--font-head); font-size: 13.5px;
  background: #fdeaec; color: var(--red-dark);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 18px; font-weight: 500;
}
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; margin-bottom: 18px; }
.hero-content > p { color: var(--gray); font-size: 17px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-quickform {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 28px;
  border-top: 4px solid var(--red);
}
.hero-quickform h3 { font-size: 20px; margin-bottom: 16px; }
.hero-quickform input, .hero-quickform select {
  width: 100%; padding: 13px 16px; margin-bottom: 12px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 15px; background: #fff; color: var(--ink);
}
.hero-quickform input:focus, .hero-quickform select:focus { outline: none; border-color: var(--red); }
.quickform-note { font-size: 12.5px; color: var(--gray); margin-top: 12px; text-align: center; line-height: 1.8; }
.note-line-link { color: var(--red); font-weight: 600; }
.note-line-link:hover { text-decoration: underline; }

/* Stats */
.stats {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.stat { text-align: center; padding: 26px 12px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { font-family: var(--font-head); font-size: 32px; color: var(--red); display: block; font-weight: 700; }
.stat span { font-size: 13.5px; color: var(--gray); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-gray { background: var(--gray-light); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-tag {
  display: inline-block; font-family: var(--font-head); font-size: 13.5px; font-weight: 500;
  color: var(--red); background: #fdeaec; padding: 6px 16px; border-radius: 999px; margin-bottom: 14px;
}
.tag-on-red { background: rgba(255,255,255,.15); color: #fff; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; margin-bottom: 12px; }
.section-head p { color: var(--gray); }

/* ---------- Service cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img { height: 170px; position: relative; overflow: hidden; background: var(--gray-light); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-img-ph { display: flex; align-items: center; justify-content: center; font-size: 54px; }
.card-img-ph1 { background: linear-gradient(135deg, #e8505b 0%, var(--red-deep) 100%); }
.card-img-ph2 { background: linear-gradient(135deg, #2b3038 0%, #14171c 100%); }
.card-chip {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: #fff; color: var(--red); font-family: var(--font-head);
  font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
}
.chip-dark { color: var(--ink); }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 18.5px; font-weight: 600; margin-bottom: 10px; }
.card-body > p { font-size: 14px; color: var(--gray); margin-bottom: 14px; }
.card-list { margin-bottom: 18px; }
.card-list li { font-size: 13.5px; color: var(--ink); padding: 4px 0 4px 22px; position: relative; }
.card-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.card-link {
  margin-top: auto; font-family: var(--font-head); font-weight: 500;
  color: var(--red); font-size: 15px; transition: gap .2s;
}
.card-link:hover { text-decoration: underline; }

/* ---------- Why ThaiR ---------- */
.why { margin-top: 60px; }
.why > h3 { text-align: center; font-size: 25px; font-weight: 600; margin-bottom: 28px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-item {
  background: var(--gray-light); border-radius: 14px;
  padding: 26px 20px; text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-ico { font-size: 34px; display: block; margin-bottom: 12px; }
.why-item b { font-family: var(--font-head); font-size: 16.5px; font-weight: 600; display: block; margin-bottom: 6px; }
.why-item p { font-size: 13.5px; color: var(--gray); }

/* ---------- Knowledge ---------- */
.know-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: 56px; }
.know-text h3 { font-size: 24px; margin-bottom: 14px; color: var(--red-dark); }
.know-img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 18px; }
.know-text > p { color: var(--ink); margin-bottom: 24px; }
.know-points { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.know-point { display: flex; gap: 14px; background: #fff; padding: 18px; border-radius: 12px; box-shadow: var(--shadow); }
.know-ico {
  flex: 0 0 40px; height: 40px; border-radius: 50%;
  background: #e7f6ec; color: #1d9d50; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.ico-warn { background: #fdeaec; color: var(--red); }
.know-point b { font-family: var(--font-head); font-size: 16px; }
.know-point p { font-size: 14px; color: var(--gray); margin-top: 2px; }

.steps { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.steps-title { font-size: 20px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid var(--red); display: inline-block; }
.steps-list { list-style: none; counter-reset: step; }
.steps-list li {
  counter-increment: step; position: relative;
  padding: 0 0 22px 56px;
}
.steps-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.steps-list li:not(:last-child)::after {
  content: ''; position: absolute; left: 18.5px; top: 42px; bottom: 4px;
  width: 2px; background: #f3c8cc;
}
.steps-list b { font-family: var(--font-head); font-size: 16px; display: block; }
.steps-list span { font-size: 13.5px; color: var(--gray); }

/* Docs tabs */
.docs { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.docs h3 { font-size: 20px; margin-bottom: 18px; }
.tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.tab {
  font-family: var(--font-head); font-size: 15px; font-weight: 500;
  padding: 10px 24px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--gray); cursor: pointer; transition: .2s;
}
.tab.active { background: var(--red); border-color: var(--red); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.doc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.doc-list li {
  padding: 12px 16px 12px 42px; background: var(--gray-light);
  border-radius: 10px; font-size: 14.5px; position: relative;
}
.doc-list li::before {
  content: '\1F4C4'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 16px;
}
.docs-note { font-size: 13px; color: var(--gray); margin-top: 16px; }

/* ---------- News ---------- */
.news-filter { display: flex; justify-content: center; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.filter-btn {
  font-family: var(--font-head); font-size: 14.5px; font-weight: 500;
  padding: 9px 22px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--gray); cursor: pointer; transition: .2s;
}
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s, opacity .3s;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card.hide { display: none; }
.news-img { height: 170px; position: relative; overflow: hidden; }
.news-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .4s;
}
.news-card:hover .news-img img { transform: scale(1.05); }
.news-img:not(:has(img))::after {
  content: '\1F5BC'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; opacity: .35;
}
.news-img-1 { background: linear-gradient(135deg, #f0d9db, #e4bfc2); }
.news-img-2 { background: linear-gradient(135deg, #dbe3f0, #bfcce4); }
.news-img-3 { background: linear-gradient(135deg, #f0e8d9, #e4d6bf); }
.news-img-4 { background: linear-gradient(135deg, #dcf0d9, #c2e4bf); }
.news-img-5 { background: linear-gradient(135deg, #e8d9f0, #d4bfe4); }
.news-img-6 { background: linear-gradient(135deg, #d9ecf0, #bfdde4); }
.news-tag {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; color: #fff;
}
.tag-news { background: var(--red); }
.tag-guide { background: #1f2937; }
.tag-life { background: #1d9d50; }
.news-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.news-body time { font-size: 12.5px; color: var(--gray); margin-bottom: 8px; }
.news-body h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.news-body p { font-size: 14px; color: var(--gray); margin-bottom: 14px; }
.news-more { margin-top: auto; font-family: var(--font-head); font-size: 14.5px; font-weight: 500; color: var(--red); }
.news-more:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow);
  padding: 0 24px; overflow: hidden;
}
.faq-item summary {
  font-family: var(--font-head); font-weight: 500; font-size: 16.5px;
  padding: 20px 32px 20px 0; cursor: pointer; list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--red); font-weight: 400; transition: transform .25s;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 0 20px; color: var(--gray); font-size: 15px; }

/* ---------- Licenses / certificates ---------- */
.license-grid { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.license-card { margin: 0; text-align: center; width: min(320px, 100%); }
.license-frame {
  aspect-ratio: 3 / 4;
  border: 2px dashed #e3a9ae;
  border-radius: 14px;
  background: #fdf7f7;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--gray);
  font-family: var(--font-head); font-size: 13.5px;
  transition: border-color .2s, background .2s;
}
.license-frame:hover { border-color: var(--red); background: #fdeff0; }
.license-ico { font-size: 40px; opacity: .55; }
.license-card figcaption {
  margin-top: 12px; font-family: var(--font-head);
  font-size: 14.5px; font-weight: 500; color: var(--ink); line-height: 1.45;
}
.license-note { text-align: center; font-size: 13px; color: var(--gray); margin-top: 28px; }
a.license-frame { text-decoration: none; }
.license-filled {
  border: 1.5px solid var(--line); border-style: solid;
  background: #fff; padding: 10px; overflow: hidden;
}
.license-filled:hover { border-color: var(--red); background: #fff; box-shadow: var(--shadow); }
.license-filled img { width: 100%; height: 100%; object-fit: contain; display: block; }
.verify-link { color: var(--red); font-weight: 600; }
.verify-link:hover { text-decoration: underline; }
.contact-legal { font-size: 12.5px; opacity: .72; margin-top: 14px; line-height: 1.6; }

/* ---------- Contact ---------- */
.section-contact {
  background: linear-gradient(135deg, var(--red-deep) 0%, var(--red) 85%);
  color: #fff;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 14px 0 14px; }
.contact-info > p { opacity: .92; margin-bottom: 30px; }
.contact-channels { display: flex; flex-direction: column; gap: 18px; margin-bottom: 26px; }
.contact-channels li { display: flex; gap: 14px; align-items: center; }
.cc-ico {
  flex: 0 0 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center;
  font-size: 19px;
}
.cc-ico img { width: 22px; height: 22px; }
.cc-line { background: #06c755; }
.cc-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.cc-tt { background: #16181d; }
.cc-soon { font-size: 13.5px; opacity: .75; font-style: italic; }
.contact-channels b { font-family: var(--font-head); font-size: 14px; display: block; opacity: .85; font-weight: 400; }
.contact-channels a, .contact-channels div > span { font-size: 16.5px; color: #fff; font-weight: 600; }
.contact-channels a:hover { text-decoration: underline; }
.contact-hours { font-size: 14px; opacity: .8; }

.contact-form-wrap {
  background: #fff; color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 34px;
}
.contact-form-wrap h3 { font-size: 21px; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block; font-family: var(--font-head); font-size: 13.5px; font-weight: 500;
  margin-bottom: 6px; color: var(--ink);
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 15px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 15px; background: #fff; color: var(--ink);
  transition: border-color .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--red);
}
.form-field input.invalid, .form-field select.invalid { border-color: var(--red); background: #fdf5f5; }
textarea { resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--gray); margin: 4px 0 18px; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--red); }
.form-status { margin-top: 14px; text-align: center; font-size: 14.5px; font-weight: 600; min-height: 22px; }
.form-status.ok { color: #1d9d50; }
.form-status.err { color: var(--red); }

/* ---------- Footer ---------- */
.footer { background: #16181d; color: #c9cdd4; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.footer-brand p { font-size: 14px; margin-top: 16px; max-width: 320px; }
.footer-addr { color: #8b919b; }
.footer-col a.logo-footer {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px;
  background: #fff; border-radius: 14px; padding: 18px;
  width: 180px; height: 140px;
}
.logo-footer img { max-height: 70px; width: auto; display: block; }
.logo-footer-text {
  font-family: var(--font-head); font-weight: 700; font-size: 23px;
  color: var(--red); letter-spacing: .5px; line-height: 1;
}
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; font-size: 14.5px; padding: 5px 0; color: #c9cdd4; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.soon-link { opacity: .55; cursor: default; }
.footer-bottom { border-top: 1px solid #2a2d34; padding: 18px 0; font-size: 13px; color: #8b919b; }

/* ---------- Floating contact ---------- */
.float-contact {
  position: fixed; right: 20px; bottom: 24px; z-index: 90;
  display: flex; flex-direction: column; gap: 12px;
}
.float-btn {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.25);
  transition: transform .2s;
}
.float-btn:hover { transform: scale(1.08); }
.float-line { background: #06c755; }
.float-line img { width: 26px; height: 26px; }
.float-phone { background: var(--red); font-size: 20px; }

/* ---------- Article page ---------- */
.article-wrap { width: min(820px, 92%); margin: 0 auto; padding: 44px 0 80px; }
.back-link {
  display: inline-block; font-family: var(--font-head); font-size: 14.5px; font-weight: 500;
  color: var(--gray); margin-bottom: 24px; transition: color .2s;
}
.back-link:hover { color: var(--red); }
.article-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.article-meta .news-tag { position: static; }
.article-meta time { font-size: 14px; color: var(--gray); }
.article-title { font-size: clamp(26px, 4vw, 38px); font-weight: 600; margin-bottom: 20px; }
.article-hero { width: 100%; max-height: 380px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 28px; }
.article-body { font-size: 16.5px; }
.article-body h2 {
  font-size: 21px; font-weight: 600; margin: 30px 0 10px;
  padding-left: 14px; border-left: 4px solid var(--red);
}
.article-body p { margin-bottom: 14px; }
.article-body ul, .article-body ol { margin: 0 0 16px 24px; }
.article-body ul li { list-style: disc; margin-bottom: 8px; }
.article-body ol li { list-style: decimal; margin-bottom: 8px; }
.article-cta {
  background: #fdeaec; border-radius: 16px; padding: 30px;
  text-align: center; margin-top: 44px;
}
.article-cta h3 { font-size: 20px; margin-bottom: 6px; }
.article-cta p { color: var(--gray); margin-bottom: 18px; }
.article-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.related { margin-top: 48px; }
.related h3 { font-size: 20px; margin-bottom: 16px; }
.related ul { display: flex; flex-direction: column; gap: 10px; }
.related a {
  display: flex; align-items: center; gap: 12px;
  background: var(--gray-light); border-radius: 12px; padding: 14px 18px;
  font-family: var(--font-head); font-size: 15px; font-weight: 500;
  transition: background .2s, color .2s;
}
.related a:hover { background: #fdeaec; color: var(--red-dark); }
.rel-cat {
  flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--red);
  background: #fff; padding: 4px 10px; border-radius: 999px;
}
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer-bottom-inner a { color: inherit; text-decoration: underline; }
.news-body h3 a { color: inherit; transition: color .2s; }
.news-body h3 a:hover { color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .license-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .know-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  /* เมนูมือถือ: ใช้ transform เลื่อนเข้า-ออก แทน right ติดลบ
     เพราะ right: -290px ทำให้หน้าเว็บกว้างเกินจอ (เลื่อนซ้าย-ขวาได้) */
  .nav {
    position: fixed; top: 0; right: 0; width: 280px; height: 100vh;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 90px 26px 26px; gap: 4px; box-shadow: var(--shadow-lg);
    transform: translateX(100%);          /* ซ่อนไว้นอกจอ ไม่กินความกว้าง */
    transition: transform .3s ease; z-index: 99;
  }
  .nav.open { transform: translateX(0); } /* เลื่อนเข้ามาเมื่อกดแฮมเบอร์เกอร์ */
  .nav-link { width: 100%; font-size: 17px; padding: 13px 14px; }
  .nav-cta { margin-left: 0; text-align: center; }
  .hamburger { display: block; position: relative; z-index: 100; }
  .hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 720px) {
  .topbar-inner { justify-content: center; }
  .topbar-inner > span { display: none; }
  .section { padding: 60px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .cards-grid, .news-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .doc-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 46px 0 30px; }
}

@media (max-width: 620px) {
  .logo-divider, .logo-slogan { display: none; }
  /* แถบบนสุดบนจอเล็ก: เหลือ LINE + เบอร์โทร ให้อยู่บรรทัดเดียว ไม่ตกบรรทัด */
  .topbar-inner { flex-wrap: nowrap; }
  .topbar-contact { gap: 14px; }
  .topbar-contact > span { display: none; }   /* ซ่อน "เวลาทำการ" (มีอยู่ในการ์ดติดต่อแล้ว) */
  .topbar-contact a { white-space: nowrap; }
}

/* ---------- ช่องทางติดต่อ (แทนที่แบบฟอร์มเดิม) ---------- */
.btn-outline {
  background: transparent; color: var(--ink); border: 2px solid var(--line);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-block { display: flex; width: 100%; margin-bottom: 11px; }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.hq-lead { color: var(--gray); font-size: 14.5px; margin-bottom: 18px; line-height: 1.6; }
.hq-note { color: var(--gray); font-size: 13px; text-align: center; margin-top: 6px; }
.cf-lead { color: var(--gray); font-size: 15px; margin-bottom: 20px; line-height: 1.7; }
.cf-privacy {
  margin-top: 18px; padding: 13px 16px; border-radius: 12px;
  background: var(--gray-light); color: var(--gray);
  font-size: 13.5px; line-height: 1.6;
}
.cf-privacy b { color: var(--ink); }
.contact-form-wrap .btn-outline { background: #fff; }
