/* =========================================================
   키움바로뱅크 — 블로그 상세 페이지 전용 스타일
   ========================================================= */

/* ── 브레드크럼 ── */
.breadcrumb {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}
.breadcrumb-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  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); }
.breadcrumb-current {
  color: var(--text-gray);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* ── 포스트 히어로 ── */
.post-hero {
  background: linear-gradient(135deg, #1e9bd4 0%, #1270a0 50%, #0a4a72 100%);
  padding: 60px 0 56px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.post-hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,215,94,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.post-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.post-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  backdrop-filter: blur(6px);
}
.post-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
}
.post-meta-item i { color: rgba(255,215,94,0.8); }

/* ── 포스트 본문 래퍼 ── */
.post-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* 포스트 대표 이미지 */
.post-figure {
  margin-bottom: 40px;
}
.post-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(30,155,212,0.18);
  object-fit: cover;
}

/* ── 포스트 본문 ── */
.post-body {
  line-height: 1.85;
}
.post-lead {
  font-size: 1.08rem;
  color: var(--text-gray);
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 34px;
  line-height: 1.8;
}
.post-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  border-left: 5px solid var(--primary);
  padding-left: 16px;
  margin: 44px 0 16px;
  line-height: 1.4;
}
.post-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 24px 0 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.post-body h3::before {
  content: '●';
  color: var(--primary);
  font-size: 10px;
}
.post-body p {
  font-size: 0.97rem;
  color: var(--text-gray);
  line-height: 1.85;
  margin-bottom: 16px;
}

/* 포스트 리스트 */
.post-list {
  margin: 16px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.post-list li {
  font-size: 0.95rem;
  color: var(--text-gray);
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px dashed var(--border);
  line-height: 1.6;
}
.post-list li:last-child { border-bottom: none; }
.post-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

/* 포스트 표 */
.post-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.post-table th {
  background: var(--primary);
  color: #fff;
  padding: 13px 16px;
  font-weight: 700;
  text-align: left;
}
.post-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-gray);
}
.post-table tr:nth-child(even) td { background: var(--bg-light); }
.post-table tr:hover td { background: var(--primary-light); transition: background 0.2s; }

/* 포스트 콜아웃 */
.post-callout {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 22px 0;
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.75;
}
.post-callout strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.post-callout.blue {
  background: #e8f4fd;
  border-color: #90cdf4;
  border-left-color: #3182ce;
}
.post-callout.blue strong { color: #2b6cb0; }
.post-callout.warning {
  background: #fffbeb;
  border-color: #fbd38d;
  border-left-color: var(--secondary);
}
.post-callout.warning strong { color: var(--secondary-dark); }

/* 포스트 인라인 CTA */
.post-inline-cta {
  background: linear-gradient(135deg, #1e9bd4 0%, #1270a0 50%, #0a4a72 100%);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}
.post-inline-cta::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255,215,94,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.post-inline-cta h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.post-inline-cta h3::before { display: none; }
.post-inline-cta p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 22px;
}
.post-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.post-cta-call {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 13px 28px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(244,162,36,0.4);
  transition: all 0.25s;
}
.post-cta-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(244,162,36,0.5);
}
.post-cta-sms {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.55);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 50px;
  transition: all 0.25s;
}
.post-cta-sms:hover {
  background: rgba(255,255,255,0.25);
  border-color: #fff;
}

/* ── 관련 글 섹션 ── */
.related-section {
  background: var(--bg-light);
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.related-section .container { max-width: 1180px; }
.related-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.related-title::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--primary);
  border-radius: 4px;
  display: inline-block;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.related-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  display: block;
}
.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.4s;
}
.related-card:hover .related-card-thumb img { transform: scale(1.06); }
.related-card-body {
  padding: 14px 16px 16px;
}
.related-card-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.related-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 반응형 ── */
@media (max-width: 768px) {
  .post-hero { padding: 44px 0 40px; }
  .post-title { font-size: 1.5rem; }
  .post-wrap { padding: 32px 20px 48px; }
  .post-body h2 { font-size: 1.15rem; }
  .post-callout { padding: 14px 16px; }
  .post-inline-cta { padding: 24px 20px; }
  .post-cta-btns { flex-direction: column; align-items: center; }
  .related-grid { grid-template-columns: 1fr; gap: 16px; }
  .breadcrumb-current { max-width: 160px; }
}

@media (max-width: 480px) {
  .post-meta { gap: 10px; }
  .related-grid { gap: 12px; }
}
