/* ============================================================
   ศูนย์สุขภาพจิตที่ 10 — Design tokens
   Palette   : deep teal (calm/trust), coral (warm call-to-action),
               signature lavender (Check-in product), sand/cream neutrals
   Type      : Kanit (display) + Sarabun (body) — Thai-first pairing
   Signature : "breathing" step cards + pulse dot on Check-in card,
               referencing the site's own stress-monitoring device
   ============================================================ */

:root {
  --teal-900: #0a3f3b;
  --teal-800: #0d5852;
  --teal-700: #0f766e;
  --teal-500: #1e9c8f;
  --teal-100: #dcf3ee;
  --mint-50: #f2fbf8;

  --coral-600: #e8543f;
  --coral-500: #ff6b54;
  --coral-100: #ffe4dd;

  --lav-700: #4e37b8;
  --lav-500: #6d4aff;
  --lav-400: #8e71ff;

  --ink-900: #16231f;
  --ink-700: #3b4b45;
  --ink-500: #67766f;
  --ink-300: #a9b6af;

  --sand-50: #fff9f2;
  --cream: #fdfcf9;
  --line: #e4e9e4;
  --white: #ffffff;

  --font-display: "Kanit", sans-serif;
  --font-body: "Sarabun", sans-serif;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --shadow-card: 0 14px 34px -18px rgba(10, 63, 59, 0.28);
  --shadow-pop: 0 22px 50px -20px rgba(10, 63, 59, 0.35);
  --wrap: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.18;
  font-weight: 600;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
:focus-visible {
  outline: 3px solid var(--coral-500);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--coral-500);
  color: var(--white);
  box-shadow: 0 12px 24px -10px rgba(232, 84, 63, 0.55);
}
.btn-primary:hover {
  background: var(--coral-600);
}
.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-outline {
  border: 1.5px solid var(--coral-500);
  color: var(--coral-500);
}
.btn-outline:hover {
  background: var(--coral-600);
  color: var(--white);
}
.btn-light {
  background: var(--white);
  color: var(--lav-700);
}
.btn-light:hover {
  background: var(--sand-50);
}
.btn-dark {
  background: var(--ink-900);
  color: var(--white);
}
.btn-dark:hover {
  background: #0e1815;
}
.btn-tiny {
  padding: 8px 16px;
  font-size: 0.82rem;
  background: var(--coral-100);
  color: var(--coral-500);
  border-radius: 999px;
}
.btn-tiny:hover {
  background: var(--coral-600);
  color: #fff;
}

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--teal-700);
  color: #fff;
  font-size: 0.78rem;
}
.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}
.utility-links {
  display: flex;
  gap: 10px;
  align-items: center;
}
.utility-links a {
  opacity: 0.85;
}
.utility-links a:hover {
  opacity: 1;
}
.dot {
  opacity: 0.4;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 249, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--teal-800);
}
.brand-mark {
  display: flex;
  color: var(--teal-700);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.04rem;
  color: var(--ink-900);
}
.brand-text em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--ink-500);
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav > a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-700);
  position: relative;
  padding: 6px 0;
}
.main-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--coral-500);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: right;
}
.main-nav > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Dropdown items */
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-700);
  padding: 6px 0;
  font-family: inherit;
}
.nav-link .caret {
  transition: transform 0.2s ease;
  color: var(--ink-500);
}
.nav-item:hover .nav-link,
.nav-item.is-open .nav-link {
  color: var(--teal-700);
}
.nav-item:hover .caret,
.nav-item.is-open .caret {
  transform: rotate(180deg);
  color: var(--teal-700);
}

/* .dropdown is an invisible hit-box: its top padding bridges the gap to .nav-link so
   :hover never breaks while the pointer travels down toward the menu. */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  padding-top: 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.22s ease;
  z-index: 60;
}
.dropdown-panel {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-pop);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dropdown-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--white);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.dropdown a {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--ink-700);
}
.dropdown a:hover {
  background: var(--mint-50);
  color: var(--teal-800);
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.is-open .dropdown {
  max-height: 420px;
  opacity: 1;
  pointer-events: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hotline-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--coral-500);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 10px 20px -10px #e8543f;
}
.hotline-chip:hover {
  background: var(--coral-600);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* ---------- Hero slideshow ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--teal-900);
}

/* ใช้พื้นที่แนวตั้งที่เหลือของ viewport และคงภาพสไลด์ไว้ครบทั้งภาพ */
.hero-slides {
  position: relative;
  width: 100%;
  height: calc(100dvh - 92px);
  min-height: 420px;
  background: var(--teal-900);
}

.hero-slide {
  inset: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.55s ease,
    visibility 0.55s ease;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* ภาพแสดงครบ ไม่ crop และพื้นที่ว่างใช้สีที่ JavaScript ดึงจากขอบภาพ */
.slide-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    var(--slide-left, var(--teal-900)) 0%,
    var(--slide-center, var(--teal-800)) 50%,
    var(--slide-right, var(--teal-700)) 100%
  );
}
.slide-media > a {
  display: block;
  width: 100%;
  height: 100%;
}
.slide-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.slide-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: transparent;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 40px;
  align-items: end;
  position: relative;
  z-index: 2;
  width: 100%;
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-100);
  margin: 0 0 10px;
}
.eyebrow--dark {
  color: var(--coral-500);
}
.eyebrow--light {
  color: var(--coral-100);
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}
.hero-desc {
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  font-size: 1.02rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-tag {
  justify-self: end;
  text-align: right;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding-top: 18px;
}
.hero-tag span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  display: block;
}
.hero-tag p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Slideshow controls */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.hero-nav:hover {
  background: rgba(255, 255, 255, 0.32);
}
.hero-nav--prev {
  left: 24px;
}
.hero-nav--next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 5;
}
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
}
.hero-dot.is-active {
  background: #fff;
  width: 26px;
  border-radius: 6px;
}

/* ---------- Steps (signature: breathing cards) ---------- */
.steps {
  padding: 0 0 70px;
  margin-top: 30px;
}
.steps-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 26px 20px 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  animation: breathe 5.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.35s);
}
@keyframes breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.step-num {
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--coral-500);
  margin-bottom: 12px;
}
.step-card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
  color: var(--ink-900);
}
.step-card p {
  font-size: 0.88rem;
  color: var(--ink-500);
}

/* ---------- Quick actions ---------- */
.quick-actions {
  padding: 50px 0 20px;
}
.quick-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 22px;
}
.action-card {
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 34px 30px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.action-card h3 {
  font-size: 1.24rem;
  color: var(--ink-900);
}
.action-desc {
  color: var(--ink-500);
  font-size: 0.92rem;
}
.action-eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral-500);
}
.action-card .btn {
  align-self: flex-start;
  margin-top: 8px;
}

.action-card--signature {
  background: linear-gradient(
    150deg,
    var(--lav-700),
    var(--lav-500) 60%,
    var(--lav-400)
  );
  color: #fff;
  position: relative;
  overflow: hidden;
}
.action-card--signature h3 {
  color: #fff;
}
.action-card--signature .action-desc {
  color: rgba(255, 255, 255, 0.85);
}
.action-card--signature .action-eyebrow {
  color: #e4dbff;
}
.pulse-dot {
  position: absolute;
  top: 26px;
  right: 28px;
  width: 14px;
  height: 14px;
}
.pulse-dot span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #fff;
}
.pulse-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #fff;
  opacity: 0.55;
  animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

/* ---------- Section head / chips ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 20px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  color: var(--ink-900);
}
.link-more {
  font-weight: 600;
  color: var(--coral-600);
  white-space: nowrap;
  font-size: 0.92rem;
}
.link-more:hover {
  color: var(--coral-500);
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.chip {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  border: 1px solid var(--line);
  color: var(--ink-700);
  background: var(--white);
  transition: all 0.18s ease;
}
.chip.is-active,
.chip:hover {
  background: var(--coral-500);
  border-color: var(--coral-500);
  color: #fff;
}

/* ---------- Library grid ---------- */
.library {
  padding: 43px 0;
  background: var(--mint-50);
}
/* ---------- media grid ---------- */
.media {
  padding: 43px 0;
  background: var(--mint-50);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.media-card {
  background: var(--white);
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.media-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}
.media-thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
}
.media-thumb .slide-photo {
  object-fit: cover;
}
.media-thumb--doc {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
}
.media-thumb--course {
  background: linear-gradient(135deg, #1b7a6e, #63c1ae);
}
.media-thumb--advisor {
  background: linear-gradient(135deg, var(--lav-700), var(--lav-400));
}
.media-thumb--media {
  background: linear-gradient(135deg, var(--coral-600), var(--coral-500));
}
.media-card h4 {
  font-size: 0.95rem;
  padding: 18px 18px 6px;
  color: var(--ink-900);
  font-weight: 600;
}
.media-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px 18px;
  color: var(--ink-500);
  font-size: 0.8rem;
}

/* ---------- Organization awards ---------- */
.organization-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.organization-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 26px 26px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.organization-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-pop);
}
.organization-card__image {
  width: 108px;
  height: 108px;
  object-fit: contain;
  margin-bottom: 20px;
}
.organization-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
}
.organization-card h2 {
  font-size: 1.25rem;
  color: var(--teal-800);
}
.organization-card p {
  margin: 12px 0 22px;
  color: var(--ink-500);
}
.organization-card .btn {
  margin-top: auto;
}
.organization-detail {
  max-width: 980px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}
.organization-detail > h2 {
  margin: 0 0 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--teal-800);
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
}
.organization-detail > ol > li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink-900);
}
.organization-detail > ol > li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.organization-detail ol ol {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-700);
}

/* ---------- Feature strip ---------- */
.feature-strip {
  padding: 10px 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.feature-item {
  padding: 26px 22px;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--white);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--coral-100);
  color: var(--coral-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-item h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--ink-900);
}
.feature-item p {
  font-size: 0.86rem;
  color: var(--ink-500);
}

/* ---------- Van banner ---------- */
.van-banner {
  background: linear-gradient(120deg, var(--coral-600), var(--coral-500));
  color: #fff;
  padding: 60px 0;
}
.van-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 30px;
  align-items: center;
}
.van-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 6px 0 14px;
}
.van-copy p {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 24px;
  font-size: 0.96rem;
}
.van-art {
  justify-self: end;
}

/* ---------- News table ---------- */
.news {
  padding: 34px 0;
}
.news-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--white);
}
.news-row {
  display: grid;
  grid-template-columns: 2.4fr 0.9fr 0.9fr 0.8fr;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.news-row:last-child {
  border-bottom: none;
}
.news-row--head {
  background: var(--mint-50);
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--teal-800);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.news-title {
  font-weight: 500;
  color: var(--ink-900);
  font-size: 0.94rem;
}
.tag {
  font-style: normal;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-block;
}
.tag--announce {
  background: var(--teal-100);
  color: var(--teal-800);
}
.tag--legal {
  background: var(--coral-100);
  color: var(--coral-600);
}

/* ---------- Activities ---------- */
.activities {
  padding: 34px 0 24px;
}
.card-grid--news,
.gallery-grid {
  grid-template-columns: repeat(4, 1fr);
}
.news-month-group {
  margin-bottom: 40px;
}
.news-month-group:last-child {
  margin-bottom: 0;
}
.news-month-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
}
.news-month-badge {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal-800);
  background: var(--mint-50);
  border: 1px solid var(--teal-100);
  border-radius: 999px;
  padding: 6px 18px;
  white-space: nowrap;
}
.news-month-line {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--teal-100), transparent);
}
.news-month-count {
  font-size: 0.8rem;
  color: var(--ink-500);
  white-space: nowrap;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}
.news-card-thumb {
  height: 360px;
  background: linear-gradient(135deg, var(--teal-800), var(--teal-500));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.news-card h4 {
  font-size: 0.92rem;
  padding: 16px;
  color: var(--ink-900);
  font-weight: 500;
}

/* ---------- Gallery ---------- */
.gallery {
  padding: 0 0 90px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
}
.gallery-thumb {
  height: 210px;
}
.gallery-thumb--1 {
  background: linear-gradient(135deg, var(--teal-700), var(--lav-500));
}
.gallery-thumb--2 {
  background: linear-gradient(135deg, var(--coral-500), #ffb199);
}
.gallery-thumb--3 {
  background: linear-gradient(135deg, var(--lav-700), var(--teal-500));
}
.gallery-item figcaption {
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--ink-700);
}

/* ---------- Locate (calendar + map) ---------- */
.locate {
  padding: 34px 0 86px;
}
.locate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.locate-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.locate-card-head h4 {
  font-size: 1.05rem;
  color: var(--ink-900);
  margin-bottom: 4px;
}
.locate-card-head p {
  font-size: 0.86rem;
  color: var(--ink-500);
}
.locate-frame {
  border-radius: var(--radius-s);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  background: var(--mint-50);
}
.locate-frame iframe {
  width: 100%;
  height: 100%;
}
.locate-directions {
  align-self: flex-start;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: #d6e3dc;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand {
  display: flex;
  gap: 12px;
  color: #fff;
}
.footer-brand .brand-mark {
  color: var(--teal-500);
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin-bottom: 14px;
  color: #fff;
}
.footer-col p {
  font-size: 0.86rem;
  margin-bottom: 8px;
  color: #b9c8c0;
}
.footer-col a:hover {
  color: #fff;
}
.footer-traffic {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-traffic-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.footer-traffic-label {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
}
.footer-traffic-note {
  color: #8fa098;
  font-size: 0.78rem;
}
.footer-traffic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.footer-traffic-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, 0.045);
}
.footer-traffic-item strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}
.footer-traffic-item span {
  color: #b9c8c0;
  font-size: 0.8rem;
  white-space: nowrap;
}
.footer-traffic-item--total {
  border-color: rgba(255, 107, 84, 0.35);
  background: rgba(255, 107, 84, 0.1);
}
.footer-traffic-item--total strong {
  color: var(--coral-500);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.82rem;
  color: #8fa098;
}
.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}
.footer-social a:hover {
  background: var(--teal-700);
  border-color: var(--teal-700);
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--coral-500);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--shadow-pop);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 40;
}
.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.to-top:hover {
  background: var(--coral-600);
}

/* ---------- Scroll reveal ---------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal-on-scroll.reveal-left {
  transform: translate3d(-34px, 0, 0);
}
.reveal-on-scroll.reveal-right {
  transform: translate3d(34px, 0, 0);
}
.reveal-on-scroll.reveal-up {
  transform: translate3d(0, 26px, 0);
}
.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  /* height: 600px; */
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .steps-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .quick-grid {
    grid-template-columns: 1fr 1fr;
  }
  .action-card--signature {
    grid-column: 1 / -1;
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid--news {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-traffic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 26px 24px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .main-nav.is-open {
    transform: translateX(0);
  }
  .main-nav > a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .main-nav > a::after {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hotline-chip span {
    display: none;
  }

  /* dropdown becomes accordion on mobile — #mainNav scoping guarantees this
     wins over the desktop hover/open rule regardless of specificity */
  .nav-item {
    border-bottom: 1px solid var(--line);
  }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 16px 4px;
    font-size: 1.05rem;
  }
  #mainNav .dropdown {
    position: static;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    padding: 0;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition: max-height 0.28s ease;
  }
  #mainNav .dropdown-panel {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0 0 6px 14px;
  }
  #mainNav .dropdown-panel::before {
    display: none;
  }
  #mainNav .nav-item.is-open .dropdown {
    max-height: 320px;
  }
  #mainNav .nav-item.is-open .dropdown-panel {
    padding: 2px 0 12px 14px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-tag {
    justify-self: start;
    text-align: left;
  }
  .hero-slides {
    height: calc(100dvh - 76px);
    min-height: 320px;
  }
  .hero-nav {
    width: 38px;
    height: 38px;
  }
  .hero-nav--prev {
    left: 12px;
  }
  .hero-nav--next {
    right: 12px;
  }

  .van-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .van-art {
    justify-self: start;
  }

  .locate-grid {
    grid-template-columns: 1fr;
  }
  .organization-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .utility-bar {
    display: none;
  }
  .steps-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .card-grid--news {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .news-month-title {
    font-size: 1rem;
    margin-bottom: 14px;
  }
  .news-month-badge {
    font-size: 0.82rem;
    padding: 5px 14px;
  }
  .news-month-count {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .news-row--head {
    display: none;
  }
  .news-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 20px;
    position: relative;
  }
  .news-row [data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    color: var(--ink-300);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
  }
}

@media (max-width: 480px) {
  .footer-traffic-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .footer-traffic-grid {
    grid-template-columns: 1fr;
  }
  .steps-list {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 0;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .btn {
    width: 100%;
  }
  .hero-cta {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   ข่าวสารและกิจกรรม — News section (home) + Article detail page
   ============================================================ */

/* ---------- News section: featured (2 big) + compact (grid) ---------- */
.news-section {
  padding: 76px 0;
}
.news-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 26px;
}
.article-list-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 26px;
}
.article-list-month-group {
  margin-top: 42px;
}
.article-list-month-heading {
  color: var(--teal-800);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  margin: 0 0 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.news-featured-card {
  position: relative;
  display: block;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--teal-800), var(--teal-500));
  box-shadow: var(--shadow-card);
}
.news-featured-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.news-featured-card:hover img {
  transform: scale(1.045);
}
.news-featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 63, 59, 0) 34%,
    rgba(10, 35, 32, 0.92) 100%
  );
}
.news-featured-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  background: var(--coral-500);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
}
.news-featured-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  padding-bottom: 10px;
  z-index: 2;
  color: #fff;
}
.news-featured-content h3 {
  font-size: clamp(1.08rem, 1.9vw, 1.36rem);
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}
.news-featured-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.82);
}
.news-featured-meta .dot {
  opacity: 0.6;
}

.news-compact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.news-compact-card {
  display: flex;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 14px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.news-compact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}
.news-compact-thumb {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-compact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-featured-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-compact-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.news-compact-body h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.42;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-compact-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--ink-500);
  white-space: nowrap;
}
.tag--activity {
  color: var(--coral-600);
  font-weight: 600;
}

/* ---------- Article / news detail page ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink-500);
  margin: 26px 0 22px;
  flex-wrap: wrap;
}
.breadcrumb a:hover {
  color: var(--teal-700);
}
.breadcrumb .sep {
  color: var(--ink-300);
}
.breadcrumb .current {
  color: var(--ink-900);
  font-weight: 500;
}

.article {
  padding: 0 0 90px;
}
.article-hero {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 21/9;
  margin-bottom: 34px;
  background: linear-gradient(135deg, var(--teal-800), var(--teal-500));
  box-shadow: var(--shadow-card);
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-hero-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 18px;
  background: rgba(10, 35, 32, 0.55);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
}

.article-head {
  max-width: 800px;
  margin: 0 auto 34px;
}
.article-tag {
  display: inline-block;
  background: var(--coral-100);
  color: var(--coral-600);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.article-head h1 {
  font-size: clamp(1.55rem, 3.3vw, 2.25rem);
  color: var(--ink-900);
  margin-bottom: 18px;
}
.article-lead {
  font-size: 1.06rem;
  color: var(--ink-700);
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  color: var(--ink-500);
  font-size: 0.88rem;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.02rem;
  color: var(--ink-700);
  line-height: 1.9;
}
.article-body p {
  margin-bottom: 22px;
}
.article-body h2 {
  font-size: 1.28rem;
  color: var(--ink-900);
  margin: 38px 0 16px;
  font-family: var(--font-display);
}
.article-body h3 {
  font-size: 1.08rem;
  color: var(--ink-900);
  margin: 28px 0 12px;
  font-family: var(--font-display);
}
.article-body ul,
.article-body ol {
  margin: 0 0 22px 22px;
}
.article-body ul {
  list-style: disc;
}
.article-body ol {
  list-style: decimal;
}
.article-body li {
  margin-bottom: 8px;
}
.article-body a {
  color: var(--teal-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body strong {
  color: var(--ink-900);
}
.article-body blockquote {
  border-left: 3px solid var(--coral-500);
  padding: 6px 0 6px 22px;
  margin: 28px 0;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.08rem;
}
.article-figure {
  margin: 32px 0;
}
.article-figure img {
  width: 100%;
  border-radius: var(--radius-m);
  display: block;
}
.article-figure figcaption {
  font-size: 0.84rem;
  color: var(--ink-500);
  margin-top: 10px;
  text-align: center;
}
.article-figure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.article-figure-grid img {
  border-radius: var(--radius-m);
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.article-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.article-gallery-item {
  flex: 0 0 auto;
  width: 190px;
  height: 190px;
  padding: 0;
  border: none;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: none;
  cursor: zoom-in;
}
.article-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.article-gallery-item:hover img,
.article-gallery-item:focus-visible img {
  transform: scale(1.08);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 20, 18, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-m);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 14px;
  font-size: 2.2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}
.lightbox-prev {
  left: 6px;
}
.lightbox-next {
  right: 6px;
}
.lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
}
@media (max-width: 480px) {
  .article-gallery-item {
    width: 76px;
    height: 76px;
  }
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 800px;
  margin: 36px auto 0;
}
.article-tags .chip {
  font-size: 0.8rem;
  padding: 7px 16px;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 800px;
  margin: 30px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.article-share span {
  font-size: 0.88rem;
  color: var(--ink-500);
  font-weight: 500;
  margin-right: 2px;
}
.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink-700);
  transition: all 0.18s ease;
}
.share-btn:hover {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: #fff;
}

.related-news {
  max-width: var(--wrap);
  margin: 70px auto 0;
  padding: 0 24px;
}
.related-news .section-head {
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .news-compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 860px) {
  .news-featured-grid {
    grid-template-columns: 1fr;
  }
  .article-list-featured-grid {
    grid-template-columns: 1fr;
  }
  .article-figure-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .news-compact-grid {
    grid-template-columns: 1fr;
  }
  .article-hero {
    aspect-ratio: 4/3;
  }
  .article-meta {
    gap: 12px 16px;
  }
}
@media (max-width: 480px) {
  .news-featured-content {
    padding: 20px;
  }
  .news-compact-card {
    padding: 12px;
    gap: 12px;
  }
  .news-compact-thumb {
    width: 56px;
    height: 56px;
  }
}

.news-card-thumb {
  position: relative;
  overflow: hidden;
}

.news-card-view {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
  pointer-events: none;
  white-space: nowrap;
}

/* Modal */
.img-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.85);
  text-align: center;
  justify-content: center;
  align-items: center;
}

.img-modal.active {
  display: flex;
}

.img-modal-content {
  max-width: 90%;
  max-height: 85vh;
  margin: auto;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.25s ease;
}

.img-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
}

.img-modal-close:hover {
  color: #ff5555;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .img-modal-close {
    top: 10px;
    right: 15px;
    font-size: 28px;
  }

  .img-modal-content {
    max-width: 95%;
    max-height: 80vh;
  }
}

body.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: var(--mint-50);
}

.login-shell {
  width: min(100%, 430px);
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-pop);
}

.login-heading {
  margin-bottom: 28px;
  text-align: center;
}

.login-heading h1 {
  color: var(--teal-900);
  font-size: clamp(1.7rem, 5vw, 2.1rem);
}

.login-heading p {
  margin-top: 6px;
  color: var(--coral-600);
  font-weight: 600;
}

.login-field {
  margin-bottom: 18px;
}

.login-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-700);
  font-weight: 600;
}

.login-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--ink-900);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font: inherit;
}

.login-field input:focus {
  outline: 3px solid var(--coral-100);
  border-color: var(--coral-500);
}

.login-submit {
  width: 100%;
  margin-top: 4px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
  color: var(--ink-500);
  font-size: 0.9rem;
}

.login-divider::before,
.login-divider::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.login-social-actions {
  display: grid;
  gap: 10px;
}

.login-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--ink-700);
  background: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.login-social:hover {
  background: var(--cream);
}

.login-social--google:hover {
  border-color: #4285f4;
}

.login-social--thaid:hover {
  border-color: var(--teal-500);
}

.login-social__icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.login-social--google .login-social__icon {
  color: #4285f4;
  border: 1px solid #4285f4;
}

.login-social--thaid .login-social__icon {
  color: var(--white);
  background: var(--teal-700);
}

#alertText {
  margin-bottom: 16px;
}

.login-alert {
  padding: 11px 14px;
  border-radius: var(--radius-s);
  font-size: 0.95rem;
}

.login-alert--success {
  color: var(--teal-900);
  background: var(--teal-100);
}

.login-alert--warning {
  color: #76510a;
  background: #fff2c7;
}

.login-alert--danger {
  color: #9d2d20;
  background: var(--coral-100);
}

.login-forgot {
  display: block;
  margin-top: 18px;
  color: var(--teal-700);
  text-align: center;
  font-weight: 600;
}

.login-forgot:hover {
  color: var(--coral-600);
}

.login-copyright {
  margin-top: 32px;
  color: var(--ink-500);
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .login-shell {
    padding: 30px 22px;
  }
}

.admin-web-main {
  background: var(--cream);
}

.admin-web-hero {
  padding: 54px 0 42px;
  color: var(--white);
  background: var(--teal-900);
}

.admin-web-hero .wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.admin-web-hero .eyebrow {
  color: var(--teal-100);
}

.admin-web-hero h1 {
  max-width: 720px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.admin-web-lead {
  max-width: 620px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
}

.admin-web-user {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.admin-web-content {
  padding: 48px 0 72px;
}

.admin-web-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-web-toolbar h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
}

.admin-web-toolbar p {
  margin-top: 5px;
  color: var(--ink-500);
}

.admin-web-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.admin-web-card .media-thumb {
  height: 168px;
}

.admin-web-card h3 {
  padding: 18px 18px 4px;
  color: var(--ink-900);
  font-size: 1.08rem;
}

.admin-web-card p {
  flex: 1;
  padding: 0 18px;
  color: var(--ink-500);
  font-size: 0.92rem;
  line-height: 1.55;
}

.admin-web-card .media-meta {
  margin-top: 16px;
}

@media (max-width: 700px) {
  .admin-web-hero {
    padding: 38px 0 34px;
  }

  .admin-web-hero .wrap,
  .admin-web-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-web-user {
    border-radius: var(--radius-s);
  }

  .admin-web-content {
    padding: 36px 0 54px;
  }
}

.admin-homebar {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.admin-homebar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.admin-home-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--teal-800);
}

.admin-home-link img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.admin-home-link strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.2;
}

.admin-home-link span {
  display: block;
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 0.76rem;
}

.admin-home-link:hover strong {
  color: var(--coral-600);
}

.admin-home-action {
  color: var(--teal-700);
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-home-action:hover {
  color: var(--coral-600);
}

@media (max-width: 480px) {
  .admin-homebar-inner {
    min-height: 64px;
  }

  .admin-home-link img {
    width: 40px;
    height: 40px;
  }

  .admin-home-link strong {
    font-size: 0.9rem;
  }

  .admin-home-link span {
    font-size: 0.68rem;
  }

  .admin-home-action {
    font-size: 0.78rem;
    white-space: nowrap;
  }
}

/* ============================================================
   Application Center — grouped list menu (add to style.css)
   Reuses existing tokens: --teal-*, --coral-*, --lav-*, --mint-50,
   --line, --ink-*, --radius-*, --font-display/body
   Reuses existing .chip / .chip.is-active / .eyebrow / .wrap as-is.
   ============================================================ */

/* ---- search ---- */
.search-box {
  position: relative;
  margin: 16px 0 12px;
}
.search-box input {
  width: 100%;
  min-height: 50px;
  padding: 0 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  color: var(--ink-900);
}
.search-box input:focus {
  outline: 3px solid var(--coral-100);
  border-color: var(--coral-500);
}
.search-box svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-500);
}

/* ---- filter chip row (horizontal scroll on mobile) ---- */
.chip-row-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.chip-row-scroll::-webkit-scrollbar {
  display: none;
}

/* ---- groups ---- */
.menu-group {
  margin-bottom: 26px;
}
.menu-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 2px 10px;
}
.menu-group-head h3 {
  font-size: 1rem;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 600;
}
.menu-group-head .count {
  font-size: 0.78rem;
  color: var(--ink-500);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2px 9px;
  border-radius: 999px;
}

/* ---- list + rows ---- */
.menu-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.menu-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  min-height: 72px; /* comfortable touch target */
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.menu-row:last-child {
  border-bottom: none;
}
.menu-row:hover,
.menu-row:focus-visible {
  background: var(--mint-50);
}

.row-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.row-icon svg {
  width: 22px;
  height: 22px;
}

.row-body {
  flex: 1;
  min-width: 0;
}
.row-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink-900);
  font-family: var(--font-display);
}
.row-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-go {
  flex: 0 0 auto;
  color: var(--ink-300);
}
.menu-row:hover .row-go {
  color: var(--coral-500);
}

/* icon badge color variants — reuse existing gradient pairs */
.icon-teal {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
}
.icon-mint {
  background: linear-gradient(135deg, #1b7a6e, #63c1ae);
}
.icon-lav {
  background: linear-gradient(135deg, var(--lav-700), var(--lav-400));
}
.icon-coral {
  background: linear-gradient(135deg, var(--coral-600), var(--coral-500));
}

.badge-external {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--teal-700);
  background: var(--teal-100);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 2px;
}

.menu-empty-state {
  display: none;
  text-align: center;
  padding: 50px 20px;
  color: var(--ink-500);
}
.menu-empty-state.show {
  display: block;
}

/* two-column list on tablet/desktop */
@media (min-width: 640px) {
  .menu-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .menu-row {
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
  .menu-row:nth-child(2n) {
    border-right: none;
  }
}
/* ============================================================
   Application Center — grouped list menu (add to style.css)
   Reuses existing tokens: --teal-*, --coral-*, --lav-*, --mint-50,
   --line, --ink-*, --radius-*, --font-display/body
   Reuses existing .chip / .chip.is-active / .eyebrow / .wrap as-is.
   ============================================================ */

/* ---- search ---- */
.search-box {
  position: relative;
  margin: 16px 0 12px;
}
.search-box input {
  width: 100%;
  min-height: 50px;
  padding: 0 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  color: var(--ink-900);
}
.search-box input:focus {
  outline: 3px solid var(--coral-100);
  border-color: var(--coral-500);
}
.search-box svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-500);
}

/* ---- filter chip row (horizontal scroll on mobile) ---- */
.chip-row-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.chip-row-scroll::-webkit-scrollbar {
  display: none;
}

/* ---- groups ---- */
.menu-group {
  margin-bottom: 26px;
}
.menu-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 2px 10px;
}
.menu-group-head h3 {
  font-size: 1rem;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 600;
}
.menu-group-head .count {
  font-size: 0.78rem;
  color: var(--ink-500);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2px 9px;
  border-radius: 999px;
}

/* ---- list + rows ---- */
.menu-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.menu-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  min-height: 72px; /* comfortable touch target */
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.menu-row:last-child {
  border-bottom: none;
}
.menu-row:hover,
.menu-row:focus-visible {
  background: var(--mint-50);
}

.row-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.row-icon svg {
  width: 22px;
  height: 22px;
}

.row-body {
  flex: 1;
  min-width: 0;
}
.row-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink-900);
  font-family: var(--font-display);
}
.row-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-go {
  flex: 0 0 auto;
  color: var(--ink-300);
}
.menu-row:hover .row-go {
  color: var(--coral-500);
}

/* icon badge color variants — reuse existing gradient pairs */
.icon-teal {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
}
.icon-mint {
  background: linear-gradient(135deg, #1b7a6e, #63c1ae);
}
.icon-lav {
  background: linear-gradient(135deg, var(--lav-700), var(--lav-400));
}
.icon-coral {
  background: linear-gradient(135deg, var(--coral-600), var(--coral-500));
}

.badge-external {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--teal-700);
  background: var(--teal-100);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 2px;
}

.menu-empty-state {
  display: none;
  text-align: center;
  padding: 50px 20px;
  color: var(--ink-500);
}
.menu-empty-state.show {
  display: block;
}

/* two-column list on tablet/desktop */
@media (min-width: 640px) {
  .menu-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .menu-row {
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
  .menu-row:nth-child(2n) {
    border-right: none;
  }
}

.popup-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 23, 0.65);
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  overflow: auto;
}

.popup-modal-overlay.is-open {
  display: flex;
}

.popup-modal {
  position: relative;
  width: auto;
  max-width: 100%;
  max-height: 100%;
}

.popup-modal-slides {
  position: relative;
}

.popup-modal-slide {
  display: none;
}

.popup-modal-slide.is-active {
  display: block;
}

.popup-modal-slide img,
.popup-modal-slide a {
  display: block;
  max-width: 100%;
}

.popup-modal-slide img {
  max-width: min(100%, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.popup-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.popup-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
}

.popup-modal-nav--prev {
  left: 10px;
}

.popup-modal-nav--next {
  right: 10px;
}

.popup-modal-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.popup-modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
}

.popup-modal-dot.is-active {
  background: #fff;
}

@media (max-width: 600px) {
  .popup-modal-overlay {
    padding: max(8px, env(safe-area-inset-top))
      max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-left));
  }

  .popup-modal-slide img {
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .popup-modal-close {
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .popup-modal-nav {
    width: 32px;
    height: 32px;
  }

  .popup-modal-nav--prev {
    left: 6px;
  }

  .popup-modal-nav--next {
    right: 6px;
  }

  .popup-modal-dots {
    bottom: 6px;
  }
}
/* ---------- Personnel directory (structure.php) ---------- */
.personnel-page {
  padding-bottom: 80px;
  background: linear-gradient(180deg, #f0f8f5 0, var(--cream) 620px);
}
.personnel-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 38px 0 34px;
}
.personnel-eyebrow {
  color: var(--teal-700);
  font-weight: 600;
  margin-bottom: 14px;
}
.personnel-intro h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.3;
  color: var(--teal-900);
}
.personnel-intro h1 span {
  color: var(--teal-700);
}
.personnel-description {
  margin-top: 18px;
  color: var(--ink-700);
  line-height: 1.8;
}
.personnel-summary {
  flex-shrink: 0;
  padding: 28px 32px;
  border-left: 1px solid #c9dfd7;
}
.personnel-summary strong {
  display: block;
  font: 500 4.5rem/1.1 var(--font-display);
  color: var(--teal-800);
}
.personnel-summary strong span {
  font-size: 1.1rem;
  margin-left: 10px;
}
.personnel-summary p {
  margin: 10px 0 4px;
  font-weight: 600;
}
.personnel-summary > span {
  color: var(--ink-500);
  font-size: 0.88rem;
}
.personnel-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 0;
}
.personnel-nav a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--teal-900);
  font-weight: 600;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.personnel-nav a:hover {
  background: var(--teal-100);
  border-color: var(--teal-500);
}
.personnel-nav span {
  color: var(--teal-700);
  font-size: 0.8rem;
}
.personnel-notice {
  margin: 12px 0 0;
  color: var(--ink-500);
  font-size: 0.85rem;
}
.personnel-section {
  padding-top: 48px;
  scroll-margin-top: 110px;
}
.personnel-section + .personnel-section {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.personnel-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.personnel-section-number {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--teal-100);
  color: var(--teal-800);
  font: 500 1.15rem var(--font-display);
}
.personnel-section-head h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  line-height: 1.4;
  color: var(--teal-900);
}
.personnel-section-head p {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 0.9rem;
}
.personnel-count {
  margin-left: auto;
  flex-shrink: 0;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-700);
  font-size: 0.85rem;
}
.personnel-leader {
  display: grid;
  grid-template-columns: minmax(0, 360px);
  justify-content: center;
  padding-bottom: 32px;
  position: relative;
}
.personnel-leader::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 32px;
  background: #c9dfd7;
}
.personnel-deputies {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #c9dfd7;
}
.personnel-assistant {
  display: grid;
  grid-template-columns: minmax(0, 360px);
  justify-content: center;
  gap: 24px;
  margin: 24px auto 0;
  padding-top: 24px;
  border-top: 1px solid #c9dfd7;
}
.personnel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
  padding: 28px 18px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 8px 24px -20px rgba(10, 63, 59, 0.28);
}
.personnel-card--featured {
  background: linear-gradient(160deg, white, var(--mint-50));
  border-color: #bdddd2;
  padding-top: 32px;
  box-shadow: var(--shadow-card);
}
.personnel-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-bottom: 20px;
  color: #bdddd2;
  border: 5px solid white;
  outline: 1px solid #d7e8e1;
  overflow: hidden;
  background: #bdddd2;
}
.personnel-avatar > svg {
  width: 100%;
  height: 100%;
}
.personnel-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.personnel-avatar img[hidden] {
  display: none;
}
.personnel-card--featured .personnel-avatar {
  width: 152px;
  height: 152px;
}
.personnel-label {
  font-size: 0.75rem;
  color: var(--teal-800);
  background: var(--teal-100);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.personnel-name {
  font-size: 1.05rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.personnel-position {
  color: var(--ink-500);
  font-size: 0.88rem;
  margin: 5px 0 18px;
  overflow-wrap: anywhere;
}
.personnel-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin-top: auto;
  padding: 8px 14px;
  background: var(--mint-50);
  color: var(--teal-800);
  border-radius: 999px;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
  max-width: 100%;
}
a.personnel-phone:hover {
  background: var(--teal-100);
}
.personnel-phone svg {
  flex-shrink: 0;
}
.personnel-phone--placeholder {
  color: var(--ink-500);
  background: #f5f6f4;
}
.personnel-duty {
  margin: auto 0 0;
  padding: 10px 14px;
  color: var(--teal-800);
  background: var(--mint-50);
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.personnel-duty strong {
  display: block;
  margin-bottom: 2px;
  color: var(--teal-900);
  font-size: 0.75rem;
}
.personnel-group {
  --group-accent: var(--teal-700);
  margin-top: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #f1f7f4;
}
.personnel-group--2 {
  --group-accent: var(--lav-700);
  background: #f5f3fa;
}
.personnel-group--3 {
  --group-accent: #a94a36;
  background: #fbf5ef;
}
.personnel-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  border-left: 4px solid var(--group-accent);
  padding-left: 12px;
}
.personnel-group-head h3 {
  color: var(--group-accent);
  font-size: 1.2rem;
  line-height: 1.5;
}
.personnel-group-head span {
  color: var(--ink-700);
  font-size: 0.85rem;
  margin-left: auto;
}
.personnel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.personnel-group--2 .personnel-avatar {
  color: #d7ceed;
  background: #d7ceed;
  outline-color: #e4dcf4;
}
.personnel-group--3 .personnel-avatar {
  color: #ead5c5;
  background: #ead5c5;
  outline-color: #f0e0d3;
}
@media (max-width: 800px) {
  .personnel-summary {
    padding: 24px 0 24px 24px;
  }
  .personnel-deputies {
    gap: 14px;
  }
  .personnel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .personnel-card {
    padding: 24px 14px 18px;
  }
}
@media (max-width: 600px) {
  .personnel-intro {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 22px;
    gap: 22px;
  }
  .personnel-summary {
    width: 100%;
    padding: 18px 22px;
    border: 1px solid #c9dfd7;
    border-radius: 18px;
  }
  .personnel-summary strong {
    float: left;
    margin-right: 24px;
    font-size: 3.3rem;
  }
  .personnel-summary p {
    margin-top: 0;
  }
  .personnel-summary::after {
    content: "";
    display: block;
    clear: both;
  }
  .personnel-nav {
    gap: 8px;
  }
  .personnel-nav a {
    font-size: 0.85rem;
    padding: 9px 14px;
    gap: 12px;
  }
  .personnel-section {
    padding-top: 32px;
  }
  .personnel-section + .personnel-section {
    margin-top: 32px;
  }
  .personnel-section-head {
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
  }
  .personnel-section-head > div {
    flex: 1;
    min-width: 0;
  }
  .personnel-section-number {
    flex-basis: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .personnel-count {
    padding: 4px 9px;
  }
  .personnel-deputies {
    grid-template-columns: minmax(0, 1fr);
    max-width: 360px;
  }
  .personnel-group {
    padding: 20px 14px;
    border-radius: 20px;
  }
  .personnel-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .personnel-page {
    padding-bottom: 48px;
  }
}

.mhc-consult {
  --consult-ink: #173b3a;
  --consult-teal: #0f766e;
  padding: clamp(48px, 7vw, 88px) 20px;
  color: var(--consult-ink);
  background: linear-gradient(135deg, #effaf7 0%, #f5f8ff 55%, #fff8f1 100%);
}
.mhc-consult-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}
.mhc-consult-head {
  max-width: 700px;
  margin: 0 auto 34px;
  text-align: center;
}
.mhc-consult-kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--consult-teal);
  background: #d9f3eb;
  font-size: 0.9rem;
  font-weight: 600;
}
.mhc-consult-head h2 {
  margin: 0 0 12px;
  color: var(--consult-ink);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.3;
}
.mhc-consult-head > p:last-child {
  margin: 0;
  color: #536b69;
  line-height: 1.8;
}
.mhc-consult-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.mhc-consult-card {
  padding: 26px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(23, 59, 58, 0.07);
}
.mhc-consult-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 15px;
  color: var(--consult-teal);
  background: #e4f6f1;
  font-size: 1.45rem;
}
.mhc-consult-card h3 {
  margin: 0 0 8px;
  color: var(--consult-ink);
  font-size: 1.2rem;
}
.mhc-consult-card p {
  margin: 0;
  color: #5b706e;
  line-height: 1.75;
}
.mhc-consult-free {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 24px 0 0;
  padding: 22px 20px;
  border: 1px solid #b9e8d9;
  border-radius: 18px;
  color: #17604f;
  background: #e8f8f1;
  text-align: center;
  font-weight: 600;
}
.mhc-consult-free p {
  margin: 0;
}
.mhc-consult-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  color: #fff;
  background: var(--consult-teal);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.22);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.mhc-consult-cta:hover {
  background: #0b625c;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.3);
  transform: translateY(-2px);
}
@media (max-width: 760px) {
  .mhc-consult-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .mhc-consult-card {
    padding: 21px;
  }
  .mhc-consult-cta {
    width: 100%;
  }
}
