/* ==========================================================================
   EPI Blog styles — /blog/assets/css/blog.css
   기존 all.css / bootstrap.css / custom-bootstrap.css / style.css 뒤에 로드.
   블로그 전용 클래스(.blog-*)로 스코프를 좁혀 기존 사이트 CSS와 충돌을 방지한다.
   ========================================================================== */

/* --- 블로그 목록 (다크 섹션) ------------------------------------------------ */
#blog-list {
  background-color: #fff; /* 다른 페이지와 동일한 라이트 배경 */
  color: #212529;
  padding: 64px 0 96px;
}

@media (max-width: 991.9px) {
  #blog-list { padding: 40px 0 64px; }
}

.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-item {
  border-top: 1px solid #e9ecef;
}
.blog-item:first-child {
  border-top: 0;
}

/* 한 행 = 좌 이미지 + 우 텍스트, 전체가 링크 */
.blog-row {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 48px 0;
  text-decoration: none;
  color: inherit;
}

.blog-thumb {
  flex: 0 0 36%;
  max-width: 36%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background-color: #f1f1f1;
}
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.blog-row:hover .blog-thumb img {
  transform: scale(1.03);
}

.blog-body {
  flex: 1 1 auto;
  min-width: 0;
}
.blog-title {
  color: #02291C;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 20px;
  transition: color 0.2s ease;
}
.blog-row:hover .blog-title {
  color: #E77C64; /* EPI 포인트 코랄 */
}
.blog-excerpt {
  color: #495057;
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-date {
  display: block;
  color: #6c757d;
  font-size: 14px;
  letter-spacing: 0.3px;
}

/* 모바일: 세로 스택 (이미지 위 / 텍스트 아래) */
@media (max-width: 991.9px) {
  .blog-row {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 32px 0;
  }
  .blog-thumb {
    flex-basis: auto;
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }
  .blog-title { font-size: 22px; margin-bottom: 12px; }
  .blog-excerpt { font-size: 15px; -webkit-line-clamp: 2; margin-bottom: 16px; }
}

/* 빈 상태 (글이 없을 때) */
.blog-empty {
  color: #6c757d;
  text-align: center;
  padding: 80px 0;
  font-size: 17px;
}

/* --- 글 상세 (라이트) ------------------------------------------------------- */
/* 제목+날짜: 기능소개 페이지와 동일한 .container 너비 + 가운데 정렬 */
.blog-post-head {
  text-align: center;
  padding-top: 56px;
  margin-bottom: 40px;
}
.blog-post {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 96px;
}
.blog-post-title {
  color: #02291C;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 16px;
  text-align: center;      /* 제목 가운데 정렬 */
  word-break: keep-all;    /* 한글 단어 단위 줄바꿈 — 오른쪽 넘침 방지 */
  overflow-wrap: anywhere; /* 아주 긴 연속 문자열 대비 안전장치 */
}
.blog-post-meta {
  color: #6c757d;
  font-size: 15px;
  margin-bottom: 0;
  text-align: center; /* 날짜 가운데 정렬 */
}
.blog-hero {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
  background-color: #f1f1f1;
}
.blog-hero img { width: 100%; height: auto; display: block; }
.blog-content {
  color: #212529;
  font-size: 17px;
  line-height: 1.85;
  word-break: keep-all;
}
.blog-content h2 { font-size: 26px; font-weight: 700; color: #02291C; margin: 48px 0 16px; }
.blog-content h3 { font-size: 21px; font-weight: 700; color: #02291C; margin: 36px 0 12px; }
.blog-content p { margin: 0 0 24px; }
.blog-content ul, .blog-content ol { margin: 0 0 24px; padding-left: 28px; }
.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }
.blog-content li { margin: 8px 0; padding-left: 4px; }
.blog-content li::marker { color: #0C4A34; }
.blog-content blockquote { margin: 24px 0; padding: 12px 20px; border-left: 4px solid #0C4A34; background: #f6f8f7; color: #495057; border-radius: 0 8px 8px 0; }
.blog-content blockquote p { margin: 0; }
.blog-content a { color: #0C4A34; text-decoration: underline; }
.blog-content hr { border: 0; border-top: 1px solid #dee2e6; margin: 40px 0; }
.blog-content img { width: 100%; max-width: 100%; height: auto; display: block; border-radius: 12px; margin: 8px 0 32px; }
.blog-cta {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid #dee2e6;
  text-align: center;
}
@media (max-width: 991.9px) {
  .blog-post-head { padding-top: 36px; }
  .blog-post-title { font-size: 28px; }
  .blog-post { padding: 0 16px 64px; }
}

/* 샘플/준비중 표기 */
.blog-note {
  background: #F8F4EF;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 16px 20px;
  color: #6c757d;
  font-size: 15px;
  margin-bottom: 32px;
}
