/* index.php — moved from its inline <style> block (loaded at the same position). */
:root {
  --green: #067647;
  --deep: #062f25;
  --mint: #dff8ec;
  --lime: #a9edc5;
  --ink: #10231d;
  --muted: #62756d;
  --line: #dceae3;
  --gold: #e5b84b
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  color: var(--ink);
  font-family: 'IBM Plex Sans Thai', sans-serif;
  background: #fbfdfc;
  overflow-x: hidden;
  font-size: 17px;
  line-height: 1.7
}

a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
  text-decoration: none;
  color: inherit
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: auto
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fbfdfcd9;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid #e6eee9
}

.nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 32px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Inter, sans-serif
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #1cc477);
  font-weight: 800
}

.brand-mark.brand-image {
  object-fit: contain;
  background: transparent
}

.brand strong {
  display: block;
  font-size: 20px;
  color: var(--deep)
}

.brand small {
  display: block;
  font-size: 10px;
  color: var(--muted)
}

.links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
  color: #52655d
}

.links a:hover {
  color: var(--green)
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center
}

.menu {
  display: none;
  border: 0;
  background: none;
  font-size: 24px
}

.hero {
  min-height: 600px;
  padding: 92px 0 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  overflow: hidden
}

.hero:before,
.hero:after {
  display: none;
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  opacity: .5
}

.hero:before {
  width: 480px;
  height: 480px;
  right: -170px;
  top: -160px;
  background: radial-gradient(circle, #a9edc5, #c8f7db 38%, transparent 60%);
  animation: aurora-a 16s ease-in-out infinite
}

.hero:after {
  width: 380px;
  height: 380px;
  left: -140px;
  bottom: -200px;
  background: radial-gradient(circle, #8ff0d4, #dff8ec 38%, transparent 60%);
  animation: aurora-b 20s ease-in-out infinite
}

.hero-grid {
  display: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(#0676470d 1px, transparent 1px), linear-gradient(90deg, #0676470d 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 62% 42%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 65% 60% at 62% 42%, #000 25%, transparent 78%);
  animation: grid-drift 22s linear infinite
}

@keyframes aurora-a {

  0%,
  100% {
    transform: translate(0, 0) scale(1)
  }

  50% {
    transform: translate(-35px, 25px) scale(1.12)
  }
}

@keyframes aurora-b {

  0%,
  100% {
    transform: translate(0, 0) scale(1)
  }

  50% {
    transform: translate(30px, -20px) scale(1.08)
  }
}

@keyframes grid-drift {
  to {
    background-position: 40px 40px
  }
}

.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em
}

.hero h1 {
  font-family: Inter, 'IBM Plex Sans Thai', sans-serif;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 18px 0
}

.hero h1 em {
  font-style: normal;
  color: var(--green)
}

.hero p {
  max-width: 560px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.9
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin: 28px 0
}

.trust {
  display: flex;
  gap: 19px;
  color: var(--muted);
  font-size: 15px
}

.trust span:before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  margin-right: 6px
}

.globe {
  width: min(440px, 90vw);
  aspect-ratio: 1;
  margin: auto;
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #39db91 0, #0a8554 30%, #063e31 72%);
  box-shadow: inset -30px -25px 60px #011b14, 0 35px 90px #08764a32
}

.globe:before,
.globe:after {
  content: '';
  position: absolute;
  inset: 11%;
  border: 1px solid #c0ffda70;
  border-radius: 50%;
  transform: rotate(55deg) scaleX(.45)
}

.globe:after {
  transform: rotate(-35deg) scaleX(.45)
}

.globe-core {
  position: absolute;
  inset: 24%;
  display: grid;
  place-items: center;
  border: 1px solid #d3ffe155;
  border-radius: 50%;
  color: #eafff1;
  text-align: center;
  background: #0b7e5038;
  box-shadow: 0 0 50px #89ffc133
}

.globe-core b {
  font: 800 38px Inter, sans-serif;
  display: block
}

.globe-core small {
  letter-spacing: .16em
}

.float {
  position: absolute;
  padding: 15px 18px;
  border: 1px solid #ffffff8c;
  border-radius: 16px;
  background: #ffffffd9;
  box-shadow: 0 15px 35px #164d3520;
  animation: float 4s ease-in-out infinite
}

.float b {
  display: block;
  font: 700 22px Inter;
  color: var(--green)
}

.f1 {
  top: 13%;
  right: 0
}

.f2 {
  bottom: 16%;
  left: -5%;
  animation-delay: 1.3s
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 16px 0 88px
}

.stat {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff
}

.stat b {
  font: 800 30px Inter;
  color: var(--green);
  display: block
}

.stat span {
  font-size: 16px;
  color: var(--muted)
}

.section {
  padding: 74px 0
}

.section.alt {
  background: var(--mint)
}

.heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px
}

.heading h2 {
  font-size: 34px;
  margin: 8px 0 0;
  letter-spacing: -.015em;
  line-height: 1.35
}

.heading a {
  color: var(--green);
  font-weight: 600
}

.categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px
}

.category {
  display: flex;
  flex-direction: column;
  padding: 25px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  transition: .25s
}

.category:hover,
.course:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 35px #12553616
}

.cat-icon {
  font-size: 28px
}

.category h3 {
  margin: 19px 0 4px
}

.category small {
  margin-top: auto;
  color: var(--muted)
}

.category-description {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.category,
.category h3,
.category-description,
.category small {
  text-decoration: none !important;
}

.courses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}

.course-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -8px 0 24px;
  flex-wrap: wrap
}

.course-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.course-filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: .2s
}

.course-filter:hover,
.course-filter.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff
}

.course-count {
  color: var(--muted);
  font-size: 13px
}

.course.is-hidden { display: none }

.course-empty {
  display: none;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-align: center
}

.course-empty.is-visible { display: block }

.course,
.course:hover,
.course:visited,
.course:focus {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: .25s;
  text-decoration: none;
  color: inherit;
}

.course:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.course-art {
  height: 170px;
  position: relative;
  background: linear-gradient(135deg, #d6f7e4, #8bd9b2)
}

.course:nth-child(2) .course-art {
  background: linear-gradient(135deg, #dbeaff, #8fb5ee)
}

.course:nth-child(3) .course-art {
  background: linear-gradient(135deg, #fff1c9, #edc974)
}

.course-art:after {
  content: '✦';
  position: absolute;
  right: 24px;
  bottom: 7px;
  font-size: 90px;
  color: #fff8;
  transform: rotate(20deg)
}

.tag {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #fff;
  font: 700 10px Inter;
  color: var(--green)
}

.course-body {
  padding: 20px
}

.course h3 {
  font-size: 19px;
  margin: 8px 0 10px;
  text-decoration: none;
}

.course p,
.course small {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.journey {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: center
}

.journey h2 {
  font-size: 38px;
  line-height: 1.25;
  margin: 10px 0
}

.journey p {
  color: var(--muted);
  line-height: 1.9
}

.path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: relative
}

.path:before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #9bdabb
}

.node {
  position: relative;
  text-align: center
}

.node b {
  display: grid;
  place-items: center;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  border: 8px solid var(--mint);
  font-family: Inter
}

.node strong {
  display: block;
  margin-top: 13px;
  font-size: 14px
}

.node small {
  color: var(--muted);
  font-size: 14px
}

.ai {
  border-radius: 28px;
  padding: 58px;
  background: linear-gradient(120deg, var(--deep), #08794c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden
}

.ai h2 {
  font-size: 34px;
  max-width: 600px;
  margin: 10px 0
}

.ai p {
  color: #d4eee1
}

.search {
  display: flex;
  max-width: 470px;
  padding: 7px;
  border-radius: 14px;
  background: #fff
}

.search input {
  border: 0;
  outline: 0;
  padding: 12px;
  flex: 1;
  font: inherit
}

.search button {
  border: 0;
  border-radius: 10px;
  padding: 0 17px;
  color: #fff;
  background: var(--green);
  font: inherit
}

.why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

.why article {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff
}

.why b {
  font-size: 25px;
  color: var(--green)
}

.why h3 {
  font-size: 17px
}

.why p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85
}

.cta {
  text-align: center;
  padding: 95px 20px;
  background: linear-gradient(135deg, #dff8ec, #f8fffb)
}

.cta h2 {
  font-size: 42px;
  margin: 12px 0
}

.cta p {
  color: var(--muted)
}

.faq-list {
  max-width: 820px;
  margin: auto
}

.faq-list .heading h2 {
  color: var(--deep);
  font-family: Inter, 'IBM Plex Sans Thai', sans-serif;
  font-size: 36px;
  line-height: 1.35
}

.faq-list details {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff
}

.faq-list details + details { margin-top: 12px }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  color: var(--ink)
}

.faq-list summary::-webkit-details-marker { display: none }
.faq-list summary::after {
  content: '+';
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--mint);
  font: 600 22px/1 Inter, sans-serif
}
.faq-list details[open] summary { color: var(--green) }
.faq-list details[open] summary::after { content: '−'; }

.faq-list details p {
  margin: 12px 24px 0 0;
  color: var(--muted);
  line-height: 1.75
}

footer {
  padding: 48px 0;
  background: #062f25;
  color: #d3e8dc
}

footer .foot {
  display: flex;
  justify-content: space-between;
  gap: 30px
}

footer strong {
  font: 700 21px Inter;
  color: #fff
}

footer p {
  color: #a8c8b7
}

footer nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  align-items: center
}

footer nav a,
footer nav a:hover,
footer nav a:visited,
footer nav a:focus {
  color: #d3e8dc;
  text-decoration: none;
}

footer nav a:hover {
  color: var(--lime);
}

@keyframes float {
  50% {
    transform: translateY(-12px)
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: .6s
}

.reveal.show {
  opacity: 1;
  transform: none
}

@media(max-width:850px) {

  .nav {
    background: rgba(255, 255, 255, .96)
  }

  .nav-inner {
    height: 72px;
    gap: 8px
  }

  .brand {
    min-width: 0;
    flex-shrink: 1
  }

  .brand > span:last-child {
    min-width: 0
  }

  .brand strong {
    display: none
  }

  .brand small {
    display: none
  }

  .actions {
    margin-left: auto;
    flex-shrink: 0
  }

  .actions .btn-success {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0
  }

  .menu {
    display: grid;
    place-items: center;
    width: 38px;
    height: 40px;
    margin-left: 0;
    padding: 0;
    border: 2px solid #10231d;
    border-radius: 5px;
    color: #10231d;
    font-size: 0
  }

  .menu::before {
    content: '☰';
    font-size: 24px;
    line-height: 1
  }

  .links,
  .actions .btn-outline-secondary {
    display: none
  }

  .menu {
    display: grid;
    margin-left: 0
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 58px
  }

  .hero-visual {
    order: -1
  }

  .globe {
    width: 320px
  }

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

  .categories,
  .courses {
    grid-template-columns: repeat(2, 1fr)
  }

  .journey {
    grid-template-columns: 1fr;
    gap: 30px
  }

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

  .ai {
    display: block
  }

  .search {
    margin-top: 25px
  }

  .course-toolbar { align-items: flex-start }

  footer .foot {
    display: block
  }

  footer nav {
    margin-top: 25px;
    flex-wrap: wrap
  }
}

@media(max-width:520px) {
  .wrap {
    width: min(100% - 28px, 1160px)
  }

  .nav .wrap {
    width: calc(100% - 16px)
  }

  .brand {
    gap: 7px
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 50%
  }

  .brand strong {
    font-size: 16px
  }

  .actions .btn-success {
    padding: 7px 8px;
    font-size: 12px
  }

  .menu {
    width: 34px;
    height: 38px
  }

  .btn.btn-success:before {
    margin-right: 5px
  }

  .hero h1 {
    font-size: 43px
  }

  .hero p {
    font-size: 17px;
    line-height: 1.85
  }

  .hero-buttons,
  .trust {
    flex-wrap: wrap
  }

  .categories,
  .courses,
  .why {
    grid-template-columns: 1fr
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 0 56px
  }

  .stat {
    min-width: 0;
    min-height: 104px;
    padding: 18px 16px;
    border-radius: 18px
  }

  .stat b {
    font-size: 25px
  }

  .stat span {
    font-size: 14px;
    line-height: 1.45
  }

  .heading {
    display: block
  }

  .heading a {
    display: inline-block;
    margin-top: 14px
  }

  .heading h2,
  .journey h2,
  .ai h2,
  .cta h2 {
    font-size: 28px
  }

  .faq-list .heading h2 { font-size: 28px; }

  .path {
    gap: 0
  }

  .node b {
    width: 48px;
    height: 48px;
    border-width: 5px;
    font-size: 12px
  }

  .node strong {
    font-size: 12px
  }

  .node small {
    font-size: 12px
  }

  .f1 {
    right: -10px
  }

  .f2 {
    left: -15px
  }

  .float {
    padding: 10px;
    font-size: 12px
  }
}
