/* ---------- 블로그 글 페이지 스타일 ---------- */
/* 공용 헤더/푸터는 ildangongbu-header.css 참조 */

.blog-post {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  color: #333;
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.85;
}

.blog-post .post-header {
  text-align: center;
  padding: 1rem 0 2rem;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 2.5rem;
}

.blog-post .post-header .category-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #ec174f;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.blog-post .post-header h1 {
  font-size: 2.1rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 1rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.blog-post .post-header .meta {
  font-size: 0.9rem;
  color: #888;
  margin: 0;
}

.blog-post .post-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ec174f;
  display: inline-block;
}

.blog-post .post-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin: 2rem 0 0.75rem;
}

.blog-post .post-body p {
  margin: 0 0 1.1rem;
  color: #333;
  font-size: 1rem;
}

.blog-post .post-body ul,
.blog-post .post-body ol {
  padding-left: 1.5rem;
  margin: 0 0 1.2rem;
}

.blog-post .post-body li {
  margin-bottom: 0.5rem;
}

.blog-post .post-body a {
  color: #ec174f;
  text-decoration: none;
  border-bottom: 1px solid rgba(236, 23, 79, 0.3);
}

.blog-post .post-body a:hover {
  border-bottom-color: #ec174f;
}

.blog-post .post-body strong {
  font-weight: 700;
  color: #222;
}

.blog-post .post-body em {
  font-style: italic;
  color: #555;
}

.blog-post .post-body code {
  background: #f5f7fa;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: 'SFMono-Regular', Menlo, monospace;
  font-size: 0.88em;
  color: #c81144;
}

.blog-post .post-body pre {
  background: #fafbfc;
  border: 1px solid #eef0f3;
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.25rem 0;
}

.blog-post .post-body pre code {
  background: none;
  padding: 0;
  color: #333;
  font-size: 0.9em;
}

.blog-post .post-body blockquote {
  border-left: 4px solid #ec174f;
  background: #fafbfc;
  padding: 0.75rem 1.25rem;
  margin: 1.25rem 0;
  border-radius: 0 8px 8px 0;
  color: #555;
}

.blog-post .post-body blockquote p {
  margin: 0;
}

.blog-post .post-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.blog-post .post-body th,
.blog-post .post-body td {
  border: 1px solid #eef0f3;
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.blog-post .post-body th {
  background: #fafbfc;
  font-weight: 700;
  color: #222;
}

.blog-post .post-body hr {
  border: 0;
  border-top: 1px solid #eef0f3;
  margin: 2rem 0;
}

/* ---------- CTA (단어 페이지와 동일: 텍스트 → 스크린샷 슬라이더 → 버튼) ---------- */
.blog-post .cta {
  background: linear-gradient(135deg, #ec174f, #c81144);
  color: #fff;
  padding: 2.5rem 1.5rem;
  border-radius: 16px;
  margin-top: 3rem;
  text-align: center;
}

.blog-post .cta h2 {
  color: #fff;
  border-bottom-color: #fff;
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.blog-post .cta p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.blog-post .cta-slider {
  position: relative;
  margin: 1.75rem auto;
  max-width: 100%;
}

.blog-post .cta-slider-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 1rem;
  scrollbar-width: none;
}

.blog-post .cta-slider-track::-webkit-scrollbar {
  display: none;
}

.blog-post .cta-slider-track img {
  flex: 0 0 auto;
  width: 220px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
  scroll-snap-align: center;
  display: block;
  background: #fff;
}

.blog-post .cta-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #ec174f;
  font-weight: 700;
  z-index: 2;
  transition: opacity 0.2s ease, transform 0.15s ease;
  padding: 0;
  line-height: 1;
}

.blog-post .cta-slider-btn:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.blog-post .cta-slider-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.blog-post .cta-slider-btn-prev { left: 0.5rem; }
.blog-post .cta-slider-btn-next { right: 0.5rem; }

.blog-post .cta .store-buttons {
  display: inline-flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-post .cta .store-buttons img {
  height: 48px;
  width: auto;
}

@media (max-width: 720px) {
  .blog-post .cta-slider-track img {
    width: 180px;
  }
}

@media (max-width: 600px) {
  .blog-post .post-header h1 {
    font-size: 1.6rem;
  }
  .blog-post .post-body h2 {
    font-size: 1.3rem;
  }
}

/* ---------- 블로그 인덱스 ---------- */
.blog-index {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  font-family: 'Noto Sans KR', sans-serif;
  color: #333;
}

.blog-index .page-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.blog-index .page-title h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 0.5rem;
}

.blog-index .page-title p {
  color: #666;
  font-size: 1.05rem;
  margin: 0;
}

.blog-index .post-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}

.blog-index .post-list li {
  margin: 0;
}

.blog-index .post-card {
  display: block;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
}

.blog-index .post-card:hover {
  border-color: #ec174f;
  background: #fafbfc;
  transform: translateY(-1px);
}

.blog-index .post-card .category-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: #ec174f;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.blog-index .post-card .post-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 0.4rem;
  line-height: 1.4;
}

.blog-index .post-card .post-desc {
  font-size: 0.95rem;
  color: #555;
  margin: 0 0 0.5rem;
  line-height: 1.6;
}

.blog-index .post-card .post-meta {
  font-size: 0.8rem;
  color: #888;
}

.blog-index .empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  color: #888;
  background: #fafbfc;
  border: 1px dashed #d8dde3;
  border-radius: 12px;
}

.blog-index .cta-bar {
  margin-top: 3rem;
  background: linear-gradient(135deg, #ec174f, #c81144);
  color: #fff;
  padding: 1.75rem 1.5rem;
  border-radius: 12px;
  text-align: center;
}

.blog-index .cta-bar h3 {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.blog-index .cta-bar p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.blog-index .cta-bar .store-buttons {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-index .cta-bar .store-buttons img {
  height: 42px;
  width: auto;
}
