@import url("https://fonts.googleapis.com/css2?family=Mali:wght@400;600&family=Noto+Sans+Thai+Looped:wght@400;600&family=Noto+Serif+Thai:wght@600;700&family=Sarabun:wght@400;600&family=Trirong:wght@600;700&display=swap");

:root {
  --font-head: "Noto Serif Thai", "Trirong", serif;
  --font-body: "Noto Sans Thai Looped", "Sarabun", sans-serif;
  --font-hand: "Mali", cursive;
  --ink: #173d43;
  --ink-soft: #587276;
  --paper: #fbf7ee;
  --paper-light: #fffdf8;
  --sky-wash: #e3f1f3;
  --dawn: #f08a4b;
  --dawn-hover: #d9733a;
  --clay: #b4562a;
  --leaf: #7fa66b;
  --line: rgba(23, 61, 67, .17);
  --shadow: 0 18px 50px rgba(23, 61, 67, .11);
  --radius: 26px;
  --max: 1180px;
  --stage-1: #e9b949;
  --stage-1-bg: #fcf1d4;
  --stage-2: #8e8aa6;
  --stage-2-bg: #eceaf2;
  --stage-3: #7fa66b;
  --stage-3-bg: #e5efdf;
  --stage-4: #d9786a;
  --stage-4-bg: #f8e1dc;
  --stage-5: #5fa8c9;
  --stage-5-bg: #ddeef5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); font-size: clamp(17px, 1.2vw, 18px); line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
p { max-width: 38em; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--font-head); font-weight: 700; word-break: keep-all; overflow-wrap: normal; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.3; }
h2 { font-size: clamp(28px, 3.6vw, 36px); line-height: 1.35; }
h3 { font-size: clamp(21px, 2vw, 24px); line-height: 1.4; }
small, .caption { font-size: 15px; line-height: 1.6; }
.lead { font-size: clamp(19px, 1.5vw, 21px); line-height: 1.7; }
.quote { font-family: var(--font-hand); font-size: clamp(22px, 2.2vw, 26px); line-height: 1.6; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--dawn); outline-offset: 3px; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: .7rem 1rem; background: var(--ink); color: white; border-radius: 12px; }
.skip-link:focus { top: 1rem; }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }

.announcement { background: var(--ink); color: white; }
.announcement .container { min-height: 48px; display: flex; justify-content: center; align-items: center; gap: .7rem; text-align: center; }
.announcement-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 5px rgba(127, 166, 107, .2); }
.announcement-action { margin-left: .4rem; padding: .28rem .75rem; border-radius: 999px; background: var(--dawn); color: #2d241d; text-decoration: none; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 238, .95); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav-wrap { min-height: 82px; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 58px; height: 58px; object-fit: contain; border-radius: 50%; background: white; }
.brand-wordmark { line-height: 1.1; }
.brand-wordmark strong { display: block; font-size: 1.05rem; }
.brand-wordmark small { color: var(--ink-soft); }
.nav-links { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.nav-link { padding: .48rem .56rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .88rem; white-space: nowrap; }
.nav-link:hover, .nav-link[aria-current="page"] { background: var(--sky-wash); }
.language-link { display: grid; place-items: center; min-width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: white; text-decoration: none; font-weight: 600; font-size: .9rem; }
.nav-cta, .button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: .72rem 1.15rem; border: 1px solid transparent; border-radius: 999px; font-size: clamp(17px, 1.2vw, 18px); font-weight: 600; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.nav-cta, .button.primary { background: var(--dawn); color: #2d241d; box-shadow: 0 10px 24px rgba(180, 86, 42, .18); }
.nav-cta:hover, .button.primary:hover { background: var(--dawn-hover); transform: translateY(-1px); }
.button.secondary { background: var(--paper-light); color: var(--ink); border-color: var(--line); }
.button.secondary:hover { background: var(--sky-wash); }
.button.disabled { opacity: .62; cursor: not-allowed; box-shadow: none; }
.menu-button { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: white; border-radius: 50%; color: var(--ink); cursor: pointer; }

main { overflow: hidden; }
.hero { position: relative; min-height: 660px; display: grid; align-items: center; padding: 4.5rem 0; background: var(--sky-wash); }
.hero::after { content: ""; position: absolute; inset: auto -8rem -10rem auto; width: 34rem; height: 34rem; border-radius: 50%; background: rgba(127, 166, 107, .18); filter: blur(2px); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.04fr .96fr; gap: 3.5rem; align-items: center; }
.eyebrow, .kicker { margin: 0 0 .8rem; color: var(--clay); font-weight: 600; font-size: .88rem; }
html[lang="en"] .eyebrow, html[lang="en"] .kicker { letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; }
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--dawn); border-radius: 2px; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--clay); }
.hero-copy { margin: 1.25rem 0 0; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }
.hero-note { display: flex; align-items: flex-start; gap: .75rem; margin-top: 1.35rem; color: var(--ink-soft); font-size: .94rem; }
.hero-note strong { color: var(--ink); }
.art-frame { position: relative; padding: 1rem; border-radius: 46% 54% 48% 52% / 43% 44% 56% 57%; background: rgba(255,255,255,.7); box-shadow: var(--shadow); }
.art-frame img { width: 100%; height: min(580px, 68vw); max-height: 580px; object-fit: cover; border-radius: inherit; }
.art-caption { position: absolute; right: -.6rem; bottom: 1.8rem; max-width: 220px; padding: .85rem 1rem; border-radius: 18px; background: rgba(251,247,238,.95); box-shadow: var(--shadow); color: var(--ink-soft); font-size: 15px; }
.art-caption strong { display: block; color: var(--ink); }

.section { padding: 5.5rem 0; }
.section.soft { background: var(--sky-wash); }
.section.paper-light { background: var(--paper-light); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.4rem; }
.section-head h2 { max-width: 780px; }
.section-head p { margin: 0; color: var(--ink-soft); }
.center-head { max-width: 850px; margin: 0 auto 2.6rem; text-align: center; }
.center-head p { margin: 1rem auto 0; color: var(--ink-soft); }
.opening-question { max-width: 940px; margin-inline: auto; text-align: center; }
.opening-question h2 { font-size: clamp(30px, 4.6vw, 46px); }
.opening-question p { margin: 1.25rem auto 0; color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-light); }
.stat strong { font-family: var(--font-head); font-size: clamp(34px, 5vw, 54px); line-height: 1; color: var(--clay); }
.stat span { color: var(--ink-soft); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { padding: 1.55rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-light); box-shadow: 0 10px 30px rgba(23,61,67,.06); }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 1rem; border-radius: 16px; background: var(--stage-3-bg); color: var(--ink); font-family: var(--font-head); font-weight: 700; }
.card h3 { margin-bottom: .6rem; }
.card p { margin: 0; color: var(--ink-soft); }
.card .button { margin-top: 1.1rem; min-height: 44px; font-size: 16px; }
.card-meta { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; }
.visual-placeholder { min-height: 180px; display: grid; place-items: center; margin-bottom: 1rem; padding: 1.1rem; border: 1px dashed rgba(23,61,67,.28); border-radius: 22px; background: var(--sky-wash); color: var(--ink-soft); text-align: center; font-family: var(--font-hand); font-size: 16px; }
.placeholder-round { width: 120px; min-height: 120px; border-radius: 50%; margin-inline: auto; }

.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: .85rem; }
.journey-card { min-height: 310px; padding: 1.25rem; border-radius: 22px; border: 1px solid var(--line); border-top: 8px solid var(--stage); background: var(--stage-bg); }
.journey-card .number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--stage); color: var(--ink); font-weight: 600; }
.journey-card time { display: block; margin: 1rem 0 .45rem; font-weight: 600; }
.journey-card h3 { font-size: 20px; }
.journey-card p { margin: .55rem 0 0; color: var(--ink-soft); font-size: 15px; }
.journey-card .pill { margin-top: 1rem; }
.stage-1 { --stage: var(--stage-1); --stage-bg: var(--stage-1-bg); }
.stage-2 { --stage: var(--stage-2); --stage-bg: var(--stage-2-bg); }
.stage-3 { --stage: var(--stage-3); --stage-bg: var(--stage-3-bg); }
.stage-4 { --stage: var(--stage-4); --stage-bg: var(--stage-4-bg); }
.stage-5 { --stage: var(--stage-5); --stage-bg: var(--stage-5-bg); }
.pill { display: inline-flex; padding: .32rem .68rem; border-radius: 999px; background: rgba(255,255,255,.72); color: var(--ink); font-size: 14px; font-weight: 600; }
.day-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; margin-top: 1.8rem; }
.flow-step { position: relative; padding: 1rem; border-radius: 18px; background: var(--paper-light); border: 1px solid var(--line); text-align: center; }
.flow-step:not(:last-child)::after { content: "→"; position: absolute; right: -.65rem; top: 50%; transform: translateY(-50%); z-index: 2; color: var(--clay); font-weight: 600; }
.flow-step span { display: block; font-family: var(--font-hand); color: var(--clay); }
.return-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; counter-reset: return; }
.return-item { counter-increment: return; display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: start; padding: 1.2rem; border-radius: 20px; border: 1px solid var(--line); background: var(--paper-light); }
.return-item::before { content: counter(return); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--dawn); color: #2d241d; font-family: var(--font-head); font-weight: 700; }
.quote-band { padding: 5rem 0; background: var(--ink); color: white; }
.quote-band blockquote { max-width: 850px; margin: 0 auto; color: white; text-align: center; }
.quote-band small { display: block; margin-top: 1.2rem; color: #c8dddd; font-family: var(--font-body); }

.page-hero { padding: 4.8rem 0 3rem; background: var(--sky-wash); }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: end; }
.page-hero p { margin: 1rem 0 0; color: var(--ink-soft); }
.page-hero-aside { padding: 1.45rem; border-radius: var(--radius); background: var(--stage-3-bg); border: 1px solid rgba(127,166,107,.3); }
.page-hero-aside strong { display: block; font-family: var(--font-head); font-size: 21px; }
.page-hero-aside p { font-size: 16px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 3rem; align-items: start; }
.prose h2 { margin-bottom: 1rem; }
.prose h3 { margin: 2rem 0 .7rem; }
.prose p, .prose li { color: #3f6165; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.side-card { position: sticky; top: 108px; padding: 1.5rem; border-radius: var(--radius); border: 1px solid rgba(180,86,42,.18); background: var(--stage-1-bg); }
.side-card p { color: var(--ink-soft); }
.check-list { list-style: none; margin: 1.2rem 0 0; padding: 0 !important; display: grid; gap: .75rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list li::before { content: "✓"; width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 50%; background: var(--stage-3-bg); color: var(--ink); font-weight: 600; }
.notice { margin: 1.4rem 0; padding: 1.1rem 1.2rem; border-left: 4px solid var(--dawn); border-radius: 0 18px 18px 0; background: var(--stage-1-bg); color: #634a35; }
.status-box { padding: 1.4rem; border: 1px solid rgba(127,166,107,.42); border-radius: var(--radius); background: var(--stage-3-bg); }
.status-box strong { display: block; margin-bottom: .4rem; font-family: var(--font-head); font-size: 21px; }
.status-box p { margin: .4rem 0; color: var(--ink-soft); }
.table-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: var(--paper-light); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--sky-wash); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.steps { counter-reset: step; display: grid; gap: .75rem; }
.step { counter-increment: step; display: grid; grid-template-columns: 42px 1fr; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-light); }
.step::before { content: counter(step); width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-weight: 600; }
.step strong { display: block; }
.step span { color: var(--ink-soft); font-size: 16px; }

.application-form { position: relative; margin-top: 1.5rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-light); }
.application-form[aria-disabled="true"] { opacity: .83; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label, fieldset legend { font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; padding: .72rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: #f4f1e9; color: var(--ink-soft); }
fieldset { margin: 1.2rem 0 0; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; }
.option { display: flex; gap: .55rem; align-items: flex-start; margin-top: .6rem; color: var(--ink-soft); }
.form-status { margin-bottom: 1.1rem; padding: .85rem 1rem; border-radius: 14px; background: var(--stage-1-bg); color: #634a35; font-weight: 600; }
.faq { border-top: 1px solid var(--line); }
.faq details { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; font-weight: 600; }
.faq summary::after { content: "+"; color: var(--clay); font-size: 22px; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: .7rem 0 0; color: var(--ink-soft); }

.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.team-role { text-align: center; }
.team-role h3 { font-size: 18px; }
.team-role p { margin: .45rem auto 0; color: var(--ink-soft); font-size: 15px; }
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.partner { min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-light); }
.partner-logo-slot { min-height: 82px; display: grid; place-items: center; padding: .8rem; border: 1px dashed rgba(23,61,67,.25); border-radius: 16px; background: var(--sky-wash); color: var(--ink-soft); text-align: center; font-size: 15px; }
.partner-logo-slot img { max-width: 170px; max-height: 65px; object-fit: contain; }
.partner-role { color: var(--clay); font-size: 14px; font-weight: 600; }
.partner h3 { font-size: 19px; }
.partner p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.partner-url { margin-top: .7rem; color: var(--ink-soft); font-size: 14px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.article-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-light); }
.article-cover { min-height: 170px; display: grid; place-items: center; padding: 1rem; background: var(--stage-bg, var(--sky-wash)); border-top: 7px solid var(--stage, var(--leaf)); font-family: var(--font-hand); color: var(--ink-soft); text-align: center; }
.article-body { padding: 1.3rem; }
.article-body h3 { margin-bottom: .55rem; }
.article-body p { margin: 0; color: var(--ink-soft); }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.4rem; }
.filter { padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-light); color: var(--ink); font-weight: 600; }

.contact-panel { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 34px; background: var(--sky-wash); border: 1px solid var(--line); }
.contact-panel p { color: var(--ink-soft); }
.contact-links { display: flex; flex-wrap: wrap; gap: .65rem; }
.contact-links a, .contact-links span { display: inline-flex; padding: .65rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-light); text-decoration: none; font-weight: 600; }
.contact-links span { color: var(--ink-soft); }
.site-footer { padding: 4rem 0 1.5rem; background: var(--ink); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 2.4rem; }
.footer-brand { display: flex; gap: .9rem; align-items: center; }
.footer-brand img { width: 72px; height: 72px; object-fit: contain; border-radius: 50%; background: white; }
.footer-brand strong { display: block; }
.footer-brand span { color: #c2d7d9; font-size: 15px; }
.footer-title { margin-bottom: .75rem; color: #a8cacd; font-size: 15px; font-weight: 600; }
.footer-links { display: grid; gap: .45rem; }
.footer-links a { color: white; text-decoration: none; }
.footer-links a:hover { color: #ffd7b9; }
.footer-bottom { display: grid; gap: .75rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); color: #b6ced0; font-size: 15px; }
.child-media-note { max-width: 75em; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1060px) {
  .menu-button { display: grid; place-items: center; }
  .nav-links { display: none; position: absolute; top: 82px; left: 1rem; right: 1rem; margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-link { padding: .72rem .85rem; }
  .language-link { margin-left: auto; }
  .hero-grid, .page-hero-grid, .content-grid { grid-template-columns: 1fr; }
  .art-frame { max-width: 650px; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards.four, .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .journey-card:last-child { grid-column: 1 / -1; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .side-card { position: static; }
  .contact-panel { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 1.25rem), var(--max)); }
  .announcement .container { min-height: 54px; gap: .45rem; font-size: 14px; }
  .announcement-dot { display: none; }
  .announcement-action { margin-left: 0; flex: 0 0 auto; }
  .brand-wordmark small, .nav-cta { display: none; }
  .brand img { width: 48px; height: 48px; }
  .nav-wrap { min-height: 72px; }
  .nav-links { top: 72px; }
  .hero { min-height: auto; padding: 3.1rem 0; }
  .hero-grid { gap: 2.5rem; }
  .art-frame img { height: 112vw; max-height: 520px; }
  .art-caption { right: .5rem; bottom: 1rem; max-width: 185px; }
  .section { padding: 4rem 0; }
  .section-head { display: block; }
  .section-head p { margin-top: .9rem; }
  .stats, .cards, .cards.two, .cards.four, .journey, .return-list, .article-grid, .partner-grid, .team-grid, .form-grid { grid-template-columns: 1fr; }
  .journey-card:last-child { grid-column: auto; }
  .day-flow { grid-template-columns: 1fr; }
  .flow-step:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -.95rem; transform: translateX(50%); }
  .page-hero { padding: 3.5rem 0 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
