/* 팝업 전체 Wrapper */
#popup.hd_pop_wr {
    position: fixed; /* 화면에 고정 */
    top: 50%; /* 화면의 세로 50% 위치 */
    left: 50%; /* 화면의 가로 50% 위치 */
    transform: translate(-50%, -50%); /* 정확히 중앙에 배치 */
    z-index: 9999; /* 다른 요소 위로 표시 */
    width: 95%;
    max-width: 500px; /* 최대 너비 600px로 수정 */
    background: #ffffff; /* 팝업 배경색 */
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    overflow: hidden; /* 추가: 내용이 넘치지 않도록 */
    max-height: 90vh; /* 화면 높이의 90%로 제한 */
    border-radius: 30px; /* 추가 */
	display:none;
}

/* 팝업 내용 영역 */
.popup-slk-wr {
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* 메인 슬라이더 */
.pop-slk {
    width: 100%;
    font-size: 0; /* 이미지 간격 제거는 여기서만 적용 */
    line-height: 0;
}

.pop-slk img {
    width: 100%;
    height: auto;
    max-height: calc(90vh - 120px);
    object-fit: cover; /* contain에서 cover로 변경 */
    display: block;
    margin: 0; /* 마진 제거 */
    padding: 0; /* 패딩 제거 */
}

/* 네비게이션 탭 */
.nav-slk {
    width: 100%;
    background: #333;
    height: 60px !important;
    overflow: visible;
    font-size: 14px; /* 탭 글자 크기 복원 */
    line-height: 1.2; /* 탭 줄간격 복원 */
}

.nav-slk .slick-track {
    width: 100% !important;
    display: flex !important;
    transform: translate3d(0, 0, 0) !important;
    height: auto !important;
    min-height: 60px !important;
    background-color: #333;  /* 트랙 배경색 */
}

.nav-slk .slick-slide {
    width: calc(100% / 5) !important; /* PC/태블릿에서 5개씩 */
    min-width: calc(100% / 5) !important;
    flex: 0 0 calc(100% / 5) !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #c3c5c7;            /* 기본 탭 글자색 */
    padding: 10px;
    cursor: pointer;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-sizing: border-box;
    transition: background-color 0.3s ease;
    background-color: #333;  /* 기본 탭 배경색 */
}

.nav-slk .slick-slide:hover {
    background-color: #6E8066;
}


.nav-slk .slick-slide.active {
    background-color: #6E8066;  /* 활성화된 탭 배경색 */
    color: #fff;               /* 활성화된 탭 글자색 */
}

.nav-slk .slick-slide div {
    white-space: normal;
    line-height: 1.2;
    word-break: keep-all;
    width: 100%;
    text-align: center;
}

/* 하단 버튼 영역 */
.hd_pops_footer {
    padding: 10px;
    background: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: none;
}

.hd_pops_footer button {
    padding: 8px 15px;
    background: #333;
    border-radius: 3px;
    cursor: pointer;
    border: none;
    color: #fff;
}

.hd_pops_footer button:hover {
    background: #333 !important;
    color: #fff !important;
}

/* 반응형 설정 */
@media screen and (max-width: 768px) {
    #popup.hd_pop_wr {
        width: 90%;
    }

    .nav-slk,
    .nav-slk .slick-track {
        height: 50px !important;
    }

    .nav-slk .slick-slide {
        width: 50% !important; /* 모바일에서 2개씩 */
        min-width: 50% !important;
        flex: 0 0 50% !important;
        height: 50px !important;
    }
}