.elementor-8509 .elementor-element.elementor-element-b25b164{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}@media(max-width:767px){.elementor-8509 .elementor-element.elementor-element-b25b164{--width:100vw;--align-items:stretch;--container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );--padding-top:0px;--padding-bottom:0px;--padding-left:20px;--padding-right:20px;}}/* Start custom CSS for html, class: .elementor-element-a8d817e *//* --- Global Styles --- */

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#custom-header-second.hide {
  transform: translateY(-100%);
}

.header-logo-second a:focus,
.sub-menu-list li a:focus {
  outline: none;
}

#custom-header-second {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 80px;
  transition: background-color 0.3s ease-in-out, height 0.3s ease-in-out, transform 0.3s ease-in-out;
  padding: 0;
  background-color: transparent;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

/* --- Logo Styles --- */

.header-logo-second {
  position: absolute;
  left: 10vw;
  padding-top: 10px;
  z-index: 1001;
  display: flex;
}

.header-logo-second img {
  max-height: 60px;
  width: auto;
  display: block;
}

/* --- Main Menu Container --- */

.header-content-wrapper-second {
  display: flex;
   position: relative;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Ensure the PC menu is always a flex container on large screens */
.main-menu-list-second1 {
  z-index: 1000;
  display: flex;
  max-width: 600px;
  list-style-type: none !important;
  transition: max-width 0.3s ease-in-out;
}

/* --- Main Menu Items --- */

.main-menu-item-second,
.main-menu-item-second2,
.main-menu-item-second3,
.main-menu-item-second4 {
  position: relative;
  padding: 0;
  list-style-type: none;
  width: 200px;
  padding-top: 25px;
  margin-right: 0;
}

.main-menu-list-second1 li > span {
  font-weight: 500;
  font-size: 1.1em;
  padding: 0;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  text-shadow: 0 0 5px #878787;
}

/* --- Sub-Menu Container and List --- */

.sub-menu-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 210px;
  display: none;
  align-items: center;
  z-index: 999;
  justify-content: center;
  list-style-type: none !important;
  transition: max-width 0.3s ease-in-out;
}

.sub-menu-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  list-style-type: none !important;
  padding: 20px 0;
  margin: 0 auto;
}

.sub-menu-list li a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px 15px;
  color: #ffffff85;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 14px;
    text-shadow: 0 0 1px #F0F0F085;
}

.sub-menu-list li a:hover {
  color: #ffffff;
}

/* --- Hover Background --- */

.main-nav-background {
  position: absolute;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #96969645;
  z-index: 998;
  transition: height 0.3s ease-in-out;
  backdrop-filter: blur(10px);
}

/* --- Hover Behavior --- */

.main-menu-list-second1:hover {
  max-width: 800px;
}

.main-menu-list-second1:hover .sub-menu-container {
  display: block;
}

.main-menu-list-second1:hover ~ .main-nav-background {
  height: 266px !important;
}

.main-menu-item-second:hover,
.main-menu-item-second2:hover,
.main-menu-item-second3:hover,
.main-menu-item-second4:hover {
  background-color: #00478B;
}

.main-menu-item-second:hover .sub-menu-container,
.main-menu-item-second2:hover .sub-menu-container,
.main-menu-item-second3:hover .sub-menu-container,
.main-menu-item-second4:hover .sub-menu-container {
  background-color: #00478B;
}



/* 1000px ~ 1200px: 13px */

@media (max-width: 1200px) and (min-width: 1000px) {
  .sub-menu-list li a {
    font-size: 13px;
  }
}

/* 999px 이하: 12px (고정) */

@media (max-width: 999px) {
  .sub-menu-list li a {
    font-size: 12px;
  }
}

/* --- Mobile Menu Styles (Initially Hidden) --- */
/* Key: Hide mobile-specific elements on large screens */

.hamburger-menu,
.mobile-menu-overlay,
.mobile-menu-offcanvas {
  display: none;
}

/* --- Media Query: 992px and below (Mobile) --- */

@media (max-width: 992px) {



  /* Show hamburger button on mobile screens */
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    position: absolute; /* ✅ 고정 위치를 위해 absolute로 변경 */
    right: 20px; /* ✅ 헤더 오른쪽 끝에서 20px 떨어지게 설정 */
    top: 25px;
    z-index: 1202; /* 다른 요소 위에 오도록 z-index 설정 */
  }

  .hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
  }

  /* Hamburger hover effect */
  .hamburger-menu:hover .bar {
    background-color: #00478B;
  }

  /* Hide PC menu on mobile screens */
  .main-menu-list-second1 {
    display: none;
  }


  /* --- Mobile Menu Overlay Styles --- */
  .mobile-menu-overlay {
    height: 100%;
    left: 0;
    opacity: 0;
    position: fixed;
    top: 0;
    transition: opacity 0.3s ease;
    visibility: hidden;
    width: 100%;
    z-index: 1999;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.5);
    /* 50% 불투명도 */
    backdrop-filter: blur(5px);
    /* 블러 효과 추가 */
  }

  /* --- Off-canvas Menu Styles --- */
  .mobile-menu-offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background-color: #fff;
    z-index: 1004;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .mobile-menu-offcanvas.active {
    transform: translateX(0);
  }

  /* Off-canvas Header (Logo, Close Button) */
  .offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    min-height: 80px;
  }

  .offcanvas-header .header-logo-second {
    position: relative;
    left: 0;
  }

  /* Close Button Styles */
  .close-btn {
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: relative;
  }

  .close-btn .bar {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 3px;
    background-color: #000;
    border-radius: 2px;
  }

  .close-btn .bar-1 {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .close-btn .bar-2 {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  /* --- Mobile Menu List --- */
  .mobile-menu-list {
    padding: 20px 0;
    margin: 0;
    flex-grow: 1;
    list-style-type: none !important;
  }


  .mobile-menu-item {
    border-bottom: 1px solid #eee;
    list-style-type: none !important;
  }

  .mobile-menu-item > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
  }

  .mobile-menu-item > a:hover {
    color: #00478B;
  }

  .mobile-menu-item i {
    transition: transform 0.3s ease;
  }

  .mobile-menu-item.active > a i {
    transform: rotate(180deg);
  }

  /* Sub-menu styles */
  .mobile-sub-menu {
    list-style-type: none !important;
    display: none;
    background-color: #f9f9f9;
    padding: 10px 0;
    margin: 0;
  }

  .mobile-sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 1em;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
  }

  .mobile-sub-menu li a:hover {
    color: #00478B;
  }

  /* Hide icon for items without sub-menus */
  .mobile-menu-item.no-sub-menu > a i {
    display: none;
  }

  /* Header text color change when hamburger is active */
  #custom-header-second.scrolled .hamburger-menu .bar {
    background-color: #000;
  }

  #custom-header-second.white-text .hamburger-menu .bar {
    background-color: #fff;
  }
}/* End custom CSS */