/* APC Learning — หน้าบ้าน (บิล 691023-02)
 * แนว: Editorial + พฤกษา ตามแบบที่ลูกค้าเลือก (โครงแบบ 1)
 * แก้ไขรอบที่ 1 (2026-10-30): ลูกค้าขอพื้นขาวเรียบทั้งเว็บ ไม่เอาพื้นครีมและลายใบไม้ — คงสีเขียวป่าไว้เฉพาะแถบเด่น (แบบทดสอบ ปิดท้าย ท้ายเว็บ)
 * สีแบรนด์จากบรีฟ: เขียวป่า #15352A · ขาว #FFFFFF · เซจ #DDE6DA · กรมท่า #102747 · ทองแชมเปญ #D9B75B
 * ฟอนต์เดียวทั้งเว็บ: IBM Plex Sans Thai (400/500/600/700) */
:root {
  --accent: #15352A;
  --accent-2: #24503f;
  --ink: #102747;
  --paper: #FFFFFF;
  --sage: #DDE6DA;
  --gold: #D9B75B;
  --gold-ink: #6b5212;
  --card: #fff;
  --line: rgba(16, 39, 71, .12);
  --muted: #56627a;
  --radius: 18px;
  --font: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, sans-serif;
  --shadow: 0 18px 40px rgba(21, 53, 42, .10);
  --ease: cubic-bezier(.22, .8, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.7; }
img, svg, video { max-width: 100%; }
/* ไอคอนเส้นของ site/icons.js ไม่มี fill/stroke ในตัว — ให้เป็นเส้นสีเดียวกับตัวหนังสือ ความหนาเท่ากันทั้งเว็บ */
svg:not([fill]) { fill: none; stroke: currentColor; stroke-width: 1.7; }
img { height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.3; font-weight: 700; letter-spacing: -.005em; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; width: 1px; height: 1px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .06em; margin: 0 0 10px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }

/* ---------- ปุ่ม ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 999px;
  background: var(--accent); color: #fff; border: 1.5px solid var(--accent); font: inherit; font-size: 16px; font-weight: 600; line-height: 1.3;
  text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(21, 53, 42, .22); }
.btn:active { transform: none; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: rgba(21, 53, 42, .06); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1a1608; }
.btn-gold:hover { background: #e3c46f; box-shadow: 0 10px 24px rgba(217, 183, 91, .35); }
.btn-light { background: #fff; color: var(--accent); border-color: #fff; }
.btn-link { background: none; border-color: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; padding-inline: 8px; }
.btn-link:hover { box-shadow: none; }
.btn-lg { min-height: 52px; padding: 12px 28px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn .i { width: 18px; height: 18px; }

/* ---------- หัวเว็บ ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 8px 24px rgba(16, 39, 71, .06); }
.nav-wrap { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.logo { display: flex; flex: none; }
/* แก้ด่วน-697: คุมโลโก้ด้วยความสูง ไม่ล้นหัวเว็บ ไม่ว่าลูกค้าอัปโลโก้สัดส่วนไหน */
.logo img { width: auto; height: 62px; max-width: 160px; object-fit: contain; display: block; padding: 4px 0; box-sizing: content-box; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 500; position: relative; white-space: nowrap; }
.menu a:hover { color: var(--accent); background: rgba(221, 230, 218, .55); }
.menu a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.menu a[aria-current="page"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--gold); border-radius: 2px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang a { padding: 6px 10px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; min-width: 36px; text-align: center; }
.lang a[aria-current] { background: var(--accent); color: #fff; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn .count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: #1a1608; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.icon-btn .count[hidden] { display: none; }
.menu-btn { display: none; }
@media (max-width: 1080px) {
  .menu { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; padding: 8px 16px 20px; background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(16, 39, 71, .12); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s var(--ease); }
  .menu a { padding: 13px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu a[aria-current="page"]::after { display: none; }
  body.nav-open .menu { transform: none; opacity: 1; visibility: visible; }
  .menu-btn { display: inline-grid; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .logo img { height: 52px; max-width: 120px; }
  .nav-cta span { display: none; }
  .nav-cta { width: 44px; height: 44px; padding: 0; min-height: 0; }
  .lang a { padding: 6px 7px; min-width: 30px; }
  .nav-wrap { gap: 8px; }
}

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero-track { display: flex; }
.hero-slide { position: relative; flex: 0 0 100%; min-height: clamp(520px, 78vh, 760px); display: flex; align-items: center; }
.hero-pic, .hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-pic img { object-fit: cover; object-position: 72% center; }
.hero-slide::before { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .9) 32%, rgba(255, 255, 255, .35) 58%, rgba(255, 255, 255, 0) 75%); }
.hero-slide .wrap { position: relative; z-index: 2; }
.hero-body { max-width: 600px; padding: 56px 0 80px; }
.hero-eyebrow { font-size: 13.5px; font-weight: 600; letter-spacing: .14em; color: var(--accent); margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.hero-title { font-size: clamp(42px, 7vw, 84px); line-height: 1.08; margin: 0; color: var(--accent); letter-spacing: -.02em; }
.hero-sub { font-size: clamp(19px, 2.3vw, 28px); color: var(--ink); margin: 14px 0 0; font-weight: 500; line-height: 1.4; }
.hero-text { font-size: clamp(16px, 1.5vw, 18px); color: var(--muted); margin: 16px 0 0; max-width: 46ch; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; background: rgba(21, 53, 42, .25); cursor: pointer; padding: 0; transition: width .3s; }
.hero-dots button[aria-current="true"] { width: 28px; background: var(--accent); }
@media (max-width: 719px) {
  .hero-slide { min-height: auto; flex-direction: column; align-items: stretch; }
  .hero-pic { position: relative; inset: auto; height: 54vh; max-height: 440px; order: 2; }
  .hero-pic img { position: absolute; }
  .hero-slide::before { display: none; }
  .hero-body { padding: 28px 0 26px; }
  .hero-btns .btn { flex: 1 1 auto; }
  .hero-dots { bottom: 10px; }
}
/* สไลด์รูปคอร์สใต้ภาพปก (render.js heroCourses) — ลูกค้าขอ 2026-11-02: จอคอมไม่ทับภาพปกแล้ว ย้ายลงเป็นแถวเต็มความกว้างใต้ภาพ
   จอแคบ: ซ่อนภาพปก ต่อใต้ข้อความ */
.hero.has-courses { display: flex; flex-direction: column; }
.hc-layer { position: relative; z-index: 3; padding: 36px 0 40px; background: #fff; }
.hero.has-courses .hero-dots { position: static; padding: 0 0 20px; background: #fff; }
.hc { width: 100%; }
.hc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px 14px; }
.hc-title { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: clamp(18px, 1.8vw, 22px); color: var(--accent); line-height: 1.4; }
.hc-title svg { width: 22px; height: 22px; color: var(--gold-ink); }
.hc-arrows { display: flex; gap: 8px; }
.hc-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--accent);
  display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .2s, color .2s, transform .15s; }
.hc-arrow svg { width: 20px; height: 20px; }
.hc-arrow:hover { background: var(--accent); color: #fff; }
.hc-arrow:active { transform: scale(.94); }
.hc.is-fit .hc-arrows { visibility: hidden; }
.hc-track { display: flex; justify-content: safe center; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain; padding: 2px 2px 14px; border-radius: 16px; }
.hc-track::-webkit-scrollbar { display: none; }
.hc-card { flex: 0 0 calc((100% - 3 * 18px) / 4); scroll-snap-align: start; aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden; background: #f3f5f2;
  box-shadow: 0 10px 26px -14px rgba(16, 39, 71, .5); transition: transform .3s cubic-bezier(.22, .8, .3, 1); }
.hc-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (hover: hover) { .hc-card:hover { transform: translateY(-4px); } }
@media (max-width: 1099px) { .hc-card { flex-basis: calc((100% - 2 * 18px) / 3); } }
@media (max-width: 959px) {
  .hero.has-courses .hero-slide { min-height: auto; flex-direction: column; align-items: stretch; }
  .hero.has-courses .hero-slide::before { display: none; }
  .hero.has-courses .hero-pic { display: none; }
  .hero.has-courses .hero-body { padding: 36px 0 8px; }
  .hc-layer { padding: 8px 0 40px; }
  .hc-track { gap: 14px; }
  .hc-card { flex-basis: min(300px, 44%); }
}
@media (max-width: 719px) {
  .hero.has-courses .hero-body { padding: 28px 0 4px; }
  .hc-card { flex-basis: 64%; }
  .hc-layer { padding-bottom: 28px; }
}
.hero-split .hero-slide::before { background: linear-gradient(90deg, var(--paper) 0 48%, transparent 48%); }
.hero-compact .hero-slide { min-height: 320px; }

/* ---------- บล็อกทั่วไป ---------- */
.sec { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 36px); }
.sec-head h2 { font-size: clamp(28px, 3.8vw, 44px); margin: 0; color: var(--ink); max-width: 20ch; }
.sec-head.is-center { justify-content: center; text-align: center; }
.sec-head.is-center h2 { max-width: none; }
.sec-intro { margin: 10px 0 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); max-width: 60ch; }
.sec-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--accent); white-space: nowrap; }
.sec-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.sec-more .i { width: 18px; height: 18px; }
.sec-soft { background: #fff; }

/* แถบจุดเด่น (โครงแบบ 1: 4 ข้อคั่นเส้นตั้ง ไอคอนในวงทอง) */
.sec-strip { padding: 34px 0; background: #fff; border-block: 1px solid var(--line); }
.sec-strip .sec-head { margin-bottom: 18px; }
.features-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
@media (min-width: 900px) { .features-grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 0; }
  .feature + .feature { border-left: 1px solid var(--line); } .feature { padding: 4px 22px; } }
.feature { display: flex; gap: 14px; align-items: center; }
.feature h3 { font-size: 16.5px; margin: 0; }
.feature p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.feature-icon { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--accent);
  border: 1.5px solid var(--gold); background: #fff; }
.feature-icon svg { width: 26px; height: 26px; }
@media (max-width: 480px) { .feature { flex-direction: column; text-align: center; } .feature-icon { width: 50px; height: 50px; } }

/* คอร์สบนพื้นใบไม้ */
.sec-courses { background: #fff; }
.sec-cats { background: #fff; }
.cats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cat { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-pic { flex: none; width: 76px; height: 76px; border-radius: 16px; overflow: hidden; }
.cat-pic img { width: 100%; height: 100%; object-fit: cover; }
.cat-ic { flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--sage); color: var(--accent); }
.cat-ic .i { width: 28px; height: 28px; }
.cat-body { display: grid; gap: 2px; }
.cat-body b { font-size: 17.5px; }
.cat-body small { color: var(--muted); line-height: 1.5; }
.cat-body em { font-style: normal; color: var(--accent); font-weight: 600; font-size: 14.5px; display: inline-flex; gap: 4px; align-items: center; }

/* เกี่ยวกับเรา (รูปโค้งมุมใหญ่ + ใบไม้ลายเส้น) */
.sec-about { background: #fff; overflow: hidden; }
.about { position: relative; display: grid; gap: clamp(24px, 4vw, 60px); align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 6fr; } .about.pic-right .about-pic { order: 2; } }
.about-pic img { width: 100%; border-radius: 30px 160px 30px 30px; box-shadow: var(--shadow); display: block; }
.about-text h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 14px; }
.about-text p { color: #2c3a52; }
.about-text .btn { margin-top: 10px; }

/* ตัวเลขเด่น */
.sec-stats { padding: 40px 0; background: #fff; border-block: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 0; text-align: center; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(var(--n, 4), 1fr); } .stats > div + div { border-left: 1px solid var(--line); } }
.stats dt { font-size: clamp(34px, 4.6vw, 52px); font-weight: 700; color: var(--accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats dd { margin: 4px 0 0; color: var(--muted); }

/* ผู้สอน */
.sec-team { background: #fff; }
.team { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .team { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.member { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.member:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.member-pic { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sage); }
.member-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.member-body { padding: 14px 16px 16px; display: grid; gap: 2px; }
.member-body b { font-size: 17.5px; }
.member-body small { color: var(--accent); font-weight: 600; }
.member-body em { font-style: normal; color: var(--muted); font-size: 14px; }

/* รีวิว */
.sec-reviews { background: #fff; }
@media (min-width: 1000px) { .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }

/* แบบทดสอบฟรี (แถบเขียวป่า + การ์ดผลสอบตัวอย่าง) */
.sec-test { padding-block: clamp(40px, 6vw, 80px); }
.test-band { display: grid; gap: 28px; align-items: center; padding: clamp(26px, 5vw, 56px); border-radius: 28px; color: #fff;
  background: var(--accent); }
@media (min-width: 900px) { .test-band { grid-template-columns: 1.2fr .8fr; } }
.test-band .eyebrow { color: var(--gold); }
.test-band h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 12px; }
.test-band p { color: rgba(255, 255, 255, .85); }
.test-band ul { list-style: none; padding: 0; margin: 14px 0 24px; display: grid; gap: 10px; }
.test-band li { display: flex; gap: 10px; align-items: center; }
.test-band li .i { color: var(--gold); }
.test-pic img { width: 100%; border-radius: 20px; }
.test-choices { display: grid; gap: 14px; }
.test-choice { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: 20px; background: #fff; color: var(--ink); text-decoration: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.test-choice:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(0, 0, 0, .24); }
.test-choice .tc-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--sage); color: var(--accent); }
.test-choice .tc-ic svg { width: 26px; height: 26px; }
.test-choice .tc-body { display: grid; gap: 2px; min-width: 0; }
.test-choice b { font-size: 18px; line-height: 1.4; }
.test-choice small { color: var(--muted); font-size: 14.5px; }
.test-choice em { font-style: normal; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.test-choice em svg { width: 18px; height: 18px; }
.test-card { background: #fff; color: var(--ink); border-radius: 22px; padding: 22px; display: grid; gap: 12px; box-shadow: 0 26px 50px rgba(0, 0, 0, .25); transform: rotate(-2deg); }
.tc-score { font-size: 56px; font-weight: 700; color: var(--accent); line-height: 1; }
.tc-score small { font-size: 18px; color: var(--muted); }
.tc-row { height: 10px; border-radius: 10px; background: #eef0ea; overflow: hidden; }
.tc-row i { display: block; height: 100%; background: #2f8a5d; }
.tc-row:nth-of-type(3) i { background: #d29a1c; }
.tc-row.low i { background: #c0392b; }
.test-card small { color: var(--muted); font-size: 13px; }

/* บทความ */
.sec-articles { background: #fff; }
.posts { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); position: relative; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-pic { aspect-ratio: 16 / 9; background: var(--sage); display: block; }
.post-pic img { width: 100%; height: 100%; object-fit: cover; }
.post-ph { display: grid; place-items: center; height: 100%; color: var(--accent); }
.post-ph .i { width: 40px; height: 40px; }
.post-body { padding: 16px 18px 20px; }
.post h3, .post h2 { font-size: 18.5px; margin: 4px 0 8px; }
.post h3 a, .post h2 a { color: var(--ink); text-decoration: none; }
.post h3 a::after, .post h2 a::after { content: ''; position: absolute; inset: 0; }
.post p { color: var(--muted); margin: 0; font-size: 15.5px; }
.a-meta { color: var(--muted); font-size: 14px; margin: 0; }

/* Newsletter */
.sec-news { padding-block: clamp(40px, 6vw, 72px); }
.news-band { display: grid; gap: 20px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 26px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); position: relative; overflow: hidden; }
@media (min-width: 900px) { .news-band { grid-template-columns: 1fr 1fr; } }
.news-band h2 { font-size: clamp(24px, 3vw, 34px); margin: 8px 0 6px; }
.news-band p { color: var(--muted); margin: 0; }
.news-ic { width: 40px; height: 40px; color: var(--accent); }
.news-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; position: relative; z-index: 1; }
.news-form input:not(.hp) { font: inherit; font-size: 16px; min-height: 52px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.news-form .l-msg { grid-column: 1 / -1; margin: 0; font-size: 14.5px; min-height: 1.4em; }
.news-form .l-msg.ok { color: #1f7a4f; } .news-form .l-msg.bad { color: #b3261e; }
@media (max-width: 480px) { .news-form { grid-template-columns: 1fr; } }

/* คำถามที่พบบ่อย */
.sec-faq { background: #fff; }
.faq-wrap { max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; cursor: pointer; font-weight: 600; font-size: 17.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { flex: none; transition: transform .25s var(--ease); color: var(--accent); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq-a { margin: 0; padding: 0 2px 22px; color: #34425a; white-space: pre-line; }

/* แถบชวนสมัคร (พื้นใบไม้เขียวเข้ม) */
.cta-band { text-align: center; }
.cta-dark { color: #fff; background: var(--accent); }
.cta-dark .eyebrow { color: var(--gold); justify-content: center; }
.cta-band h2 { font-size: clamp(26px, 3.8vw, 42px); margin: 0 auto 24px; max-width: 26ch; }
.cta-soft { background: #fff; border-block: 1px solid var(--line); }

/* ติดต่อ */
.sec-contact { background: #fff; }
.contact { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact-card { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.hours { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 15px; }
.hours li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.closed { color: #b3261e; }
.lead { display: grid; gap: 12px; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.lead label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.lead input:not(.hp), .lead textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.lead textarea { min-height: 120px; resize: vertical; }
.msg { min-height: 1.4em; margin: 0; font-size: 15px; } .msg.ok { color: #1f7a4f; } .msg.bad { color: #b3261e; }
.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }
.map-wrap { margin-top: 24px; }

/* ข้อความอิสระ / หน้าเนื้อหา */
.prose { max-width: 760px; } .prose-wide { max-width: none; }
.prose h2, .prose-wide h2 { font-size: clamp(26px, 3.2vw, 36px); }
.page-hero { padding: clamp(40px, 6vw, 80px) 0 10px; background: #fff; }
.page-hero h1 { font-size: clamp(32px, 4.8vw, 54px); margin: 0; }

/* เดิม (ส่วนสินค้า/ผลงาน/คำชม) ยังรองรับ */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.card-body { padding: 14px; }
.gal { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gal { grid-template-columns: repeat(var(--cols, 3), 1fr); } }
.gal img { width: 100%; border-radius: 14px; display: block; }
.quotes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.quote { margin: 0; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.quote .q-mark { color: var(--gold); width: 32px; height: 32px; }
.quote figcaption { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote figcaption span { display: grid; font-size: 14.5px; color: var(--muted); }
.quote figcaption b { color: var(--ink); }

/* ---------- บทความ ---------- */
.article { padding-top: 26px; }
.a-wrap { max-width: 780px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: inherit; }
.article h1 { font-size: clamp(30px, 4.2vw, 46px); margin: 0 0 10px; }
.a-cover { margin: 22px 0; } .a-cover img { width: 100%; border-radius: 22px; }
.a-lead { font-size: 19px; color: #34425a; }
.a-toc { margin: 22px 0; padding: 18px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.a-toc ol { margin: 8px 0 0; padding-left: 20px; }
.a-body { font-size: 17.5px; line-height: 1.9; }
.a-body h2 { font-size: clamp(24px, 3vw, 30px); margin: 40px 0 12px; scroll-margin-top: 90px; }
.a-body h3 { font-size: 21px; margin: 28px 0 8px; }
.a-body blockquote { margin: 24px 0; padding: 16px 22px; border-left: 4px solid var(--gold); background: #fff; border-radius: 0 14px 14px 0; }
.a-fig img { width: 100%; border-radius: 16px; }
.a-fig figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.a-box, .a-news { display: grid; gap: 14px; align-items: center; margin: 30px 0; padding: 22px; border-radius: 20px;
  background: var(--accent); color: #fff; }
@media (min-width: 640px) { .a-box { grid-template-columns: auto 1fr auto; } }
.a-box p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 15.5px; line-height: 1.6; }
.a-box .a-box-t, .a-news .a-box-t { color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.a-box-ic { width: 36px; height: 36px; color: var(--gold); }
.a-news { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.a-news .a-box-t { color: var(--ink); } .a-news p { color: var(--muted); margin: 0; }
.a-cta { margin: 30px 0; padding: 22px; text-align: center; border-radius: 20px; background: var(--sage); }
.a-embed { margin: 30px 0; } .a-related ul { padding-left: 20px; }

/* ---------- ท้ายเว็บ ----------
 * แก้ไขรอบที่ 1: ลูกค้าขอเมนูและช่องทางติดต่อเรียงแนวนอนยาวเต็มแถว + ไอคอนโซเชียลครบ (Facebook YouTube TikTok IG LINE) */
.foot { background: var(--accent); color: rgba(255, 255, 255, .86); padding: 48px 0 24px; margin-top: 0; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; padding-bottom: 26px; }
.foot-brand { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.foot b { color: #fff; font-size: 16px; display: block; }
/* สั่งแก้ครั้งที่ 1 (2026-11-09): ลูกค้าขอเอาพื้นขาวหลังโลโก้ออก → ใช้ logo-light.webp (ตัวอักษรครีม) วางบนพื้นเขียวตรงๆ */
.foot-logo { display: inline-block; }
.foot-logo img { width: 200px; height: auto; display: block; }
.foot-brand p { margin: 0; max-width: 36ch; }
.foot-row { display: flex; align-items: center; gap: 2px 28px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.foot-row > b { flex: none; min-width: 96px; color: var(--gold); }
.foot-links { display: flex; flex-wrap: wrap; column-gap: 26px; }
.foot a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.foot a:hover { color: var(--gold); }
.foot-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; column-gap: 30px; }
.foot-contact li { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.foot-contact svg { width: 20px; height: 20px; flex: none; color: var(--gold); }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); transition: background .2s, color .2s, border-color .2s; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: #1a1608; }
.social svg { width: 20px; height: 20px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 14px; }
.foot-policy { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 640px) { .foot-row { align-items: flex-start; flex-direction: column; } .foot-links { column-gap: 20px; } }

/* ปุ่มลอย (มือถือ): ไลน์ + โทร */
.float-contact { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 45; display: flex; gap: 8px; }
.float-contact a { display: inline-flex; align-items: center; gap: 6px; height: 50px; padding: 0 16px; border-radius: 999px; color: #fff; text-decoration: none;
  font-weight: 600; box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
.float-line { background: #06C755; } .float-call { background: var(--accent); }
.float-contact svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .float-contact .float-call { display: none; } }
body.is-app .float-contact { display: none; }
@media (max-width: 899px) { .foot { padding-bottom: 90px; } }

/* กดดูรูปขนาดเต็ม */
dialog.light { border: 0; padding: 0; background: transparent; max-width: 92vw; }
dialog.light::backdrop { background: rgba(0, 0, 0, .8); }
dialog.light img { max-height: 86vh; border-radius: 12px; }
dialog.light button { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; font-size: 24px; cursor: pointer; }

/* ปรากฏตอนเลื่อนถึง */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease) var(--d, 0ms), transform .55s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .btn:hover, .cat:hover, .member:hover, .post:hover { transform: none; } }
/* หน้าคอร์สมีแถบซื้อลอยของตัวเอง — ไม่ซ้อนปุ่มโทร/ไลน์ทับ */
@media (max-width: 979px) { body:has(.l-buybar) .float-contact { display: none; } }

/* ---------- พื้นที่กดอย่างน้อย 44px ทุกปุ่ม/ลิงก์ (qa-1d1d) ---------- */
.menu a, .lang a, .sec-more, .foot-links a, .foot-policy a, .contact-list a, .foot-contact a, .a-toc a, .crumbs a, .btn-sm, .btn-link {
  min-height: 44px; display: inline-flex; align-items: center; }
.lang a { justify-content: center; min-width: 40px; }
.icon-btn, .social a { width: 44px; height: 44px; }
.a-toc li { margin: 0; }
/* รูปผู้สอนครอปจากโปสเตอร์ของลูกค้า (กว้าง 480px) — ไม่ขยายใหญ่เกินจนแตก */
.about-pic { max-width: 420px; justify-self: center; width: 100%; }
.lang a { min-width: 44px; font-size: 14px; }
.menu-lang { display: none; }
@media (max-width: 560px) {
  .nav-actions .lang { display: none; }
  .menu-lang { display: block; padding: 14px 8px 4px; }
}
/* ข้อความไทยมีสระบน-ล่าง ระยะบรรทัดต้องไม่ต่ำกว่า 1.4 */
h1, h2, h3, .hero-title, .stats dt, .tc-score, .cat-body b, .member-body b { line-height: 1.4; }
.hero-title { line-height: 1.25; }
.hero-eyebrow { font-size: 14px; }
.hp, input[type=checkbox], input[type=radio] { font-size: 16px; }
.btn { line-height: 1.4; }
.foot-bottom small { font-size: 14px; }
.test-card small, .tc-score small { font-size: 14px; }

/* หัวหน้าคอร์ส/ห้องเรียน/ข้อสอบ (learn.css ของกลาง โหลดทีหลัง จึงต้องเจาะจงกว่า) ให้เป็นพื้นขาวเรียบเหมือนหน้าอื่น */
body .l-pagehead, body .l-dash-head { background: #fff; border-bottom: 1px solid var(--line); }
body .l-benefit { background: #fff; }
body .l-exam, body .l-class { background: #fff; }
body .l-passage { background: #fff; }
/* หน้าทำข้อสอบ: ลูกค้าขอฟอนต์แบบเดียวกับหลังบ้าน (Noto Sans Thai) อ่านโจทย์ภาษาไทยง่ายกว่า + บทความใหญ่ขึ้น (แก้ด่วน-415 ข้อ 3) */
body .l-exam { font-family: 'Noto Sans Thai', var(--font); }
body .l-exam .l-passage { font-size: 17px; line-height: 1.85; }
body .l-exam .l-q-stem { font-size: 18px; line-height: 1.8; }
/* ลิงก์เมนู "รีวิวจากผู้เรียน" เลื่อนมาแล้วหัวข้อไม่จมใต้แถบเมนู */
#reviews { scroll-margin-top: 84px; }
/* พื้นที่กดอย่างน้อย 44px: เมนูท้ายเว็บคำสั้น (ผู้สอน) และลิงก์ในข้อความหน้ารวมแบบทดสอบ */
.foot-links a { min-width: 44px; justify-content: center; }
/* ราคาโดยประมาณเป็น USD ต่อท้ายราคาบาท (ข้อมูลร้าน → อัตราแลกเปลี่ยน) */
body .l-usd { font-size: 14px; font-weight: 600; color: var(--l-muted, #5b6474); white-space: nowrap; }
body .l-price-lg .l-usd { font-size: 16px; }
body .l-crumbs a { min-width: 44px; justify-content: center; }
body .l-usd-note { font-size: 14px; color: var(--l-muted, #5b6474); margin: -6px 0 0; line-height: 1.5; }
.l-wrap > .l-muted a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }
