/* === Pinetree Hair Salon - WordPress Custom CSS === */

/* 본문 전체 */
.entry-content {
  font-size: 16px;
  line-height: 1.85;
  color: #333;
  max-width: 780px;
  margin: 0 auto;
}

/* H1 제목 */
.entry-content h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  margin: 0 0 24px 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

/* H2 소제목 */
.entry-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  padding: 0;
}

/* 이미지 공통 */
.entry-content img {
  width: 100%;
  max-width: 780px;
  height: auto;
  border-radius: 10px;
  margin: 0;
  display: block;
}

/* 피처드 이미지 & 본문 세로 이미지 높이 제한 */
.wp-post-image,
.attachment-post-thumbnail,
.entry-content .aligncenter,
.entry-content .wp-block-image img {
  max-height: 480px;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

/* 기본 본문 p태그 — 카드 스타일 없이 자연스러운 흐름 */
.entry-content > p {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 10px 0;
  box-shadow: none;
  font-size: 16px;
  line-height: 1.85;
  color: #333;
}

/* === 본문 섹션 카드 (통일 간격) === */
.section-card {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 22px 24px;
  margin: 12px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.section-card .section-card {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
  margin: 0;
  border-radius: 0;
}

.section-card-header {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  padding-left: 12px;
  border-left: 4px solid #2d6a4f;
  margin-bottom: 14px;
}

.section-card-body {
  font-size: 16px;
  color: #444;
  line-height: 1.85;
}

/* 카드 내부 p 스타일 제거 */
.section-card p,
.section-card-body p {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0 0 10px 0;
  box-shadow: none;
}

.faq-item p,
.salon-footer p,
.salon-footer div,
.pillar-cluster-links p {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* === Pexels 이미지 카드 (본문 흐름에 자연스럽게) === */
.pexels-image-card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
  box-shadow: none;
}

.pexels-image {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
}

.pexels-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* 모바일에서만 높이 제한 (PC는 자연 비율 그대로) */
@media (max-width: 600px) {
  .pexels-image img {
    max-height: 400px;
    object-fit: cover;
    object-position: top;
  }
}

/* 이미지 캡션 */
.pexels-image-card figcaption,
.wp-block-image figcaption {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin-top: 8px;
  line-height: 1.4;
}

/* === FAQ 섹션 (하나의 묶음 카드) === */
.faq-section {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0 12px 0;
}

/* FAQ 타이틀 (선택) */
.faq-section > .faq-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  padding-left: 12px;
  border-left: 4px solid #2d6a4f;
  margin-bottom: 16px;
}

/* FAQ 아이템: 카드 대신 구분선 */
.faq-item {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 14px 0;
  box-shadow: none;
  display: block;
  margin: 0;
  border-bottom: 1px solid #e8e8e8;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item .faq-item {
  border: none;
  padding: 0;
  margin-top: 12px;
  border-top: 1px solid #e8e8e8;
  padding-top: 12px;
}

.faq-item .faq-question {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.faq-item .faq-answer {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

/* === 내부링크 박스 === */
.internal-link-box {
  background: #f0f7f4;
  border-left: 4px solid #2d6a4f;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
}

.internal-link-box p {
  font-size: 14px;
  font-weight: 600;
  color: #1a3c2e;
  margin: 0 0 8px;
}

.internal-link-box ul {
  margin: 0;
  padding-left: 18px;
}

.internal-link-box li {
  margin: 4px 0;
  font-size: 14px;
}

.internal-link-box a {
  color: #2d6a4f;
  text-decoration: none;
}

.internal-link-box a:hover {
  text-decoration: underline;
}

/* === 살롱 푸터 === */
.salon-footer {
  background: linear-gradient(135deg, #1a3c2e 0%, #2d6a4f 100%);
  border: none;
  border-radius: 16px;
  padding: 28px;
  margin-top: 20px;
  color: white;
  position: relative;
  overflow: hidden;
}

.salon-footer::before {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.section-card .salon-footer,
.faq-item .salon-footer {
  margin-top: 12px;
  border-radius: 12px;
}

.salon-footer .salon-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.salon-footer .salon-name::after {
  content: "AVEDA";
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 1px;
}

.salon-footer .salon-info-row {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.9;
}

.salon-footer .salon-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 16px 0;
}

/* 예약 버튼 */
.booking-btn {
  display: inline-block;
  background: #03C75A;
  color: white !important;
  text-align: center;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  margin-top: 4px;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(3,199,90,0.2);
}

.booking-btn:hover {
  background: #02a94d;
  color: white !important;
}

/* === 필라 클러스터 링크 === */
.pillar-cluster-links {
  background: #f0f7f4;
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 20px;
}

.pillar-cluster-links h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 3px solid #2d6a4f;
}

.pillar-cluster-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pillar-cluster-links ul li {
  margin-bottom: 8px;
  font-size: 14px;
}

.pillar-cluster-links ul li::before {
  content: "- ";
  color: #2d6a4f;
  font-weight: 700;
}

.pillar-cluster-links ul li a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
}

/* === 모바일 최적화 === */
@media (max-width: 600px) {
  .section-card,
  .pexels-image-card {
    padding: 16px 18px;
    margin: 8px 0;
  }

  .faq-section {
    padding: 16px 18px;
  }

  .salon-footer {
    padding: 20px;
  }

  .entry-content > p {
    padding: 0;
    margin: 8px 0;
  }

  .entry-content h1 {
    font-size: 20px;
  }
}

/* === 실제 상담 사례 블록 — 3블록 구조 (방문계기/솔루션/후기) === */
.section-card-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: #2d6a4f;
  margin: 18px 0 8px 0;
  padding-left: 12px;
  border-left: 3px solid #2d6a4f;
  line-height: 1.4;
}

.section-card-body h4:first-child {
  margin-top: 4px;
}

.section-card-body h4 + p {
  margin-top: 0;
  padding-left: 15px;
  color: #3d3d3d;
}

/* 후기 문단 (h4 '후기' 다음의 인용형 p) */
.section-card-body h4 + p + p {
  padding-left: 15px;
  color: #444;
  font-style: italic;
  background: #f0f7f4;
  padding: 10px 14px;
  border-radius: 6px;
  border-left: 3px solid #2d6a4f;
  margin-top: 8px;
}

/* 모바일 */
@media (max-width: 600px) {
  .section-card-body h4 {
    font-size: 14px;
    margin: 14px 0 6px 0;
    padding-left: 10px;
  }
  .section-card-body h4 + p {
    padding-left: 12px;
  }
  .section-card-body h4 + p + p {
    padding: 8px 12px;
  }
}