* {
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}
#mobile-menu .submenu-group ul li a {
  white-space: nowrap !important;
}


.logo {
  height: 30px;
  padding-top: 20px;
  padding-bottom: 15px;
}

.menu {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding-top: 20px;
  padding-bottom: 15px;
  justify-content: center;
  gap: 30px;
}

li a,
.dropbtn {
  display: inline-block;
  padding: 10px 14px;
  color: rgb(0, 0, 0);
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-family: 'AppleSDGothicNeoSB';
}

.menu > li:hover > a,
.menu > li:hover > .dropbtn {
  color: #001D3D;
  background-color: transparent;
}

/*드롭다운 메뉴*/
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #eeeeee;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  font-size: 12px;
  border-radius: 8px;
  overflow: hidden;
  font-family: 'AppleSDGothicNeoSB';
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  border-bottom: 1px solid #ccc;
  font-family: 'AppleSDGothicNeoR';
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #001D3D;
  color: white;
}

.dropdown:hover .dropdown-content {
  display: block;
}
/* 햄버거 메뉴가 열렸을 때는 드롭다운 메뉴가 안 보이도록 */
header.menu-open .dropdown:hover .dropdown-content {
  display: none !important;
}
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-container {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}


#hamburger {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: black;
  padding: 0 20px;
  line-height: 1;
}

#mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 190px;
  background-color: rgba(255, 255, 255, 0.9); 
  box-sizing: border-box;
  padding: 10px 20px;
  z-index: 10;
  overflow: hidden;
  border-top: 1px solid #ccc;
  opacity: 0;
  transform: translateY(-20px);
}


@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#mobile-menu.slide-down {
  animation: slideDown 0.3s forwards;
  opacity: 1;
  transform: translateY(0);
}

.mobile-submenu-nav {
  position: absolute;
  top: 0;
  left: 50%;              
  transform: translateX(-50%);
  height: 100px;          
  white-space: nowrap;
  width: auto;
  padding-top: 10px;
}

.submenu-group {
  display: inline-block;
  vertical-align: top;
  width: 105px;
  margin: 0 0px;  
  position: static;
}


.submenu-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.submenu-group ul li a {
  padding: 5px 0px 5px 18px; 
  color: black !important;
  text-decoration: none;
  font-weight: normal;
  display: block;
  text-align: center;
  font-size: 12px;
  font-family: 'AppleSDGothicNeoR';
}


#lang-mobile {
  font-weight: normal;
  font-size: 13px;
  line-height: 1.3;
  color: black;
  cursor: default;
  padding-top: 5px;
  user-select: none;
  text-align: center;
}

#lang-mobile a {
  color: black;
  text-decoration: none;
}

#lang-mobile a:hover {
  text-decoration: underline;
}
.submenu-group ul li a:hover {
  color: #3a6ea6 !important;
  background-color: transparent !important;
  text-decoration: none !important;
}
img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#lang {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-family: 'AppleSDGothicNeoSB';
}

#lang a {
  color: black;
  text-decoration: none;
}

#lang span {
  color: black;
}

/*데모*/
#demo-button {
  position: absolute;
  top: 50%;
  right: 70px; 
  transform: translateY(-50%);
  display: inline-block;
  padding: 8px 16px;
  background-color: #000b41;
  color: white;
  font-family: 'AppleSDGothicNeoSB';
  font-size: 13px;
  font-weight: bold;
  border: 2px solid #000b41;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

#demo-button:hover {
  background-color: white;
  color: #000b41;
  border-color: #000b41;
  text-decoration: none;
}

html, body {
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

html, body, header, .container {
  overflow-x: visible !important;
  overflow: visible !important;
}
/* 모바일 사이드바 - 전체 레이아웃 */
#mobile-sidebar {
  display: none;
}

#mobile-sidebar.open {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background-color: white;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  animation: slideInLeft 0.3s forwards;
}

/* 애니메이션 */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.mobile-sidebar-content {
  padding: 20px;
}

.mobile-sidebar-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 상위 메뉴 */
.mobile-sidebar-content ul li.menu-category {
  font-weight: bold;
  font-size: 15px;
  padding: 10px 0 5px 0;
  border-bottom: 1px solid #ddd;
  color: #001D3D;
}

/* 하위 메뉴를 포함하는 ul */
.mobile-sidebar-content ul li.menu-category > ul {
  padding-left: 15px; 
  margin-top: 5px;
}

/* 하위 메뉴 리스트 아이템 */
.mobile-sidebar-content ul li.menu-category > ul > li {
  margin-bottom: 6px; 
}

/* 하위 메뉴 링크 */
.mobile-sidebar-content ul li.menu-category > ul > li a {
  font-weight: normal;
  font-size: 14px; 
  color: black;
  text-decoration: none;
  padding: 3px 0;
  display: block;
  text-align: left; 
}

.mobile-sidebar-content ul li.menu-category > ul > li a:hover {
  color: #001D3D;
  text-decoration: none;
}

/* 로그인, 언어 메뉴 등 일반 메뉴 링크 */
.mobile-sidebar-content ul li a {
  color: #000;
  text-decoration: none;
  font-size: 14px;
  font-family: 'AppleSDGothicNeoR';
  padding: 5px 0;
  display: block;
}

.mobile-sidebar-content ul li a:hover {
  color: #001D3D;
  text-decoration: none;
}


@media screen and (max-width: 768px) {
  .menu,
  #demo-button,
  #lang {
    display: none !important;
  }

  .container {
    justify-content: center;
  }

  .logo-container {
    position: static;
    transform: none;
    margin: 0 auto;
  }

  #hamburger {
    left: 20px;
    right: auto;
  }
}

/* 사이드바 닫기 버튼 (>> 버튼) */
#mobile-sidebar button#sidebar-close {
  display: block;
  margin-bottom: 12px;
  color: #001D3D;
  font-weight: bold;
  user-select: none;
  float: right;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
}

#mobile-sidebar button#sidebar-close:hover {
  color: #3a6ea6;
}

/* 데모 보러가기 버튼 - 모바일 사이드바 안 */
#mobile-sidebar #demo-button {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 16px;
  background-color: #000b41;
  color: white;
  font-family: 'AppleSDGothicNeoSB';
  font-size: 13px;
  font-weight: bold;
  border: 2px solid #000b41;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  text-align: center;
}

#mobile-sidebar #demo-button:hover {
  background-color: white;
  color: #000b41;
  border-color: #000b41;
  text-decoration: none;
}
#lang-mobile {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;  /* ENG와 KOR 사이 간격 */
  font-weight: normal;
  font-size: 13px;
  line-height: 1.3;
  color: black;
  cursor: default;
  padding-top: 5px;
  user-select: none;
  text-align: center;
}

#lang-mobile a {
  color: black;
  text-decoration: none;
}

#lang-mobile a:hover {
  text-decoration: none;  
}
