/* Shared desktop header: center the navigation in the space between the brand and CTAs. */
/* One background sits behind the header and hero; JS measures the hero's real bottom edge. */
body:not(.home):not(:has(.guide-page)):has(.elementor[data-elementor-type="wp-page"] > .e-con.e-parent:first-child .elementor-page-title) {
  --subhero-image: linear-gradient(90deg, rgba(5, 22, 61, .58), rgba(5, 22, 61, .24) 62%, rgba(5, 22, 61, .18)), url('../images/sub_hero.jpg');
  --subhero-end: 320px;
  position: relative;
  isolation: isolate;
}

/* Payment services and industries use their own images on the same shared canvas. */
body.parent-pageid-360:not(.home):not(:has(.guide-page)):has(.elementor[data-elementor-type="wp-page"] > .e-con.e-parent:first-child .elementor-page-title) {
  --subhero-image: linear-gradient(90deg, rgba(5, 22, 61, .58), rgba(5, 22, 61, .30) 62%, rgba(5, 22, 61, .22)), url('../images/sub_hero01.jpg');
}

body.parent-pageid-375:not(.home):not(:has(.guide-page)):has(.elementor[data-elementor-type="wp-page"] > .e-con.e-parent:first-child .elementor-page-title) {
  --subhero-image: linear-gradient(90deg, rgba(20, 12, 8, .48), rgba(20, 12, 8, .53) 62%, rgba(20, 12, 8, .34)), url('../images/sub_hero03.jpg');
}

body.parent-pageid-391:not(.home):not(:has(.guide-page)):has(.elementor[data-elementor-type="wp-page"] > .e-con.e-parent:first-child .elementor-page-title) {
  --subhero-image: linear-gradient(90deg, rgba(5, 22, 61, .78), rgba(5, 22, 61, .60) 62%, rgba(5, 22, 61, .48)), url('../images/sub_hero02.jpg');
}

body:not(.home):not(:has(.guide-page)):has(.elementor[data-elementor-type="wp-page"] > .e-con.e-parent:first-child .elementor-page-title)::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: var(--subhero-end);
  z-index: -1;
  pointer-events: none;
  background-image: var(--subhero-image);
  background-position: center top;
  background-size: 100% 100%, max(100vw, 1140px) auto;
  background-repeat: no-repeat;
}

/* The shorter service image must still cover the full hero on narrow screens. */
body.parent-pageid-375:not(.home):not(:has(.guide-page)):has(.elementor[data-elementor-type="wp-page"] > .e-con.e-parent:first-child .elementor-page-title)::before {
  background-size: 100% 100%, cover;
}

/* Keep each page's existing hero height and spacing. */
body .elementor .e-con.e-parent.cms-subhero-bg,
body .elementor[data-elementor-type="wp-page"] > .e-con.e-parent:first-child:has(.elementor-page-title) {
  background-color: transparent !important;
  background-image: none !important;
}

/* Add 100px to the standard 160px subhero without changing the header. */
body:not(.home):not(:has(.guide-page)) .elementor[data-elementor-type="wp-page"] > .e-con.e-parent:first-child:has(.elementor-page-title) {
  min-height: 260px !important;
}

body .elementor .cms-subhero-bg .elementor-page-title .elementor-heading-title,
body .elementor[data-elementor-type="wp-page"] > .e-con.e-parent:first-child:has(.elementor-page-title) .elementor-page-title .elementor-heading-title {
  color: #fff !important;
  text-shadow: 0 2px 14px rgba(3, 14, 44, .36);
}

.elementor-480 .main01_header .e-n-menu-heading .e-n-menu-title,
.elementor-480 .main01_header .e-n-menu-heading .e-n-menu-title * {
  cursor: pointer !important;
}

@media (min-width: 1300px) {
  .elementor-480 .main01_header {
    transition: background-color .25s ease, box-shadow .25s ease;
  }

  .elementor-480 .main01_header > .left {
    --width: auto;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0 !important;
  }

  .elementor-480 .main01_header > .right {
    flex: 0 0 auto;
  }

  .elementor-480 .main01_header .elementor-element-9692b11 {
    flex: 1 1 auto;
    min-width: 0;
  }

  .elementor-480 .main01_header .elementor-element-9692b11 > .elementor-widget-container {
    padding-left: 0 !important;
  }

  .elementor-480 .main01_header .e-n-menu-heading {
    position: relative;
    width: 100%;
    height: 54px;
    margin-block: auto;
    padding: 0;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 52px !important;
  }

  .elementor-480 .main01_header .e-n-menu-heading > .e-n-menu-item {
    position: relative;
    z-index: 1;
    height: 52px;
  }

  .elementor-480 .main01_header .e-n-menu-heading > .e-n-menu-item .e-n-menu-title {
    height: 52px;
  }

  .elementor-480 .main01_header .e-n-menu-heading > .e-n-menu-item .e-n-menu-content {
    left: 0 !important;
    width: max-content !important;
  }

  .elementor-480 .main01_header .e-n-menu-heading > .e-n-menu-item .e-n-menu-content > .sub_menu {
    left: 0 !important;
  }

  .elementor-480 .main01_header .e-n-menu-title-text,
  .elementor-480 .main01_header .e-n-menu-title-container > a {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    letter-spacing: -.015em;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  .elementor-480 .main01_header .e-n-menu-heading > .e-n-menu-item .e-n-menu-title-text,
  .elementor-480 .main01_header .e-n-menu-heading > .e-n-menu-item .e-n-menu-title-container > a {
    color: #261643 !important;
    text-shadow: none !important;
  }

  .elementor-480 .main01_header .e-n-menu-heading > .e-n-menu-item .e-n-menu-title-text::before,
  .elementor-480 .main01_header .e-n-menu-heading > .e-n-menu-item .e-n-menu-title-text::after {
    content: none !important;
    display: none !important;
  }

  .elementor-480 .main01_header .e-n-menu-heading > .e-n-menu-item .e-n-menu-title:hover .e-n-menu-title-text,
  .elementor-480 .main01_header .e-n-menu-heading > .e-n-menu-item .e-n-menu-title:focus-within .e-n-menu-title-text {
    color: #4b15a0 !important;
  }

  .elementor-480 .main01_header .e-n-menu-content {
    padding-top: 8px;
    overflow: visible;
  }

  .elementor-480 .main01_header .e-n-menu-content > .sub_menu {
    min-width: 342px;
    max-width: min(470px, calc(100vw - 32px));
    padding: 13px 16px !important;
    border: 1px solid #e9e2f2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(30, 10, 67, .18);
  }

  .elementor-480 .main01_header .sub_menu > .e-con-inner {
    padding: 0 !important;
  }

  .elementor-480 .main01_header .sub_menu .elementor-nav-menu--main .elementor-nav-menu {
    gap: 4px 8px !important;
  }

  .elementor-480 .main01_header .sub_menu .elementor-item {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px !important;
    border-radius: 7px;
    color: #2b2140 !important;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: -.02em;
    white-space: nowrap;
    transition: background-color .2s, color .2s, transform .2s;
  }

  .elementor-480 .main01_header .sub_menu .elementor-item::before {
    display: none !important;
  }

  .elementor-480 .main01_header .sub_menu .elementor-item:hover,
  .elementor-480 .main01_header .sub_menu .elementor-item:focus-visible {
    background: #f3eefb !important;
    color: #320083 !important;
    transform: translateX(2px);
  }

  .elementor-480 .main01_header .sub_menu .elementor-item:focus-visible {
    outline: 2px solid #8e69cf;
    outline-offset: 2px;
  }
}

/* The continuous image shows through the header at the top. */
body:not(.home) .elementor-480 .main01_header:not(.elementor-sticky--effects) {
  background-image: none !important;
}

body:has(.guide-page) .elementor-480 .main01_header:not(.elementor-sticky--effects) {
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .48)), url('../images/guide-hero.jpg?v=2') !important;
}

/* Transparent over images at the top; a readable surface after scrolling. */
.elementor-480 .main01_header:not(.elementor-sticky--effects) {
  background-color: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.elementor-480 .main01_header.elementor-sticky--effects {
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 8px 28px rgba(20, 10, 46, .12) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.home .elementor-480 .main01_header:not(.elementor-sticky--effects) .logo {
  filter: brightness(0) invert(1) !important;
}

.elementor-480 .main01_header:not(.elementor-sticky--effects) .logo {
  filter: none !important;
}

.elementor-480 .main01_header.elementor-sticky--effects .logo {
  filter: none !important;
}

.home .elementor-480 .main01_header:not(.elementor-sticky--effects) .e-n-menu-toggle,
.home .elementor-480 .main01_header:not(.elementor-sticky--effects) .e-n-menu-toggle i {
  color: #fff !important;
}

.elementor-480 .main01_header:not(.elementor-sticky--effects) .e-n-menu-toggle,
.elementor-480 .main01_header:not(.elementor-sticky--effects) .e-n-menu-toggle i {
  color: #261643 !important;
}

.elementor-480 .main01_header.elementor-sticky--effects .e-n-menu-toggle,
.elementor-480 .main01_header.elementor-sticky--effects .e-n-menu-toggle i {
  color: #261643 !important;
}

.home .elementor-480 .main01_header:not(.elementor-sticky--effects) .mb_nav_icon svg,
.home .elementor-480 .main01_header:not(.elementor-sticky--effects) .mb_nav_icon svg path {
  fill: #fff !important;
}

.elementor-480 .main01_header:not(.elementor-sticky--effects) .mb_nav_icon svg,
.elementor-480 .main01_header:not(.elementor-sticky--effects) .mb_nav_icon svg path {
  fill: #261643 !important;
}

.elementor-480 .main01_header.elementor-sticky--effects .mb_nav_icon svg,
.elementor-480 .main01_header.elementor-sticky--effects .mb_nav_icon svg path {
  fill: #261643 !important;
}

.elementor-480 .main01_header:not(.elementor-sticky--effects) .e-n-menu-heading > .e-n-menu-item .e-n-menu-title-text,
.elementor-480 .main01_header:not(.elementor-sticky--effects) .e-n-menu-heading > .e-n-menu-item .e-n-menu-title-container > a {
  color: #261643 !important;
  text-shadow: none !important;
}

body:not(.home):has(.elementor[data-elementor-type="wp-page"] > .e-con.e-parent:first-child .elementor-page-title) .elementor-480 .main01_header:not(.elementor-sticky--effects) .e-n-menu-heading > .e-n-menu-item .e-n-menu-title-text,
body:not(.home):has(.elementor[data-elementor-type="wp-page"] > .e-con.e-parent:first-child .elementor-page-title) .elementor-480 .main01_header:not(.elementor-sticky--effects) .e-n-menu-heading > .e-n-menu-item .e-n-menu-title-container > a {
  color: #fff !important;
  text-shadow: none !important;
}

body:not(.home):has(.elementor[data-elementor-type="wp-page"] > .e-con.e-parent:first-child .elementor-page-title) .elementor-480 .main01_header:not(.elementor-sticky--effects) .e-n-menu-heading > .e-n-menu-item .e-n-menu-title:hover .e-n-menu-title-text {
  color: #d8edff !important;
}

body:not(.home):has(.elementor[data-elementor-type="wp-page"] > .e-con.e-parent:first-child .elementor-page-title) .elementor-480 .main01_header:not(.elementor-sticky--effects) .logo {
  filter: brightness(0) invert(1) !important;
}

body:not(.home):has(.elementor[data-elementor-type="wp-page"] > .e-con.e-parent:first-child .elementor-page-title) .elementor-480 .main01_header:not(.elementor-sticky--effects) .e-n-menu-toggle,
body:not(.home):has(.elementor[data-elementor-type="wp-page"] > .e-con.e-parent:first-child .elementor-page-title) .elementor-480 .main01_header:not(.elementor-sticky--effects) .e-n-menu-toggle i {
  color: #fff !important;
}

body:not(.home):has(.elementor[data-elementor-type="wp-page"] > .e-con.e-parent:first-child .elementor-page-title) .elementor-480 .main01_header:not(.elementor-sticky--effects) .mb_nav_icon svg,
body:not(.home):has(.elementor[data-elementor-type="wp-page"] > .e-con.e-parent:first-child .elementor-page-title) .elementor-480 .main01_header:not(.elementor-sticky--effects) .mb_nav_icon svg path {
  fill: #fff !important;
}

body.home .elementor-480 .main01_header .e-n-menu-heading > .e-n-menu-item .e-n-menu-title-text,
body.home .elementor-480 .main01_header .e-n-menu-heading > .e-n-menu-item .e-n-menu-title-container > a {
  color: #261643 !important;
  text-shadow: none !important;
}

.elementor-480 .main01_header:not(.elementor-sticky--effects) .e-n-menu-heading > .e-n-menu-item .e-n-menu-title:hover .e-n-menu-title-text {
  color: #4b15a0 !important;
}

@media (min-width: 1300px) and (max-width: 1599px) {
  .elementor-480 .main01_header .e-n-menu-heading {
    gap: 30px !important;
  }

}

@media (min-width: 1300px) and (max-width: 1499px) {
  .elementor-480 .main01_header .e-n-menu-heading {
    gap: clamp(8px, 1vw, 15px) !important;
  }

  .elementor-480 .main01_header .e-n-menu-title-text,
  .elementor-480 .main01_header .e-n-menu-title-container > a {
    font-size: 17px !important;
  }

}

/* Floating consultation links share the rounded shape of the Kakao action. */
@media (min-width: 1025px) {
  .elementor-element-b9054af > a {
    border-radius: 999px !important;
    overflow: hidden;
    box-shadow: 0 7px 18px rgba(29, 11, 69, .16);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  }

  .elementor-element-b9054af > a + a {
    margin-top: 4px;
  }

  .elementor-element-b9054af > a:hover,
  .elementor-element-b9054af > a:focus-visible {
    transform: translateX(-4px);
    box-shadow: 0 9px 22px rgba(29, 11, 69, .22);
    filter: brightness(1.06);
  }

  .elementor-element-b9054af > a:focus-visible {
    outline: 2px solid #6a42ba;
    outline-offset: 3px;
  }

  .elementor-element-b9054af > .to_top {
    margin-top: 5px;
  }

  .quick_menu {
    background: transparent !important;
    box-shadow: none !important;
  }

  .quick_menu > a.elementor-element-d3ac839,
  .quick_menu > a.elementor-element-d3ac839:hover,
  .quick_menu > a.elementor-element-d3ac839:focus-visible {
    border: 0 !important;
    box-shadow: none !important;
  }
}

/* Compact mobile navigation and a calm, scrollable menu drawer. */
@media (max-width: 1299px) {
  .elementor-480 .main01_header .mb_nav_icon .elementor-icon-wrapper {
    line-height: 0;
  }

  .elementor-480 .main01_header .mb_nav_icon a.elementor-icon {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(39, 22, 67, .16);
    border-radius: 12px;
    background: rgba(255, 255, 255, .82);
    color: #261643 !important;
    box-shadow: none;
    transition: background-color .2s ease, border-color .2s ease;
  }

  .elementor-480 .main01_header .mb_nav_icon a.elementor-icon svg {
    display: none !important;
  }

  .elementor-480 .main01_header .mb_nav_icon a.elementor-icon::before,
  .elementor-480 .main01_header .mb_nav_icon a.elementor-icon::after {
    content: '';
    position: absolute;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: width .2s ease, transform .2s ease;
  }

  .elementor-480 .main01_header .mb_nav_icon a.elementor-icon::before {
    top: 16px;
    left: 11px;
    width: 22px;
  }

  .elementor-480 .main01_header .mb_nav_icon a.elementor-icon::after {
    top: 25px;
    left: 16px;
    width: 17px;
  }

  .elementor-480 .main01_header .mb_nav_icon a.elementor-icon:hover::after,
  .elementor-480 .main01_header .mb_nav_icon a.elementor-icon:focus-visible::after {
    width: 22px;
    transform: translateX(-5px);
  }

  .elementor-480 .main01_header .mb_nav_icon a.elementor-icon:focus-visible {
    outline: 2px solid #a886ed;
    outline-offset: 3px;
  }

  .home .elementor-480 .main01_header:not(.elementor-sticky--effects) .mb_nav_icon a.elementor-icon,
  body:not(.home):has(.elementor[data-elementor-type="wp-page"] > .e-con.e-parent:first-child .elementor-page-title) .elementor-480 .main01_header:not(.elementor-sticky--effects) .mb_nav_icon a.elementor-icon {
    border-color: rgba(255, 255, 255, .42);
    background: rgba(255, 255, 255, .12);
    color: #fff !important;
  }

  #elementor-popup-modal-597 {
    align-items: stretch !important;
    justify-content: flex-end !important;
    background: rgba(17, 9, 39, .48) !important;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 10000001 !important;
  }

  #elementor-popup-modal-597 .dialog-widget-content {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column;
    width: min(420px, 100vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 20px 0 0 20px !important;
    background: #fff !important;
    box-shadow: -18px 0 54px rgba(16, 5, 45, .16) !important;
    overflow: hidden !important;
  }

  #elementor-popup-modal-597 .dialog-header {
    display: block !important;
    flex: 0 0 auto;
    padding: 30px 28px 22px !important;
    border-bottom: 1px solid #eae6f1;
    background: #fff;
  }

  #elementor-popup-modal-597 .cms-menu-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #735d9b;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
  }

  #elementor-popup-modal-597 #cms-menu-heading {
    margin: 0;
    color: #22133d;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
  }

  #elementor-popup-modal-597 .dialog-close-button {
    content: normal !important;
    inset: 26px 24px auto auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 !important;
    border-radius: 12px;
    background: #f3f0f8;
    color: #34214f !important;
    z-index: 2;
  }

  #elementor-popup-modal-597 .dialog-close-button::before,
  #elementor-popup-modal-597 .dialog-close-button::after {
    content: none !important;
    display: none !important;
  }

  #elementor-popup-modal-597 .cms-menu-close-icon {
    display: block;
    width: 20px;
    height: 20px;
  }
  #elementor-popup-modal-597 .dialog-close-button:focus-visible {
    outline: 2px solid #8056d0;
    outline-offset: 2px;
  }

  #elementor-popup-modal-597 .dialog-message {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px 20px 30px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    background: #fff;
  }

  #elementor-popup-modal-597 .elementor-597,
  #elementor-popup-modal-597 .elementor-597 > .e-con {
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  #elementor-popup-modal-597 .elementor-597 .elementor-widget-theme-site-logo {
    display: none !important;
  }

  #elementor-popup-modal-597 .e-n-accordion-item {
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #eeebf3 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  #elementor-popup-modal-597 .e-n-accordion-item-title {
    position: relative;
    display: flex !important;
    align-items: center;
    width: 100%;
    min-height: 60px;
    padding: 0 16px !important;
    border: 0 !important;
    background: transparent !important;
    color: #23183a !important;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif !important;
    font-size: 17px !important;
    font-weight: 650 !important;
    letter-spacing: -.025em;
    list-style: none;
    cursor: pointer;
  }

  #elementor-popup-modal-597 .e-n-accordion-item-title::-webkit-details-marker { display: none; }
  #elementor-popup-modal-597 .e-n-accordion-item-title-text { color: inherit !important; }
  #elementor-popup-modal-597 .e-n-accordion-item-title::after {
    content: '';
    position: absolute;
    right: 17px;
    top: 25px;
    width: 8px;
    height: 8px;
    border-right: 1.6px solid #8b7ca5;
    border-bottom: 1.6px solid #8b7ca5;
    transform: rotate(45deg);
    transition: transform .2s ease;
  }

  #elementor-popup-modal-597 .e-n-accordion-item[open] > .e-n-accordion-item-title {
    border-radius: 10px;
    background: #f5f1fb !important;
    color: #42138c !important;
  }

  #elementor-popup-modal-597 .e-n-accordion-item[open] > .e-n-accordion-item-title::after {
    transform: translateY(4px) rotate(225deg);
    border-color: #6b3bb9;
  }

  #elementor-popup-modal-597 .e-n-accordion-item > [role="region"] {
    display: block !important;
    padding: 8px 10px 14px !important;
    background: transparent !important;
  }

  #elementor-popup-modal-597 [role="region"] nav[aria-hidden="true"] { display: none !important; }
  #elementor-popup-modal-597 [role="region"] .elementor-nav-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 2px !important;
    width: 100% !important;
  }

  #elementor-popup-modal-597 [role="region"] .elementor-nav-menu > li {
    width: 100% !important;
    margin: 0 !important;
  }

  #elementor-popup-modal-597 [role="region"] .elementor-item {
    display: block !important;
    width: 100%;
    min-height: 40px;
    padding: 9px 14px !important;
    border-radius: 8px;
    color: #524a60 !important;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.45;
    text-decoration: none !important;
  }

  #elementor-popup-modal-597 [role="region"] .elementor-item:hover,
  #elementor-popup-modal-597 [role="region"] .elementor-item:focus-visible {
    background: #f5f1fb !important;
    color: #42138c !important;
  }

  #elementor-popup-modal-597 .guide-mobile-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding: 14px 16px !important;
    border: 1px solid #e9e2f5 !important;
    border-radius: 10px;
    background: #faf8fe;
    color: #42138c !important;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif !important;
    font-size: 15px;
    font-weight: 650 !important;
    text-decoration: none !important;
  }

  #elementor-popup-modal-597 .guide-mobile-link:hover,
  #elementor-popup-modal-597 .guide-mobile-link:focus-visible {
    border-color: #bca6df !important;
    background: #f3ecfc;
  }

  body.cms-menu-open #archived-chat-design,
  body.cms-menu-open iframe[title="채널톡 상담창 디자인"] {
    visibility: hidden !important;
  }
}

@media (max-width: 600px) {
  #elementor-popup-modal-597 .dialog-widget-content {
    width: 100vw !important;
    border-radius: 0 !important;
  }
}
