/* ==========================================================================
   WZ-EDU-002 그누보드 보정 — 원본 style.css 뒤에 붙습니다. 원본 규칙은 고치지 않고, 원본에 없는 것만 더합니다.
   1) 원본 화면을 키트 공통 기본값에서 지킴(폼 요소 글꼴·긴 낱말 줄바꿈·키트 .btn 높이·캡차 그림)
   2) 그누보드 때문에 바뀐 태그·지워진 인라인 style의 원본 모양(소식 상세 머리 글자·본문 제목 h1·글 본문·목록 요약·태그 줄·댓글)
   3) 그누보드가 더하는 것(캡차·개인정보 동의·관리자 버튼·고객센터 화면 틀·탭·쪽 번호·사진 카드)을 원본 모양으로
   ========================================================================== */

/* 1) 키트 wz-base.css(레이어)의 폼 요소 font: inherit가 원본이 정하지 않은 단추·입력칸 줄 높이·굵기를 바꾸지 않게(우선순위 0 — 원본 CSS가 정한 값은 그대로 이김).
   원본에 없는 그누보드 화면 틀(.ds-g5)은 키트 기본값 유지 */
:where(.wz-original) :where(.topbar-area, .site-header, .mobile-drawer, .site-footer, .search-popup-overlay, main > :not(.ds-g5)) :where(button, input, select, textarea) { font: revert; font-family: inherit; }
/* 키트 body { overflow-wrap: break-word }는 원본에 없음 — 원본 화면은 원본대로(원본 body는 word-break: keep-all), 그누보드 화면 틀만 키트 값 */
body.wz-original { overflow-wrap: normal; }
.ds-g5 { overflow-wrap: break-word; }
/* 키트 g5-compat(그누보드 default.css)의 .btn(높이·줄 높이 35px)이 원본 .btn(위아래 여백 15px로 높이를 정함)을 납작하게 하지 않게 — 우선순위 0, 원본 크기 class가 이김 */
:where(.wz-original) :where(.btn) { height: auto; line-height: inherit; }
/* 원본 img { height: auto }가 그누보드 자동등록방지 숫자 그림(1×1 크기 속성)을 지움 → 그림 높이 고정(키트 wz-fit 글쓰기·회원가입 포함) */
#captcha #captcha_img { width: auto; height: 50px; display: inline-block; }

/* 2) 그누보드 때문에 바뀐 태그의 원본 모양
   소식 상세 머리: 원본 h1 "소식 상세 게시글"은 그대로 보이되 h1이 아닌 글자(이 화면의 h1 = 본문 글 제목). 원본 h1 태그 규칙(h1~h6) 값을 같은 값으로 */
.ds-h1 { font-family: var(--ks-font-heading); line-height: 1.25; }
/* 상세 본문 제목: 원본 h2 자리를 h1로 — 원본 .blog-standard-post h2 값 */
.blog-standard-post h1.ds-post-title { font-size: 28px; margin-bottom: 14px; }
/* 글 본문: 그누보드 HTML 필터가 지운 원본 인라인 style 값(blog-details.html) */
.ds-post > p:not([class]) { margin-bottom: 18px; }
.ds-post > h3:not([class]) { font-size: 23px; margin-bottom: 14px; }
.ds-post > .pricing-check-list { margin-bottom: 26px; }
.ds-post > .form-grid-2 { margin-bottom: 26px; }
.ds-post > .form-grid-2 img { border-radius: 18px; object-fit: cover; width: 100%; }
.ds-post-img { margin: 0 0 26px; }
.ds-post-img img, .ds-post > p img { max-width: 100%; height: auto; border-radius: 18px; }
.ds-post > ul:not([class]) { list-style: disc; padding-left: 1.25rem; margin-bottom: 18px; }
.ds-post > ol:not([class]) { list-style: decimal; padding-left: 1.25rem; margin-bottom: 18px; }
.ds-post-tags { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 20px 0; border-top: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0; margin-bottom: 36px; }
.ds-post-tags .tag-cloud strong { margin-right: 8px; color: var(--ks-heading); }
/* 큰 사진 목록 요약(원본 인라인 margin-bottom:22px) */
.ds-summary { margin-bottom: 22px; }
/* 게시판 사진 칸: 관리자가 올린 사진 비율이 원본 칸과 달라도 원본 칸 비율로 */
.blog-card-thumb img { aspect-ratio: 840 / 540; object-fit: cover; width: 100%; }
.blog-card-thumb .wz-noimg, .blog-standard-thumb .wz-noimg { display: flex; width: 100%; height: 100%; aspect-ratio: 840 / 540; }
.recent-post-item .wz-noimg { width: 74px; height: 74px; flex-shrink: 0; border-radius: 14px; }
/* 댓글: 답글 들여쓰기, 이름 첫 글자 사진(원본 학부모 사진 60px 원), 관리 단추 */
.ds-cmt-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ds-cmt-letter { display: inline-flex; align-items: center; justify-content: center; background: var(--ks-yellow-soft); color: var(--ks-orange); font-family: var(--ks-font-heading); font-weight: 800; font-size: 22px; }
.ds-cmt-reply { margin-left: calc(var(--ds-depth, 1) * 36px); border-left: 4px solid var(--ks-yellow-soft); }
.ds-cmt-act { display: flex; gap: 14px; margin-top: 8px; font-size: 13.5px; font-weight: 700; }
.ds-cmt-act:empty { display: none; }
.ds-cmt-act a { color: var(--ks-orange); }
.ds-check-row { margin-bottom: 18px; }
.ds-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ks-heading); cursor: pointer; }
.ds-check input[type="checkbox"], .ds-consent input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--ks-orange); vertical-align: -3px; }
@media (max-width: 575px) { .ds-cmt-reply { margin-left: 18px; } }

/* 3-1) 원본에 없는 그누보드 화면(고객센터 게시판·1:1 문의·회원·검색·약관)이 들어가는 원본 기본 구역 */
.ds-g5 { padding: 90px 0 100px; min-height: 420px; }
@media (max-width: 991px) { .ds-g5 { padding: 64px 0 72px; } }
.ds-g5 > .container > :first-child { margin-top: 0; }
.ds-g5 :where(#bo_v_con, .wz-fit-view__body, .wz-content, #ctt_con) :where(table) { width: auto; max-width: 100%; }
.ds-g5 :where(#bo_v_con, .wz-fit-view__body, .wz-content, #ctt_con) :where(ul) { list-style: disc; padding-left: 1.25rem; }
.ds-g5 :where(#bo_v_con, .wz-fit-view__body, .wz-content, #ctt_con) :where(ol) { list-style: decimal; padding-left: 1.25rem; }

/* 3-2) 입학 원서·학부모 문의·댓글 폼: 그누보드 캡차·개인정보 동의를 원본 입력칸 모양으로. 자동등록방지는 숫자 그림·듣기·새로고침 한 줄, 입력칸은 다음 줄 전체 폭 */
.ds-captcha #captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 0; padding: 0; margin: 0; }
.ds-captcha #captcha legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ds-captcha #captcha #captcha_img { order: 1; height: 50px; border: 1px solid #e2d9c5; border-radius: 10px; background: #fff; }
.ds-captcha #captcha #captcha_mp3,
.ds-captcha #captcha #captcha_reload { width: 50px; height: 50px; border: 1px solid #e2d9c5; border-radius: 10px; background-color: #fdf8ec; }
.ds-captcha #captcha #captcha_mp3 { order: 2; }
.ds-captcha #captcha #captcha_reload { order: 3; }
.ds-captcha #captcha #captcha_key { order: 4; flex: 1 1 100%; display: block; width: 100%; height: auto; padding: 15px 20px; margin: 0; font-size: 15px; line-height: 1.4; color: var(--ks-heading); background: #fdf8ec; border: 1px solid #e2d9c5; border-radius: 10px; }
.ds-captcha #captcha #captcha_key:focus { border-color: var(--ks-orange); background: #fff; outline: 0; }
.ds-captcha #captcha #captcha_info { order: 5; flex-basis: 100%; font-size: 13px; line-height: 1.5; color: var(--ks-body); }
.ds-consent { font-size: 14px; line-height: 1.6; color: var(--ks-body); text-align: left; }
.ds-consent label { display: inline; cursor: pointer; }
.ds-consent a { color: var(--ks-orange); text-decoration: underline; }
/* 문의 보기(관리자) 위 칸 요약 */
.ds-inquiry-info { margin: 0 0 28px; padding: 24px 28px; }
.ds-inquiry-info p { margin: 0; line-height: 1.8; }
/* 관리자에게만 보이는 버튼·빈 목록 안내 */
.ds-admin { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin: 24px 0; }
.blog-grid-2 + .ds-admin, .faq-accordion + .ds-admin { justify-content: center; }
.ds-empty { width: 100%; padding: 40px 15px; text-align: center; color: var(--ks-body); }
.blog-grid-3 > .ds-empty, .blog-grid-2 > .ds-empty { grid-column: 1 / -1; }

/* 3-3) 고객센터·회원 화면 버튼·상자(원본 부품 — design.config.php 'ui') */
/* 보조 버튼: 원본 .btn 모양을 흰 바탕 코랄 테두리로(마우스를 올리면 원본처럼 먹색 원이 채움) */
.btn.ds-btn-line { background-color: #fff; color: var(--ks-orange); border: 1.5px solid var(--ks-orange); padding: 13.5px 28.5px; }
.btn.ds-btn-line:hover { color: #fff; border-color: var(--ks-heading); }
.wz-fit-btn.btn { min-height: 0; }
.ds-g5 .form-box-card { padding: 32px; }
@media (max-width: 575px) { .ds-g5 .form-box-card { padding: 24px 20px; } }
.ds-g5 #wr_content.form-control, .ds-g5 #reg_mb_signature { background: #fdf8ec; border: 1px solid #e2d9c5; border-radius: 10px; }
.ds-g5 #captcha #captcha_key { height: 50px; padding: 0 16px; font-size: 15px; background: #fdf8ec; border: 1px solid #e2d9c5; border-radius: 10px; }
.ds-g5 #captcha #captcha_mp3, .ds-g5 #captcha #captcha_reload { width: 50px; height: 50px; border-radius: 10px; }
.ds-g5 .blog-cat-badge { vertical-align: 1px; }

/* 3-4) 분류 탭·고객센터 묶음 메뉴(원본 사이드바 태그 .tag-cloud a — 선택은 코랄) */
.ds-tabs { justify-content: center; margin: 0 0 40px; }
.ds-tabs .ds-tab { display: inline-block; padding: 8px 16px; background: #fff; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ks-body-dark); }
.ds-tabs .ds-tab:hover, .ds-tabs .ds-tab.ds-on { background: var(--ks-orange); color: #fff; }

/* 3-5) 쪽 번호(원본 .ks-pagination — 고객센터 목록은 가운데) */
.ds-g5 .ks-pagination { justify-content: center; }
.ks-pagination .ds-page { text-decoration: none; }
.ks-pagination strong.ds-page { color: #fff; }

/* 3-6) 고객센터 사진 카드(키트 wz-fit 갤러리·웹진 = 원본 소식 카드 .blog-card) 3열 */
.ds-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 991px) { .ds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .ds-grid { grid-template-columns: 1fr; } }
.ds-post-card { position: relative; margin: 0; }
.ds-post-card .blog-card-thumb { position: relative; display: block; }
.ds-post-card .blog-card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.ds-post-card .blog-card-thumb .wz-noimg { aspect-ratio: 4 / 3; height: auto; }
.ds-post-badge { position: absolute; left: 14px; top: 14px; z-index: 2; }
.ds-post-text { margin-top: 8px; font-size: 14.5px; line-height: 1.7; color: var(--ks-body); }

/* 4) 반응형 보정(2026-10-28 — 원본 CSS는 그대로)
   4-1) 바닥 아래 띠 링크: 그누보드가 "이용약관"을 더해 4개가 되며 375에서 칸마다 글자가 2~3줄로 깨짐 → 좁은 폭에서는 줄바꿈 허용·글자 한 줄 */
@media (max-width: 767px) {
  .footer-bottom-links { flex-wrap: wrap; gap: 6px 16px; }
  .footer-bottom-links a { white-space: nowrap; }
}
/* 4-2) 머리(992~1199): 메뉴 7개 + 검색 + "입학 상담 신청" 단추가 한 줄에 안 들어가 단추가 화면 오른쪽 밖으로 잘림(원본 템플릿 결함 — 원본 1024에서도 같음) →
   그 폭에서만 메뉴 간격·글자·단추 여백을 줄임(1200 이상은 원본 그대로) */
@media (min-width: 992px) and (max-width: 1199px) {
  .nav-list { gap: 12px; }
  .nav-link { font-size: 14.5px; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-quote-desktop { padding: 13px 16px; font-size: 14px; }
}
/* 4-3) 서브 머리 제목: 원본 제목은 짧지만 그누보드 글 보기·고객센터 글 제목은 길어(12자 넘음) 휴대폰에서 3줄·기린 그림과 겹침 → 긴 제목만 휴대폰에서 글자를 줄임 */
@media (max-width: 767px) { .breadcrumb-title.ds-long { font-size: 24px; line-height: 1.35; padding: 0 8px; } }


/* ==========================================================================
   Kidschool (WZ-EDU-002) Interactive & Visual Fidelity Restoration
   ========================================================================== */

/* 1. Playful Tilted Cards (Programs & Teachers) + Straighten on Hover */
@media (min-width: 992px) {
  .programs-tilted-grid .program-tilted-card:nth-child(odd) {
    transform: rotate(-2.4deg);
  }
  .programs-tilted-grid .program-tilted-card:nth-child(even) {
    transform: rotate(2.2deg);
  }
  .programs-tilted-grid .program-tilted-card:hover {
    transform: rotate(0deg) translateY(-10px) !important;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.22);
  }
  .teachers-grid-3 .teacher-tilted-card:nth-child(1) .teacher-tilted-photo {
    transform: rotate(-2.6deg);
  }
  .teachers-grid-3 .teacher-tilted-card:nth-child(2) .teacher-tilted-photo {
    transform: rotate(1.8deg);
  }
  .teachers-grid-3 .teacher-tilted-card:nth-child(3) .teacher-tilted-photo {
    transform: rotate(-2.2deg);
  }
  .teachers-grid-3 .teacher-tilted-card .teacher-tilted-photo {
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.42s ease;
  }
  .teachers-grid-3 .teacher-tilted-card:hover .teacher-tilted-photo {
    transform: rotate(0deg) translateY(-8px) !important;
  }
}

/* 2. Floating Stationery & Nature Doodles (Reference Kidschool Fidelity) */
@keyframes ksFloatDoodle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(5deg); }
}
.about-section,
.programs-orange-sec,
.teachers-section {
  position: relative;
}
.about-section::before {
  content: "";
  position: absolute;
  left: 36px;
  top: 28px;
  width: 68px;
  height: 68px;
  background: url("../images/shapes/butterfly-doodle.svg") no-repeat center / contain;
  pointer-events: none;
  animation: ksFloatDoodle 5.5s ease-in-out infinite;
}
.programs-orange-sec::after {
  content: "";
  position: absolute;
  right: 42px;
  bottom: 58px;
  width: 96px;
  height: 96px;
  background: url("../images/shapes/pencil-eraser.svg") no-repeat center / contain;
  pointer-events: none;
  z-index: 2;
  animation: ksFloatDoodle 6.2s ease-in-out infinite reverse;
}
.teachers-section::before {
  content: "";
  position: absolute;
  left: 42px;
  top: 52px;
  width: 72px;
  height: 72px;
  background: url("../images/shapes/flower-doodle.svg") no-repeat center / contain;
  pointer-events: none;
  animation: ksFloatDoodle 6s ease-in-out infinite;
}

/* 3. Speech-Bubble Pointed Tails on Parent Testimonials */
.testi-bubble-card .testi-bubble-body {
  position: relative;
}
.testi-bubble-card .testi-bubble-body::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 42px;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 15px solid currentColor;
}
.testi-bubble-card.bubble-pink .testi-bubble-body::after {
  border-top-color: #f48ca7;
}
.testi-bubble-card.bubble-yellow .testi-bubble-body::after {
  border-top-color: #f9b001;
}
.testi-bubble-card.bubble-orange .testi-bubble-body::after {
  border-top-color: #fc4727;
}
.testimonial-bubbles-grid {
  cursor: grab;
}
.testimonial-bubbles-grid:active {
  cursor: grabbing;
}
.ks-testi-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.ks-testi-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: rgba(252, 71, 39, 0.25);
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}
.ks-testi-dot.is-active {
  background: #fc4727;
  transform: scale(1.3);
}

/* 4. Pulsing Video Play Buttons & Partner Hover Bounce */
@keyframes ksPulsePlay {
  0% { box-shadow: 0 0 0 0 rgba(252, 71, 39, 0.65); }
  70% { box-shadow: 0 0 0 24px rgba(252, 71, 39, 0); }
  100% { box-shadow: 0 0 0 0 rgba(252, 71, 39, 0); }
}
.video-play-center,
.video-play-inline .play-circle {
  animation: ksPulsePlay 2.2s infinite;
}
.partner-item img {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.partner-item:hover img {
  transform: translateY(-6px) scale(1.08);
}


/* FINAL-EDU002-CURSOR-REVEAL-FIX */
.dot,
.cursor-dot,
.custom-cursor {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
[data-reveal],
.js-reveal-ready [data-reveal]:not(.revealed),
.about-section .char,
.about-section .word,
.about-section h2,
.about-section p,
.about-section span,
.about-section strong {
  opacity: 1 !important;
}
