/* ══════════════════════════════════════
   레이아웃 — 사이드바 / 톱바 / 콘텐츠
   ══════════════════════════════════════ */

/* ── 사이드바 ── */
.sidebar {
  align-self: start;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
  background: rgba(246,248,252,.88);
  backdrop-filter: blur(16px);
  border-right: 1px solid rgba(2,6,23,.08);
  overflow: auto;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); }

.sidebar .dropdown-menu {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 40px rgba(15,23,42,.10);
  padding: 8px;
  min-width: 180px;
}
.sidebar .dropdown-item,
.sidebar .dropdown-item-text {
  font-size: 14px;
}

/* ── 브랜드 로고 ── */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(2,6,23,.08);
  box-shadow: 0 12px 30px rgba(2,6,23,.06);
}
.brand img { height: 80px; width: auto; }

/* ── 네비게이션 박스 ── */
.navbox {
  margin-top: 14px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(2,6,23,.08);
  box-shadow: 0 12px 30px rgba(2,6,23,.06);
}
.nav-title {
  font-weight: 950;
  letter-spacing: -.02em;
  padding: 10px 10px 6px;
  color: #0f172a;
}
.snav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  font-weight: 900;
  color: #0f172a;
  text-decoration: none;
}
.snav a:hover {
  background: rgba(140,176,120,.12);
  color: #2d4a1e;
}
.ic {
  width: 38px; height: 38px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(140,176,120,.14);
  border: 1px solid rgba(140,176,120,.25);
  color: #3d5a2e;
  flex: 0 0 auto;
}

/* ── 아코디언 (2차 메뉴) ── */
.nav-group { margin-bottom: 6px; }
.nav-main { font-weight: 700; }
.nav-main .chev {
  margin-left: auto;
  opacity: .65;
  transition: transform .18s ease;
}
.nav-group.is-open .nav-main .chev {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-sub {
  display: none;
  padding: 4px 0 6px 28px;
}
.nav-sub a {
  padding: 8px 10px;
  font-weight: 600;
  opacity: .9;
}
.nav-group.is-open .nav-sub { display: block; }

/* ── 아코디언 (3차 메뉴) ── */
.nav-depth2-group { position: relative; }
.nav-depth2-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 12px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}
.nav-depth2-toggle .chev2 {
  margin-left: auto;
  transition: transform .25s;
  font-size: .7em;
}
.nav-depth2-group.is-open > .nav-depth2-toggle .chev2 {
  transform: rotate(180deg);
}
.nav-depth3 {
  display: none;
  padding-left: 16px;
}
.nav-depth2-group.is-open > .nav-depth3 { display: block; }
.nav-depth3 a {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  font-size: .9em;
  color: inherit;
  text-decoration: none;
}
.nav-depth3 a .ic {
  font-size: .65em;
  margin-right: 6px;
  opacity: .5;
}
.nav-depth3 a.active {
  font-weight: 600;
  color: var(--dg-primary, #0d6efd);
}
.nav-depth3 a:hover {
  background: rgba(0,0,0,.04);
  border-radius: 4px;
}


/* ══════════════════════════════════════
   사이드 CTA
   ══════════════════════════════════════ */

.side-cta {
  margin-top: 14px;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(25,179,106,.14), rgba(99,102,241,.10));
  border: 1px solid rgba(2,6,23,.08);
  box-shadow: 0 12px 30px rgba(2,6,23,.06);
  position: relative;
  overflow: hidden;
}
.side-cta .motif {
  position: absolute;
  right: -90px; bottom: -110px;
  width: 320px;
  opacity: .18;
  pointer-events: none;
  filter: drop-shadow(0 25px 60px rgba(0,0,0,.12));
}

.side-cta-label {
  font-size: 11px; font-weight: 700;
  color: var(--dg-primary);
  letter-spacing: .5px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.side-cta + .side-cta-rawon { margin-top: 12px; }

/* ── 버튼 공통 ── */
.btn-brand {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: #12a35e;
  --bs-btn-hover-border-color: #12a35e;
  --bs-btn-color: #052014;
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 950;
}
.btn-soft {
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 950;
  background: #fff;
  border: 1px solid rgba(2,6,23,.08);
}

/* ── 동궁원 CTA ── */
.side-cta .btn-soft {
  border-color: rgba(25,179,106,.15);
}
.side-cta .btn-soft:hover {
  background: rgba(25,179,106,.06);
  border-color: rgba(25,179,106,.4);
}
.side-cta .btn-brand:hover {
  box-shadow: 0 2px 8px rgba(25,179,106,.3);
}

/* ── 라원 CTA ── */
.side-cta-rawon {
  background: rgba(43,34,32,.04);
  border: 1px solid rgba(43,34,32,.1);
  border-radius: 22px;
}
.side-cta-rawon .side-cta-label {
  color: #2B2220;
  border-bottom-color: rgba(43,34,32,.15);
}
.side-cta-rawon .btn-brand {
  background: #352C28;
  border-color: #352C28;
  color: #fff;
}
.side-cta-rawon .btn-brand:hover {
  background: #2B2220;
  border-color: #2B2220;
  box-shadow: 0 2px 8px rgba(43,34,32,.3);
}
.side-cta-rawon .btn-soft {
  color: #2B2220;
  background: #fff;
  border-color: rgba(43,34,32,.15);
}
.side-cta-rawon .btn-soft:hover {
  background: rgba(43,34,32,.08);
  border-color: rgba(43,34,32,.4);
}

/* ══════════════════════════════════════
   톱바 (모바일)
   ══════════════════════════════════════ */

.topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(246,248,252,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(2,6,23,.08);
  height: 72px;
  padding: 0 14px;
  align-items: center;
}
.topbar .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}
.topbar .logo img { height: 60px; }

.dg-menu-btn {
  border-radius: 14px;
  border: 1px solid rgba(2,6,23,.08);
}

.offcanvas { z-index: 1060; }
.offcanvas-backdrop { z-index: 1055; }

/* ══════════════════════════════════════
   반응형 — 사이드바 / 톱바
   ══════════════════════════════════════ */

/* 데스크탑: 사이드바 표시, 톱바 숨김 */
@media (min-width: 993px) {
  .topbar  { display: none; }
  .sidebar { display: block; }
}

/* 모바일: 사이드바 숨김, 톱바 표시 */
@media (max-width: 992px) {
  .topbar  { display: flex; }
  .sidebar { display: none; }
}

/* ══════════════════════════════════════
   콘텐츠 영역
   ══════════════════════════════════════ */

.content {
  padding: 18px;
  min-height: 100vh;
}

.app, .content, .dg-footer, .page-header,
.greeting-wrap, .vision-strip, .value-grid {
  position: relative;
  z-index: auto;
}

/* ── 관리자 도구 ── */
.dg-admin-tools {
  margin: 0 0 18px;
  padding: 0 6px;
}
.dg-admin-tools-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.dg-admin-btn {
  width: 38px; height: 38px;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: #fff;
  border-color: #d7dde3;
  color: #4b5563;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.dg-admin-btn:hover,
.dg-admin-btn:focus {
  background: #f8fafc;
  border-color: #bfc8d2;
  color: #111827;
}


/* ══════════════════════════════════════
   페이지 헤더
   ══════════════════════════════════════ */

.page-header {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 30px rgba(2,6,23,.05);
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.page-header .bc {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
}
.page-header .bc a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.page-header .bc a:hover { color: var(--brand); }
.page-header .bc a i { font-size: .75rem; }
.page-header .bc .bc__sep { font-size: .55rem; color: #ccc; }
.page-header .bc span { color: var(--muted); }
.page-header .bc .bc__current {
  color: #3d5a2e;
  font-weight: 700;
}
.page-header h1 {
  margin: 0;
  font-weight: 950;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  letter-spacing: -.03em;
  color: var(--ink);
}
.page-header .badge-page {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(140,176,120,.12);
  border: 1px solid rgba(140,176,120,.25);
  color: #2d4a1e;
  font-weight: 900;
  font-size: .88rem;
}

/* ══════════════════════════════════════
   푸터
   ══════════════════════════════════════ */

.dg-footer {
  position: relative;
  margin-top: 34px;
  border-radius: 22px;
  overflow: hidden;
  color: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(1200px 500px at 25% 30%, rgba(34,197,94,.14), transparent 60%),
    radial-gradient(900px 460px at 70% 35%, rgba(59,130,246,.12), transparent 55%),
    radial-gradient(800px 420px at 90% 80%, rgba(236,72,153,.10), transparent 55%),
    linear-gradient(180deg, #15202a 0%, #0b1220 65%, #070b14 100%);
  box-shadow: 0 22px 60px rgba(2,6,23,.38);
}
.dg-footer__inner { padding: 20px 20px 14px; }

.dg-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* ── 카드 공통 ── */
.fcard {
  padding: 1.4rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.fcard:last-child { border-right: none; }

/* ── 카드 상단 ── */
.fcard-top {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* 컬러 도트 */
.fcard-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fcard-dot.dg  { background: #19b36a; box-shadow: 0 0 6px rgba(25,179,106,.7); }
.fcard-dot.rw  { background: #c8a97e; box-shadow: 0 0 6px rgba(200,169,126,.7); }
.fcard-dot.sns { background: #60a5fa; box-shadow: 0 0 6px rgba(96,165,250,.7); }

.fcard-name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .04em;
  margin-right: .2rem;
}

/* 칩 버튼 */
.fchip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .6rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 6px;
  font-size: .74rem;
  font-weight: 600;
  color: rgba(255,255,255,.68);
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.fchip i { font-size: .7rem; }
.fchip:hover {
  border-color: rgba(255,255,255,.55);
  color: #fff;
  background: rgba(255,255,255,.06);
}

/* ── 전화번호 ── */
.fcard-tel {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
  margin-bottom: .85rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.fcard-tel i {
  font-size: 1rem;
  color: #19b36a;
  flex-shrink: 0;
}

/* ── 정보 리스트 ── */
.finfo {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.finfo li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  color: rgba(255,255,255,.6);
  font-size: .86rem;
  line-height: 1.5;
}
.finfo li i {
  color: rgba(255,255,255,.35);
  font-size: .8rem;
  margin-top: .2rem;
  flex-shrink: 0;
  width: 14px;
  text-align: center;
}
.finfo-muted { color: rgba(255,255,255,.4); }
.finfo-label {
  font-weight: 700;
  color: #f87171;
}

/* ── SNS 카드 ── */
.fcard--sns { min-width: 200px; }

.fcard-sns-desc {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  margin: 0 0 1rem;
  line-height: 1.4;
}

.fsns {
  display: flex;
  flex-direction: row;
  gap: .5rem;
}
.sbtn {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: 1rem;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.sbtn:hover { transform: translateY(-3px); color: #fff; }

.sbtn--fb:hover { background: rgba(37,99,235,.25);  border-color: rgba(37,99,235,.5);  }
.sbtn--fb i     { color: #60a5fa; }
.sbtn--ig:hover { background: rgba(236,72,153,.20);  border-color: rgba(236,72,153,.4); }
.sbtn--ig i     { color: #f472b6; }
.sbtn--yt:hover { background: rgba(239,68,68,.20);   border-color: rgba(239,68,68,.4);  }
.sbtn--yt i     { color: #f87171; }
.sbtn--bl:hover { background: rgba(234,179,8,.18);   border-color: rgba(234,179,8,.35); }
.sbtn--bl i     { color: #fbbf24; }

/* ── 하단바 ── */
.dg-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0 .2rem;
  flex-wrap: wrap;
}
.fbottom-policy {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  flex-wrap: wrap;
}
.fbottom-policy a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .15s;
}
.fbottom-policy a:hover { color: #fff; }
.fbottom-policy a i { margin-right: .2rem; color: #19b36a; }
.fbottom-biz {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.dg-footer__bottom .dot { color: rgba(255,255,255,.2); }


/* ══════════════════════════════════════
   반응형 — 태블릿 (≤ 992px)
   ══════════════════════════════════════ */

@media (max-width: 992px) {
  .dg-footer { border-radius: 16px; margin-top: 24px; }
  .dg-footer__inner { padding: 14px 14px 10px; }
  .dg-footer__grid {
    grid-template-columns: 1fr;
    border-bottom: none;
  }
  .fcard {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 1rem 1.25rem;
  }
  .fcard:last-child { border-bottom: none; }

  /* 모바일에서 SNS 가로 배치 */
  .fsns { flex-direction: row; flex-wrap: wrap; }
  .sbtn { flex: 1; min-width: 120px; }
  .fcard-sns-desc { display: none; }
}


/* ══════════════════════════════════════
   반응형 — 모바일 (≤ 600px)
   ══════════════════════════════════════ */

@media (max-width: 600px) {
  .dg-footer { border-radius: 14px; margin-top: 18px; }
  .dg-footer__inner { padding: 12px 12px 8px; }

  .fcard { padding: .9rem 1rem; }
  .fcard-name { font-size: .92rem; }
  .fcard-tel { font-size: 1.1rem; margin-bottom: .7rem; padding-bottom: .7rem; }
  .finfo li { font-size: .8rem; }

  .fchip { font-size: .7rem; padding: .15rem .5rem; }

  .sbtn { width: 40px; height: 40px; border-radius: 10px; font-size: .92rem; }

  .dg-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
    padding: .75rem 0;
  }
  .fbottom-policy { font-size: .78rem; }
  .fbottom-biz { font-size: .74rem; }
}