/* 작업사례 & 관리팁 (블로그) — 정적 HTML 페이지 전용 스타일.
   theme.css(브랜드 토큰·Nav·Footer)를 그대로 쓰고, 여기서는 블로그 레이아웃만 추가.
   SEO를 위해 글은 모두 정적 HTML 텍스트. JS는 스크롤 등장·필터·모바일 메뉴 보조용. */

/* ---- 아이콘 ---- */
.ic { display: inline-block; fill: currentColor; flex: 0 0 auto; }

/* ---- 블로그 헤더(딥네이비 밴드) ---- */
.blog-hero {
  position: relative; overflow: hidden; background: var(--navy-900); color: #fff;
  padding: clamp(128px, 17vw, 184px) 0 clamp(52px, 8vw, 76px);
}
.blog-hero-bg { position: absolute; inset: 0; z-index: 0; opacity: .5; }
.blog-hero-bg image-slot { width: 100%; height: 100%; display: block; }
.blog-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(7,27,46,.72), rgba(7,27,46,.86)),
    radial-gradient(120% 100% at 12% 10%, rgba(46,201,187,.16), transparent 55%);
}
.blog-hero .wrap { position: relative; z-index: 2; }
.blog-hero .eyebrow { color: var(--mint-400); }
.blog-hero .eyebrow::before { background: var(--mint-400); }
.blog-hero h1 {
  font-family: var(--font-brand); font-weight: 800; letter-spacing: -0.035em;
  font-size: clamp(32px, 5.4vw, 56px); line-height: 1.16; margin: 16px 0 0; color: #fff; text-wrap: balance;
}
.blog-hero .sub { margin: 18px 0 0; font-size: clamp(16px, 2vw, 19px); line-height: 1.7; color: rgba(255,255,255,.78); max-width: 40ch; }

/* ---- 크럼(글 상세) ---- */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.6); margin-bottom: 22px; }
.crumb a { color: rgba(255,255,255,.6); text-decoration: none; }
.crumb a:hover { color: var(--mint-400); }
.crumb .sep { opacity: .5; }
.crumb .cur { color: #fff; }

/* ---- 카테고리 필터 탭 ---- */
.blog-body { padding: clamp(44px, 6vw, 68px) 0 clamp(80px, 10vw, 116px); }
.blog-filter { display: flex; flex-wrap: wrap; gap: 10px; }
.blog-tab {
  border: 1px solid var(--line-normal-strong); background: #fff; color: var(--label-neutral);
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em;
  padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.blog-tab:hover { border-color: var(--mint-500); color: var(--mint-600); }
.blog-tab.on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* ---- 카드 그리드 ---- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (max-width: 580px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-normal-neutral); text-decoration: none; color: inherit;
  transition: box-shadow .18s ease, transform .18s ease;
}
.post-card:hover { box-shadow: 0 16px 38px rgba(7,27,46,.14); transform: translateY(-4px); }
.post-thumb { position: relative; width: 100%; aspect-ratio: 16 / 10; background: var(--mint-soft); }
.post-thumb image-slot { width: 100%; height: 100%; display: block; }
.post-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 12px; font-weight: 700; letter-spacing: -0.01em; padding: 6px 12px; border-radius: 999px; color: #fff;
  box-shadow: 0 4px 12px rgba(7,27,46,.2);
}
.post-badge.case { background: var(--navy-700); }
.post-badge.tip { background: var(--mint-500); }
.post-info { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-title { font-family: var(--font-brand); font-weight: 700; letter-spacing: -0.02em; color: var(--navy-800); font-size: 19px; line-height: 1.4; margin: 0; word-break: keep-all; }
.post-excerpt {
  margin: 12px 0 0; font-size: 14.5px; line-height: 1.62; color: var(--label-neutral); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-date { margin-top: 18px; font-size: 12.5px; color: var(--label-assistive); font-weight: 600; letter-spacing: .01em; }

/* '더 보기' */
.blog-more { display: flex; justify-content: center; margin-top: 48px; }
.more-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 15px 30px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-normal-strong); color: var(--navy-800);
  font-family: var(--font-sans); font-size: 15.5px; font-weight: 700; cursor: pointer; transition: all .15s ease;
}
.more-btn:hover { border-color: var(--mint-500); color: var(--mint-600); }
.more-btn .ic { width: 15px; height: 15px; }

.filter-empty { display: none; text-align: center; padding: 60px 0; color: var(--label-alternative); font-size: 15px; }

/* ============ 글 상세 ============ */
/* 헤더(딥네이비) */
.article-hero { padding: clamp(120px, 16vw, 168px) 0 clamp(36px, 5vw, 52px); }
.article-hero .a-badge {
  display: inline-block; font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 999px; color: #fff; letter-spacing: -0.01em;
}
.a-badge.case { background: var(--navy-600); }
.a-badge.tip { background: var(--mint-500); }
.article-hero h1 {
  font-family: var(--font-brand); font-weight: 800; letter-spacing: -0.035em;
  font-size: clamp(28px, 4.6vw, 46px); line-height: 1.28; margin: 18px 0 0; color: #fff; text-wrap: balance; word-break: keep-all; max-width: 22ch;
}
.article-meta { margin-top: 20px; display: flex; align-items: center; gap: 14px; font-size: 14px; color: rgba(255,255,255,.62); }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.4); }

/* 대표 이미지 */
.article-cover { background: #fff; }
.article-cover .wrap { max-width: 980px; }
.article-cover-inner {
  margin-top: -60px; position: relative; z-index: 3; border-radius: 20px; overflow: hidden;
  aspect-ratio: 16 / 9; box-shadow: 0 26px 60px rgba(7,27,46,.24); background: var(--mint-soft);
}
.article-cover-inner image-slot { width: 100%; height: 100%; display: block; }
@media (max-width: 720px) { .article-cover-inner { margin-top: -36px; border-radius: 16px; } }

/* 본문 prose */
.article-wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.prose { padding: clamp(44px, 6vw, 64px) 0 clamp(48px, 7vw, 72px); color: var(--ink); }
.prose > * + * { margin-top: 26px; }
.prose p { font-size: 18px; line-height: 1.85; color: #24384c; margin: 0; word-break: keep-all; text-wrap: pretty; }
.prose .lead { font-size: 20px; line-height: 1.75; color: var(--navy-700); font-weight: 500; }
.prose h2 {
  font-family: var(--font-brand); font-weight: 800; letter-spacing: -0.03em; color: var(--navy-800);
  font-size: clamp(24px, 3.4vw, 30px); line-height: 1.32; margin: 52px 0 0; padding-top: 6px; scroll-margin-top: 90px; word-break: keep-all;
}
.prose h2 + * { margin-top: 18px; }
.prose h3 {
  font-family: var(--font-brand); font-weight: 700; letter-spacing: -0.02em; color: var(--navy-700);
  font-size: clamp(19px, 2.6vw, 22px); line-height: 1.4; margin: 40px 0 0; word-break: keep-all;
}
.prose h3 + * { margin-top: 14px; }
.prose strong { color: var(--navy-800); font-weight: 700; }
.prose a { color: var(--mint-600); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--mint-500); }
.prose ul, .prose ol { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.prose li { position: relative; padding-left: 30px; font-size: 17.5px; line-height: 1.72; color: #24384c; word-break: keep-all; }
.prose ul li::before {
  content: ""; position: absolute; left: 6px; top: 11px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint-500);
}
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; }
.prose ol li::before {
  content: counter(li); position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint-soft); color: var(--mint-600); font-family: var(--font-brand); font-weight: 800; font-size: 12.5px;
  display: grid; place-items: center;
}

/* 인용구 */
.prose blockquote {
  margin: 40px 0 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--mint-500);
  font-family: var(--font-brand); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(20px, 2.8vw, 25px); line-height: 1.5; color: var(--navy-700); word-break: keep-all;
}
.prose blockquote cite { display: block; margin-top: 12px; font-family: var(--font-sans); font-weight: 600; font-style: normal; font-size: 14.5px; color: var(--label-alternative); }

/* 본문 사진 + 캡션 */
.prose figure { margin: 40px 0 0; }
.prose figure image-slot { width: 100%; aspect-ratio: 16 / 10; display: block; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-normal-neutral); background: var(--mint-soft); }
.prose figcaption { margin-top: 12px; font-size: 13.5px; color: var(--label-alternative); text-align: center; line-height: 1.5; }

/* 전후 비교 */
.ba-compare { margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .ba-compare { grid-template-columns: 1fr; } }
.ba-item { position: relative; }
.ba-item image-slot { width: 100%; aspect-ratio: 4 / 3; display: block; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-normal-neutral); background: var(--mint-soft); }
.ba-tag { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 5px 12px; border-radius: 8px; color: #fff; }
.ba-item.before .ba-tag { background: rgba(11,37,64,.86); }
.ba-item.after .ba-tag { background: var(--mint-500); }

/* ---- 글 하단 ---- */
.article-foot { border-top: 1px solid var(--line-normal-neutral); padding: 40px 0 0; margin-top: 56px; }
.back-list {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 15px; color: var(--navy-800);
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line-normal-strong); transition: all .15s ease;
}
.back-list:hover { border-color: var(--mint-500); color: var(--mint-600); }
.back-list .ic { width: 16px; height: 16px; }

.related { background: var(--mint-tint); padding: clamp(56px, 8vw, 88px) 0; }
.related h2 { font-family: var(--font-brand); font-weight: 800; letter-spacing: -0.03em; color: var(--navy-800); font-size: clamp(22px, 3.2vw, 30px); margin: 0 0 28px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .related-grid { grid-template-columns: 1fr; } .related-grid .post-card:nth-child(3) { display: none; } }

/* 예약 유도 배너 */
.book-banner {
  position: relative; overflow: hidden; border-radius: 22px; margin-top: 40px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: #fff;
  padding: clamp(36px, 5vw, 52px); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.book-banner::before { content: ""; position: absolute; width: 320px; height: 320px; right: -100px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(46,201,187,.28), transparent 70%); }
.book-banner-txt { position: relative; z-index: 1; }
.book-banner h3 { font-family: var(--font-brand); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(22px, 3.4vw, 30px); line-height: 1.3; margin: 0; }
.book-banner p { margin: 10px 0 0; color: rgba(255,255,255,.78); font-size: 15.5px; line-height: 1.6; }
.book-banner .book-cta {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  background: var(--mint-500); color: #fff; text-decoration: none; font-weight: 700; font-size: 17px;
  height: 56px; padding: 0 30px; border-radius: 14px; transition: background .15s ease;
}
.book-banner .book-cta:hover { background: var(--mint-600); }
.book-banner .book-cta .ic { width: 20px; height: 20px; }
