/* Navigation Styles */
.nav-link {
  position: relative;
}

.nav-link:hover,
.service-menu-link.active {
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

/* Service Dropdown Menu */
#service-dropdown {
  height: 280px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 0;
}

#service-dropdown.show {
  max-height: 280px;
  opacity: 1;
}

.service-menu-wrapper {
  position: static;
}

@media (min-width: 768px) {
  .service-menu-wrapper {
    position: relative;
  }
}

/* Service Dropdown Layout */
#service-dropdown .dropdown-content {
  display: flex;
  align-items: flex-start;
  position: relative;
}

/* B2C 서브메뉴를 서비스 메뉴 링크와 정렬 (JavaScript로 동적 정렬) */
#service-dropdown .service-submenu-b2c {
  margin-right: 82px;
  width: 67px;
}

/* B2B 서브메뉴 너비 */
#service-dropdown .service-submenu-b2b {
  width: 67px;
}

/* 이미지 카드: B2C 텍스트 기준으로 40px 왼쪽에 위치 */
#service-dropdown .service-submenu-image {
  position: absolute;
  right: 100%;
  margin-right: 40px;
  top: 0;
}

/* Section Animation - 아래에서 위로 등장 */
section[data-animate],
footer[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section[data-animate].animate-in,
footer[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Main Page - Sticky Titles */
#consumer-title,
#b2b-title {
  mix-blend-mode: difference;
}

#consumer-title h2,
#b2b-title h2 {
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* B2B Section Active State */
body.b2b-active #main-nav > div {
  background-color: white !important;
}

body.b2b-active #main-nav .nav-link,
body.b2b-active #main-nav span {
  color: #333 !important;
}



.ellipse-blur {
    -webkit-mask-image: radial-gradient(
      ellipse 140% 120% at 50% 100%,
      rgba(0,0,0,1) 0%,
      rgba(0,0,0,0.85) 35%,
      rgba(0,0,0,0.45) 55%,
      rgba(0,0,0,0.15) 70%,
      rgba(0,0,0,0) 85%
    );
    mask-image: radial-gradient(
      ellipse 140% 120% at 50% 100%,
      rgba(0,0,0,1) 0%,
      rgba(0,0,0,0.85) 35%,
      rgba(0,0,0,0.45) 55%,
      rgba(0,0,0,0.15) 70%,
      rgba(0,0,0,0) 85%
    );
  }
