:root {
  --brand: #1a9d52;
  --brand-d: #0d7340;
  --ink: #163028;
  --muted: #5d7268;
  --gold: #e8b423;
  --bg: #f4f8f5;
  --line: #e3eee6;
  --forest: #0c3324;
  --card: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
html[lang="km"] body { font-family: "Noto Sans Khmer", "Segoe UI", Arial, sans-serif; }
html[lang="my"] body { font-family: "Noto Sans Myanmar", "Segoe UI", Arial, sans-serif; }
html[lang="th"] body { font-family: "Noto Sans Thai", "Leelawadee UI", "Segoe UI", Arial, sans-serif; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-d); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  z-index: 80;
  border-radius: 8px;
}
.skip:focus { top: 8px; }

.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.page-pad { padding: 28px 0 56px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
}
.btn-gold { background: linear-gradient(#f6d56a, #e8b423); color: #3d2a04; }
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost { background: rgba(255,255,255,.88); color: var(--brand-d); border-color: rgba(26,157,82,.28); }
.btn-ghost:hover { background: #fff; }
.btn-primary { background: var(--brand); color: #fff; border-radius: 10px; }
.btn-primary:hover { background: var(--brand-d); }
.btn-sm { padding: 8px 12px; font-size: 14px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  color: #fff;
  background: linear-gradient(90deg, #0d6a3c 0%, #1fa85c 100%);
  border-top: 3px solid var(--gold);
  box-shadow: 0 8px 24px rgba(12, 90, 50, .18);
}
.bar {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: 0 0 auto; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: #0c3324; color: #e8b423;
  border: 1px solid rgba(232, 180, 35, .7);
  display: grid; place-items: center;
  font-weight: 900; letter-spacing: -.03em;
}
.logo-type strong { display: block; font-size: 20px; letter-spacing: .04em; line-height: 1; }
.logo-type small { display: block; margin-top: 3px; opacity: .85; font-size: 11px; letter-spacing: .14em; }
.nav { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.menu { display: flex; flex-wrap: wrap; gap: 2px 4px; list-style: none; margin: 0; padding: 0; }
.menu a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  padding: 8px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.menu a:hover, .menu a[aria-current="page"] { background: rgba(255,255,255,.16); }
.has-sub { position: relative; }
.sub {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  background: #fff;
  min-width: 250px;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(8, 50, 30, .16);
  z-index: 30;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a {
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  display: block;
  font-size: 14px;
}
.sub a:hover { background: #f3f8f4; }
.search input {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  width: 148px;
  background: rgba(255,255,255,.95);
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 8px;
}
.nav-toggle span { display: block; height: 2px; margin: 5px 4px; background: #fff; border-radius: 2px; }
.head-cta { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.btn-head { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-head:hover { background: rgba(255,255,255,.14); }
.play-slot { display: flex; justify-content: center; margin: 22px 0; }
.play-slot .btn { min-width: 180px; padding: 14px 28px; font-size: 17px; }
.play-bottom { padding-top: 8px; }
.play-bottom .play-slot { margin: 8px 0 0; }

.hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.85), transparent 26%),
    radial-gradient(circle at 88% 0%, rgba(255,255,255,.7), transparent 22%),
    linear-gradient(180deg, #d8f5e4 0%, #f7fbf8 100%);
  border-bottom: 1px solid #d7eee0;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: center;
  padding: 28px 0 32px;
}
.kicker {
  margin: 0 0 8px;
  color: var(--brand-d);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}
.display {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: .95;
  font-weight: 850;
  letter-spacing: -.04em;
  color: #0c3324;
}
.display::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8b423, #1a9d52);
}
.lead { margin: 12px 0 0; color: #3e5648; font-size: 1.05rem; }
.age { margin: 14px 0 0; color: #5d7268; font-size: 12px; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hero-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.cluster {
  background: linear-gradient(#f7fbf8, #fff);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 24px;
  padding: 10px 10px 16px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(14, 90, 50, .08);
}
.cluster p { margin: 8px 0 0; font-weight: 800; color: #245c3e; font-size: 14px; }
.stage-art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  margin-bottom: 12px;
  background: #e7f6ee;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(#3dce78, #14914a);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 8px 8px 16px;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(20, 145, 74, .28);
}
.pill i {
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; color: #14914a;
  display: grid; place-items: center;
  font-style: normal; font-size: 12px;
}

.products {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 8px;
}
.product {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 12px 16px;
  text-decoration: none;
  color: inherit;
  min-height: 168px;
}
.product { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.product:hover { border-color: #b7e3c8; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 70, 40, .08); }
.product-ico { display: block; }
.product-ico img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
.product strong { display: block; margin: 8px 0 4px; }
.product small {
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 26px 0 12px; }
.section-head h2 { margin: 0; font-size: 1.35rem; }
.section-head a { font-weight: 800; text-decoration: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16, 60, 90, .08); }
.card-cover {
  aspect-ratio: 16/9;
  background: linear-gradient(160deg, #d9f5e4, #fff6dc);
  display: grid;
  place-items: center;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-art { object-fit: cover; }
.card-fallback { font-weight: 900; letter-spacing: .08em; color: #0c3324; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.card-body small { color: var(--brand-d); font-weight: 800; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.card-body strong {
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-body .excerpt {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-body time { color: #7b8b98; font-size: 12px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; margin-top: 22px; }
.article-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 28px 34px;
  box-shadow: 0 10px 30px rgba(16, 60, 90, .04);
}
.article-card.narrow { max-width: 720px; margin: 0 auto; }
.article-card h1 { font-size: clamp(1.7rem, 3vw, 2.25rem); line-height: 1.25; margin: 0 0 10px; letter-spacing: -.02em; }
.byline { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.byline a { font-weight: 800; text-decoration: none; }
.lead-block { color: #3e5648; font-size: 1.05rem; }
.cover img { border-radius: 14px; display: block; }
.prose { font-size: 17px; line-height: 1.75; color: #24382e; }
.prose h2 { font-size: 1.45rem; line-height: 1.3; margin: 1.5em 0 .45em; color: #123828; }
.prose h3 { font-size: 1.12rem; margin: 1.25em 0 .35em; color: #1a5c3a; }
.prose p { margin: 0 0 .95em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.25em; }
.prose li { margin: .28em 0; }
.prose a { font-weight: 700; }
.prose img { border-radius: 12px; }
.prose blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  background: #f4faf6;
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
}
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.crumbs a { text-decoration: none; font-weight: 700; }
.empty { color: var(--muted); }

.widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 8px;
  margin-bottom: 16px;
}
.widget h2 { font-size: 16px; margin: 0 0 8px; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { padding: 9px 0; }
.link-list li + li { border-top: 1px solid var(--line); }
.link-list a { color: var(--ink); text-decoration: none; font-weight: 750; font-weight: 700; }
.link-list time { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.related { margin-top: 28px; }
.related h2 { font-size: 1.2rem; }
.contact-card { list-style: none; padding: 14px 16px; margin: 18px 0 0; background: #f4faf6; border-radius: 12px; }
.contact-card li { margin: 6px 0; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.pager a, .pager span {
  min-width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.pager .on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager .gap { border: 0; background: transparent; min-width: 18px; color: var(--muted); }

.site-footer { background: var(--forest); color: #d5efe4; margin-top: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr .9fr; gap: 28px; padding: 36px 0 18px; }
.site-footer h2 { font-size: 16px; margin: 0 0 10px; color: #fff; }
.site-footer p { margin: 0; line-height: 1.65; color: #c5e4d4; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: #b7ebcf; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 14px 0 22px; color: #9ec4b0; font-size: 13px; }
.footer-bottom p { margin: 0; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
  }
  body.nav-open .nav { display: flex; }
  .menu { flex-direction: column; }
  .menu a { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 16px; }
  .sub { position: static; display: block; box-shadow: none; padding: 0 0 0 10px; min-width: 0; }
  .search input { width: 100%; }
  .head-cta { margin-left: 0; }
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .article-card { padding: 20px 16px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-stage, .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
