/*
Theme Name: Jeongto Blog
Theme URI: https://jeongtoblog.com
Author: Jeongto Oriental Medical Clinic
Description: 정토한의원 건강블로그(jeongtoblog.com) 전용 경량 워드프레스 테마. Gutenberg 기본 블록 편집기 우선 지원, 빠른 반응형 레이아웃, 본원(jeongto.com) 브랜드 톤 정합.
Version: 0.9.6
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
License: Proprietary
Text Domain: jeongtoblog
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ===== 1. 브랜드 디자인 토큰 (tone/jeongto_homepage_hero_fixed.html 기반 정합) ===== */
:root {
  /* tone/jeongto_homepage_hero_fixed.html 명시 변수 */
  --green: #204B3F;            /* 정토 시그니처 딥그린 */
  --deep: #17382F;             /* 차분하고 깊은 다크 딥그린 */
  --ink: #273B32;              /* 텍스트 딥 사이프러스 인크 */
  --ivory: #F8F6F0;            /* 따뜻하고 편안한 전통 아이보리 */
  --sand: #EEE8DC;             /* 단아한 샌드 뉴트럴 */
  --line: #E1DFD5;             /* 부드러운 소프트 보더 */
  --brown: #8B7055;            /* 차분한 우드 브라운 */
  --sage: #DFE8DD;             /* 편안한 세이지 */

  /* 하이라이트 및 골드 액센트 */
  --gold-accent: #987A50;      /* DM Sans 영문 아이브로우 골드 */
  --gold-line: #AC9068;        /* 아이브로우 가로선 */
  --gold-hl: #8D7653;          /* 타이틀 핵심 강조 컬러 */

  /* Surfaces & Backgrounds */
  --bg: #F8F6F0;               /* 고정 시안 일치 아이보리 배경 */
  --surface: #FFFFFF;
  --surface-soft: #F4F1EA;
  --mint: #EBEFE8;

  /* Brand Colors 매핑 */
  --forest: #204B3F;
  --forest-deep: #17382F;
  --forest-light: #2A6656;
  --brand: #204B3F;
  --brand-hover: #17382F;
  --gold: #C5A059;
  --gold-soft: #D8BD83;
  --accent-gold: #987A50;
  --accent-gold-hover: #8B7055;
  --amber: #8A6D1F;
  --sand-ink: #6E5C46;

  /* Text Colors */
  --text: #273B32;
  --text-muted: #52675B;

  /* Borders & Dividers */
  --border: #DCE3DA;          /* 얇고 산뜻한 소프트 보더 */
  --border-soft: #E9EFE7;
  --border-control: #82948A;

  /* Shape & Radii */
  --radius-sm: 10px;
  --radius-card: 16px;
  --radius-visual: 18px;
  --radius-pill: 999px;

  /* Elevation Shadows */
  --shadow-card: 0 4px 18px rgba(30, 43, 37, 0.04);
  --shadow-hover: 0 10px 28px rgba(56, 90, 74, 0.12);
  --shadow-visual: 0 16px 36px rgba(30, 43, 37, 0.08);

  /* Transitions */
  --duration: 180ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* 기존 토큰 호환용 매핑 */
  --cream: var(--bg);
  --ink: var(--text);
  --teal: var(--forest);
  --teal-d: var(--forest-deep);
  --gold-d: #B8952E;
  --line: var(--border-soft);
  --line-s: var(--border);
  --mut: var(--text-muted);
  --soft: var(--surface-soft);
  --skel: #EDF1ED;
  --hdr: 80px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Noto Sans KR', 'Nanum Gothic', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  word-break: keep-all;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== 2. 상단 고정 헤더 (.site-head) ===== */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.site-head {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 74px;
  background: #FAF9F5;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #E7E5DD;
  z-index: 100;
}

body.admin-bar .site-head {
  top: 32px;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.head-in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--teal);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  flex-shrink: 0;
}

.logo-text .brand-accent {
  color: var(--teal);
}

.logo-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--mut);
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid var(--line-s);
}

.gnb {
  display: flex;
  align-items: center;
  gap: 20px;
}

.gnb a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.gnb a:hover,
.gnb a[aria-current="page"] {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.head-util {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hd-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #DCE3DA;
  border-radius: 999px;
  padding: 3px 4px 3px 18px;
  height: 42px;
  box-shadow: 0 2px 6px rgba(30, 43, 37, 0.04);
}

.hd-search input[type="search"] {
  width: 170px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  color: #273B32;
  padding: 0;
  font-family: inherit;
}

.hd-search input[type="search"]::placeholder {
  color: #8C9990;
}

.hd-search-btn {
  background: #17382F;
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  height: 34px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.hd-search-btn:hover {
  background: #204B3F;
}

.head-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #17382F;
  color: #FFFFFF !important;
  border-radius: 4px;
  height: 42px;
  padding: 0 18px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.head-tel:hover {
  background: #204B3F;
  transform: translateY(-1px);
}

.head-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  color: #4D5C53;
  background: #FAF8F4;
  border: 1px solid #ECE7DE;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: 4px;
}

.head-admin-link svg {
  transition: transform 0.35s ease;
}

.head-admin-link:hover {
  color: #FFFFFF;
  border-color: #17382F;
  background: #17382F;
}

.head-admin-link:hover svg {
  transform: rotate(60deg);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-s);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ===== 3. 모바일 슬라이드 드로어 (aside.drawer) ===== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.48);
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(330px, 88vw);
  background: #fff;
  z-index: 150;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s ease;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
}

.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-s);
  margin-bottom: 16px;
}

.drawer-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-s);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.drawer-search {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.drawer-search input[type="search"] {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-s);
  border-radius: 8px;
  font-size: 14px;
}

.drawer-search button {
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.drawer-nav a {
  padding: 11px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-nav a:hover {
  background: var(--soft);
  color: var(--teal);
}

.drawer-channels {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line-s);
}

.ch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--line-s);
  background: #fff;
  color: var(--ink);
}

.ch-btn.tel {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.ch-btn.naver {
  background: #03C75A;
  color: #fff;
  border-color: #03C75A;
}

.ch-btn.kakao {
  background: #FEE500;
  color: #191919;
  border-color: #FEE500;
}

/* ===== 4. 메인 홈 섹션 스타일 ===== */
.sec {
  padding: 64px 0;
}

.sec-alt {
  background: #fff;
  border-top: 1px solid var(--line-s);
  border-bottom: 1px solid var(--line-s);
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.sec-eyebrow {
  display: inline-block;
  font: 700 12px 'DM Sans', sans-serif;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: #9B7D52;
  margin-bottom: 8px;
}

.sec-title {
  margin: 0;
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.35;
  color: var(--deep);
}

.sec-desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: #777E74;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-s);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  transition: all 0.15s ease;
}

.btn-more:hover {
  border-color: var(--teal);
  background: var(--soft);
}

/* 4.1 히어로 섹션 (.hero--light-origin) — 원본 방식 전체 커버 및 자연스러운 화면 비례 */
.hero--light-origin {
  background-color: #F5EEE3;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.hero--light-origin::before,
.hero--light-origin::after {
  display: none !important;
}

/* 원본 방식 배경 레이어: inset: 0으로 화면 전체 커버 */
.hero-backdrop-light {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-backdrop-light img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* 원본(tone/jeongto_homepage_hero_fixed.html)과 100% 동일한 그라디언트 페이드 */
.hero-backdrop-light::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(249, 246, 239, 0.97) 0%,
    rgba(249, 246, 239, 0.91) 31%,
    rgba(249, 246, 239, 0.40) 51%,
    rgba(249, 246, 239, 0) 69%
  );
}

.hero--light-origin .hero-inner {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 640px;
  padding-top: 90px;
  padding-bottom: 110px;
  z-index: 1;
}

.hero--light-origin .hero-copy {
  max-width: 550px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font: 700 12px 'DM Sans', sans-serif;
  letter-spacing: 0.19em;
  color: #94764B;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.hero-line {
  width: 34px;
  height: 1px;
  background: #AA926C;
  display: inline-block;
  vertical-align: middle;
  margin-right: 12px;
}

.hero-slogan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(56, 90, 74, 0.18);
  font-size: 12.5px;
  font-weight: 600;
  color: #264736;
  margin: 0 0 18px 0;
  backdrop-filter: blur(4px);
}

.hero-slogan .slogan-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.hero--light-origin h1 {
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.34;
  letter-spacing: -0.065em;
  color: #1D3E34;
  margin: 0 0 20px 0;
  font-weight: 700;
}

.hero--light-origin h1 em {
  font-style: normal;
  color: #8D7653;
}

.hero--light-origin .hero-lead {
  font-size: 15px;
  line-height: 1.9;
  color: #52675B;
  max-width: 480px;
  margin: 0 0 30px 0;
  letter-spacing: -0.03em;
}

.hero--light-origin .hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero--light-origin .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid var(--green);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.hero--light-origin .hero-btn--primary {
  background: var(--green);
  color: #ffffff !important;
  box-shadow: 0 5px 20px rgba(25, 54, 39, 0.10);
}

.hero--light-origin .hero-btn--primary:hover {
  background: var(--deep);
  border-color: var(--deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(25, 54, 39, 0.16);
}

.hero--light-origin .hero-btn--secondary {
  background: transparent;
  color: var(--green) !important;
}

.hero--light-origin .hero-btn--secondary:hover {
  background: rgba(32, 75, 63, 0.06);
  transform: translateY(-2px);
}

.hero-channel-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.channel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #4A5B52;
  text-decoration: none;
  transition: color 0.18s;
}

.channel-link:hover {
  color: var(--green);
}

.ch-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.ch-dot--kakao {
  background: #FEE500;
}

.ch-dot--home {
  background: #256B4D;
}

/* 4.2 하단 3칸 메뉴 (.quick / .quickgrid) — 사용자 제공 스크린샷 1과 100% 동일 */
.quick {
  margin-top: -39px;
  position: relative;
  z-index: 10;
}

.quickgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #FFFFFF;
  box-shadow: 0 18px 45px rgba(30, 59, 45, 0.08);
  border: 1px solid #ECE7DE;
  border-radius: 4px;
  overflow: hidden;
}

.q {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-right: 1px solid #ECE7DE;
  transition: background 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.q:last-child {
  border-right: 0;
}

.q:hover {
  background: #F5F7F2;
}

.circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #EBEEE7;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 22px;
  flex-shrink: 0;
}

.q b {
  display: block;
  font-size: 15px;
  color: var(--deep);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.q small {
  display: block;
  margin-top: 5px;
  color: #9B9B8F;
  font-size: 12px;
}

@media (max-width: 850px) {
  .quickgrid {
    grid-template-columns: 1fr;
  }
  .q {
    border-right: 0;
    border-bottom: 1px solid #ECE7DE;
  }
  .q:last-child {
    border-bottom: 0;
  }
  .quick {
    margin-top: -25px;
  }
  .hero--light-origin {
    min-height: 540px;
  }
  .hero--light-origin .hero-backdrop-light img {
    object-position: 60% center;
  }
  .hero--light-origin .hero-inner {
    min-height: 540px;
    padding-top: 60px;
    padding-bottom: 75px;
  }
  .hero--light-origin .hero-copy {
    max-width: 100%;
  }
}

@media (max-width: 570px) {
  .hero--light-origin h1 {
    font-size: 32px;
  }
  .hero--light-origin .hero-lead {
    font-size: 14px;
    line-height: 1.75;
  }
  .hero--light-origin .hero-btns {
    margin-bottom: 20px;
  }
  .hero--light-origin .hero-btn {
    padding: 13px 18px;
    font-size: 13.5px;
  }
}

/* 4.3 6대 한방 진료 정보 가이드 (.guide-grid) */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.guide-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
}

.guide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.guide-chip {
  display: inline-block;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--mint);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.guide-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.guide-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
}

.guide-card p {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

.guide-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 대표 진료(담적·소화기) 카드 은은한 시그니처 강조 */
.guide-card[data-topic="damjeok"] {
  background: #F4F7F2;
  border-color: #B5C9BC;
  box-shadow: 0 6px 20px rgba(56, 90, 74, 0.08);
}

.guide-card[data-topic="damjeok"] .guide-chip {
  background: var(--brand);
  color: #FFFFFF;
}

.guide-card[data-topic="damjeok"]:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 12px 28px rgba(56, 90, 74, 0.16);
}

/* 4.4 최신 글 4열 카드 그리드 (.cards) — 모던 아티클 저널 */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
}

.card-thumb {
  aspect-ratio: 16 / 10;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-thumb-fallback {
  padding: 16px;
  text-align: center;
  color: var(--brand);
  font-weight: 800;
  font-size: 14px;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-cat {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--mint);
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title a {
  transition: color 0.15s ease;
}

.card-title a:hover {
  color: var(--brand);
}

.card-excerpt {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* 4.5 원장 소개 요약 (.doctor-box) 및 4단계 진료 흐름 (.flow-grid) */
.doctor-box {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 36px;
  box-shadow: var(--shadow-card);
}

.doc-frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-visual);
  background: linear-gradient(160deg, #FFFFFF 0%, var(--mint) 100%);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-visual);
}

.doc-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doc-frame-badge {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 12px;
}

.doc-role {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 6px;
}

.doc-title {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 800;
}

.doc-quote {
  margin: 0 0 18px;
  padding: 14px 18px;
  background: var(--soft);
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 600;
}

.doc-hist {
  margin: 0 0 20px;
  padding-left: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
  font-size: 13.5px;
  color: var(--mut);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.flow-card {
  background: #fff;
  border: 1px solid var(--line-s);
  border-radius: 12px;
  padding: 16px;
}

.flow-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
  margin-bottom: 12px;
}

.flow-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flow-step {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--amber);
  margin-bottom: 6px;
}

.flow-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
}

.flow-card p {
  margin: 0;
  font-size: 13px;
  color: var(--mut);
}

/* 4.6 진료시간 · 오시는길 (#location) 및 FAQ */
#location {
  scroll-margin-top: calc(var(--hdr) + 16px);
}

.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
}

.hours-box,
.map-box {
  background: #fff;
  border: 1px solid var(--line-s);
  border-radius: 12px;
  padding: 28px;
}

.hours-box h3,
.map-box h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 800;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 14px;
}

.hours-table th,
.hours-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line-s);
  text-align: left;
}

.hours-table th {
  width: 110px;
  color: var(--mut);
  font-weight: 700;
}

.hours-table td strong {
  color: var(--teal);
}

.map-frame {
  width: 100%;
  min-height: 220px;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line-s);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 14px 0 16px;
}

.map-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line-s);
  border-radius: 10px;
  padding: 16px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-q {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--teal);
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-a {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  padding-left: 36px;
  font-size: 14px;
  color: var(--mut);
}


/* ===== 5. 하단 소프트 아이보리 샌드 푸터 (.site-foot) — 원래 테마 톤(#EEECE4) 완벽 적용 ===== */
.site-foot {
  background: #EEECE4;
  color: #556258;
  border-top: 1px solid #E1DFD5;
  padding: 56px 0 0;
  font-size: 13.5px;
  line-height: 1.65;
}

.site-foot .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1.15fr;
  gap: 48px;
  padding-bottom: 48px;
}

/* 1열: 브랜드 & 슬로건 & 메타 정보 */
.foot-brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.foot-brand--gold {
  color: #9B7D52;
}
.foot-brand--white {
  color: #1F4A3D;
}

.foot-slogan {
  font-size: 14.5px;
  line-height: 1.65;
  color: #4A564D;
  margin-bottom: 16px;
  font-weight: 500;
}

.foot-gold-bar {
  width: 32px;
  height: 2px;
  background: #AA926C;
  margin-bottom: 18px;
}

.foot-meta {
  font-size: 13px;
  line-height: 1.75;
  color: #637066;
  margin-bottom: 22px;
}
.foot-meta p {
  margin: 0 0 3px;
}
.foot-meta strong {
  color: #1F4A3D;
  font-weight: 700;
}
.foot-tel-link {
  color: #1F4A3D !important;
  font-weight: 800;
  text-decoration: none;
}
.foot-tel-link:hover {
  text-decoration: underline;
  color: #9B7D52 !important;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
}
.foot-links a {
  color: #47544A;
  text-decoration: none;
  transition: color 0.15s ease;
}
.foot-links a:hover {
  color: #9B7D52;
}

/* 2열: 진료시간 */
.foot-title {
  font-size: 17px;
  font-weight: 800;
  color: #1F4A3D;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.foot-hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 14px;
}
.foot-hours-table th {
  text-align: left;
  padding: 8px 0;
  color: #637066;
  font-weight: 600;
  width: 105px;
}
.foot-hours-table td {
  text-align: right;
  padding: 8px 0;
  color: #1F4A3D;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.foot-closed {
  color: #C06B28;
  font-weight: 800;
}
.foot-hours-note {
  font-size: 12.5px;
  color: #7A877E;
  margin: 0;
}

/* 3열: 문의 & 예약 */
.foot-btn-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 16px;
}

.foot-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(32, 75, 63, 0.08);
}
.foot-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(32, 75, 63, 0.14);
}

.foot-btn--tel {
  background: #8B7055;
  color: #FFFFFF;
}
.foot-btn--naver {
  background: #03C75A;
  color: #FFFFFF;
}
.btn-ic-naver {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-weight: 900;
  font-size: 13px;
  color: #03C75A;
  background: #FFFFFF;
  border-radius: 2px;
}
.foot-btn--kakao {
  background: #FEE500;
  color: #191600;
}
.foot-btn--map {
  background: #204B3F;
  color: #FFFFFF;
}

.foot-notice-card {
  background: #FFFFFF;
  border: 1px solid #E1DFD5;
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 12px;
  line-height: 1.55;
  color: #6B776E;
  box-shadow: 0 1px 4px rgba(32, 75, 63, 0.03);
}

/* 최하단 카피라이트 바 */
.foot-bottom {
  border-top: 1px solid #E1DFD5;
  padding: 20px 0 24px;
}
.foot-copy {
  margin: 0;
  font-size: 12px;
  color: #7D8880;
  text-align: left;
}

/* 반응형 푸터 */
@media (max-width: 960px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .foot-col--contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 36px;
  }
  .foot-col--contact {
    grid-column: auto;
  }
  .foot-links {
    gap: 12px 14px;
  }
  .site-foot {
    padding-top: 40px;
    padding-bottom: 60px;
  }
}


/* ===== 6. PC 우측 플로팅 퀵메뉴 (.jt-quick) & 모바일 하단 바 (.jt-mbar) ===== */
.jt-quick {
  position: fixed;
  right: 0;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  width: 82px;
  background: #ffffff;
  border: 1px solid #ECE7DE;
  border-right: 0;
  border-radius: 16px 0 0 16px;
  box-shadow: -4px 6px 24px rgba(28, 25, 22, 0.12);
  overflow: hidden;
}

.jt-quick a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 14px 6px;
  text-align: center;
  border-bottom: 1px solid #F0EEE9;
  text-decoration: none;
  transition: background 0.18s ease;
}

.jt-quick a:hover {
  background: #FAF8F5;
}

.jt-quick a:last-child {
  border-bottom: 0;
}

.jt-quick .q-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
}

.jt-quick .q-home .q-icon {
  background: #2D4E41;
  color: #E7C98C;
  font-weight: 800;
  font-size: 13.5px;
}

.jt-quick .q-naver .q-icon {
  background: #03C75A;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 13.5px;
}

.jt-quick .q-kakao .q-icon {
  background: #FEE500;
  color: #191600;
  font-weight: 800;
  font-size: 15px;
}

.jt-quick .q-label {
  font-size: 12px;
  font-weight: 700;
  color: #222222;
  letter-spacing: -0.02em;
}

.jt-mbar {
  display: none;
}

/* ===== 7. 반응형 브레이크포인트 ===== */
@media (max-width: 850px) {
  .jt-quick {
    display: none;
  }
}

@media (max-width: 1199px) {
  .gnb {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .doctor-box {
    grid-template-columns: 1fr;
  }
  .doc-frame {
    max-width: 240px;
  }
}

@media (max-width: 879px) {
  .hero-grid,
  .feats-grid,
  .loc-grid,
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    overflow-x: visible;
  }
  .guide-card {
    min-width: 0;
    min-height: auto;
    padding: 20px 18px;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
  .head-in {
    position: relative;
  }
  .menu-btn {
    order: 1;
  }
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .logo-sub,
  .hd-search,
  .head-tel {
    display: none;
  }
  .hero {
    padding: 40px 0 48px;
  }
  .hero h1 {
    font-size: 27px;
  }
  .cards,
  .flow-grid,
  .doc-hist {
    grid-template-columns: 1fr;
  }
  .jt-mbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 76px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff;
    border-top: 1px solid var(--line-s);
    box-shadow: 0 -4px 16px rgba(17, 24, 39, 0.08);
    z-index: 120;
  }
  .jt-mbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink);
  }
  .jt-mbar a.m-tel {
    color: var(--teal);
  }
}

/* ===== 8. 5회차: 게시글 목록 (.list-page, .post-grid) & 상세/페이지 (.article) ===== */
.list-page,
.article-wrap {
  padding-top: 36px;
  padding-bottom: 64px;
}

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--mut);
  margin-bottom: 16px;
}

.crumbs a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 20px;
}

.list-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.list-desc {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--mut);
}

.list-count {
  font-size: 13.5px;
  color: var(--mut);
  white-space: nowrap;
}

.list-count strong {
  color: var(--teal);
}

/* 카테고리 필터 탭 (.filter) */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-s);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.15s ease;
}

.filter-chip:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.filter-chip[aria-current="page"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  font-weight: 700;
}

/* 반응형 게시글 그리드 (.post-grid): PC 4열 / 태블릿 2열 / 모바일 가로형 리스트 행 */
.post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pitem {
  background: #fff;
  border: 1px solid var(--line-s);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.pitem:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.06);
}

.pitem-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pitem-thumb {
  aspect-ratio: 1 / 1;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pitem-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pitem-thumb-fallback {
  padding: 16px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--teal);
}

.pitem-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pitem-chip {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--teal);
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pitem-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pitem-excerpt {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--mut);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pitem-meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--mut);
}

/* 페이지네이션 (.pager) */
.pager {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.pager .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line-s);
  background: #fff;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.pager .page-numbers.current {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.empty-state {
  background: #fff;
  border: 1px solid var(--line-s);
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
}

/* 게시글 및 고정 페이지 상세 (.article) */
.article {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line-s);
  border-radius: 14px;
  padding: 40px 44px;
}

.art-head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-s);
  margin-bottom: 24px;
}

.art-featured-thumb {
  margin: 0 0 24px;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--soft);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.art-featured-thumb img,
.art-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.art-preview-banner {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  color: #92400E;
  font-size: 13.5px;
  line-height: 1.5;
}

.art-title {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.38;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.art-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--mut);
}

.art-cat {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--teal);
  font-weight: 700;
  font-size: 12px;
}

.art-lead {
  padding: 16px 20px;
  margin-bottom: 24px;
  background: var(--soft);
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
}

.art-lead p {
  margin: 0;
}

.art-body {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink);
}

.art-body h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--teal);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line-s);
  scroll-margin-top: calc(var(--hdr) + 16px);
}

.art-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 26px 0 10px;
  scroll-margin-top: calc(var(--hdr) + 16px);
}

.art-body p {
  margin: 0 0 18px;
}

.art-body a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.art-body a:hover {
  color: var(--teal-d);
}

.art-body .wp-block-table {
  overflow-x: auto;
}

.art-body ul,
.art-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.art-body li {
  margin-bottom: 6px;
}

.art-body blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  background: var(--soft);
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
}

.art-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 14px;
}

.art-body th,
.art-body td {
  padding: 11px 12px;
  border: 1px solid var(--line-s);
  text-align: left;
}

.art-body th {
  background: var(--soft);
  color: var(--teal);
  font-weight: 700;
}

.art-body figure {
  margin: 24px 0;
}

.art-body figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--mut);
  text-align: center;
}

/* 해시태그 (.art-tags) */
.art-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-s);
}

.tag-chip {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line-s);
  font-size: 13px;
  color: var(--mut);
}

.tag-chip:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* 관련 글 (.soro-related) */
.soro-related {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--cream);
  border: 1px solid var(--line-s);
  border-radius: 10px;
}

.rel-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.rel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.rel-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-s);
  font-size: 14px;
}

.rel-list li:last-child a {
  border-bottom: 0;
}

.rel-post-wrap {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rel-cat-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--teal);
  font-size: 11.5px;
  font-weight: 700;
}

.rel-post-title {
  font-weight: 600;
  color: var(--ink);
}

.rel-list a:hover .rel-post-title {
  color: var(--teal);
}

.rel-list time {
  font-size: 12px;
  color: var(--mut);
  white-space: nowrap;
}

/* 이전 칼럼 / 다음 칼럼 (.art-prevnext) 및 주제별 칼럼 허브 (.art-cat-hub) */
.art-prevnext {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pn-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line-s);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pn-item.next {
  text-align: right;
}

.pn-item:hover {
  border-color: var(--teal);
  background: var(--cream);
}

.pn-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
}

.pn-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.art-cat-hub {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--cream);
  border: 1px solid var(--line-s);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-label {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  margin-right: 4px;
}

.hub-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-s);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mut);
}

.hub-chip:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* 하단 상담 CTA (.art-cta) 및 면책 문구 (.art-disc) */
.art-cta {
  margin-top: 28px;
  padding: 24px;
  background: var(--soft);
  border: 1px solid rgba(6, 78, 59, 0.18);
  border-radius: 12px;
}

.art-cta-copy strong {
  display: block;
  font-size: 17px;
  color: var(--teal);
  margin-bottom: 4px;
}

.art-cta-copy p {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--mut);
}

.art-cta-btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.art-disc {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--line-s);
  font-size: 13px;
  color: var(--mut);
}

.art-back {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.back-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
}

.back-link:hover {
  text-decoration: underline;
}

@media (max-width: 879px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* 모바일(≤768px): jeongtoclinic.com 방식 가로형 리스트 행 전환 (댓글 박스 제외) */
  .post-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .pitem-link {
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    gap: 14px;
  }
  .pitem-thumb {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    border: 1px solid var(--line-s);
    flex-shrink: 0;
  }
  .pitem-thumb-fallback {
    padding: 4px;
    font-size: 11px;
  }
  .pitem-body {
    padding: 0;
  }
  .pitem-title::before {
    content: "• ";
    color: var(--amber);
  }
  .pitem-excerpt {
    display: none;
  }
  .pitem-meta {
    border-top: 0;
    padding-top: 4px;
    justify-content: flex-start;
    gap: 8px;
  }
  .article {
    padding: 24px 20px;
  }
  .art-title {
    font-size: 22px;
  }
  .art-cta-btns,
  .art-prevnext {
    grid-template-columns: 1fr;
  }
  .pn-item.next {
    text-align: left;
  }
}



/* ===== 네이버 지도 컴포넌트 (.jt-map) ===== */
.jt-map {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ECE7DE;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 14px;
  box-shadow: 0 4px 18px rgba(30, 59, 45, 0.04);
}
.jt-mapframe {
  position: relative;
  width: 100%;
  min-height: 280px;
  height: 300px;
  background: #F6F4EE;
}
.nmap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.nmap-pin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #204B3F;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.02em;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(17, 56, 47, 0.4);
  white-space: nowrap;
  transform: translate(-50%, -100%);
}
.nmap-pin::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #204B3F;
}
.nmap-fb {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--mut);
  text-align: center;
  padding: 18px;
  background: #F9F8F5;
}
.jt-mapbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-top: 1px solid #ECE7DE;
  font-size: 13px;
  font-weight: 700;
  background: #ffffff;
  color: var(--mut);
}
.jt-mapbar .links {
  display: flex;
  gap: 12px;
}
.jt-mapbar a {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
}
.jt-mapbar a:hover {
  text-decoration: underline;
}


/* 모바일 최적화: 560px 이하 화면에서 1열 카드로 편안한 터치 제공 */
@media (max-width: 560px) {
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .guide-card {
    padding: 18px 16px;
  }
  .guide-card h3 {
    font-size: 17px;
  }
  .guide-card p {
    font-size: 13px;
    margin-bottom: 12px;
  }
}

/* 카카오 지도 (jeongto.com/Intro/Location roughmap 연동) */
.location-map-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ECE7DE;
  background: #f9f8f5;
  min-height: 360px;
  margin-top: 14px;
  box-shadow: 0 4px 18px rgba(30, 59, 45, 0.04);
}
.location-map-box .root_daum_roughmap {
  width: 100% !important;
}
.location-map-box .root_daum_roughmap .wrap_map {
  width: 100% !important;
  height: 360px !important;
}
.location-map-box .root_daum_roughmap iframe {
  width: 100% !important;
  height: 360px !important;
}
