/* 디자인 WZ-DENT-001(원본 모드) 그누보드 화면 보정 — 원본 dentco-style.css는 그대로 두고, 그누보드 때문에 생긴 차이와 원본에 없는 그누보드 화면만 맞춥니다.
   1) 키트 공통 CSS와 겹치는 것  2) 원본 페이지에 그누보드가 더한 것(메인 h1·폼·글 본문)  3) 고객센터·회원 화면(키트 wz-fit 스킨을 원본 부품 모양으로)  4) 반응형 보정 */

/* ---------- 1) 키트 공통 CSS와 겹치는 것 ---------- */
/* 키트 g5-compat.css의 그누보드 기본 .btn(height·line-height 35px)이 원본 알약 단추를 납작하게 만듦 — 원본이 정하지 않은 높이만 되돌림(kit/g5/ORIGINAL.md 11절) */
:where(.wz-original) :where(.btn) { height: auto; }
/* 키트 wz-base.css 폼 요소 글꼴 상속(font: inherit) — 원본 화면 영역의 단추·입력칸은 원본 CSS 값 그대로(9절) */
:where(.wz-original) :where(.header, .quickLinks-wrap, .footer, .modal-backdrop-custom, main > :not(.dent-g5)) :where(button, input, select, textarea) { font: revert; }
/* 원본 고정 머리(스크롤하면 .header-content.is-sticky — top:0)가 데모 안내 바 아래로(6절 데모 바) */
body:has(> .wz-demo-bar) .header-content.is-sticky { top: var(--wz-demo-offset, 0px); }
/* 원본 img { height: auto } 가 그누보드 캡차 그림(1×1 크기 속성)을 지움(16·18절) */
#captcha #captcha_img { width: auto; height: 48px; }

/* ---------- 2) 원본 페이지에 그누보드가 더한 것 ---------- */
/* 메인 첫 슬라이드 제목 h1(원본 div.slide-txt1 — 메인에 h1이 없음): 원본 h1 태그 규칙의 아래 여백·글자 간격 대신 .slide-txt1 값 */
h1.slide-txt1 { margin-top: 0; margin-bottom: 16px; letter-spacing: normal; }
/* 둘째 대표 번호(검색엔진 대표 연락처 검사 때문에 링크 없는 글자) — 원본 링크 색 */
.dent-tel2 { color: var(--dent-primary); }
/* 칼럼 목록 영상 단추(원본은 예약 모달을 여는 button — 칼럼 상세로 가는 링크) */
a.video-play-btn { text-decoration: none; font-size: 18px; }
/* 문의 폼(오시는 길 & 문의 — 실제 접수): 캡차·개인정보 동의 */
/* 캡차: 키트 wz_ui_captcha 모양(숫자 그림·듣기·새로고침 한 줄, 입력칸 다음 줄 전체 폭 — 키트 wz-fit/style.css와 같은 규칙, 테마 스킨 화면에는 그 파일이 없음) */
fieldset#captcha.wz-fit-cap { --wz-cap-h: var(--wz-captcha-h, 48px); display: flex; flex-wrap: wrap; align-items: center; gap: var(--wz-space-2); min-inline-size: 0; width: 100%; margin: 0; padding: 0; border: 0; }
.wz-fit-cap #captcha_img { order: 1; display: block; flex: none; width: auto; height: var(--wz-cap-h); max-width: calc(100% - 2 * var(--wz-cap-h) - 2 * var(--wz-space-2)); margin: 0; padding: 0; object-fit: contain; border: 1px solid var(--wz-color-border); border-radius: var(--wz-radius-sm); vertical-align: middle; }
.wz-fit-cap .wz-fit-cap__btn.wz-fit-cap__btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--wz-cap-h); height: var(--wz-cap-h); min-width: 0; min-height: 0; margin: 0; padding: 0; gap: 0; line-height: 1; text-indent: 0; cursor: pointer; }
.wz-fit-cap .wz-fit-cap__btn svg { display: block; flex: none; width: 20px; height: 20px; }
.wz-fit-cap #captcha_mp3 { order: 2; }
.wz-fit-cap #captcha_reload { order: 3; }
.wz-fit-cap .wz-fit-cap__key.wz-fit-cap__key { order: 4; flex: 1 1 100%; width: 100%; min-width: 0; margin: 0; text-align: center; font-weight: 700; letter-spacing: 0.3em; }
.wz-fit-cap #captcha_info { order: 5; flex: 1 1 100%; display: block; margin: 0; color: var(--wz-color-muted); font-size: var(--wz-text-sm); letter-spacing: 0; }
.wz-fit-cap #captcha_audio { order: 6; flex: 1 1 100%; display: block; width: 100%; max-width: 100%; margin: 0; } /* 휴대폰 접속(그누보드 is_mobile)은 듣기 단추 대신 재생 막대 */
.dent-captcha .wz-fit-cap legend, .dent-captcha .wz-fit-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dent-captcha .wz-fit-cap__btn { padding: 0; border-radius: 4px; }
.dent-consent { font-size: 13.5px; line-height: 1.6; margin: 4px 0 18px; }
.dent-consent input, .dent-check input { margin-right: 6px; vertical-align: -2px; accent-color: var(--dent-primary); }
.dent-check { font-size: 13.5px; }
/* 글 본문(그누보드 HTML 필터가 인라인 style을 지우므로 원본 상세 값을 class로) */
.dent-post .dent-post-h3 { margin-top: 30px; }
.dent-post .dent-post-h4 { margin-top: 22px; }
.dent-post .dent-post-row { margin: 24px 0; }
.dent-post .dent-post-row img { border-radius: 4px; width: 100%; }
.dent-post .dent-post-col { margin-top: 16px; }
.dent-post .dent-post-figure { margin-bottom: 22px; border-radius: 4px; overflow: hidden; }
.dent-post .dent-post-figure img { width: 100%; }
/* 댓글 사진이 없는 이름(첫 글자 동그라미 — 원본 54px 사진 자리) */
.dent-avatar { flex: 0 0 54px; width: 54px; height: 54px; border-radius: 50%; background: var(--dent-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--dent-font-head); font-weight: 600; font-size: 20px; }
.dent-empty { padding: 30px 0; text-align: center; color: var(--dent-light-text); }
.dent-admin { margin: 18px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.dent-tag { display: inline-block; padding: 3px 10px; background: var(--dent-bg-soft); color: var(--dent-text); font-size: 12px; font-weight: 500; border-radius: 3px; line-height: 1.5; }
/* 사진 없는 글 그림이 원본 카드 사진 칸을 채우게 */
.prd-card-img .wz-noimg, .blog-card-grid > .wz-noimg { aspect-ratio: 1 / 1; }
.blog-card-grid > .wz-noimg { aspect-ratio: auto; height: 260px; }
/* 상품 카드 사진(첨부 사진 비율과 상관없이 원본 정사각 칸) */
.prd-card-img img, .prd-main-img img, .prd-thumb-btn img { aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- 3) 고객센터·회원 화면(키트 wz-fit — design.config.php 'ui') ---------- */
.dent-g5 { color: var(--dent-text); }
:where(.dent-g5) :where(h2) { font-size: 26px; }
:where(.dent-g5) :where(h3) { font-size: 20px; }
.dent-label { display: block; font-size: 13.5px; font-weight: 500; color: var(--dent-heading); margin-bottom: 4px; }
.dent-card { background: var(--dent-bg-grey); padding: 26px 24px; border-radius: 4px; }
.dent-inquiry-info { margin-bottom: 20px; }
.dent-inquiry-info p { margin: 0; font-size: 14px; }
.dent-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.dent-tabs .filter-btn { text-decoration: none; display: inline-flex; align-items: center; }
.dent-tabs .filter-btn.active { border-color: var(--dent-primary); color: var(--dent-primary); box-shadow: 0 3px 12px rgba(30, 118, 189, 0.14); }
.dent-page-on { border-color: var(--dent-primary) !important; color: var(--dent-primary) !important; }
.dent-g5 .pagination .page-link { text-decoration: none; }
/* 사진 카드 격자(원본 바둑판 칼럼 카드 — 3열) */
.dent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.dent-grid .blog-card-grid { margin-bottom: 0; }
.dent-post-media img, .dent-post-media .wz-noimg { width: 100%; height: 220px; object-fit: cover; display: block; }
.dent-post-meta { font-size: 12.5px; color: #888; margin-bottom: 6px; }
.dent-post-title { font-family: var(--dent-font-head); font-size: 18px; font-weight: 600; color: var(--dent-heading); line-height: 1.35; margin: 0 0 8px; }
.dent-post-title a { color: inherit; }
.dent-post-text { font-size: 14px; margin: 0; }
.dent-post-badge { position: absolute; left: 12px; top: 12px; }
.dent-btn { min-height: 42px; }
.dent-g5 .btn-sm.dent-btn { min-height: 36px; }

/* ---------- 4) 반응형 보정 ---------- */
@media (max-width: 991.98px) {
  /* 태블릿: 한 쪽 9장이 3열로 딱 맞게(2열이면 마지막 한 장이 홀로 남음) */
  .dent-grid { gap: 20px; }
}
@media (max-width: 599.98px) {
  .dent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .dent-post-media img, .dent-post-media .wz-noimg { height: 160px; }
}
@media (max-width: 575.98px) {
  .dent-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Medin DentCo (WZ-DENT-001) Interactive & Visual Fidelity Restoration
   ========================================================================== */

/* 1. Hero Height & Continuous Ken Burns Zoom + Staggered Caption Entrance */
@media (min-width: 992px) {
  .main-slider {
    height: 700px;
  }
}
@keyframes dentKenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}
.main-slider .slide.active .img--holder {
  animation: dentKenBurns 6.5s ease-out forwards !important;
}
@keyframes dentSlideUpFade {
  0% { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}
.main-slider .slide.active .slide-txt1 {
  animation: dentSlideUpFade 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.main-slider .slide.active .slide-txt2 {
  animation: dentSlideUpFade 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both;
}
.main-slider .slide.active .slide-btn {
  animation: dentSlideUpFade 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
}

/* 2. Pulsing Play Button on Welcome Video Box */
@keyframes dentVideoPulse {
  0% { box-shadow: 0 0 0 0 rgba(30, 118, 189, 0.65); }
  70% { box-shadow: 0 0 0 22px rgba(30, 118, 189, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 118, 189, 0); }
}
.video-box .video-play-btn {
  animation: dentVideoPulse 2.2s infinite;
}

/* 3. Smooth Rotator & Review Slide Transitions + Dots */
.js-service-box-rotator {
  position: relative;
}
.js-service-box-rotator .service-box {
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.dent-rotator-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 8px;
  z-index: 5;
}
.dent-rotator-dot,
.dent-offer-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(30, 118, 189, 0.28);
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}
.dent-rotator-dot.active,
.dent-offer-dot.active {
  background: var(--dent-primary);
  transform: scale(1.28);
}
.dent-offer-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}
@keyframes dentReviewFade {
  0% { opacity: 0; transform: translateX(18px); }
  100% { opacity: 1; transform: translateX(0); }
}
.review-slide.active {
  animation: dentReviewFade 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.reviews-wrap {
  cursor: grab;
}
.reviews-wrap:active {
  cursor: grabbing;
}

/* 4. Smile Gallery Hover Overlay & Zoom Icon */
.smile-gallery-item::after {
  content: "+";
  position: absolute;
  inset: 0;
  background: rgba(30, 118, 189, 0.58);
  color: #ffffff;
  font-size: 38px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.32s ease;
  pointer-events: none;
}
.smile-gallery-item:hover::after {
  opacity: 1;
}

/* 5. Video Showreel & Smile Lightbox Modals */
.dent-video-modal__box {
  max-width: 880px !important;
  width: 92% !important;
  padding: 24px 26px 26px !important;
  background: #0d1f30 !important;
  color: #ffffff !important;
  border-radius: 8px !important;
}
.dent-video-modal__box .modal-close-btn {
  color: #ffffff !important;
}
.dent-video-modal__head {
  margin-bottom: 14px;
}
.dent-video-modal__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #62b5f6;
  margin-bottom: 4px;
}
.dent-video-modal__head h3 {
  color: #ffffff !important;
  font-size: 20px;
  margin: 0;
}
.dent-video-modal__stage {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #050e17;
  aspect-ratio: 16 / 9;
}
.dent-video-modal__player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.dent-smile-modal__box {
  max-width: 780px !important;
  width: 92% !important;
  padding: 22px 24px 20px !important;
  position: relative;
}
.dent-smile-modal__figure {
  margin: 0;
  text-align: center;
}
.dent-smile-modal__figure img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 4px;
  background: #f5f7f9;
}
.dent-smile-modal__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dent-heading);
}
.dent-smile-modal__counter {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--dent-bg-soft);
  color: var(--dent-primary);
  font-size: 13px;
  font-weight: 700;
}
.dent-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(30, 118, 189, 0.9);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
}
.dent-lb-nav:hover {
  background: var(--dent-accent);
  transform: translateY(-50%) scale(1.08);
}
.dent-lb-prev { left: 14px; }
.dent-lb-next { right: 14px; }

/* ---------- 5) 개편 확장: 치료사례(dent-cases) · 치료후기(dent-reviews) · 영카트5 스토어 조화 ---------- */
.header-cart .dent-header-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--dent-heading);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.header-cart .dent-header-cart-link:hover {
  color: var(--dent-primary);
  background: var(--dent-bg-soft);
}
.header-cart .dent-header-cart-link .wz-cart-badge {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--dent-primary);
  color: rgb(255 255 255);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.dent-section-end { margin-bottom: 70px; }
.dent-cases-lead { max-width: 620px; margin: 0 auto 28px; }
.dent-case-col { margin-bottom: 30px; }
.dent-case-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: rgb(255 255 255);
  border: 1px solid var(--dent-border);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dent-case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgb(30 118 189 / 0.12);
}
.dent-case-thumb { display: block; margin-bottom: 0; border-radius: 0; }
.dent-case-thumb img { width: 100%; height: 280px; object-fit: cover; display: block; }
.dent-case-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.dent-case-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dent-light-text); margin-bottom: 10px; }
.dent-case-title { font-size: 19px; font-weight: 700; line-height: 1.4; margin: 0 0 8px; }
.dent-case-title a { color: var(--dent-heading); text-decoration: none; }
.dent-case-title a:hover { color: var(--dent-primary); }
.dent-case-desc { font-size: 14px; color: var(--dent-text); margin: 0 0 16px; flex: 1; }
.dent-case-cta-pad { padding: 30px 15px; }
.dent-case-cta-decor { margin: 14px auto 18px; }
.dent-case-cta-copy { max-width: 480px; margin: 0 auto 14px; }

.dent-case-view-head { margin-bottom: 18px; }
.dent-case-view-title { margin-top: 8px; margin-bottom: 6px; }
.dent-case-view-hero { margin-bottom: 24px; border-radius: 6px; overflow: hidden; }
.dent-case-view-hero img { width: 100%; height: auto; display: block; }
.dent-case-content { line-height: 1.8; margin-bottom: 24px; }
.dent-view-nav { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 20px; border-top: 1px solid var(--dent-border); margin-top: 24px; }
.dent-case-spec-box { position: sticky; top: 100px; }
.dent-spec-dl { display: grid; grid-template-columns: 92px 1fr; gap: 10px 12px; margin: 18px 0; font-size: 14px; }
.dent-spec-dl dt { font-weight: 700; color: var(--dent-heading); }
.dent-spec-dl dd { margin: 0; color: var(--dent-text); }
.dent-case-notice { font-size: 12.5px; line-height: 1.6; color: var(--dent-light-text); margin-bottom: 18px; }

.dent-rating-hero-title { margin-top: 8px; margin-bottom: 8px; }
.dent-rating-hero-copy { max-width: 560px; margin: 0 auto 20px; }
.dent-review-card { height: calc(100% - 30px); display: flex; flex-direction: column; }
.dent-review-avatar-link { display: inline-block; text-decoration: none; }
.dent-review-link { color: inherit; text-decoration: none; }
.dent-review-link:hover { text-decoration: underline; }
.dent-stars-inverse { color: rgb(255 255 255) !important; }
.dent-review-excerpt { margin: 14px 0 18px; flex: 1; }
.dent-review-author { font-weight: 600; }
.dent-review-form-wrap { max-width: 760px; margin-top: 60px; }
.dent-review-stars-label { margin-bottom: 14px; font-size: 14px; }
.dent-review-detail { padding: 36px 34px; }
.dent-review-detail-head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--dent-border); }
.dent-review-detail-head .testimonial-avatar { margin: 0; flex-shrink: 0; }
.dent-review-detail-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--dent-text); }
.dent-review-body { font-size: 15.5px; line-height: 1.85; }
.dent-review-slide-link { color: inherit; text-decoration: none; }
.dent-review-slide-link:hover { color: var(--dent-primary); }
.dent-home-reviews-more { margin-top: 14px; }

.dent-shop-home-sec { padding: 80px 0; }
.dent-shop-home-card { height: calc(100% - 30px); display: flex; flex-direction: column; align-items: center; background: rgb(255 255 255); border: 1px solid var(--dent-border); border-radius: 6px; padding: 20px 18px 24px; }
.dent-prd-basic { font-size: 13px; color: var(--dent-light-text); margin: 4px 0 10px; min-height: 38px; text-align: center; }
.dent-prd-cust { font-size: 13px; font-weight: 400; color: var(--dent-light-text); margin-right: 4px; }
.dent-shop-home-more { margin-top: 14px; }

/* 영카트5 스토어 화면 메디컬 블루 스타일 조화 */
.wz-shop-wrap {
  --wz-shop-accent: var(--dent-primary);
  --wz-shop-radius: 6px;
}
.wz-shop-wrap .sct_li,
.wz-shop-wrap .wz-shop-card {
  border-radius: 6px;
  border-color: var(--dent-border);
}
.wz-shop-wrap .btn_submit,
.wz-shop-wrap #sit_btn_buy {
  border-radius: var(--dent-radius-pill, 30px);
  background: var(--dent-primary);
  border-color: var(--dent-primary);
  color: rgb(255 255 255);
}
.wz-shop-wrap #sit_btn_cart,
.wz-shop-wrap #sit_btn_wish {
  border-radius: var(--dent-radius-pill, 30px);
}


