/* 기본 네비게이션 및 로고 */
.nav a { color: #111; }
.logo img {
  width: 150px;
  height: auto; /* 비율 유지 */
  margin-bottom: 6px;
}


.lang-btn, .search-btn { color: #111; }

/* 블로그 상세 페이지 컨테이너 */
.page-blog-detail {
  font-family: "Noto Sans KR", sans-serif;
  background-color: #f5f5f5;
  padding: 40px 0; /* 여백 약간 조정 */
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-content {
  /* max-width: 800px; */
  padding: 20px 40px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}


.page-content:has(.is-narrow) {
  max-width: 800px;
}


.page-content h2 {
  font-size: 1.8em;
  font-weight: 700;
  margin-top: 56px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  color: #2c3e50;
  word-break: keep-all;
}

.page-content ul {
  list-style-type: disc;
  padding-left: 20px;
}

.page-content li {
  font-size: 1em;
  color: #555;
  line-height: 160%;
  margin-bottom: 0.5em;
}

.page-content a,
.page-content a:link,
.page-content a:visited,
.page-content a:active,
.page-content a:hover,
.page-content a:focus {
  color: #000000;
  font-size: 100%;
  text-decoration: none;
  font-family: inherit;
}

.section-inner img {
  max-width: 100%;
  height: auto;
}

.section-inner .back-arrow {
  width: 30px;
  margin-bottom: 30px;
  cursor: pointer;
}

.section-inner.header-section {
  padding-bottom: 0px;
}

.section-inner {
  padding-top: 20px;
  line-height: 180%;
}

.gnb {
  position: relative;
}

.post-header {
  padding: 40px 0px;
  border-top: 1px solid #111;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#post-author a {
  color: #999999;
}

.post-header h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  color: #111;
  line-height: 1.4;
}

.post-content {
  padding-bottom: 60px;
  max-width: 1480px;
  margin: 20px auto;
  padding: 20px 40px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}


.post-content h1 {
  line-height: 1.4;
}

.post-meta {
  color: #999999;
  margin: 0;
  font-size: 14px;
}

.post-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.post-nav a {
  padding: 20px 10px;
  display: flex;
  gap: 60px;
  width: 100%;
  color: #111111;
  align-items: center;
}

.post-nav-sub {
  width: 100px;
  display: flex;
  gap: 32px;
  font-size: 14px;
  align-items: center;
}

.disable .post-nav-sub,
.disable .post-nav-content {
  opacity: 0.5;
}

.post-nav-content {
  gap: 60px;
  flex: 1;
}

.post-nav-main {
  flex: 1;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 540px;
}

.section-inner .post-nav-sub img {
  width: 16px;
}

.post-route {
  border-top: 1px solid #ebebeb;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.post-route button {
  margin-top: 60px;
  margin-bottom: 100px;

  padding: 15px 25px;
  border: 1px solid #ebebeb;
  border-radius: 999px;
  color: #666;
  font-size: 18px;
  font-weight: 600;
  background-color: #fff;
  cursor: pointer;
}

.post-nav-author {
  font-size: 14px;
  color: #999999;
}

.post-nav-prev + .post-nav-next {
  border-top: 1px solid #ebebeb;
}

.post-nav-next .post-nav-sub img {
  transform: rotate(180deg);
}

.post-nav-author-mobile {
  display: none;
}

.by-text {
  font-style: italic;
  margin-right: 4px;
}

.post-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 60px;
}

.tag-item {
  padding: 4px 12px;
  border: 1px solid #ebebeb;
  white-space: nowrap;
  font-size: 13px;
  border-radius: 999px;
}

.tag-item a {
  color: #999999;
}

/* =======================
   Responsive small laptop
======================= */
@media (max-width: 1440px) {
  .section-inner,
  .hero-inner {
    padding: 40px 40px;
  }

  .header-section {
    padding: 0px 20px;
  }

  .section-inner.header-section {
    padding-bottom: 0px;
  }

  .post-header {
    padding: 30px 0px;
  }

  .post-nav a,
  .post-nav-content {
    gap: 32px;
  }
}

/* 커스텀 */
.step-card {
  background-color: #fdfdfd;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

/* 커스텀 */
th {
  background-color: #85b1e7;
  color: #333;
  font-weight: 600;
}
th,
td {
  border: 1px solid #dee2e6;
  padding: 10px;
  text-align: left;
}

blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid #3b82f6; /* 포인트 컬러 */
  background-color: #f9fafb;
  color: #374151;
  font-style: italic;
}

table {
  width: 100%;
  min-width: unset; /* ⭐ 중요 */
}

th p,
td p {
  margin: 0 !important;
  width: 100%;
  /* text-align: center; */
}

th,
td {
  white-space: normal !important;
  word-break: keep-all; /* 한글 세로 쪼개짐 방지 */
  overflow-wrap: break-word;
}

/* 블로그 최하단 카드 custom */
.cta-box {
  background-color: #2c3e50;
  color: #fff;
  padding: 30px;
  border-radius: 8px;
  margin-top: 60px;
  text-align: center;
}
.cta-box h3 {
  color: #fff;
  margin-top: 0;
  font-size: 1.6em;
  margin-bottom: 20px;
}
.cta-box p {
  color: #ecf0f1;
  font-size: 1.1em;
  line-height: 160%;
  margin-bottom: 10px;
}
.cta-button-wrapper {
  margin: 25px 0;
}
.cta-button {
  display: inline-block;
  padding: 12px 28px;
  background-color: #ffffff;
  color: #3498db;
  border: 1px solid #ffffff;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}
.cta-button:hover {
  background-color: #3498db;
  color: #ffffff;
  border-color: #ffffff;
}
.cta-box ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: inline-block;
  text-align: left;
}
.cta-box li {
  color: #bdc3c7;
  line-height: 160%;
  margin-bottom: 5px;
}

.info-card {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 30px;
  margin: 40px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Ghost Callout Card 스타일 */
.kg-callout-card {
  display: flex;
  padding: 1.2em 1.6em;
  border-radius: 0.75rem; /* 모서리 둥글게 */
  background: var(--kg-callout-background, #f1f3f5); /* 배경색 */
  margin: 1.5em 0;
}

/* 콜아웃 내 아이콘 설정 */
.kg-callout-emoji {
  display: flex;
  align-items: center;
  margin-right: 1.2rem;
  font-size: 1.5rem;
  line-height: 1;
}
/* Ghost Callout 공통 스타일 */
.kg-callout-card {
  display: flex;
  padding: 1.2em 1.6em;
  border-radius: 0.75rem;
  margin: 1.5em 0;
}

/* [Group A] 연한 배경 (글자색: 검정 #15171a) */
.kg-callout-card-white {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  color: #15171a;
}
.kg-callout-card-gray {
  background-color: #f1f3f5;
  color: #15171a;
}
.kg-callout-card-blue {
  background-color: #e7f5ff;
  color: #15171a;
}
.kg-callout-card-green {
  background-color: #ebfbee;
  color: #15171a;
}
.kg-callout-card-yellow {
  background-color: #fff9db;
  color: #15171a;
}
.kg-callout-card-red {
  background-color: #fff5f5;
  color: #15171a;
}
.kg-callout-card-pink {
  background-color: #fff0f6;
  color: #15171a;
}
.kg-callout-card-purple {
  background-color: #f3f0ff;
  color: #15171a;
}

/* [Group B] 진한 배경 (글자색: 흰색 #ffffff) */
.kg-callout-card-accent {
  background-color: #ff0095;
  color: #ffffff;
}


/* gallery 관련 css */
.gh-canvas {
  --main: min(var(--content-width, 720px), 100% - var(--container-gap) * 2);
  --wide: minmax(0, calc((var(--container-width, 1200px) - var(--content-width, 720px)) / 2));
  --full: minmax(var(--container-gap), 1fr);
  display: block;
  grid-template-columns:
      [full-start] var(--full)
      [wide-start] var(--wide)
      [main-start] var(--main) [main-end]
      var(--wide) [wide-end]
      var(--full) [full-end];
}

/* [수정] 모든 직계 자식은 기본적으로 main 컬럼에 위치하도록 설정 */
.gh-canvas > * {
    grid-column: main;
}

.kg-width-wide,
.kg-content-wide > div {
    grid-column: wide;
}

.kg-width-full {
    grid-column: full;
}

.kg-width-full img {
  max-width: 100vw;
  width: 100%; /* [추가] 전체 너비 확보 */
}


.kg-gallery-card,
.kg-gallery-card * {
    box-sizing: border-box;
}

.kg-gallery-card,
.kg-image-card {
    --gap: 1.2rem;
}

.kg-image-card:not(.kg-card-hascaption) + .kg-image-card,
.kg-image-card:not(.kg-card-hascaption) + .kg-gallery-card,
.kg-gallery-card:not(.kg-card-hascaption) + .kg-image-card,
.kg-gallery-card:not(.kg-card-hascaption) + .kg-gallery-card {
    margin-top: var(--gap);
}

.kg-gallery-container {
    position: relative;
    display: flex;
    flex-direction: column;
}

.kg-gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%; /* [추가] 가로 너비 100% 확보 */
}

/* [추가] 갤러리 이미지 컨테이너의 핵심 설정 */
.kg-gallery-image {
  /* 인라인 스타일 flex가 사라졌을 경우를 대비해 기본값 설정 */
  flex: 1 1 0%; 
  min-width: 0;
  position: relative;
}

.kg-gallery-image img {
    display: block;
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* [추가] 비율 유지하며 영역 채움 */
}

.kg-gallery-row:not(:first-of-type) {
    margin: var(--gap) 0 0;
}

.kg-gallery-image:not(:first-of-type) {
    margin: 0 0 0 var(--gap);
}



/* 데스크탑 로딩 중 빈 공간 방지 */
@media (min-width: 1024px) {
  .page-content {
    min-width: 800px;
    min-height: 1000px;
  }
}



/* 반응형 - 태블릿 모바일  */
@media (max-width: 768px) {
  .gnb{
    background-color: rgba(0, 0, 0, 0);
  }
  
  .logo img {
    width: 150px;
    height: 22px;
    margin-bottom: 3px;
    margin-left: -20px;
  }

  .gnb-white {
    background: transparent;
    border-bottom: 1px solid #444444;
  }

  .page-content {
    max-width: 100%;
    width: 100%;
    padding: 10px 0 0 0;
    background-color: #fff;
    box-shadow: none;
    border-radius: 0;
  }

  .page-blog-detail {
    padding: 0px;
    width: 100%;
  }

  .section-inner,
  .hero-inner {
    width: 100%;
    padding: 0px 20px;
  }
  .section-inner.header-section {
    padding-bottom: 0px;
  }

  .post-header {
    padding: 0px;
  }

  .post-content {
    padding-bottom: 20px;
    padding: 20px 20px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .post-nav a {
    gap: 20px;
  }

  .post-nav-sub {
    gap: 12px;
    min-width: 70px;
    font-size: 12px;
  }

  .post-nav-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .post-nav-main {
    max-width: calc(100dvw - 180px);
    font-size: 14px;
  }

  .post-nav-author {
    display: none;
  }

  .post-nav-author-mobile {
    display: flex;
    font-size: 10px;
    color: #999999;
  }

  .post-route button {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px 25px;
    color: #666;
    font-size: 14px;
  }

  .kg-image-card {
    margin-left: -8px;
    margin-right: -8px;
  }

  table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  iframe {
    height: auto;
    width: 100%;
  }

  .conclusion {
    width: 100% !important;
  }
}


@media (max-width: 600px) {
  .kg-gallery-card,
  .kg-image-card {
      --gap: 0.6rem;
  }
}

 @media (max-width: 768px) {
  .post-feature-image {
    width: 335px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
  }
}

