/* 헤더 컨테이너 스타일 */
.header-nav-container {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
    font-size: 13px;
}

/* 헤더 기본 스타일 */
header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    height: 60px;
}

/* 브랜드 영역 스타일 */
header > div:nth-child(2) {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

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

/* 메뉴 버튼 스타일 */
.openbtn {
    font-size: 20px;
    cursor: pointer;
    color: #333;
    background-color: transparent;
    border: none;
    padding: 10px 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.openbtn:hover {
    transform: scale(1.2);
    color: #007bff;
}

/* 중앙 타이틀 스타일 */
#cuin-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 1.8rem;
    color: #333;
    white-space: nowrap;
    top: 30%;
}

/* 날짜 표시 스타일 */
#current-date {
    margin-left: auto;
    padding-right: 20px;
    font-size: 1rem;
    color: #666;
    white-space: nowrap;
}

/* 헤더 아이콘 스타일 */
.header-icons {
    display: flex;
    align-items: center;
}

.header-icons i {
    font-size: 20px;
    color: #333;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.header-icons i:hover {
    transform: scale(1.2);
    color: #007bff;
}

/* 네비게이션 스타일 */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 10px 0;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

nav.nav-open {
    max-height: 500px;
    opacity: 1;
}

nav a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    margin: 2px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

nav a.active, 
nav a:hover {
    background-color: #007bff;
    color: white;
}

/* 반응형 스타일 */
@media (min-width: 769px) {
    nav {
        max-height: none;
        opacity: 1;
        overflow: visible;
        border-radius: 10px 10px 0 0;
    }
    
    #navToggle {
        display: none;
    }
}

@media (max-width: 1200px) {
    #cuin-title {
        font-size: 1.5rem;
    }
    
    #current-date {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    header {
        height: 50px;
        padding: 8px 15px;
    }

    #cuin-title {
        display: none;
    }

    #current-date {
        font-size: 0.8rem;
        padding-right: 10px;
    }

    nav {
        display: flex !important;
        flex-direction: row;
        width: 100%;
        border-radius: 10px 10px 0 0;
        max-height: none;
        opacity: 1;
        overflow: visible;
    }
    
    nav a {
        flex: 1 0 40%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    #current-date {
        display: none;
    }

    .header-icons i {
        font-size: 18px;
    }
}

@media screen and (min-width: 2560px) and (max-width: 2570px) {
    header {
        height: 70px;
    }
    
    #cuin-title {
        font-size: 2rem;
    }
    
    #current-date {
        position: relative;
        right: 50px;
        font-size: 1.1rem;
    }
}

@media (max-width: 375px) {
    #current-date {
        font-size: 80%;
    }

    .header-icons i {
        font-size: 90%;
    }

    nav a {
        flex: 1 0 100%;
    }
}