@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;700;800&display=swap");

/* =========================================================
   NAPALAIMD.COM — COMPLETE SITE-WIDE ADDITIONAL CSS
   All text: Plus Jakarta Sans (Latin) + IBM Plex Sans Thai (Thai)
   ========================================================= */

:root {
  --np-bg: #FFFFFF;
  --np-surface: #ffffff;
  --np-ink: #1D1B33;
  --np-muted: #6F6E80;
  --np-sage: #3A2FD0;
  --np-clay: #C2500F;
  --np-sand: #ECEBFB;
  --np-line: #E7E6EF;
  --np-font: "Plus Jakarta Sans", "IBM Plex Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
}

body {
  background: var(--np-bg);
  color: var(--np-ink);
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.entry-title a,
.wp-block-heading {
  font-family: var(--np-font);
  letter-spacing: -0.02em;
}

.entry-content p {
  line-height: 1.8;
}

.wp-block-button__link {
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 0.95rem;
  transition: transform 0.25s ease, background-color 0.25s ease,
    border-color 0.25s ease, color 0.25s ease;
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
}

.np-soft-card {
  padding: 28px;
  border: 1px solid var(--np-line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(29, 27, 51, 0.06);
}

.np-eyebrow {
  color: var(--np-muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.np-muted {
  color: var(--np-muted);
}

.np-divider {
  height: 1px;
  margin: 48px 0;
  background: var(--np-line);
}

.site-header {
  border-bottom: 1px solid rgba(29, 27, 51, 0.08);
}

.site-footer {
  border-top: 1px solid rgba(29, 27, 51, 0.08);
}

.site-title,
.site-title a {
  font-family: var(--np-font) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ===== CONTACT FORM ===== */

.pcfh-contact-form {
  padding: 34px;
  border: 1px solid var(--np-line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 50px rgba(29, 27, 51, 0.06);
}

.pcfh-contact-form .wpforms-field {
  margin-bottom: 22px;
}

.pcfh-contact-form .wpforms-field-label {
  margin-bottom: 8px;
  color: var(--np-ink);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.pcfh-contact-form .wpforms-field-description,
.pcfh-contact-form .wpforms-field-sublabel {
  color: var(--np-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.pcfh-contact-form input,
.pcfh-contact-form textarea,
.pcfh-contact-form select {
  padding: 13px 15px !important;
  border: 1px solid rgba(29, 27, 51, 0.16) !important;
  border-radius: 16px !important;
  background: #FFFFFF !important;
  color: var(--np-ink) !important;
  font-size: 0.95rem !important;
}

.pcfh-contact-form textarea {
  min-height: 140px;
}

.pcfh-contact-form input:focus,
.pcfh-contact-form textarea:focus,
.pcfh-contact-form select:focus {
  border-color: var(--np-sage) !important;
  box-shadow: 0 0 0 4px rgba(58, 47, 208, 0.18) !important;
  outline: none !important;
}

.pcfh-contact-form ::placeholder {
  color: rgba(111, 110, 128, 0.72);
}

.pcfh-contact-form ul li label,
.pcfh-contact-form .wpforms-field-radio label,
.pcfh-contact-form .wpforms-field-checkbox label {
  color: var(--np-ink);
  font-size: 0.95rem;
}

.pcfh-submit-btn,
.pcfh-contact-form button[type="submit"] {
  padding: 14px 30px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--np-ink) !important;
  color: #ffffff !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.pcfh-submit-btn:hover,
.pcfh-contact-form button[type="submit"]:hover {
  background: #2E25A8 !important;
  transform: translateY(-2px);
}

.pcfh-contact-form .wpforms-page-indicator-progress {
  background-color: var(--np-sage) !important;
}

/* ===== THAI ARTICLES PAGE ===== */

.th-articles-page {
  font-family: var(--np-font);
}

.th-intro {
  max-width: 480px;
  margin: 12px 0 0;
}

.th-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.th-card {
  display: block;
  color: var(--np-ink);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.th-card:hover {
  box-shadow: 0 22px 60px rgba(29, 27, 51, 0.1);
  transform: translateY(-2px);
}

.th-card-image {
  height: 160px;
  margin: -28px -28px 20px;
  border-radius: 28px 28px 0 0;
  background-color: var(--np-sand);
  background-position: center;
  background-size: cover;
}

.th-card-cat {
  display: block;
  margin-bottom: 8px;
  color: var(--np-muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.th-card-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.4;
}

.th-card-excerpt {
  margin: 0 0 14px;
  font-size: 0.85rem;
  line-height: 1.6;
}

.th-card-link {
  color: var(--np-clay);
  font-size: 0.82rem;
}

.th-card:hover .th-card-link {
  text-decoration: underline;
}

.th-card-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: var(--np-line);
  border-style: dashed;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.th-card-soon p {
  margin: 0;
}

/* ===== LANGUAGE SWITCHER ===== */

.np-language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--np-line);
  border-radius: 999px;
  background: rgba(236, 235, 251, 0.48);
  white-space: nowrap;
}

.np-language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--np-muted);
  font-family: var(--np-font);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none !important;
  transition: color 0.2s ease, background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.np-language-switcher a:hover {
  background: rgba(255, 255, 255, 0.68);
  color: var(--np-ink);
}

.np-language-switcher a.is-active {
  background: var(--np-surface);
  box-shadow: 0 3px 12px rgba(29, 27, 51, 0.08);
  color: var(--np-ink);
  pointer-events: none;
}

@media (max-width: 768px) {
  .pcfh-contact-form {
    padding: 24px;
    border-radius: 22px;
  }

  .pcfh-submit-btn,
  .pcfh-contact-form button[type="submit"] {
    width: 100%;
  }

  .np-language-switcher a {
    min-width: 38px;
    padding: 7px 10px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .th-article-grid {
    grid-template-columns: 1fr;
  }
}

  /* ===== NAPALAIMD THAI HOMEPAGE ===== */
  .np-th-home {
    --np-bg: #FFFFFF;
    --np-surface: #ffffff;
    --np-ink: #1D1B33;
    --np-muted: #6F6E80;
    --np-sage: #3A2FD0;
    --np-clay: #C2500F;
    --np-sand: #ECEBFB;
    --np-line: #E7E6EF;
    color: var(--np-ink);
    font-family: var(--np-font);
  }

  .np-th-home *,
  .np-th-home *::before,
  .np-th-home *::after {
    box-sizing: border-box;
  }

  .np-th-home a {
    color: inherit;
  }

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

  .np-th-kicker {
    margin: 0 0 18px;
    color: var(--np-muted);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  .np-th-display,
  .np-th-heading,
  .np-th-card-title,
  .np-th-quote {
    font-family: var(--np-font);
    color: var(--np-ink);
  }

  .np-th-display {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2.35rem, 4.7vw, 4.35rem);
    font-weight: 500;
    line-height: 1.28;
    letter-spacing: 0;
  }

  .np-th-display em {
    color: #3A2FD0;
    font-weight: 400;
  }

  .np-th-lead {
    max-width: 630px;
    margin: 28px 0 0;
    color: var(--np-muted);
    font-size: clamp(1rem, 1.6vw, 1.14rem);
    line-height: 1.9;
  }

  .np-th-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
  }

  .np-th-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid var(--np-ink);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    transition: transform 0.25s ease, background-color 0.25s ease,
      border-color 0.25s ease, color 0.25s ease;
  }

  .np-th-btn:hover {
    transform: translateY(-2px);
  }

  .np-th-btn--primary {
    background: var(--np-ink);
    color: #fff !important;
  }

  .np-th-btn--primary:hover {
    background: #2E25A8;
    border-color: #2E25A8;
  }

  .np-th-btn--quiet {
    background: rgba(255, 255, 255, 0.52);
  }

  .np-th-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 10vw, 136px) 0 clamp(76px, 10vw, 124px);
  }

  

  

  .np-th-hero .np-th-wrap {
    position: relative;
    z-index: 1;
  }

  .np-th-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .72fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
  }

  .np-th-hero-copy {
    min-width: 0;
  }

  .np-th-hero-photo {
    position: relative;
    align-self: stretch;
    min-height: 570px;
    margin: -34px 0 -28px;
  }

  .np-th-hero-photo::before {
    position: absolute;
    inset: 24px -24px -20px 28px;
    border-radius: 190px 190px 28px 28px;
    background: rgba(236, 235, 251, .7);
    content: "";
  }

  .np-th-hero-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 190px 190px 28px 28px;
    object-fit: cover;
    object-position: center 24%;
    box-shadow: 0 24px 70px rgba(29, 27, 51, .12);
  }

  .np-th-hero-photo figcaption {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    color: var(--np-muted);
    font-size: .68rem;
    letter-spacing: .08em;
    backdrop-filter: blur(7px);
  }

  .np-th-manifesto {
    padding: clamp(62px, 8vw, 104px) 0;
    border-top: 1px solid var(--np-line);
    border-bottom: 1px solid var(--np-line);
  }

  .np-th-manifesto-grid {
    display: grid;
    grid-template-columns: minmax(150px, .65fr) minmax(0, 1.7fr);
    gap: clamp(34px, 8vw, 110px);
    align-items: start;
  }

  .np-th-quote {
    max-width: 780px;
    margin: 0;
    font-size: clamp(1.7rem, 3.3vw, 3rem);
    font-weight: 400;
    line-height: 1.58;
    letter-spacing: 0;
  }

  .np-th-quote span {
    color: var(--np-clay);
  }

  .np-th-section {
    padding: clamp(72px, 9vw, 118px) 0;
  }

  .np-th-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 38px;
  }

  .np-th-heading {
    max-width: 720px;
    margin: 0;
    font-size: clamp(1.9rem, 3.6vw, 3.15rem);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0;
  }

  .np-th-text-link {
    flex: 0 0 auto;
    color: var(--np-muted) !important;
    font-size: 0.88rem;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(111,110,128,.45);
  }

  .np-th-text-link:hover {
    color: var(--np-ink) !important;
    border-color: var(--np-ink);
  }

  .np-th-path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .np-th-path {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    padding: 30px;
    border: 1px solid var(--np-line);
    border-radius: 28px;
    background: rgba(255,255,255,.68);
    text-decoration: none !important;
    box-shadow: 0 16px 42px rgba(29,27,51,.045);
    transition: transform .25s ease, box-shadow .25s ease;
  }

  .np-th-path:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 58px rgba(29,27,51,.09);
  }

  .np-th-path::after {
    position: absolute;
    right: -48px;
    bottom: -58px;
    width: 170px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--path-accent, var(--np-sand));
    content: "";
    opacity: .52;
  }

  .np-th-path:nth-child(2) {
    --path-accent: rgba(58,47,208,.48);
  }

  .np-th-path:nth-child(3) {
    --path-accent: rgba(242,107,33,.46);
  }

  .np-th-path-no {
    display: block;
    margin-bottom: 46px;
    color: var(--np-muted);
    font-family: var(--np-font);
    font-size: .82rem;
    letter-spacing: .12em;
  }

  .np-th-path h3 {
    margin: 0 0 12px;
    font-family: var(--np-font);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.5;
  }

  .np-th-path p {
    max-width: 280px;
    margin: 0;
    color: var(--np-muted);
    font-size: .9rem;
    line-height: 1.75;
  }

  .np-th-path-arrow {
    position: absolute;
    left: 30px;
    bottom: 27px;
    font-size: 1.15rem;
  }

  .np-th-writing {
    background: rgba(236,235,251,.28);
  }

  .np-th-article-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 20px;
  }

  .np-th-article {
    display: flex;
    min-height: 330px;
    padding: 28px;
    border: 1px solid var(--np-line);
    border-radius: 26px;
    background: rgba(255,255,255,.72);
    color: var(--np-ink) !important;
    text-decoration: none !important;
    flex-direction: column;
    transition: transform .25s ease, background-color .25s ease;
  }

  .np-th-article:hover {
    transform: translateY(-3px);
    background: #fff;
  }

  .np-th-article--lead {
    background: var(--np-ink);
    color: #fff !important;
  }

  .np-th-article--lead:hover {
    background: #2E25A8;
  }

  .np-th-article--lead .np-th-card-cat,
  .np-th-article--lead .np-th-card-excerpt,
  .np-th-article--lead .np-th-card-read {
    color: rgba(255,255,255,.7);
  }

  .np-th-article--lead .np-th-card-title {
    color: #fff;
  }

  .np-th-card-cat {
    margin-bottom: auto;
    color: var(--np-muted);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .np-th-card-title {
    margin: 48px 0 12px;
    font-size: clamp(1.28rem, 2vw, 1.72rem);
    font-weight: 600;
    line-height: 1.48;
  }

  .np-th-card-excerpt {
    margin: 0;
    color: var(--np-muted);
    font-size: .86rem;
    line-height: 1.72;
  }

  .np-th-card-read {
    margin-top: 22px;
    color: var(--np-clay);
    font-size: .82rem;
  }

  .np-th-about {
    display: grid;
    grid-template-columns: .86fr 1.14fr;
    gap: clamp(40px, 8vw, 100px);
    align-items: center;
  }

  .np-th-portrait {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    border-radius: 180px 180px 28px 28px;
    background:
      radial-gradient(circle at 34% 28%, rgba(255,255,255,.9), transparent 24%),
      linear-gradient(155deg, var(--np-sand), rgba(58,47,208,.58));
  }

  .np-th-portrait::before,
  .np-th-portrait::after {
    position: absolute;
    border: 1px solid rgba(29,27,51,.18);
    border-radius: 50%;
    content: "";
  }

  .np-th-portrait::before {
    width: 260px;
    height: 260px;
    right: -75px;
    bottom: 64px;
  }

  .np-th-portrait::after {
    width: 150px;
    height: 150px;
    left: 42px;
    top: 54px;
  }

  .np-th-portrait img {
    position: absolute;
    left: 50%;
    bottom: -28px;
    width: 112%;
    max-width: none;
    height: auto;
    transform: translateX(-50%);
    z-index: 1;
  }

  .np-th-about-copy p {
    margin: 20px 0 0;
    color: var(--np-muted);
    font-size: .98rem;
    line-height: 1.9;
  }

  .np-th-about-copy .np-th-actions {
    margin-top: 30px;
  }

  .np-th-cta {
    padding: 0 0 clamp(78px, 10vw, 130px);
  }

  .np-th-cta-box {
    position: relative;
    overflow: hidden;
    padding: clamp(38px, 6vw, 70px);
    border-radius: 32px;
    background: var(--np-ink);
    color: #fff;
  }

  .np-th-cta-box::after {
    position: absolute;
    right: -80px;
    top: -120px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 48px rgba(255,255,255,.025);
  }

  .np-th-cta-box .np-th-kicker,
  .np-th-cta-box p {
    color: rgba(255,255,255,.68);
  }

  .np-th-cta-box .np-th-heading {
    position: relative;
    max-width: 760px;
    color: #fff;
    z-index: 1;
  }

  .np-th-cta-box p {
    position: relative;
    max-width: 650px;
    margin: 20px 0 0;
    line-height: 1.85;
    z-index: 1;
  }

  .np-th-cta-box .np-th-btn {
    position: relative;
    border-color: #fff;
    background: #fff;
    color: var(--np-ink) !important;
    z-index: 1;
  }

  @media (max-width: 900px) {
    .np-th-hero-grid {
      grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
      gap: 32px;
    }

    .np-th-hero-photo {
      min-height: 470px;
    }

    .np-th-path-grid,
    .np-th-article-grid {
      grid-template-columns: 1fr;
    }

    .np-th-path {
      min-height: 250px;
    }

    .np-th-article {
      min-height: 290px;
    }

    .np-th-about {
      grid-template-columns: 1fr;
    }

    .np-th-portrait {
      min-height: 390px;
    }
  }

  @media (max-width: 680px) {
    .np-th-wrap {
      width: min(100% - 28px, 1160px);
    }

    

    .np-th-hero-grid {
      grid-template-columns: 1fr;
      gap: 46px;
    }

    .np-th-hero-photo {
      width: min(88%, 420px);
      min-height: 490px;
      margin: 0 auto;
    }

    .np-th-hero-photo::before {
      inset: 18px -16px -16px 22px;
    }

    .np-th-hero-photo img {
      border-radius: 150px 150px 24px 24px;
    }

    .np-th-manifesto-grid {
      grid-template-columns: 1fr;
      gap: 10px;
    }

    .np-th-section-head {
      display: block;
    }

    .np-th-section-head .np-th-text-link {
      display: inline-block;
      margin-top: 20px;
    }

    .np-th-actions {
      align-items: stretch;
      flex-direction: column;
    }

    .np-th-btn {
      width: 100%;
    }

    .np-th-path,
    .np-th-article {
      padding: 24px;
      border-radius: 22px;
    }

    .np-th-path-arrow {
      left: 24px;
    }

    .np-th-portrait {
      min-height: 320px;
      border-radius: 120px 120px 24px 24px;
    }

    .np-th-cta-box {
      border-radius: 24px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .np-th-home *,
    .np-th-home *::before,
    .np-th-home *::after {
      scroll-behavior: auto !important;
      transition-duration: .01ms !important;
    }
  }

/* ===== SITE-WIDE THAI TYPOGRAPHY =====
   Polylang sets the document language to th-TH on Thai pages. */

html[lang^="th"] body {
  font-family: var(--np-font);
}

html[lang^="th"] h1,
html[lang^="th"] h2,
html[lang^="th"] h3,
html[lang^="th"] h4,
html[lang^="th"] h5,
html[lang^="th"] h6,
html[lang^="th"] .entry-title,
html[lang^="th"] .entry-title a,
html[lang^="th"] .wp-block-heading,
html[lang^="th"] .page-title,
html[lang^="th"] .archive-title,
html[lang^="th"] .np-th-display,
html[lang^="th"] .np-th-heading,
html[lang^="th"] .np-th-card-title,
html[lang^="th"] .np-th-quote,
html[lang^="th"] .np-th-path h3 {
  font-family: var(--np-font) !important;
  letter-spacing: 0 !important;
}

html[lang^="th"] .entry-title,
html[lang^="th"] .np-th-display {
  font-weight: 500 !important;
  line-height: 1.35;
}

html[lang^="th"] .entry-content h2,
html[lang^="th"] .np-th-heading {
  font-weight: 500 !important;
  line-height: 1.45;
}

/* ===== THAI CONTACT PAGE ===== */

.np-th-contact-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 10vw, 132px) 0 clamp(64px, 8vw, 98px);
  border-bottom: 1px solid var(--np-line);
}



.np-th-contact-hero .np-th-wrap {
  position: relative;
  z-index: 1;
}

.np-th-contact-hero .np-th-display {
  font-size: clamp(2.7rem, 6vw, 5.25rem);
}

.np-th-contact-paths {
  padding-bottom: clamp(54px, 7vw, 86px);
}

.np-th-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.np-th-contact-grid .np-th-path {
  min-height: 320px;
}

.np-th-contact-grid .np-th-path:nth-child(4) {
  --path-accent: rgba(58, 47, 208, 0.34);
}

.np-th-contact-details {
  background: rgba(236, 235, 251, 0.28);
}

.np-th-contact-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.np-th-contact-detail {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.5fr);
  gap: clamp(28px, 5vw, 72px);
  overflow: hidden;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--np-line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 42px rgba(29, 27, 51, 0.045);
}

.np-th-contact-detail::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--np-sage);
  content: "";
}

.np-th-contact-detail:nth-child(even)::before {
  background: var(--np-clay);
}

.np-th-contact-detail-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.np-th-contact-detail-no {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--np-line);
  border-radius: 50%;
  color: var(--np-ink);
  font-family: var(--np-font);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.np-th-contact-detail-label {
  margin: 0 0 8px !important;
  color: var(--np-clay) !important;
  font-family: var(--np-font);
  font-size: 0.72rem !important;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4 !important;
  text-transform: uppercase;
}

.np-th-contact-detail h3 {
  margin: 0;
  color: var(--np-ink);
  font-family: var(--np-font);
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.45;
}

.np-th-contact-detail p,
.np-th-contact-detail li {
  color: var(--np-muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

.np-th-contact-detail-body > p:first-child {
  margin-top: 0;
}

.np-th-contact-detail ul {
  margin: 20px 0 0;
  padding-left: 1.25rem;
}

.np-th-contact-detail li + li {
  margin-top: 7px;
}

.np-th-contact-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--np-line);
}

.np-th-contact-detail .np-th-actions {
  margin-top: 26px;
}

.np-th-contact-cta {
  padding-top: clamp(78px, 10vw, 120px);
}

.np-th-contact-cta .np-th-actions {
  position: relative;
  z-index: 1;
}

.np-th-cta-box .np-th-contact-ghost {
  border-color: rgba(255, 255, 255, 0.42);
  background: transparent;
  color: #fff !important;
}

.np-th-cta-box .np-th-contact-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.np-th-cta-box .np-th-contact-meta {
  margin-top: 30px;
  font-size: 0.84rem;
}

@media (max-width: 760px) {
  .np-th-contact-grid,
  .np-th-contact-detail-grid {
    grid-template-columns: 1fr;
  }

  .np-th-contact-detail {
    grid-template-columns: 1fr;
    gap: 24px;
    border-radius: 22px;
  }

  .np-th-contact-grid .np-th-path {
    min-height: 290px;
  }

  
}

html[lang^="th"] .entry-content h3,
html[lang^="th"] .entry-content h4 {
  font-weight: 400 !important;
  line-height: 1.5;
}

/* Fallback for the existing Thai article if its page language is not yet set. */
.postid-1855 .entry-title,
.postid-1855 .entry-content h1,
.postid-1855 .entry-content h2,
.postid-1855 .entry-content h3,
.postid-1855 .entry-content h4 {
  font-family: var(--np-font) !important;
  letter-spacing: 0 !important;
}

/* ===== ABOUT PAGE ===== */

.np-about-page {
  color: var(--np-ink);
}

.np-about-page *,
.np-about-page *::before,
.np-about-page *::after {
  box-sizing: border-box;
}

.np-about-page a {
  color: inherit;
}

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

.np-about-narrow {
  width: min(720px, calc(100% - 40px));
  margin-inline: auto;
}

.np-about-kicker {
  margin: 0 0 18px;
  color: var(--np-muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.np-about-page h1,
.np-about-page h2,
.np-about-page h3 {
  margin-top: 0;
  color: var(--np-ink);
  font-family: var(--np-font);
}

.np-about-page h1 {
  margin-bottom: 28px;
  font-size: clamp(2.55rem, 4.8vw, 4.8rem);
  font-weight: 400;
  line-height: 1.04;
}

.np-about-page h2 {
  margin-bottom: 30px;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
}

.np-about-page h3 {
  font-size: 1.4rem;
  line-height: 1.25;
}

.np-about-page p,
.np-about-page li {
  color: var(--np-muted);
  font-size: 1rem;
  line-height: 1.82;
}

/* Thai About page */
html[lang^="th"] .np-about-page--th,
html[lang^="th"] .np-about-page--th p,
html[lang^="th"] .np-about-page--th li,
html[lang^="th"] .np-about-page--th a {
  font-family: var(--np-font);
}

html[lang^="th"] .np-about-page--th h1,
html[lang^="th"] .np-about-page--th h2,
html[lang^="th"] .np-about-page--th h3,
html[lang^="th"] .np-about-page--th .np-about-intro,
html[lang^="th"] .np-about-page--th .np-about-emphasis,
html[lang^="th"] .np-about-page--th .np-about-signoff,
html[lang^="th"] .np-about-page--th .np-about-question p {
  font-family: var(--np-font) !important;
  letter-spacing: 0 !important;
}

html[lang^="th"] .np-about-page--th h1 {
  line-height: 1.3;
}

html[lang^="th"] .np-about-page--th h2 {
  line-height: 1.4;
}

html[lang^="th"] .np-about-page--th h3 {
  line-height: 1.45;
}

.np-about-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(74px, 10vw, 132px) 0;
}



.np-about-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(55px, 8vw, 110px);
  align-items: center;
}

.np-about-hero-copy {
  max-width: 730px;
}

.np-about-hero-copy > p {
  max-width: 640px;
}

.np-about-hero-copy .np-about-intro {
  margin-bottom: 8px;
  color: var(--np-ink);
  font-family: var(--np-font);
  font-size: 1.3rem;
}

.np-about-portrait {
  position: relative;
  margin: 0;
  padding: 14px 14px 0 0;
}

.np-about-portrait::before {
  position: absolute;
  inset: 0 0 34px 14px;
  border: 1px solid rgba(242, 107, 33, 0.75);
  border-radius: 180px 180px 24px 24px;
  content: "";
  transform: translate(13px, -13px);
}

.np-about-portrait img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 180px 180px 24px 24px;
  object-fit: cover;
  object-position: 50% 36%;
  box-shadow: 0 28px 65px rgba(29, 27, 51, 0.13);
}

.np-about-portrait figcaption {
  position: relative;
  margin-top: 15px;
  color: var(--np-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.np-about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.np-about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 23px;
  border: 1px solid var(--np-ink);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.np-about-btn:hover {
  transform: translateY(-2px);
}

.np-about-btn--primary {
  background: var(--np-ink);
  color: #fff !important;
}

.np-about-section {
  padding: clamp(78px, 10vw, 128px) 0;
}

.np-about-narrow p {
  font-size: clamp(1rem, 1.25vw, 1.1rem);
}

.np-about-emphasis,
.np-about-signoff {
  color: var(--np-ink) !important;
  font-family: var(--np-font);
  font-size: 1.35rem !important;
}

.np-about-perspective {
  padding: clamp(84px, 10vw, 130px) 0;
  background: #1D1B33;
}

.np-about-perspective .np-about-kicker,
.np-about-perspective p {
  color: rgba(255, 255, 255, 0.7);
}

.np-about-perspective h2 {
  color: #fff;
}

.np-about-perspective-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(50px, 9vw, 120px);
}

.np-about-perspective-copy {
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.np-about-section-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 8vw, 105px);
  align-items: end;
  margin-bottom: 52px;
}

.np-about-section-head h2 {
  margin-bottom: 0;
}

.np-about-section-head > p {
  margin: 0;
}

.np-about-work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  margin: 0;
  border-top: 1px solid var(--np-line);
  border-left: 1px solid var(--np-line);
}

.np-about-work-grid article {
  min-height: 260px;
  padding: 28px 25px;
  border-right: 1px solid var(--np-line);
  border-bottom: 1px solid var(--np-line);
  background: rgba(255, 255, 255, 0.38);
}

.np-about-work-grid span {
  display: block;
  margin-bottom: 48px;
  color: var(--np-clay);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

.np-about-work-grid h3 {
  margin-bottom: 13px;
}

.np-about-work-grid p {
  margin: 0;
  font-size: 0.92rem;
}

.np-about-question {
  display: block;
  position: relative;
  clear: both;
  max-width: 850px;
  margin: 0 auto !important;
  padding: clamp(70px, 9vw, 110px) 0 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: center;
}

.np-about-question p {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--np-ink);
  font-family: var(--np-font);
  font-size: clamp(1.9rem, 3.3vw, 3.1rem);
  line-height: 1.2;
}

.np-about-background {
  clear: both;
  padding-top: 0 !important;
}

.np-about-background-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(45px, 8vw, 100px);
  align-items: start;
  width: 100%;
  margin: 0;
  padding: clamp(36px, 6vw, 72px);
  border: 1px solid rgba(29, 27, 51, 0.1);
  border-radius: 30px;
  background: #F6F6F9;
}

.np-about-background-card h2 {
  margin-bottom: 0;
}

.np-about-background-card > div {
  min-width: 0;
  margin: 0;
}

.np-about-background-columns {
  display: grid;
  gap: 34px;
  align-content: start;
  min-width: 0;
  margin: 0;
}

.np-about-background-columns h3 {
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.np-about-background-columns ul {
  margin: 0;
  padding-left: 1.2rem;
}

.np-about-background-columns li + li {
  margin-top: 8px;
}

.np-about-tags {
  color: var(--np-ink) !important;
}

.np-about-text-link {
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--np-clay);
  font-weight: 600;
  text-decoration: none !important;
}

.np-about-cta {
  padding: 0 0 clamp(70px, 10vw, 120px);
}

.np-about-cta-box {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 7vw, 82px);
  border-radius: 30px;
  background: var(--np-ink);
}

.np-about-cta-box::after {
  position: absolute;
  right: -80px;
  bottom: -130px;
  width: 350px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  content: "";
}

.np-about-cta-box .np-about-kicker,
.np-about-cta-box p {
  position: relative;
  z-index: 1;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.72);
}

.np-about-cta-box h2 {
  position: relative;
  z-index: 1;
  max-width: 780px;
  color: #fff;
}

.np-about-cta-box .np-about-actions {
  position: relative;
  z-index: 1;
}

.np-about-btn--light {
  border-color: #fff;
  background: #fff;
  color: var(--np-ink) !important;
}

.np-about-btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff !important;
}

@media (max-width: 900px) {
  .np-about-hero-grid,
  .np-about-perspective-grid,
  .np-about-section-head,
  .np-about-background-card {
    grid-template-columns: 1fr;
  }

  .np-about-portrait {
    width: min(500px, 88%);
    margin-inline: auto;
  }

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

  .np-about-section-head {
    align-items: start;
  }
}

@media (max-width: 580px) {
  .np-about-wrap,
  .np-about-narrow {
    width: min(100% - 28px, 1160px);
  }

  .np-about-hero {
    padding-top: 58px;
  }

  .np-about-page h1 {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .np-about-work-grid {
    grid-template-columns: 1fr;
  }

  .np-about-work-grid article {
    min-height: 220px;
  }

  .np-about-background-card,
  .np-about-cta-box {
    padding: 32px 24px;
    border-radius: 22px;
  }

  .np-about-actions {
    flex-direction: column;
  }

  .np-about-btn {
    width: 100%;
  }
}

/* Thai small labels: no wide letter-spacing (it splits Thai letters) */
html[lang^="th"] .np-th-kicker,
html[lang^="th"] .np-th-card-cat,
html[lang^="th"] .np-about-kicker {
  letter-spacing: 0.02em;
}

/* Thai hero: second line upright (Thai has no true italic) */
.np-th-display em {
  font-style: normal;
}

/* New consultation pages */
#opb h1, #opb h2, #opb h3 {
  font-family: var(--sans) !important;
}

/* =========================================================
   HEADER: floating white bar, topic menu, Subscribe button
   ========================================================= */
#masthead .site-main-header-wrap .site-header-row-container-inner { background: transparent; }
@media (min-width: 1025px) {
  #masthead { position: sticky; top: 0; z-index: 100; padding: 12px 16px 0; background: transparent; }
  .admin-bar #masthead { top: 32px; }
  #masthead .site-main-header-wrap .site-header-row-container-inner {
    max-width: 1180px; margin: 0 auto; background: #FFFFFF;
    border: 1px solid var(--np-line); border-radius: 18px;
  }
  #masthead .site-main-header-inner-wrap { position: relative; }
}

/* site name: keep on one line */
.site-branding .site-title { white-space: nowrap; }

/* top-level links: one line, small, bold, uppercase (Thai: normal case) */
#site-navigation .menu { flex-wrap: nowrap; }
#site-navigation .menu > li > a { white-space: nowrap; padding-left: 0.65em; padding-right: 0.65em; }
#site-navigation .menu > li > a {
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--np-ink);
}
html[lang^="th"] #site-navigation .menu > li > a { font-size: 15px; letter-spacing: 0; text-transform: none; }
#site-navigation .menu > li > a:hover { color: #3A2FD0; }

/* Subscribe: indigo pill */
#site-navigation .menu > li.np-menu-cta > a {
  margin-left: 6px; padding: 9px 18px; border-radius: 99px; background: #3A2FD0; color: #FFFFFF;
}
#site-navigation .menu > li.np-menu-cta > a:hover { background: #2E25A8; color: #FFFFFF; }

/* Explore topics: wide panel with four topic columns */
#site-navigation .menu > li.np-mega { position: static; }
#site-navigation .menu > li.np-mega > .sub-menu {
  left: 0; right: 0; margin: 8px auto 0; width: min(880px, 92vw);
  padding: 26px 28px 22px; background: #FFFFFF; border: 1px solid var(--np-line); border-radius: 18px;
  box-shadow: 0 18px 40px rgba(29, 27, 51, 0.08);
  grid-template-columns: repeat(4, 1fr); column-gap: 22px; row-gap: 14px;
}
#site-navigation .menu > li.np-mega.menu-item--toggled-on > .sub-menu,
#site-navigation .menu > li.np-mega:focus-within > .sub-menu { display: grid; }
#site-navigation li.np-mega > .sub-menu > li { border: 0; }
#site-navigation li.np-mega > .sub-menu > li > a {
  display: block; width: auto; padding: 12px 0 6px; background: none;
  border-top: 4px solid #3A2FD0; color: var(--np-ink); font-size: 15px; font-weight: 800; letter-spacing: 0; text-transform: none;
}
#site-navigation li.np-mega > .sub-menu > li:nth-child(even) > a { border-top-color: #F26B21; }
#site-navigation li.np-mega > .sub-menu > li > a:hover { color: #3A2FD0; background: none; }
#site-navigation li.np-mega > .sub-menu > li.np-mega-all { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--np-line); }
#site-navigation li.np-mega > .sub-menu > li.np-mega-all > a {
  display: inline-block; border: 0; padding: 9px 18px; border-radius: 99px; background: #3A2FD0; color: #FFFFFF; font-size: 14px; font-weight: 700;
}
#site-navigation li.np-mega > .sub-menu > li.np-mega-all > a:hover { background: #2E25A8; color: #FFFFFF; }

/* =========================================================
   ARTICLE TABLES: clean, hairline rows, indigo labels
   ========================================================= */
.entry-content .wp-block-table { margin: 32px 0; overflow-x: auto; }
.entry-content .wp-block-table table {
  width: 100%; table-layout: auto; border-collapse: collapse; border: 0; font-size: 0.95rem; line-height: 1.55;
}
.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
  border: 0; border-bottom: 1px solid var(--np-line); padding: 14px 16px 14px 0; text-align: left; vertical-align: top;
}
.entry-content .wp-block-table thead th {
  border-bottom: 2px solid var(--np-ink);
  color: #3A2FD0; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
html[lang^="th"] .entry-content .wp-block-table thead th { letter-spacing: 0.02em; text-transform: none; font-size: 0.85rem; }
.entry-content .wp-block-table tbody tr:last-child td { border-bottom: 0; }
.entry-content .wp-block-table tbody td:first-child { font-weight: 700; color: var(--np-ink); white-space: nowrap; width: 1%; padding-right: 28px; }
.entry-content .wp-block-table thead th:first-child { width: 1%; padding-right: 28px; white-space: nowrap; }
.entry-content .wp-block-table tbody tr:hover td { background: #F6F6F9; }
.entry-content .wp-block-table figcaption { color: var(--np-muted); font-size: 0.85rem; text-align: left; }
@media (max-width: 600px) {
  .entry-content .wp-block-table table { font-size: 0.88rem; }
  .entry-content .wp-block-table tbody td:first-child { white-space: normal; }
}

/* CONTACT CARDS: 3 across */
@media (min-width:861px){.np-th-contact-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important}}
