/**
 * Theme Name: DNGV
 * Description: DNGV WordPress Theme
 * Author: dngv
 * Author URI: https://www.dngv.com/
 * Version: 0.1
 * Text Domain: dngv
 * Domain Path: /languages
 * Tags: dngv
 */

html {
  scroll-behavior: smooth;
}

.anchor-section {
  display: inline-block;
  scroll-margin-top: 80px;
}

/* 헤더 */
header .top-bar-container.contain-to-grid.sticky .title-area a {
  padding-top: 5px;
}

header .top-bar-container.contain-to-grid.sticky .title-area img {
  max-width: 120px;
}

/* 푸터 */
.wd-footer {
  margin-top: 50px;
  padding-top: 35px;
}

.wd-footer .widget-logo {
  padding: 8px 1.07143rem 10px 1rem;
}

.wd-footer .widget-logo img {
  padding: 0;
  max-width: 100px;
}

.wd-footer p {
  color: #fff;
  font-size: 14px;
  margin-bottom: 0;
}

.wd-footer,
.wd-copyright {
  background: rgb(44, 44, 44) url('') no-repeat !important;
  background-size: cover;
  background-position: center bottom 0;
}

.wd-footer p {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  line-height: 1.4;
  row-gap: 0.5rem;
}

.wd-footer p span:last-child {
  flex-basis: 100%;
  width: 100%;
}

/* 타이틀바 */
.wd-title-bar {
  background: url('./images/titlebar-bg.png') no-repeat center center;
  min-height: 230px;
  padding-top: 140px;
  background-size: cover !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* 페이지 타이틀 바 (기존 스타일 개선본) */
.wd-title-bar {
  /* 오버레이를 위한 설정 */
  position: relative;
  overflow: hidden;

  /* 커스터마이즈 변수 */
  --blur-amount: 0.2rem; /* 왼쪽 흐림 강도 */
  --shade-0: rgba(0, 0, 0, 0.62); /* 가장 왼쪽 음영 */
  --shade-1: rgba(0, 0, 0, 0.36);
  --shade-2: rgba(0, 0, 0, 0.16);
  --shade-3: rgba(0, 0, 0, 0); /* 오른쪽(투명) */
  --stop-0: 0%;
  --stop-1: 24%;
  --stop-2: 46%;
  --stop-3: 66%;
}

/* 자식 콘텐츠가 오버레이 위에 오도록 */
.wd-title-bar > * {
  position: relative;
  z-index: 2;
}

/* 1) 어두운 그라데이션(모든 브라우저에서 동작) */
.wd-title-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to right,
    var(--shade-0) var(--stop-0),
    var(--shade-1) var(--stop-1),
    var(--shade-2) var(--stop-2),
    var(--shade-3) var(--stop-3)
  );
}

@media only screen and (max-width: 640px) {
  .wd-title-bar {
    margin-bottom: 2rem;
  }
}

/* 2) 왼쪽만 살짝 흐림(backdrop-filter 지원 브라우저에서만 추가 적용) */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .wd-title-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    /* 왼쪽 영역만 보이도록 마스크 */
    -webkit-mask-image: linear-gradient(to right, #000 var(--stop-1), transparent var(--stop-3));
    mask-image: linear-gradient(to right, #000 var(--stop-1), transparent var(--stop-3));
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
  }
}

/* 필요 시 음영/범위 조절 (큰 화면에서 왼쪽 폭 조금 넓힘) */
@media (min-width: 992px) {
  .wd-title-bar {
    --stop-1: 28%;
    --stop-2: 50%;
    --stop-3: 70%;
  }
}

/* Home more 버튼 */
.wd-more-project {
  display: none !important;
}

.u-z-10 {
  position: relative;
  z-index: 10;
}

/* 페이지 구성요소 */
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  overflow: visible;
}

.alignwide {
  width: 1200px; /* 또는 원하는 값 */
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.heading-underline {
  position: relative;
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
}

.heading-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: #ffd500;
  border-radius: 2px;
}

.heading-underline.w-80::after {
  width: 80px;
}

.heading-underline.w-left::after {
  left: 0;
  transform: translateX(0);
}

/* 레이아웃 */

/* section.wd-title-bar .large-12.columns {
  padding-left: 3.57143rem !important;
  padding-right: 3.57143rem !important;
} */

main .main .columns {
  padding-left: 3.57143rem !important;
  padding-right: 3.57143rem !important;
}

/* 반응형 패딩 - max-width 기준 */
@media only screen and (max-width: 64em) { /* 1024px */
  main .main .columns {
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
  }
}

@media only screen and (max-width: 56.25em) { /* 900px */
  main .main .columns {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

@media only screen and (max-width: 40em) { /* 640px */
  main .main .columns {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* 푸터 */
  section.wd-footer .columns,
  footer .columns {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .wd-copyright ul {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  .wd-copyright .menu li {
    padding: 0 10px;
  }
}

/* Gutentor Carousel */
.gutentor-carousel-row .slick-slide,
.gutentor-module-carousel-row .slick-slide {
  position: relative;
  margin: 15px;
  height: 40px;
}

.gutentor-carousel-row .slick-slide .gutentor-col-wrap,
.gutentor-module-carousel-row .slick-slide .gutentor-col-wrap {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

/* Nav Layout */
:root {
  --header-text-color: rgba(0, 0, 0, 1);
  --header-text-color-home: rgba(255, 255, 255, 1);
  --header-bg-color: #fff;
  --header-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  --dropdown-arrow: rgba(255, 255, 255, 0.4);

  /* 1차 메뉴 hover 효과 */
  --topbar-link-color-hover: rgba(170, 170, 170, 1);
}

.creative-layout .contain-to-grid.sticky {
  box-shadow: var(--header-shadow);
}

body.home .creative-layout .contain-to-grid.sticky:not(.fixed) {
  box-shadow: none !important;
}

.creative-layout .contain-to-grid.sticky.fixed {
  position: fixed !important;
  top: 0;
  background-color: var(--header-bg-color);
}

body:not(.home) .creative-layout .contain-to-grid.sticky {
  position: relative;
  min-height: 81px;
}

.creative-layout .contain-to-grid .top-bar .top-bar-section .menu > li > a {
  color: var(--header-text-color) !important;
}

body.home .creative-layout .contain-to-grid:not(.fixed) .top-bar .top-bar-section .menu > li > a {
  color: var(--header-text-color-home) !important;
}

.creative-layout .contain-to-grid .top-bar-section .has-dropdown > a::after {
  border: inset 5px;
  border-color: var(--dropdown-arrow) transparent transparent transparent;
}

.revslider {
  background-color: #0f131a;
}

/* 1차 메뉴 hover 효과 - href="#"가 아닌 실제 링크에만 적용 */
/* 40.0625em = 641px */
@media only screen and (min-width: 40.0625em) {
  /* 일반 페이지에서 (검은색 텍스트 → hover시 밝은 회색) */
  .creative-layout .top-bar .top-bar-section .menu > li > a:not([href="#"]):hover {
    color: var(--topbar-link-color-hover) !important;
    transition: color 0.3s ease;
  }

  /* 홈페이지에서 fixed 되기 전 (흰색 텍스트 → hover시 glow 효과) */
  body.home .creative-layout .contain-to-grid:not(.fixed) .top-bar .top-bar-section .menu > li > a:not([href="#"]):hover {
    text-shadow:
      0 0 10px rgba(255, 255, 255, 0.8),
      0 0 20px rgba(255, 255, 255, 0.6),
      0 0 30px rgba(255, 255, 255, 0.4),
      0 0 40px rgba(255, 255, 255, 0.2) !important;
    transition: text-shadow 0.3s ease;
  }
}

.object-fit-cover {
  object-fit: cover !important;
}

/* app.css 오버라이드 */
/* 61.3167em = 981px, 73.1429em = 1170px */
@media only screen and (min-width: 61.3167em) and (max-width: 73.1429em) {
  .top-bar-section {
      margin-top: 19px;
  }

  /* .creative-layout .contain-to-grid.sticky.fixed {
      top: 40px;
  } */
}

/* 56.3745em = 902px, 61.3168em = 981px */
@media only screen and (min-width: 56.3745em) and (max-width: 61.3168em) {
  section.creative, section.creative .dropdown {
      background: #fff;
  }

  body.home .creative-layout .contain-to-grid:not(.fixed) .top-bar .top-bar-section .menu > li > a {
      color: var(--header-text-color) !important;
  }

  .creative-layout .contain-to-grid.sticky {
      position: relative;
  }
}


/* ============================================
   모바일 드로어 메뉴
   ============================================ */
@media screen and (max-width: 900px) {

  /* === 모바일 메뉴 CSS 변수 === */
  :root {
    --mobile-menu-font-size: 14px;
    --mobile-header-height: 60px;
    --mobile-admin-bar-height: 46px;
    --mobile-drawer-width-full: 90%;
    --mobile-drawer-max-width-full: 400px;
    --mobile-left-area-ratio: 40%;
    --mobile-right-area-ratio: 60%;
  }

  body:not(.home) .creative-layout .contain-to-grid.sticky {
    position: relative;
    min-height: calc(var(--mobile-header-height) + 1px);
  }

  .top-bar-section .has-dropdown.moved.active > a::after {
    display: none!important;
  }

  /* === 모바일 기본 스타일 === */

  /* 햄버거 메뉴 아이콘 (흰색 3줄) */
  .top-bar .toggle-topbar.menu-icon a span::after {
      box-shadow: 0 0 0 1px #fff, 0 7px 0 1px #fff, 0 14px 0 1px #fff;
  }

  /* 로고 이미지 전환 (모바일에서는 sticky 로고 사용) */
  .creative-layout .logo {
    display: none !important;
  }

  .creative-layout .fixed .logo-sticky {
      padding-top: 0;
  }

  .creative-layout .logo-sticky {
    display: block !important;
  }

  /* 로고 위치 조정 */
  .creative-layout .top-bar .title-area .name a {
    padding-top: 7px !important;
  }

  /* 햄버거 메뉴 아이콘 위치 */
  .creative-layout .top-bar .toggle-topbar.menu-icon {
    margin-top: 0 !important;
    padding-right: 10px;
    transform: translateY(-50%) !important;
  }

  /* 모바일 메뉴가 열렸을 때 페이지 스크롤 방지 - 앵커 링크 이동을 위해 제거 */
  /* body:has(.top-bar.expanded),
  html:has(.top-bar.expanded) {
    overflow: hidden !important;
    height: 100% !important;
  } */

  /* === 1. 상단 헤더 영역 (로고 + 햄버거) - 항상 고정 === */
  /* 맨 위에 있을 때도 헤더를 고정 */
  .creative-layout .sticky {
    position: fixed !important;
    top: 0 !important; /* 기본값: 맨 위 */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: var(--mobile-header-height) !important;
    z-index: 10001 !important;
    background: #000 !important;
  }

  /* WordPress 관리자 바가 있을 때 헤더 위치 조정 */
  /* .fixed 클래스가 있을 때 (스크롤 다운 후) - 관리자 바가 숨겨지면 헤더를 맨 위로 */
  .logged-in .creative-layout .sticky.fixed {
    top: 0 !important; /* 관리자 바가 숨겨지면 헤더를 맨 위로 */
  }

  /* .fixed 클래스가 없을 때 (맨 위) - 관리자 바가 보이면 헤더를 아래로 */
  .logged-in .creative-layout .sticky:not(.fixed) {
    top: var(--mobile-admin-bar-height) !important; /* 모바일에서 관리자 바 높이 - 맨 위에서도 관리자 바 아래 */
  }

  .creative-layout .top-bar-container .top-bar {
    position: relative !important;
    width: 100% !important;
    height: var(--mobile-header-height) !important;
    background: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .creative-layout .top-bar .title-area {
    position: relative !important;
    background: #000 !important;
    height: var(--mobile-header-height) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 15px !important;
  }

  /* === 2. 드로어 메뉴 영역 === */
  .creative-layout .top-bar .top-bar-section {
    position: fixed !important;
    top: var(--mobile-header-height) !important;
    left: 0 !important;
    width: var(--mobile-drawer-width-full) !important;
    max-width: var(--mobile-drawer-max-width-full) !important;
    height: calc(100vh - var(--mobile-header-height)) !important;
    background: #2c2c2c !important;
    display: flex !important;
    flex-direction: row !important;
    transform: translateX(-100%) !important; /* 기본적으로 숨김 */
    transition: transform 0.3s ease-in-out !important; /* width, max-width transition 제거 - 하위메뉴 전환 시 깜빡임 방지 */
    z-index: 9999 !important;
    overflow: hidden !important;
  }

  /* 하위메뉴가 없을 때 드로어 메뉴 너비를 좌측 영역 실제 너비와 같게 설정 (90% * 40% = 36% 또는 400px * 40% = 160px) */
  .creative-layout .top-bar .top-bar-section:not(:has(.has-dropdown.active > .sub-menu.dropdown:not(:empty))) {
    width: calc(var(--mobile-drawer-width-full) * 0.4) !important; /* 90% * 40% = 36% */
    max-width: calc(var(--mobile-drawer-max-width-full) * 0.4) !important; /* 400px * 40% = 160px (하위메뉴가 있을 때의 좌측 영역 실제 너비) */
  }

  /* 드로어 메뉴가 열릴 때 (.expanded 클래스) */
  .creative-layout .top-bar.expanded .top-bar-section {
    transform: translateX(0) !important; /* 보이게 */
    background-color: #fff !important;
  }

  /* WordPress 관리자 바가 있을 때 드로어 메뉴 위치 조정 */
  /* .fixed 클래스가 있을 때 (스크롤 다운 후) - 관리자 바가 숨겨지면 드로어를 헤더 아래로 */
  .logged-in .creative-layout .sticky.fixed ~ .top-bar .top-bar-section,
  .logged-in .creative-layout .sticky.fixed .top-bar .top-bar-section {
    top: var(--mobile-header-height) !important; /* 헤더 높이만큼 (관리자 바 없음) */
    height: calc(100vh - var(--mobile-header-height)) !important;
  }

  /* .fixed 클래스가 없을 때 (맨 위) - 관리자 바가 보이면 드로어도 아래로 */
  .logged-in .creative-layout .sticky:not(.fixed) ~ .top-bar .top-bar-section,
  .logged-in .creative-layout .sticky:not(.fixed) .top-bar .top-bar-section {
    top: calc(var(--mobile-admin-bar-height) + var(--mobile-header-height)) !important; /* 관리자 바 + 헤더 높이 */
    height: calc(100vh - var(--mobile-admin-bar-height) - var(--mobile-header-height)) !important;
  }

  /* === 3. 어두운 오버레이 === */
  /* body에 오버레이를 생성하여 독립적인 스택 컨텍스트 확보 */
  body::before {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 9998 !important; /* 헤더(10001)와 메뉴(9999) 사이, 배경 위에 표시 */
    pointer-events: none !important;
    opacity: 0 !important; /* 기본적으로 숨김 */
    transition: opacity 0.3s ease-in-out !important;
    display: block !important;
  }

  /* 드로어 메뉴가 열릴 때 오버레이 표시 */
  body:has(.creative-layout .top-bar.expanded)::before {
    opacity: 1 !important; /* 보이게 */
    pointer-events: auto !important; /* 오버레이 영역 활성화 */
  }

  /* === 4. 왼쪽 영역 (1단계 메뉴) - 40% === */
  .creative-layout .top-bar .top-bar-section > div {
    flex: 0 0 var(--mobile-left-area-ratio) !important;
    width: var(--mobile-left-area-ratio) !important;
    height: 100% !important;
    background: #2c2c2c !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    /* transition 제거 - 하위메뉴 전환 시 1단계 메뉴가 움직이지 않도록 */
  }

  /* 하위메뉴가 없는 항목이 active일 때 왼쪽 영역을 100%로 확장 (드로어 메뉴 너비는 90% 유지) */
  .creative-layout .top-bar .top-bar-section:not(:has(.has-dropdown.active > .sub-menu.dropdown:not(:empty))) > div {
    flex: 0 0 100% !important;
    width: 100% !important;
  }

  /* 1단계 메뉴 리스트 */
  .creative-layout .top-bar .top-bar-section > div > ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 1단계 메뉴 항목 */
  .creative-layout .top-bar .top-bar-section > div > ul > li {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: none !important; /* 하단 흰색선 제거 */
  }

  /* 1단계 메뉴 링크 (기본 - 선택 안됨) */
  .creative-layout .top-bar .top-bar-section > div > ul > li > a {
    display: block !important;
    position: relative !important; /* 삼각형 아이콘 위치 지정을 위해 */
    padding: 18px 20px !important;
    color: #7D7D83 !important; /* 회색 텍스트 */
    font-size: var(--mobile-menu-font-size) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    background: #2c2c2c !important;
    border-bottom: none !important; /* 하단 흰색선 제거 */
    transition: all 0.2s ease !important;
  }

  .creative-layout .top-bar .top-bar-section > div > ul > li > a:hover {
    background-color: #3a3a3a !important;
    border-bottom: none !important; /* 하단 흰색선 제거 */
  }

  /* 드로어가 열렸을 때 (expanded) 1단계 메뉴 링크 색상 유지 */
  /* 기존 CSS 오버라이드 */
  body.home .creative-layout .top-bar.expanded .top-bar-section .menu > li > a,
  .creative-layout .top-bar.expanded .top-bar-section .menu > li > a,
  .creative-layout .top-bar.expanded .top-bar-section > div > ul > li > a {
    color: #7D7D83 !important; /* 회색 텍스트 유지 */
    border-bottom: none !important; /* 하단 흰색선 제거 */
    word-break: keep-all;
  }

  /* 1단계 메뉴 선택된 상태 (.active) */
  /* 기존 CSS 오버라이드 - .expanded 유무와 관계없이 작동 */
  html body.home .creative-layout .top-bar .top-bar-section .menu > li.active > a,
  html body.home .creative-layout .top-bar .top-bar-section .menu > li.active > a:link,
  html body.home .creative-layout .top-bar .top-bar-section .menu > li.active > a:visited,
  html body.home .creative-layout .top-bar .top-bar-section .menu > li.has-dropdown.active > a,
  html body.home .creative-layout .top-bar .top-bar-section .menu > li.has-dropdown.active > a:link,
  html body.home .creative-layout .top-bar .top-bar-section .menu > li.has-dropdown.active > a:visited,
  html body .creative-layout .top-bar .top-bar-section .menu > li.active > a,
  html body .creative-layout .top-bar .top-bar-section .menu > li.active > a:link,
  html body .creative-layout .top-bar .top-bar-section .menu > li.active > a:visited,
  html body .creative-layout .top-bar .top-bar-section .menu > li.has-dropdown.active > a,
  html body .creative-layout .top-bar .top-bar-section .menu > li.has-dropdown.active > a:link,
  html body .creative-layout .top-bar .top-bar-section .menu > li.has-dropdown.active > a:visited,
  html body .creative-layout .top-bar .top-bar-section > div > ul > li.active > a,
  html body .creative-layout .top-bar .top-bar-section > div > ul > li.active > a:link,
  html body .creative-layout .top-bar .top-bar-section > div > ul > li.active > a:visited,
  html body .creative-layout .top-bar .top-bar-section > div > ul > li.has-dropdown.active > a,
  html body .creative-layout .top-bar .top-bar-section > div > ul > li.has-dropdown.active > a:link,
  html body .creative-layout .top-bar .top-bar-section > div > ul > li.has-dropdown.active > a:visited {
    color: #ffffff !important; /* 흰색 텍스트 */
    background-color: #4a4a4a !important; /* 선택된 항목 배경색 */
    border-left: 4px solid #007bff !important; /* 왼쪽 파란색 경계선 */
    border-bottom: none !important; /* 하단 흰색선 제거 */
    padding-left: 16px !important; /* 경계선만큼 padding 조정 */
  }

  /* 1단계 메뉴 active 상태 삼각형 아이콘 - 오른쪽 방향 */
  html body.home .creative-layout .top-bar .top-bar-section .menu > li.has-dropdown.active > a::after,
  html body .creative-layout .top-bar .top-bar-section .menu > li.has-dropdown.active > a::after,
  html body .creative-layout .top-bar .top-bar-section > div > ul > li.has-dropdown.active > a::after {
    border-color: transparent transparent transparent #ffffff !important; /* 오른쪽 방향 */
    display: block !important;
    margin-right: 12px !important; /* 오른쪽으로 조금 이동 */
  }

  /* === 5. 오른쪽 영역 (2,3단계 메뉴) - 60% === */
  /* viewport 기준으로 고정 배치 */
  html body .creative-layout .top-bar-container .top-bar .top-bar-section .sub-menu.dropdown,
  html body .creative-layout .top-bar .top-bar-section > div > ul > li > .sub-menu.dropdown {
    position: fixed !important;
    top: 0 !important; /* 화면 최상단부터 시작 */
    left: -100% !important; /* 기본적으로 화면 밖으로 숨김 */
    width: var(--mobile-right-area-ratio) !important; /* 드로어의 우측 영역 */
    max-width: calc(var(--mobile-drawer-max-width-full) * 0.6) !important; /* 400px * 60% = 240px */
    height: 100vh !important; /* 전체 화면 높이 */
    background: #ffffff !important;
    display: none !important; /* 숨김 */
    opacity: 0 !important;
    visibility: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-left: 1px solid #e0e0e0 !important; /* 왼쪽 구분선 */
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.08) !important; /* 왼쪽 그림자 */
    clip: auto !important; /* Foundation의 clip 무효화 */
    z-index: 10000 !important;
  }

  /* 빈 하위메뉴는 완전히 숨김 */
  html body .creative-layout .top-bar .top-bar-section > div > ul > li > .sub-menu.dropdown:empty {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  /* .active 클래스가 있을 때 우측 메뉴 표시 (하위메뉴가 실제로 있는 경우에만) */
  html body .creative-layout .top-bar .top-bar-section > div > ul > li.has-dropdown.active > .sub-menu.dropdown:not(:empty) {
    left: var(--mobile-left-area-ratio) !important; /* 드로어의 좌측 영역 끝에서 시작 */
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* 하위메뉴가 없는 항목(.has-dropdown이 없는 경우)의 하위메뉴는 표시하지 않음 */
  html body .creative-layout .top-bar .top-bar-section > div > ul > li:not(.has-dropdown) > .sub-menu.dropdown {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  /* Back 버튼 숨김 */
  .creative-layout .top-bar .top-bar-section .title.back,
  .creative-layout .top-bar .top-bar-section .parent-link.hide-for-medium-up {
    display: none !important;
  }

  /* === 6. 2단계 메뉴 스타일 === */
  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown > li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border-bottom: 1px solid #f0f0f0 !important; /* 항목 간 구분선 */
  }

  /* 2단계 메뉴 링크 */
  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown > li > a {
    display: block !important;
    position: relative !important;
    padding: 16px 20px 16px 20px !important;
    color: #333333 !important;
    font-size: var(--mobile-menu-font-size) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    background: #ffffff !important;
    border-left: none !important;
    transition: all 0.2s ease !important;
    line-height: 1.5 !important;
  }

  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown > li > a:hover {
    background: #ffffff !important; /* 배경색 변경 없음 */
    color: #007bff !important;
  }

  /* 2단계 메뉴 링크 활성 상태 - 배경색 변경 없음 */
  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown > li > a:active,
  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown > li.active > a {
    background: #ffffff !important; /* 배경색 변경 없음 */
    color: #007bff !important;
  }

  /* 2단계 메뉴 - 현재 페이지 표시 */
  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown > li > a.current-page {
    color: #008CBA !important; /* 파란색 */
    font-weight: 700 !important;
  }

  /* has-dropdown인 2단계 항목 (3단계 있는 경우) */
  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown > li.has-dropdown > a {
    font-weight: 700 !important;
    color: #000000 !important;
    padding-right: 40px !important; /* 화살표 공간 확보 */
  }

  /* 2단계 메뉴의 Foundation 기본 삼각형 제거 */
  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown > li.has-dropdown > a::after {
    border: none !important; /* Foundation 기본 삼각형 제거 */
    content: '›' !important; /* 화살표만 표시 */
    position: absolute !important;
    right: 16px !important;
    top: 28% !important;
    transform: translateY(-50%) !important;
    font-size: 20px !important;
    color: #999999 !important;
    font-weight: normal !important;
    display: block !important;
  }

  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown > li.has-dropdown > a:hover::after {
    color: #007bff !important;
  }

  /* === 7. 3단계 메뉴 스타일 === */
  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown .sub-menu.dropdown {
    position: static !important;
    width: 100% !important;
    height: auto !important; /* 높이는 자동으로 조절 */
    background: #f8f9fa !important; /* 연한 회색 배경으로 계층 구분 */
    display: block !important; /* 항상 표시 */
    opacity: 1 !important;
    visibility: visible !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    border: none !important;
    border-top: 1px solid #e9ecef !important; /* 상단 구분선 */
    border-bottom: 1px solid #e9ecef !important; /* 하단 구분선 */
    box-shadow: none !important;
  }

  /* 3단계 메뉴 항목 */
  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown .sub-menu.dropdown > li {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: none !important;
  }

  /* 3단계 메뉴 링크 */
  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown .sub-menu.dropdown > li > a {
    display: block !important;
    position: relative !important;
    padding: 10px 20px 10px 34px !important; /* 들여쓰기로 계층 구조 표현 */
    color: #666666 !important;
    font-size: calc(var(--mobile-menu-font-size) - 1px) !important; /* 약간 작은 폰트 */
    font-weight: 400 !important;
    text-decoration: none !important;
    background: transparent !important;
    border-left: none !important;
    transition: all 0.2s ease !important;
    line-height: 1.5 !important;
  }

  /* 3단계 메뉴 링크 앞에 작은 점 표시 */
  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown .sub-menu.dropdown > li > a::before {
    content: '•' !important;
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 12px !important;
    color: #999999 !important;
    display: block !important;
  }

  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown .sub-menu.dropdown > li > a:hover {
    color: #007bff !important;
    background: transparent !important; /* 배경색 변경 없음 */
  }

  /* 3단계 메뉴 hover 시 불릿 포인트 색상 변경 없음 (텍스트만 변경) */
  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown .sub-menu.dropdown > li > a:hover::before {
    color: #999999 !important; /* 원래 색상 유지 */
  }

  /* 3단계 메뉴 링크 활성 상태 (텍스트 색상만 변경) */
  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown .sub-menu.dropdown > li > a:active,
  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown .sub-menu.dropdown > li.active > a {
    color: #007bff !important; /* 텍스트 색상만 변경 */
    background: transparent !important; /* 배경색 변경 없음 */
  }

  /* 3단계 메뉴 active 시 불릿 포인트 색상 변경 없음 */
  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown .sub-menu.dropdown > li > a:active::before,
  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown .sub-menu.dropdown > li.active > a::before {
    color: #999999 !important; /* 원래 색상 유지 */
  }

  /* 3단계 메뉴 - 현재 페이지 표시 */
  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown .sub-menu.dropdown > li > a.current-page {
    color: #008CBA !important; /* 파란색 */
    font-weight: 600 !important;
  }

  /* 3단계 메뉴의 삼각형 아이콘 제거 */
  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown .sub-menu.dropdown > li.has-dropdown > a::after {
    border: none !important; /* Foundation 기본 삼각형 제거 */
    display: none !important;
  }

  /* === 8. 스크롤바 스타일링 (선택사항) === */
  .creative-layout .top-bar .top-bar-section > div::-webkit-scrollbar,
  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown::-webkit-scrollbar {
    width: 6px;
  }

  .creative-layout .top-bar .top-bar-section > div::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
  }

  .creative-layout .top-bar .top-bar-section > div::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
  }

  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
  }

  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
  }

  .creative-layout .top-bar .top-bar-section .sub-menu.dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
  }

  /* === 9. 메인 컨텐츠 상단 여백 조정 === */
  body {
    padding-top: var(--mobile-header-height) !important;
  }
}
