

/* 기본 높이 */
#header_top.default-height {
  height: 100px;
  transition: height 0.3s ease;
}

/* sticky 상태일 때 자동 높이 */
#header_top.auto-height {
  height: auto;
}

#search_wrap{
    width:33.33%;
}

#search_word{
    color:#333; width:100%; font-size:16px; height:48px; padding:0 28px; outline-width:0; border:1px solid #ddd; border-radius:25px;
}

#search_icon{
    position:absolute; top:4px; right:5px; z-index:1;
    width:40px; height:40px; cursor:pointer; border-radius:100%;
}

#search_icon div{
    display:inline-block;
}

#icon_wrap i{
    font-size: 36px;
    margin-right:25px;
}

#gnb{
    display: flex;
    height:68px;
    justify-content: center;
}

#gnb ul{
    display: flex;
    align-items: center;
    gap:25px;
    font-size: 15px;
    font-weight: bold;
}

#gnb .right{
    display: flex;
    align-items: center;
    gap:10px;
}



#search-area {
    display: none;
    border-bottom: 1px solid #999;
    padding: 6px 10px;
    align-items: center;
}

#search-area input {
    border: none;
    outline: none;
    width: 100%;
}

.icon-btn {
    background: none;
    border: none;
    padding: 0;
}


/* 전체 오버레이 */
#sideMenuOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 999;
}

/* 사이드 메뉴 패널 */
#sideMenuPanel {
  position: fixed;
  top: 0; left: 0;
  width: 260px;
  height: 100%;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  box-shadow: 2px 0 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

/* 메뉴 상단 */
#sideMenuHeader {
  background: #e53935;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#sideMenuHeader i {
  font-size: 1.5rem;
}

/* 메뉴 리스트 */
#sideMenuContent {
  overflow-y: auto;
  padding: 0;
}

#sideMenuContent .menu-title {
  padding: 10px 16px;
  font-weight: bold;
  background: #f9f9f9;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

#sideMenuContent li {
  list-style: none;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f1f1;
  cursor: pointer;
}

#sideMenuContent li.text-danger {
  color: red !important;
}


/* 드롭다운 컨테이너 */
#gnb ul li.dropdown {
    position: relative;
}

/* 서브메뉴 스타일 */
#gnb ul li .submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 10px);
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    font-size: 14px;
    display: block; /* ✅ flex 대신 block으로 변경 */
    text-align: center;
}

/* 하위 항목 간격 */
#gnb ul li .submenu li {
    padding: 6px 12px; /* ✅ 간격 조정 */
    font-weight: normal;
    white-space: nowrap;
}

#gnb ul li .submenu li:hover {
    background: #f9f9f9;
}

/* 마우스 올렸을 때 */
#gnb ul li.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0px);
}

@media (max-width: 767.98px) {
  #gnb ul {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* iOS 스크롤 부드럽게 */
    gap: 1rem;
    padding: 0 15px;
  }

  #gnb ul li {
    flex: 0 0 auto; /* 줄바꿈 방지 + 고정 너비 */
  }

  /* 필요시 스크롤바 숨기기 */
  #gnb ul::-webkit-scrollbar {
    display: none;
  }
}
