:root {
  /* PromptNow theme palette (from original site) */
  --blue: #0c74bc;
  --blue-bright: #3da8f3;
  --blue-light: #9ed4f9;
  --blue-dark: #084d7d;
  --navy: #04273f;
  --red: #e63027;
  --ink: #16212b;
  --muted: #55646f;
  --line: #dde6ee;
  --bg: #ffffff;
  --bg-alt: #f3f8fc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(8, 77, 125, 0.12);
  --head: "Michroma", "Noto Sans Thai", "Noto Sans SC", "Noto Sans Myanmar", "Noto Sans Lao", "Lato", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Lato", "Noto Sans Thai", "Noto Sans SC", "Noto Sans Myanmar", "Noto Sans Lao", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; color: var(--navy); }
h1, h2 { font-family: var(--head); font-weight: 400; letter-spacing: 0.02em; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(860px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; background: var(--blue); color: #fff; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }
[hidden] { display: none !important; }

/* Buttons */
.btn {
  display: inline-block; background: var(--blue); color: #fff; font-weight: 700;
  padding: 13px 30px; border-radius: 999px; border: 2px solid var(--blue);
  cursor: pointer; font: inherit; font-weight: 700; transition: all 0.2s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 8px 20px; font-size: 0.92rem; }
.btn-outline { background: transparent; color: var(--blue); }
.btn-outline:hover { background: var(--blue); }
.btn-light { background: #fff; color: var(--blue-dark); border-color: #fff; }
.btn-light:hover { background: var(--blue-light); border-color: var(--blue-light); color: var(--navy); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: box-shadow 0.2s, border-color 0.2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(4, 39, 63, 0.07); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { width: 200px; }
.nav > ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav a { white-space: nowrap; color: var(--navy); font-weight: 700; padding: 10px 14px; display: block; border-radius: 8px; font-size: 0.95rem; }
.nav a:hover, .nav a.active { color: var(--blue); }
.nav a.btn { color: #fff; margin-left: 8px; }
.has-sub { position: relative; }
.caret { font-size: 0.7em; }
.sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all 0.18s;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { font-weight: 400; }
.sub a:hover { background: var(--bg-alt); }
.sub a.indent { padding-left: 28px; }
.sub-label { padding: 8px 14px 2px; font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.lang { position: relative; margin-left: 10px; }
.lang-btn { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; background: #fff; color: var(--navy); font: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: 0.2s; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--blue); color: var(--blue); }
.lang-btn .caret { font-size: 0.7em; }
.lang-menu { list-style: none; margin: 0; padding: 6px; position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 120; }
.lang-flag { display: inline-flex; }
.flag { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); flex: none; }
.lang-menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; font: inherit; font-size: 0.95rem; padding: 9px 14px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.lang-menu button:hover { background: var(--bg-alt); }
.lang-menu button.active { color: var(--blue); font-weight: 700; background: var(--bg-alt); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 7px 0; transition: 0.2s; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 600px; display: flex; align-items: center; background: #e9eff5; }
.hero-bg {
  position: absolute; inset: 0; background: url("../img/hero-bg.jpg") center / cover no-repeat;
  animation: drift 24s ease-in-out infinite alternate;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.3) 60%, rgba(255, 255, 255, 0) 100%); }
@keyframes drift { from { transform: scale(1.02) translateX(0); } to { transform: scale(1.1) translateX(-2%); } }
.hero-inner { position: relative; z-index: 1; padding: 90px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; font-size: 0.82rem; color: var(--blue); margin-bottom: 0.8em; }
.eyebrow.light { color: var(--blue-light); }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); margin-bottom: 0.5em; }
.hero h1 span { color: var(--red); }
.hero .lead { color: var(--muted); max-width: 640px; font-size: 1.08rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Stats */
.stats { background: var(--navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 34px 0; gap: 20px; }
.stats b { display: block; font-family: "Michroma", sans-serif; font-size: 2rem; font-weight: 400; color: var(--blue-bright); }
.stats span { color: var(--blue-light); font-size: 0.92rem; }

/* Sections */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2, .about-grid h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.about-grid p { color: var(--muted); text-align: justify; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span { background: var(--bg-alt); color: var(--blue-dark); border: 1px solid var(--blue-light); border-radius: 999px; padding: 4px 14px; font-size: 0.86rem; font-weight: 700; }
.about-visual { position: relative; }
.about-visual img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about-visual blockquote {
  position: absolute; left: -28px; bottom: -28px; max-width: 78%; margin: 0; padding: 22px 26px;
  background: var(--blue); color: #fff; border-radius: var(--radius); font-size: 1.15rem; font-weight: 700; box-shadow: var(--shadow);
}
.q-label { display: block; font-size: 0.74rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 6px; }

/* Cards */
.grid { display: grid; gap: 28px; }
.services-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); color: inherit; transition: transform 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: inherit; }
.card-img { aspect-ratio: 16/10; background: linear-gradient(135deg, #f3f8fc, #dcecf8); display: grid; place-items: center; padding: 18px; }
.card-img img { max-height: 100%; width: auto; object-fit: contain; transition: transform 0.4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 22px 26px 26px; }
.card-body h3 { font-family: var(--head); font-weight: 400; font-size: 1.1rem; margin-bottom: 0.3em; }
.card-body p { color: var(--muted); margin-bottom: 0.8em; }
.more { color: var(--blue); font-weight: 700; }

/* Logos */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 36px; }
.logos a { width: 120px; filter: grayscale(0.3); transition: 0.2s; }
.logos a:hover { filter: none; transform: translateY(-4px); }
.logos img { width: 100%; aspect-ratio: 1; object-fit: contain; }

/* Careers + CTA */
.careers { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; padding: 70px 0; }
.careers h2 { color: #fff; margin-bottom: 0.2em; }
.careers p { margin: 0; color: var(--blue-light); font-size: 1.1rem; }
.careers-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band { background: var(--bg-alt); padding: 54px 0; text-align: center; border-top: 1px solid var(--line); }
.cta-band .container { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cta-band p { font-size: 1.2rem; font-weight: 700; color: var(--navy); max-width: 700px; }
.cta-band .btn-light { background: var(--blue); color: #fff; border-color: var(--blue); }
.cta-band .btn-light:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

/* Inner pages */
.page-hero { background: linear-gradient(135deg, var(--navy), var(--blue-dark) 60%, var(--blue)); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(61, 168, 243, 0.35), transparent 70%); }
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.6rem); margin-bottom: 0.3em; position: relative; z-index: 1; }
.page-hero .lead { color: var(--blue-light); font-size: 1.15rem; margin: 0; position: relative; z-index: 1; }
.crumb { font-size: 0.86rem; color: var(--blue-light); margin-bottom: 14px; position: relative; z-index: 1; }
.crumb a { color: #fff; }

.service-intro { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: center; margin-bottom: 56px; }
.service-img { background: linear-gradient(135deg, #f3f8fc, #dcecf8); border-radius: var(--radius); padding: 24px; display: grid; place-items: center; }
.service-intro p { font-size: 1.12rem; color: var(--muted); margin: 0; }
.benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-bottom: 24px; }
.benefit { border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 22px; background: #fff; }
.benefit h4 { color: var(--blue); margin-bottom: 0.4em; }
.benefit p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.outro { text-align: center; font-weight: 700; font-size: 1.15rem; color: var(--blue-dark); margin: 28px 0 56px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.features.single { grid-template-columns: 1fr; }
.features.why-us { margin-top: 56px; }
.feature-block { background: var(--bg-alt); border-radius: var(--radius); padding: 32px 34px; }
.feature-block h3 { font-family: var(--head); font-weight: 400; font-size: 1.1rem; color: var(--blue-dark); }
.check { list-style: none; margin: 0; padding: 0; }
.features.single .check { columns: 2 320px; column-gap: 40px; }
.check li { position: relative; padding: 6px 0 6px 30px; break-inside: avoid; }
.check li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 0.7rem; line-height: 20px; text-align: center; font-weight: 700; }
.gallery { margin-top: 44px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.gallery img { margin-inline: auto; max-height: 760px; width: auto; }
.pager { border-top: 1px solid var(--line); }
.pager .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 0; font-weight: 700; }

/* Jobs / internships */
.job-search { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.job-search input, .form input, .form textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
.job-search input:focus, .form input:focus, .form textarea:focus { outline: 2px solid var(--blue-bright); border-color: transparent; }
#jobCount { white-space: nowrap; color: var(--muted); font-size: 0.9rem; }
.jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.job { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: var(--radius); background: #fff; transition: box-shadow 0.2s, transform 0.2s; }
.job:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.job h3 { font-size: 1.08rem; margin-bottom: 0.2em; }
.loc { color: var(--muted); margin: 0; font-size: 0.93rem; }
.empty, .note { text-align: center; color: var(--muted); margin-top: 28px; }
.big { font-size: 1.15rem; color: var(--muted); text-align: justify; }
.position-card { margin-top: 40px; background: var(--bg-alt); border-radius: var(--radius); padding: 36px; border-left: 5px solid var(--red); }
.position-card .exp { color: var(--blue-dark); font-weight: 700; }
.position-card .btn { margin-top: 24px; }

/* Certificates */
.cert-group { margin-bottom: 60px; }
.cert-group h2 { font-size: 1.4rem; border-bottom: 2px solid var(--blue-light); padding-bottom: 12px; margin-bottom: 28px; }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.cert { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; transition: box-shadow 0.2s; }
.cert:target, .cert:hover { box-shadow: var(--shadow); }
.cert img { width: 150px; height: 150px; object-fit: contain; margin: 0 auto 14px; }
.cert h3 { font-size: 1.1rem; margin-bottom: 0.2em; }
.cert .desc { color: var(--blue); font-weight: 700; }
.cert p { color: var(--muted); font-size: 0.95rem; text-align: left; }
.cert:has(p:nth-of-type(2)) { grid-column: 1 / -1; text-align: left; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
.contact-card { padding: 22px 26px; border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: var(--radius); margin-bottom: 18px; background: #fff; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.contact-card p { margin: 0 0 0.3em; color: var(--muted); }
.form { background: var(--bg-alt); border-radius: var(--radius); padding: 34px; position: sticky; top: 100px; }
.form label { display: block; font-weight: 700; margin-bottom: 16px; font-size: 0.92rem; }
.form input, .form textarea { margin-top: 6px; font-weight: 400; }
.error { color: var(--red); font-weight: 700; }
.success { color: var(--blue-dark); font-weight: 700; margin-top: 16px; }

/* Footer */
.site-footer { background: var(--navy); color: var(--blue-light); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 44px; }
.footer-logo { width: 180px; background: #fff; padding: 8px 12px; border-radius: 8px; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-family: var(--head); font-weight: 400; font-size: 0.9rem; margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--blue-light); }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: 0.93rem; }
.copyright { border-top: 1px solid rgba(158, 212, 249, 0.2); padding: 18px 0; text-align: center; font-size: 0.86rem; }

.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; font-size: 1.3rem; cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: 0.25s; z-index: 90; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--blue-dark); }

/* Non-Latin scripts: Michroma has no glyphs for them, so headings fall back to the Noto Sans family */
html:lang(th), html:lang(zh), html:lang(my), html:lang(lo) { --head: "Noto Sans Thai", "Noto Sans SC", "Noto Sans Myanmar", "Noto Sans Lao", "Lato", sans-serif; }
html:lang(th) h1, html:lang(th) h2, html:lang(th) h3, html:lang(th) h4,
html:lang(zh) h1, html:lang(zh) h2, html:lang(zh) h3, html:lang(zh) h4,
html:lang(my) h1, html:lang(my) h2, html:lang(my) h3, html:lang(my) h4,
html:lang(lo) h1, html:lang(lo) h2, html:lang(lo) h3, html:lang(lo) h4 { font-weight: 700; letter-spacing: 0; line-height: 1.45; }
html:lang(th) p, html:lang(th) li, html:lang(lo) p, html:lang(lo) li { line-height: 1.9; }
html:lang(zh) p, html:lang(zh) li { line-height: 1.85; }
html:lang(my) p, html:lang(my) li { line-height: 2.1; }
html:lang(my) h1, html:lang(my) h2, html:lang(my) h3, html:lang(my) h4 { line-height: 1.8; }
html:lang(th) .about-grid p, html:lang(th) .big, html:lang(zh) .about-grid p, html:lang(zh) .big,
html:lang(my) .about-grid p, html:lang(my) .big, html:lang(lo) .about-grid p, html:lang(lo) .big { text-align: left; }
html:lang(th) .eyebrow, html:lang(zh) .eyebrow, html:lang(my) .eyebrow, html:lang(lo) .eyebrow { letter-spacing: 0.04em; }
html:lang(th) .hero h1, html:lang(zh) .hero h1, html:lang(my) .hero h1, html:lang(lo) .hero h1 { font-size: clamp(1.7rem, 4vw, 3rem); }
html:lang(my) h1, html:lang(my) h2, html:lang(my) h3, html:lang(my) p, html:lang(my) li,
html:lang(lo) h1, html:lang(lo) h2, html:lang(lo) h3, html:lang(lo) p, html:lang(lo) li { overflow-wrap: anywhere; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (min-width: 901px) and (max-width: 1120px) {
  .nav a { padding: 10px 8px; font-size: 0.88rem; }
  .brand img { width: 170px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .lang { margin-left: auto; margin-right: 6px; }
  .nav a { white-space: normal; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(4, 39, 63, 0.1); max-height: 0; overflow: hidden; transition: max-height 0.3s; }
  .nav.open { max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav > ul { flex-direction: column; align-items: stretch; padding: 10px 24px 20px; gap: 0; }
  .nav a.btn { margin: 10px 0 0; text-align: center; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; }
  .has-sub.expanded > .sub { display: block; }
  .about-grid, .service-intro, .contact-grid { grid-template-columns: 1fr; }
  .about-visual blockquote { position: static; max-width: none; margin-top: -30px; margin-inline: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form { position: static; }
  .section { padding: 64px 0; }
  .hero { min-height: 520px; }
}
@media (max-width: 560px) {
  .container, .narrow { width: calc(100% - 32px); }
  .footer-grid { grid-template-columns: 1fr; }
  .job { flex-direction: column; align-items: flex-start; }
  .brand img { width: 160px; }
  .feature-block, .position-card, .form { padding: 24px 20px; }
}
