/* 전체 배경 */
body {
  margin: 0;
  padding: 0;
  background: url("/assets/images/background.png") repeat fixed;
  font-family: "PT Sans", sans-serif;
}

/* 중앙 흰색 박스 */
.blog-wrapper {
  display: flex;
  width: 100%;
  margin-bottom: 7px;
  background-color: #fcfbf5;
  min-height: 94%;
}

/* 왼쪽 사이드바 */
.blog-sidebar {
  width: 400px;
  color: #fff;
  padding-top: 1.5rem;
  padding-left: 6%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: url(../images/background.png);
  background-repeat: repeat;
  background-attachment: fixed;
  background-size: auto;
}

.blog-title {
  font-size: 1.8rem;
  font-weight: bold;
}

.blog-title a {
  transition: color 0.5s ease;
  font-size: 2rem;
  text-decoration: none;
  color: inherit;
}

.blog-title a:hover {
  color: rgb(255, 248, 213);
}

.blog-punchline {
  font-size: 1rem;
  color: #ccc;
}

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

.blog-sections li {
  margin: 0.5rem 0;
}

.blog-sections a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-sections a:hover {
  color: rgb(255, 243, 178);
}

.blog-main {
  width: 700px;
  margin-top: 2%;
  margin-left: 7%;
  margin-right: 7%;
  color: #000;
  text-align: justify;
}

.blog-page-title {
  font-size: 2.5em;
  color: #000;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.blog-meta {
  font-size: 0.9em;
  color: #666;
}

.blog_profile-pic {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  padding: 0;
  border: solid 2px white;
  margin-top: 20px;
  margin-bottom: 20px;
  -webkit-transition: all 0.7s ease;
  transition: all 0.7s ease;
}

.blog_profile-pic:hover {
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  box-shadow: 0 0px 16px 0 rgba(255, 255, 255, 0.5);
}

.subcategory-list {
  list-style: none;
  margin-left: 20px;
  display: none;
}

.subcategory-list li a {
  display: block;
  padding: 0.3rem 0;
  color: #f0e6d2; /* 크림톤 글자색 */
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.subcategory-list li a:hover {
  background-color: rgba(255, 248, 213, 0.1);
  color: #fff8d5;
}

.category-toggle {
  background: none;
  border: none;
  color: #fff8dc;
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 15px;
  transition: color 0.2s ease;
}

.category-toggle:hover {
  color: rgb(255, 243, 178);
}

.category-toggle {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0;
  margin-right: 5px;
  position: relative;
  top: 9px;
}

.category-list li > a {
  display: inline-block;
  vertical-align: middle;
}

.category-list {
  list-style: none;
  margin-left: -40px;
}

.category-list-li {
  margin-bottom: 0.7rem;
}

.category-list > li > a {
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff8dc;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.category-list > li > a:hover {
  background-color: rgba(255, 248, 213, 0.1);
  color: #fff8d5;
}

/* 🔹 선택된 카테고리 강조 */
.category-list > li > a.active-category {
  background-color: rgba(255, 248, 213, 0.3);
  color: #fff8d5;
  border-left: 3px solid #fff8d5;
}

/* 🔹 토글 아이콘 위치 조정 및 회전 애니메이션 */
.category-toggle {
  margin-right: 6px;
  transition: transform 0.2s ease;
}

.category-toggle.open {
  transform: rotate(90deg);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-entry {
  list-style: none;
  background-color: #fffbe5;
  padding: 1rem;
  margin-bottom: 1rem;
  margin-left: -6%;
  border-radius: 8px;
  width: 100%;
  transition: box-shadow 0.3s ease;
}

.blog-entry:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.blog-entry-link {
  text-decoration: none;
}

.pagination {
  margin-top: 2rem;
  text-align: center;
}

.page-number {
  display: inline-block;
  font-size: 16px;
  margin-bottom: 15px;
  padding: 6px 10px;
  text-decoration: none;
  border: 0px solid #fff8d5;
  border-radius: 4px;
  background-color: none;
  color: #222;
  transition: transform 0.2s ease;
}

.page-number.current {
  background-color: none;
  font-size: 16px;
  color: #222;
  font-weight: bold;
  cursor: default;
}

.prev-next-button {
  display: inline-block;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s ease;
  margin-left: 7px;
  margin-right: 7px;
}

.page-number:hover,
.prev-next-button:hover {
  transform: scale(1.2);
}

.page-ellipsis {
  display: inline-block;
  margin: 0 5px;
  color: #999;
  font-size: 16px;
}

.fixed-button {
  position: fixed;
  bottom: 40px;
  left: 5%;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background-color: rgba(181, 181, 181, 0.3); /* 반투명 회색 */
  color: rgba(255, 255, 255, 0.8); /* 연한 흰색 아이콘 */
  font-size: 22px;
  font-weight: bold;
  border-radius: 50%;
  border: 0px solid #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px); /* 유리 느낌 */
  text-decoration: none;
  z-index: 999;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.fixed-button:hover {
  background-color: #3498db;
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.home-button {
  padding-top: 12px;
  padding-right: 3px;
}

.post_btn {
  color: #000;
  padding: 5px;
  padding-left: 13px;
  padding-right: 13px;
  background-color: #fcfbf5;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.post_btn:hover {
  background-color: #fffae0;
}

.category-link {
  color: #666;
  text-decoration: none;
}
.category-link:hover {
  text-decoration: underline;
}
