/* Google Fonts 필기체 추가 */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

:root{--bg:#f7f7f7;--card:#ffffff;--accent:#ffffff;--muted:#666;--danger:#e02424}
*{box-sizing:border-box}
body{  margin:0;  padding-top: 160px;    font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', 'Noto Sans KR', Arial, sans-serif;background:var(--bg);color:#111}

/* header */
.page-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg,#0f172a,#1e293b);
  color: #fff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000; /* 다른 요소가 헤더 위로 올라오지 않도록 */
}


  /* 모바일에서 글씨 작게 */
  @media(max-width:600px){
    .header-right h4 {
      font-size:13px !important;  /* 모바일에서만 축소 */
      line-height:1.4;
    }
  }
.brand{display:flex;gap:12px;align-items:center}







.page-header{font-size:18px;font-weight:700}



/* 모바일 대응 */
@media (max-width: 768px) {
  .page-header { padding: 8px; }

 

  .site-title { font-size: 14px; }



  .brand { gap: 6px; }

}





    /* layout */
    .wrap{max-width:1300px;margin:22px auto;padding:0 16px;display:grid;grid-template-columns:1fr 320px;gap:22px}
    .main{display:flex;flex-direction:column;gap:14px}
    .post-card{background:var(--card);padding:14px;border-radius:12px;box-shadow:0 6px 18px rgba(16,24,40,0.05)}
    .post-card .thumb{width:100%;height:180px;object-fit:cover;border-radius:8px;margin-bottom:10px}
    .post-card h2{margin:0 0 8px 0;font-size:18px}
    .meta{font-size:13px;color:var(--muted);margin-bottom:8px}
    .excerpt{line-height:1.6;color:#222}

    .sidebar .widget{background:var(--card);padding:12px;border-radius:10px;margin-bottom:12px}
    .search{display:flex;gap:8px}
    .search input{flex:1;padding:8px;border-radius:6px;border:1px solid #000000}
    .btn{display:inline-block;padding:8px 12px;border-radius:8px;background:var(--accent);color:#ffffff;text-decoration:none;cursor:pointer}

    .filters{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
    .chip{padding:6px 10px;border-radius:999px;border:1px solid #1c469b;background:#fff;cursor:pointer}
    .chip.active{background:var(--accent);color:#000000;border-color:transparent}

    .load-more{display:block;margin:8px auto 20px auto;padding:10px 14px;border-radius:8px;border:0;background:#111;color:#fff;cursor:pointer}

    .site-footer{text-align:center;color:var(--muted);font-size:13px;padding:28px 12px}

    /* admin */
    .admin-bar{display:flex;gap:8px;align-items:center}
    .admin-card{background:var(--card);padding:14px;border-radius:10px;box-shadow:0 6px 18px rgba(16,24,40,0.05);margin-bottom:12px}
    input,textarea,select{width:100%;padding:10px;margin-top:6px;border:1px solid #e6e9ef;border-radius:8px}
    .post-list{margin-top:10px}
    .post-item{display:flex;gap:12px;align-items:center;padding:10px;border-radius:8px;border:1px solid #f0f2f5;margin-bottom:8px}
  .post-item img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 40 / 21;
  object-fit: cover;
  border-radius: 8px;
}
    .post-actions{margin-left:auto;display:flex;gap:8px}
    .danger{background:var(--danger);color:#fff}

    /* modal */
 .modal {
  position: fixed;
  inset: 0;
  background: rgba(3,7,18,0.6);
  display: none;

  /* 중앙 → 위 기준으로 변경 */
  align-items: flex-start;

  /* 원하는 만큼 내리기 */
  padding-top: 180px;

  justify-content: center;
  padding-left: 20px;
  padding-right: 20px;
}

.modal .panel {
  max-width: 900px;
  width: 100%;
  background: var(--card);
  border-radius: 10px;
  padding: 20px;
  overflow: auto;
  max-height: 88vh;
}
    .close-btn{background:#eee;padding:6px 10px;border-radius:6px;cursor:pointer}

    @media (max-width:980px){.wrap{grid-template-columns:1fr}.sidebar{order:2}}
    @media (max-width:540px){.post-card .thumb{height:140px}}



      h1{
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
  }
  #content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding-bottom: 40px;
  }
  .card {
    background: #fff;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.06);
    border: 1px solid #eaeaea;
  }
  .stars {color: #FFD700; font-size: 17px; margin-bottom: 8px;}
  .category {font-size: 14px; color: #555; margin-bottom: 6px;}
  blockquote {
    margin: 10px 0;
    font-size: 15px;
    line-height: 1.45;
    color: #333;
  }
  .copy-btn {
    margin-top: 12px;
    padding: 8px 12px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
  }
  .btn-area {margin: 20px 0;}
  textarea{
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 15px;
    line-height: 1.5;
  }
  .btn{
      display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: #000000;
    background: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
    border: 1px solid #000000;  /* 실선 테두리 추가 */
  }















/* -----------------------------------------
   SLIDER (가로 5개 완전 고정 + 스크롤 없음)
----------------------------------------- */
.slider {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;

  padding: 10px 4px 14px 4px;
  background: #fff;
  border-bottom: 1px solid #e6e9ef;

  overflow: hidden; /* 스크롤 완전 제거 */
}

.slider figure {
  flex: 0 0 calc(20% - 6px);
  margin: 0;
}

.slider img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
}

.slider figcaption {
  text-align: center;
  margin-top: 6px;
  font-size: 14px;
  color: #444;
}

/* PC 넓은 화면 */
@media (min-width: 1024px) {
  .slider img {
    height: 200px;
  }
}

/* -----------------------------------------
   모바일 — 전체 축소 + 글자 작게 유지

@media (max-width: 768px) {
  .slider {
    transform: scale(0.82);
    transform-origin: left top;
  }

  .slider img {
    height: 120px;
  }

  .slider figcaption {
    font-size: 12px;
  }
}----------------------------------------- */

@media (max-width: 768px) {

  /* 슬라이더를 가운데 정렬 */
  .slider {
    transform: scale(0.82);
    transform-origin: top center; /* 가운데 기준으로 축소 */
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
  }

  .slider img {
    height: 120px;
  }

  .slider figcaption {
    font-size: 12px;
  }
}




/* 문의 박스 공통 */
.contact-box {
         display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: #000000;
    background: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;

}

.contact-box h3 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #000000;
}

/* 전화 버튼 스타일 */
.call-btn {
  display: block;
  padding: 10px 14px;
  font-size: 16px;
  color: #000000;
  background: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  border: 1px solid #000000;  /* 실선 테두리 추가 */
  cursor: pointer;
}

.call-btn:hover {
  background: #4b27eb; /* 배경색 반전 */
  color: #ffffff;      /* 글자색 반전 */
}

/* 모바일 최적화 */
@media (max-width: 600px) {
  .contact-box {
    padding: 16px;
  }

   .call-btn {
    font-size: 20px;
    padding: 12px;
    width: 100%;          /* 가로 최대 크기 */
    box-sizing: border-box; /* padding 포함해서 100% 적용 */
  }
}



.call-icon {
  font-size: 20px;
  margin-right: 6px;
  vertical-align: middle;
}


.footer {
  background: #f3f4f6;
  padding: 20px 10px;
  border-top: 1px solid #ddd;
  font-family: 'Noto Sans KR', sans-serif;
  text-align: center;   /* 텍스트 가운데 정렬 */
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;    /* 전체를 가운데 배치 */
  white-space: nowrap;        /* 줄바꿈 금지 */
  overflow-x: auto;           /* 모바일에서 가로 스크롤 */
  scrollbar-width: none;      /* Firefox 스크롤 숨김 */
}

.footer-container::-webkit-scrollbar {
  display: none;              /* 크롬 스크롤 숨김 */
}

.footer-box {
  display: flex;
  gap: 20px;                 /* 항목 간 간격 */
  align-items: center;
  font-size: 14px;
  color: #444;
}

.footer-title {
  font-weight: 700;
  color: #222;
}

.footer-box a {
  color: #000000;
  text-decoration: none;
}

.footer-box a:hover {
  text-decoration: underline;
}








    .collapsible {
      list-style: none;
      padding: 0;
      margin: 0 auto;
      width: 100%;
      max-width: 900px;
    }

    .collapsible li {
      margin-bottom: 12px;
      border-radius: 8px;
      overflow: hidden;
      background: #fff;
      border: 1px solid #ddd;
    }

    .collapsible-header {
      padding: 12px 16px;
      cursor: pointer;
      font-size: 16px;
      font-weight: 600;
      display: flex;
      align-items: center;
      transition: background 0.3s;
    }

    .collapsible-header:hover {
      background-color: #f0f0f0;
    }

    .collapsible-header i {
      margin-right: 8px;
      color: #ffffff;
    }

    .collapsible-body {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.35s ease, padding 0.35s ease;
      padding: 0 16px;
    }

    .collapsible-body.open {
      padding: 12px 16px 24px 16px;
    }

    .flex-wrap {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 15px;
      align-items: start;
    }

    .flex-wrap img {
      border-radius: 8px;
      width: auto;
      height: 100px;
      object-fit: contain;
    }

    .flex-wrap p {
      margin: 0;
      text-align: left;
      line-height: 1.5;
    }

    /* LH/SH/GH 도배 안내용 */
    .collapsible-body section {
      margin-top: 12px;
    }

    .collapsible-body h4 {
      margin: 8px 0 4px 0;
      font-size: 16px;
      font-weight: 600;
    }

    .collapsible-body ol, .collapsible-body ul {
      padding-left: 20px;
    }









/* 사이드바 유튜브 그리드: 1열 고정 */
.sidebar-youtube-grid {
  display: grid;
  grid-template-columns: 1fr; /* 항상 1열 */
  gap: 10px;
}

/* 더보기 박스 높이 */
#moreYoutubeBox {
  width: 100%;
  height: 150px; /* 필요 시 조절 가능 */
  margin: 12px 0 0 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

#moreYoutubeBox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#moreYoutubeBox .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s, transform 0.2s;
}

#moreYoutubeBox:hover .overlay {
  background: rgba(0,0,0,0.5);
  transform: scale(1.03);
}






.card {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  border-radius: 12px;
  background: #fff;
}
.card h4 {
  margin-bottom: 10px;
}
.card img {
  width: 100%;
  margin-top: 15px;
  border-radius: 12px;
}









.load-more {
  display: block;
  margin: 30px auto 0;
  padding: 12px 26px;
  font-size: 16px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}
.load-more:hover {
  background: #ffffff;
}




  .review-card {
    border:1px solid #ddd;
    padding:15px;
    border-radius:10px;
    margin-bottom:15px;
    background:#fff;
    box-shadow:0 2px 6px rgba(0,0,0,0.08);
  }








.button-wrap { 
  text-align:center; 
  margin:20px 0; 
  display:block;        /* 반드시 블록 레벨 */
}
.call-btn {
  display:inline-block; 
  padding:12px 24px; 
  background:#ffffff; 
  color:#000000; 
  border-radius:8px; 
  font-weight:bold; 
  text-decoration:none;
}






























/* postsList UL 컨테이너 */
#postsContainer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
  margin: 0 auto;
  width: 100%; /* 반응형 */
  max-width: 1200px; /* 최대 넓이 */
  list-style: none;
  box-sizing: border-box;
}

/* UL 안 LI 카드 */
#postsContainer ul li {
  flex: 0 0 calc(50% - 10px); /* 기본: 2개 */
  box-sizing: border-box;
  border: 1px solid #ddd;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* 썸네일 이미지 */
#postsContainer ul li .thumb {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* 제목/날짜 */
.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.post-header h2 {
  margin: 0;
  font-size: 16px;
  flex: 1 1 auto;
}

.post-header .post-date {
  font-size: 13px;
  color: #888;
  flex-shrink: 0;
}

/* excerpt */
.excerpt {
  font-size: 14px;
  text-align: left;
}

/* Load More 버튼 */
#loadMoreBtn {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
}

/* ================================ */
/* 반응형 미디어쿼리 */
/* ================================ */

/* 화면 <= 992px: 2개 → 2개 유지 */
@media (max-width: 992px) {
  #postsContainer ul li {
    flex: 0 0 calc(50% - 10px);
  }
}

/* 화면 <= 768px: 2개 → 1개 */
@media (max-width: 768px) {
  #postsContainer ul li {
    flex: 0 0 100%;
  }
}

/* 화면 <= 480px: 여백 조금 줄이기 */
@media (max-width: 480px) {
  #postsContainer ul {
    gap: 10px;
  }
  #postsContainer ul li {
    padding: 8px;
  }
}






 




.naver-image-pack{
  max-width:1300px;
  margin:20px auto;
  padding:0 12px;
  display:flex;
  gap:8px;
  box-sizing:border-box;
}

.img-item{
  width:calc((100% - 24px) / 4);
  position:relative;
  text-decoration:none;
}

.img-item img{
  width:100%;
  height:140px;
  object-fit:cover;
  border-radius:6px;
  display:block;
}

.img-item span{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  height:28px;
  line-height:28px;
  font-size:13px;
  text-align:center;
  color:#fff;
  background:rgba(0,0,0,0.45);
  border-radius:0 0 6px 6px;
}

.image-desc{
  max-width:1200px;
  margin:12px auto 0;
  padding:0 12px;
  font-size:14px;
  color:#555;
  line-height:1.5;
  text-align:center;   /* ← 이 줄만 추가 */
}
/* 모바일에서도 4개 유지 */
@media (max-width:600px){
  .img-item img{height:90px}
  .img-item span{font-size:12px}
}