﻿html, body {
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    overscroll-behavior-y: none;
}

.main-container {
    height: 100vh;
    overflow: hidden;
    position: relative;
    transition: opacity 0.2s ease-in-out;
}
/* ==========================================================================
   1. MAIN SECTION
   ========================================================================== */
.main_section {
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out 0.5s;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none; /* 섹션별로도 적용 */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.main_section.zoom-out {
    transform: scale(1);
}

/* 스크롤바 숨기기 (모든 섹션) */
.main_section::-webkit-scrollbar {
    display: none;
}


/*.main_section:nth-child(5) {*/
/*    background-color: #fff;*/
/*    max-height: calc(100% + 240px);*/
/*}*/

.main_inner{
    margin:0 auto;
    max-width:1620px;
    position: relative;
    padding:0 40px;
    height:100%;
    box-sizing: border-box;
}

/* -----------------------------------------
   section1
----------------------------------------- */

#section1{
    /* 정적 포스터 이미지 제거: 애니메이션 로드 전에는 어두운 배경만 노출(애니메이션 배경색과 동일).
       기존 BG_Main.webp 포스터가 처음에 깜빡이지 않도록 함. */
    background: #02070b;
    transform: scale(1.2) translateY(0%);
    z-index:999
}

/* 히어로 배경 애니메이션 (iframe) — 기존 webp 포스터 위, 텍스트 아래에 깔린다.
   준비 완료(#section1.hero-ready) 전까지 opacity:0 으로 숨겨 placeholder 노출을 방지. */
#section1 .hero-anim{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
}

#section1.hero-ready .hero-anim{
    opacity: 1;
}

#section1 .main_inner{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    z-index: 1; /* 텍스트가 배경 애니메이션 위에 오도록 */
}

.sect1-1 {
    opacity: 0;
    transform: translateY(-200px);
    transition: opacity 0.4s ease, transform 0.5s ease;
    font-size: 48px;
    line-height:68px;
}

.sect1-1.animated {
    opacity: 1;
    transform: translateY(0);
}

.sect1-2{
    margin-top:40px;
    font-size:24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sect1-2.animated {
    opacity: 1;
}

@media (max-width: 1024px) {
    #section1{
        height:100vh !important;
        min-height:576px;
        background-size: 1200px;
        background-color:#00090F;
    }

    .sect1-1{
        font-size:40px;
        line-height:56px;
    }

    .sect1-1 .mb-br{
        display:none;
    }

    .sect1-2{
        font-size:20px;
    }
}
@media (max-width: 768px) {
    #section1{
        height:740px !important;
        min-height:auto !important;
        background-position-x: 72%;
        background-position-y: 280px;
        background-size: 810px;
    }

    #section1 .main_inner{
        padding-top:120px;
        align-items:flex-start;
    }

    .sect1-1{
        font-size:36px;
    }

    .sect1-1 .mb-br{
        display:block;
    }

    .sect1-2{
        width: 238px;
        word-break: keep-all;
        margin-top:24px;
        font-size:14px;
    }

    .sect1-2 br{
        display:none;
    }
}
/* -----------------------------------------
   section2
----------------------------------------- */
#section2{
    background-image: url(/assets_homepage/images/main/section2_bg1.png);
    background-size: cover;
    background-position: center;
}

.bg_layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

/* 3. 각 레이어별 이미지 지정 (여기서 이미지가 미리 로딩됨) */
.bg_layer.bg_01 { background-image: url('/assets_homepage/images/main/BG_Hospital.webp'); }
.bg_layer.bg_02 { background-image: url('/assets_homepage/images/main/BG_Pharmacy.webp'); }
.bg_layer.bg_03 { background-image: url('/assets_homepage/images/main/BG_Media.webp'); }
.bg_layer.bg_04 { background-image: url('/assets_homepage/images/main/BG_Healthcare.webp'); }


#section2 .main_inner{
    position:relative;
    z-index:2;
    padding:84px 0 0 0;
}


.main_sec02 {
    padding:0 40px;
    height:100%;
    display: flex;
    box-sizing: border-box;
}

.main_sec02 .item{
    padding:0 10px;
    width: 33.33%;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    align-content: center;
    text-align: center;
    color: #fff;
}

.main_sec02 .item:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.main_sec02 .item .item_inner{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.main_sec02 .item .item_inner .item_tit{
    display:flex;
    align-items: center;
    justify-content: center;
    gap:10px;
    margin-bottom: 0;
    transition: all 0.4s ease;
}

.main_sec02 .item .item_inner .item_tit strong{
    font-size:32px;
    font-weight:bold;
}

.main_sec02 .item .item_inner p{
    font-size:20px;
    line-height:32px;
}

.main_sec02 .item .item_inner button{
    display:flex;
    align-items: center;
    justify-content: center;
    gap:4px;
    width:160px;
    height:40px;
    border-radius:25px;
    background:transparent;
    border:1px solid rgba(255, 255, 255, 0.5);
    font-size:20px;
    font-weight:bold;
    color:#fff;
    cursor:pointer;
    box-sizing: border-box;
    transition:all 0.3s ease;
}

.main_sec02 .item .item_inner p,
.main_sec02 .item .item_inner button {
    max-height: 0;
    margin-bottom: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-out;
}

/* GROUP2 애니메이션 */
.sect2-1, .sect2-2, .sect2-3, .sect2-4 {
    opacity: 0;
    transform: translateY(-100px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.sect2-1.animated, .sect2-2.animated, .sect2-3.animated, .sect2-4.animated {
    opacity: 1;
    transform: translateY(0);
}


.main_sec02 .cnt_btn01 {
    border-radius: 20px 0 0 20px;
    border: 1px solid #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 10px 5px 10px;
    width: 90px;
    cursor: pointer;
}

.main_sec02 .cnt_btn01:hover {
    background: rgba(255, 255, 255, 0.4);
}


.main_sec02 .cnt_btn02 {
    border-radius: 0 20px 20px 0;
    border: 1px solid #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 10px 5px 10px;
    width: 90px;
    cursor: pointer;
    margin-left: -1px;
}

.main_sec02 .cnt_btn02:hover {
    background: rgba(255, 255, 255, 0.4);
}

@media (min-width: 1024px) {
    .main_sec02 .item:hover .item_tit {
        margin-bottom: 40px;
    }

    .main_sec02 .item:hover p{
        margin-bottom:40px;
    }

    .main_sec02 .item:hover p,
    .main_sec02 .item:hover button {
        max-height: 200px;
        opacity: 1;
        transform: translateY(0);
    }

    .main_sec02 .item .item_inner button:hover{
        background:rgba(255, 255, 255, 0.2);
    }

    #section2:has(.item1:hover) .bg_layer.bg_01 {
        opacity: 1;
    }

    /* sect2-2(약국)에 호버하면 -> bg_02의 투명도를 1로 */
    #section2:has(.item2:hover) .bg_layer.bg_02 {
        opacity: 1;
    }

    /* sect2-3(미디어) */
    #section2:has(.item3:hover) .bg_layer.bg_03 {
        opacity: 1;
    }

    /* sect2-4(헬스케어) */
    #section2:has(.item4:hover) .bg_layer.bg_04 {
        opacity: 1;
    }
}

/* 반응형 적용 */
@media (max-width: 1024px) {
    #section2 .main_inner{
        padding:0;
    }

    .main_sec02 {
        display: flex;
        flex-direction: column;
        padding:0;
    }

    .main_sec02 .item:nth-child(1) { background-image: url('/assets_homepage/images/main/section2_bg1.png'); }
    .main_sec02 .item:nth-child(2) { background-image: url('/assets_homepage/images/main/section2_bg2.png'); }
    .main_sec02 .item:nth-child(3) { background-image: url('/assets_homepage/images/main/section2_bg3.png'); }
    .main_sec02 .item:nth-child(4) { background-image: url('/assets_homepage/images/main/section2_bg4.png'); }

    .main_sec02 .item{
        border:none;
        width:100%;
        padding:66px 120px;
        text-align:left;
        background-size:100%;
        background-position: center;
    }

    .main_sec02 .item .item_inner{
        position:relative;
        align-items:flex-start;
    }

    .main_sec02 .item .item_inner .item_tit img{
        width:36px !important;
    }

    .main_sec02 .item .item_inner .item_tit strong{
        font-size: 28px;
    }

    .main_sec02 .item .item_tit {
        margin-bottom: 20px  !important;
    }

    .main_sec02 .item p{
        margin-bottom:0 !important;
    }

    .main_sec02 .item p .pc-br{
        display:none;
    }

    .main_sec02 .item p,
    .main_sec02 .item button {
        max-height: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .main_sec02 .item .item_inner button{
        position:absolute;
        top:0;
        right:0;
        width:36px;
        height:36px;
        border-radius:50%;
        background:transparent;
    }

    .main_sec02 .item .item_inner button span{
        display:none;
    }
}

@media (max-width:768px) {
    .main_sec02 .item{
        padding:42px 20px;
    }

    .main_sec02 .item .item_inner .item_tit strong{
        font-size:18px;
    }

    .main_sec02 .item .item_inner p{
        line-height:20px;
        font-size:14px;
    }
}

/* -----------------------------------------
   section3
----------------------------------------- */
.main_section:nth-child(3) {
    background-color: #000;
}

#section3{
    background-image: url(/assets_homepage/images/main/section3_bg.gif);
    background-size:cover;
}

#section3 .cont_top{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

#section3 .cont_top p{
    margin-bottom:56px;
    text-align:center;
    font-size:40px;
    font-weight:400;
    color:#fff;
}
#section3 .cont_top p strong{
    font-weight:800;
}

#section3 .cont_top button{
    margin-bottom:56px;
    height:54px;
    padding:0 40px;
    border-radius:200px;
    font-size:18px;
    font-weight:700;
}


.main_sec03 {
    height: 100%;
    margin: 0 auto;
    align-content: center;
}

.main_sec03 .cont {
    display: flex;
    justify-content: center;
    align-content: center;
    text-align: center;
    color: #fff;
}

.main_sec03 .cont li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap:48px;
    width:33.33%;
    height: 216px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.main_sec03 .cont li:last-child {
    gap: 20px;
    border-right: 0;
}

.main_sec03 .cont li .counter_wrap{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
}

.main_sec03 .cont li .counter_wrap .number{
    display:block;
    font-size:72px;
    font-weight:800;
}

.main_sec03 .cont li .counter_wrap .plus{
    display:block;
    font-size:72px;
    color:#F57E1F;
}

.main_sec03 .cont li .counter_txt{
    font-size:28px;
    font-weight:600;
}


/* 반응형 적용 */
@media (max-width: 1024px) {
    #section3{
        background-size:100%;
        background-color:#000;
        background-position:center;
        background-repeat: no-repeat;
    }

    .main_sec03 {
        padding-top:112px;
        padding-bottom:25px;
    }

    #section3 .cont_top p{
        margin-bottom:48px;
        font-size:36px;
    }

    #section3 .cont_top button{
        margin-bottom:30px;
        height:48px;
        font-size:16px;
    }


    .main_sec03 .cont {
        display: flex;
        flex-direction: column;
    }

    .main_sec03 .cont li {
        display:flex;
        flex-direction: row-reverse;
        gap:20px;
        width:100%;
        height:auto;
        padding: 60px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
        border-right: 0;
    }

    .main_sec03 .cont li:last-child {
        border-bottom: 0;
    }

    .main_sec03 .cont li .counter_txt{
        width:200px;
        font-size:24px;
    }
}
@media (max-width: 768px) {
    .main_sec03{
        padding-top:72px;
    }

    #section3 .cont_top p{
        margin-bottom:32px;
        font-size:24px;
    }

    .main_sec03 .cont li{
        padding:32px 0;
    }

    .main_sec03 .cont li .counter_txt{
        font-size:22px;
    }

    .main_sec03 .cont li .counter_wrap .number,
    .main_sec03 .cont li .counter_wrap .plus{
        font-size:36px;
    }

    .main_sec03 .cont li .counter_wrap img{
        width:80px;
    }

    .main_sec03 .cont li .counter_wrap,
    .main_sec03 .cont li .counter_txt{
        width:152px;
    }

    #section3 .cont_top button{
        height: 36px;
        padding: 0 24px;
        font-size: 14px;
    }
}
@media (max-width: 320px) {
    #section3 .cont_top p{
        font-size:20px;
    }
    .main_sec03 .cont li .counter_wrap .number{
        font-size:33px;
    }
}
/* -----------------------------------------
   section4
----------------------------------------- */
.main_section:nth-child(4) {
    background-color: #F7F7F7;
}

/* 섹션4 우측 갤러리 반응형 시작 */
#section4 .visual-section {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    height:100%;
    overflow: hidden; /* 전체 섹션 기준 */
    margin: 0 auto;
    flex-wrap: wrap;
}

#section4 .text-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height:100%;
}

#section4 .text-wrap h3{
    margin-bottom:48px;
}


#section4 .text-wrap .intro-btn {
    height: 54px;
    padding: 0 40px;
    background: black;
    color: white;
    border: none;
    border-radius: 100px;
    font-size:18px;
    font-weight:700;
    cursor: pointer;
}

#section4 .gallery-wrap2 {
    overflow: hidden;
    position: relative;
    margin-right: 120px;
}

#section4 .gallery-grid2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    position: relative;
}

#section4 .js-marquee{
    margin-bottom:24px !important;
}

#section4 .card {
    position: relative;
    width: 210px;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #ddd;
    background-size:cover;
    background-position:center;
}

#section4 .card:nth-child(even) {
    margin-top: 80px;
    margin-bottom: -80px;
}

#section4 .card:after{
    display:block;
    content:"";
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.3);
}

#section4 .card span{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    font-size:22px;
    font-weight:600;
    color:#fff;
}


/*.card:nth-child(1) {*/
/*    --offset: -60px;*/
/*}*/

/*.card:nth-child(2) {*/
/*    --offset: 20px;*/
/*}*/

/*.card:nth-child(3) {*/
/*    --offset: -50px;*/
/*}*/

/*.card:nth-child(4) {*/
/*    --offset: 30px;*/
/*}*/

/*.card:nth-child(5) {*/
/*    --offset: -40px;*/
/*}*/

/*.card:nth-child(6) {*/
/*    --offset: 40px;*/
/*}*/

/*.card:nth-child(7) {*/
/*    --offset: -30px;*/
/*}*/

/*.card:nth-child(8) {*/
/*    --offset: 50px;*/
/*}*/

/*.card:nth-child(9) {*/
/*    --offset: -20px;*/
/*}*/

/*.card:nth-child(10) {*/
/*    --offset: 60px;*/
/*}*/

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 갤러리 컨테이너 (마스크 역할) */
.mb-gallery-wrap {
    display:none;
    width: 100%;
    overflow: hidden; /* 넘치는 부분 숨김 */
    padding: 20px 0;
}

/* 움직이는 트랙 */
.mb-gallery-track {
    display: flex;
    width: max-content; /* 내용물만큼 넓이 확보 */
    gap: 24px; /* 카드 사이 간격 */
    will-change: transform; /* 성능 최적화 */
}

.mb-gallery-wrap:nth-child(2) .mb-gallery-track {
    margin-left: -106px;
}

/* 카드 스타일 (이미지의 둥근 모양 구현) */
.mb-card {
    width: 200px;  /* 이미지상의 직사각형 비율 고려 */
    height: 200px;
    border-radius: 24px; /* 둥근 모서리 */
    overflow: hidden;
    flex-shrink: 0; /* 찌그러짐 방지 */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* 살짝 그림자 */
    position: relative;
    background-color: #ddd;
    background-size:cover;
    background-position:center;
}



.mb-card:after{
    display:block;
    content:"";
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.3);
}

.mb-card span{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    font-size:22px;
    font-weight:600;
    color:#fff;
}

/* [핵심] 무한 스크롤 애니메이션 정의 */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* 전체 길이의 절반만큼 이동 */
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* 애니메이션 적용 클래스 */
.animate-scroll {
    animation: scroll-left 30s linear infinite;
}

/* 반대 방향 (필요시 사용) */
.animate-scroll-reverse {
    animation: scroll-right 30s linear infinite;
}

/* 마우스 올리면 멈추기 (선택사항) */
/*.mb-gallery-wrap:hover .mb-gallery-track {*/
/*    animation-play-state: paused;*/
/*}*/




/* 반응형 */
@media (max-width: 1024px) {
    .gallery-wrap2{
        display:none;
    }

    #section4 .visual-section {
        margin:0 -40px;
        padding: 64px 0;
        flex-direction: column;
        gap:0;
    }

    #section4 .text-wrap {
        margin-bottom:120px;
        padding:0 40px;
        text-align: left;
    }

    #section4 .text-wrap h3{
        font-size:32px;
    }

    #section4 .text-wrap h3 .pc-br{
        display:none;
    }

    #section4 .text-wrap .intro-btn{
        height:48px;
        font-size:16px;
    }

    .mb-gallery-wrap{
        display:block;
    }

    #section4 .gallery-wrap{
        display: none;
    }


    /*.gallery-wrap {*/
    /*    display:none;*/
    /*    margin:0!important;*/
    /*    max-height: none !important;*/
    /*    width: 100% !important;*/
    /*    overflow-x: auto !important;*/
    /*    overflow-y: hidden !important;*/
    /*    -webkit-overflow-scrolling: touch !important;*/
    /*    -ms-overflow-style: none !important;*/
    /*    scrollbar-width: none !important;*/
    /*    scroll-behavior: auto !important;*/
    /*}*/

    /*.gallery-wrap::-webkit-scrollbar {*/
    /*    display: none !important;*/
    /*}*/

    /*.gallery-grid {*/
    /*    display: grid !important;*/
    /*    grid-template-rows: repeat(2, 1fr) !important;*/
    /*    grid-auto-flow: column !important;*/
    /*    grid-auto-columns: 200px !important;*/
    /*    gap: 16px !important;*/
    /*    padding: 20px 0 !important;*/
    /*    max-width: none !important;*/
    /*}*/

    /*#section4 .card{*/
    /*    width: 200px !important;*/
    /*    height: 200px !important;*/
    /*    transform: translateY(0) translateX(var(--offset)) !important;*/
    /*}*/

    /*.card:nth-child(1) {--offset: -60px;}*/
    /*.card:nth-child(2) {--offset: 45px;}*/
    /*.card:nth-child(3) {--offset: -50px;}*/
    /*.card:nth-child(4) {--offset: 55px;}*/
    /*.card:nth-child(5) {--offset: -40px;}*/
    /*.card:nth-child(6) {--offset: 65px;}*/
    /*.card:nth-child(7) {--offset: -30px;}*/
    /*.card:nth-child(8) {--offset: 75px;}*/
    /*.card:nth-child(9) {--offset: -20px;}*/
    /*.card:nth-child(10) {--offset: 85px;}*/
    /*.card:nth-child(11) {--offset: -10px;}*/
    /*.card:nth-child(12) {--offset: 95px;}*/
    /*.card:nth-child(13) {--offset: 0px;}*/
    /*.card:nth-child(14) {--offset: 105px;}*/
    /*.card:nth-child(15) {--offset: 10px;}*/
    /*.card:nth-child(16) {--offset: 115px;}*/
    /*.card:nth-child(17) {--offset: 20px;}*/
    /*.card:nth-child(18) {--offset: 125px;}*/
    /*.card:nth-child(19) {--offset: 30px;}*/
    /*.card:nth-child(20) {--offset: 135px;}*/
}
@media (max-width: 768px) {
    #section4 .visual-section{
        padding:40px 0;
    }

    #section4 .text-wrap{
        margin-bottom:50px;
    }

    #section4 .text-wrap h3{
        width: 223px;
        margin-bottom:32px;
        font-size:24px;
    }

    .mb-gallery-wrap{
        padding: 6px 0;
    }

    .mb-gallery-track{
        gap:9px;
    }

    .mb-card{
        width:120px;
        height:120px;
        border-radius:12px;
    }

    .mb-card span{
        font-size:16px;
    }

    #section4 .text-wrap .intro-btn{
        height:36px;
        padding:0 24px;
        font-size:14px;
    }

    .mb-gallery-wrap:nth-child(2) .mb-gallery-track{
        margin-left:-68px;
    }
}


/* -----------------------------------------
   section5
----------------------------------------- */
/* 마지막 섹션 추가 스타일 */
#section5 {
    display: flex;
    flex-direction: column;
    overflow-x:auto;
    overflow-y:auto;
    transform: translate3d(0, 0, 0);
    will-change: transform; /* 브라우저에게 "나 곧 움직일 거야"라고 알려줌 */
    backface-visibility: hidden;
}

/* main_sec05 영역이 남은 공간을 채우도록 */
#section5 .main_inner {
    width:100%;
    min-height: 100vh;
}

#section5 .main_sec05 {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#section5 .main_sec05 .cont {
    width:100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#section5 .cont_head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:56px;
}

#section5 .cont_head .const_head_tit{
    font-size:40px;
}

#section5 .cont_head .const_head_tit strong{
    font-weight:800;
}

#section5 .cont_head button {
    height: 54px;
    padding: 0 40px;
    background: black;
    color: white;
    border: none;
    border-radius: 100px;
    font-size:18px;
    font-weight:700;
    cursor: pointer;
}

#section5 .cont_list{
    display:flex;
    flex-direction: row;
    gap:64px;
}

#section5 .cont_list > li{
    display:flex;
    flex:1;
}

#section5 .cont_list > li:first-child{
    width:606px;
}

#section5 .cont_list > li ul{
    display:flex;
    flex-direction: column;
    flex-grow:1;
    justify-content:space-between;
}

#section5 .cont_list > li ul li{
    position:relative;
    gap:20px;
}

#section5 .cont_list > li ul li:before{
    content:"";
    position:absolute;
    left:0;
    bottom:-15px;
    width:100%;
    height:1px;
    background:#E5E5E5;
}

#section5 .cont_list > li ul li:last-child:before{
    display:none;
}

#section5 .cont_list > li ul li div{
    display:flex;
    flex-direction: column;
    justify-content:center;
    gap:20px;
}

#section5 .cont_list > li ul li div p{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    font-size:24px;
    font-weight:600;
}

#section5 .cont_list > li ul li div span{
    font-size:18px;
    font-weight:700;
    color:#8C8C8C;
}

.noti_img_b {
    background: #ddd;
    /*min-width: 540px;*/
    width: 100%;
    height: 500px;
    border-radius: 20px;
    object-fit: cover;
}

.noti_img_s {
    background: #ddd;
    width: 260px;
    height: 145px;
    border-radius: 20px;
    object-fit: cover;
    border:1px solid #F0F0F0;
}

/* 이미지 없을 때 표시되는 No Image 플레이스홀더 */
.no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    color: #b3b3b3;
    border: 1px solid #e0e0e0;
    font-weight: 500;
    box-sizing: border-box;
}

.noti_img_b.no-image-placeholder {
    font-size: 28px;
}

.noti_img_s.no-image-placeholder {
    font-size: 15px;
}

/* 큰 이미지 오버레이 텍스트 스타일 */
.noti-img-wrapper {
    flex:1;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 20px;
    border:1px solid #f0f0f0;
}

.noti-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    padding: 48px 40px;
    color: #fff;
    border-radius: 20px 20px 0 0;
}

.noti-img-overlay .title {
    text-align: left;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.noti-img-overlay .date {
    text-align: left;
    font-size: 20px;
    font-weight: 500;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.btn-text-mobile {
    display: none;
}

/* 반응형 */
@media (max-width: 1024px) {
    #section5 .main_sec05{
        padding:64px 0
    }

    #section5 .cont_head{
        align-items:flex-start;
        margin-bottom:64px;
    }

    #section5 .cont_head .const_head_tit{
        font-size:36px;
    }

    #section5 .cont_head button{
        height:48px;
        font-size:16px;
    }

    #section5 .cont_list{
        flex-direction:column;
        gap:56px;
    }

    #section5 .cont_list > li:first-child{
        display:block;
        width:100% !important;
    }

    .noti-img-wrapper{
        height:260px;
    }

    .noti-img-overlay{
        padding:40px 32px;
    }

    .noti-img-overlay .title {
        font-size: 28px;
    }

    .noti-img-overlay .date {
        font-size: 18px;
    }

    #section5 .cont_list > li ul{
        gap:32px;
    }

    #section5 .cont_list > li ul li{
        display:block;
        padding-left:186px;
        min-height:90px;
    }

    #section5 .cont_list > li ul li > p{
        position:absolute;
        top:0;
        left:0;
        width:160px;
        height:90px;
        border-radius:12px;
        overflow:hidden;
    }

    #section5 .cont_list > li ul li .noti_img_s{
        width:100%;
        border-radius:0;
    }


    #section5 .cont_list > li ul li div p{
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-word;
        font-size: 22px;
    }
    #section5 .cont_list > li ul li div span{
        font-size:16px;
    }
}
@media (max-width: 768px) {
    #section5 .main_inner{
        min-height:auto;
    }

    #section5 .main_sec05{
        padding:40px 0;
    }

    #section5 .cont_head{
        flex-direction:column;
        margin-bottom:40px;
    }

    #section5 .cont_head .const_head_tit{
        margin-bottom:32px;
        font-size:24px;
    }

    #section5 .cont_head button{
        height: 36px;
        padding: 0 24px;
        font-size: 14px;
    }

    #section5 .cont_list > .sect5-2{
        display:none !important;
    }

    #section5 .cont_list > li ul li{
        padding-left:141px;
        min-height:72px;
    }

    #section5 .cont_list > li ul li > p{
        width:127px;
        height:72px;
    }

    #section5 .cont_list > li ul li div{
        gap:6px;
    }

    #section5 .cont_list > li ul li div p{
        font-size:14px;
    }

    #section5 .cont_list > li ul li div span{
        font-size:14px;
    }
}



/* GROUP3 숫자 카운터 애니메이션 */
.sect3-1, .sect3-2 {
    /* 숫자 카운터는 JS로 처리 */
}

/* GROUP4 애니메이션 */
.sect4-1 {
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sect4-1.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 갤러리 무한 스크롤 - JavaScript로 제어 */
.gallery-grid2 {
    will-change: transform;
    /*padding-top: 30px;*/
}

/* GROUP5 애니메이션 */
.sect5-1 {
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sect5-1.animated {
    opacity: 1;
    transform: translateY(0);
}

.sect5-2 {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.sect5-2.animated {
    opacity: 1;
    transform: translateX(0);
}

.sect5-3 {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.sect5-3.animated {
    opacity: 1;
    transform: translateX(0);
}


.pagination {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.pagination a {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border:1px solid #fff;
    background: transparent;
    margin: 12px 0;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.pagination a.active {
    background: white;
    transform: scale(1.5);
}

.pagination.dark a{
    border-color:#000;
}

.pagination.dark a.active{
    background: #000;
}

/* ==========================================================================
   resposive style
   ========================================================================== */
@media (max-width: 1024px) {
    .pagination,
    .scroll-down{
        display:none;
    }

    .main-container {
        /* 모바일은 무조건 스크롤 가능하게 */
        overflow-y: auto !important;
    }
    .main_section {
        /* 고정 해제하고 자연스럽게 흐르도록 */
        position: relative !important;
        height: auto  !important; /* 혹은 content에 맞게 */
        max-height: none !important;
        min-height: auto !important;
        transform: none !important; /* JS가 건드린 거 무시 */
        overflow-y: visible !important;
        overflow-x: visible !important;
    }
    .btn-text-mobile {
        display: block !important;
    }

    .btn-text-desktop {
        display: none !important;
    }
}
@media (max-width: 768px) {
    .main_inner{
        padding:0 20px;
    }
}

