@charset "utf-8";

/****** 지면 기본 레이아웃 ******/
.new_paper_wrap {
    width: 100%;
    max-width: 1080px;
    margin: 10px auto;
    margin-bottom: 76px;
}

.paper_scachuler {
    display: flex;
    column-gap: 20px;
    /* justify-content: space-between; */
    width: 100%;
}

.paper_wrap_left {
    position: relative;
    width: 100%;
    max-width: 340px;
    transition: width 0.3s ease;
    /* border-right: 1px solid #efefef; */
    /* max-height: 930px; */
    max-height: 1030px;
}

.paper_wrap_center_article {
    position: relative;
    width: 100%;
    min-width: 720px;
    min-height: 1030px;
    margin: 0 auto; /* 화면 중앙 정렬 */
    display: flex; /* 좌우 배치 */
    box-sizing: border-box;
    background-color: #fff;
    border: 1px solid #e1e1e1;
    overflow: hidden; /* 지정된 720x1030 영역 밖으로 넘침 방지 */
}

.toggle_btn {
    position: absolute;
    top: 0;
    right: 0px;
    z-index: 100;
    background-color: #e60012;
    color: #fff;
    cursor: pointer;
    width: 52px;
    height: 22px;
    text-align: center;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.toggle_btn:hover {
    background-color: #c40111;
    color: #fff;
}

.toggle_btn .btn_icon {
    object-fit: none;
}

.toggle_btn.is_expanded_state {
    flex-direction: row-reverse;
}

/****** 지면 목차 리스트 ******/
.paper_list_menu {
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, margin-top 0.3s ease;
    width: 330px;
    position: relative;
    border-right: 1px solid #efefef;
    padding-right: 10px;
    height: 100%;
}

.paper_list_menu.is-collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.paper_list_menu .paper_list_wrap {
    position: relative;
    list-style: none;
    margin: 0;
    overflow-y: scroll;
    max-height: 970px;
    background-color: #fff;
    padding: 15px 0 0 0;
    /* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); */
}

/* 하단 흰색 그라데이션 오버레이 */
.paper_list_menu:before{
    content: "";
    position: absolute;
    top: 47px;
    left: 0;
    width: 100%;
    height: 80px;
    z-index:2;
    background: linear-gradient(to top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}
.paper_list_menu::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px; /* 그라데이션 높이 (필요에 따라 조절) */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none; /* 하단 링크/텍스트 클릭 방해 금지 */
}

.paper_wrap_left.is_closed {
    width: 60px;
}

/* 접혔을 때의 스타일 */
.paper_wrap_left.collapsed {
    width: 0;
}

/* 접혔을 때 메뉴 내용 숨기기 */
.paper_wrap_left.collapsed .paper_list_menu {
    display: none;
}

/* 접혔을 때 버튼 위치 조정 (필요한 경우) */
.paper_wrap_left.collapsed .toggle_btn {
    font-size: 11px;
    line-height: 1.2;
    width: 52px;
    flex-direction: row-reverse;
}

.paper_list_wrap.custom_scroll {
    background: #fff;
    scrollbar-width: thin;
    scrollbar-color: #ffe0e0 #fdfbfb;
    border-radius: 4px;
}

::-webkit-scrollbar {
    width: 2px !important;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #ffffff;
    width: 1px
}

::-webkit-scrollbar-thumb {
    background: #bebebe;
    border-radius: 5px
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary)
}

.btn_text {
    position: relative;
}

.btn_text::after {
    content: '';
    position: absolute;
    right: 0px;
    top: 55%;
    width: 7px;
    height: 7px;
    /* border-top: 2px solid currentColor;
    border-right: 2px solid currentColor; */
    transform: translateY(-50%) rotate(45deg);
    transition: all 0.25s ease;
}

/* .btn_text:hover::after {
	right: 12px;
} */

.page_group_tit {
    display: flex;
    align-items: baseline;
    font-size: 20px;
    font-weight: 600;
    line-height: 0;
    height: 45px;
    border-bottom: 2px solid #333;
    width: 320px;
}

.page_group_date_txt {
    font-size: 14px;
    font-weight: 500;
    color: #999;
    line-height: 1;
}

.page_group_part {
    display: flex;
    flex-direction: column;
    font-size: 17px;
    row-gap: 7px;
    /* border-bottom: 1px solid #efefef; */
    padding: 20px 0;
}

.page_part_tit {
    position: relative;
    font-size: 20px;
    color: #000;
    font-weight: 500;
    padding-left: 5px;
    margin-bottom: 5px;
    z-index: 2;
    letter-spacing: -1.5px;
    height: 20px;
}
.page_part_tit::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0px;
    width: 140px;
    height: 20px;
    background-color: #ffffff;
    z-index: -1;
}
.page_part_tit::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 19px;
    width: 240px;
    height: 1px;
    background-color: #efefef;
    z-index: -2;
}

.page_part_tit.on {
    color: #e60012;
}

.page_tit_article {
    max-width: 320px;
    display: flex;
}

.page_part_icon {
    line-height: 1.5;
}

.page_tit_article_tit {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.page_tit_article a {
    color: #000;
    overflow: hidden;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2 !important;
    /* height: 32px; */
    padding-left: 5px;
    display: flex;
    column-gap: 5px;
    font-size: 17px;
    font-weight: 350;
}

.page_tit_article a:hover {
    background-color: #f1f1f1;
    line-height: 1.5;
    padding-left: 5px;
    color: #000 !important;
}

.page_part_tit.active {
    background-color: #ffffff;
    color: #e60012;
}

.page_tit_article a.active {
    background-color: #e60012;
    color: #ffffff;
    width: 100%;
}

.page_tit_article a.active:hover {
    color: #fff !important;
}


/****** 지면 신문 달력 ******/
.new_paper_scachuler_wrap {
    width: 100%;
    display: flex;
    height: 44px;
    justify-content: space-between;
    align-items: center;
    justify-content: center;
    align-items: center;
}

.new_paper_scachuler_tit {
    font-size: 20px;
    font-weight: 600;
    color: #db0303;
}

.hidden_datepicker {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    padding: 0;
    border: none;
    pointer-events: none;
}

.paper_calendar_area {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    user-select: none;
    padding: 0 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    display: flex;
    line-height: 1;
    column-gap: 10px;
}

.paper_calendar_img {
    width: 25px;
    height: 25px;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
}

.paper_calendar_img:hover {
    cursor: pointer;
}

.paper_calendar_control {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.paper_calendar_control button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar_btnbtn:hover .calendar_hover_img {
    filter: brightness(94.5%);
}

/* .paper_calendar_control button:hover {
    background-color: #f5f5f5;
    border-color: #bbb;
    color: #111;
} */

.calendar_btnbtn_next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none; /* 클릭 이벤트 완전히 차단 */
}


/****** 지면 신문 ******/
.paper_wrap_center {
    flex: 1; /* 남은 공간 유연하게 차지 */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #f8f9fa;
    border-right: 1px solid #eee;
    overflow: hidden;
}

.paper_viewer {
    width: 100%;
    /* max-width: 760px; */
    aspect-ratio: 0.70;
    background: #fff;
    /* box-shadow: 0 8px 24px rgba(0, 0, 0, .12); */
    /* padding: 4%; */
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    transition: max-width 0.3s ease;
    /* max-height: 930px; */
    /* max-height: 1025px; */
    height: 100vh;
}

.paper_viewer.paper_view_inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: auto;
    aspect-ratio: 0.70;
    flex-shrink: 0;
}

.paper_viewer.paper_view_inner img {
    user-select: none;
    -webkit-user-drag: none;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
    /* object-fit: scale-down; */
}

/* left 메뉴가 collapsed 상태가 아닐 때 (펼쳐졌을 때) */
.paper_wrap_left:not(.collapsed) ~ .paper_wrap_center_article .paper_wrap_center {
    height: 100%;
}

.paper_wrap_left:not(.collapsed) ~ .paper_wrap_center_article .paper_viewer.paper_view_inner img {
    object-fit: fill;
    width: 100%;
    /* height: 100%; */
}

.hotspot {
    position: absolute;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all .12s ease;
    z-index: 5;
    padding: 0;
    outline: none;
}

.hotspot:hover, .hotspot:focus-visible {
    border: 2px solid #ed0202;
    background: rgba(230, 0, 18, .10);
    box-shadow: 0 0 0 2px rgba(230, 0, 18, .12);
}

.hotspot-label {
    display: none;
    position: absolute;
    left: 6px;
    top: 6px;
    background: #faa8a8;
    color: #fff;
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 2px;
    white-space: nowrap;
}


/****** 지면 상세 기사 ******/
.paper_view_slider_info {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #afafaf;
    color: #fff;
    padding: 8px 5px;
    clear: both;
    bottom: 0;
    position: absolute;
    width: 100%;
}

.paper_wrap_right {
    display: none;
    /* height: 930px; */
    overflow: hidden;
    background-color: #fff;
    padding: 0 10px 0 30px;
    z-index: 10;
    /* height: 100%; */
    /* max-width: 678px; */
    box-sizing: border-box;
    max-height: 930px;
    padding-bottom: 100px;
}

.paper_wrap_center.is_open + .paper_wrap_right,
.paper_wrap_center.is_open ~ .paper_wrap_right {
    display: block;
}

.paper_wrap_right_head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 10px 16px 0;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    flex-shrink: 0;
}

.paper_right_head_tit {
    font-size: 24px;
    font-weight: 500;
    display: flex;
}

.paper_top_head_sub {
    color: #e60012;
    margin-right: 10px;
}

.paper_right_close_btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding-right: 0px;
    color: #333;
}

.paper_right_veiw {
    min-width: 400px;
    /* max-height: 1038px; */
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* justify-content: space-between; */
    /*overflow-y: scroll;*/
    overflow-y: auto;
    background-color: #fff;
    z-index: 11;
    position: relative;
    /* height: 800px; */
    margin-top: 30px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); */
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    margin-top: 30px;
    margin-bottom: 100px;
    box-sizing: border-box;
}

.paper_head_tit {
    font-size: 2.0rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 20px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.paper_head_info {
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    color: #5A5A5A;
    align-items: center;
    row-gap: 10px;
}

.paper_head_journalist {
    position: relative;
    font-weight: 600;
}

.paper_head_journalist::after {
    content: '';
    position: absolute;
    right: -12px;
    border-right: 1px solid #d8d8d8;
    height: 14px;
    top: 2px;
}

.paper_head_date {
    font-weight: 400;
    letter-spacing: -0px;
}

.paper_head_article_link {
    border: 1px solid #d4d4d4;;
    border-radius: 20px;
    height: 22px;
    line-height: 1.5;
}

.paper_head_article_link a {
    color: #fff;
    background-color: #cccccc;
    padding: 2px 12px;
    font-size: 13px;
    overflow: hidden;
    border-radius: 20px;
}

.paper_head_article_link a:hover {
    background-color: #f1f1f1;
    border: 1px solid #d4d4d4;
    overflow: hidden;
    color: #a3a3a3;

}

.paper_view_cont {
    font-size: 17px;
    font-weight: 300;
    color: #000;
    line-height: 1.7;
    padding: 32px 0;
}

.paper_view_cont_txt {
    margin-bottom: 15px;
    height: auto;
    max-height: none;
    white-space: normal;
    word-break: break-all;
    overflow: visible;
}

.paper_view_cont_txt:last-child {
    margin-bottom: 30px;
}

.news_img_wrap {
    margin: 30px;
    text-align: center;
}

.news_img_wrap img {
    max-width: 100%;
    /* height: auto; */
    /* width: 100%; */
    height: auto;
    display: block;
}

.news_caption {
    font-size: 13px;
    color: #777;
    margin-top: 10px;
    line-height: 1.5;
    text-align: center;
}


.slider_track img {
    width: 100%; /* 2개씩 보이기 */
    flex-shrink: 0;
    display: block;
    box-sizing: border-box;
}

.slider_track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
    height: 100%;
}


/* [우측 영역 오픈 상태] .paper_wrap_center에 is_open 클래스가 붙었을 때 -> 이미지 1개 배치 */
.paper_wrap_center.is_open .slider_track img {
    width: 100%; /* 1개씩 보이기 */
    padding: 0;
    object-fit: none;
}

/* 좌우 화살표 버튼 */
.btn_prev,
.btn_next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #cccccc;
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 20px;
    cursor: pointer;
    font-weight: 600;
    z-index: 10;
    /* border-radius: 50%; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn_prev {
    left: 0px;
}

.btn_next {
    right: 0px;
}

.btn_prev:hover,
.btn_next:hover {
    background-color: #bbbbbb;;
    color: #fff;
}

.btn_prev:disabled,
.btn_next:disabled {
    opacity: 1 !important; /* 투명도 제거 */
    cursor: not-allowed;
    background-color: #000000 !important; /* 배경색이 있다면 검은색으로 */
    filter: brightness(94.5%);
}

/* 이미지만 있는 버튼일 경우 필터 등을 통해 검은색으로 보이게 하거나, 
   버튼 자체의 스타일을 제어합니다. 만약 버튼 배경색을 바꾸는 것이라면 아래와 같이 적용하세요. */
.btn_prev:disabled img,
.btn_next:disabled img {
    /* 이미지를 검은색조로 바꾸고 싶을 때 (선택사항) */
    filter: brightness(94.5%);
}

.page_number {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #999999;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
}

.page_number .current {
    color: #000;
}

.page_number .total {
    color: #999999;
}

/* 하단 5개 페이지 번호 버튼 목록 */
.page_btn_wrap {
    display: none;
    /* display: flex; */
    gap: 6px;
    margin-top: 15px;
}

.page_btn_wrap .btn_page {
    width: 36px;
    height: 36px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.page_btn_wrap .btn_page:hover {
    border-color: #000;
    background-color: #f5f5f5;
}

.page_btn_wrap .btn_page.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* 추가 기능: 지면 슬라이드와 기사 상세 */

/* 테두리·패딩을 전체 너비 안에 포함 */
.paper_wrap_center_article,
.paper_wrap_right {
    box-sizing: border-box !important;
}

/* 목록을 접으면 부모 영역이 남은 공간까지 확장 */
.paper_wrap_center_article {
    max-width: none !important;
    flex: 0 1 auto;
}

/* 지면 영역의 축소 허용 */
.paper_wrap_center {
    flex: 1 1 0;
    min-width: 0;
    border-right: 0;
}

/* 각 슬라이드 크기는 JS에서 지정 */
.slider_track > .paper_slide {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

/* 이미지와 맵이 같은 표시 영역을 사용 */
.paper_slide img[usemap] {
    display: block;
    max-width: none;
    padding: 0;
    object-fit: fill !important;
}

.paper_slide .paper_map_layer {
    background-size: 100% 100% !important;
}

/* 목록 펼침 + 기사 상세 열림: 테두리 포함 722px */
.paper_wrap_left:not(.collapsed) ~
.paper_wrap_center_article:has(.paper_wrap_center.is_open) {
    width: 722px;
    min-width: 722px;
    flex: 0 0 722px;
}

/* 상세가 열리면 지면·맵·화살표 숨김 */
.paper_wrap_center.is_open {
    display: none;
}

/* 본문 길이에 관계없이 상세가 부모 내부 전체 사용 */
.paper_wrap_center.is_open ~ .paper_wrap_right {
    display: block;
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
}

.paper_wrap_right .paper_right_veiw {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}


/* 추가 기능: 달력 위치 */

/* 숨겨진 입력을 날짜 표시 영역 아래에 배치 */
.paper_calendar_area {
    position: relative;
}

.paper_calendar_area > #hidden_datepicker {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    bottom: auto;
    width: 1px;
    height: 1px;
    margin: 6px 0 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

#ui-datepicker-div.ui-datepicker {
    z-index: 200 !important;
    margin: 0;
    transform: none;
}


/* 추가 기능: 달력 요일·미발행일 */

/* 일요일 */
#ui-datepicker-div thead th:first-child,
#ui-datepicker-div thead th:first-child span,
#ui-datepicker-div tbody td.paper-sunday a,
#ui-datepicker-div tbody td.paper-sunday span {
    color: #e60012 !important;
}

/* 토요일 */
#ui-datepicker-div thead th:last-child,
#ui-datepicker-div thead th:last-child span,
#ui-datepicker-div tbody td.paper-saturday a,
#ui-datepicker-div tbody td.paper-saturday span {
    color: #1769d2 !important;
}

/* 미발행일: 요일 색상은 유지하고 흐리게 표시 */
#ui-datepicker-div td.paper-unpublished {
    opacity: 0.35;
    cursor: not-allowed;
}


/* 추가 기능: 달력 월 이동 화살표 */

#ui-datepicker-div .ui-datepicker-prev,
#ui-datepicker-div .ui-datepicker-next {
    display: block !important;
    position: absolute;
    top: 2px;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

#ui-datepicker-div .ui-datepicker-prev {
    left: 2px;
}

#ui-datepicker-div .ui-datepicker-next {
    right: 2px;
}

/* 테마 이미지 아이콘 대신 CSS 화살표 사용 */
#ui-datepicker-div .ui-datepicker-prev span,
#ui-datepicker-div .ui-datepicker-next span {
    display: none !important;
}

#ui-datepicker-div .ui-datepicker-prev::after,
#ui-datepicker-div .ui-datepicker-next::after {
    content: "";
    position: absolute;
    top: 9px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
}

#ui-datepicker-div .ui-datepicker-prev::after {
    left: 11px;
    transform: rotate(-135deg);
}

#ui-datepicker-div .ui-datepicker-next::after {
    right: 11px;
    transform: rotate(45deg);
}


/* 기존 작은 화면 규칙 유지 */

@media (max-width: 1080px) {
    .paper_right_veiw {
        max-height: 1400px;
        overflow: hidden;
    }
}