/* BHC Academy — สีและฟอนต์ตาม CI 2026 (Navy #0b2954 / Soft Teal #6faeaf / Prompt) */
:root {
  --navy: #0b2954;
  --navy-2: #133a63;
  --navy-3: #071c3a;
  --teal: #6faeaf;
  --teal-ink: #276869;
  --teal-soft: #e5f1f1;
  --mist: #f3f8f8;
  --ink: #13233a;
  --muted: #4a5a6e;
  --line: #d6e2e7;
  --white: #fff;
  --line-green: #00873a;
  --danger: #b42318;
  --radius: 12px;
  --hdr: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body {
  margin: 0;
  font-family: 'Prompt', 'Noto Sans Thai', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 17px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.45; margin: 0; color: var(--navy); font-weight: 600; text-wrap: balance; }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.ic { width: 1.25em; height: 1.25em; flex: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 820px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 10px 14px; min-height: 44px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- ปุ่ม ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btns.center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 10px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.45; text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn .ic { width: 20px; height: 20px; }
.btn-lg { min-height: 54px; padding: 12px 26px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.btn-teal { background: var(--teal); color: var(--navy-3); }
.btn-teal:hover { background: #82bcbd; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-line { background: var(--line-green); color: var(--white); }
.btn-line:hover { background: #007331; }
.btn-ghost-light { border-color: rgba(255,255,255,.75); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-2px); } }

/* ---------- ส่วนหัว ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--navy); height: var(--hdr); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.hdr-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 52px; width: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a:not(.btn) { display: block; color: rgba(255,255,255,.9); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 16px; }
.nav a:not(.btn):hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.nav { display: flex; align-items: center; gap: 16px; }
.nav-cta { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.menu-btn { display: none; background: none; border: 0; color: var(--white); width: 48px; height: 48px; border-radius: 10px; align-items: center; justify-content: center; }
.menu-btn .ic { width: 28px; height: 28px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
@media (max-width: 959px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: var(--hdr); left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 16px 20px; gap: 12px; border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 12px 24px rgba(4,15,35,.35); }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a:not(.btn) { padding: 14px 8px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--teal); padding-left: 14px; }
  .nav-cta { min-height: 52px; font-size: 17px; }
  .brand img { height: 46px; }
}

/* ---------- แบนเนอร์สไลด์ (รูปมีตัวหนังสือในภาพ → แสดงเต็มภาพ ไม่ครอป) ---------- */
.hero { background: var(--navy); position: relative; }
.hero-track { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: min(calc(100svh - var(--hdr)), 820px); margin: 0 auto; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.slide.is-on { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; }
.slide a { display: block; height: 100%; }
.hero-img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.hero-nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(7,28,58,.55); color: var(--white); display: inline-flex; align-items: center; justify-content: center; }
.hero-nav:hover { background: rgba(7,28,58,.85); }
.hero-nav.prev { left: 10px; } .hero-nav.next { right: 10px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: center; gap: 0; }
.hero-dots button { width: 44px; height: 44px; border: 0; background: none; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.hero-dots button::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); transition: background .2s, width .2s; }
.hero-dots button[aria-current="true"]::before { background: var(--white); width: 22px; border-radius: 6px; }
@media (max-width: 599px) { .hero-nav { width: 44px; height: 44px; background: rgba(7,28,58,.45); } .hero-nav.prev { left: 4px; } .hero-nav.next { right: 4px; } .hero-nav .ic { width: 20px; height: 20px; } .hero-dots { bottom: -6px; } }

/* ---------- ส่วนแนะนำ (H1) ---------- */
.intro { padding: 40px 0 48px; }
.intro-in { max-width: 860px; }
@media (min-width: 768px) { .intro { padding: 64px 0 72px; } }
.eyebrow { color: var(--teal-ink); font-weight: 600; font-size: 15px; letter-spacing: .02em; margin-bottom: 10px; }
.h1 { font-size: clamp(28px, 6.4vw, 54px); font-weight: 700; line-height: 1.4; }
.lead { font-size: 17px; color: var(--muted); margin-top: 16px; }
@media (min-width: 768px) { .lead { font-size: 19px; } }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; background: var(--teal-soft); color: var(--navy); padding: 8px 14px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.facts .ic { color: var(--teal-ink); }

/* ---------- section ---------- */
.sec { padding: 52px 0; position: relative; }
@media (min-width: 768px) { .sec { padding: 80px 0; } }
.tint { background: var(--mist); }
.sec-h { font-size: clamp(26px, 4.6vw, 40px); text-align: center; margin-bottom: 32px; font-weight: 700; }
.sec-h::after { content: ''; display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--teal); margin: 14px auto 0; }
.sec-h.left { text-align: left; }
.sec-h.left::after { margin-left: 0; }
@media (min-width: 768px) { .sec-h { margin-bottom: 44px; } }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* การ์ดจุดเด่น: 2 / 3 / 4 / 4 คอลัมน์ */
.feat-grid, .aud-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 480px) { .feat-grid, .aud-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } .feat-grid:has(> :nth-child(4):last-child), .aud-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .feat-grid, .aud-grid, .feat-grid:has(> :nth-child(4):last-child), .aud-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.feat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
@media (min-width: 768px) { .feat { padding: 26px 22px; } }
.feat-ic, .aud-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-ink); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feat-ic .ic, .aud-ic .ic { width: 28px; height: 28px; }
.feat-h { font-size: 17px; margin-bottom: 6px; }
.feat p { font-size: 15px; color: var(--muted); line-height: 1.65; }
@media (min-width: 768px) { .feat-h { font-size: 19px; } .feat p { font-size: 16px; } }
.tint .feat, .tint .aud { border-color: transparent; box-shadow: 0 1px 2px rgba(11,41,84,.05), 0 4px 14px rgba(11,41,84,.05); }
@media (hover: hover) and (pointer: fine) {
  .feat:hover, .aud:hover, .course-card a:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(11,41,84,.06), 0 12px 28px rgba(11,41,84,.1); }
}
.pillar-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .pillar-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.aud { background: var(--white); border-radius: var(--radius); padding: 18px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; font-weight: 600; color: var(--navy); font-size: 15px; line-height: 1.55; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
@media (min-width: 768px) { .aud { font-size: 17px; padding: 26px 18px; } }

/* หลักสูตร */
.course-feature { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .course-feature { grid-template-columns: minmax(0, 420px) 1fr; gap: 56px; } }
.cf-media { display: block; max-width: 420px; margin: 0 auto; width: 100%; }
.cf-media img { width: 100%; }
.cf-h { font-size: clamp(24px, 3.6vw, 32px); margin: 6px 0 12px; }
.cf-h a { color: inherit; text-decoration: none; }
.cf-h a:hover { text-decoration: underline; }
.chip { display: inline-block; background: var(--teal-soft); color: var(--teal-ink); font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin: 0; }
.chip.light { background: rgba(255,255,255,.14); color: var(--white); margin-bottom: 10px; }
.cf-facts { display: grid; gap: 10px; margin: 20px 0; }
@media (min-width: 600px) { .course-feature .cf-facts { grid-template-columns: 1fr 1fr; } }
.cf-facts div { background: var(--mist); border-radius: 10px; padding: 12px 14px; }
.cf-facts dt { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.cf-facts dt .ic { color: var(--teal-ink); width: 18px; height: 18px; }
.cf-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--navy); font-size: 16px; line-height: 1.5; }
.cf-mods { counter-reset: m; display: grid; gap: 6px; }
.cf-mods li { counter-increment: m; display: flex; gap: 10px; align-items: baseline; font-size: 15.5px; }
.cf-mods li::before { content: counter(m); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; translate: 0 -1px; }
.cat-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.cat-filter button { border: 1.5px solid var(--line); background: var(--white); padding: 8px 16px; border-radius: 999px; min-height: 44px; }
.cat-filter button[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.course-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .course-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.course-card a { display: block; height: 100%; background: var(--white); border-radius: var(--radius); text-decoration: none; color: inherit; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.course-card[hidden] { display: none; }
.cc-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 4px; }
.cc-h { font-weight: 600; color: var(--navy); }
.cc-meta { font-size: 14px; color: var(--muted); }

/* ทักษะ 01-05 */
.skill-row { display: grid; gap: 10px; }
.skill { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.skill-n { font-size: 22px; font-weight: 700; color: var(--teal-ink); min-width: 2ch; }
.skill-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white); display: inline-flex; align-items: center; justify-content: center; }
.skill-ic .ic { width: 24px; height: 24px; }
.skill-t { font-weight: 600; color: var(--navy); }
@media (min-width: 768px) {
  .skill-row { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .skill { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px 14px 24px; gap: 10px; }
  .skill-n { font-size: 26px; }
  .skill-ic { width: 60px; height: 60px; }
  .skill-ic .ic { width: 30px; height: 30px; }
}

/* ตารางรอบเรียน */
.sched-h { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: clamp(24px, 4.2vw, 36px); font-weight: 700; margin-bottom: 24px; text-align: center; }
.sched-h .ic { color: var(--teal-ink); width: 1em; height: 1em; }
.cd-main .sched-h { justify-content: flex-start; font-size: 24px; text-align: left; }
.sched-t { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(11,41,84,.06), 0 6px 20px rgba(11,41,84,.06); }
.sched-t thead th { background: var(--navy); color: var(--white); font-weight: 600; padding: 14px 10px; font-size: 16px; line-height: 1.45; }
.sched-t thead th small { display: block; font-weight: 400; font-size: 13px; opacity: .8; letter-spacing: .04em; text-transform: uppercase; }
.sched-t td, .sched-t tbody th { padding: 16px 10px; text-align: center; border-top: 1px solid var(--line); font-size: 22px; font-weight: 700; color: var(--navy); }
.sched-t td.month { font-size: 18px; font-weight: 600; }
.sched-t td.online { color: var(--teal-ink); }
.round { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white); align-items: center; justify-content: center; font-size: 18px; }
.sched-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 15px; color: var(--muted); justify-content: center; text-align: left; }
.sched-note .ic { color: var(--teal-ink); margin-top: 3px; }
@media (max-width: 719px) {
  .sched-t { background: none; box-shadow: none; overflow: visible; }
  .sched-t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sched-t, .sched-t tbody { display: block; }
  .sched-t tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 8px; background: var(--white); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(11,41,84,.06), 0 4px 14px rgba(11,41,84,.06); }
  .sched-t td, .sched-t tbody th { border: 0; padding: 4px 0; font-size: 20px; }
  .sched-t tbody th { grid-column: 1 / 2; text-align: left; }
  .sched-t td.month { grid-column: 2 / 4; text-align: left; align-self: center; font-size: 19px; }
  .sched-t td:not(.month) { border-top: 1px solid var(--line); padding-top: 10px; }
  .sched-t td:not(.month)::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.45; margin-bottom: 2px; }
  .sched-t td.online::before { color: var(--teal-ink); }
}

/* วิดีโอ */
.vid-feature { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .vid-feature { grid-template-columns: 1.25fr 1fr; gap: 48px; } }
.vf-t { font-size: 19px; margin-bottom: 8px; }
.vf-body p { color: var(--muted); }
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; background: rgba(11,41,84,.88); color: var(--white); display: flex; align-items: center; justify-content: center; transition: transform .2s var(--ease), background .2s; }
.yt-play .ic { width: 34px; height: 34px; translate: 3px 0; fill: currentColor; }
.yt-play:hover { transform: scale(1.06); background: var(--navy); }
.vid-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .vid-grid { grid-template-columns: repeat(2, 1fr); } .vid-grid.one { grid-template-columns: minmax(0, 880px); justify-content: center; } }
.vid-h { font-size: 20px; margin: 14px 0 6px; }
.vid p { color: var(--muted); }
.more-yt { margin-top: 36px; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; font-weight: 600; color: var(--navy); font-size: 17px; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.chev { transition: transform .2s; color: var(--teal-ink); }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-a { padding: 0 2px 20px; color: var(--muted); }

/* แถบปิดท้าย + ลายกราฟิก CI */
.cta-band { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding: 56px 0; }
@media (min-width: 768px) { .cta-band { padding: 88px 0; } }
.cta-in { position: relative; z-index: 1; max-width: 760px; }
.cta-h { color: var(--white); font-size: clamp(26px, 4.4vw, 40px); font-weight: 700; }
.cta-p { color: rgba(255,255,255,.88); margin-top: 12px; font-size: 18px; }
.ci-shapes { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 75%); pointer-events: none; opacity: .9; }
.ci-shapes svg { width: 100%; height: 100%; }
.ci-shapes .s-fill { fill: var(--teal); opacity: .22; }
.ci-shapes .s-fill2 { fill: var(--teal); opacity: .28; }
.ci-shapes .s-line { fill: none; stroke: rgba(255,255,255,.4); stroke-width: 2; }
.ci-shapes .s-zig { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 2; }
.ci-f { opacity: .35; }
@media (max-width: 767px) { .ci-shapes { width: 90%; opacity: .5; } }

/* หัวหน้าย่อย */
.phead { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding: 28px 0 40px; }
@media (min-width: 768px) { .phead { padding: 44px 0 64px; } }
.phead-in { position: relative; z-index: 1; }
.phead-h { color: var(--white); font-size: clamp(28px, 5.6vw, 50px); font-weight: 700; max-width: 900px; }
.phead-p { color: rgba(255,255,255,.88); margin-top: 14px; max-width: 760px; font-size: 17px; }
@media (min-width: 768px) { .phead-p { font-size: 19px; } }
.crumb ol { display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; margin-bottom: 14px; color: rgba(255,255,255,.75); }
.crumb li:not(:last-child)::after { content: '/'; margin-left: 6px; opacity: .6; }
.crumb a { color: rgba(255,255,255,.85); display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.crumb ol { align-items: center; }

/* เกี่ยวกับเรา */
.about-intro { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .about-intro { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.ai-text .lead { color: var(--ink); font-size: 18px; }
@media (min-width: 768px) { .ai-text .lead { font-size: 20px; } }
.ai-media { margin: 0; }
.text-block + .text-block { margin-top: 48px; }
.text-block p { color: var(--muted); }

/* แกลเลอรี: masonry ตามสัดส่วนจริง 2 / 3 / 3 / 4 */
.masonry { column-count: 2; column-gap: 10px; }
@media (min-width: 480px) { .masonry { column-count: 3; } }
@media (min-width: 1024px) { .masonry { column-count: 4; column-gap: 16px; } }
.m-item { break-inside: avoid; margin-bottom: 10px; }
@media (min-width: 1024px) { .m-item { margin-bottom: 16px; } }
.m-item figure { margin: 0; }
.m-open { display: block; width: 100%; padding: 0; border: 0; background: none; transition: transform .2s var(--ease), opacity .2s; }
@media (hover: hover) and (pointer: fine) { .m-open:hover { transform: translateY(-3px); } }
.m-open img { width: 100%; }
.m-item figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.lightbox { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(4,14,30,.94); color: var(--white); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(4,14,30,.6); }
.lb-img { max-width: 92vw; max-height: 82dvh; width: auto; height: auto; object-fit: contain; }
.lb-cap { margin-top: 12px; font-size: 15px; color: rgba(255,255,255,.85); text-align: center; padding: 0 16px; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: var(--white); display: inline-flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-next { right: 12px; top: 50%; translate: 0 -50%; }

/* ติดต่อ + ฟอร์ม */
.contact-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.55fr 1fr; gap: 36px; } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px 16px; }
@media (min-width: 768px) { .form-card { padding: 32px; } }
.fld-grid { display: grid; gap: 4px 16px; }
@media (min-width: 640px) { .fld-grid { grid-template-columns: 1fr 1fr; } .fld.full, .fld:has(select) { grid-column: 1 / -1; } }
.fld label { display: block; font-weight: 600; color: var(--navy); font-size: 15.5px; margin-bottom: 6px; }
.req { color: var(--danger); }
.opt { font-weight: 400; color: var(--muted); font-size: 14px; }
.fld input, .fld select, .fld textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--white);
  border: 1.5px solid #b7c7d2; border-radius: 10px; padding: 11px 14px; min-height: 50px;
  transition: border-color .15s, box-shadow .15s;
}
.fld select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23276869' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.fld textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; border-color: var(--teal-ink); box-shadow: 0 0 0 3px rgba(111,174,175,.35); }
.fld [aria-invalid="true"] { border-color: var(--danger); }
.fld-err { color: var(--danger); font-size: 14.5px; min-height: 1.6em; margin: 4px 0 6px; line-height: 1.4; }
.form-err { background: #fdecea; color: var(--danger); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hp input { font-size: 16px; }
.consent { font-size: 14px; color: var(--muted); margin: 6px 0 16px; }
.form-ok { text-align: center; padding: 24px 8px; }
.form-ok .big { width: 56px; height: 56px; color: var(--teal-ink); margin: 0 auto 12px; }
.form-ok h2 { margin-bottom: 8px; font-size: 24px; }
.lead-form.sending button[type="submit"] { opacity: .7; pointer-events: none; }
.info-card { background: var(--mist); border-radius: 16px; padding: 22px 18px; }
@media (min-width: 768px) { .info-card { padding: 28px; } }
.info-h { font-size: 22px; margin-bottom: 16px; }
.info-list { margin-top: 20px; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list li > .ic { color: var(--teal-ink); margin-top: 4px; }
.info-list .lbl { display: block; font-size: 14px; color: var(--muted); }
.info-list a, .info-list span:not(.lbl) { color: var(--navy); font-weight: 600; overflow-wrap: anywhere; }
.info-list a { display: inline-flex; align-items: center; min-height: 44px; }
.map-link { display: inline-flex !important; align-items: center; gap: 4px; margin-top: 6px; font-weight: 600; min-height: 44px; }
.map-link .ic { width: 18px; height: 18px; }

/* รายละเอียดหลักสูตร */
.cd-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .cd-grid { grid-template-columns: 1fr 340px; gap: 48px; } .side-card { position: sticky; top: calc(var(--hdr) + 20px); } }
.cd-block + .cd-block, .cd-block + .sched { margin-top: 40px; }
.cd-h { font-size: 24px; margin-bottom: 16px; }
.mods { display: grid; gap: 12px; }
.mods li { display: flex; gap: 14px; align-items: flex-start; background: var(--mist); border-radius: var(--radius); padding: 16px; }
.mod-n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.mod-h { font-size: 17px; margin-bottom: 2px; }
.mods p { color: var(--muted); font-size: 15.5px; }
.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ic { color: var(--teal-ink); margin-top: 4px; }
.ticks.small { margin: 4px 0 18px; font-size: 15.5px; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 10px; }
.side-card .cf-facts { margin: 0 0 6px; }
.posters { display: grid; gap: 10px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 480px) { .posters { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posters { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* ท้ายเว็บ */
.ftr { position: relative; overflow: hidden; background: var(--navy-3); color: rgba(255,255,255,.85); padding-top: 52px; }
.ftr-in { position: relative; z-index: 1; display: grid; gap: 32px; }
@media (min-width: 768px) { .ftr-in { grid-template-columns: 1.1fr 1.3fr 1fr; gap: 40px; } }
.ftr-brand img { width: 120px; }
.ftr-tag { color: var(--white); font-weight: 600; font-size: 20px; margin-top: 14px; }
.ftr-sub { font-size: 14.5px; }
.ftr-h { color: var(--white); font-size: 17px; margin-bottom: 12px; }
.ftr-list { display: grid; gap: 4px; }
.ftr-list a, .ftr-list span { color: rgba(255,255,255,.88); text-decoration: none; display: inline-flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 8px 0; line-height: 1.55; }
.ftr-list a:hover { color: var(--white); text-decoration: underline; }
.ftr-list .ic { margin-top: 2px; color: var(--teal); }
.ftr-nav a { min-height: 44px; padding: 8px 0; }
.socs { display: flex; gap: 10px; margin-top: 16px; }
.soc { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1); color: var(--white); transition: background .2s; }
.soc:hover { background: rgba(255,255,255,.22); }
.soc .ic { width: 22px; height: 22px; }
.ftr-bottom { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding: 18px 16px; font-size: 14px; color: rgba(255,255,255,.7); }

/* ปุ่มลอยมือถือ: ไลน์ + โทร เท่านั้น */
.fab { display: none; }
@media (max-width: 767px) {
  .fab { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); box-shadow: 0 -4px 16px rgba(11,41,84,.12); }
  .fab a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 10px; font-weight: 600; text-decoration: none; font-size: 16px; }
  .fab-line { background: var(--line-green); color: var(--white); }
  .fab-tel { background: var(--navy); color: var(--white); }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

.preview-bar { position: sticky; top: 0; z-index: 60; background: #b54708; color: var(--white); text-align: center; padding: 8px; font-weight: 600; font-size: 15px; }
.preview-bar ~ .hdr { top: 40px; }

/* อนิเมชัน: ปรากฏตอนเลื่อนถึง ครั้งเดียว */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (max-width: 599px) { .sched-h .ic { display: none; } }
