/* 📵 전화번호 자동링크 방지 */
a[href^="tel"],
a[href^="sms"],
a[href^="mailto"] {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
  cursor: default;
}

/* 🍔 햄버거 버튼 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger:hover span:nth-child(1) {
  transform: translateY(-2px);
}
.hamburger:hover span:nth-child(3) {
  transform: translateY(2px);
}

/* 📱 모바일 메뉴 패널 */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%);
  width: 250px;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: -8px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 80px 20px 40px;
  transition: transform 0.4s ease;
  border-radius: 12px 0 0 12px;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* 📚 메뉴 리스트 */
.mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav > li {
  margin-bottom: 18px;
}

/* 🌐 메뉴 링크 */
.mobile-nav a,
.mobile-nav .dropdown-btn,
.mobile-nav .sub-dropdown-btn {
  display: block;
  text-decoration: none;
  color: #333;
  font-size: 1.05rem;
  font-weight: 500;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  transition: color 0.2s ease;
  cursor: pointer;
}

/* 🔽 드롭다운 */
.dropdown-content,
.sub-dropdown-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  padding-left: 15px;
}

.dropdown-content.open,
.sub-dropdown-content.open {
  max-height: 500px;
  opacity: 1;
}

.dropdown-content li,
.sub-dropdown-content li {
  list-style: none;
  margin: 6px 0;
  font-size: 0.95rem;
  color: #444;
  padding-left: 0;
}

.dropdown-content li a,
.sub-dropdown-content li a {
  display: block;
  text-decoration: none;
  color: #444;
  padding: 6px 0 6px 16px;
  transition: all 0.3s ease;
}

/* 들여쓰기 없이 상위 항목은 기본 유지 (기호 유지) */
.dropdown-content > li > .sub-dropdown-btn,
.dropdown-content > li > a {
  padding-left: 16px;
  font-weight: 500;
}

/* 하위 항목은 들여쓰기만 적용 (기호 없음) */
.sub-dropdown-content li a {
  padding-left: 32px;
}

/* 🔵 Hover 효과 */
.mobile-nav a:hover,
.dropdown-btn:hover,
.sub-dropdown-btn:hover,
.dropdown-content li a:hover,
.sub-dropdown-content li a:hover {
  color: #000;
  font-weight: bold;
  background-color: transparent;
}

.dropdown-content li a:hover,
.sub-dropdown-content li a:hover {
  background-color: #859FB1;
  color: #fff;
}

/* ✅ active 표시 */
.mobile-nav a.active,
.dropdown-btn.active,
.sub-dropdown-btn.active,
.dropdown-content li a.active,
.sub-dropdown-content li a.active {
  color: #1a1a1a;
  font-weight: bold;
}

/* 📱 모바일 반응형 */
@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
  }

  .mobile-menu:not(.active) {
    display: block;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 20px;
  }

  footer .info {
    display: block;
    max-width: 100%;
    padding: 10px 0;
  }

  footer .info p {
    white-space: normal;
    word-break: keep-all;
    line-height: 1.5;
    font-size: 0.9rem;
  }
}