/* ===== Header Styles ===== */
.header.active {
  background: rgba(255, 255, 255, 0.8784313725);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  box-shadow: 0px 2px 4px 0px rgba(55, 50, 90, 0.1);
}
.header.active .header_inner .logo .logoimg {
  background-image: url("../src/assets/img/logo_co.svg");
}
.header.active .dropdownmenu a {
  color: #292d33;
}
.header.active .dropdownmenu a:hover {
  color: #292d33;
}
.header.active .language a {
  color: #292d33;
}
.header.active .language a:hover {
  color: #ffa23d;
}
.header.active .language a.active {
  color: #ffa23d;
}
.header.active .rt_con .contact_btn {
  border: 1px solid #67686f;
  color: #67686f;
  cursor: pointer;
}
.header.active .rt_con .contact_btn:hover {
  background-color: #ffa23d;
  border: 1px solid #ffa23d;
  color: #372513;
}

.header {
  width: 100%;
  height: 4.6rem;
  position: fixed;
  top: 0;
  left: 0;
  background: #2b63cb;
  z-index: 9999;
}
.header .header_inner {
  height: inherit;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  border: 0;
}
.header .header_inner .logo {
  height: inherit;
  display: flex;
  align-items: center;
  width: 126px;
}
.header .header_inner .logo .logoimg {
  width: 126px;
  height: 50px;
  background-image: url("../src/assets/img/logo_wh.svg");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.header .dropdownmenu ul,
.header .dropdownmenu li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.header .dropdownmenu ul {
  width: 100%;
}
.header .dropdownmenu li {
  float: left;
  position: relative;
  width: auto;
}
.header .dropdownmenu li i {
  margin-left: 6px;
  font-size: 14px;
}
.header .dropdownmenu a {
  color: #fff;
  display: block;
  font-size: 16px;
  font-weight: 400;
  padding: 12px 20px;
  text-align: center;
  transition: all 0.2s ease;
  opacity: 0.8;
  min-width: 140px;
}
.header .dropdownmenu a.mwd90 {
  min-width: 90px;
  padding: 12px 10px;
}
.header .dropdownmenu a:hover {
  opacity: 1;
}
.header .dropdownmenu a:hover i {
  rotate: 180deg;
}
.header .dropdownmenu .subli a {
  padding: 6px 10px;
}
.header .dropdownmenu li.active a {
  opacity: 1;
  font-weight: 500;
}
.header .dropdownmenu li.active .subli a {
  font-weight: 400;
}
.header .dropdownmenu li.active .subli a:hover {
  font-weight: 500;
}
.header li:hover ul#submenu {
  opacity: 1;
  top: 50px;
  visibility: visible;
}
.header #submenu li {
  float: none;
  width: 100%;
}
.header #submenu {
  position: absolute;
  top: 35;
  left: -32px;
  z-index: 100;
  min-width: 172px;
  opacity: 0;
  visibility: hidden;
  background-color: rgba(255, 255, 255, 0.8823529412);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border-radius: 1rem;
  padding: 16px 0;
  box-shadow: 0px 4px 20px 0px rgba(38, 40, 84, 0.1);
}
.header #submenu a {
  color: #292d33;
  opacity: 1;
  font-weight: 400;
}
.header #submenu a:hover {
  color: #2b63cb;
}
.header #submenu li.subli.active a {
  color: #2b63cb;
}

/* ===== Unified Dropdown ===== */
.unified-dropdown .dropdown-column {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  padding: 0 0 20px 0;
  margin-bottom: -20px;
  border-right: 1px solid #f2f2f2;
  align-self: stretch;
}

.unified-dropdown .dropdown-column:last-child {
  border-right: none;
}

.unified-dropdown .submenu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.unified-dropdown .submenu li {
  margin: 0;
  padding: 0;
}

.unified-dropdown .submenu a {
  color: #67686f;
  font-size: 15px;
  text-decoration: none;
  display: block;
  padding: 12px 0;
  line-height: 1.4;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
}

.unified-dropdown .submenu a.active,
.unified-dropdown .submenu a:hover {
  color: #2b63cb !important;
  text-decoration: none;
}

.unified-dropdown .submenu a.active::after,
.unified-dropdown .submenu a:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #2b63cb;
}

/* ===== Right Controls ===== */
.rt_con {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.rt_con .contact_btn {
  font-size: 15px;
  padding: 10px 40px;
  border: 1px solid #fff;
  border-radius: 40px;
  color: #fff;
  transition: all 0.2s ease;
  font-weight: 500;
}
.rt_con .contact_btn:hover {
  background-color: #ffa23d;
  border: 1px solid #ffa23d;
  color: #292d33;
}

/* ===== Language ===== */
.language {
  width: 100px;
  margin-top: -5px;
  transition: all 0.2s ease;
}
.language a {
  font-size: 0.86em;
  color: white;
  letter-spacing: 0.062em;
  position: relative;
  transition: all 0.2s ease;
}
.language a:hover {
  color: #ffa23d;
}
.language a.active {
  font-weight: 600;
  color: #ffa23d;
}
.language a.active::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #ffa23d;
  border-radius: 1px;
  bottom: -6px;
  left: 0;
}
.language a:first-child {
  margin-right: 10px;
}

.language-select {
  background: transparent;
  border: none;
  color: white;
  font-size: 0.86em;
  letter-spacing: 0.062em;
  cursor: pointer;
  padding: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='white' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 20px;
  transition: all 0.2s ease;
}

.language-select:hover {
  color: #ffa23d;
}

.language-select option {
  background-color: #2c416a;
  color: white;
}

/* ===== Menu Button ===== */
.menu_btn {
  display: none;
  background: transparent;
  border: 0px;
  cursor: pointer;
  width: 42px;
  height: 42px;
}
.menu_btn i {
  font-size: 26px;
  transition: all 0.3s ease;
  opacity: 0.7;
  color: #fff;
}

.menu_btn:hover i {
  opacity: 1;
}

/* ===== Mobile Menu ===== */
.mobile_menu {
  position: fixed;
  right: -3000px;
  top: 0;
  bottom: 0;
  z-index: 500;
  position: absolute;
  top: 0;
  background-color: #fff;
  min-height: 100vh;
  height: auto;
  width: 100%;
  min-width: 300px;
  transition: all 0.5s ease;
  overflow-y: auto;
}
.mobile_menu .m_header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 4rem;
  padding: 0 10px;
}
.mobile_menu .close_btn {
  background: transparent;
  border: 0px;
  cursor: pointer;
  width: 42px;
  height: 42px;
}
.mobile_menu .close_btn i {
  font-size: 26px;
  transition: all 0.3s ease;
  opacity: 0.7;
}
.mobile_menu .close_btn:hover i {
  opacity: 1;
}
.mobile_menu .logo {
  height: inherit;
  display: flex;
  align-items: center;
}
.mobile_menu .logo img {
  width: 100px;
  height: auto;
}
.mobile_menu .m_body {
  display: flex;
  flex-direction: column;
  padding-top: 1.6rem;
  align-items: flex-start;
  justify-content: space-between;
  height: calc(100vh - 4rem);
  background-color: #fff;
}
.mobile_menu .m_body .m_menu_container {
  text-align: left;
  width: 100%;
  background-color: #fff;
}
.mobile_menu .m_body .m_menu_container li.item {
  display: flex;
  flex-direction: column;
  width: inherit;
}
.mobile_menu .m_body .m_menu_container li.item .menu_box {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.mobile_menu .m_body .m_menu_container li.item .menu_box i {
  display: flex;
  justify-content: center;
}
.mobile_menu .m_body .m_menu_container li.item .menu_box.active .m_menubtn i {
  transform-origin: center;
  transform: rotate(180deg);
}
.mobile_menu .m_body .m_menu_container li.item .menu_box.active .int {
  color: #2b63cb;
}
.mobile_menu .m_body .m_menu_container li.item .menu_box.active .int i {
  color: #2b63cb;
  transform-origin: center;
  transform: rotate(180deg);
}
.mobile_menu .m_body .m_menu_container li.item .m_menubtn,
.mobile_menu .m_body .m_menu_container li.item .int {
  transition: all 0.2s ease;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}
.mobile_menu .m_body .m_menu_container li.item .m_menubtn i,
.mobile_menu .m_body .m_menu_container li.item .int i {
  font-size: 20px;
  width: 32px;
  height: 32px;
  align-items: center;
  line-height: 32px;
  color: hsl(216, 11%, 18%);
  opacity: 0.5;
  transition: all 0.2s ease;
}
.mobile_menu .m_body .m_menu_container li.item .m_menubtn:hover {
  color: #2b63cb;
}
.mobile_menu .m_body .m_menu_container li.item .m_menubtn:hover i {
  color: #2b63cb;
  opacity: 1;
}
.mobile_menu .m_body .m_menu_container li.item .int:hover {
  color: #2b63cb;
}
.mobile_menu .m_body .m_menu_container li.item .int:hover i {
  color: #2b63cb;
  opacity: 1;
}
.mobile_menu .m_body .m_menu_container li.item .m_menubtn.active {
  color: #2b63cb;
}
.mobile_menu .m_body .m_menu_container li.item .m_menubtn.active i {
  color: #2b63cb;
  opacity: 1;
}
.mobile_menu .m_body .m_menu_container li.item .int.active {
  color: #2b63cb;
}
.mobile_menu .m_body .m_menu_container li.item .int.active i {
  color: #2b63cb;
  opacity: 1;
}
.mobile_menu .m_body .m_menu_container .submenu {
  display: none;
  flex-direction: column;
  padding-bottom: 10px;
  background-color: #f4f8fb;
  padding: 10px 0;
}
.mobile_menu .m_body .m_menu_container .submenu .item {
  font-size: 18px;
  padding: 8px 36px;
  transition: all 0.2s ease;
  font-weight: 400;
}
.mobile_menu .m_body .m_menu_container .submenu .item:hover {
  color: #2b63cb;
}
.mobile_menu .m_body .m_menu_container a {
  font-size: 20px;
  font-weight: 500;
  padding: 12px 36px 12px 28px;
}
.mobile_menu .m_menu_language {
  padding: 30px 8px 30px 28px;
  display: flex;
  gap: 16px;
}
.mobile_menu .m_menu_language a {
  position: relative;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.062em;
  opacity: 0.7;
  transition: all 0.2s ease;
}
.mobile_menu .m_menu_language a:hover {
  opacity: 1;
}
.mobile_menu .m_menu_language a.active {
  color: #ffa23d;
  opacity: 1;
}
.mobile_menu .m_menu_language a.active::after {
  content: "";
  width: 100%;
  height: 2px;
  background-color: #ffa23d;
  opacity: 1;
  position: absolute;
  left: 0;
  bottom: -4px;
}

/* ===== Header Media Queries ===== */
@media (max-width: 1023px) {
  .dropdownmenu {
    display: none !important;
  }
  .header {
    width: 100vw;
    position: fixed;
  }
  .header_inner {
    position: relative;
  }
  .header_inner .language {
    display: none;
  }
  .header_inner .menu_btn {
    display: block;
  }
  .header_inner .mobile_menu {
    display: block;
    min-height: 100vh;
    height: 100%;
  }
  .rt_con {
    position: absolute;
    right: 76px;
  }
  .header.active .header_inner .menu_btn i {
    color: #292d33;
  }
}

@media (max-width: 540px) {
  .rt_con .contact_btn {
    margin-right: -16px;
    padding: 10px 24px;
  }
  .mobile_menu .m_body {
    padding-top: 20px;
    background-color: #fff;
  }
  .mobile_menu .m_body .m_menu_container a {
    padding: 8px 14px 8px 20px;
  }
  .header .header_inner .logo .logoimg {
    width: 110px;
  }
}

@media (max-width: 300px) {
  .header .header_inner {
    min-width: 250px;
  }
  .rt_con .contact_btn {
    margin-right: -26px;
    font-size: 15px;
    padding: 10px 10px;
    border: 0;
    position: relative;
  }
  .rt_con .contact_btn::after {
    content: "";
    position: absolute;
    bottom: 7px;
    left: 9px;
    width: 81%;
    height: 1px;
    background-color: transparent;
  }
  .rt_con .contact_btn:hover {
    background-color: transparent;
    border: transparent;
    color: #ffa23d;
  }
  .rt_con .contact_btn:hover ::after {
    background-color: #ffa23d;
  }
}

/* === 대메뉴-소메뉴 구분선 (양옆 꽉 참) === */
.unified-dropdown .dropdown-bg {
  border-top: 1px solid #f2f2f2;
}

/* === Unified Dropdown Override === */
header .unified-dropdown {
  position: fixed !important;
  top: 4.6rem !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  z-index: 1000 !important;
  box-sizing: border-box !important;

  display: none;
  opacity: 0;
  visibility: hidden;
}

header .unified-dropdown .dropdown-bg {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-top: 1px solid #f2f2f2 !important;
  box-sizing: border-box !important;
}

header .unified-dropdown .dropdown-container {
  max-width: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 0 20px 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
}

header .unified-dropdown .dropdown-column {
  flex: 1 1 0 !important;
  min-width: 0;
  padding: 0 0 20px 0 !important;
  margin-bottom: -20px !important;
  border-right: 1px solid #f2f2f2 !important;
  align-self: stretch !important;
}

header .unified-dropdown .dropdown-column:last-child {
  border-right: none !important;
}

.unified-dropdown {
  position: fixed !important;
  top: 4.6rem !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  transform: none !important;

  background-color: #ffffff;
  box-shadow: none;
  padding: 0;
  z-index: 1000;
  box-sizing: border-box;

  display: none;
  opacity: 0;
  visibility: hidden;
}
.unified-dropdown .dropdown-bg {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-top: 1px solid #f2f2f2;
  background-color: transparent;
}

.unified-dropdown .dropdown-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 40px 20px !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  box-sizing: border-box;
}

/* ===== Floating Buttons ===== */
.floating {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.5s ease;
}

.floatingbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 58px;
  min-height: 58px;
  padding: 12px 4px 10px;
  border-radius: 18px;
  background: rgba(99, 99, 122, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.floatingbtn .solution_img {
  width: 34px;
  aspect-ratio: 1/1;
  -o-object-fit: cover;
  object-fit: cover;
}
.floatingbtn .solution_name {
  width: 100%;
  font-size: 11px;
  letter-spacing: -0.02em;
  word-break: keep-all;
  display: block;
  text-align: center;
  font-weight: 400;
  line-height: 130%;
  color: #fff;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.floatingbtn:hover {
  background: var(
    --btn-gr-sample,
    linear-gradient(
      145deg,
      #0059ff -3.85%,
      rgba(67, 67, 186, 0.7) 41.58%,
      rgba(43, 99, 203, 0) 92.81%
    ),
    #400eac
  );
  box-shadow: 0 4px 4px 0 rgba(57, 61, 129, 0.28);
}
.floatingbtn:hover .solution_name {
  max-height: 50px;
  opacity: 1;
  margin-top: 3px;
}

@media (max-width: 1024px) {
  .floating {
    top: auto;
    bottom: 10px;
    right: 10px;
    transform: none;
    gap: 6px;
  }
}
