/* ===== EEA 헤더 스타일 (심플 모던) ===== */

/* ── 모바일 패널 overflow 방지 ── */
html { overflow-x: hidden; }

/* ── 리셋 ── */
#heaDer * { box-sizing: border-box; }
#heaDer {
    font-family: 'Noto Sans KR', sans-serif;
    position: relative;
    z-index: 2000;
}

/* ── 유틸리티 바 숨김 ── */
.hdGnb { display: none; }

/* ── 메인 헤더 (로고 + 네비 + 우측 액션) ── */
.hdH1log {
    background: #fff;
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.hdH1log-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    gap: 0;
}

/* ── 로고 ── */
.hdlog {
    flex-shrink: 0;
    margin-right: 40px;
}
.hdlog a { display: flex; align-items: center; }
.hdlog a img { height: 44px; width: auto; display: block; }

/* ── 메인 네비게이션 ── */
.hdLnbArea { flex: 1; }
#gnb-container_new { position: relative; height: 70px; display: flex; align-items: center; }
.hdLnb { height: 70px; display: flex; align-items: center; }
.hdLnb ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 70px;
}
.hdLnb ul li { height: 70px; display: flex; align-items: center; }
.hdLnb ul li > a {
    display: flex;
    align-items: center;
    padding: 0 18px;
    height: 70px;
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
}
.hdLnb ul li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: #C8102E;
    transform: scaleX(0);
    transition: transform 0.2s ease;
    transform-origin: center;
}
.hdLnb ul li:hover > a { color: #C8102E; }
.hdLnb ul li:hover > a::after { transform: scaleX(1); }

/* nav-underline span 숨김 (::after로 대체) */
.hdLnb ul li > a .nav-underline { display: none; }

/* ── 우측 액션 영역 ── */
.hd-right-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 24px;
}

/* 검색창 */
.hd-search {
    flex-shrink: 0;
    position: relative;
}
.hd-search input {
    height: 38px;
    padding: 0 42px 0 16px;
    border: 1.5px solid #E5E7EB;
    border-radius: 20px;
    font-size: 13px;
    width: 200px;
    outline: none;
    background: #F9FAFB;
    transition: border-color 0.2s, background 0.2s, width 0.3s;
    font-family: 'Noto Sans KR', sans-serif;
    color: #1F2937;
}
.hd-search input:focus {
    border-color: #C8102E;
    background: #fff;
    width: 240px;
}
.hd-search input::placeholder { color: #9CA3AF; }
.hd-search button {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9CA3AF;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.hd-search button:hover { color: #C8102E; }

/* 인라인 로그인 폼 */
.hd-inline-login {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}
.hd-login-input {
    height: 34px;
    padding: 0 12px;
    border: 1.5px solid #E5E7EB;
    border-radius: 6px;
    font-size: 13px;
    width: 120px;
    outline: none;
    background: #F9FAFB;
    font-family: 'Noto Sans KR', sans-serif;
    color: #1F2937;
    transition: border-color 0.2s;
}
.hd-login-input:focus {
    border-color: #C8102E;
    background: #fff;
}
.hd-login-input::placeholder { color: #9CA3AF; }

/* 로그인 버튼 */
.hd-login-btn {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 16px;
    background: #C8102E;
    color: #fff !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    border: none;
}
.hd-login-btn:hover { background: #a50d24; }

/* 회원가입 버튼 */
.hd-join-btn {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    background: #fff;
    color: #C8102E !important;
    border: 1.5px solid #C8102E;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    font-family: 'Noto Sans KR', sans-serif;
    margin-left: 4px;
}
.hd-join-btn:hover { background: #C8102E; color: #fff !important; }

/* 로그인 후: 사용자 메뉴 */
.hd-user-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}
.hd-user-menu a {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 14px;
    color: #4B5563;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 20px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.hd-user-menu a:hover { background: #F3F4F6; color: #C8102E; }
.hd-user-menu a.my-btn {
    background: #C8102E;
    color: #fff !important;
    font-weight: 700;
}
.hd-user-menu a.my-btn:hover { background: #a50d24; }
.hd-user-menu a.logout-btn { color: #9CA3AF; }
.hd-user-menu a.logout-btn:hover { color: #C8102E; background: #F3F4F6; }

/* ── 드롭다운 ── */
.site_container_new {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 2px solid #C8102E;
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    z-index: 1100;
    padding: 28px 0 24px;
    overflow: visible !important;
}
.site_container_new.active { display: block; }
.hdLnbDropDn > div {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 0;
}
.hdLnbDropDn ul {
    list-style: none !important;
    padding: 0 16px !important;
    margin: 0 !important;
    flex: 1 !important;
    min-width: 0 !important;
    border-right: 1px solid #F3F4F6 !important;
}
.hdLnbDropDn ul:first-child { padding-left: 0 !important; }
.hdLnbDropDn ul:last-child { border-right: none !important; }
.hdLnbDropDn ul li a {
    display: block;
    padding: 7px 6px !important;
    font-size: 13.5px !important;
    color: #374151 !important;
    text-decoration: none !important;
    transition: color 0.15s, background 0.15s !important;
    white-space: normal !important;
    word-break: keep-all !important;
    font-family: 'Noto Sans KR', sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    border-radius: 4px !important;
    /* ::after 빨간 밑줄 상속 제거 */
    position: static !important;
}
/* 드롭다운 링크의 ::after 완전 제거 */
.hdLnbDropDn ul li a::after {
    display: none !important;
    content: none !important;
}
.hdLnbDropDn ul li a:hover {
    color: #C8102E !important;
    font-weight: 600 !important;
    background: #FFF5F5 !important;
}

/* ── 상단 팝업 배너 숨김 ── */
.hdAdarea { display: none; }

/* ── renewal.css 구 스타일 전면 덮어쓰기 ── */
body {
    font-family: 'Noto Sans KR', sans-serif !important;
    overflow-x: hidden !important;
}
#heaDer { min-width: 0 !important; width: 100% !important; font-family: 'Noto Sans KR', sans-serif !important; }
.hdH1log { width: 100% !important; height: auto !important; clear: none !important; }
.hdlog { float: none !important; line-height: normal !important; width: auto !important; }
.hdLnbArea { clear: none !important; width: auto !important; height: auto !important; border: none !important; }
.hdLnb { width: auto !important; height: 70px !important; margin: 0 !important; }
.hdLnb > ul > li {
    float: none !important; width: auto !important; text-align: left !important;
    background: none !important; font-size: 15px !important; font-weight: 600 !important;
    line-height: 70px !important; font-family: 'Noto Sans KR', sans-serif !important;
}
.hdLnb > ul > li > a {
    font-family: 'Noto Sans KR', sans-serif !important;
    font-size: 15px !important; font-weight: 600 !important; color: #1F2937 !important;
}
.hdLnb > ul > li:hover > a { color: #C8102E !important; }
.hdLnbDropDn { height: auto !important; background: transparent !important; opacity: 1 !important; }
.hdLnbDropDn > div { width: auto !important; height: auto !important; }
.hdLnbDropDn > div > ul { height: auto !important; position: static !important; }
.Lnbdrdm01, .Lnbdrdm02, .Lnbdrdm03, .Lnbdrdm04,
.Lnbdrdm05, .Lnbdrdm06, .Lnbdrdm07, .Lnbdrdm08 {
    position: static !important; margin-top: 0 !important;
}
#contanTs { min-width: 0 !important; font-family: 'Noto Sans KR', sans-serif !important; }
.hdlogin { float: none !important; width: auto !important; }

/* ── 구버전 잔재 정리 ── */
.skip_submit { display: none; }
#frm_login { display: none; }
#naver_id_login { display: none !important; }
#p-kakao_id_login { display: none !important; }
ul.hdlogInfo { display: none; }

/* ── 로그인/회원가입 모달 스타일 잔재 ── */
.agree_info { padding: 10px; }
.agree_info h1 { margin: 10px auto; text-align: center; line-height: 1.6em; }
.agree_info div, .agree_info p { line-height: 1.6em; }
.guest_agree_btn1, .guest_agree_btn2 {
    border-radius: 2px; color: #fff !important;
    height: 21px; line-height: 21px;
    padding: 4px 9px; text-align: center; background: #716c6c;
}

/* ===== 모바일 반응형 ===== */

/* ── 햄버거 버튼 (PC 숨김) ── */
.hd-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}
.hd-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1F2937;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ── 모바일 슬라이드 패널 ── */
.hd-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2999;
}
.hd-mobile-overlay.active { display: block; }

.hd-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 3000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    font-family: 'Noto Sans KR', sans-serif;
}
.hd-mobile-nav.active { transform: translateX(0); }

.hd-mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #E5E7EB;
}
.hd-mobile-nav-header button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}
.hd-mobile-search-box {
    padding: 12px 20px;
    display: flex;
    gap: 8px;
}
.hd-mobile-search-box input {
    flex: 1;
    height: 38px;
    padding: 0 12px;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    font-family: 'Noto Sans KR', sans-serif;
    background: #F9FAFB;
}
.hd-mobile-search-box input:focus { border-color: #C8102E; background: #fff; }
.hd-mobile-search-box button {
    height: 38px;
    padding: 0 14px;
    background: #C8102E;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
}
.hd-mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hd-mobile-menu-list li {
    border-bottom: 1px solid #F3F4F6;
}
.hd-mobile-menu-list li a {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.hd-mobile-menu-list li a:hover,
.hd-mobile-menu-list li a:active {
    background: #FFF5F5;
    color: #C8102E;
}
.hd-mobile-auth {
    padding: 16px 20px;
    display: flex;
    gap: 8px;
}
.hd-mob-login-btn,
.hd-mob-join-btn {
    flex: 1;
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Noto Sans KR', sans-serif;
}
.hd-mob-login-btn {
    background: #C8102E;
    color: #fff !important;
}
.hd-mob-join-btn {
    background: #fff;
    color: #C8102E !important;
    border: 1.5px solid #C8102E;
}

/* ── 데스크톱 간편로그인(SNS) 버튼 ── */
.hd-sns-login {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
}
.hd-sns-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
}
.hd-sns-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hd-sns-naver { background: #03C75A; }
.hd-sns-kakao { background: #FEE500; }
.hd-sns-google { background: #fff; border: 1.5px solid #E5E7EB; }

/* ── 모바일 간편로그인 영역 ── */
.hd-mobile-sns {
    padding: 0 20px 20px;
}
.hd-mobile-sns-label {
    display: block;
    font-size: 12px;
    color: #9CA3AF;
    font-weight: 500;
    margin-bottom: 10px;
    text-align: center;
}
.hd-mobile-sns-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hd-mob-sns-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Noto Sans KR', sans-serif;
    transition: opacity 0.15s;
}
.hd-mob-sns-btn:hover { opacity: 0.85; }
.hd-mob-sns-naver {
    background: #03C75A;
    color: #fff !important;
}
.hd-mob-sns-kakao {
    background: #FEE500;
    color: #3C1E1E !important;
}
.hd-mob-sns-google {
    background: #fff;
    color: #374151 !important;
    border: 1.5px solid #E5E7EB;
}

/* ── 태블릿 (769~1024px) ── */
@media (max-width: 1024px) {
    .hdLnb ul li > a {
        padding: 0 12px !important;
        font-size: 14px !important;
    }
    .hd-search input { width: 160px; }
    .hd-search input:focus { width: 180px; }
    .hd-login-input { width: 100px; }
    .hdlog { margin-right: 20px; }
}

/* ── 모바일 (768px 이하) ── */
@media (max-width: 768px) {
    .hdH1log-inner {
        height: 56px !important;
        padding: 0 12px !important;
    }
    .hdlog { margin-right: auto !important; }
    .hdlog a img { height: 36px !important; }

    /* 데스크톱 네비/검색/로그인 숨김 */
    .hdLnbArea { display: none !important; }
    .hd-right-actions .hd-search { display: none !important; }
    .hd-right-actions .hd-inline-login { display: none !important; }
    .hd-right-actions .hd-join-btn { display: none !important; }
    .hd-right-actions .hd-user-menu { display: none !important; }

    /* 데스크톱 간편로그인 숨김 */
    .hd-sns-login { display: none !important; }

    /* 햄버거 버튼 표시 */
    .hd-mobile-toggle { display: flex !important; }

    /* 드롭다운 메가메뉴 숨김 */
    .site_container_new { display: none !important; }

    /* 헤더 높이 기준 재정의 */
    .hdLnb { height: 56px !important; }
    .hdLnb ul { height: 56px !important; }
    .hdLnb ul li { height: 56px !important; }
    .hdLnb > ul > li { line-height: 56px !important; }
    .site_container_new { top: 56px !important; }
}
