/*
 Theme Name:   Kadence Child
 Theme URI:    https://example.com/kadence-child/
 Description:  Kadence Child Theme
 Author:       Your Name
 Author URI:   https://example.com
 Template:     kadence
 Version:      1.0.2
 Tags:         customizable, modern, responsive-layout, gutenberg, header builder, footer builder
 Text Domain:  kadencechild
*/

/* Theme customization starts here
-------------------------------------------------------------- */

/* 1. 부드럽게 나타나기 */
.fade-in-text {
	display: inline-block;
  opacity: 0;
  animation: fadeInText 0.9s ease forwards;
}

@keyframes fadeInText {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 2. 아래에서 살짝 올라오며 나타나기 */
.fade-up-text {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUpText 0.8s ease-out forwards;
}

@keyframes fadeUpText {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3. 살짝 커지며 나타나기 */
.zoom-in-text {
  opacity: 0;
  transform: scale(0.96);
  animation: zoomInText 0.7s ease-out forwards;
}

@keyframes zoomInText {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-title {
  font-size: 48px;
  line-height: 1.2;
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 36px;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 28px;
    line-height: 1.3;
  }
}

.word-overflow, .word-overflow * {
  word-break: keep-all;
  overflow-wrap: break-word;
}



/* header */
.hero-cover {
  min-height: 30vh !important;
}

@media (max-width: 767px) {
  .hero-cover {
    min-height: 18vh !important;
  }
}
/* =====================================================
   경희소유한의원 — 공통 스타일
   ===================================================== */

/* — 1. 래퍼 — */
.khs-wrap {
  max-width: 980px;
  margin: 0 auto;
  font-family: 'Pretendard', -apple-system, 'Malgun Gothic', sans-serif;
  color: #1a1a1a;
  padding: 20px 16px 0px;
}

/* — 2. 페이지 타이틀 — */
.khs-page-title {
  text-align: center;
  margin: 20px 0 80px;
}
.khs-page-title--with-lead {
  margin-bottom: 60px;
}
.khs-page-title .eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: #2d5f3f;
  margin-bottom: 8px;
  font-weight: 500;
}
.khs-page-title h1 {
  font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  font-size: 30px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.02em;
}
.khs-page-title--with-lead h1 {
  margin-bottom: 16px;
}
.khs-page-title .lead {
  font-size: 19px;
  line-height: 1.7;
  color: #2d5f3f;
  font-weight: 500;
  margin: 0;
}

/* — 3. 좌우 교차 섹션 — */
.khs-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 100px;
  position: relative;
}
.khs-section.reverse .khs-img  { order: 2; }
.khs-section.reverse .khs-text { order: 1; }

/* — 4. 이미지 박스 — */
.khs-img {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.khs-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.khs-img .placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f0f0ec;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 14px;
  letter-spacing: 0.1em;
}

/* — 5. 텍스트 컬럼 — */
.khs-text { position: relative; }
.khs-text .num {
  font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  font-size: 96px;
  font-weight: 700;
  color: #f0f0ec;
  position: absolute;
  top: -28px;
  left: -12px;
  line-height: 1;
  user-select: none;
  z-index: 0;
}
.khs-text .inner { position: relative; z-index: 1; }
.khs-text .eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: #7a8c7f;
  font-weight: 500;
  margin-bottom: 14px;
}
.khs-text h2 {
  font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}
.khs-text .lead {
  font-size: 17px;
  line-height: 1.75;
  color: #2d5f3f;
  font-weight: 500;
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e5e5;
}
.khs-text .desc {
  font-size: 17px;
  line-height: 1.75;
  color: #4a4a4a;
  margin: 0 0 18px;
}
.khs-text .desc:last-child { margin-bottom: 0; }
.khs-text .sub-heading {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 24px 0 12px;
  padding-top: 20px;
  border-top: 1px solid #ececec;
}

/* — 6. 구분선 — */
.khs-divider {
  width: 40px;
  height: 2px;
  background: #2d5f3f;
  margin: 0 0 80px;
}

/* — 7. 인트로 블록 — */
.khs-intro {
  max-width: 720px;
  margin: 0 auto 80px;
}
.khs-intro--center { text-align: center; }
.khs-intro p {
  font-size: 17px;
  line-height: 1.9;
  color: #4a4a4a;
  margin: 0 0 18px;
}
.khs-intro p:last-child { margin-bottom: 0; }
.khs-intro .sub-lead {
  font-size: 17px;
  line-height: 1.75;
  color: #2d5f3f;
  font-weight: 500;
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e5e5;
}

/* — 8. 마무리 박스 — */
.khs-closing {
  background: #f7f7f5;
  border-radius: 4px;
  padding: 60px 56px;
  margin-bottom: 40px;
}
.khs-closing .sub {
  font-size: 13px;
  letter-spacing: 0.3em;
  color: #7a8c7f;
  font-weight: 500;
  display: block;
  margin-bottom: 20px;
}
.khs-closing h2 {
  font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 28px;
}
.khs-closing p {
  font-size: 17px;
  line-height: 1.9;
  color: #4a4a4a;
  margin: 0 0 18px;
}
.khs-closing p:last-child { margin-bottom: 0; }

/* — 9. 프로그램 서브타이틀 — */
.khs-program-title {
  text-align: center;
  margin-bottom: 60px;
}
.khs-program-title h2 {
  font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  font-size: 30px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.02em;
}
.khs-program-title p {
  font-size: 17px;
  line-height: 1.8;
  color: #4a4a4a;
  margin: 12px 0 0;
}

/* — 10. 태그 칩 — */
.khs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.khs-tags span {
  display: inline-block;
  padding: 7px 14px;
  font-size: 14px;
  color: #2d5f3f;
  background: #f4f7f3;
  border-radius: 100px;
  font-weight: 500;
}

/* — 11. 뱃지 — */
.khs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  margin-bottom: 20px;
  padding: 8px 14px;
  background: #f4f7f3;
  border-radius: 4px;
  font-size: 14px;
  color: #2d5f3f;
  font-weight: 500;
}

/* — 12. 카드 그리드 — */
.khs-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.khs-grid--3-lg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 100px;
}
.khs-grid--5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 22px;
}

/* — 13. 카드 기본 — */
.khs-card {
  --accent: #2d5f3f;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  text-align: center;
  cursor: default;
  transition: all .3s ease;
  overflow: hidden;
  background: #fff;
}
.khs-card:hover {
  border-top: 2px solid var(--accent);
  box-shadow: 0 6px 20px rgba(0,0,0,.07);
  transform: translateY(-2px);
}
.khs-card .circle {
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: background .3s, color .3s;
}
.khs-card:hover .circle {
  background: var(--accent);
  color: #fff;
}
.khs-card .kind {
  display: block;
  font-weight: 600;
  color: #1a1a1a;
}
.khs-card .effect {
  color: #6a6a6a;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, margin-top .4s ease;
  text-align: left;
}

/* 13a. 카드 대형 (treatment1) */
.khs-card--lg { padding: 24px 16px 18px; }
.khs-card--lg .circle { width: 52px; height: 52px; font-size: 22px; margin-bottom: 12px; }
.khs-card--lg .kind { font-size: 16px; font-weight: 700; margin-bottom: 0; }
.khs-card--lg .effect { font-size: 14px; margin-top: 10px; }
.khs-card--lg:hover .effect { max-height: 160px; margin-top: 10px; }

/* 13b. 카드 소형 (treatment2 · treatment4) */
.khs-card--sm { padding: 18px 10px 14px; }
.khs-card--sm .circle { width: 46px; height: 46px; font-size: 20px; margin-bottom: 10px; }
.khs-card--sm .kind { font-size: 14.5px; }
.khs-card--sm .effect { display: block; font-size: 14px; line-height: 1.55; margin-top: 8px; }
.khs-card--sm:hover .effect { max-height: 120px; margin-top: 8px; }

/* 13c. 카드 색상 변형 */
.khs-card--green { --accent: #2d5f3f; }
.khs-card--sage  { --accent: #7a8c7f; }
.khs-card--warm  { --accent: #9e7070; }
.khs-card--char  { --accent: #5c5c5c; }
.khs-card--gold  { --accent: #b08a4e; }

/* =====================================================
   가격표 컴포넌트 (noncover)
   ===================================================== */

.khs-price-wrap {
  max-width: 820px;
  margin: 0 auto;
  font-family: 'Pretendard', -apple-system, 'Malgun Gothic', sans-serif;
  color: #1a1a1a;
}
.khs-price-title {
  text-align: center;
  margin: 20px 0 20px;
}
.khs-price-title h1 {
  font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
}
.khs-price-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.khs-price-header h2 {
  font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: 0.02em;
}
.khs-price-unit {
  font-size: 14px;
  color: #9a9a9a;
  letter-spacing: 0.01em;
}
.khs-price-divider {
  width: 100%;
  height: 1px;
  background: #2d5f3f;
  margin-bottom: 0;
}
.khs-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
}
.khs-price-table thead th {
  font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  font-size: 14px;
  font-weight: 600;
  color: #9a9a9a;
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid #e5e5e5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
}
.khs-price-table thead th.khs-th-price { text-align: right; }
.khs-price-table td {
  padding: 18px 20px;
  border: none;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: middle;
}
.khs-price-table tr:last-child td { border-bottom: 1px solid #e5e5e5; }
.khs-price-table td.khs-cat {
  font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  font-size: 17px;
  font-weight: 600;
  color: #2d5f3f;
  white-space: nowrap;
  vertical-align: top;
  padding-top: 20px;
}
.khs-price-table td.khs-desc {
  color: #3a3a3a;
  line-height: 1.5;
}
.khs-price-table td.khs-desc .khs-sub {
  display: block;
  font-size: 14px;
  color: #9a9a9a;
  margin-top: 3px;
  line-height: 1.5;
}
.khs-price-table td.khs-price {
  text-align: right;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 500;
  color: #1a1a1a;
  font-feature-settings: 'tnum';
  letter-spacing: 0;
}
.khs-price-table tr.khs-section {
  display: table-row;
}
.khs-price-table tr.khs-section td {
  background: #fafaf8;
  font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  font-size: 14px;
  font-weight: 600;
  color: #2d5f3f;
  letter-spacing: 0.25em;
  padding: 13px 20px;
  border-top: 1px solid #2d5f3f;
  border-bottom: 1px solid #2d5f3f;
  text-align: center;
}
.khs-price-notice {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #9a9a9a;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* =====================================================
   반응형
   ===================================================== */

@media (max-width: 900px) {
  .khs-section {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 70px;
  }
  .khs-section.reverse .khs-img,
  .khs-section.reverse .khs-text { order: 0; }
  .khs-text .num { font-size: 72px; top: -20px; }
  .khs-closing { padding: 40px 24px; }

  .khs-grid--3-lg { grid-template-columns: repeat(2, 1fr); }
  .khs-card--lg .effect { max-height: 160px !important; margin-top: 10px !important; }
  .khs-card--lg:hover { transform: none; }

  .khs-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .khs-card--sm .effect { max-height: 120px !important; margin-top: 8px !important; }
  .khs-card--sm:hover { transform: none; }

  .khs-price-table { font-size: 16px; }
  .khs-price-table td { padding: 14px 12px; }
  .khs-price-table td.khs-cat { font-size: 16px; padding-top: 16px; width: 28%; }
  .khs-price-table td.khs-price { font-size: 16px; }
  .khs-price-header h2 { font-size: 21px; }
}

@media (max-width: 480px) {
  .khs-page-title { margin-bottom: 36px; }
  .khs-page-title--with-lead { margin-bottom: 28px; }
  .khs-intro--center { text-align: left; }
  .khs-page-title h1 { font-size: 28px; }
  .khs-text h2 { font-size: 26px; }
  .khs-closing h2 { font-size: 26px; }
  .khs-program-title h2 { font-size: 26px; }
  .khs-grid--3 { grid-template-columns: 1fr 1fr; }
  .khs-grid--5 { grid-template-columns: repeat(2, 1fr); }

  .khs-price-table { font-size: 15px; }
  .khs-price-table td { padding: 12px 10px; }
  .khs-price-table td.khs-cat { font-size: 15px; }
  .khs-price-table td.khs-price { font-size: 15.5px; }
  .khs-price-table td.khs-desc .khs-sub { font-size: 14px; }
}
