/* =====================================================
   블로그 페이지 스타일
   ===================================================== */

.blog_page {
  margin-top: 75px;
  background: #f8f9fa;
  min-height: 100vh;
}

/* 블로그 헤더 */
.blog_header {
  background: linear-gradient(135deg, #123671 0%, #0a74da 100%);
  color: #fff;
  padding: 60px 0 80px;
}

.blog_header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  font-size: 14px;
  opacity: 0.8;
}

.blog_header .breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.blog_header .breadcrumb a:hover {
  text-decoration: underline;
}

.blog_header .blog_title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
  word-break: keep-all;
}

.blog_header .blog_subtitle {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 25px;
}

.blog_header .blog_meta {
  display: flex;
  gap: 25px;
  font-size: 14px;
  opacity: 0.8;
}

.blog_header .blog_meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 블로그 콘텐츠 */
.blog_content {
  padding: 0 0 80px;
  margin-top: -40px;
}

.blog_content > .inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* 아티클 */
.article_wrap {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* 요약 박스 */
.summary_box {
  background: linear-gradient(135deg, #e8f4fd 0%, #d4ecfb 100%);
  padding: 30px;
  border-left: 5px solid var(--brandColor);
}

.summary_box .summary_label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brandColor);
  margin-bottom: 12px;
}

.summary_box p {
  font-size: 17px;
  line-height: 1.7;
  color: #333;
}

/* 목차 박스 */
.toc_box {
  padding: 25px 30px;
  border-bottom: 1px solid #eee;
}

.toc_box .toc_label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.toc_list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc_list li a {
  display: block;
  color: #555;
  text-decoration: none;
  font-size: 15px;
  padding: 8px 15px;
  border-radius: 8px;
  transition: all 0.2s;
}

.toc_list li a:hover {
  background: #f5f5f5;
  color: var(--brandColor);
}

.toc_list li.h2 a {
  font-weight: 500;
}

.toc_list li.h3 a {
  padding-left: 30px;
  font-size: 14px;
  color: #777;
}

/* 본문 */
.article_body {
  padding: 40px;
}

.article_body h2 {
  font-size: 26px;
  font-weight: 700;
  color: #222;
  margin: 40px 0 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--brandColor);
}

.article_body h2:first-child {
  margin-top: 0;
}

.article_body h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 30px 0 15px;
  padding-left: 15px;
  border-left: 4px solid var(--brandColor2);
}

.article_body p {
  font-size: 17px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 20px;
  word-break: keep-all;
}

.article_body strong {
  color: var(--brandColor-dark);
  font-weight: 600;
}

.article_body ul,
.article_body ol {
  margin: 20px 0;
  padding-left: 25px;
}

.article_body li {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 10px;
}

/* CTA 박스 */
.cta_box {
  margin: 40px;
  background: linear-gradient(135deg, #123671 0%, #0a74da 100%);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  color: #fff;
}

.cta_box h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta_box p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 25px;
  line-height: 1.6;
}

.cta_box .cta_btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--brandColor);
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.cta_box .cta_btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 관련 글 */
.related_posts {
  padding: 30px 40px 40px;
  border-top: 1px solid #eee;
}

.related_posts h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.related_list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.related_list li a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
}

.related_list li a:hover {
  background: #e8f4fd;
  transform: translateX(5px);
}

.related_list .related_keyword {
  font-size: 12px;
  color: var(--brandColor);
  font-weight: 600;
}

.related_list .related_title {
  font-size: 15px;
  color: #333;
  font-weight: 500;
  line-height: 1.4;
}

/* 사이드바 */
.blog_sidebar {
  position: relative;
}

.sidebar_sticky {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar_cta {
  background: linear-gradient(135deg, #123671 0%, #0a74da 100%);
  color: #fff;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
}

.sidebar_cta h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.sidebar_cta p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 20px;
  line-height: 1.5;
}

.sidebar_cta .sidebar_btn {
  display: block;
  background: #fff;
  color: var(--brandColor);
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.sidebar_cta .sidebar_btn:hover {
  transform: scale(1.05);
}

.sidebar_popular {
  background: #fff;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.sidebar_popular h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.sidebar_popular h4 i {
  color: #e74c3c;
}

.sidebar_popular ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar_popular li a {
  display: block;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  padding: 10px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.2s;
  line-height: 1.4;
}

.sidebar_popular li a:hover {
  background: #e8f4fd;
  color: var(--brandColor);
}

/* =====================================================
   블로그 리스트 섹션 (메인페이지용)
   ===================================================== */

.blog_section {
  background: #fff;
}

.blog_section .section_header {
  text-align: center;
  margin-bottom: 50px;
}

.blog_section .section_subtitle {
  font-size: 18px;
  color: var(--textColor-light);
  margin-top: 15px;
}

.blog_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog_card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.blog_card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.blog_card .card_thumb {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #e8f4fd 0%, #d4ecfb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog_card .card_thumb .thumb_icon {
  font-size: 50px;
  color: var(--brandColor);
  opacity: 0.5;
}

.blog_card .card_thumb .card_keyword {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--brandColor);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.blog_card .card_body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog_card .card_title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  margin-bottom: 12px;
}

.blog_card .card_summary {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog_card .card_more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brandColor);
}

/* =====================================================
   반응형
   ===================================================== */

@media screen and (max-width: 1200px) {
  .blog_content > .inner {
    grid-template-columns: 1fr 260px;
    gap: 30px;
  }
}

@media screen and (max-width: 1023px) {
  .blog_page {
    margin-top: 60px;
  }
  
  .blog_header {
    padding: 50px 0 70px;
  }
  
  .blog_header .blog_title {
    font-size: 32px;
  }
  
  .blog_content > .inner {
    grid-template-columns: 1fr;
  }
  
  .blog_sidebar {
    display: none;
  }
  
  .blog_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .blog_header {
    padding: 40px 0 60px;
  }
  
  .blog_header .blog_title {
    font-size: 26px;
  }
  
  .blog_header .blog_subtitle {
    font-size: 16px;
  }
  
  .blog_header .blog_meta {
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .article_body {
    padding: 25px;
  }
  
  .article_body h2 {
    font-size: 22px;
  }
  
  .article_body h3 {
    font-size: 18px;
  }
  
  .article_body p {
    font-size: 16px;
  }
  
  .cta_box {
    margin: 25px;
    padding: 30px 20px;
  }
  
  .cta_box h3 {
    font-size: 20px;
  }
  
  .related_posts {
    padding: 25px;
  }
  
  .related_list {
    grid-template-columns: 1fr;
  }
  
  .blog_grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media screen and (max-width: 586px) {
  .blog_header .blog_title {
    font-size: 22px;
  }
  
  .summary_box {
    padding: 20px;
  }
  
  .toc_box {
    padding: 20px;
  }
  
  .article_body {
    padding: 20px;
  }
  
  .cta_box {
    margin: 20px;
    padding: 25px 15px;
  }
}
