/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Description: Child theme customized for ProAdviceHub / 모두알려드려요
Author: Potensia Inc.
Template: generatepress
Version: 2025.10.29
*/

/* ===================================================
   ProAdviceHub 기본 스타일 복원 (GeneratePress Child)
   =================================================== */

/* ✅ 본문 폰트 및 베이스 세팅 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans KR", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.75;
  color: #1f2937;
  background-color: #ffffff;
}

/* ✅ 본문 이미지 자동 여백 + 반응형 */
.post-content img,
.entry-content img {
  display: block;
  margin: 1.5em auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ✅ 쿠팡 배너 (본문 및 하단용) */
.coupang-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2em 0;
}

.coupang-banner iframe {
  max-width: 100%;
  height: auto;
  border: none;
}

/* ✅ 사이드 배너 (위젯 영역) */
.sidebar-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5em 0;
}

.sidebar-banner iframe {
  max-width: 100%;
  height: auto;
  border: none;
}

/* ✅ 목차 스타일 (TOC) */
#auto-toc {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.2em 1.4em;
  margin: 2em 0;
}

#auto-toc strong {
  display: block;
  font-size: 1.1em;
  margin-bottom: 0.8em;
}

#auto-toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#auto-toc li {
  margin-bottom: 0.5em;
}

#auto-toc a {
  color: #2563eb;
  text-decoration: none;
}

#auto-toc a:hover {
  text-decoration: underline;
}

/* ✅ 본문 내 인용문 / 코드블럭 가독성 향상 */
blockquote {
  border-left: 4px solid #2563eb;
  padding-left: 1em;
  color: #374151;
  margin: 1.5em 0;
  background: #f9fafb;
  border-radius: 6px;
}

pre {
  background: #f3f4f6;
  padding: 1em;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.95em;
}

/* ✅ 표(Table) 기본 스타일 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
}

th, td {
  border: 1px solid #e5e7eb;
  padding: 0.7em 0.9em;
}

th {
  background-color: #f3f4f6;
  font-weight: 600;
}

/* ✅ 버튼 / CTA 공통 */
.cta-btn,
button {
  display: inline-block;
  background: #2563eb;
  color: #fff !important;
  padding: 0.7em 1.4em;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.2s;
}

.cta-btn:hover,
button:hover {
  background: #1d4ed8;
}

/* ✅ 링크 컬러 통일 */
a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ✅ 모바일 리스트 패딩 최적화 */
@media (max-width: 768px) {
  ul {
    padding: 0.8em 1.2em;
  }
}

/* ✅ 반응형 제목 크기 조정 */
@media (max-width: 768px) {
  h1 { font-size: 1.6em; }
  h2 { font-size: 1.4em; }
  h3 { font-size: 1.1em; }
  .cta-btn,
  button {
    width: 100%;
    text-align: center;
  }
}

/* ✅ 사이드바 위젯 정돈 */
.sidebar .widget {
  margin-bottom: 2em;
}

.sidebar .widget-title {
  font-size: 1.1em;
  font-weight: 700;
  color: #111827;
  border-left: 4px solid #2563eb;
  padding-left: 10px;
  margin-bottom: 1em;
