/* 헤더 */
.header {
    background: #ffffff;
    height: 111px;
    box-shadow: none;
    border-bottom: 1px solid #dddddd;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: height 0.3s ease;
}

.nav-container {
    max-width: 100%;
    height: 111px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    position: relative;
    transition: height 0.3s ease;
}

.nav-left {
    display: flex;
    align-items: center;
    padding-left: 40px;
    height: 100%;
}

/* 드랍다운 컨테이너 */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.dropdown-toggle {
    text-decoration: none;
    color: #444444;
    font-size: 20px;
    font-weight: bold;
    /*font-family: 'Roboto', sans-serif;*/
    cursor: pointer;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-toggle:hover {
    color: #117D8D;
}

/* 드랍다운 메뉴 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    margin-top: -21px;
    padding: 29px 23px;
    min-width: 160px;
    border: 1px solid #ddd;
    background: white;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -10px);
    transition: all 0.3s ease .1s;
    z-index: 1001;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0px);
    transition: all 0.3s ease;
}

.dropdown-menu a {
    display: block;
    color: #666;
    text-align: center;
    font-weight: 500;
    font-size: 17px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: normal;
}

.dropdown-menu a:hover {
    color: #117D8D;
}

.dropdown-menu a + a {
    margin-top: 20px;
}

.logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 51px;
    width: 188px;
}

.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-decoration: none;
}

.logo img {
    height: 51px;
    width: 188px;
    object-fit: contain;
    display: block;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background: #444444;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger:hover span {
    background: #117D8D;

}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 햄버거 메뉴 오버레이 - Figma 디자인에 맞게 수정 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 585px;
    height: 100%;
    background: #ffffff;
    z-index: 2000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    border: none;
}

.mobile-menu-overlay.active {
    right: 0;
}

/* 화면 크기가 544px 미만일 때 전체 화면 사용 */
@media (max-width: 544px) {
    .mobile-menu-overlay {
        width: 100%;
        box-shadow: none;
    }
}

/* 모바일 메뉴 닫기 버튼 - Figma 디자인에 맞게 수정 */
.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    border-radius: 0;
    transition: all 0.3s ease;
    background: none;
    border: none;
    z-index: 2001;
}

.mobile-menu-close::before,
.mobile-menu-close::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 1px;
    background: #333;
}

.mobile-menu-close::before {
    transform: rotate(45deg);
}

.mobile-menu-close::after {
    transform: rotate(-45deg);
}

/* 모바일 메뉴 컨텐츠 - Figma 디자인에 맞게 수정 */
.mobile-menu-content {
    padding: 30px 34px 0 34px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-menu-section {
    position: relative;
    padding-bottom: 30px;
}

.mobile-menu-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #c0c0c0;
}

.mobile-menu-section h2 {
    /*font-family: 'Roboto', sans-serif;*/
    font-weight: bold;
    font-size: 28px;
    color: #000000;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 1;
}

.mobile-menu-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mobile-menu-section li {
    margin: 0;
}

.mobile-menu-section a {
    /*font-family: 'Noto Sans KR', sans-serif;*/
    font-weight: 500;
    font-size: 16px;
    color: #606060;
    text-decoration: none;
    display: block;
    line-height: 1;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: normal;
    padding: 0;
    border-radius: 0;
}

.mobile-menu-section a:hover {
    padding-left: 0;
    color: #117D8D;
}

/* 모바일 메뉴 헤더 제거 */
.mobile-menu-header {
    display: none;
}

.mobile-menu-logo {
    display: none;
}

/* 반응형 - 모바일 헤더 스타일 개선 */
@media (max-width: 968px) {
    .header {
        height: 60px;
    }

    .nav-container {
        height: 60px;
        padding: 0 20px;
    }

    .nav-left {
        display: none;
    }

    .logo {
        left: 20px;
        transform: translateY(-50%);
        height: 35px;
        width: auto;
    }

    .logo img {
        height: 38px;
        width: auto;
        max-width: 140px;
    }

    .hamburger {
        right: 20px;
        width: 24px;
        height: 18px;
        gap: 6px;
    }

    .hamburger span {
        width: 24px;
        height: 2px;
        background: #333333;
    }

    .hamburger:hover span {
        background: #333333;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media (max-width: 768px) {
    .header {
        height: 60px;
    }

    .nav-container {
        height: 60px;
        padding: 0 20px;
    }

    .logo {
        left: 20px;
        height: 35px;
    }

    .hamburger {
        right: 20px;
    }
}

@media (max-width: 480px) {
    .header {
        height: 60px;
    }

    .nav-container {
        height: 60px;
        padding: 0 20px;
    }

    .logo {
        left: 20px;
        transform: translateY(-50%);
        height: 32px;
    }

    
    .hamburger {
        right: 20px;
        width: 22px;
        height: 16px;
        gap: 5px;
    }

    .hamburger span {
        width: 22px;
        height: 2px;
    }
}



@media screen and (max-width: 968px) {
    main.container {
        margin-top: var(--header-height-mobile);
    }

    .hero {
        margin-top: var(--header-margin-top-height-mobile);
        padding-top: 0px !important;
    }
}