:root {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Prompt", "Noto Sans Thai", system-ui, sans-serif;
  color: #071827;
  background: #f7f8f6;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

.logo-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  color: #071827;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid rgb(7 24 39 / 0.1);
  box-shadow: 0 10px 30px rgb(7 24 39 / 0.08);
}

.site-header .brand-subtitle,
.site-header .nav-menu > a {
  color: #071827 !important;
}

.site-header .lang-switch a {
  color: #071827 !important;
}

.site-header .lang-switch a.active {
  color: #ffffff !important;
}

.logo-mark::before {
  content: "";
  width: 0.62em;
  height: 0.92em;
  margin-right: -0.16em;
  border: 4px solid #c99332;
  border-right: 0;
  clip-path: polygon(18% 0, 100% 8%, 100% 88%, 18% 100%, 0 82%, 0 18%);
}

.logo-large {
  font-size: clamp(4rem, 12vw, 7.5rem);
}

.logo-footer {
  font-size: 3.5rem;
}

.nav-menu a:not(:last-child) {
  color: rgb(7 24 39 / 0.78);
  transition: color 180ms ease;
}

.nav-menu a:not(:last-child):hover {
  color: #c99332;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgb(7 24 39 / 0.12);
  border-radius: 8px;
  background: white;
}

.lang-switch a {
  padding: 0.45rem 0.7rem;
  font-weight: 700;
  line-height: 1;
  color: #071827;
}

.lang-switch a.active {
  background: #09243a;
  color: white;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #071827;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-menu {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 66px;
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgb(7 24 39 / 0.08);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.96);
  box-shadow: 0 20px 50px rgb(7 24 39 / 0.12);
}

.nav-open .nav-menu a {
  padding: 1rem;
  color: #071827;
}

.theme-hero::after {
  content: "";
  position: absolute;
  left: 0;
  top: 4.1rem;
  bottom: 0;
  width: 56%;
  background: linear-gradient(90deg, rgb(255 255 255 / 0.96) 0%, rgb(255 255 255 / 0.86) 64%, rgb(255 255 255 / 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
}

.hero-copy {
  padding: 1.25rem 1.25rem 1.4rem;
  border-radius: 8px;
  background: transparent;
}

.hero-brand {
  margin-bottom: 0.55rem;
}

.hero-kicker {
  margin-bottom: 1rem;
  color: #b77f24;
}

.hero-title {
  color: #09243a;
  text-shadow: 0 1px 0 rgb(255 255 255 / 0.65);
}

.hero-title-accent {
  color: #b77f24;
}

.hero-subtitle {
  color: #1c3448;
  font-weight: 500;
  text-shadow: 0 1px 0 rgb(255 255 255 / 0.5);
}

.hero-visual img {
  object-position: 38% center;
}

.hero-visual-fade {
  background:
    linear-gradient(90deg, #ffffff 0%, rgb(255 255 255 / 0.74) 16%, rgb(255 255 255 / 0.12) 36%, transparent 58%),
    linear-gradient(180deg, rgb(255 255 255 / 0.08), transparent 26%);
}

.clip-slope {
  clip-path: polygon(0 0, 100% 0, 45% 100%, 0 100%);
}

.feature-mini {
  display: grid;
  min-height: 132px;
  place-items: center;
  gap: 0.35rem;
  border-right: 1px solid rgb(7 24 39 / 0.14);
  text-align: center;
}

.feature-mini:last-child {
  border-right: 0;
}

.feature-mini svg {
  width: 36px;
  height: 36px;
  color: #c99332;
  stroke-width: 1.8;
}

.feature-mini strong {
  font-size: 0.95rem;
}

.feature-mini small {
  max-width: 9rem;
  color: rgb(7 24 39 / 0.68);
}

.section-pad {
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .section-pad {
    padding: 2.6rem 0;
  }
}

.section-kicker {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gold-line {
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 1.15rem;
  border-radius: 999px;
  background: #c99332;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn-primary {
  background: #c99332;
  color: #ffffff !important;
  box-shadow: 0 18px 35px rgb(201 147 50 / 0.24);
}

.btn-primary:hover {
  background: #b77f24;
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid rgb(7 24 39 / 0.16);
  background: rgb(255 255 255 / 0.9);
  color: #071827 !important;
}

.btn-secondary:hover {
  border-color: #c99332;
  color: #b77f24 !important;
  transform: translateY(-2px);
}

.service-panel {
  background: #557f7d;
  color: #ffffff;
}

.service-panel-content,
.service-panel-content h2,
.service-panel-content p,
.service-panel-content .section-kicker {
  color: #ffffff;
}

.service-panel-content .section-kicker {
  color: rgb(255 255 255 / 0.72);
}

.service-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.22);
  padding-bottom: 1rem;
  font-size: 1.08rem;
  line-height: 1.75;
}

.service-row p {
  color: #ffffff;
}

.service-row svg {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: white;
  color: #09243a;
  padding: 10px;
}

.why-card,
.training-card {
  overflow: hidden;
  border: 1px solid rgb(7 24 39 / 0.12);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.72);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.why-card:hover,
.training-card:hover {
  transform: translateY(-7px);
  border-color: rgb(201 147 50 / 0.55);
  box-shadow: 0 18px 45px rgb(7 24 39 / 0.12);
}

.why-card img {
  height: 152px;
  width: 100%;
  object-fit: cover;
}

.why-card svg {
  display: grid;
  width: 54px;
  height: 54px;
  margin: -27px auto 0;
  border-radius: 999px;
  background: #c99332;
  color: white;
  padding: 13px;
  position: relative;
}

.why-card h3,
.training-card h3 {
  padding: 1rem 1rem 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
}

.why-card p,
.training-card p {
  padding: 0.65rem 1rem 1.25rem;
  text-align: center;
  color: rgb(7 24 39 / 0.68);
  line-height: 1.75;
}

.download-panel {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
  border: 1px solid rgb(7 24 39 / 0.1);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f1efe8 100%);
  padding: 1.25rem;
  box-shadow: 0 18px 45px rgb(7 24 39 / 0.1);
}

.download-panel-copy {
  border-radius: 8px;
  background: #09243a;
  color: #ffffff;
  padding: 1.5rem;
}

.download-panel-copy h2 {
  margin-top: 0.55rem;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
}

.download-panel-copy p:not(.section-kicker) {
  margin-top: 1rem;
  max-width: 46rem;
  color: rgb(255 255 255 / 0.78);
  line-height: 1.85;
}

.download-icon {
  display: inline-grid;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.12);
  color: #c99332;
}

.download-icon svg {
  width: 34px;
  height: 34px;
}

.download-actions {
  display: grid;
  gap: 1rem;
}

.download-card {
  display: grid;
  min-height: 160px;
  align-content: center;
  gap: 0.55rem;
  border: 1px solid rgb(7 24 39 / 0.1);
  border-radius: 8px;
  background: #ffffff;
  padding: 1.35rem;
  color: #071827 !important;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: rgb(201 147 50 / 0.62);
  box-shadow: 0 16px 34px rgb(7 24 39 / 0.12);
}

.download-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.48;
  pointer-events: none;
}

.download-card svg {
  width: 40px;
  height: 40px;
  color: #c99332;
  stroke-width: 1.8;
}

.download-card strong {
  font-size: 1.16rem;
  line-height: 1.35;
}

.download-card small {
  color: rgb(7 24 39 / 0.64);
  line-height: 1.6;
}

.download-card-alt {
  background: #f7f8f6;
}

@media (min-width: 768px) {
  .download-panel {
    grid-template-columns: 1.05fr 0.95fr;
    padding: 1.5rem;
  }

  .download-panel-copy {
    padding: 2rem;
  }

  .download-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stat {
  border-right: 1px solid rgb(201 147 50 / 0.5);
  padding-right: 1rem;
}

.bg-navy,
.bg-navy h2,
.bg-navy p {
  color: #ffffff;
  background-color: #09243a;
}

.bg-gold {
  background-color: #c99332 !important;
  color: #071827 !important;
}

.bg-gold h2,
.bg-gold address,
.bg-gold strong,
.bg-gold span {
  color: #071827 !important;
}

.site-footer {
  background: #09243a;
  color: #ffffff;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.site-footer .logo-mark {
  color: #ffffff;
}

.footer-brand > span:last-child {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
}

.footer-links a {
  color: rgb(255 255 255 / 0.82);
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: #c99332;
}

.stat:last-child {
  border-right: 0;
}

.stat svg {
  width: 34px;
  height: 34px;
  margin-bottom: 0.8rem;
  color: #c99332;
}

.stat strong {
  display: block;
  color: #c99332;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
}

.stat p {
  margin-top: 0.7rem;
  color: rgb(255 255 255 / 0.78);
  line-height: 1.7;
}

.stat-text-only p {
  margin-top: 0;
  max-width: 10rem;
  color: rgb(255 255 255 / 0.9);
  font-size: 1.05rem;
  font-weight: 700;
}

.map-panel {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(210px, 1.28fr);
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #f8faf9, #e6ebed);
}

.map-panel::before {
  display: none;
}

.map-panel-title {
  position: relative;
  z-index: 1;
  max-width: 14rem;
  color: #09243a;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 800;
  line-height: 1.55;
}

.map-art {
  position: relative;
  justify-self: end;
  width: min(390px, 100%);
}

.thailand-map {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
}

.map-dots i {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 3px solid #09243a;
  border-radius: 999px;
  background: #c99332;
  animation: pulse 1.8s ease-in-out infinite;
}

.map-dots i:nth-child(1) { left: 22%; top: 23%; }
.map-dots i:nth-child(2) { left: 59%; top: 17%; animation-delay: .2s; }
.map-dots i:nth-child(3) { left: 49%; top: 28%; animation-delay: .4s; }
.map-dots i:nth-child(4) { left: 73%; top: 39%; animation-delay: .6s; }
.map-dots i:nth-child(5) { left: 33%; top: 39%; animation-delay: .8s; }
.map-dots i:nth-child(6) { left: 33%; top: 67%; animation-delay: 1s; }
.map-dots i:nth-child(7) { left: 53%; top: 84%; animation-delay: 1.2s; }

.training-card {
  background: white;
}

.training-card img {
  height: 230px;
  width: 100%;
  object-fit: cover;
}

.training-card b {
  display: block;
  margin: -25px auto 0;
  width: 60px;
  border-radius: 999px;
  background: #09243a;
  color: #c99332;
  position: relative;
  padding: 0.7rem 0;
  text-align: center;
  font-size: 1.1rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 9rem 0 4rem;
  background: linear-gradient(110deg, #09243a 0%, #09243a 48%, #557f7d 100%);
  color: white;
}

.page-hero h1,
.page-hero p {
  color: inherit;
}

.page-hero .text-white\/78,
.page-hero .text-white\/75 {
  color: rgb(255 255 255 / 0.78);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -35%;
  width: 48%;
  height: 82%;
  background: rgb(201 147 50 / 0.18);
  transform: skewX(-18deg);
}

.content-card {
  border: 1px solid rgb(7 24 39 / 0.1);
  border-radius: 8px;
  background: white;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 18px 55px rgb(7 24 39 / 0.08);
  color: #071827;
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  background: #c99332;
}

.content-card h2,
.content-card h3 {
  font-weight: 800;
  color: #071827;
}

.content-card p,
.content-card li {
  color: rgb(7 24 39 / 0.72);
  line-height: 1.9;
}

.content-card ul,
.content-card ol {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.training-table-wrap {
  overflow-x: auto;
}

.training-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  color: #071827;
}

.training-table th,
.training-table td {
  border: 1px solid rgb(7 24 39 / 0.14);
  padding: 0.9rem;
  vertical-align: top;
  line-height: 1.75;
}

.training-table thead th,
.training-table tbody th {
  background: #09243a;
  color: #ffffff;
  font-weight: 800;
}

.newsletter-panel {
  display: grid;
  gap: 2rem;
  align-items: center;
  border-radius: 8px;
  background: linear-gradient(120deg, #09243a, #557f7d);
  color: white;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 24px 70px rgb(7 24 39 / 0.14);
}

.newsletter-form {
  display: grid;
  gap: 0.8rem;
}

.newsletter-form input {
  min-height: 52px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.96);
  padding: 0 1rem;
  color: #071827;
  outline: none;
}

.newsletter-form button {
  min-height: 52px;
  border-radius: 8px;
  background: #c99332;
  color: white;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  background: #b77f24;
}

.newsletter-form p {
  min-height: 1.5rem;
  color: rgb(255 255 255 / 0.82);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .newsletter-panel {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.admin-field {
  display: grid;
  gap: 0.55rem;
  font-weight: 600;
}

.admin-field input,
.admin-field textarea {
  width: 100%;
  border: 1px solid rgb(7 24 39 / 0.14);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-weight: 400;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.admin-field input:focus,
.admin-field textarea:focus {
  border-color: #c99332;
  box-shadow: 0 0 0 4px rgb(201 147 50 / 0.14);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgb(201 147 50 / 0.35);
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 0 10px rgb(201 147 50 / 0);
  }
}

@media (max-width: 767px) {
  .feature-grid {
    gap: 0.65rem;
    margin-top: 1.7rem !important;
  }

  .feature-mini {
    border-right: 0;
    border-bottom: 0;
    min-height: 96px;
    padding: 0.75rem 0.5rem;
    border: 1px solid rgb(7 24 39 / 0.1);
    border-radius: 8px;
    background: rgb(255 255 255 / 0.84);
    box-shadow: 0 12px 28px rgb(7 24 39 / 0.1);
  }

  .feature-mini:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .feature-mini svg {
    width: 28px;
    height: 28px;
  }

  .feature-mini strong {
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .feature-mini small {
    font-size: 0.76rem;
    line-height: 1.45;
    color: rgb(7 24 39 / 0.74);
  }

  .hero {
    min-height: 840px;
  }

  .hero::after {
    width: 76%;
    opacity: 0.38;
  }

  .hero-bg-image {
    object-position: 48% center;
  }

  .hero-subtitle {
    display: inline-block;
    padding: 0.72rem 0.9rem;
    border-radius: 8px;
    background: rgb(255 255 255 / 0.82);
    color: #09243a;
    line-height: 1.75;
    text-shadow: none;
  }

  .map-panel {
    grid-template-columns: minmax(112px, 0.75fr) minmax(160px, 1.25fr);
    gap: 0.65rem;
    min-height: 230px;
    padding: 1.25rem !important;
  }

  .map-panel-title {
    max-width: 9rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  .map-art {
    width: min(220px, 100%);
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid rgb(201 147 50 / 0.32);
    padding-bottom: 1rem;
  }

  .stat:last-child {
    border-bottom: 0;
  }
}
