@import url('sub.css'); 
/* Clinical Trials */
:root {
    --clinical_card-margin : 20px;
}

.clinical_card {background-color: #1B334A; position: relative; padding: 50px;}
.clinical_card .bg {position: absolute; width: 100%; height: 100%; opacity: 0.1; left: 0; top: 0;}
.clinical_card .bg img {object-fit: cover; width: 100%; height: 100%; filter: saturate(0);}


.clinical_card .txtbox {position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%;}
.clinical_card .txtbox .catname {color: var(--main); margin-bottom: 10px;}
.clinical_card .txtbox h3 {margin-bottom: var(--clinical_card-margin);}
.clinical_card .txtbox .italic_wrap {margin-bottom: var(--clinical_card-margin);}
.clinical_card .txtbox .italic_wrap p {font-style: italic;}
.clinical_card .txtbox .content {color: var(--white_70); margin-bottom: var(--clinical_card-margin);}
.clinical_card .txtbox .more_wrap {margin-top: var(--clinical_card-margin); display: flex; justify-content: flex-end; flex: 1; align-items: flex-end;}
.clinical_card .txtbox .more_wrap a {max-width: 100%;}

/* 2열 지그재그: 2·3 / 6·7 / 10·11 … */
.clinical_card:nth-of-type(4n+2),
.clinical_card:nth-of-type(4n+3) {background-color: #F26921;}
.clinical_card:nth-of-type(4n+2) .txtbox .catname,
.clinical_card:nth-of-type(4n+3) .txtbox .catname {color: var(--white);}

/* Pipeline */
.pipeline_section:first-child .pipeline_tit {border-top: 1px solid var(--border);}

.pipeline_tit {display: flex; justify-content: space-between; align-items: center; padding: 35px 0; border-bottom: 1px solid var(--border); cursor: pointer; gap: 20px;}
.pipeline_tit_txt {display: flex; gap: 2px 20px; align-items: flex-end; flex-wrap: wrap;}
.pipeline_tit i {display: flex; font-style: normal; color: var(--black); transition: color .4s; flex-shrink: 0;}
.pipeline_tit i::before {font-size: 40px; content: '\e145';}
.pipeline_section.on .pipeline_tit i {color: var(--main);}
.pipeline_section.on .pipeline_tit i::before {content: '\e15b';}

.pipeline_section > article {display: none; padding: 40px 30px; background: var(--grayBg); border-bottom: 1px solid var(--border);}
.pipeline_section .color_info {display: flex; justify-content: flex-end; gap: 30px; margin-bottom: 10px;}
.pipeline_section .color_info dl {display: flex; gap: 10px; align-items: center;}
.pipeline_section .color_info dt {width: 14px; aspect-ratio: 1/1; flex-shrink: 0;}
.pipeline_section .color_info dl:first-child dt {background: var(--main);}
.pipeline_section .color_info dl:last-child dt {background: #1B334A;}

.pipeline_section .table {width: 100%; border-collapse: separate; border-spacing: 0; text-align: center;}
.pipeline_section .table thead th {background-color: var(--basic); padding: 10px; border-right: 1px solid rgba(255, 255, 255, 0.3);}
.pipeline_section .table thead th.border_btm {border-bottom: 1px solid rgba(255, 255, 255, 0.3);}

.pipeline_section .table tbody th,
.pipeline_section .table tbody td {padding: 15px; background-color: var(--white); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);}
.pipeline_section .table tbody td:last-of-type {border-right: none;}
.pipeline_section .table tbody td.percent {padding-left: 0; padding-right: 0; position: relative; vertical-align: middle;}
.pipeline_section .table tbody td.percent > .percent_wrap {position: absolute; inset: 0; display: flex;}
.pipeline_section .table tbody td.percent > .percent_wrap > span:not(.bar) {flex: 1; border-right: 1px solid var(--border);}
.pipeline_section .table tbody td.percent > .percent_wrap > span:not(.bar):last-child {border-right: none;}
.pipeline_section .table tbody td.percent > .percent_wrap > span.bar {position: absolute; left: 0; top: 50%; height: 32px; z-index: 1; border: none; width: calc(var(--bar-w, 0%) - 15px); background-color: var(--main); transform: translateY(-50%) scaleX(0); transform-origin: left center; transition: transform .9s cubic-bezier(0.22, 1, 0.36, 1);}
.pipeline_section .table tbody td.percent > .percent_wrap > span.bar.navy {background-color: #1B334A;}
.pipeline_section .table tbody td.percent > .percent_wrap > span.bar.is-animate {transform: translateY(-50%) scaleX(1);}

.pipeline_section .table tbody td.percent > div span.bar::after {width: 0; height: 0; border-style: solid; border-width: 16px 0px 16px 15px; border-color: transparent transparent transparent var(--main); content: ''; position: absolute; right: 0; top: 0; transform: translateX(100%);}
.pipeline_section .table tbody td.percent > div span.bar.navy::after {border-color: transparent transparent transparent #1B334A;}

.pipeline_section .table tbody td.reference > div {display: flex; gap: 10px; justify-content: center; flex-direction: column; align-items: center;}
.pipeline_section .table tbody td.reference a {flex-shrink: 0; display: flex;}
.pipeline_section .table tbody td.reference a:hover {opacity: 0.4;}
.pipeline_section .table tbody td.reference a.ref_trial svg {height: 16px; width: auto;}

.pipeline_section .more_btn_wrap {margin-top: 30px; display: flex; justify-content: flex-end;}




/* Science Pipeline */
.science_pipeline .tit {margin-bottom: 50px;}
.science_pipeline .pipeline_body {display: flex; gap: 60px; align-items: flex-start;}
.science_pipeline .tab_list {flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: science_tab;}
.science_pipeline .tab {display: flex; align-items: flex-start; gap: 10px; padding: 25px 20px; background-color: var(--grayBg); border: 2px solid var(--grayBg); border-radius: 5px; cursor: pointer; transition: border-color .4s, background-color .4s, color .4s; counter-increment: science_tab;}
.science_pipeline .tab .num {flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background-color: var(--basic); font-size: 14px; color: var(--white); line-height: 1; transition: background-color .4s; font-weight: 700;}
.science_pipeline .tab .num::before {content: counter(science_tab, decimal-leading-zero);}
.science_pipeline .tab .desc {flex: 1; min-width: 0; color: var(--basic); transition: color .4s;}
.science_pipeline .tab.on {background-color: var(--white); border-color: var(--main);}
.science_pipeline .tab.on .num {background-color: var(--main);}
.science_pipeline .tab.on .desc {color: var(--main);}
.science_pipeline .movie_area {flex: 1; min-width: 0; position: relative; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--border); overflow: hidden;}
.science_pipeline .movie_slide {position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s ease; pointer-events: none; z-index: 1;}
.science_pipeline .movie_slide.on {opacity: 1; visibility: visible; pointer-events: auto; z-index: 2;}
.science_pipeline .movie_slide .jarallax {width: 100%; height: 100%;}
.science_single .movie_area .jarallax {width: 100%; height: 100%;}

/* Science 영상 컨트롤 (재생 / 일시정지 / 정지 + 소리) */
.science_video_ctrl {position: absolute; left: 16px; bottom: 16px; z-index: 5; display: flex; gap: 8px;}
.science_video_btn,
.science_sound_btn {display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: var(--white); cursor: pointer; box-sizing: border-box; transition: background 0.3s linear;}
.science_video_btn:hover,
.science_video_btn.on,
.science_sound_btn:hover {background: var(--main);}
.science_video_btn .before_icon,
.science_sound_btn .before_icon {display: block; line-height: 1;}
.science_video_btn .before_icon::before,
.science_sound_btn .before_icon::before {font-size: 22px; color: inherit;}
.science_video_btn.play .before_icon::before {content: '\e037';}
.science_video_btn.pause .before_icon::before {content: '\e034';}
.science_video_btn.stop .before_icon::before {content: '\e047';}
.science_sound_btn {position: absolute; right: 16px; bottom: 16px; z-index: 5;}
.science_sound_btn .before_icon::before {content: '\e04f';}
.science_sound_btn.is-on .before_icon::before {content: '\e050';}

/* .science_pipeline .movie_slide .jarallax iframe {width: 100% !important; height: 100% !important; margin: 0 !important; inset: 0 !important; position: absolute !important; top: 0 !important; left: 0 !important;  transform: none !important;} */


/* Science2 : 순수 YouTube iframe (cover 확대로 가장자리 UI 크롭) */
.science_pipeline .yt_wrap {position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: #000;}
.science_pipeline .yt_iframe {position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; min-width: 177.78%; min-height: 177.78%; border: 0; transform: translate(-50%, -50%) scale(1.2); pointer-events: none;}


/*******************************************************************************
    2026-11-12 수정
*******************************************************************************/
/* Clinical Trials : 파이프라인 Reference 아이콘(#DTK01 등)으로 이동 시 고정 헤더에 카드 윗부분이 가려지지 않게 */
.clinical_card {scroll-margin-top: 125px;}

/* Science : 섹션 제목 + 영상이 한 화면(뷰포트)에 함께 보이도록 영상 최대 크기를 화면 높이에 맞춤 */
.science_single .tit {margin-bottom: 30px;}
.science_single .movie_area {max-width: max(480px, calc((100vh - 230px) * 16 / 9)); margin-left: auto; margin-right: auto;}
/* Science : Pipeline의 Reference 아이콘 클릭하여 #dtk·#cik·#dsc 위치 링크로 들어올 때 고정 헤더(85px)에 제목이 가려지지 않게 */
.science_single {scroll-margin-top: 115px;}



/*******************************************************************************
    @media 1770px
*******************************************************************************/
@media all and (max-width:1770px){

}

/*******************************************************************************
    @media 1500px
*******************************************************************************/
@media all and (max-width:1500px){
/* Science Pipeline */
.science_pipeline .pipeline_body {gap: 40px;}
}

/*******************************************************************************
    @media 1300px
*******************************************************************************/
@media all and (max-width:1300px){
/* Clinical Trials */
.clinical_grid > ul {gap: 15px;}

.clinical_card {padding: 35px;}

/* Science Pipeline */
.science_pipeline .tit {margin-bottom: 40px;}
.science_pipeline .pipeline_body {gap: 30px;}
.science_pipeline .tab {padding: 20px 15px;}

/* Pipeline */
.pipeline_section .table tbody th, .pipeline_section .table tbody td {padding: 10px;}

.pipeline_section .table tbody td.reference > div {gap: 10px;}
}

/*******************************************************************************
    @media 980px
*******************************************************************************/
@media all and (max-width:980px){
/* Clinical Trials */
:root {
    --clinical_card-margin : 15px;
}

.clinical_grid > ul {gap: 10px;}
.clinical_card {padding: 25px;}
.clinical_card .txtbox .catname {margin-bottom: 5px;}

/* Science Pipeline */
.science_pipeline .tit {margin-bottom: 30px;}
.science_pipeline .pipeline_body {flex-direction: column-reverse; gap: 20px;}
.science_pipeline .tab_list {width: 100%;}
.science_pipeline .tab .num {font-size: 13px; width: 30px; height: 30px;}

/* Pipeline */
.pipeline_tit {padding: 25px 0;}
.pipeline_tit_txt {gap: 2px 10px;}
.pipeline_tit i::before {font-size: 30px;}

.pipeline_section article {padding: 30px 20px;}
.pipeline_section .color_info {flex-wrap: wrap; gap: 2px 15px;}
.pipeline_section .color_info dl {justify-content: flex-end; gap: 5px;}

.pipeline_section .article_table {overflow-x: auto; position: relative;}
.pipeline_section .article_table .responsive-dim.show {display: block;}
.pipeline_section .table {width: 842px;}
.pipeline_section .table tbody td.percent > .percent_wrap > span.bar {height: 24px; width: calc(var(--bar-w, 0%) - 10px);}
.pipeline_section .table tbody td.percent > div span.bar::after {border-width: 12px 0px 12px 12px;}

.pipeline_section .more_btn_wrap {margin-top: 20px;}

/*******************************************************************************
    2026-11-12 수정
*******************************************************************************/    
.clinical_card {scroll-margin-top: 95px;}
.science_single .tit {margin-bottom: 20px;}
.science_single .movie_area {max-width: none;}
.science_single {scroll-margin-top: 78px;}
}

/*******************************************************************************
    @media 768px
*******************************************************************************/
@media all and (max-width:768px){
/* Clinical Trials */    
.clinical_grid > ul {grid-template-columns: 1fr;}
/* 1열에서는 짝수 교대 */
.clinical_card:nth-of-type(4n+2),
.clinical_card:nth-of-type(4n+3) {background-color: #1B334A;}
.clinical_card:nth-of-type(4n+2) .txtbox .catname,
.clinical_card:nth-of-type(4n+3) .txtbox .catname {color: var(--main);}
.clinical_card:nth-of-type(even) {background-color: #F26921;}
.clinical_card:nth-of-type(even) .txtbox .catname {color: var(--white);}
}

/*******************************************************************************
    @media 680px
*******************************************************************************/
@media all and (max-width:680px){
/* Clinical Trials */
:root {
    --clinical_card-margin : 10px;
}

.clinical_card {padding: 20px;}

/* Science Pipeline */
.science_pipeline .tit {margin-bottom: 20px;}
.science_pipeline .tab {padding: 15px 12px; gap: 8px;}
.science_pipeline .tab .num {width: 24px; height: 24px; font-size: 11px;}
.science_video_ctrl {left: 12px; bottom: 12px; gap: 6px;}
.science_sound_btn {right: 12px; bottom: 12px;}
.science_video_btn,
.science_sound_btn {width: 40px; height: 40px;}
.science_video_btn .before_icon::before,
.science_sound_btn .before_icon::before {font-size: 20px;}

/* Pipeline */
.pipeline_section .table {width: 700px;}
.pipeline_section .table tbody td.reference > div {flex-direction: column; align-items: center;}

.pipeline_section .color_info {justify-content: flex-start;}
.pipeline_section .color_info dl {align-items: flex-start; width: 100%; justify-content: flex-start;}
.pipeline_section .color_info dl dt {width: auto; height: 23px; aspect-ratio: unset; display: flex; align-items: center; background: transparent !important;}
.pipeline_section .color_info dl dt::before {content: ''; width: 14px; aspect-ratio: 1/1;}
.pipeline_section .color_info dl:first-of-type dt::before {background-color: var(--main);}
.pipeline_section .color_info dl:last-of-type dt::before {background-color: #1B334A;}
}
