/*
Theme Name: 디엔디 창호산업
Theme URI: https://xn--2z1ba030gy6eccy13c9rr.kr
Author: DND Window Industry
Description: 디엔디창호산업 전용 워드프레스 테마. 투명 헤더, 슬라이더, 깜박 배너, 시공사례 갤러리.
Version: 1.5.1
Requires at least: 5.3
Tested up to: 6.8
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dnd-changho
*/

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow: #FFD600;
  --yellow-dark: #E6C200;
  --black: #111;
  --dark: #222;
  --gray: #555;
  --light: #f5f5f5;
  --white: #fff;
  --navy: #1a3a6b;
  --header-h: 88px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

/* WordPress 기본 바디 패딩 완전 제거 */
body.admin-bar { padding-top: 0 !important; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.dnd-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.dnd-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--yellow); color: var(--black);
  padding: 10px 18px; font-weight: 700; z-index: 200000;
}
.dnd-skip:focus { left: 8px; top: 8px; }

/* ============================================================
   HEADER — 투명, 항상 콘텐츠 위에 absolute
   ============================================================ */
#dnd-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 9000;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease;
}

/* 관리자 바 보정 — absolute 상태 */
.admin-bar #dnd-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar #dnd-header {
    top: 46px;
  }
}

/* 스크롤 후 solid 전환 */
#dnd-header.solid {
  position: fixed;
  top: 0 !important;          /* solid 시 무조건 최상단 */
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0,0,0,.12);
}

/* solid + admin-bar */
.admin-bar #dnd-header.solid {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  .admin-bar #dnd-header.solid {
    top: 46px !important;
  }
}

.dnd-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* 로고: JS가 스크롤에 따라 src를 교체 */
.dnd-logo { display: flex; align-items: center; flex-shrink: 0; }
#dnd-logo-img {
  height: 52px;
  width: auto;
  max-width: 280px;
  display: block;
  object-fit: contain;
  transition: filter .25s, opacity .25s;
  /* 어떤 배경에서도 보이도록 강한 드롭섀도우 */
  filter: drop-shadow(0 0 3px rgba(0,0,0,.8))
          drop-shadow(0 1px 6px rgba(0,0,0,.6));
}
/* solid 헤더(흰 배경)에서는 그림자 제거 */
#dnd-header.solid #dnd-logo-img {
  filter: none;
}

/* ── 메뉴 ── */
#dnd-nav { display: flex; align-items: center; }
#dnd-nav ul { display: flex; align-items: center; gap: 32px; }
#dnd-nav > ul > li { position: relative; }

#dnd-nav a {
  font-size: 15px; font-weight: 600;
  color: #fff; white-space: nowrap;
  padding: 8px 0; display: block;
  position: relative; transition: color .2s;
}
#dnd-nav > ul > li > a::after {
  content: ''; position: absolute;
  left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--yellow); transition: width .2s;
}
#dnd-nav > ul > li:hover > a::after,
#dnd-nav .current-menu-item > a::after { width: 100%; }

/* solid 헤더에서 메뉴 글자색 */
#dnd-header.solid #dnd-nav a { color: var(--dark); }

/* 드롭다운 화살표 */
#dnd-nav .menu-item-has-children > a > span.arrow,
#dnd-nav .menu-item-has-children > a::before {
  content: ' ▾'; font-size: 11px; opacity: .7;
}

/* 드롭다운 서브메뉴 */
#dnd-nav ul ul {
  display: none;
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  min-width: 150px; padding: 8px 0;
  background: #fff; border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,.16);
  z-index: 9001;
}
#dnd-nav li:hover > ul { display: block; }
#dnd-nav ul ul li { width: 100%; }
#dnd-nav ul ul a {
  color: var(--dark) !important; font-size: 14px; font-weight: 500;
  padding: 10px 22px;
}
#dnd-nav ul ul a:hover { background: var(--light); }
#dnd-nav ul ul a::after { display: none !important; }

/* 전화번호 버튼 */
.dnd-nav-cta {
  border: 2px solid rgba(255,255,255,.85) !important;
  padding: 8px 22px !important; border-radius: 24px !important;
  font-weight: 700 !important; transition: all .2s !important;
  white-space: nowrap;
}
.dnd-nav-cta::after { display: none !important; }
.dnd-nav-cta:hover {
  background: var(--yellow) !important;
  border-color: var(--yellow) !important;
  color: var(--black) !important;
}
#dnd-header.solid .dnd-nav-cta {
  border-color: var(--black) !important;
  color: var(--black) !important;
}
#dnd-header.solid .dnd-nav-cta:hover {
  background: var(--yellow) !important;
  border-color: var(--yellow) !important;
}

/* 모바일 토글 */
.dnd-toggle {
  display: none; background: none; border: none;
  cursor: pointer; color: #fff; font-size: 28px;
  line-height: 1;
}
#dnd-header.solid .dnd-toggle { color: var(--black); }

/* ============================================================
   홈 — 슬라이더 (헤더 높이 포함, 풀스크린)
   ============================================================ */
#dnd-slider {
  position: relative;
  width: 100%; height: 100vh; min-height: 600px;
  overflow: hidden;
  background: #111;
}

.dnd-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .9s ease;
  display: flex; align-items: center;
}
.dnd-slide.on { opacity: 1; }
.dnd-slide::after {
  content: ''; position: absolute; inset: 0;
  /* 상단(헤더/로고 영역) 어둡게, 좌측 텍스트 영역도 어둡게 */
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 20%, rgba(0,0,0,.05) 50%),
    linear-gradient(100deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.30) 60%, rgba(0,0,0,.10) 100%);
}

.dnd-slide-body {
  position: relative; z-index: 2;
  padding: var(--header-h) 8% 0;
  color: #fff; max-width: 640px;
}
.dnd-slide-tag {
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--yellow);
  margin-bottom: 18px; display: block;
}
.dnd-slide-title {
  font-size: 40px; font-weight: 900; line-height: 1.15;
  margin-bottom: 22px;
}
.dnd-slide-desc {
  font-size: 17px; color: rgba(255,255,255,.82);
  line-height: 1.75; margin-bottom: 38px;
}
.dnd-slide-btn {
  display: inline-block; background: var(--yellow); color: var(--black);
  font-weight: 700; font-size: 16px; padding: 14px 34px;
  border-radius: 6px; transition: transform .2s, background .2s;
}
.dnd-slide-btn:hover { background: var(--yellow-dark); transform: translateY(-2px); }

/* 슬라이더 컨트롤 */
.dnd-slider-dots {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 10px; z-index: 10;
}
.dnd-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,255,255,.4); transition: background .2s, transform .2s;
}
.dnd-dot.on { background: var(--yellow); transform: scale(1.3); }

.dnd-slider-arrows {
  position: absolute; top: 50%; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 0 24px; transform: translateY(-50%); z-index: 10;
  pointer-events: none;
}
.dnd-arrow {
  pointer-events: auto;
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.12); backdrop-filter: blur(4px);
  color: #fff; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.dnd-arrow:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }

/* ============================================================
   서브페이지 — 헤더 포함 풀 배너
   Image4처럼: 배경이미지가 헤더 높이까지 포함, 중앙에 페이지 타이틀 표시
   ============================================================ */
#dnd-page-banner {
  position: relative;
  width: 100%;
  /* 상단: 헤더(88px) + 타이틀 공간 */
  padding: calc(var(--header-h) + 72px) 24px 80px;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
  text-align: center;
  color: #fff;
  overflow: hidden;
}
/* 어두운 오버레이 */
#dnd-page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,.52) 0%,
    rgba(0,0,0,.38) 50%,
    rgba(0,0,0,.48) 100%
  );
}
#dnd-page-banner > * { position: relative; z-index: 2; }

#dnd-page-banner h1 {
  font-size: 52px; font-weight: 900;
  margin: 0 0 14px;
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
  letter-spacing: -0.01em;
}
.banner-crumb {
  font-size: 14px;
  color: rgba(255,255,255,.82);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.banner-crumb a { color: rgba(255,255,255,.82); }
.banner-crumb span { opacity: .6; }

@media (max-width: 768px) {
  #dnd-page-banner { padding: calc(var(--header-h) + 48px) 20px 60px; }
  #dnd-page-banner h1 { font-size: 34px; }
}

/* 이전 dnd-sub-bg 호환 (혹시 남아있으면) */
#dnd-sub-bg {
  position: relative; width: 100%; height: 200px;
  background-size: cover; background-position: center;
  background-color: var(--navy); overflow: hidden;
}
#dnd-sub-bg::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,.4);
}

@media (max-width: 768px) {
  #dnd-sub-bg { height: 130px; }
}

/* ============================================================
   깜박이는 강조 배너
   ============================================================ */
#dnd-blink {
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  min-height: 220px; padding: 48px 24px;
}
.dnd-blink-text {
  font-size: 80px; font-weight: 900; color: var(--black);
  text-align: center; line-height: 1.1;
  animation: blink-anim 1.2s ease-in-out infinite;
}
@keyframes blink-anim { 0%,100%{opacity:1} 50%{opacity:0} }
@media (prefers-reduced-motion:reduce) { .dnd-blink-text { animation:none; } }

/* ============================================================
   섹션 공통
   ============================================================ */
.dnd-section { padding: 84px 0; }
.dnd-section-light { background: var(--light); }
.dnd-section-navy { background: var(--navy); color: #fff; }

.dnd-section-hd { text-align: center; margin-bottom: 56px; }
.dnd-eyebrow {
  display: block; font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 12px;
}
.dnd-section-navy .dnd-eyebrow { color: var(--yellow); }
.dnd-section-title {
  font-size: 38px; font-weight: 900;
  display: inline-block; position: relative; margin: 0;
}
.dnd-section-title::after {
  content: ''; position: absolute; left: 50%; bottom: -12px;
  transform: translateX(-50%); width: 44px; height: 4px;
  background: var(--yellow); border-radius: 2px;
}
.dnd-section-navy .dnd-section-title { color: #fff; }
.dnd-section-desc {
  margin: 28px auto 0; font-size: 16px;
  color: var(--gray); max-width: 560px; line-height: 1.8;
}
.dnd-section-navy .dnd-section-desc { color: rgba(255,255,255,.7); }

/* ============================================================
   제품 그리드
   ============================================================ */
.dnd-products { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.dnd-product {
  background: var(--light); border-radius: 12px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.dnd-product:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.12); border-color: var(--yellow); }
.dnd-product-icon {
  height: 200px; display: flex; align-items: center;
  justify-content: center; font-size: 52px;
}
.dnd-product:nth-child(1) .dnd-product-icon { background: linear-gradient(135deg,#c8d8e8,#a0b8cc); }
.dnd-product:nth-child(2) .dnd-product-icon { background: linear-gradient(135deg,#d4c8b8,#b8a890); }
.dnd-product:nth-child(3) .dnd-product-icon { background: linear-gradient(135deg,#c8dcc8,#a0c0a0); }
.dnd-product:nth-child(4) .dnd-product-icon { background: linear-gradient(135deg,#dcd4c0,#c0b098); }
.dnd-product-info { padding: 20px 18px 24px; }
.dnd-product-name { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.dnd-product-desc { font-size: 13px; color: var(--gray); line-height: 1.6; }

/* ============================================================
   시공사례 카드 (이미지 아래 제목)
   ============================================================ */
.dnd-cases { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.dnd-case-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
  display: block; color: inherit;
  transition: transform .25s, box-shadow .25s;
}
.dnd-case-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.14); }
.dnd-case-thumb {
  width: 100%; height: 240px; overflow: hidden;
}
.dnd-case-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s;
}
.dnd-case-card:hover .dnd-case-thumb img { transform: scale(1.05); }
.dnd-case-thumb-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; font-size: 52px;
  background: linear-gradient(135deg,#c8d8e8,#a0b8cc);
}
.dnd-case-info {
  padding: 18px 20px 22px;
  border-top: 3px solid var(--yellow);
}
.dnd-case-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gray);
  display: block; margin-bottom: 7px;
}
.dnd-case-title { font-size: 16px; font-weight: 700; line-height: 1.45; margin-bottom: 7px; }
.dnd-case-meta { font-size: 13px; color: var(--gray); }

/* ============================================================
   Why DND
   ============================================================ */
.dnd-why { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; margin-top: 56px; }
.dnd-why-item { text-align: center; }
.dnd-why-icon {
  width: 72px; height: 72px; margin: 0 auto 18px;
  background: rgba(255,214,0,.14); border: 2px solid var(--yellow);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 30px;
}
.dnd-why-num { font-size: 38px; font-weight: 900; color: var(--yellow); line-height: 1; margin-bottom: 6px; }
.dnd-why-label { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.dnd-why-sub { font-size: 13px; color: rgba(255,255,255,.62); line-height: 1.6; }

/* ============================================================
   CTA
   ============================================================ */
#dnd-cta { padding: 72px 24px; background: var(--yellow); text-align: center; }
#dnd-cta h2 { font-size: 36px; font-weight: 900; color: var(--black); margin-bottom: 14px; }
#dnd-cta p { font-size: 16px; color: var(--dark); margin-bottom: 34px; line-height: 1.75; }
.dnd-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.dnd-btn-primary {
  background: var(--black); color: var(--yellow) !important;
  font-weight: 700; font-size: 16px; padding: 15px 36px;
  border-radius: 6px; border: 2px solid var(--black); transition: transform .2s;
}
.dnd-btn-primary:hover { transform: translateY(-2px); }
.dnd-btn-secondary {
  background: transparent; color: var(--black) !important;
  font-weight: 700; font-size: 16px; padding: 15px 36px;
  border-radius: 6px; border: 2px solid var(--black); transition: background .2s;
}
.dnd-btn-secondary:hover { background: rgba(0,0,0,.08); }

/* ============================================================
   본문 콘텐츠 영역
   ============================================================ */
.dnd-entry { padding: 64px 0; }
.dnd-entry-body { font-size: 16px; line-height: 1.9; color: var(--dark); }
.dnd-entry-body h2 { font-size: 28px; font-weight: 800; margin: 40px 0 16px; }
.dnd-entry-body h3 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; }
.dnd-entry-body p { margin-bottom: 18px; }
.dnd-entry-body img { border-radius: 8px; margin: 16px 0; }

/* 회사정보 박스 */
.dnd-info-box {
  background: var(--light); border-radius: 12px; padding: 32px 36px;
  border-left: 5px solid var(--yellow); margin: 32px 0;
}
.dnd-info-box h3 { margin-bottom: 16px; font-size: 20px; font-weight: 800; }
.dnd-info-row { display: flex; gap: 12px; margin-bottom: 10px; font-size: 15px; }
.dnd-info-row .lbl { font-weight: 700; min-width: 110px; }

/* ============================================================
   라이트박스
   ============================================================ */
#dnd-lb {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,.9);
  display: none; align-items: center; justify-content: center;
  flex-direction: column; padding: 40px;
}
#dnd-lb.open { display: flex; }
#dnd-lb img { max-width: 90vw; max-height: 80vh; border-radius: 8px; }
#dnd-lb-cap { color: #fff; margin-top: 16px; font-size: 16px; font-weight: 500; }
#dnd-lb-close {
  position: absolute; top: 20px; right: 28px;
  background: none; border: none; color: #fff;
  font-size: 44px; cursor: pointer; line-height: 1; opacity: .8;
}
#dnd-lb-close:hover { opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
#dnd-footer { background: #111; color: rgba(255,255,255,.58); padding: 56px 0 28px; }
.dnd-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 44px; }
.dnd-footer-brand .name { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 14px; }
.dnd-footer-brand p { font-size: 13px; line-height: 1.9; }
.dnd-footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.dnd-footer-col ul { padding: 0; }
.dnd-footer-col li { margin-bottom: 10px; }
.dnd-footer-col a { color: rgba(255,255,255,.5); font-size: 13px; transition: color .2s; }
.dnd-footer-col a:hover { color: var(--yellow); }
.dnd-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; flex-wrap: wrap; gap: 10px;
}

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 1100px) {
  #dnd-nav > ul { gap: 22px; }
  #dnd-nav a { font-size: 14px; }
  .dnd-slide-title { font-size: 32px; }
}

@media (max-width: 768px) {
  :root { --header-h: 70px; }

  /* 모바일 헤더: 항상 fixed로 상단에 붙음 */
  #dnd-header {
    position: fixed !important;
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0,0,0,.12);
  }
  /* 모바일에서 로고/토글 색상은 컬러 버전 사용 */
  .dnd-toggle { color: var(--black) !important; }
  #dnd-logo-img { filter: none !important; }

  /* 슬라이더: fixed 헤더만큼 상단 여백 */
  #dnd-slider { padding-top: 0; }

  /* 토글 */
  .dnd-toggle { display: block; }

  /* 모바일 메뉴: fixed 헤더 기준으로 위치 */
  #dnd-nav {
    display: none;
    position: fixed;         /* absolute → fixed: 스크롤해도 헤더 바로 아래 붙음 */
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    padding: 8px 0;
    z-index: 8999;
  }
  /* admin-bar 있을 때 메뉴 위치 보정 */
  .admin-bar #dnd-nav { top: calc(var(--header-h) + 46px); }
  @media screen and (min-width: 783px) {
    .admin-bar #dnd-nav { top: calc(var(--header-h) + 32px); }
  }

  #dnd-nav.open { display: block; }
  #dnd-nav > ul { flex-direction: column; gap: 0; align-items: stretch; }
  #dnd-nav a { color: var(--dark) !important; padding: 13px 24px; }
  #dnd-nav > ul > li > a::after { display: none; }
  /* 모바일 드롭다운 */
  #dnd-nav ul ul {
    display: block; position: static; transform: none;
    box-shadow: none; border-radius: 0; padding: 0;
  }
  #dnd-nav ul ul a { padding-left: 40px; background: var(--light); }
  .dnd-nav-cta { display: block; margin: 8px 24px; text-align: center; border-color: var(--black) !important; color: var(--black) !important; }
  .dnd-toggle { color: #fff; }
  #dnd-header.solid .dnd-toggle { color: var(--black); }

  #dnd-slider { height: 560px; min-height: 0; }
  .dnd-slide-body { padding: calc(var(--header-h) + 40px) 24px 0; }
  .dnd-slide-title { font-size: 32px; }
  .dnd-slide-desc { font-size: 15px; }
  .dnd-blink-text { font-size: 40px; }
  #dnd-blink { min-height: 160px; }
  .dnd-section { padding: 56px 0; }
  .dnd-section-title { font-size: 28px; }
  .dnd-products { grid-template-columns: repeat(2,1fr); }
  .dnd-cases { grid-template-columns: 1fr; }
  .dnd-why { grid-template-columns: repeat(2,1fr); }
  .dnd-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  #dnd-cta h2 { font-size: 26px; }
}

/* ============================================================
   시공사례 상세 — 갤러리 슬라이드쇼
   ============================================================ */
.dnd-case-detail { padding: 56px 0 72px; }

.dnd-case-badges {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.badge-tag {
  background: var(--yellow); color: var(--black);
  font-weight: 700; font-size: 13px; padding: 6px 18px; border-radius: 20px;
}
.badge-loc {
  background: var(--light); color: var(--gray);
  font-size: 13px; padding: 6px 18px; border-radius: 20px;
}

/* 메인 슬라이드 영역 */
.dnd-gal-slider { width: 100%; }
.dnd-gal-main {
  position: relative;
  width: 100%; aspect-ratio: 16/9; overflow: hidden;
  background: #111; border-radius: 12px;
}
.dnd-gal-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .4s ease;
  cursor: pointer;
}
.dnd-gal-slide.on { opacity: 1; }
.dnd-gal-slide img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
}

/* 화살표 */
.gal-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.5);
  color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; z-index: 10;
}
.gal-arrow:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.gal-prev { left: 16px; }
.gal-next { right: 16px; }

/* 카운터 */
.gal-counter {
  position: absolute; bottom: 14px; right: 18px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 12px;
  z-index: 10;
}

/* 썸네일 바 */
.dnd-gal-thumbs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px;
}
.gal-thumb {
  width: 80px; height: 60px; border-radius: 6px; overflow: hidden;
  padding: 0; border: 2px solid transparent; cursor: pointer;
  background: none; transition: border-color .2s, opacity .2s;
  opacity: .65;
}
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-thumb.on { border-color: var(--yellow); opacity: 1; }
.gal-thumb:hover { opacity: 1; }

@media (max-width: 768px) {
  .dnd-gal-main { aspect-ratio: 4/3; }
  .gal-thumb { width: 60px; height: 46px; }
  .dnd-case-detail { padding: 36px 0 56px; }
}

/* 분류 필터 바 */
.dnd-filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 20px; border-radius: 20px;
  font-size: 14px; font-weight: 500;
  background: var(--light); color: var(--gray);
  text-decoration: none; transition: background .2s, color .2s;
}
.filter-btn.active,
.filter-btn:hover { background: var(--yellow); color: var(--black); font-weight: 700; }

/* ============================================================
   공지사항 / 상담문의 게시판
   ============================================================ */
.dnd-board {
  border-top: 2px solid var(--black);
  margin-bottom: 40px;
}
.dnd-board-head {
  display: flex; align-items: center;
  background: var(--light); padding: 12px 16px;
  font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--border);
}
.dnd-board-row {
  display: flex; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid #eee;
  font-size: 15px; transition: background .15s;
}
.dnd-board-row:hover { background: var(--light); }
.dnd-board-num  { width: 60px; flex-shrink: 0; text-align: center; color: var(--gray); font-size: 13px; }
.dnd-board-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dnd-board-title a { color: var(--dark); font-weight: 500; }
.dnd-board-title a:hover { color: var(--navy); text-decoration: underline; }
.dnd-board-date  { width: 100px; flex-shrink: 0; text-align: right; color: var(--gray); font-size: 13px; }
.dnd-board-empty { text-align: center; color: var(--gray); padding: 40px 0; }
.dnd-board-pager { margin-top: 24px; text-align: center; }
.dnd-board-pager .page-numbers {
  display: inline-block; padding: 6px 12px; margin: 0 2px;
  border: 1px solid var(--border); border-radius: 4px;
  font-size: 14px; color: var(--dark);
}
.dnd-board-pager .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* 문의 작성 폼 */
.dnd-qna-form {
  background: var(--light); border-radius: 12px;
  padding: 36px 40px; margin-top: 48px;
}
.dnd-qna-form h3 {
  font-size: 22px; font-weight: 800; margin-bottom: 28px;
}
.dnd-form-row { margin-bottom: 18px; }
.dnd-form-row label {
  display: block; font-size: 14px; font-weight: 700;
  margin-bottom: 6px; color: var(--dark);
}
.dnd-form-row input,
.dnd-form-row textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 15px; font-family: inherit;
  transition: border-color .2s; background: #fff;
}
.dnd-form-row input:focus,
.dnd-form-row textarea:focus {
  outline: none; border-color: var(--navy);
}
.dnd-form-row textarea { resize: vertical; min-height: 140px; }
.dnd-qna-form .dnd-btn-primary {
  margin-top: 8px; padding: 14px 40px; font-size: 16px;
}
.dnd-notice-ok {
  background: #f0fff4; border: 1px solid #68d391;
  border-radius: 8px; padding: 16px 20px;
  color: #276749; font-weight: 700; margin-bottom: 24px;
}
@media (max-width: 768px) {
  .dnd-board-date { display: none; }
  .dnd-qna-form { padding: 24px 20px; }
}
