.post img {
  max-width: 100%; /* 부모 요소의 너비를 넘지 않도록 설정 */
  height: auto;    /* 이미지 비율을 유지 */
  display: block;  /* inline-block 문제를 방지 */
  margin: 0 auto;  /* 이미지를 중앙 정렬 (선택 사항) */
}

.post {
  max-width: 900px; /* 게시글의 최대 너비 */
  margin: 0 auto;    /* 중앙 정렬 */
  position: relative;
}

.post p {
  line-height: 1.75; /* 본문 문단 간격 */
  margin-bottom: 12px; /* 문단 간격 추가 */
}

article.post.h-entry {
  padding: 100px 20px;
}

.post-title {
  margin-bottom: 0;
}

.post-meta {
  margin: 0 auto;
  color: var(--color-dark-gray); /* 색상 조정 (선택 사항) */
}

a.post-link {
  align-items: center;
  text-decoration: none; /* 밑줄 제거 */
  color: var(--color-dark-gray);  /* 기본 색상 유지 */
}

a.post-link:visited {
  color: var(--color-dark-gray);
  font-weight: normal;  /* 클릭 후에도 굵기 변화 방지 */
}

h1 {
  margin-top: 0;
}

h2 {
  margin-top: 30px;
  margin-bottom: 2px;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.img {
  display: block;
  margin: 0 auto;
  width: 90%;
  max-width: 300px;
  height: auto;
}

.img-small{
  display: block;
  margin: 0 auto;
  width: 70%;
  max-width: 300px;
  height: auto;
}

.img-small-x {
  display: block;
  margin: 0 !important;
  width: 50%;
  max-width: 300px;
  height: auto;
  text-align: left;    /* 혹시 부모 요소가 center로 되어 있을 때 대비 */
}

body {
  background-color: var(--color-soft-white);
  color: var(--color-soft-black);

}

.post-header-container {
  display: flex;
  justify-content: space-between; /* 헤더 좌우 정렬 */
  align-items: center; /* 수직 정렬 */
}

.post-header-content {
  flex: 1; /* 제목과 태그가 왼쪽에서 넓게 차지 */
}

.post-thumbnail {
  border: 0.5px solid var(--color-warm-white);
  width: 175px;
  height: 119px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  flex-shrink: 0; /* 크기 유지 */
}

.post .badge {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #3F51B5;
  font-weight: bold;
  white-space: nowrap;
}

hr.thin-hr {
  border: none;
  border-top: 1px solid #ccc;  /* 선 색상 */
  margin: 0px 0;               /* 위아래 여백 5px */
}

.highlighted-title {
  background-color: #fbf3f3;
  padding: 0.4rem 1rem;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.6rem;
  color: #222;
  margin-top: 2rem;
}

.spacer-lg {
  margin-top: 6rem;
  margin-bottom: 3rem;
}

.spacer-sm {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-toc-float {
  position: fixed;
  top: 180px;
  left: calc(50% + 500px);
  width: 220px;
  max-height: 70vh;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  z-index: 10;
  color: var(--color-light-gray);
}

.post-toc-float a.active {
  background-color: rgba(63, 81, 181, 0.15);
  color: #3F51B5;
  font-weight: 600;
}

.post-toc-float ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.post-toc-float li {
  margin: 8px 0;
}

.post-toc-float a {
  display: block;
  padding: 4px 6px;
  color: #444;
  font-weight: 400;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.post-toc-float a:hover {
  background-color: rgba(63, 81, 181, 0.08); /* 연한 인디고 */
  color: #000;
}

@media (max-width: 1024px) {
  .post-toc-float {
    display: none;
  }
}

@media screen and (max-width: 1400px) {
  #post-toc,
  .post-toc-float {
    display: none !important;
  }
}