/* Blog (health column) page — from assets/html/blog.html */

.blog-page {
  --ink: #14171f;
  --ink-2: #2b3240;
  --muted: #6b7280;
  --line: #e4e1da;
  --line-2: #efede6;
  --paper: #fbf9f4;
  --paper-2: #f5f1e8;
  --navy: #0a2540;
  --blue: #0052cc;
  --blue-soft: #e8eef7;
  --gold: #b89d5a;
  --sage: #687a6b;
  --green-paper: #556b45;
  --cat-notice: #8b2635;
  --cat-event: #0052cc;
  --cat-clinic: #b89d5a;
  --cat-staff: #d08744;
  --cat-general: #687a6b;

  font-family:
    'Pretendard',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  word-break: keep-all;
  overflow-x: clip;
}

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

.blog-page em,
.blog-page cite,
.blog-page i {
  font-style: normal;
}

.blog-page .term-fraunces,
.blog-page .blog-cta-eyebrow {
  font-family: 'Fraunces', serif;
  font-style: normal;
}

.blog-page.paper-texture {
  position: relative;
}

.blog-page.paper-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(59, 45, 26, 0.018) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
  z-index: 0;
}

.blog-page.paper-texture > * {
  position: relative;
  z-index: 1;
}

.blog-page .container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

/* ============ Article meta strip ============ */
.blog-page .article-meta {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  background: rgba(251, 249, 244, 0.6);
}

.blog-page .article-meta .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.blog-page .article-meta .breadcrumb a {
  color: var(--muted);
}

.blog-page .article-meta .breadcrumb a:hover {
  color: var(--navy);
}

.blog-page .article-meta-sep {
  color: var(--line);
  margin: 0 10px;
}

.blog-page .article-meta-current {
  color: var(--ink-2);
}

.blog-page .article-meta-credit {
  color: var(--muted);
  font-size: 13px;
}

/* ============ Hero ============ */
.blog-page .blog-hero {
  padding: 80px 0 56px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.blog-page .blog-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family:
    'Pretendard',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.blog-page .blog-hero-title {
  font-size: clamp(38px, 6vw, 56px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.blog-page .blog-hero-title em {
  color: var(--sage);
}

.blog-page .blog-hero-lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 780px;
  margin-bottom: 0;
}

/* ============ Category bar ============ */
.blog-page .blog-category-bar {
  background: rgba(245, 241, 232, 0.95);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  position: sticky;
  top: 67px;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.blog-page .blog-category-bar .container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-page .blog-category-bar-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.blog-page .blog-category-bar-scroll::-webkit-scrollbar {
  display: none;
}

.blog-page .blog-category-bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  width: max-content;
}

.blog-page .blog-cat-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  flex-shrink: 0;
}

.blog-page .blog-cat-btn {
  background: #fff;
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.blog-page .blog-cat-btn:hover {
  border-color: var(--navy);
}

.blog-page .blog-cat-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.blog-page .blog-cat-btn .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.blog-page .blog-cat-btn[data-cat='notice'] .dot {
  background: var(--cat-notice);
}

.blog-page .blog-cat-btn[data-cat='event'] .dot {
  background: var(--cat-event);
}

.blog-page .blog-cat-btn[data-cat='clinic'] .dot {
  background: var(--cat-clinic);
}

.blog-page .blog-cat-btn[data-cat='staff'] .dot {
  background: var(--cat-staff);
}

.blog-page .blog-cat-btn[data-cat='general'] .dot {
  background: var(--cat-general);
}

.blog-page .blog-cat-btn .count {
  font-size: 10px;
  opacity: 0.7;
}

/* ============ Articles grid ============ */
.blog-page .blog-articles-section {
  padding: 60px 0 100px;
}

.blog-page .blog-articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
}

.blog-page .blog-article-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 28px 24px;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.blog-page .blog-article-card[data-image] {
  cursor: pointer;
}

.blog-page .blog-article-card[data-image]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.blog-page .blog-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(10, 37, 64, 0.1);
  color: inherit;
  text-decoration: none;
}

.blog-page .blog-article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
}

.blog-page .blog-article-card[data-cat='notice']::before {
  background: var(--cat-notice);
}

.blog-page .blog-article-card[data-cat='event']::before {
  background: var(--cat-event);
}

.blog-page .blog-article-card[data-cat='clinic']::before {
  background: var(--cat-clinic);
}

.blog-page .blog-article-card[data-cat='staff']::before {
  background: var(--cat-staff);
}

.blog-page .blog-article-card[data-cat='general']::before {
  background: var(--cat-general);
}

.blog-page .article-cat {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}

.blog-page .blog-article-card[data-cat='notice'] .article-cat {
  color: var(--cat-notice);
}

.blog-page .blog-article-card[data-cat='event'] .article-cat {
  color: var(--cat-event);
}

.blog-page .blog-article-card[data-cat='clinic'] .article-cat {
  color: var(--cat-clinic);
}

.blog-page .blog-article-card[data-cat='staff'] .article-cat {
  color: var(--cat-staff);
}

.blog-page .blog-article-card[data-cat='general'] .article-cat {
  color: var(--cat-general);
}

.blog-page .article-title {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.blog-page .article-excerpt {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 22px;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.blog-page .article-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.blog-page .article-source {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.blog-page .article-source .media {
  font-weight: 600;
  font-size: 13px;
  color: var(--navy);
}

.blog-page .article-source .date {
  font-size: 10.5px;
  color: var(--muted);
}

.blog-page .article-read {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.blog-page .blog-article-card:hover .article-read {
  gap: 6px;
}

.blog-page .blog-article-card.is-hidden {
  display: none !important;
}

/* ============ Image lightbox ============ */
body.blog-lightbox-open {
  overflow: hidden;
}

.blog-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.blog-image-lightbox[hidden] {
  display: none !important;
}

.blog-image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.82);
  backdrop-filter: blur(4px);
}

.blog-image-lightbox__dialog {
  position: relative;
  z-index: 1;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
}

.blog-image-lightbox__close {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.blog-image-lightbox__close:hover,
.blog-image-lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  outline: none;
}

.blog-image-lightbox__figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.blog-image-lightbox__img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
}

.blog-page .blog-empty {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  padding: 48px 0;
}

.blog-page .blog-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-page .blog-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-page .blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
}

.blog-page .blog-pagination .page-numbers.current {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.blog-page .blog-pagination .page-numbers:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.blog-page .blog-pagination .page-numbers.current:hover {
  color: #fff;
}

.blog-page .blog-pagination .page-numbers.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.blog-page .blog-pagination .page-numbers.prev,
.blog-page .blog-pagination .page-numbers.next {
  min-width: auto;
  padding: 0 14px;
}

/* ============ CTA (archive-research.php 스타일, blog-cta 클래스 유지) ============ */
.blog-page .blog-cta-section {
  padding: 96px 0;
  text-align: center;
  background: var(--navy);
  color: var(--paper);
}

.blog-page .blog-cta-eyebrow {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.blog-page .blog-cta-title {
  font-family:
    'Pretendard',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 auto 20px;
}

.blog-page .blog-cta-title em {
  font-family: inherit;
  color: var(--gold);
}

.blog-page .blog-cta-sub {
  font-size: 18px;
  color: rgba(251, 249, 244, 0.75);
  margin: 0 auto 36px;
  line-height: 1.65;
}

.blog-page .blog-cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.blog-page .blog-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.2s;
  text-decoration: none;
}

.blog-page .blog-cta-btn.primary {
  background: var(--gold);
  color: var(--navy) !important;
}

.blog-page .blog-cta-btn.primary:hover {
  background: #c9af70;
  color: var(--navy) !important;
}

.blog-page .blog-cta-btn.ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(251, 249, 244, 0.3);
}

.blog-page .blog-cta-btn.ghost:hover {
  border-color: var(--gold);
  color: var(--gold) !important;
}

body.blog-archive .site-header {
  background: rgba(251, 249, 244, 0.92);
}

@media (max-width: 1100px) {
  .blog-page .blog-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .blog-page .blog-hero {
    padding: 48px 0 56px;
  }

  .blog-page .blog-articles-section {
    padding: 56px 0 80px;
  }

  body.blog-archive .main-nav {
    background: rgba(251, 249, 244, 0.92);
  }
}

/* ============ Tablet & mobile layout (page-research.css 기준) ============ */
@media (max-width: 768px) {
  .blog-page .article-meta .container {
    flex-direction: column;
    align-items: flex-start;
    font-size: 13px;
    gap: 8px;
    letter-spacing: 0.06em;
  }

  .blog-page .breadcrumb {
    line-height: 1.5;
  }

  .blog-page .blog-hero {
    padding: 40px 0 56px;
  }

  .blog-page .blog-hero-eyebrow {
    letter-spacing: 0.12em;
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 1.5;
  }

  .blog-page .blog-hero-title {
    font-size: clamp(28px, 7.5vw, 40px);
    margin-bottom: 16px;
  }

  .blog-page .blog-hero-lede {
    font-size: 16px;
    line-height: 1.65;
  }

  .blog-page .blog-category-bar {
    padding: 16px 0;
    top: 60px;
  }

  .blog-page .blog-category-bar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .blog-page .blog-category-bar-scroll {
    width: 100%;
    align-self: stretch;
  }

  .blog-page .blog-category-bar-inner {
    gap: 8px;
  }

  .blog-page .blog-cat-label {
    font-size: 11px;
  }

  .blog-page .blog-cat-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .blog-page .blog-articles-section {
    padding: 48px 0 72px;
  }

  .blog-page .blog-articles-grid {
    gap: 14px;
  }

  .blog-page .blog-article-card {
    padding: 22px 18px 20px;
  }

  .blog-page .blog-article-card:hover {
    transform: none;
  }

  .blog-page .article-cat {
    margin-bottom: 12px;
  }

  .blog-page .article-title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .blog-page .article-excerpt {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .blog-page .article-meta-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .blog-page .article-source .media {
    font-size: 12px;
  }

  .blog-page .article-read {
    font-size: 11px;
  }

  .blog-page .blog-pagination {
    margin-top: 32px;
  }

  .blog-page .blog-cta-section {
    padding: 64px 0;
  }

  .blog-page .blog-cta-sub {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .blog-page .blog-cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .blog-page .blog-cta-btn {
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
  }
}

@media (max-width: 540px) {
  .blog-page .blog-articles-grid {
    grid-template-columns: 1fr;
  }
}
