@charset "utf-8";

/* 연구보고서 페이지 */
/* research_list */
.report_list {
    position: relative;
    width: 100%;
}

.report_list .report_list_wrap {
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: column;
}

.report_list .report_list_wrap>li:first-of-type {
    border-top: 2px solid #000;
}

.report_list .report_list_wrap>li {
    border-bottom: 1px solid #dbdbdb;
    display: flex;
    padding: 20px 0;
    flex-direction: column;
    flex-direction: row;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.e-bookimg {
    position: relative;
    width: 150px;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dbdbdb;
}

.e-bookimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.e-bookimg .noimg_box {
    display: none;
}

.e-bookimg.noimg .noimg_box {
    display: block;
    position: relative;
    height: 100%;
    min-height: 200px;
    width: 100%;
    border: 1px solid #dbdbdb;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.e-bookimg.noimg .noimg_box img {
    width: 50px;
    height: 50px;
}

.info_wrap {
    display: flex;
    width: 100%;
    gap: 15px;
    flex: 1;
    flex-direction: column;
}

.info_wrap .info_status .title {
    font-size: 1.2rem;
    font-weight: 700;
}

.info_wrap .info_status .title a {
    margin-top: 5px;
    display: inline-block;
}

/* 링크 호버: 은은한 밑줄 애니메이션 */
.info_wrap .info_status .title a {
    position: relative;
    color: #151329;
    text-decoration: none;
}

.info_wrap .info_status .title:not(.txt_cut2) a:not(.txt_cut2)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: var( --color-forest-green);
    transition: width .25s ease;
}

.info_wrap .info_status .title:not(.txt_cut2) a:not(.txt_cut2):hover::after,
.info_wrap .info_status .title:not(.txt_cut2) a:not(.txt_cut2):focus-visible::after {
    width: 100%;
}

.info_wrap .info_status .title a:hover {
    color: #151329;
}

.info_wrap .info_status .title a:focus-visible {
    outline: none;
}

/* txt_cut2(멀티라인 클램프) 적용 시: 배경 그라디언트로 밑줄 처리 (overflow 영향 없음) */
.info_wrap .info_status .title a.txt_cut2 {
    background-image: linear-gradient(#B9E300, #B9E300);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 2px;
    transition: background-size .25s ease;
}

.info_wrap .info_status .title a.txt_cut2:hover,
.info_wrap .info_status .title a.txt_cut2:focus-visible {
    background-size: 100% 2px;
}

/* 부모가 txt_cut2인 경우도 동일 처리 */
.info_wrap .info_status .title.txt_cut2 a {
    background-image: linear-gradient(#B9E300, #B9E300);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 2px;
    transition: background-size .25s ease;
}

.info_wrap .info_status .title.txt_cut2 a:hover,
.info_wrap .info_status .title.txt_cut2 a:focus-visible {
    background-size: 100% 2px;
}

.info_text {
    width: 100%;
    position: relative;
}

.info_text>ul {
    display: flex;
    flex-direction: column;
}

.info_text>ul>li {
    display: flex;
    align-items: center;
}

.info_text>ul>li span {
    color: #999;
    font-size: 0.85rem;
    width: 80px;
}

.info_text>ul>li p {
    width: calc(100% - 80px);
}

.report_btn_wrap {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.report_btn_wrap button {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    padding: 10px 20px;
    justify-content: center;
    gap: 7px;
    position: relative;
    overflow: hidden;
  	align-items: center;
}

.report_btn_wrap button.btn_view::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-image:
        url("/static/assets/ic_search_white.svg"),
        linear-gradient(rgba(0, 0, 0, .50), rgba(0, 0, 0, .45));
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    background-size: 22px 22px, 100% 100%;
    opacity: 0;
    transition: opacity .22s ease, background-size .22s ease;
    z-index: 2;
    pointer-events: none;
}

.report_btn_wrap button.btn_download:hover {
    text-decoration: underline;
}

.report_btn_wrap button.btn_view:hover::before,
.report_btn_wrap button.btn_view:focus-visible::before {
    opacity: 1;
    transition: all .2s ease-in;
    background-size: 25px 25px, 100% 100%;
    /* 아이콘만 확대, 배경은 고정 */
}

.report_btn_wrap .btn_view::after {
    content: "";
    display: block;
    width: 15px;
    height: 20px;
    background: url("/static/assets/ic_search.svg") no-repeat center center / contain;
    position: relative;
    z-index: 0;
    /* 오버레이보다 아래 */
}

.report_btn_wrap .btn_download::after {
    content: "";
    display: block;
    width: 12px;
    height: 20px;
    background: url("/static/assets/ic_download.svg") no-repeat center center / contain;
    position: relative;
    z-index: 0;
    /* 오버레이보다 아래 */
}


@media screen and (max-width: 768px) {
    .e-bookimg {
        display: none;
    }

    .report_list .report_list_wrap>li {
        flex-direction: column;
        align-items: flex-start;
    }

    .report_btn_wrap {
        flex-direction: row;
    }

    .info_wrap .info_status .title a {
        font-size: 1rem;
    }

    .info_wrap {
        gap: 10px;
    }

    .research_btn_wrap button {
        padding: 5px 10px;
    }
}

@media screen and (max-width: 768px) {
    .report_list .report_list_wrap>li {
        padding: 15px 0;
    }

    .info_text>ul>li {
        gap: 5px;
        align-items: flex-start;
    }

    .info_wrap {
        gap: 10px;
    }

    .report_list .report_list_wrap>li {
        gap: 15px;
    }
}

@media screen and (max-width: 450px) {
    .info_text>ul>li span {
        width: 50px;
    }

    .info_text>ul>li p {
        width: calc(100% - 50px);
    }
}

/* 상세 페이지 css */
/* report_detail_wrap */
.report_detail_wrap {
    display: flex;
    position: relative;
    width: 100%;
    flex-direction: column;
    gap: 20px;
}

.report_detail_wrap .report_title {
    font-size: 1.25rem;
    text-align: center;
}

.report_detail_wrap .report_two_btn {
    display: flex;
    gap: 5px;
  	margin-left: auto;
}

.report_book {
    position: relative;
    width: 100%;
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.report_book .report_book_bg {
    min-height: 50px;
    border-radius: 10px;
    position: relative;
    width: 100%;
    flex: 1;
    background-color: #FFCE31;
    grid-template-columns: 200px 1fr 200px;
}

.report_book .report_book_bg .ebook_box {
    min-height: 200px;
}

.report_book button.report_book_next,
.report_book button.report_book_prev {
    width: 50px;
    position: absolute;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 100;
}

.report_book button.report_book_next {
    right: 20px;
    background: url("/static/assets/ic_next_line_black.svg") no-repeat center center;
    background-color: #dbdbdb;
    background-size: 15px;
}

.report_book button.report_book_prev {
    left: 20px;
    background: url("/static/assets/ic_prev_line_black.svg") no-repeat center center;
    background-color: #dbdbdb;
    background-size: 15px;
}

/* report_prev_wrap */
.report_list_btn {
    width: 150px;
    padding: 15px;
    border: 1px solid #FFF2C8;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0px 10px rgba(255, 242, 200, 0.5);
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.report_list_btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 0px 15px rgba(255, 242, 200, 1);
}

.report_list_btn p {
    font-size: 0.85rem;
    position: relative;
}

.report_list_btn.prev {
    text-align: left;
}

.report_list_btn.next {
    text-align: right;
}

.report_list_btn.prev p {
    padding-left: 20px;
}

.report_list_btn.next p {
    padding-right: 20px;
}

.report_list_btn.prev p::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 10px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: url(/static/assets/ic_arrow_left_line_gray.svg)50% 50% no-repeat;
    background-size: contain;
}

.report_list_btn.next p::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 10px;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: url(/static/assets/ic_arrow_right_line_gray.svg)50% 50% no-repeat;
    background-size: contain;
}

/* report_btn_wrap_detail */
.report_btn_wrap_detail {
    display: flex;
    gap: 10px;
  	padding: 10px 20px 0 10px;
    align-items: center;
}

.report_btn_wrap_detail .btn_gray_line {
    display: flex;
    align-items: center;
    gap: 5px;
  	font-size: var(--fs-16);
    padding: 10px 15px;
}
.report_btn_wrap_detail .file span {
    width: 50px;
    height: 50px;
}

.report_btn_wrap_detail .btn_wrap button {
    display: flex;
    gap: 5px;
    position: relative;
    align-items: center;
    padding: 10px 20px;
}

.report_btn_wrap_detail .btn_download::after {
    content: '';
    display: block;
    width: 15px;
    height: 15px;
    background: url("/static/assets/ic_download.svg") no-repeat center center;
}

.report_btn_wrap_detail .report_two_btn .btn_one::before {
    content: '';
    display: block;
    width: 50px;
    height: 65px;
    background: url("/cmm/file/seeImage?atchFileId=FILE_000000000002584&fileSn=0") no-repeat center center;
    background-size: 45px;
}

.report_btn_wrap_detail .report_two_btn .btn_two::before {
    content: '';
    display: block;
    width: 50px;
    height: 65px;
    background: url("/cmm/file/seeImage?atchFileId=FILE_000000000002585&fileSn=0") no-repeat center center;
    background-size: 45px;
}

/* 공통에 넣어야할듯 가운데 정렬일때 버튼 스타일이에요 */
.btn_wrap.among {
    width: 100%;
    display: flex;
}

.btn_wrap.among button {
    margin: 0 auto;
}

/* ebook 확대 모드 */
.ebook_box.fullscreen-mode {
    background: rgb(237 237 237);
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
}

.ebook_box.fullscreen-mode .wrapper {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease-out;
}

.wrapper {
    backface-visibility: hidden;
    transform-style: preserve-3d;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    will-change: transform;
}

.page-notice {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    opacity: 1;
    transition: opacity 1s ease;
    z-index: 100;
}

.page-notice.fade-outNotice {
    opacity: 0;
}

.page-noticeScale1 {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.75);
    color: #131313;
    font-size: 14px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity 1s ease-out, transform 0.5s ease-out;
    z-index: 100;
}

.fade-outScale1 {
    opacity: 0;
    transform: translate(-50%, 30px);
}

.zoom-controls {
    position: fixed;
    top: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
}

.zoom-controls button {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.zoom-controls button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.zoom-controls {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 16px;
}

.zoom-controls button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.zoom-level {
    min-width: 48px;
    text-align: center;
    font-size: 15px;
}

.page-counter {
    position: fixed;
    bottom: 24px;
    right: 28px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.8);
    background: rgba(255, 255, 255, 0.65);
    border-radius: 6px;
    padding: 6px 10px;
    backdrop-filter: blur(8px);
    z-index: 200;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: 0.6 ease;
    cursor: pointer;
}

.page-counter:hover {
    transform: scale(1.03);
}

.page-counter-input {
    width: 50px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    border: none;
    background: transparent;
    outline: none;
    color: #000;
    margin-left: 4px;
}

.page-counter-input:focus {
    outline: none;
    box-shadow: none;
}


.resume-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.resume-overlay.show {
    opacity: 1;
}

.resume-dialog {
    background: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.resume-buttons {
    margin-top: 15px;
}

.resume-buttons button {
    margin: 0 10px;
    padding: 6px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.resume-yes {
    background: #4CAF50;
    color: white;
}

.resume-no {
    background: #aaa;
    color: white;
}

.resume-yes:hover {
    background: #43A047;
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.35);
}

.resume-no:hover {
    background: #888;
    box-shadow: 0 3px 8px rgba(136, 136, 136, 0.35);
}

.bookmark-btn {
    position: absolute;
    top: -1.5px;
    width: 7px;
    height: 7px;
    background: url("/static/assets/bookMark.png") no-repeat center/contain;
    border: none;
    background-color: transparent;
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
    z-index: 100;
}

.bookmark-btn.left {
    left: calc(25%);
}

.bookmark-btn.right {
    right: calc(25%);
}

.bookmark-btn:hover {
    transform: scale(0.95);
}

.bookmark-btn:focus {
    outline: none;
    box-shadow: none;
}

.ebook_box:not(.fullscreen-mode) .bookmark-btn {
    display: none;
}

.bookmark-btn.center {
    position: absolute;
    top: -1.5px;
    left: 50%;
    transform: translateX(-50%);
    width: 7px;
    height: 7px;
    background: url("/static/assets/bookMark.png") no-repeat center/contain;
    border: none;
    background-color: transparent;
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.2s ease;
    z-index: 100;
}

.bookmark-btn.center:hover {
    transform: translateX(-50%) scale(0.95);
}

.bookmark-btn.active {
    background: url("/static/assets/bookMark_on.png") no-repeat center/contain;
    opacity: 0.6;
}

.ebook-toolbar {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 8px;
    padding: 10px 20px;
    display: flex;
    gap: 14px;
    transition: bottom 0.6s ease;
    z-index: 120;
}

.ebook-toolbar.show {
    bottom: 5px;
}

.toolbar-btn {
    border: none;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.toolbar-btn:focus {
    outline: none;
    box-shadow: none;
}

.sidebar-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 40px;
}

.bookmark-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid black;
}

.bookmark-title-wrap h3 {
    margin: 0;
    font-size: 1.2em;
    padding-bottom: 6px;
    width: 100%;
}

.delete-all-bookmarks {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    margin-left: 8px;
}

.delete-all-bookmarks img {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.delete-all-bookmarks:hover img {
    transform: scale(1.05);
}

.delete-all-bookmarks:focus {
    outline: none;
    box-shadow: none;
}


.ebook-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 98%;
    background: rgba(255, 255, 255, 0.9);
    color: black;
    padding: 20px;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.3);
    transition: left 0.5s ease;
    z-index: 110;
    overflow-y: auto;
    margin: 10px;
    border-radius: 5px;
}

.close-sidebar img {
    width: 22px;
    height: 22px;
    display: block;
    transition: transform 0.6s ease;
}

.close-sidebar:hover {
    transform: scale(1.05);
}

.close-sidebar:focus {
    outline: none;
    box-shadow: none;
}

.ebook-sidebar.show {
    left: 0;
}

.bookmark-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bookmark-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background 0.2s;
}

.bookmark-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.bookmark-thumb {
    width: 90px;
    height: 110px;
    object-fit: fill;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.bookmark-info span {
    font-size: 0.9em;
    color: #333;
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.brightness-panel {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 80%;
    transform: translateX(-50%) scale(0.95);
    width: 80px;
    height: 200px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 105;
    opacity: 0;
    transition: all 0.25s ease;
    pointer-events: none;
}

.brightness-panel.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}

.brightness-track {
    position: relative;
    width: 60px;
    height: 180px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    cursor: pointer;
}

.brightness-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
}

.brightness-handle {
    position: absolute;
    left: 0;
    transform: translateY(50%);
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.95);
}

.brightness-handle:hover {
    background: rgba(255, 255, 255, 1);
}

.brightness-icon {
    position: absolute;
    bottom: 25px;
    left: 52%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    opacity: 0.9;
    pointer-events: none;
}




/* ebook 확대 모드 끝*/


@media screen and (max-width: 1550px) {
    .report_list_btn {
        width: 150px;
    }
}

@media screen and (max-width: 1024px) {
    .report_list_btn {
        width: 100px;
        padding: 15px;
    }
     #fullScreenMode {
        display: none;
    }
}

@media screen and (max-width: 768px) {
  
  	.report_detail_wrap .report_two_btn {
  		display: none;
  	}
    .report_btn_wrap_detail .btn_download {
        padding: 5px;
    }

    .report_list_btn {
        padding: 10px;
        width: 100%;
    }

    .report_detail_wrap {
        gap: 10px;
    }

    .report_two_btn .btn_one::before {
        background-size: 40px;
    }

    .report_two_btn .btn_two::before {
        background-size: 40px;
    }

    .report_detail_wrap .report_two_btn {
        gap: 0;
    }

    .report_btn_wrap_detail {
        padding: 10px;
    }

    .report_book button.report_book_next,
    .report_book button.report_book_prev {
        width: 30px;
        height: 30px;
    }

    .report_book button.report_book_prev {
        left: 10px;
        background-size: 10px;
    }

    .report_book button.report_book_next {
        background-size: 10px;
        right: 10px;
    }

    .report_btn_wrap_detail .btn_wrap button {
        padding: 5px 10px;
    }

    .report_btn_wrap_detail .report_two_btn .btn_one::before,
    .report_btn_wrap_detail .report_two_btn .btn_two::before {
        width: 35px;
        height: 40px;
        background-size: 35px;
    }
  .report_book {
  		flex-direction: column;
  	}
}