/* 새로운 헤더 스타일 */
.new-header-container {
    /* Background */
    background: transparent;
    
    /* Auto layout */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 30px;
    
    width: 100%;
    height: auto;
    
    /* 고정 헤더 */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    mix-blend-mode: difference;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 스크롤 시 고정 헤더 스타일 */
.new-header-container.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: auto;
    padding: 12px 30px;
    background: transparent;
    mix-blend-mode: difference;
}

/* 스크롤 시 장식 요소 숨김 */
.new-header-container.scrolled .header-decoration-line {
    display: none;
}

/* 스크롤 시 메인 콘텐츠 높이 조정 */
.new-header-container.scrolled .header-main-content {
    height: 55px;
}



/* 고정 헤더를 위한 body 패딩 - 덜컹거림 방지 */
body {
    transition: none;
}

body.header-fixed {
    padding-top: 0;
}

.header-decoration-line {
    display: flex;
    align-items: center;
    width: 100%;
    height: 20px;
    gap: 23px;
}

.horizontal-divider {
    flex: 1;
    height: 1px;
    background-color: #777777;
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 100%;
}

.header-logo {
    flex-shrink: 0;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-svg {
    height: 45px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

/* 스크롤 시에만 로고에 블렌딩 효과 적용 */
.new-header-container.scrolled .logo-svg {
    filter: brightness(1) contrast(1);
}

/* 로고 호버 효과 제거 */

.header-nav {
    flex-shrink: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 15px;
    font-family: 'Pretendard GOV', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #fbfbfb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ffc14d;
    background: none;
    transform: none;
}

/* 스크롤 시에만 네비게이션에 블렌딩 효과 적용 - ITDDAA 스타일 */
.new-header-container.scrolled .nav-link {
    color: #ffffff;
}

/* 배경 색상에 따른 텍스트 색상 클래스 */
.nav-link.light-bg {
    color: #1a1a1a;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.nav-link.dark-bg {
    color: #fbfbfb;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.nav-link.light-bg:hover {
    color: #ffc14d;
    background: none;
    transform: none;
}

/* 햄버거 메뉴 기본 숨김 */
.hamburger-menu {
    display: none;
}

/* 태블릿 반응형 */
@media (max-width: 1024px) {
    .new-header-container {
        padding: 18px 25px;
        min-height: 120px;
    }
    
    .header-main-content {
        height: 60px;
    }
    
    .logo-svg {
        height: 38px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 0 12px;
    }
}

/* 태블릿 반응형 (768px - 601px) */
@media (max-width: 768px) and (min-width: 601px) {
    .new-header-container {
        padding: 15px 20px;
        min-height: 95px;
    }
    
    .new-header-container.scrolled {
        padding: 10px 20px;
        background: transparent;
    }
    
    .new-header-container.scrolled .header-main-content {
        height: 50px;
    }
    
    .new-header-container.scrolled .logo-svg {
        height: 32px;
    }
    
    .header-main-content {
        height: 65px;
        justify-content: space-between;
        width: 100%;
    }
    
    .header-nav {
        display: block;
    }
    
    .nav-list {
        display: flex; /* 태블릿에서는 네비게이션 표시 */
        gap: 15px;
    }
    
    .nav-link {
        font-size: 14px;
    }
}

/* 600px 이하 모바일: 로고 중앙, 네비 아래 */
@media (max-width: 600px) {
    .new-header-container {
        padding: 15px 20px;
        min-height: auto;
    }
    
    .new-header-container.scrolled {
        padding: 10px 20px;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        mix-blend-mode: normal;
    }
    
    .new-header-container.scrolled .header-main-content {
        height: auto;
        gap: 10px;
    }
    
    .new-header-container.scrolled .logo-svg {
        height: 32px;
    }
    
    .header-main-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        height: auto;
    }
    
    .header-logo {
        order: 1;
    }
    
    .header-nav {
        display: block;
        order: 2;
        width: 100%;
    }
    
    .nav-list {
        display: flex;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* 헤더 공통 스타일 */

/* 헤더 정보 컨테이너 */
.header-info-container {
    width: 100%;
    padding: 0 2rem;
    margin-top: 15px;
    margin-bottom: 5px;
}

/* 헤더 정보 */
.header-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.header-email {
    font-size: 14px;
    color: #ffffff;
    opacity: 0.2;
    font-family: 'Pretendard GOV', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.header-copyright {
    font-size: 14px;
    color: #ffffff;
    opacity: 0.2;
    font-family: 'Pretendard GOV', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 헤더 컨테이너 */
.header-container {
    background-color: #1a1a1a;
    padding: 0 2rem;
    width: 100%;
}

/* 헤더 꾸밈 요소 */
.header-decoration {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 23px;
    padding: 0;
}

.decoration-star {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.decoration-line {
    flex: 1;
    height: 1px;
    background-color: #777777;
}

.header-decoration svg {
    width: 100%;
    height: 20px;
}

/* 헤더 콘텐츠 */
.header-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 2rem;
    gap: 3px;
}

/* 헤더 타이틀 */
.header-title {
    font-family: 'SEBANG_Gothic_Bold', sans-serif;
    font-size: 70px;
    font-weight: normal;
    color: #ffffff;
    text-align: left;
    line-height: 1;
    letter-spacing: 0;
    display: flex;
    flex-direction: row;
    font-size: 0;
}

.title-line-1,
.title-line-2 {
    line-height: 1;
    font-size: 70px;
}

.header-title-link {
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.header-title-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 193, 77, 0.5) 0%, 
        rgba(255, 193, 77, 0.2) 50%, 
        rgba(255, 193, 77, 0.5) 100%);
    background-size: 200% 100%;
    background-position: -200% 0;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    opacity: 0;
    transition: opacity 0.3s ease, background-position 10s ease-out;
    white-space: pre-line;
}

.header-title-link:hover::before {
    opacity: 1;
    background-position: 200% 0;
}

/* 네비게이션 */
.navbar {
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    margin-left: auto;
}

.nav-links li {
    width: auto;
    text-align: center;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.3s ease;
    font-family: 'Pretendard GOV', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    opacity: 0.4;
    padding: 8px;
    display: block;
    white-space: nowrap;
}

.nav-links a.active {
    opacity: 1;
}

.nav-links a:not(.active) {
    opacity: 0.4;
}

.nav-links a:not(.active):not(.price-link):not(.contact-link) {
    opacity: 0.4;
}

.nav-links a.price-link {
    color: #ffffff;
    transition: all 0.3s ease;
    opacity: 1;
    font-family: 'Pretendard GOV', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.nav-links a.price-link:hover {
    color: #ffc14d;
    background: none;
    transform: none;
}

.nav-links a.contact-link {
    color: #ffc14d;
    border: 1px solid #ffc14d;
    padding: 6px 16px;
    border-radius: 3px;
    transition: all 0.3s ease;
    opacity: 1;
    font-family: 'SEBANG_Gothic_Bold', sans-serif;
    text-transform: uppercase;
    margin-left: 20px;
}

.nav-links a.contact-link:hover {
    color: #ffc14d;
    background: none;
    transform: none;
}

/* 테스트 링크 스타일 */
.nav-links a.test-link {
    color: #ffffff;
    transition: all 0.3s ease;
    opacity: 1;
    font-family: 'Pretendard GOV', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.nav-links a.test-link:hover {
    color: #ffc14d;
    background: none;
    transform: none;
}

/* 공지사항 링크 스타일 */
.nav-links a.notice-link {
    color: #ffffff;
    transition: all 0.3s ease;
    opacity: 1;
    font-family: 'Pretendard GOV', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.nav-links a.notice-link:hover {
    color: #ffc14d;
    background: none;
    transform: none;
}

/* 플레인 프로븐 링크 전용 스타일 */
.nav-links a.plainproven-link {
    opacity: 0.4 !important;
}

/* 메뉴 토글 버튼 (모바일용) */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    right: 3rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* 반응형 스타일 */
@media (max-width: 1200px) {
    .header-title {
        font-size: 0;
    }
    
    .title-line-1,
    .title-line-2 {
        font-size: 48px;
    }
}

/* 1262~1201px 구간에서 헤더 타이틀 1줄 유지 */
@media (min-width: 1201px) and (max-width: 1262px) {
    .header-title {
        font-size: 0;
        white-space: nowrap;
    }
    
    .title-line-1,
    .title-line-2 {
        font-size: 60px;
    }
    
    .header-title-link {
        white-space: nowrap;
    }
}

/* 1200~1000px 구간에서 헤더 타이틀 1줄 유지 */
@media (min-width: 1000px) and (max-width: 1200px) {
    .header-title {
        font-size: 0;
        white-space: nowrap;
    }
    
    .title-line-1,
    .title-line-2 {
        font-size: 50px;
    }
    
    .header-title-link {
        white-space: nowrap;
    }
}

@media (max-width: 1000px) {
    .header-title {
        font-size: 0;
    }
    
    .title-line-1,
    .title-line-2 {
        font-size: 42px;
    }
    
    /* 1000px 이하에서 플레인 프로븐 메뉴 숨기기 */
    .nav-links .plainproven-link {
        display: none;
    }
}

@media (max-width: 865px) {
    .header-title {
        font-size: 0;
    }
    
    .title-line-1,
    .title-line-2 {
        font-size: 38px;
    }
}

@media (max-width: 769px) {
    .header-title {
        font-size: 0;
    }
    
    .title-line-1,
    .title-line-2 {
        font-size: 50px;
    }
}


@media (max-width: 768px) {
    .header-container {
        padding: 20px 1rem;
    }
    
    .header-info-container {
        padding: 0 2rem;
    }
    
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .header-title {
        font-size: 0;
        flex-direction: row;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .title-line-1,
    .title-line-2 {
        font-size: 50px;
    }
    
    .title-line-1,
    .title-line-2 {
        line-height: 1;
    }
    
    .navbar {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .navbar .container {
        justify-content: center;
    }
    
    /* 모바일에서 통합 메뉴 컨테이너 표시 */
    .mobile-menu-container {
        display: flex !important;
    }
    
    .header-info {
        flex-direction: row;
        gap: 20px;
    }
    
    .header-email,
    .header-copyright {
        font-size: 12px;
    }
    
    .navbar .container,
    .nav-links {
        gap: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* 모바일 메뉴 스타일 */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 1000;
        padding: 0;
        margin: 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 20px 0;
    }
    
    .nav-links a {
        font-size: 24px;
        font-weight: 600;
        opacity: 1;
        padding: 15px 30px;
    }
    
    /* 햄버거 메뉴 애니메이션 */
    .menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    

}

@media (max-width: 480px) {
    .header-container {
        padding: 15px 1rem;
    }
    
    .header-info-container {
        padding: 0 1.5rem;
    }
    
    .header-content {
        padding: 0 1.5rem;
    }
    
    .header-title {
        font-size: 0;
    }
    
    .title-line-1,
    .title-line-2 {
        font-size: 45px;
    }
    
    .title-line-1,
    .title-line-2 {
        line-height: 1;
    }
    
    .navbar {
        width: 100%;
    }
    
    .navbar .container {
        justify-content: center;
    }
    
    .header-info {
        flex-direction: row;
        gap: 20px;
    }
    
    .header-email,
    .header-copyright {
        font-size: 11px;
    }
    
    .navbar {
        position: relative;
    }
}

