/* ==========================================================
   blog.css — 블로그 전용 스타일
   로드 대상: blog/*.html
   (base.css + landing.css 이후 로드)
   ========================================================== */

/* ===== BLOG HERO ===== */
/* 기본값 = 모바일 */
.blog-hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: var(--white);
  padding: 36px 16px 40px;
  text-align: center;
}

.blog-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.blog-category {
  display: inline-block;
  padding: 4px 14px;
  background: var(--orange);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.blog-date {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* 기본값 = 모바일 */
.blog-hero h1 {
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.45;
  margin-bottom: 14px;
  word-break: keep-all;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* 기본값 = 모바일 */
.blog-intro {
  font-size: 0.97rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
  word-break: keep-all;
  color: var(--text);
}

/* 히어로 안에서만 흰색 */
.blog-hero .blog-intro {
  color: rgba(255,255,255,0.75);
}

/* ===== BLOG SECTIONS ===== */
/* 기본값 = 모바일 */
.blog-section,
.blog-section-alt {
  background: var(--white);
  padding: 32px 16px;
}

.blog-section-alt {
  background: #fafafa;
}

/* 본문 컬럼 780px 제한 */
.blog-section .section-inner,
.blog-section-alt .section-inner {
  max-width: 780px;
}

/* 연속 섹션 구분선 */
.blog-section + .blog-section,
.blog-section-alt + .blog-section,
.blog-section + .blog-section-alt {
  border-top: 1px solid var(--gray-200);
}

/* ===== BLOG TYPOGRAPHY ===== */
/* 기본값 = 모바일 */
.blog-section p,
.blog-section-alt p {
  font-size: 1.05rem;
  line-height: 1.95;
  color: #333;
  margin-bottom: 1.1em;
  word-break: keep-all;
}

/* 기본값 = 모바일 */
.blog-section h2.section-title,
.blog-section-alt h2.section-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--navy);
  padding-bottom: 10px;
  border-bottom: 3px solid var(--orange);
  margin-bottom: 20px;
  word-break: keep-all;
  display: block;
}

/* 기본값 = 모바일 */
.blog-section h3,
.blog-section-alt h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 22px 0 10px;
}

.blog-section ul,
.blog-section-alt ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 24px;
}

/* 기본값 = 모바일 */
.blog-section ul li,
.blog-section-alt ul li {
  padding-left: 18px;
  position: relative;
  font-size: 1.02rem;
  line-height: 1.85;
  color: #333;
  word-break: keep-all;
}

.blog-section ul li::before,
.blog-section-alt ul li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--orange);
  font-weight: 900;
}

/* ===== BLOG COMPARE GRID ===== */
/* 기본값 = 모바일: 1열 */
.blog-compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 28px 0;
}

/* 기본값 = 모바일 */
.blog-compare-card {
  border-radius: 12px;
  padding: 18px 16px;
  font-size: 0.93rem;
  line-height: 1.75;
}

.blog-compare-card ul {
  margin: 0;
  gap: 8px;
}

.blog-compare-label {
  font-weight: 900;
  font-size: 0.95rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.blog-compare-bad {
  background: #fff5f5;
  border: 1px solid #ffc9c9;
}

.blog-compare-bad .blog-compare-label {
  color: #c0392b;
}

.blog-compare-good {
  background: #f0f6ff;
  border: 2px solid var(--navy);
}

.blog-compare-good .blog-compare-label {
  color: var(--navy);
}

/* ===== HIGHLIGHT BOX ===== */
/* 기본값 = 모바일 */
.blog-highlight-box {
  background: #fff8f0;
  border-left: 4px solid var(--orange);
  border-radius: 0 8px 8px 0;
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 0.98rem;
  color: var(--gray-800);
  line-height: 1.8;
  word-break: keep-all;
}

/* ===== SPEC TABLE WRAP ===== */
.blog-spec-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin: 28px 0;
}

/* 테이블 스크롤 힌트 (모바일에서만 표시) */
.blog-spec-table-wrap::before {
  content: "← 좌우로 밀어 전체 보기";
  display: block;
  text-align: right;
  font-size: 0.78rem;
  color: var(--gray-600);
  padding: 0 4px 6px;
}

/* ===== ARTICLE STRUCTURE (연결방법 블로그 형식) ===== */
/* 기본값 = 모바일 */
.blog-main {
  background: var(--white);
  padding: 28px 16px 52px;
}

.blog-inner {
  max-width: 780px;
  margin: 0 auto;
}

.blog-article {
  font-size: 1.02rem;
  line-height: 1.9;
  color: #333;
  word-break: keep-all;
}

/* 기본값 = 모바일 */
.article-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--gray-200);
}

/* 기본값 = 모바일 */
.article-header h1 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 14px;
  word-break: keep-all;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* 기본값 = 모바일 */
.article-section {
  margin-bottom: 36px;
  padding: 0;  /* section 전역 패딩 덮어쓰기 방지 */
}

.article-section h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 900;
  color: var(--navy);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--orange);
  display: block;
  word-break: keep-all;
}

.article-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 22px 0 10px;
}

/* 기본값 = 모바일 */
.article-section p {
  font-size: 1.05rem;
  line-height: 1.95;
  margin-bottom: 1.1em;
}

.article-list {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 24px;
}

/* 기본값 = 모바일 */
.article-list li {
  padding-left: 18px;
  position: relative;
  line-height: 1.85;
  font-size: 1.02rem;
}

.article-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--orange);
  font-weight: 900;
}

/* 기본값 = 모바일 */
.article-conclusion {
  background: var(--gray-100);
  border-radius: 10px;
  padding: 22px 16px;
  margin-top: 16px;
}

/* 기본값 = 모바일: column */
.article-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-cta .btn {
  width: 100%;
  justify-content: center;
  padding: 16px 20px;
  font-size: 1.05rem;
}

/* ===== GUIDE TIP ===== */
/* 기본값 = 모바일 */
.guide-tip {
  background: #eaf4ff;
  border-left: 4px solid var(--navy-light);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 0.97rem;
  color: var(--gray-800);
  line-height: 1.8;
}

/* ===== RELATED SECTION ===== */
/* 기본값 = 모바일 */
.related-section {
  background: var(--gray-100);
  padding: 32px 16px;
  border-top: 1px solid var(--gray-200);
}

.related-section .section-title {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.related-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 780px;
  margin: 0 auto;
}

/* 기본값 = 모바일 */
.related-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.97rem;
  min-height: 52px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.related-list li a:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ===== REVIEW CARD LIST (블로그 세로형) ===== */
.review-card-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.review-source {
  font-size: 0.85rem;
  color: var(--gray-600);
  text-align: right;
  margin-top: 4px;
}

/* ===== 유틸 ===== */
.section-white {
  background: var(--white);
}

/* ===== spec-card 색상 보호 (blog-section 내부) ===== */
/* blog-section h3 { color: navy } 가 spec-card h3 흰색을 덮는 현상 방지 */
.blog-section .spec-card h3,
.blog-section-alt .spec-card h3 {
  color: var(--white);
}

.blog-section .spec-card p,
.blog-section-alt .spec-card p {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* ===== DESKTOP — BLOG ===== */
@media (min-width: 769px) {
  .blog-hero {
    padding: 60px 20px 64px;
  }

  .blog-hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    line-height: 1.4;
    margin-bottom: 20px;
  }

  .blog-intro {
    font-size: 1.05rem;
    line-height: 1.85;
  }

  .blog-section,
  .blog-section-alt {
    padding: 56px 20px;
  }

  .blog-section p,
  .blog-section-alt p {
    font-size: 1.02rem;
    line-height: 1.9;
    margin-bottom: 1.2em;
  }

  .blog-section h2.section-title,
  .blog-section-alt h2.section-title {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    padding-bottom: 14px;
    margin-bottom: 28px;
    display: inline-block;
  }

  .blog-section h3,
  .blog-section-alt h3 {
    font-size: 1.08rem;
    margin: 32px 0 12px;
  }

  .blog-section ul li,
  .blog-section-alt ul li {
    font-size: 1rem;
    line-height: 1.8;
  }

  .blog-compare-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .blog-compare-card {
    padding: 22px 20px;
  }

  .blog-highlight-box {
    padding: 18px 22px;
    margin: 28px 0;
  }

  .blog-spec-table-wrap::before {
    display: none;
  }

  .blog-main {
    padding: 52px 20px 64px;
  }

  .article-header {
    margin-bottom: 40px;
    padding-bottom: 28px;
  }

  .article-header h1 {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    line-height: 1.4;
  }

  .article-section {
    margin-bottom: 52px;
  }

  .article-section h2 {
    padding-bottom: 12px;
    margin: 0 0 18px;
    display: inline-block;
  }

  .article-section h3 {
    margin: 28px 0 12px;
  }

  .article-section p {
    font-size: 1.02rem;
    line-height: 1.9;
    margin-bottom: 1.2em;
  }

  .article-list li {
    line-height: 1.8;
    font-size: 1rem;
  }

  .article-conclusion {
    padding: 32px;
    border-radius: 14px;
  }

  .article-cta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }

  .article-cta .btn {
    width: auto;
    padding: 14px 32px;
    font-size: 1rem;
  }

  .guide-tip {
    font-size: 0.95rem;
    padding: 16px 20px;
  }

  .related-section {
    padding: 48px 20px;
  }

  .related-list li a {
    padding: 14px 20px;
    font-size: 0.93rem;
    min-height: auto;
  }
}

/* ===== blog/index.html 전용 스타일 ===== */
.blog-list-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}
/* 기본값 = 모바일 */
.blog-list-section h1 {
  font-size: 1.3rem;
  font-weight: 900;
  color: #1B3A6B;
  margin-bottom: 8px;
}
.blog-list-section .subtitle {
  color: #555;
  font-size: 1rem;
  margin-bottom: 40px;
}
/* blog/index.html 섹션 컨테이너 — blog.css의 .blog-category 배지 스타일을 덮어씀 */
.blog-list-section .blog-category {
  display: block;
  padding: 0;
  background: none;
  color: inherit;
  border-radius: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  margin-bottom: 48px;
}
.blog-list-section .blog-category h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #E05C00;
  border-left: 4px solid #E05C00;
  padding-left: 12px;
  margin-bottom: 16px;
}
.blog-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* 기본값 = 모바일 */
.blog-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 14px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.blog-card:hover {
  box-shadow: 0 4px 16px rgba(27,58,107,0.10);
  border-color: #1B3A6B;
}
.blog-card-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #1B3A6B;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.blog-card-body {
  flex: 1;
}
.blog-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: #1B3A6B;
  margin-bottom: 4px;
}
.blog-card-desc {
  font-size: 0.88rem;
  color: #666;
}
.blog-card-arrow {
  color: #E05C00;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.blog-card-date {
  font-size: 0.78rem;
  color: #999;
  margin-top: 5px;
}
.back-home {
  display: inline-block;
  margin-bottom: 32px;
  color: #1B3A6B;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}
.back-home:hover { text-decoration: underline; }

@media (min-width: 601px) {
  .blog-list-section h1 { font-size: 1.7rem; }
  .blog-card { padding: 18px 20px; }
}

/* ===== LOTTE GUIDE — 비교표 ===== */
.lotte-guide-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.lotte-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.lotte-guide-thead-row {
  background: #1B3A6B;
  color: #fff;
}

.lotte-guide-th {
  padding: 12px 16px;
  text-align: left;
}

.lotte-guide-th-center {
  padding: 12px 16px;
  text-align: center;
}

.lotte-guide-th-highlight {
  padding: 12px 16px;
  text-align: center;
  background: #E05C00;
}

.lotte-guide-tr-odd {
  border-bottom: 1px solid #e9ecef;
}

.lotte-guide-tr-even {
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.lotte-guide-td {
  padding: 12px 16px;
}

.lotte-guide-td-center {
  padding: 12px 16px;
  text-align: center;
}

.lotte-guide-td-alpha {
  padding: 12px 16px;
  text-align: center;
  font-weight: 700;
  color: #E05C00;
}

.lotte-guide-td-alpha-plain {
  padding: 12px 16px;
  text-align: center;
  font-weight: 700;
}

/* ===== LOTTE GUIDE — 스펙 카드 그리드 ===== */
.lotte-guide-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.lotte-guide-spec-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.lotte-guide-spec-value {
  font-size: 2rem;
  font-weight: 900;
  color: #1B3A6B;
}

.lotte-guide-spec-label {
  font-size: 0.85rem;
  color: #555;
  margin-top: 4px;
}

/* ===== LOTTE GUIDE — CTA 하단 버튼 영역 ===== */
.lotte-guide-cta-naver {
  margin-top: 16px;
  text-align: center;
}

/* ===== blog/index.html CTA ===== */
.blog-index-cta {
  text-align: center;
  margin-top: 48px;
  padding: 32px;
  background: #f0f4ff;
  border-radius: 12px;
}
.blog-index-cta-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1B3A6B;
  margin-bottom: 16px;
}
