/* Mobile Header */
.mobile-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.mobile-logo img {
    margin-top: 10px;
    height: 35px;
}

/* Hamburger Menu Icon */
.hamburger {
    display: block;
    flex-direction: column;
    cursor: pointer;
    width: 25px;
    height: 28px;
    position: relative;
    transition: transform 0.3s ease;
}

.hamburger span {
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: #000;
    transition: all 0.3s ease;
    border-radius: 25%;
    transform-origin: center;
}

.hamburger span:nth-child(1) { top: 5px; }
.hamburger span:nth-child(2) { top: 13px; }
.hamburger span:nth-child(3) { top: 21px; }

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Full Screen Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
}
.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    padding: 80px 30px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav-item {
    border-bottom: 1px solid #e0e0e0;
}
.mobile-nav-item:last-child {
    border-bottom: none;
}

/* Navigation Item Layout */
.mobile-nav-link.expandable {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

/* Text Link */
.mobile-nav-link-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  flex: 1;
  padding-right: 10px;
}
.mobile-nav-link-text:hover {
  color: #87cefa;
}

/* Toggle Button (Arrow) */
.mobile-nav-toggle {
  background: none;
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 5px 10px 5px 10px;
}
.mobile-nav-toggle::after {
  content: "▼";
  display: inline-block;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}
.mobile-nav-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}


/* 서브메뉴 */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    background-color: #f8f8f8;
    transition: max-height 0.3s ease;
    border-radius: 8px;
}

.mobile-submenu.active {
    max-height: 300px;
}

.mobile-submenu-item {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-submenu-item:last-child {
    border-bottom: none;
}

.mobile-submenu-link {
    display: flex;
    color: #666;
    width: 100%;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-submenu-link:hover {
    color: #000000;
}

/* 비가시화 */
.mobile-nav {
    display: none;
}

/* Responsive Layout */
@media (max-width: 1100px) {
    .mobile-nav {
        display: block;
    }

    .desktop-nav,
    header:not(.mobile-header) {
        display: none !important;
    }

    body {
        padding-top: 60px;
    }

    .hero,
    .hero-main {
        margin-top: 0;
        padding-top: 60px;
    }
}

@media (max-width: 480px) {
    .mobile-header {
        height: 55px;
        padding: 0 15px;
    }

    .mobile-logo img {
        height: 30px;
    }

    .mobile-menu-content {
        padding: 70px 20px 20px;
    }

    .mobile-nav-link-text {
        font-size: 1.1rem;
    }

    body {
        padding-top: 55px;
    }
}
