/* header start */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    background-color: #333;
    font-family: "Montserrat", sans-serif;
    color: white;
    position: relative;
    z-index: 1;
}
/* menu dropdown button*/
.hamburger {
    display: none;
}

/*로고 (타이틀)*/
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo_title {
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 1.5vw;
}

.logo_sub {
    font-weight: 300;
    font-size: 0.725vw;
}

.menu-toggle {
    display: none;
    /* 기본적으로 안 보이게 설정 */
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* 메뉴바 */
nav .menu {
    list-style: none;
    display: flex;
}

.menu>li {
    position: relative;
    margin-right: 1.6669rem;
}

.menu a {
    color: white;
    font-weight: 300;
    font-size: 1vw;
    text-decoration: none;
    padding: 10px;
}

.menu > li > a {
    position: relative;
}

/* 메뉴바 dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    background-color: #222;
    list-style: none;
    top: calc(100% + 8px);
    left: 0;
    min-width: 130px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li a {
    display: block;
    font-weight: 300;
    font-size: 0.85rem;
    padding: 10px 18px;
    color: #eee;
    white-space: nowrap;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.dropdown-menu li a:hover {
    background: rgba(255,255,255,0.08);
    padding-left: 22px;
}

.menu > li > a::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu > li:hover > a::after {
    width: 60%;
}
/* header end */

/* footer start */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 40px;
    display: flex;
    justify-content: normal;
}

.footer-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1100px;
}

.footer-logo {
    display: flex;
    align-items: center;
    flex: 1;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-title {
    font-family: "Montserrat";
    margin: 0;
}

.footer-title h2 {
    font-weight: 600;
    font-size: 1.3331rem;
}

.footer-title p {
    font-weight: 300;
    font-size: 0.6669rem;
}

.footer-divider {
    width: 1px;
    height: 70px;
    background-color: #fff;
    margin: 0 30px;
}

.footer-contact {
    flex: 2;
    font-family: "Noto-Sans-KR";
    font-weight: 300;
    font-size: 0.75rem;
    line-height: 1.6;
}

/* footer end */

@media (max-width: 1024px) {
    .logo_title {
        cursor: pointer;
        text-decoration: none;
        color: #fff;
        font-weight: 600;
        font-size: 2.5vw;
    }

    .logo_sub {
        font-weight: 300;
        font-size: 1.4vw;
    }

    .menu a {
        color: white;
        font-weight: 300;
        font-size: 1.5vw;
        text-decoration: none;
        padding: 7px;
    }
}

@media (max-width: 430px) {
    header {
        display: flex;
        justify-content: space-between;
        padding: 10px 10px;
        background-color: #333;
        font-family: "Montserrat", sans-serif;
        color: white;
        position: relative;
        z-index: 1;
    }
    .menu-toggle {
        display: block;
    }
    .logo_title {
        cursor: pointer;
        text-decoration: none;
        color: #fff;
        font-weight: 600;
        font-size: 4vw;
    }

    .logo_sub {
        font-weight: 300;
        font-size: 2vw;
        margin-right: 100px;
    }
    /* 기존 메뉴 숨기기 */
    nav .menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #222;
        flex-direction: column;
        padding: 5px 0;
        z-index: 1000;
    }

    nav .menu.active {
        display: flex;
    }

    .menu > li {
        width: 100%;
    }

    .menu > li > a {
        display: block;
        padding: 12px 16px;
        color: white;
        border-bottom: 1px solid #666;
        font-size: 2.5vw;
        cursor: pointer;
    }

    .menu > li > a::after {
        display: none;
    }

    /* 드롭다운 메뉴 스타일 */
    .dropdown-menu {
        position: static;
        width: 100%;
        display: none;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        display: block;
        padding: 10px 24px;
        font-size: 2vw;
        background-color: #444;
    }
        .menu > li.dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    footer {
        padding: 10px 20px;
        display: flex;
        justify-content: normal;
    }
    
    .footer-container {
        display: inline;
        align-items: center;
        width: 100%;
        max-width: 1100px;
    }
    
    .footer-logo {
        display: flex;
        align-items: center;
        flex: 1;
    }
    
    .footer-title h2 {
        font-size: 4vw;
    }
    
    .footer-title p {
        font-size: 3vw;
    }
    
    .footer-divider {
        width: 300px;
        height: 1px;
        background-color: #fff;
        margin: 10px 0 10px 0;
    }
    
    .footer-contact {
        font-size: 2.3vw;
        line-height: 1.6;
    }
}