/* NIT 서브메뉴 스타일 */
.nit_sub_menu_section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: relative;
    z-index: 999;
    margin-top: 0;
}

.nit_sub_menu_container {
    width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.nit_sub_menu_left {
    display: flex;
    align-items: center;
}

.nit_sub_menu_list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 52px;
}

.nit_sub_menu_item {
    text-decoration: none;
    color: #495057;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: 0.3px;
    background: transparent;
    border: 1px solid transparent;
}

.nit_sub_menu_item:hover {
    color: #212529;
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.nit_sub_menu_item.active {
    color: #174ea6;
    font-weight: 600;
    box-shadow: 0 0px 5px rgba(0,0,0,0.15);
    position: relative;
	border-radius: 3px;
	padding: 10px 8px;
}

.nit_sub_menu_item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #174ea6, #007bff);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nit_sub_menu_item.active::after {
    width: 100%;
}

.contact_number {
    display: none !important; /* 기본적으로 숨김 */
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: #174ea6;
    background: #fff;
    border-radius: 12px;
    padding: 6px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-left: 16px;
    position: relative;
    transition: box-shadow 0.2s;
}
.contact_number:hover {
    box-shadow: 0 4px 16px rgba(0,123,255,0.10);
}

@media (max-width: 1400px) {
    .nit_sub_menu_container {
        width: 100%;
        padding: 0 40px;
    }
}

@media (max-width: 1200px) {
    .nit_sub_menu_item {
        font-size: 14px;
        padding: 8px 14px;
    }
    
    .nit_sub_menu_list {
        gap: 40px;
    }
    
    .contact_number {
        font-size: 14px;
        padding: 4px 10px;
        margin-left: 12px;
    }
    
    .phone_icon {
        font-size: 14px;
        margin-right: 6px;
    }
}

@media (max-width: 992px) {
    .nit_sub_menu_item {
        font-size: 13px;
        padding: 7px 12px;
    }
    
    .nit_sub_menu_list {
        gap: 30px;
    }
    
    .contact_number {
        font-size: 12px;
        padding: 3px 8px;
        margin-left: 10px;
    }
    
    .phone_icon {
        font-size: 12px;
        margin-right: 5px;
    }
}
@media (max-width: 900px) {
    .nit_sub_menu_section { 
        height: auto;
    }
    .nit_sub_menu_container {
        padding: 0 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: auto;
        padding: 15px 20px;
    }
    .nit_sub_menu_list {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .nit_sub_menu_item {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .contact_number {
        font-size: 11px;
        padding: 3px 5px;
        margin-left: 0;
    }
    
    .phone_icon {
        font-size: 11px;
        margin-right: 4px;
    }
	
	.phone_number {
		font-size:11px;
	}
	.phone_icon i {
		font-size:10px;
	}
}

@media (max-width: 768px) {
    .nit_sub_menu_container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .nit_sub_menu_item {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .nit_sub_menu_list {
        gap: 15px;
        justify-content: flex-start;
    }
    
    .contact_number {
        font-size: 10px;
        padding: 2px 3px;
        margin-left: 0;
    }
    
    .phone_icon {
        font-size: 10px;
        margin-right: 3px;
    }
}

/* 585px 이하 - 전화번호를 아래 행으로 배치 */
@media (max-width: 585px) {
    .nit_sub_menu_container {
        flex-direction: column;
        gap: 10px;
        padding: 10px 5px;
    }
    
    .nit_sub_menu_left {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }
    
    .nit_sub_menu_list {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nit_sub_menu_item {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .nit_sub_menu_right {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
    
    .contact_number {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .phone_icon {
        font-size: 9px;
        margin-right: 2px;
    }
}

.nit_sub_menu_section.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    z-index: 1100;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    animation: slideDownMenu 0.3s;
}
@keyframes slideDownMenu {
    from { top: -60px; opacity: 0; }
    to { top: 0; opacity: 1; }
}
body.menu-fixed {
    padding-top: 56px;
}

/* 서브메뉴가 고정될 때만 전화번호 표시 */
.nit_sub_menu_section.fixed .contact_number {
    display: flex !important;
    animation: fadeInUp 0.5s ease-out;
}

/* 더 높은 우선순위로 전화번호 표시 */
body .nit_sub_menu_section.fixed .contact_number {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phone_icon {
    margin-right: 8px;
    color: #007bff;
    font-size: 18px;
    display: flex;
    align-items: center;
    animation: phoneFloat 3s ease-in-out infinite;
}
.phone_number {
    display: flex;
    align-items: center;
    letter-spacing: 1.8px;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}
.phone_number span {
    display: inline-block;
    animation: numberFloat 3s ease-in-out infinite;
    margin: 0 1px;
}
.phone_number span:nth-child(1) { animation-delay: 0s; }
.phone_number span:nth-child(2) { animation-delay: 0.1s; }
.phone_number span:nth-child(3) { animation-delay: 0.2s; }
.phone_number span:nth-child(4) { animation-delay: 0.3s; }
.phone_number span:nth-child(5) { animation-delay: 0.4s; }
.phone_number span:nth-child(6) { animation-delay: 0.5s; }
.phone_number span:nth-child(7) { animation-delay: 0.6s; }
.phone_number span:nth-child(8) { animation-delay: 0.7s; }
.phone_number span:nth-child(9) { animation-delay: 0.8s; }
@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-2px) rotate(-2deg); }
    50% { transform: translateY(-4px) rotate(0deg); }
    75% { transform: translateY(-2px) rotate(2deg); }
}
@keyframes numberFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-3px) scale(1.1); }
    50% { transform: translateY(-5px) scale(1.15); }
    75% { transform: translateY(-3px) scale(1.1); }
} 