/* 네비게이션바 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e5e5;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 80px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
    width: 200px;  /* 로고 영역 너비 */
    height: 50px;  /* 로고 영역 높이 */
    overflow: hidden;  /* 영역 밖 이미지 숨김 */
}

.navbar-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* 영역에 맞게 이미지 채우기 */
    object-position: 32px -12px;  /* x축, y축 위치 조정 (예: 50% 50%는 중앙) */
    transform: scale(1.5);  /* 배율 조정 (1.5배 확대) */
}

.navbar-logo:hover {
    opacity: 0.8;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 50px;
    align-items: center;
}

.navbar-item {
    position: relative;
}

.navbar-link {
    text-decoration: none;
    color: #333333;
    font-size: 16px;
    font-weight: 500;
    display: block;
    transition: color 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-link:hover {
    color: #dc143c;
}

/* 드롭다운 메뉴 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    list-style: none;
    min-width: 240px;
    padding: 12px 0;
    margin-top: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-link {
    display: block;
    padding: 14px 28px;
    color: #333333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.2s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dropdown-link:hover {
    background-color: #dc143c;
    color: #ffffff;
    padding-left: 32px;
}

.dropdown-link.active {
    background-color: #dc143c;
    color: #ffffff;
    font-weight: 600;
}

.dropdown-link.active:hover {
    background-color: #dc143c;
    color: #ffffff;
    padding-left: 28px;
}

/* 모바일 토글 버튼 */
.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .navbar-container {
        padding: 0 30px;
    }
    
    .navbar-menu {
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        height: 60px;
        padding: 0 20px;
        align-items: center;
    }

    .navbar-logo {
        width: 150px;
        height: 40px;
    }

    .navbar-toggle {
        display: flex;
        align-items: center;
    }
    
    .navbar-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        gap: 0;
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .navbar-item {
        width: 100%;
        padding: 0;
    }

    .navbar-link {
        padding: 12px 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        margin-top: 0;
        padding: 0;
        background-color: #f8f9fa;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    .dropdown-link {
        padding: 10px 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .dropdown-link:hover {
        padding-left: 32px;
    }
}

/* 페이지 컨텐츠를 위한 상단 여백 */
body {
    padding-top: 80px;
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
}
