:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --ink: #1b1d1b;
  --muted: #5e635c;
  --line: #dddcd6;
  --accent: #2a4a3c;
  --accent-soft: #e4eee8;
  --accent-hover: #1c3329;
  --highlight: #8fae9a;
  --error: #8b3a2f;
  --success: #2a4a3c;
  --radius: 4px;
  --shadow: 0 18px 40px rgba(27, 29, 27, 0.08);
  --font-display: "Noto Serif Thai", "Georgia", serif;
  --font-body: "Sarabun", "Helvetica Neue", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(143, 174, 154, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(42, 74, 60, 0.06), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
}

ul {
  padding-left: 1.2em;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 245, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(27, 29, 27, 0.04);
}

.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav .nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-nav .nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-home {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-home__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-home__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowZoom 18s ease-in-out infinite alternate;
}

.hero-home__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 29, 27, 0.25) 0%,
    rgba(27, 29, 27, 0.55) 45%,
    rgba(27, 29, 27, 0.82) 100%
  );
}

.hero-home__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0 5rem;
  color: #f4f6f4;
  max-width: 38rem;
  animation: riseIn 0.9s ease both;
}

.hero-home__brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.05;
  color: #fff;
}

.hero-home__title {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 400;
  margin: 0 0 0.85rem;
  color: #e8eee9;
  line-height: 1.45;
}

.hero-home__lead {
  margin: 0 0 1.75rem;
  color: rgba(244, 246, 244, 0.82);
  font-size: 1.02rem;
}

.hero-home .btn-primary {
  background: #f4f6f4;
  color: var(--accent);
}

.hero-home .btn-primary:hover {
  background: #fff;
  color: var(--accent-hover);
}

.section {
  padding: 4.5rem 0;
}

.section- Tight {
  padding: 3rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.proof-bar {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
  padding: 2.25rem 0;
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.proof-item span {
  color: var(--muted);
  font-size: 0.95rem;
}

.course-grid,
.blog-grid,
.tier-grid,
.benefit-grid {
  display: grid;
  gap: 1.75rem;
}

.course-grid,
.blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.benefit-grid {
  grid-template-columns: repeat(2, 1fr);
}

.tier-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.media-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 0.7s ease both;
}

.media-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.media-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-tile__body {
  padding: 1.35rem 1.4rem 1.55rem;
}

.media-tile__body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.media-tile__body h3 a {
  color: inherit;
  text-decoration: none;
}

.media-tile__body h3 a:hover {
  color: var(--accent);
}

.media-tile__body p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 0.85rem;
}

.meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.benefit-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  animation: fadeUp 0.7s ease both;
}

.benefit-item:last-child {
  border-bottom: 1px solid var(--line);
}

.benefit-item h3 {
  font-size: 1.25rem;
}

.benefit-item p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.quote-list {
  display: grid;
  gap: 1.5rem;
}

.quote {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  animation: fadeUp 0.7s ease both;
}

.quote:last-child {
  border-bottom: 1px solid var(--line);
}

.quote p {
  font-size: 1.08rem;
  margin-bottom: 0.85rem;
}

.quote footer {
  color: var(--muted);
  font-size: 0.92rem;
}

.cta-band {
  background: var(--accent);
  color: #f4f6f4;
  padding: 4rem 0;
  margin-top: 1rem;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  max-width: 28rem;
}

.cta-band p {
  color: rgba(244, 246, 244, 0.85);
  max-width: 32rem;
}

.cta-band .btn-primary {
  background: #f4f6f4;
  color: var(--accent);
}

.page-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 18ch;
}

.page-hero p {
  color: var(--muted);
  max-width: 40rem;
  margin: 0;
}

.page-hero--media {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.page-hero--media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 29, 27, 0.2), rgba(27, 29, 27, 0.78));
}

.page-hero--media .container {
  position: relative;
  z-index: 1;
  padding: 4rem 0 3rem;
  color: #f4f6f4;
}

.page-hero--media h1 {
  color: #fff;
}

.page-hero--media p {
  color: rgba(244, 246, 244, 0.85);
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.2rem;
  font-size: 1.45rem;
}

.prose h3 {
  margin-top: 1.6rem;
  font-size: 1.15rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.25rem 0 1.75rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--accent-soft);
}

.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.7s ease both;
}

.tier.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.tier h3 {
  font-size: 1.35rem;
}

.tier .price {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0.4rem 0 1rem;
  color: var(--accent);
}

.tier .price span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 400;
}

.tier ul {
  margin: 0 0 1.5rem;
  color: var(--muted);
  flex: 1;
}

.tier li {
  margin-bottom: 0.45rem;
}

.form {
  display: grid;
  gap: 1.1rem;
  max-width: 36rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form label {
  font-weight: 600;
  font-size: 0.95rem;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--highlight);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  color: var(--error);
  font-size: 0.88rem;
  min-height: 1.2em;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form-status.is-success {
  display: block;
  background: var(--accent-soft);
  color: var(--success);
}

.form-status.is-error {
  display: block;
  background: #f6e8e5;
  color: var(--error);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}

.contact-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.75rem;
  height: fit-content;
}

.contact-aside h2 {
  font-size: 1.25rem;
}

.contact-aside p {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.modules {
  display: grid;
  gap: 0.85rem;
}

.module {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.module h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.module p {
  margin: 0;
  color: var(--muted);
}

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.instructor img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

.case-study {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.case-study h3 {
  font-size: 1.3rem;
}

.rating {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.site-footer {
  background: #1b1d1b;
  color: rgba(244, 246, 244, 0.78);
  padding: 3.5rem 0 1.75rem;
  margin-top: 3rem;
}

.footer-grid {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-tag {
  max-width: 28ch;
  font-size: 0.95rem;
}

.footer-col h2 {
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: rgba(244, 246, 244, 0.78);
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact p {
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
}

.footer-bottom {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(244, 246, 244, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.footer-legal {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(244, 246, 244, 0.78);
  text-decoration: none;
}

.footer-legal a:hover {
  color: #fff;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 520px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  display: none;
  animation: riseIn 0.45s ease both;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.cookie-banner a {
  color: var(--accent);
}

.cookie-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.cookie-actions .btn {
  padding: 0.65rem 1.1rem;
  font-size: 0.95rem;
}

.inline-error {
  background: #f6e8e5;
  color: var(--error);
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.not-found {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
}

.not-found h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 0.3rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@media (max-width: 960px) {
  .course-grid,
  .blog-grid,
  .tier-grid,
  .benefit-grid,
  .proof-grid,
  .split,
  .contact-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .course-grid,
  .blog-grid,
  .tier-grid {
    grid-template-columns: 1fr 1fr;
  }

  .proof-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border: 0;
  }

  .course-grid,
  .blog-grid,
  .tier-grid {
    grid-template-columns: 1fr;
  }

  .instructor {
    grid-template-columns: 1fr;
  }

  .hero-home__content {
    padding-bottom: 3.5rem;
  }
}
