/* ===================================================
   키움머니기프트 — 블로그 상세 페이지 전용 CSS
   =================================================== */

/* ---------- 브레드크럼 ---------- */
.breadcrumb {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-light);
  flex-wrap: wrap;
}
.breadcrumb-inner a {
  color: var(--text-light);
  transition: color 0.2s;
}
.breadcrumb-inner a:hover { color: var(--primary); }
.breadcrumb-sep {
  color: var(--border);
  font-size: 0.75rem;
}
.breadcrumb-current {
  color: var(--text-gray);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 포스트 히어로 ---------- */
.post-hero {
  background: linear-gradient(135deg, #0d8a6a 0%, #086149 55%, #053b2c 100%);
  padding: 64px 0 60px;
  position: relative;
  overflow: hidden;
}
.post-hero::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 340px;
  height: 340px;
  background: rgba(244,162,36,0.09);
  border-radius: 50%;
  pointer-events: none;
}
.post-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}
.post-category-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}
.post-title {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}
.post-meta-item i { font-size: 0.75rem; color: var(--accent); }

/* ---------- 포스트 본문 영역 ---------- */
.post-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}
.post-figure {
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.post-figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- 포스트 본문 타이포 ---------- */
.post-body { }
.post-lead {
  font-size: 1.05rem;
  color: var(--text-gray);
  line-height: 1.85;
  margin-bottom: 32px;
  padding: 20px 24px;
  background: var(--primary-light);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}
.post-body h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  border-left: 5px solid var(--primary);
  padding-left: 16px;
  margin: 44px 0 18px;
  line-height: 1.4;
}
.post-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 28px 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.post-body h3::before {
  content: '●';
  color: var(--secondary);
  font-size: 0.6rem;
}
.post-body p {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.85;
  margin-bottom: 16px;
}
.post-body strong { color: var(--text-dark); font-weight: 700; }

/* 포스트 리스트 */
.post-list {
  margin: 16px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-list li {
  font-size: 0.93rem;
  color: var(--text-gray);
  padding-left: 26px;
  position: relative;
  line-height: 1.65;
}
.post-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* 포스트 테이블 */
.post-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.post-table th {
  background: var(--primary);
  color: #fff;
  padding: 13px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.88rem;
}
.post-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-gray);
  line-height: 1.55;
}
.post-table tr:last-child td { border-bottom: none; }
.post-table tr:nth-child(even) td { background: var(--bg-light); }

/* 포스트 콜아웃 */
.post-callout {
  background: var(--primary-light);
  border: 1px solid rgba(13,138,106,0.2);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 22px 0;
}
.post-callout.blue {
  background: #e8f4ff;
  border-color: #3b82f6;
  border-left-color: #3b82f6;
}
.post-callout.warning {
  background: #fff8e6;
  border-color: var(--secondary);
  border-left-color: var(--secondary);
}
.post-callout p {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.75;
  margin: 0;
}
.post-callout strong { color: var(--primary-dark); }
.post-callout.blue strong { color: #2563eb; }
.post-callout.warning strong { color: var(--secondary-dark); }

/* 인라인 CTA */
.post-inline-cta {
  background: linear-gradient(135deg, #0d8a6a 0%, #053b2c 100%);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  margin: 40px 0;
}
.post-inline-cta h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.post-inline-cta h3::before { display: none; }
.post-inline-cta p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 22px;
}
.post-cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.post-cta-call {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 13px 28px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(244,162,36,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-cta-call:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(244,162,36,0.5); }
.post-cta-sms {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.3);
  transition: background 0.2s;
}
.post-cta-sms:hover { background: var(--primary-dark); }

/* ---------- 관련 글 섹션 ---------- */
.related-section {
  background: var(--bg-light);
  padding: 56px 0 64px;
  border-top: 1px solid var(--border);
}
.related-section .section-header { margin-bottom: 32px; }
.related-section .section-title { font-size: 1.35rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}
.related-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.related-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--primary-light);
}
.related-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.related-card:hover .related-card-thumb img { transform: scale(1.05); }
.related-card-body { padding: 14px 16px 16px; }
.related-card-cat {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.related-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.related-card:hover .related-card-title { color: var(--primary); }

/* ---------- 반응형 ---------- */
@media (max-width: 768px) {
  .post-title { font-size: 1.45rem; }
  .post-hero { padding: 48px 0 44px; }
  .post-wrap { padding: 32px 16px 48px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .post-body h2 { font-size: 1.1rem; }
  .post-inline-cta { padding: 24px 20px; }
  .post-cta-call, .post-cta-sms { padding: 11px 22px; font-size: 0.88rem; }
}
@media (max-width: 480px) {
  .post-title { font-size: 1.25rem; }
  .related-grid { grid-template-columns: 1fr; }
  .post-meta { gap: 10px; }
}
