/*
 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
-------------------------------------------------------------- */

html { scroll-behavior: smooth; }

/* 흰색 배경을 따뜻한 톤으로 변경 */
:root {
  --global-palette9: #fdfdfd !important;
}

/* 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;
  }
}

/* 1. 부드럽게 나타나기 */
.fade-in-image {
	opacity: 0;
  animation: fadeInImage 1s ease forwards;
}

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

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

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

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

@keyframes zoomInImage {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes riseUpOnView {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rise-up-on-view {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
}

.rise-up-on-view.is-visible {
  animation: riseUpOnView 1.2s ease-out forwards;
  animation-delay: 0.25s;
}

.custom-columns-46 {
  display: flex;
  gap: 24px;
}

.custom-columns-46 > .wp-block-column:first-child {
  flex: 0 0 40%;
}

.custom-columns-64 > .wp-block-column:last-child {
  flex: 0 0 60%;
}

@media (max-width: 767px) {
  .custom-columns-46 {
    flex-direction: column;
  }

  .custom-columns-46 > .wp-block-column:first-child,
  .custom-columns-64 > .wp-block-column:last-child {
    flex: 0 0 100%;
  }
}


.my-bottom-stack {
  margin-top: auto;
}

.no-gap-cols {
  margin: 0 !important;
  padding: 0 !important;
}

.no-gap-cols > .wp-block-column {
  margin: 0 !important;
  padding: 0 !important;
}


/* no-gap */
.no-gap, .no-gap * {
	margin: 0 !important;
  	padding: 0 !important;
}

.no-margin, .no-margin * {
	margin: 0 !important;
}

.no-padding, .no-padding * {
  	padding: 0 !important;
}

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

@media (max-width: 767px) {
  .hero-cover {
    min-height: 18vh !important;
  }
}


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

/* font setting */
@font-face {
  font-family: 'Pretendard';
  src: url('/wp-content/uploads/font/PretendardVariable.woff2') format('woff2');
	font-style: normal;
}
@font-face {
  font-family: 'AmaticSC-Bold';
  src: url('/wp-content/uploads/font/amaticsc-bold-webfont.woff2') format('woff2');
	font-style: normal;
}
@font-face {
  font-family: 'AmaticSC-Regular';
  src: url('/wp-content/uploads/font/amaticsc-regular-webfont.woff2') format('woff2');
	font-style: normal;
}
@font-face {
  font-family: 'GangwonEduModu-Light';
  src: url('/wp-content/uploads/font/GangwonEduModu-Light.woff2') format('truetype');
	font-style: normal;
}

body,
body p, body li, body span, body div,
body h1, body h2, body h3, body h4, body h5, body h6,
body td, body th, body a, body button {
  word-break: keep-all;
  overflow-wrap: break-word;
}

body,
h1, h2, h3, h4, h5, h6,
p, li, a,
button, input, textarea, select {
  font-family:'Pretendard', 'GangwonEduModu-Light','AmaticSC-Bold', sans-serif !important;
}

.GangwonEdu,
.GangwonEdu * {
	  font-family:'GangwonEduModu-Light','Pretendard', sans-serif !important;
}


.AmaticSC-R,
.AmaticSC-R * {
	  font-family:'AmaticSC-Regular','Pretendard', sans-serif !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 !important;
}

/* — 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: 14px;
  letter-spacing: 0.3em;
  color: #2d5f3f;
  margin-bottom: 14px;
  font-weight: 500;
}
.khs-page-title h1 {
  font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  font-size: 34px;
  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: pointer;
  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;
}
@keyframes khs-effect-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.khs-card .effect {
  display: none;
  color: #6a6a6a;
  line-height: 1.6;
  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; }
.khs-card--lg:hover .effect,
.khs-card--lg.is-open .effect { display: block; margin-top: 10px; max-height: none; overflow: visible; animation: khs-effect-in 0.25s ease forwards; }
.khs-card--lg.is-open,
.khs-card--sm.is-open,
.khs-card--lg:hover,
.khs-card--sm:hover { overflow: visible; }

/* 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; word-break: keep-all; white-space: nowrap; }
.khs-card--sm .effect { font-size: 14px; line-height: 1.55; }
.khs-card--sm:hover .effect,
.khs-card--sm.is-open .effect { display: block; margin-top: 8px; max-height: none; overflow: visible; animation: khs-effect-in 0.25s ease forwards; }

/* 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 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-card--lg:hover { transform: none; }
  .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: 680px) {
  .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-grid--5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .khs-page-title { margin-bottom: 28px; }
  .khs-page-title--with-lead { margin-bottom: 20px; }
  .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-title h1 { font-size: 28px; }
  .khs-price-header h2 { font-size: 18px; }
  .khs-price-table { font-size: 14px; }
  .khs-price-table thead th { padding: 10px 5px; font-size: 12px; }
  .khs-price-table thead th:first-child { width: 20% !important; }
  .khs-price-table thead th:last-child { width: 28% !important; }
  .khs-price-table td { padding: 10px 5px; }
  .khs-price-table td.khs-cat {
    font-size: 14px;
    white-space: normal;
    word-break: keep-all;
  }
  .khs-price-table td.khs-price {
    font-size: 14px;
    white-space: normal;
    word-break: keep-all;
  }
  .khs-price-table td.khs-desc { font-size: 14px; word-break: keep-all; }
  .khs-price-table td.khs-desc .khs-sub { font-size: 12px; }
}


/* 게시판 페이지 박스 제거 */
.page-id-62 .entry.single-entry {
  box-shadow: none !important;
}
.page-id-62 .content-bg {
  background: transparent !important;
}
.page-id-62 .entry-content-wrap {
  padding: 0 !important;
}


/* =====================================================
   TODO: 수정 필요한 오류
   =====================================================
   1. [line 175] .custom-columns-64 > .wp-block-column:last-child
      → .custom-columns-64 클래스가 정의되지 않음. .custom-columns-46 이어야 할 가능성 높음.

   2. [line 250] @font-face GangwonEduModu-Light
      → 파일은 .woff2 인데 format('truetype') 으로 잘못 지정됨. format('woff2') 로 수정 필요.
   ===================================================== */
