/* 기본 전체 배경 */
body {
  font-family: 'MaruBuri', sans-serif;
  background: #fff;
  margin: 0;
  color: #000;
}

/* 헤더 */
.header-container { background: #fff; }
header {
  max-width: 1340px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  height: 62px; position: relative;
}
.header-icon {
  width: 4.0rem;   /* 가로 크기(원하시는 px/rem 값으로 변경) */
  height: auto;    /* 세로 비율 자동 유지 */
  position: absolute; left: 10px;  /* 텍스트 가운데 정렬 */
  margin-right: 2.0rem;    /* 로고 텍스트와의 간격 */
}
.logo {
  position: absolute; left: 60px;
  font-size: 1.7rem; font-weight: 500;
}
header nav {
  display: flex; gap: 2.1rem;
}
header nav a, .about-text {
  color: #000; text-decoration: none; font-size: 1.09em;
  background: none; border: none; cursor: pointer;
  transition: font-weight .14s;
}
header nav a:hover, .about-text:hover {
  font-weight: bold; text-decoration: underline; color: #b36600;
}

/* 슬라이더: 가로 1340px, 높이 300px */
.slide-container { background: #fff; margin: 10px auto; }
.slider {
  max-width: 1200px; height: 300px; margin: 0 auto;
  position: relative;
}
.slider-imgs, .slider-imgs img {
  width: 100%; height: 100%;
}
.slider-imgs {
  position: relative;
}
.slider-imgs img {
  position: absolute; object-fit: cover; object-position: center;
  display: none;
}
.slider-imgs img.active { display: block; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border: none; border-radius: 7px;
  background: rgba(255,230,190,.68); color: #b06a00;
  font-size: 2.3em; cursor: pointer; opacity: .6;
}
.slider-btn:hover { background: #ffcc99; color: #9d5300; }
.prev { left: 22px; } .next { right: 22px; }

/* 레이아웃 */
.container {
  display: flex; max-width: 1340px; margin: 2.3rem auto 0;
  gap: 1rem; justify-content: center;
}

/* 사이드바 */
.sidebar {
  flex-shrink: 0; width: 215px; padding: 1.2rem;
  background: rgba(255,255,255,.98);
  box-shadow: none; overflow-y: auto;
}
.sidebar-header h2 {
  font-size: 1.13em; color: #b36600; text-transform: lowercase;
}
/* 모바일에서도 사이드바 보이기 */
@media (max-width: 500px) {
  /* 사이드바와 본문은 보이기 */
  .sidebar,
  .content {
    display: block !important;
    width: 100% !important;
    margin: 0 auto;
  }

  /* 최신글 영역만 감추기 */
  .rightbar {
    display: none !important;
  }
}

/* 콘텐츠 */
.content {
  flex: 1; max-width: 750px; padding: 2rem;
  background: rgba(255,255,255,.97);
  display: flex; flex-direction: column; gap: .6rem;
}

/* 검색 */
.search-block { display: flex; justify-content: center; margin-bottom: 1rem; }
.search-inner {
  width: 468px; /* 20% 늘림 */
  display: flex; gap: .9rem; padding: .8em 1em;
  background: rgba(255,255,255,1);
}
#search-input {
  flex: 1; padding: .65em 1em; font-size:1.08em;
  border:1.1px solid #eedab0; border-radius:6px; outline:none;
  background:#fffbe6;
}
#search-btn {
  padding:.67em 1.3em; font-size:1.08em;
  border:none; border-radius:6px; background:#e9b26e; color:#fff;
  cursor:pointer;
}
#search-btn:hover { background:#c28131; }

/* 카테고리 경로 */
.main-catpath-area { margin-bottom:.7rem; }
#main-category-path {
  font-size:.8em; color:#cb6600; font-weight:bold; opacity:.85;
}

/* 카테고리 리스트 + 아이콘 */
#category-list { list-style:none; padding:0; margin:0; }
#category-list > li {
  margin-bottom:2.8rem;
  display: block;               /* flex → block 으로 변경 */
}
#category-list .cat-icon {
  width: 50px; height: 50px; margin-right:10px; vertical-align: middle;
}
#category-list .all,
#category-list .cat1 {
  background:none; border:none; cursor:pointer;
  font-size: 1.2rem; /* 기존보다 크게 (예: 1rem → 1.25rem) */
  padding: 0.5rem 0.5rem; /* 클릭 영역도 넓어집니다 */
  font-weight:normal; color:#444;
  transition: font-weight .15s;
  display: inline-block;        /* inline-block 으로 변경 */
}
#category-list .cat2-list {      /* 소분류 ul 스타일 */
  list-style:none; margin:0; padding:0;
  margin-left: 0.0rem;          /* 0.5rem 들여쓰기 */
}
#category-list .cat2-list li {   /* 소분류 li 스타일 */
  margin-bottom: 0.2rem;
}
#category-list .cat2 {
  background:none; border:none; cursor:pointer;
  padding:.25em .5em; font-weight:normal; color:#444;
  transition: font-weight .15s;
  display: inline-block;
}

/* ———————————————————————————— */
/* 대분류(전체글 포함) 아이콘 크기 조정 */
/* ———————————————————————————— */
#category-list .cat1-icon,
#category-list .all-icon {
  width: 1.8rem;    /* 원하는 크기로 조정 */
  height: auto;     /* 비율 유지 */
  margin-right: 0.5rem;
  vertical-align: middle;
}


/* 호버/클릭 스타일 */
#category-list .all:hover,
#category-list .cat1:hover,
#category-list .cat2:hover { font-weight:bold; }
#category-list .all.active,
#category-list .cat1.active,
#category-list .cat2.active {
  font-weight:bold; color:#b36600;
}

/* 더보기 버튼 */
#cat-more-btn {
  margin-top:10px;
  background:#fff0e0; border:1px solid #e1c099;
  color:#a0651a; padding:.3em 1.2em; border-radius:6px;
}
#cat-more-btn:hover { background:#ffe7c2; }

/* 글 목록 */
#post-list { list-style:none; padding:0; margin-top:1.5rem; }
#post-list li { margin-bottom:.6rem; }
#post-list a {
  text-decoration:none; color:#222; opacity:.74;
  transition: font-weight .15s;
}
#post-list a:hover { font-weight:bold; }

/* 최신글 */
.rightbar {
  flex-shrink: 0; width: 215px; padding: 1.2rem;
  background: rgba(255,255,255,.98);
}
.rightbar-header h2 {
  font-size: 1.13em; color: #b36600; text-transform: lowercase;
}
#latest-list { list-style:none; padding:0; }
#latest-list li { margin-bottom:.8em; }
#latest-list a {
  text-decoration:none; color:#222; opacity:.7;
  transition: color .14s;
}
#latest-list a:hover {
  color:#c97e12; opacity:1; text-decoration:underline;
}

/* IFRAME */
#iframe-area { margin-bottom:1.2rem; }
.iframe-bar {
  background:#f5e1c5; padding:.36em .7em;
  display:flex; justify-content:space-between;
}
.iframe-margin iframe {
  width:100%; height:728px;
  border:2px solid #e9b26e;
}

/* 푸터 */
footer {
  text-align:center; padding:1rem; background:#fff;
  margin-top:2.3rem;
}
