/* ✅ Pretendard 기본 폰트 로드 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");

/* ✅ Font Awesome 로드 (아이콘 깨짐 방지) */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

/* ✅ 폰트 초기화 – 아이콘 제외 */
body, html, .site-content, .single .site-main, .single .entry-content, .fixed-float-btn {
  font-family: 'Pretendard', sans-serif;
}

.single .entry-content *:not(i):not(svg):not(.fa):not(.fas):not(.far):not(.fal):not(.fab) {
  font-family: 'Pretendard', sans-serif !important;
}

/* ✅ 아이콘 폰트 유지 */
i, svg, .fa, .fas, .far, .fal, .fab {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-style: normal !important;
  display: inline-block !important;
  visibility: visible !important;
}

/* ✅ FAQ 숏코드, 아코디언 표시 강제 */
.wpsm_ac, .wpsm_ac * {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ✅ 기본 레이아웃 */
.site-content {
  padding-top: 20px;
}

img {
  margin-bottom: 22px;
}

.single .site-main {
  max-width: 750px;
  margin: 0 auto;
  padding: 20px 15px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-radius: 8px;
}

.single .entry-content {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  word-break: keep-all;
  font-weight: 400;
}

/* ✅ 제목 스타일 – h2, h3 동일, h1 유지 */
.single .entry-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 1.2em 0 1em !important;
}

.single .entry-content h2,
.single .entry-content h3 {
  font-size: 26px;
  font-weight: 600;
  margin: 1.2em 0 1em !important;
  padding: 10px 15px;
  background: #f5f5f5;
  border-left: 5px solid #4CAF50;
  border-radius: 4px;
}

/* ✅ h3.B 추가 클래스 스타일 유지 */
.single .entry-content h3.B,
.single .entry-content h3.wp-block-heading.B,
.wp-block h3.B,
.wp-block h3.wp-block-heading.B {
  font-weight: 700 !important;
  border-left: 4px solid #d7eaf4 !important;
  padding-left: 8px !important;
  margin: 1em 0 !important;
  background: none !important;
  border-radius: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  color: #333 !important;
  display: block !important;
}

/* ✅ 카드형 그룹 블록 (추가 클래스: card) */
.card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  margin: 20px 0;
}

/* ✅ 이미지 */
.single .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ✅ 테이블 */
.single .entry-content table {
  width: auto;
  max-width: 100%;
  margin: 20px auto;
  border-collapse: collapse;
  border: 2px solid #444;
}

.single .entry-content table th,
.single .entry-content table td {
  padding: 12px;
  text-align: center;
  border: 1px solid #ddd;
}

.single .entry-content table th {
  background-color: #f4f4f4;
  font-weight: bold;
  color: #333;
}

.single .entry-content table tr:nth-child(even) {
  background-color: #fafafa;
}

.single .entry-content table tr:hover {
  background-color: #f1f1f1;
}

/* ✅ 리스트 */
.single .entry-content ul,
.single .entry-content ol {
  padding-left: 30px;
  margin-left: 10px;
  margin-bottom: 2em;
}

.single .entry-content ul ul,
.single .entry-content ul ol,
.single .entry-content ol ul,
.single .entry-content ol ol {
  padding-left: 20px;
  margin-left: 5px;
  margin-bottom: 1.5em;
}

/* ✅ 버튼 */
.single .entry-content .wp-block-button__link {
  margin: 20px 0 40px;
}

/* ✅ 플로팅 버튼 */
.fixed-float-btn {
  position: fixed;
  bottom: 20px;
  max-width: 750px;
  width: calc(100% - 40px);
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 0;
  background-color: #1e88e5;
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: background-color 0.3s ease;
  user-select: none;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
}

/* ✅ 그룹 블럭 내부 공백 제거 */
.wp-block-group__inner-container {
  padding: 0 !important;
}

/* ✅ PC 전용 스타일 */
@media screen and (min-width: 769px) {
  .fixed-float-btn.adjust-left {
    transform: translateX(calc(-50% - 225px));
  }

  .fixed-float-btn {
    white-space: normal;
    word-break: keep-all;
  }
}

/* 📱 모바일 최적화 */
@media screen and (max-width: 768px) {
  .single .site-main {
    max-width: 100%;
    padding: 0 12px;
    margin: 0 auto;
    box-shadow: none;
    border-radius: 0;
  }

  .single .inside-article {
    padding: 0 18px !important;
  }

  .single .entry-content {
    font-size: 1.15rem;
    line-height: 32.5px;
    letter-spacing: 0px;
    font-weight: 400;
    word-break: normal;
  }

  .single .entry-content p {
    margin-bottom: 1.2em;
  }

  .single .entry-content li {
    margin-bottom: 0.6em;
  }

  .single .entry-content h1 {
    font-size: 1.75rem;
    line-height: 1.25;
    margin-bottom: 0.6em;
    letter-spacing: -0.015em;
  }

  .single .entry-content h2,
  .single .entry-content h3 {
    font-size: 1.44rem;
    line-height: 1.3;
    margin-bottom: 0.5em;
    letter-spacing: -0.015em;
    padding: 10px 15px;
    background: #f5f5f5;
    border-left: 5px solid #4CAF50;
    border-radius: 4px;
  }

  .single .entry-content h3.B,
  .single .entry-content h3.wp-block-heading.B,
  .wp-block h3.B,
  .wp-block h3.wp-block-heading.B {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    border-left: 4px solid #d7eaf4 !important;
    padding-left: 8px !important;
    margin: 1em 0 !important;
    background: none !important;
    border-radius: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    color: #333 !important;
    display: block !important;
  }

  .single .entry-content .wp-block-button__link {
    margin: 16px 0 40px;
  }

  .single .entry-content table {
    width: 100%;
    margin: 20px auto;
  }

  .single .entry-content table th {
    font-size: 14px;
    padding: 8px;
  }

  .single .entry-content table td {
    font-size: 13px;
  }

  .single .entry-content ul,
  .single .entry-content ol {
    padding-left: 25px;
    margin-left: 8px;
    margin-bottom: 1.5em;
  }

  .single .entry-content ul ul,
  .single .entry-content ul ol,
  .single .entry-content ol ul,
  .single .entry-content ol ol {
    padding-left: 15px;
    margin-left: 4px;
    margin-bottom: 1.2em;
  }

  .fixed-float-btn {
    font-size: 15px;
  }
}
