/* =========================================
   blog 페이지 공통 스타일
   블로그 글 디자인
   ========================================= */

:root {
  --accent: #FF4D00;
  --accent-bg: #FFF0EB;
  --black: #111111;
  --white: #FFFFFF;
  --gray-300: #E5E5E5;
  --gray-400: #CCCCCC;
  --gray-500: #AAAAAA;
  --gray-600: #888888;
  --gray-700: #666666;
}
* { box-sizing: border-box; }
html, body { background: var(--black) !important; min-height: 100%; }
body {
  color: var(--white);
  font-family: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
main { padding-top: 100px; }
@media (max-width: 768px) {
  main { padding-top: 70px; }
}

/* 빵부스러기 */
.breadcrumb {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 32px 0;
  font-size: 12px;
  color: var(--gray-600);
}
.breadcrumb a { color: var(--gray-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--gray-700); margin: 0 8px; }

/* 글 헤더 */
.post-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 32px 32px;
}
.post-category {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.post-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid #2a2a2a;
}
.post-author {
  font-size: 14px;
  color: var(--gray-400);
  font-weight: 600;
}
.post-date {
  font-size: 13px;
  color: var(--gray-600);
}
.post-read-time {
  font-size: 13px;
  color: var(--gray-600);
}

/* 본문 */
.post-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px;
}
.post-lead {
  font-size: 18px;
  color: var(--gray-300);
  line-height: 1.8;
  margin-bottom: 32px;
  padding: 24px;
  background: #1a1a1a;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}
.post-content h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--white);
  margin: 48px 0 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.post-content h3 {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  color: var(--white);
  margin: 32px 0 12px;
}
.post-content p {
  font-size: 16px;
  color: var(--gray-300);
  line-height: 1.85;
  margin-bottom: 16px;
}
.post-content strong {
  color: var(--white);
  font-weight: 700;
}
.post-content em {
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
}
.post-content ul, .post-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.post-content li {
  font-size: 16px;
  color: var(--gray-300);
  line-height: 1.85;
  margin-bottom: 8px;
}
.post-content a {
  color: var(--accent);
  text-decoration: underline;
}
.callout {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 8px;
}
.callout strong {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.callout p { margin: 0; }

/* FAQ */
.post-faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px;
  border-top: 1px solid #2a2a2a;
}
.post-faq h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
}
.faq-item {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 12px;
}
.faq-item summary {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 24px;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--gray-300);
  line-height: 1.8;
}

/* CTA */
.post-cta {
  max-width: 760px;
  margin: 32px auto;
  padding: 48px 32px;
  background: var(--accent);
  border-radius: 16px;
  text-align: center;
}
.post-cta h3 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.post-cta p {
  color: rgba(255,255,255,0.92);
  margin-bottom: 24px;
  font-size: 15px;
}
.post-cta a {
  display: inline-block;
  padding: 16px 32px;
  background: var(--white);
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.2s;
}
.post-cta a:hover { transform: translateY(-2px); }

/* 작성자 박스 */
.author-box {
  max-width: 760px;
  margin: 32px auto;
  padding: 24px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.author-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}
.author-title {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.author-bio {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.6;
}

/* 관련 글 */
.related-posts {
  max-width: 760px;
  margin: 32px auto;
  padding: 32px;
  border-top: 1px solid #2a2a2a;
}
.related-posts h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.related-list {
  display: grid;
  gap: 12px;
}
.related-list a {
  display: block;
  padding: 16px 20px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  transition: border-color 0.2s;
}
.related-list a:hover { border-color: var(--accent); }
.related-list .cat {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.related-list .title {
  font-size: 15px;
  font-weight: 600;
}

/* ============================================
   블로그 목록 페이지 (blog/index.html)
   ============================================ */
.blog-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 31px 32px 60px;
}
.blog-list-header {
  padding: 48px 0 40px;
  text-align: center;
}
.blog-list-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.blog-list-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.2;
}
.blog-list-sub {
  font-size: 16px;
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
  word-break: keep-all;
}

.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0 56px;
}
@media (max-width: 1024px) {
  .blog-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
.blog-card {
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(255, 77, 0, 0.15);
}
.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.blog-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #222;
}
.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}
.blog-card-thumb--placeholder span {
  color: var(--gray-500);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.blog-card-body {
  padding: 24px 24px 28px;
}
.blog-card-cat {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(255, 77, 0, 0.12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.blog-card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-desc {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.65;
  margin: 0 0 16px;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-500);
}
.blog-card-divider { opacity: 0.5; }

@media (max-width: 768px) {
  .blog-list { padding: 0 20px 40px; }
  .blog-list-header { padding: 32px 0 24px; }
  .blog-list-sub { font-size: 14px; }
  .blog-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 28px 0 40px;
  }
  .blog-card-body { padding: 20px; }
  .blog-card-title { font-size: 17px; }
  .blog-card-desc { font-size: 13px; }
}

/* 본문 표 (law-table) */
.post-content .law-table-wrap {
  margin: 24px 0;
  overflow-x: auto;
}
.post-content .law-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  min-width: 560px;
}
.post-content .law-table thead {
  background: rgba(255, 77, 0, 0.12);
}
.post-content .law-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.post-content .law-table td {
  padding: 12px 14px;
  color: #ddd;
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.6;
  vertical-align: top;
}
.post-content .law-table td:first-child {
  font-weight: 600;
  color: #fff;
}
@media (max-width: 768px) {
  .post-content .law-table { font-size: 13px; min-width: 480px; }
  .post-content .law-table th,
  .post-content .law-table td { padding: 10px 12px; }
}

/* 체크리스트 */
.post-content .check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.post-content .check-list li {
  position: relative;
  padding: 8px 0 8px 32px;
  color: #ddd;
  line-height: 1.7;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
.post-content .check-list li::before {
  content: "☐";
  position: absolute;
  left: 4px;
  top: 8px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}
.post-content .check-list li:last-child { border-bottom: none; }

/* 본문 이미지 (figure + img) */
.post-content figure {
  margin: 32px 0;
  text-align: center;
}
.post-content figure img {
  width: 100%;
  height: auto;
  max-width: 720px;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}
.post-content figure figcaption {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 10px;
  text-align: center;
}
/* 본문 내 단독 img 태그도 대응 */
.post-content > img,
.post-content p > img {
  width: 100%;
  height: auto;
  max-width: 720px;
  border-radius: 12px;
  display: block;
  margin: 24px auto;
}

@media (max-width: 768px) {
  .post-header, .post-content, .post-faq, .related-posts { padding: 24px 20px; }
  .post-cta { padding: 36px 24px; margin: 24px 16px; }
  .author-box { flex-direction: column; text-align: center; margin: 24px 16px; }
  .post-content figure { margin: 24px 0; }
  .post-content figure img { border-radius: 8px; }
}
