/* Thai HIV Clinic — Quiet Clinic Pathway Design System */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Noto+Sans+Thai:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Tokens — Quiet Clinic Pathway */
  --bg: #f4f6f3;
  --bg-card: #ffffff;
  --bg-soft: #e8ede9;
  --bg-subtle: #f4f6f3;

  --navy-dark: #143d3d;
  --navy-slate: #1a4848;
  --navy-surface: #1f5553;
  --navy-border: rgba(255, 255, 255, 0.12);

  --accent: #1a6b63;
  --accent-cyan: #2a8f85;
  --accent-teal: #1a6b63;
  --accent-glow: rgba(26, 107, 99, 0.22);
  --accent-light: #d8e6df;

  --hot-coral: #c4785a;
  --hot-amber: #c4785a;
  --hot-soft: #f6ebe6;
  --hot-clay: #c4785a;

  --transit-bts: #1a6b63;
  --transit-mrt: #143d3d;
  --transit-gold: #c4785a;

  --text-main: #1a2332;
  --text-muted: #5c6b6a;
  --text-light: #8a9a98;
  --text-inverse: #ffffff;

  --border: #d5ddd8;
  --border-focus: #1a6b63;

  /* Typography */
  --font: 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'DM Sans', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radii & Shadows */
  --radius-xs: 6px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 4px rgba(20, 61, 61, 0.04);
  --shadow-md: 0 8px 20px -4px rgba(20, 61, 61, 0.08), 0 3px 8px -2px rgba(20, 61, 61, 0.04);
  --shadow-lg: 0 16px 36px -6px rgba(20, 61, 61, 0.12), 0 6px 12px -2px rgba(20, 61, 61, 0.06);
  --shadow-xl: 0 24px 48px -10px rgba(20, 61, 61, 0.18);
  --shadow-glow: 0 0 24px rgba(26, 107, 99, 0.28);

  --max-w: 1180px;
  --header-height: 76px;
}

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

html {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-top: var(--header-height);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* Nav links must not inherit page accent green (blends into dark header) */
.site-header a.nav-link,
header.site-header .main-nav a {
  color: #eef5f2;
}
.site-header a.nav-link:hover,
header.site-header .main-nav a:hover {
  color: #ffffff;
}
.site-header a.nav-link.active,
header.site-header .main-nav a.active {
  color: #143d3d;
}

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

/* Utilities */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #00b4d8 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.badge-cyan {
  background: rgba(0, 180, 216, 0.12);
  color: #0284c7;
  border: 1px solid rgba(0, 180, 216, 0.28);
}

.badge-dark-cyan {
  background: rgba(0, 180, 216, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.badge-hot {
  background: rgba(239, 68, 68, 0.1);
  color: var(--hot-coral);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-bts {
  background: rgba(0, 168, 89, 0.12);
  color: var(--transit-bts);
  border: 1px solid rgba(0, 168, 89, 0.3);
}

.badge-mrt {
  background: rgba(24, 90, 157, 0.12);
  color: var(--transit-mrt);
  border: 1px solid rgba(24, 90, 157, 0.3);
}

/* Header & Sticky Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(7, 13, 30, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  text-decoration: none;
}

.brand-logo:hover {
  transform: scale(1.02);
}

.brand-title {
  font-size: 1.18rem;
  line-height: 1.1;
  color: #ffffff;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 180, 216, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 180, 216, 0.6);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--navy-dark) !important;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-hot {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

.btn-hot:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.55);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  padding: 8px;
  cursor: pointer;
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* Hero Section */
.hero-section {
  background: radial-gradient(circle at 80% 20%, rgba(0, 180, 216, 0.15) 0%, rgba(7, 13, 30, 0) 50%),
              radial-gradient(circle at 10% 80%, rgba(56, 189, 248, 0.1) 0%, rgba(7, 13, 30, 0) 50%),
              linear-gradient(175deg, #070d1e 0%, #0b152d 60%, #132247 100%);
  color: #ffffff;
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-heading {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 620px;
}

.hero-search-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 6px 6px 6px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.hero-search-box:focus-within {
  border-color: #38bdf8;
  box-shadow: var(--shadow-glow);
}

.hero-search-box input {
  flex: 1;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.02rem;
  font-family: var(--font);
  outline: none;
}

.hero-search-box input::placeholder {
  color: #94a3b8;
}

.hero-quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.88rem;
  color: #94a3b8;
}

.hero-quick-tags a {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-quick-tags a:hover {
  background: var(--accent-cyan);
  color: var(--navy-dark) !important;
  border-color: var(--accent-cyan);
}

/* Hero Right Matrix Panel */
.hero-card-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-xl);
  position: relative;
}

.hero-card-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00b4d8, transparent);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* 4-Card Triage Section */
.triage-section {
  padding: 50px 0 60px;
  position: relative;
  margin-top: -40px;
  z-index: 5;
}

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

.triage-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  text-decoration: none;
}

.triage-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-cyan);
}

.triage-card.bts-card { border-top: 4px solid var(--transit-bts); }
.triage-card.mrt-card { border-top: 4px solid var(--transit-mrt); }
.triage-card.hot-card { border-top: 4px solid var(--hot-coral); }
.triage-card.prep-card { border-top: 4px solid var(--accent); }

.triage-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.bts-card .triage-icon-wrap { background: rgba(0, 168, 89, 0.12); color: var(--transit-bts); }
.mrt-card .triage-icon-wrap { background: rgba(24, 90, 157, 0.12); color: var(--transit-mrt); }
.hot-card .triage-icon-wrap { background: rgba(239, 68, 68, 0.12); color: var(--hot-coral); }
.prep-card .triage-icon-wrap { background: rgba(0, 119, 182, 0.12); color: var(--accent); }

.triage-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.triage-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

.triage-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent);
}

.triage-card:hover .triage-card-arrow {
  transform: translateX(5px);
}

/* Hub Knowledge Section */
.hub-section {
  padding: 80px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-tag {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
  display: inline-block;
  background: rgba(0, 180, 216, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--navy-dark);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

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

.hub-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.hub-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-cyan);
}

.hub-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.hub-card-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 12px;
  line-height: 1.45;
}

.hub-card-lead {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
  flex-grow: 1;
}

.hub-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
}

/* Latest Articles & Grid */
.articles-section {
  padding: 80px 0;
  background: var(--bg);
}

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

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-cyan);
}

.article-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #070d1e 0%, #0077b6 100%);
}

.article-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-thumb-wrap img {
  transform: scale(1.06);
}

.article-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-cat-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.article-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.45;
  margin-bottom: 10px;
}

.article-card-title a {
  color: inherit;
}

.article-card-title a:hover {
  color: var(--accent-cyan);
}

.article-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

/* Byline Meta */
.byline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
}

.byline-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-light);
}

.byline-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.byline-author-cat {
  font-weight: 700;
  color: var(--navy-dark);
}

.byline-author-cat a {
  color: var(--accent);
}

.byline-date {
  color: var(--text-light);
  font-size: 0.78rem;
}

/* E-E-A-T Strip */
.eeat-strip {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 28px 0;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}

.eeat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eeat-content h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 4px;
}

.eeat-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Article Reading View */
.article-page {
  padding: 40px 0 80px;
}

.article-header {
  max-width: 820px;
  margin: 0 auto 36px;
}

.article-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--navy-dark);
  line-height: 1.25;
  margin: 16px 0;
  letter-spacing: -0.02em;
}

.article-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.article-main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.article-content {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1e293b;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-soft);
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 30px 0 14px;
}

.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin-bottom: 24px; padding-left: 26px; }
.article-content li { margin-bottom: 10px; }

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Author Box */
.author-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 40px 0;
}

.author-box-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-cyan);
  flex-shrink: 0;
}

.author-box-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.author-box-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin: 2px 0 6px;
}

.author-box-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #cbd5e1;
  padding: 70px 0 30px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-tagline {
  font-size: 0.94rem;
  color: #94a3b8;
  line-height: 1.65;
}

.footer-heading {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: #64748b;
}

/* Cookie Consent Bar */
.cookie-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 900px;
  background: rgba(7, 13, 30, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #ffffff;
  padding: 20px 26px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  animation: slideUp 0.4s ease-out;
}

.cookie-bar.hidden {
  display: none !important;
}

.cookie-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.cookie-text a {
  color: #38bdf8;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 30px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .triage-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .article-main-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 68px; }
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .hero-heading { font-size: 2.15rem; }
  .triage-grid { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cookie-bar { flex-direction: column; align-items: stretch; bottom: 12px; padding: 18px; }
  .cookie-actions { flex-direction: column; width: 100%; }
  .cookie-actions .btn { width: 100%; }
}

/* Homepage redesign — keep layout polish; preserve Metropolitan tokens from :root above */
body {
  background:
    linear-gradient(180deg, rgba(224, 242, 254, 0.55) 0, rgba(248, 250, 252, 0) 380px),
    var(--bg);
}

.site-header {
  background: rgba(20, 61, 61, 0.94);
  border-bottom: 1px solid rgba(216, 230, 223, 0.12);
  box-shadow: 0 8px 26px rgba(18, 34, 51, 0.18);
}

.brand-logo,
.brand-title {
  color: #ffffff;
}

.brand-sub,
.text-accent {
  color: #7dcfb6;
}

.nav-link {
  color: rgba(244, 246, 243, 0.82);
  border-radius: 6px;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: #143d3d;
  background: #f4f6f3;
}

.mobile-toggle {
  color: #f4f6f3;
}

.btn {
  border-radius: 6px;
  min-height: 44px;
  letter-spacing: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent) 100%);
  box-shadow: 0 12px 22px rgba(20, 125, 143, 0.2);
}

.btn-primary:hover,
.btn-hot:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.btn-hot {
  background: var(--hot-coral);
  box-shadow: 0 12px 22px rgba(216, 74, 58, 0.2);
}

.btn-secondary {
  background: #ffffff;
  color: var(--navy-dark) !important;
  border: 1px solid var(--border);
}

.home-hero {
  padding: 74px 0 76px;
  color: var(--navy-dark);
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(31, 178, 138, 0.14), transparent 38%),
    linear-gradient(245deg, rgba(49, 95, 159, 0.12), transparent 42%);
  pointer-events: none;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 44px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.home-hero-copy {
  max-width: 720px;
}

.hero-live-pill {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.hero-live-dot {
  background: var(--accent-teal);
  box-shadow: 0 0 0 5px rgba(31, 178, 138, 0.14);
}

.hero-heading {
  max-width: 760px;
  color: var(--navy-dark);
  font-size: 3.45rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.gradient-text {
  display: block;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--accent) 0%, #1b9a63 70%, #315f9f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: #536578;
  font-size: 1.08rem;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 20px;
}

.hero-search-box {
  max-width: 680px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 8px 8px 16px;
  color: var(--accent);
  box-shadow: var(--shadow-md);
}

.hero-search-box:focus-within {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 4px rgba(31, 178, 138, 0.12), var(--shadow-md);
}

.hero-search-box input {
  color: var(--navy-dark);
}

.hero-search-box input::placeholder {
  color: #8b9bad;
}

.hero-quick-tags {
  color: var(--text-muted);
  margin-top: 16px;
}

.hero-quick-tags span {
  font-weight: 800;
}

.hero-quick-tags a {
  color: #36546d;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
}

.hero-quick-tags a:hover {
  background: var(--accent-light);
  border-color: #bfe7df;
  color: var(--accent) !important;
}

.hero-care-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.hero-care-panel::before {
  content: '';
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: 5px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--accent-teal), var(--transit-mrt), var(--hot-coral));
}

.care-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-right: 18px;
  margin-bottom: 22px;
}

.panel-kicker {
  display: block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.care-panel-top h2 {
  color: var(--navy-dark);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.25;
}

.care-path-list {
  display: grid;
  gap: 10px;
}

.care-path-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 15px;
  background: #f8fbfa;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--navy-dark);
}

.care-path-item:hover {
  background: #eff8f5;
  border-color: #bfe7df;
  color: var(--navy-dark);
}

.care-path-item.urgent {
  background: var(--hot-soft);
  border-color: #ffd1c8;
}

.care-path-index {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #ffffff;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 900;
  border: 1px solid var(--border);
}

.care-path-item strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.45;
}

.care-path-item span:last-child {
  display: block;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
  margin-top: 2px;
}

.hero-assurance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
  padding-right: 18px;
}

.hero-assurance-grid div {
  background: var(--navy-dark);
  color: #ffffff;
  border-radius: 8px;
  padding: 14px 10px;
}

.hero-assurance-grid strong,
.hero-assurance-grid span {
  display: block;
  text-align: center;
}

.hero-assurance-grid strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.hero-assurance-grid span {
  color: #b9c8d5;
  font-size: 0.76rem;
  line-height: 1.35;
  margin-top: 3px;
}

.badge {
  border-radius: 6px;
  line-height: 1.2;
}

.badge-dark-cyan {
  background: #e4f7f3;
  color: var(--accent);
  border-color: #bfe7df;
}

.triage-section {
  padding: 26px 0 72px;
  margin-top: 0;
}

.triage-grid {
  gap: 16px;
}

.triage-card,
.hub-card,
.article-card,
.eeat-strip,
.sidebar-widget,
.article-content,
.author-box {
  border-radius: 8px;
}

.triage-card {
  padding: 24px;
  min-height: 275px;
}

.triage-card:hover,
.hub-card:hover,
.article-card:hover {
  transform: translateY(-4px);
}

.triage-icon-wrap {
  border-radius: 8px;
}

.triage-card-title,
.hub-card-title,
.article-card-title,
.section-title {
  letter-spacing: 0;
}

.triage-card .badge {
  align-self: flex-start;
  margin-bottom: 12px;
}

.hub-section {
  background:
    linear-gradient(180deg, #eef6f4 0%, #f6f8f7 100%);
  padding: 78px 0;
}

.section-tag {
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #cde8e3;
  color: var(--accent);
}

.section-title {
  font-size: 2.15rem;
}

.hub-card {
  padding: 26px;
}

.hub-card-meta {
  gap: 12px;
}

.read-time {
  color: var(--text-light);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.hub-card-footer {
  color: var(--accent);
  gap: 12px;
}

.hub-card-footer span:first-child {
  font-weight: 800;
}

.hub-card-footer span:last-child {
  color: var(--text-light);
  font-weight: 600;
}

.article-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
  max-width: none;
  margin-bottom: 34px;
  gap: 16px;
}

.article-section-header .section-title {
  margin-bottom: 0;
}

.article-thumb-wrap {
  background: linear-gradient(135deg, #e4f7f3 0%, var(--navy-surface) 100%);
}

.article-cat-badge {
  border-radius: 6px;
}

.trust-section {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 54px 0;
}

.trust-section .eeat-strip {
  margin: 0;
  box-shadow: none;
  background: #f8fbfa;
  border-color: var(--border);
  border-left-color: var(--accent-teal);
}

.eeat-content a {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
}

.empty-state-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  border: 1px solid var(--border);
}

.empty-state-card p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.site-footer {
  background: var(--navy-dark);
}

.footer-brand .brand-logo,
.footer-brand .brand-title {
  color: #ffffff;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.footer-contact a {
  color: #e0f2fe;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-contact a:hover {
  color: var(--accent-cyan);
}

.footer-hotline {
  color: #fff !important;
  font-size: 1.05rem !important;
}

.eeat-badge-box strong {
  color: var(--accent-cyan) !important;
}

.hero-actions .hero-hotline {
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-copy {
    max-width: none;
  }

  .hero-heading {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .site-header .header-book-btn {
    padding: 8px 12px;
    min-height: 40px;
    gap: 6px;
    font-size: 0.88rem;
  }

  .site-header .header-book-btn span {
    display: inline;
  }

  .brand-sub {
    display: none;
  }

  .home-hero {
    padding: 48px 0 50px;
  }

  .hero-heading {
    font-size: 2.15rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
  }

  .hero-actions .btn:first-child {
    grid-column: 1 / -1;
  }

  .hero-actions .btn,
  .hero-search-box .btn {
    width: 100%;
  }

  .hero-search-box {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 12px;
  }

  .hero-search-box svg {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-search-box input {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .hero-search-box .btn {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hero-care-panel {
    padding: 22px;
  }

  .care-panel-top {
    flex-direction: column;
  }

  .care-path-item {
    grid-template-columns: 34px 1fr;
    padding: 13px;
  }

  .care-path-index {
    width: 32px;
    height: 32px;
  }

  .hero-assurance-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .article-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-section-header .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 18px;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-sub {
    font-size: 0.64rem;
  }

  .hero-heading {
    font-size: 1.9rem;
  }

  .hero-live-pill {
    max-width: 100%;
  }

  .hub-card-meta,
  .hub-card-footer,
  .byline-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .triage-card {
    min-height: auto;
  }
}

/* Brand-led refresh: Bangkok STI Center */
.home-hero {
  padding: 66px 0 42px;
  background: #f7faf9;
}

.home-hero::before {
  background:
    linear-gradient(90deg, rgba(20, 125, 143, 0.08), transparent 48%),
    linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0) 72%);
}

.home-hero-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  gap: 52px;
}

.hero-live-pill {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  color: var(--accent);
  border-radius: 0;
  margin-bottom: 18px;
}

.hero-live-dot {
  width: 7px;
  height: 7px;
  box-shadow: none;
}

.hero-heading {
  margin-bottom: 22px;
}

.hero-name {
  display: block;
  color: var(--navy-dark);
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.55rem);
  font-weight: 900;
  line-height: 0.98;
}

.hero-tagline {
  display: block;
  max-width: 690px;
  margin-top: 18px;
  color: var(--navy-surface);
  font-family: var(--font);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
}

.hero-desc {
  max-width: 650px;
  margin-bottom: 28px;
  color: #56677a;
}

.hero-actions {
  margin-bottom: 22px;
}

.hero-search-box {
  box-shadow: 0 16px 34px rgba(16, 32, 51, 0.08);
}

.hero-media-card {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #d6e2df;
  background: #e8efed;
  box-shadow: 0 28px 60px rgba(16, 32, 51, 0.16);
}

.hero-media-card img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.hero-service-card {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: min(390px, calc(100% - 44px));
  padding: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(16, 32, 51, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-service-card strong,
.hero-service-card span {
  display: block;
}

.hero-service-card strong {
  color: var(--navy-dark);
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.35;
  margin: 4px 0 6px;
}

.hero-service-card span:last-child {
  color: #5f7081;
  font-size: 0.9rem;
  line-height: 1.55;
}

.service-strip {
  padding: 0 0 38px;
  background: #f7faf9;
}

.service-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #d6e2df;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(16, 32, 51, 0.06);
}

.service-strip-grid a {
  display: flex;
  min-height: 108px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 22px;
  color: var(--navy-dark);
  border-right: 1px solid #d6e2df;
}

.service-strip-grid a:last-child {
  border-right: 0;
}

.service-strip-grid a:hover {
  background: #eef8f5;
  color: var(--navy-dark);
}

.service-strip-grid strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.3;
}

.service-strip-grid span {
  color: #637487;
  font-size: 0.86rem;
  line-height: 1.45;
}

.triage-section {
  padding-top: 44px;
}

.triage-card {
  box-shadow: none;
}

.triage-card:hover {
  box-shadow: 0 14px 30px rgba(16, 32, 51, 0.1);
}

.hub-section {
  background: #ffffff;
}

.articles-section {
  background: #f7faf9;
}

@media (max-width: 1024px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media-card,
  .hero-media-card img {
    min-height: 420px;
  }

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

  .service-strip-grid a:nth-child(2) {
    border-right: 0;
  }

  .service-strip-grid a:nth-child(-n+2) {
    border-bottom: 1px solid #d6e2df;
  }
}

@media (max-width: 768px) {
  .home-hero {
    padding-top: 42px;
  }

  .hero-name {
    font-size: 3rem;
  }

  .hero-tagline {
    font-size: 1.28rem;
  }

  .hero-media-card,
  .hero-media-card img {
    min-height: 360px;
  }

  .hero-service-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -72px 16px 16px;
  }
}

@media (max-width: 520px) {
  .hero-name {
    font-size: 2.5rem;
  }

  .service-strip-grid {
    grid-template-columns: 1fr;
  }

  .service-strip-grid a,
  .service-strip-grid a:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #d6e2df;
  }

  .service-strip-grid a:last-child {
    border-bottom: 0;
  }
}

/* Third pass: less template, stronger Bangkok STI Center identity */
.brand-hero {
  padding: 54px 0 30px;
  background:
    linear-gradient(90deg, #ffffff 0%, #ffffff 49%, #edf4f2 49%, #edf4f2 100%);
}

.brand-hero::before {
  display: none;
}

.brand-hero .home-hero-grid {
  grid-template-columns: minmax(380px, 0.82fr) minmax(0, 1.18fr);
  gap: 46px;
  min-height: 610px;
}

.brand-hero .home-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  padding: 28px 0 44px;
}

.hero-eyebrow {
  margin-bottom: 22px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.brand-hero .hero-heading {
  margin-bottom: 24px;
}

.brand-hero .hero-name {
  color: #0d1c2b;
  font-size: clamp(3.4rem, 6.8vw, 6.6rem);
  line-height: 0.92;
  max-width: 7.8em;
}

.brand-hero .hero-tagline {
  max-width: 560px;
  margin-top: 24px;
  color: #27465f;
  font-size: clamp(1.22rem, 1.55vw, 1.58rem);
  font-weight: 700;
  line-height: 1.5;
}

.brand-hero .hero-desc {
  max-width: 570px;
  color: #5c6f80;
  font-size: 1rem;
  line-height: 1.85;
}

.brand-hero .hero-actions {
  margin-bottom: 24px;
}

.brand-hero .btn {
  min-height: 48px;
  padding: 11px 20px;
  border-radius: 4px;
}

.brand-hero .btn-primary {
  background: #0f786f;
  box-shadow: none;
}

.brand-hero .btn-primary:hover {
  background: #0b655d;
  box-shadow: none;
}

.brand-hero .btn-hot {
  background: #bf493c;
  box-shadow: none;
}

.brand-hero .hero-search-box {
  max-width: 590px;
  border-radius: 4px;
  box-shadow: none;
}

.brand-hero .hero-quick-tags a {
  border-radius: 4px;
}

.brand-hero .hero-media-card {
  align-self: stretch;
  min-height: 610px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #dfe8e6;
}

.brand-hero .hero-media-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(237, 244, 242, 0.08), rgba(16, 32, 51, 0.02));
  pointer-events: none;
}

.brand-hero .hero-media-card img {
  min-height: 610px;
  object-position: center;
}

.brand-hero .hero-service-card {
  right: auto;
  left: 28px;
  bottom: 28px;
  width: min(420px, calc(100% - 56px));
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-left: 5px solid #0f786f;
  box-shadow: 0 22px 42px rgba(16, 32, 51, 0.2);
}

.service-strip {
  padding: 0;
  background: #ffffff;
}

.service-strip-grid {
  transform: translateY(-30px);
  border-radius: 0;
  border-color: #d8e4e1;
  box-shadow: 0 18px 40px rgba(16, 32, 51, 0.08);
}

.service-strip-grid a {
  min-height: 116px;
  padding: 24px 26px;
}

.triage-section {
  padding-top: 20px;
  background: #ffffff;
}

.triage-card {
  background: #fbfdfc;
}

.triage-card-title {
  font-size: 1.12rem;
}

.hub-section {
  border-top: 1px solid #e5eeec;
}

.section-header {
  max-width: 720px;
}

.section-tag {
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  letter-spacing: 0.12em;
}

.section-title {
  color: #0d1c2b;
}

@media (max-width: 1024px) {
  .brand-hero {
    background: #ffffff;
  }

  .brand-hero .home-hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .brand-hero .home-hero-copy {
    padding-bottom: 0;
  }

  .brand-hero .hero-media-card,
  .brand-hero .hero-media-card img {
    min-height: 470px;
  }
}

@media (max-width: 768px) {
  .brand-hero {
    padding-top: 36px;
  }

  .brand-hero .hero-name {
    font-size: 2.35rem;
  }

  .brand-hero .hero-tagline {
    font-size: 1.05rem;
  }

  .brand-hero .hero-media-card,
  .brand-hero .hero-media-card img {
    min-height: 280px;
  }

  .brand-hero .hero-service-card {
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -68px 16px 16px;
  }

  .service-strip-grid {
    transform: none;
  }

  .triage-section {
    padding-top: 42px;
  }
}

@media (max-width: 520px) {
  .hero-eyebrow {
    font-size: 0.72rem;
  }

  .brand-hero .hero-name {
    font-size: 2rem;
  }

  .brand-hero .hero-desc {
    line-height: 1.75;
  }

  .brand-title {
    font-size: 0.92rem;
  }

  .site-header .header-book-btn {
    padding: 8px 10px;
  }
}

/* ——— Thai HIV Clinic overrides: Quiet Clinic Pathway ——— */
.gradient-text {
  background: linear-gradient(135deg, #1a6b63 0%, #2a8f85 55%, #143d3d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-cyan {
  background: rgba(26, 107, 99, 0.12);
  color: #1a6b63;
  border: 1px solid rgba(26, 107, 99, 0.28);
}

.badge-hot {
  background: rgba(196, 120, 90, 0.12);
  color: var(--hot-clay);
  border: 1px solid rgba(196, 120, 90, 0.28);
}

.site-header {
  background: rgba(20, 61, 61, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(216, 230, 223, 0.12);
}

.text-accent { color: #7dcfb6; }

.clinic-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(26, 107, 99, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(196, 120, 90, 0.12), transparent 50%),
    linear-gradient(165deg, #f4f6f3 0%, #e8ede9 48%, #dfe8e3 100%);
  padding: 56px 0 48px;
}

.hero-pathway {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(26, 107, 99, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(26, 107, 99, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.35), transparent 85%);
  pointer-events: none;
}

.clinic-hero .hero-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy-dark);
  line-height: 1.15;
  margin-bottom: 10px;
}

.clinic-hero .hero-tagline {
  display: block;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  color: var(--accent);
  line-height: 1.4;
}

.clinic-hero .hero-desc {
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-journey-panel {
  background: #143d3d;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
}

.journey-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.journey-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(216, 230, 223, 0.16);
}

.journey-steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: #7dcfb6;
  padding-top: 2px;
}

.journey-steps strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.journey-steps span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.journey-note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.pathway-card {
  border-top: 3px solid var(--accent);
}

.pathway-card:hover {
  border-top-color: var(--hot-clay);
}

.clinic-cta-banner {
  background: linear-gradient(135deg, #143d3d 0%, #1a5550 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #ffffff;
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow-xl);
}

.clinic-cta-banner h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.clinic-cta-banner p {
  color: #cbd5e1;
  font-size: 0.95rem;
  max-width: 600px;
}

.footer-emergency {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
  background: rgba(255,255,255,0.04);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}

.footer-emergency strong {
  color: #7dcfb6;
  display: block;
  margin-bottom: 4px;
}

.footer-disclaimer {
  font-size: 0.78rem;
  max-width: 600px;
  color: #64748b;
}

.topic-intro {
  font-size: 1.08rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.topic-conclusion {
  background: var(--bg-soft);
  padding: 24px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  margin: 36px 0 24px;
}

.topic-conclusion h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.topic-refs {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.topic-refs h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.topic-refs ul {
  padding-left: 20px;
  font-size: 0.9rem;
  color: #64748b;
}

.topic-disclaimer {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-top: 32px;
  font-size: 0.85rem;
  color: #64748b;
  border: 1px solid var(--border);
}

.sidebar-book {
  background: linear-gradient(135deg, #143d3d 0%, #1a5550 100%);
  color: #ffffff;
  border-color: rgba(255,255,255,0.1);
}

.sidebar-book h3 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.sidebar-book p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 16px;
  line-height: 1.5;
}

.sidebar-topic-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-topic-list a {
  color: var(--navy-dark);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.sidebar-topic-list span {
  font-size: 0.78rem;
  color: #94a3b8;
}

@media (max-width: 900px) {
  .clinic-hero {
    padding: 36px 0 32px;
  }
  .hero-journey-panel {
    margin-top: 8px;
  }
}

.cookie-actions .btn {
  min-height: 44px;
  font-size: 0.88rem;
  padding: 10px 18px;
  font-weight: 700;
}

/* Cookie "จำเป็น" — warm chip so it never blends into the dark bar */
.cookie-bar #cookieNecessary,
.cookie-bar #cookie-necessary,
.cookie-bar [data-cookie-necessary],
.cookie-bar [data-cookie-decline],
.cookie-bar .btn-cookie-necessary,
.cookie-bar .btn-secondary,
.cookie-bar .btn-ghost,
.cookie-bar .btn--ghost,
.cookie-bar .btn-ghost-light,
.cookie-bar .btn-necessary {
  color: #143d3d !important;
  background: #f6ebe6 !important;
  border: 2px solid #c4785a !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 0 rgba(196, 120, 90, 0.45) !important;
}
.cookie-bar #cookieNecessary:hover,
.cookie-bar #cookie-necessary:hover,
.cookie-bar [data-cookie-necessary]:hover,
.cookie-bar [data-cookie-decline]:hover,
.cookie-bar .btn-cookie-necessary:hover {
  color: #143d3d !important;
  background: #ffffff !important;
  border-color: #c4785a !important;
}

.cookie-bar #cookieAcceptAll,
.cookie-bar .btn-primary {
  color: #ffffff !important;
  background: #2a8f85 !important;
  border: 2px solid #2a8f85 !important;
}
.cookie-bar #cookieAcceptAll:hover,
.cookie-bar .btn-primary:hover {
  background: #1a6b63 !important;
  border-color: #1a6b63 !important;
}

/* Keep desktop nav on one line; earlier hamburger when it would wrap */
.main-nav {
  flex-wrap: nowrap;
  min-width: 0;
}
.nav-link {
  white-space: nowrap;
}
@media (max-width: 1140px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; color: inherit; }
}

/* Dark header: light nav/brand text for contrast on teal bar */
.site-header .nav-link {
  color: #e8efec !important;
}
.site-header .nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
}
.site-header .nav-link.active {
  color: #143d3d !important;
  background: #f4f6f3 !important;
}
.site-header .brand-title,
.site-header .brand-logo {
  color: #ffffff !important;
}
.site-header .brand-title .text-accent,
.site-header .text-accent {
  color: #9ee0c8 !important;
}
.site-header .mobile-toggle {
  color: #f4f6f3 !important;
}

.about-expanded, .contact-expanded, .privacy-expanded { line-height: 1.75; }
.about-expanded p, .contact-expanded p, .privacy-expanded p { margin: 0 0 14px; color: #334155; }
.about-expanded a, .contact-expanded a { color: var(--accent, #1A6B63); font-weight: 650; }
.privacy-expanded {
  margin-top: 28px;
  padding-top: 8px;
  border-top: 1px solid var(--border, #d5ddd8);
}
.privacy-expanded h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-dark, #143d3d);
  margin: 28px 0 12px;
}
.privacy-expanded h2:first-child { margin-top: 12px; }
.privacy-expanded a { color: var(--accent, #1A6B63); font-weight: 650; }
@media (max-width: 720px) {
  .about-eeat { grid-template-columns: 1fr !important; }
}
.btn-cookie-necessary {
  color: #143d3d !important;
  background: #f6ebe6 !important;
  border: 2px solid #c4785a !important;
  font-weight: 800 !important;
}

.article-promo,
.article-ad {
  margin: 1.75rem auto;
  text-align: center;
  max-width: 720px;
}
.article-promo a,
.article-ad a { display: block; line-height: 0; }
.article-promo img,
.article-ad img,
.article-sidebar-ad img {
  width: 100%;
  max-width: 100%;
  height: auto !important;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain;
}
.article-sidebar-ad { padding: 12px; }

/* Contact desk — thaihivclinic unique */
.contact-desk { width: min(860px, calc(100% - 32px)); margin: 8px auto 72px; }
.contact-card {
  display: flex;
  flex-direction: column-reverse;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px 27px;
  padding: 28px 26px;
  margin: 0 auto 28px;
  border-radius: 16px;
  background: var(--off-white, var(--bg-soft, #f8fafc));
  border: 1px solid var(--border, rgba(15,23,42,.1)); border-top: 4px solid var(--accent,#0f766e);
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.contact-card__kicker {
  margin: 0 0 6px;
    font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, #0f766e);
}
.contact-card__email {
  display: inline-block;
  margin: 0 0 8px;
  font-size: clamp(1.05rem, 2.2vw, 1.57rem);
  font-weight: 800;
  line-height: 1.3;
  word-break: break-all;
  color: var(--navy-dark, var(--ink, var(--black, #0f172a)));
  text-decoration: none;
}
.contact-card__email:hover { text-decoration: underline; }
.contact-card__hint {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted, var(--grey-4, #64748b));
}
.contact-card .btn, .contact-card .btn--primary, .contact-card .btn-primary, .contact-card .btn-accent {
  flex: 0 0 auto; white-space: nowrap;
}
.contact-card .btn,.contact-card .btn--primary,.contact-card .btn-primary,.contact-card .btn-accent{border-radius:999px;width:min(100%,280px);}
.contact-expanded {
  max-width: 860px;
  margin: 0 auto 48px;
  padding: 8px 0 24px;
  border-radius: 10px;
  background: transparent;
  border: none;
  box-shadow: none;
  line-height: 1.85;
  color: var(--text, var(--ink, #1e293b));
}
.contact-expanded p { margin: 0 0 15px; }
.contact-expanded p:first-child { font-size:1.05rem;font-weight:600; color: var(--navy-dark, var(--ink, #0f172a)); }
.contact-expanded p:last-child { margin-bottom: 0; }
.contact-expanded a { color: var(--accent, #0f766e); font-weight: 650; text-underline-offset: 2px; }
.contact-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto 40px;
}
@media (max-width: 720px) {
  .contact-card, .contact-expanded { padding: 20px; text-align: left; }
  .contact-card { flex-direction: column; align-items: flex-start; }
  .contact-action-grid { grid-template-columns: 1fr; }
}

/* In-article ads as spaced sections, not a pile */
.article-ad-section {
  display: block;
  margin: 2.75rem 0;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  clear: both;
  text-align: center;
}
.article-ad-section a {
  display: block;
  line-height: 0;
}
.article-ad-section img {
  width: 100%;
  max-width: 100%;
  height: auto !important;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  object-fit: contain;
}
.article-ad-section + .article-ad-section {
  margin-top: 3.25rem;
}


/* PrEP Bangkok, modern clinic design */
:root{--bg:#fcfdfb;--bg-soft:#f1f6f1;--ink:#193c34;--ink-muted:#60716a;--nav-bg:#fcfdfb;--nav-text:#193c34;--accent:#146b59;--accent-hot:#0e5144;--teal:#146b59;--teal-hot:#0e5144;--accent-soft:#eaf3ec;--teal-soft:#eaf3ec;--line:#dce6df;--radius:18px;--radius-lg:26px;--max:1200px}
body,body.page-home{background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}a{text-decoration:none}button,input{font:inherit}.wrap,.leaflet{width:min(1200px,calc(100% - 64px));margin-inline:auto}.site-header{background:#fcfdfbf5;color:var(--ink);border-bottom:1px solid var(--line);box-shadow:none;backdrop-filter:blur(14px)}.header-bar{min-height:82px}.brand-text{font-size:19px;letter-spacing:-.5px}.brand-mark{width:38px;height:38px}.nav-desktop>a,.nav-drop-trigger{color:var(--ink-muted);font-size:14px;font-weight:600}.nav-desktop>a:hover,.nav-desktop>a[aria-current=page]{color:var(--accent)}.nav-desktop>a[aria-current=page]::after{background:var(--accent)}.nav-drop-panel{border:1px solid var(--line);border-radius:16px;box-shadow:0 16px 44px #193c3412;background:#fff}.nav-toggle{color:var(--ink);border-color:var(--line)}.nav-toggle-bars,.nav-toggle-bars::before,.nav-toggle-bars::after{background:var(--ink)}.mobile-drawer{background:var(--bg)}.mobile-drawer a,.mobile-topics summary{color:var(--ink)}.btn{border-radius:10px;min-height:48px;font-size:15px;font-weight:600;padding:13px 21px;box-shadow:none}.btn-teal,.btn-accent,.btn-amber{background:var(--accent);color:#fff;border:1px solid var(--accent)}.btn-teal:hover,.btn-accent:hover,.btn-amber:hover{background:var(--teal-hot);color:#fff}.header-cta{font-size:13px;min-height:42px;padding:10px 17px}
.pb-eyebrow{font-family:var(--font-display);font-size:11px;font-weight:700;letter-spacing:1.7px;color:var(--accent);margin:0 0 20px;line-height:1.7}.pb-eyebrow span{display:inline-block;width:7px;height:7px;background:var(--accent);border-radius:50%;margin-right:8px}.pb-hero{display:grid;grid-template-columns:1.1fr 1fr;gap:64px;align-items:center;padding-block:65px 52px}.pb-hero h1{font-size:clamp(34px,3.7vw,50px);font-weight:700;line-height:1.4;letter-spacing:-1.5px;margin:0 0 24px}.pb-hero h1 em{font-style:normal;color:var(--accent)}.pb-lead{font-size:17px;line-height:1.95;color:var(--ink-muted);max-width:520px;margin:0 0 32px}.pb-actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.pb-text-link{color:var(--accent);font-size:14px;font-weight:600}.pb-hero-notes{display:flex;gap:16px;flex-wrap:wrap;margin-top:30px;color:var(--ink-muted);font-size:12px}.pb-hero-notes span::before{content:'✓';color:var(--accent);margin-right:6px}.pb-hero-photo{position:relative;margin:0;isolation:isolate;overflow:hidden;border-radius:26px 26px 80px 26px;background:#193c34;min-width:0}.pb-hero-photo img{width:100%;height:490px;object-fit:cover;object-position:55% center}.pb-hero-photo::after{content:'';position:absolute;inset:35% 0 0;background:linear-gradient(transparent,#102f29e8);z-index:1}.pb-hero-photo figcaption{position:absolute;bottom:34px;left:34px;right:24px;z-index:2;color:#fff}.pb-photo-label{display:block;letter-spacing:2px;font-size:10px;color:#c4e3d7;margin-bottom:12px}.pb-hero-photo strong{font-size:27px;line-height:1.5;font-weight:600}.pb-hero-photo figcaption a{display:block;color:#f6e7ae;font-size:12px;margin-top:16px}
.pb-quick{display:grid;grid-template-columns:170px repeat(3,1fr);align-items:center;border-block:1px solid var(--line);padding-block:25px;gap:24px}.pb-quick p{margin:0;font-size:13px;color:var(--ink-muted)}.pb-quick a{display:flex;justify-content:space-between;gap:12px;font-size:14px;font-weight:600;color:var(--ink);padding-left:24px;border-left:1px solid var(--line)}.pb-quick a span{color:var(--accent)}.pb-section{padding-block:80px}.pb-section-head{display:flex;justify-content:space-between;align-items:end;gap:32px;margin-bottom:32px}.pb-section-head .pb-eyebrow{margin-bottom:10px}.pb-section-head h2{font-size:30px;line-height:1.4;letter-spacing:-.7px;margin:0 0 10px}.pb-section-head p:not(.pb-eyebrow){color:var(--ink-muted);font-size:15px;margin:0}.pb-section-head>a{flex-shrink:0;margin-bottom:5px}.pb-guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.pb-guide{position:relative;padding:28px 30px 58px;background:#f0f5ef;border:1px solid #e5ece4;border-radius:18px;color:var(--ink);transition:transform .2s,background .2s;min-width:0}.pb-guide:nth-child(3n+2){background:#f4f1e7;border-color:#ece8da}.pb-guide:nth-child(3n){background:#ecf3f2;border-color:#e0ebe8}.pb-guide:hover{transform:translateY(-4px);background:#e5efe5;color:var(--ink)}.pb-guide-label{display:block;font-size:10px;font-weight:600;letter-spacing:1px;color:var(--ink-muted);margin-bottom:22px}.pb-guide h3{font-size:23px;line-height:1.5;font-weight:600;margin:0 0 14px}.pb-guide p{font-size:14px;line-height:1.8;color:var(--ink-muted);margin:0;max-width:280px}.pb-guide-arrow{position:absolute;bottom:20px;right:25px;width:30px;height:30px;border-radius:50%;border:1px solid #c6d5cd;display:grid;place-items:center}.pb-how{background:#eaf2ed;padding-block:60px}.pb-steps{display:grid;grid-template-columns:repeat(3,1fr);padding:0;margin:40px 0 0;gap:42px;list-style:none}.pb-steps li{border-top:1px solid #bfd1c5;padding-top:22px}.pb-steps li>span{color:var(--accent);font:600 13px var(--font-display)}.pb-steps h3{font-size:20px;margin:15px 0 10px}.pb-steps p{font-size:14px;line-height:1.9;color:var(--ink-muted);max-width:310px}
.pb-articles-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.mag-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;box-shadow:none;transition:transform .2s}.mag-card:hover{transform:translateY(-3px)}.mag-card-media{display:block;overflow:hidden;aspect-ratio:1.6;background:#edf3ef}.mag-card-media img{width:100%;height:100%;object-fit:cover}.mag-card-body{padding:22px}.mag-card-title{font-size:19px;line-height:1.65;font-weight:600;margin:0 0 12px}.mag-card-title a{color:var(--ink)}.mag-card-excerpt{font-size:14px;line-height:1.9;color:var(--ink-muted)}.mag-card .article-meta{font-size:11px;display:flex;gap:7px;flex-wrap:wrap;color:var(--ink-muted)}.pb-booking{display:flex;align-items:center;justify-content:space-between;gap:40px;background:#f3efdf;border-radius:22px;padding:42px 46px;margin-bottom:24px}.pb-booking .pb-eyebrow{margin-bottom:12px}.pb-booking h2{font-size:28px;line-height:1.5;margin:0 0 12px}.pb-booking p:not(.pb-eyebrow){font-size:15px;color:var(--ink-muted);margin:0;line-height:1.9}.pb-booking .pb-actions{flex-direction:column;align-items:start;gap:16px;flex-shrink:0}.pb-trust{font-size:12px;line-height:1.9;color:var(--ink-muted);text-align:center;padding:12px 0 56px}.site-footer{background:#173e34;color:#e4efe8;padding-top:55px}.site-footer a,.site-footer .footer-label{color:#e4efe8}.footer-brand-desc{color:#b4c9bd}.footer-base{border-color:#ffffff16;color:#b4c9bd}
.static-mast{background:#eef4ef;border-bottom:1px solid var(--line);padding-block:48px;color:var(--ink)}.static-mast-title{font-size:clamp(30px,3vw,44px);line-height:1.5;max-width:950px;letter-spacing:-.8px}.static-mast-brand,.static-mast-lead{color:var(--ink-muted)}.static-desk{gap:56px;padding-block:44px}.static-doc,.article-body{line-height:1.95}.static-doc h2{font-size:25px;line-height:1.6}.static-toc{font-size:14px}.static-toc ol{line-height:1.8}.static-doc-num{background:var(--accent-soft);color:var(--accent);border-radius:10px}.page-intro{padding-top:48px;margin-bottom:24px}.page-intro h1{font-size:38px;line-height:1.4;letter-spacing:-.7px}.articles-layout{gap:36px}.filter-rail{background:#f0f5ef;padding:22px;border:1px solid var(--line);border-radius:16px;align-self:start}.search-form input{border:1px solid #cbd9d0;border-radius:9px;background:#fff;min-width:0;max-width:100%}.category-filter summary{font-weight:600;cursor:pointer;padding-block:20px}.chip-list{display:flex;flex-wrap:wrap;gap:7px;padding:0;list-style:none}.chip{border:1px solid #d4dfd7;background:#fff;border-radius:8px;font-size:12px;padding:7px 10px;color:var(--ink-muted)}.chip.is-active{background:var(--accent);color:#fff}.results-count{font-size:13px;color:var(--ink-muted);margin-top:0}.article-detail{padding-top:30px}.article-layout{gap:50px;align-items:start}.article-header h1{font-size:clamp(28px,3vw,40px);line-height:1.5;letter-spacing:-.5px;color:var(--ink)}.article-header .meta{font-size:13px;color:var(--ink-muted);line-height:1.9}.breadcrumbs{font-size:12px;color:var(--ink-muted);margin-bottom:24px}.article-hero-img{margin:24px 0 32px}.article-hero-img img{width:100%;max-width:100%;height:auto;border-radius:18px}.article-body img,.article-ad-section img{height:auto;max-width:100%;border-radius:12px}.article-body.prose table{display:block;max-width:100%;min-width:0;width:100%;overflow-x:auto}.article-body a{overflow-wrap:anywhere;text-decoration:underline}.article-layout>*,.static-desk>*{min-width:0}.eeat-trust-notice{background:#edf5ef;border:0;border-left:3px solid #87b49a;border-radius:0 10px 10px 0;font-size:13px;line-height:1.8;padding:16px;color:#526b5e}.article-sidebar{background:#f2f6f2;border-radius:16px;padding:22px}.sidebar-widget{margin:26px 0}.sidebar-widget h2{font-size:16px}.sidebar-widget ul{list-style:none;padding:0;display:grid;gap:14px}.sidebar-widget a{font-size:14px;line-height:1.8;overflow-wrap:anywhere}.article-share{display:flex;gap:18px;flex-wrap:wrap;margin-block:28px;font-size:14px}.article-disclaimer,.article-author-box{padding:24px;background:#f3f7f2;border:1px solid var(--line);border-radius:14px;margin-top:28px}.article-disclaimer h2,.article-author-name{font-size:20px}.article-disclaimer p{font-size:14px;line-height:1.9}.pagination{gap:22px;margin-top:36px}.cookie-consent{background:#fffffffa;border:1px solid var(--line);border-radius:14px;box-shadow:0 6px 35px #193c3410}
@media(min-width:1001px){.nav-desktop{gap:22px}.article-layout{grid-template-columns:minmax(0,1fr) 280px}.mag-grid-rest{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){.pb-hero{gap:30px;padding-top:40px}.pb-hero h1{font-size:34px}.pb-hero-photo img{height:440px}.pb-hero-copy .pb-actions{gap:16px}.pb-quick{grid-template-columns:1fr 1fr;gap:20px}.pb-guide-grid{grid-template-columns:repeat(2,1fr)}.pb-articles-grid{gap:16px}.pb-booking{padding:32px}.pb-section{padding-block:60px}.pb-steps{gap:25px}.article-layout{grid-template-columns:minmax(0,1fr)}.article-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:20px}.article-sidebar .article-ad-section{grid-column:1/-1;max-width:500px;margin:auto}}
@media(max-width:680px){.wrap,.leaflet{width:calc(100% - 36px)}.header-bar{min-height:70px}.brand-text{font-size:16px}.brand-mark{width:32px;height:32px}.pb-hero{grid-template-columns:1fr;gap:30px;padding-block:34px 28px}.pb-eyebrow{font-size:10px;letter-spacing:1.2px}.pb-hero h1{font-size:34px;letter-spacing:-1px;line-height:1.45}.pb-lead{font-size:15px;line-height:1.9;margin-bottom:24px}.pb-hero-copy .pb-actions{align-items:start;flex-direction:column;gap:17px}.pb-hero-notes{font-size:10px;gap:10px;margin-top:24px}.pb-hero-photo{border-radius:20px 20px 55px 20px}.pb-hero-photo img{height:320px}.pb-hero-photo figcaption{bottom:24px;left:24px}.pb-hero-photo strong{font-size:23px}.pb-quick{grid-template-columns:1fr;gap:0;padding-block:16px}.pb-quick p{padding-bottom:8px}.pb-quick a{border-left:0;padding:12px 0;font-size:13px}.pb-section{padding-block:44px}.pb-section-head{align-items:start;flex-direction:column;gap:18px;margin-bottom:25px}.pb-section-head h2{font-size:26px}.pb-section-head p:not(.pb-eyebrow){font-size:14px}.pb-guide-grid{gap:12px}.pb-guide{padding:20px 16px 50px;border-radius:13px}.pb-guide-label{font-size:9px;letter-spacing:.2px;margin-bottom:18px}.pb-guide h3{font-size:18px;line-height:1.6}.pb-guide p{font-size:12px;line-height:1.8}.pb-guide-arrow{bottom:15px;right:16px;width:26px;height:26px}.pb-how{padding-block:40px}.pb-steps{grid-template-columns:1fr;gap:20px;margin-top:25px}.pb-steps h3{margin-top:8px}.pb-steps p{max-width:none;margin-bottom:0}.pb-articles-grid{grid-template-columns:1fr;gap:22px}.mag-card-title{font-size:19px}.pb-booking{padding:28px 24px;flex-direction:column;align-items:start;gap:26px}.pb-booking h2{font-size:25px}.pb-trust{font-size:11px;padding-bottom:32px}.article-header h1{font-size:28px}.article-detail{padding-top:22px}.article-layout{gap:30px}.article-sidebar{display:block;padding:20px}.article-header .meta{font-size:12px}.article-body{font-size:16px}.article-hero-img img{border-radius:12px}.static-mast{padding-block:32px}.static-mast-title{font-size:30px}.static-desk{padding-block:30px;gap:25px}.static-doc h2{font-size:22px}.page-intro h1{font-size:30px}.filter-rail{padding:18px}.articles-layout{gap:24px}.mag-grid-rest{grid-template-columns:1fr}.cookie-consent{inset:auto 12px 12px;max-width:calc(100% - 24px)}.footer-inner{gap:35px}.header-cta{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}

/* Thai HIV Clinic layout integration. */
:root{--font-display:'Figtree','Noto Sans Thai',sans-serif;--font:'Noto Sans Thai',sans-serif}
.site-header{background:#143d3d}.site-header .main-nav a.nav-link[aria-current=page]{color:#143d3d!important;background:#f4f6f3;border-radius:9px}.site-header .main-nav a::after{display:none}.header-inner{gap:24px}.brand-logo{flex-shrink:0}.main-nav{gap:6px}.main-nav .nav-link{padding:10px 12px}.container,.leaflet,.wrap{max-width:1200px}.static-mast h1{font-size:clamp(30px,4vw,44px);line-height:1.5}.static-mast p{max-width:760px;line-height:1.9}.articles-layout{display:grid;grid-template-columns:250px minmax(0,1fr);padding-bottom:64px}.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;padding-bottom:64px}.mag-grid-rest{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.search-form{display:grid;gap:12px}.search-form input{width:100%;padding:12px}.section-lead{line-height:1.9;color:var(--ink-muted)}.visually-hidden,.skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.article-body p,.article-body li{line-height:1.95}.article-body h2{font-size:25px;line-height:1.65;margin:32px 0 16px}.article-body h3{font-size:21px;line-height:1.7}.article-body ul,.article-body ol{padding-left:24px}.article-ad-section{margin:30px auto;max-width:640px}.pagination{display:flex;align-items:center;justify-content:center}.article-meta a,.article-meta time{font-size:inherit}.article-main .article-header{margin-top:0;padding-top:0}.article-sidebar{position:static}.article-sidebar img{width:100%}.page-contact a[href^="mailto:"]{overflow-wrap:anywhere}.static-desk>*,.article-main-grid>*{min-width:0}.static-email{font-size:clamp(20px,2.7vw,32px);overflow-wrap:anywhere;line-height:1.6}.article-grid,.pb-articles-grid{margin-top:24px}.site-footer .brand-title{color:#fff}.article-body img{display:block}.article-header h1{font-weight:700}.cookie-consent .btn-secondary{color:#193c34;background:#fff;border:1px solid #dce6df}
@media(max-width:1000px){.articles-layout{grid-template-columns:220px minmax(0,1fr)}.article-layout{grid-template-columns:minmax(0,1fr)}.mag-grid-rest{grid-template-columns:1fr}.header-inner{gap:14px}.brand-title{font-size:17px}.main-nav .nav-link{padding:9px 7px;font-size:13px}}
@media(max-width:760px){.articles-layout{grid-template-columns:1fr}.article-sidebar{display:block}.pb-articles-grid{grid-template-columns:1fr}.container,.leaflet,.wrap{width:calc(100% - 36px);padding-inline:0}.header-inner{width:calc(100% - 28px)}.header-book-btn{display:none}.brand-title{font-size:17px}.article-header h1{font-size:28px}.article-main-grid{grid-template-columns:minmax(0,1fr)}.article-body h2{font-size:23px}.home-hero h1{font-size:34px;line-height:1.5}}
