@charset "utf-8";
/* ================================================
   디알원탑 메가메뉴 + 페이지 전환
   2026-04-17
   ================================================ */

/* ── 페이지 전환 오버레이 ── */
.page-transition-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #0A0F1E;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.page-transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ── 스크롤 헤더: isFixed 시 흰색 배경으로 전환 ── */
.header.isFixed {
  background: rgba(255,255,255,0.98) !important;
  box-shadow: 0 1px 20px rgba(0,0,0,0.08) !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
}
.header.isFixed .navbar-brand .logo-wh { display: none !important; }
.header.isFixed .navbar-brand .logo-dark { display: inline-block !important; }
.header.isFixed .gnb .nav-link { color: #222 !important; }
.header.isFixed .gnb .nav-item.active > .nav-link,
.header.isFixed .gnb .nav-item:hover > .nav-link { color: #159DD4 !important; }
.header.isFixed .btn-trigger .bi { color: #222 !important; }
.header.isFixed .bi { color: #222 !important; }

/* 기본 상태: 투명, 흰색 로고/메뉴 */
.header:not(.isFixed) .navbar-brand .logo-wh { display: inline-block !important; }
.header:not(.isFixed) .navbar-brand .logo-dark { display: none !important; }
.header:not(.isFixed) .gnb .nav-link { color: #fff !important; }
.header:not(.isFixed) .gnb .nav-item.active > .nav-link,
.header:not(.isFixed) .gnb .nav-item:hover > .nav-link { color: #159DD4 !important; }

/* ── 메가 패널 (개별 드롭다운) ── */
@media (min-width: 993px) {
  .gnb .nav-item { position: relative; }
  .gnb .nav-item .submenu {
    /* opacity/visibility 방식으로 전환 (display:none→block 대신) */
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(8px);
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.06);
    padding: 16px 0;
    border: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    pointer-events: none;
    white-space: nowrap;
  }

  .gnb .nav-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* 패널 화살표 */
  .gnb .nav-item .submenu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    transform: rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 2px;
  }

  /* 서브 메뉴 아이템 */
  .gnb .nav-item .submenu .sub-item {
    margin-bottom: 0 !important;
  }

  .gnb .nav-item .submenu .sub-link {
    display: block;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 400;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
  }
  .gnb .nav-item .submenu .sub-link::after {
    display: none !important;
  }

  .gnb .nav-item .submenu .sub-link:hover {
    color: #159DD4;
    background: rgba(21, 157, 212, 0.05);
    padding-left: 28px;
  }

  .gnb .nav-item .submenu .sub-item.active .sub-link {
    color: #159DD4;
    font-weight: 600;
  }

  /* active dot 숨김 (메가메뉴에서는 불필요) */
  .gnb .nav-item::after {
    display: none !important;
  }

  /* nav-link 정렬 */
  .gnb .nav-link {
    padding: 28px 24px !important;
    display: flex;
    align-items: center;
    transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* ── 모바일: 기존 스타일 유지, 전환 효과 비활성 ── */
@media (max-width: 992px) {
  .page-transition-overlay { display: none; }
}
