@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@400;500;600;700&family=Sarabun:wght@400;500;700&display=swap');

:root {
  --bg: #fbfcfe;
  --bg-soft: #f4f7fb;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --surface-strong: #ffffff;
  --ink: #17191f;
  --ink-soft: #4e5b6c;
  --ink-faint: #738092;
  --brand: #153b63;
  --brand-strong: #0f2b46;
  --accent: #de6f1d;
  --accent-strong: #bc5712;
  --highlight: #f3c64f;
  --border: rgba(15, 43, 70, 0.1);
  --border-strong: rgba(15, 43, 70, 0.16);
  --shadow-sm: 0 10px 28px rgba(15, 43, 70, 0.05);
  --shadow-md: 0 18px 48px rgba(15, 43, 70, 0.08);
  --focus-ring: 0 0 0 4px rgba(222, 111, 29, 0.16);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Anuphan', 'Sarabun', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(21, 59, 99, 0.05), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

a {
  color: inherit;
}

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

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(15, 43, 70, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.site-header__frame {
  display: grid;
  gap: 12px;
  padding: 14px 0;
}

.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(15, 61, 86, 0.08);
}

.brand-mark__text {
  display: grid;
  gap: 2px;
}

.brand-mark__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-strong);
}

.brand-mark__tag {
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.site-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(21, 59, 99, 0.05);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-header__secondary-link {
  color: var(--ink-faint);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.site-header__secondary-link,
.site-footer__secondary {
  line-height: 1.55;
}

.button,
button.button,
input.button {
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  font-weight: 700;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.button--primary {
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  box-shadow: 0 10px 24px rgba(188, 87, 18, 0.18);
}

.button--secondary {
  color: var(--brand-strong);
  background: var(--surface);
  border-color: rgba(21, 59, 99, 0.18);
  box-shadow: inset 0 0 0 1px rgba(21, 59, 99, 0.04);
}

.button--accent {
  color: #fff;
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  box-shadow: 0 10px 24px rgba(15, 43, 70, 0.14);
}

.button--ghost {
  color: var(--brand);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(21, 59, 99, 0.12);
}

.button--block {
  width: 100%;
}

.button:hover,
.line-pill:hover,
.site-nav a:hover,
.site-header__secondary-link:hover,
.site-footer__links a:hover,
.site-footer__socials a:hover {
  transform: translateY(-1px);
}

.button--primary:hover {
  background: linear-gradient(180deg, #e77a2d, #c35e18);
}

.button--secondary:hover,
.button--ghost:hover {
  border-color: rgba(21, 59, 99, 0.28);
  background: #ffffff;
}

.button--accent:hover {
  background: linear-gradient(180deg, #194675, #123353);
}

.button:focus-visible,
.line-pill:focus-visible,
.site-nav a:focus-visible,
.site-header__secondary-link:focus-visible,
.site-footer__links a:focus-visible,
.site-footer__socials a:focus-visible,
.field:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.line-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: #0e8a48;
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(14, 138, 72, 0.16);
}

.line-pill--floating {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 24;
  box-shadow: 0 16px 34px rgba(14, 138, 72, 0.22);
}

.hero {
  padding: 42px 0 28px;
}

.hero__panel,
.page-hero {
  background:
    linear-gradient(180deg, rgba(21, 59, 99, 0.02), rgba(21, 59, 99, 0) 22%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
}

.hero__eyebrow,
.section__eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(21, 59, 99, 0.08);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--brand-strong);
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.15rem);
  margin-top: 16px;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0;
  line-height: 1.72;
  color: var(--ink-soft);
}

.lead {
  font-size: 1.08rem;
  margin-top: 16px;
  max-width: 820px;
}

.hero__actions,
.cta-group,
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero__stats,
.trust-bar,
.grid,
.cards {
  display: grid;
  gap: 18px;
}

.hero__stats {
  margin-top: 24px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.stat-card,
.trust-card,
.card,
.info-card,
.faq-card,
.placeholder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.stat-card strong,
.metric {
  display: block;
  font-size: 1.35rem;
  color: var(--brand-strong);
  margin-bottom: 6px;
}

.section {
  padding: 28px 0 30px;
}

.section-header {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.section-header p {
  max-width: 700px;
}

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

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

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

.card {
  display: grid;
  gap: 14px;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(21, 59, 99, 0.08);
  color: var(--brand-strong);
}

.chip--accent {
  background: rgba(222, 111, 29, 0.1);
  color: var(--accent-strong);
}

.chip--soft {
  background: rgba(115, 128, 146, 0.1);
  color: var(--ink-soft);
}

.course-card__actions,
.card__actions,
.split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filters {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.field,
.select,
.textarea {
  width: 100%;
  border: 1px solid rgba(21, 59, 99, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

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

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid__double {
  display: grid;
  gap: 14px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  font-weight: 700;
  color: var(--brand-strong);
}

.checkbox-grid {
  display: grid;
  gap: 10px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
}

.pill-list,
.bullet-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.bullet-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
}

.bullet-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 10px;
}

.split-panel {
  display: grid;
  gap: 16px;
}

.support-note {
  margin-top: 14px;
}

.compact-copy {
  max-width: 640px;
}

.cta-banner {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #12304f, #0f2941);
  color: #fff;
  box-shadow: 0 20px 48px rgba(15, 43, 70, 0.16);
}

.cta-banner h2,
.cta-banner p,
.cta-banner strong {
  color: inherit;
}

.page-list,
.hours-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-list li,
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
}

.page-list li:last-child,
.hours-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.note,
.success-box,
.empty-state {
  padding: 16px;
  border-radius: var(--radius-md);
}

.note {
  background: rgba(243, 198, 79, 0.14);
  color: var(--brand-strong);
  border: 1px solid rgba(243, 198, 79, 0.34);
}

.stack {
  display: grid;
  gap: 14px;
}

.success-box {
  background: rgba(11, 143, 71, 0.12);
  color: #0a6d35;
  display: none;
}

.success-box.is-visible {
  display: block;
}

.empty-state {
  background: rgba(115, 128, 146, 0.08);
  color: var(--ink-soft);
  border: 1px solid rgba(115, 128, 146, 0.16);
}

.site-footer {
  padding: 36px 0 70px;
}

.site-footer__panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 18px;
}

.site-footer__meta {
  display: grid;
  gap: 8px;
}

.site-footer__links,
.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer__links a,
.site-footer__socials a {
  color: var(--brand-strong);
  text-decoration: none;
  font-weight: 600;
}

.site-footer__secondary {
  color: var(--ink-faint);
  font-size: 0.92rem;
}

.site-footer__secondary a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.site-footer__socials a.is-disabled,
.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.key-facts {
  display: grid;
  gap: 12px;
}

.key-facts__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 61, 86, 0.1);
}

.key-facts__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.key-facts__label {
  color: var(--ink-faint);
}

.key-facts__value {
  color: var(--brand-strong);
  font-weight: 700;
  text-align: right;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-strong);
}

.video-card__placeholder {
  min-height: 110px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(21, 59, 99, 0.06), rgba(21, 59, 99, 0.02));
  border: 1px dashed rgba(21, 59, 99, 0.18);
  color: var(--brand-strong);
  font-weight: 700;
  font-size: 1.05rem;
}

.route-alert {
  background: rgba(222, 111, 29, 0.1);
  color: var(--accent-strong);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(222, 111, 29, 0.2);
}

@media (min-width: 720px) {
  .hero {
    padding-top: 58px;
  }

  .grid--2,
  .form-grid__double,
  .split-panel,
  .trust-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section {
    padding: 38px 0 42px;
  }
}

@media (min-width: 980px) {
  .site-nav {
    align-items: center;
    gap: 18px;
    overflow: visible;
  }

  .site-nav a {
    background: transparent;
    padding: 0;
  }

  .hero__panel {
    padding: 52px 48px;
  }

  .page-hero {
    padding: 40px 34px;
  }

  .split-panel--wide {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
