/* 두 번째 섹션 - 제품 소개 (KOSCI 스타일) */
.kosci-product-section { overflow: hidden; }

/* Swiper 관련 강제 표시 설정 */
.kosci-product-slider.swiper {
    backface-visibility: visible !important;
}

.kosci-product-slider .swiper-wrapper {
    transform-style: preserve-3d;
    backface-visibility: visible !important;
}

.kosci-product-slider .swiper-slide {
    backface-visibility: visible !important;
    transform-style: preserve-3d;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
}

/* 첫 번째 슬라이드 항상 표시 */
.kosci-product-slider .swiper-slide:first-child {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10;
}

.kosci-product-wrap {
    display: flex;
    width: 100%;
    height: 100%;
}
.kosci-product-wrap .kosci-product-slider {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 100vh;
}
.kosci-product-wrap .kosci-product-slider .con {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    width: 50%;
    height: 100%;
    padding: 0 6.5%;
}
.kosci-product-wrap .kosci-product-slider .con h2 {
    font-size: 20px;
    color: #fff;
    font-weight: 600;
}
.kosci-product-wrap .kosci-product-slider .con h3 {
    margin: 30px 0 20px;
    font-size: 5.5rem;
    color: #fff;
    font-weight: 300;
    line-height: 1.273em;
    letter-spacing: -0.005em;
}
.kosci-product-wrap .kosci-product-slider .con p {
    margin-bottom: 60px;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 400;
    line-height: 1.667em;
}
.kosci-product-wrap .kosci-product-slider .con ul {
    position: relative;
}
.kosci-product-wrap .kosci-product-slider .con ul li {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100px;
    cursor: pointer;
}
.kosci-product-wrap .kosci-product-slider .con ul li::before {
    content: '';
    width: 130px;
    height: 2px;
    display: inline-block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -160px;
    background: #fff;
    transition: all 0.5s;
}
.kosci-product-wrap .kosci-product-slider .con ul .on .tit {
    position: relative;
    z-index: 110;
    font-size: 2.5rem;
    color: #fff;
    font-weight: 700;
    padding-left: 40px;
    transform: translateY(-50%);
    transition: all 0.5s;
}
.kosci-product-wrap .kosci-product-slider .con ul .on::before {
    width: 180px;
    transition: all 0.5s;
}
.kosci-product-wrap .kosci-product-slider .con ul li .tit {
    position: relative;
    z-index: 110;
    font-size: 1.7rem;
    color: #fff;
    font-weight: 400;
    transition: all 0.5s;
}

.kosci-product-wrap .kosci-product-slider .con h3 {
    opacity: 0;
    transform: translateY(-100px);
    transition: all 0.8s ease-out 0.15s;
}
.kosci-product-wrap .kosci-product-slider .con p {
    opacity: 0;
    transform: translateY(-100px);
    transition: all 0.8s ease-out 0.3s;
}
.kosci-product-wrap .kosci-product-slider .con ul {
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.8s ease-out 0.6s;
}

.section.active .kosci-product-wrap .kosci-product-slider .con h3 {
    opacity: 1;
    transform: translateY(0);
}
.section.active .kosci-product-wrap .kosci-product-slider .con ul {
    opacity: 1;
    transform: translateY(0);
}
.kosci-product-wrap .kosci-product-slider .group {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: all 1.3s;
}
.kosci-product-wrap .kosci-product-slider .group.active {
    opacity: 1;
}
.kosci-product-wrap .kosci-product-slider .group .img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    transform:  translate(-50%, -50%);
    transition: all 1.3s;
}
 
/* group 요소에 검정 레이어 추가 */
.kosci-product-wrap .kosci-product-slider .group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

.kosci-product-wrap .kosci-base-content {
    display: block !important;
    text-align: right;
    position: absolute;
    right: 10%;
    top: 40%;
    z-index: 999999;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.kosci-product-wrap .kosci-base-content.active {
    opacity: 1;
}
.kosci-product-wrap .kosci-base-content .content_title {
    font-size: 3rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.8em;
    padding-bottom: 15px;
}
.kosci-product-wrap .kosci-base-content .content_data.small {
    font-size: 1.5rem;
    color: white;
    font-weight: 300;
    line-height: 1.667em;
    max-width: 550px;
    text-align: right;
}
.kosci-product-wrap .kosci-base-content .content_data.small p {
    word-break: keep-all;
    word-wrap: normal;
}
.kosci-product-wrap .kosci-base-content .more {
    position: relative;
    display: block;
    width: 180px;
    height: 47px;
    background: rgba(255, 255, 255, 0.2);
    line-height: 43px;
    transition: 0.2s;
    text-align: center;
    color: #fff;
    font-weight: 300;
    font-size: 18px;
    border: 1px solid #fff;
    border-radius: 12px 12px 0 12px;
    text-decoration: none;
    margin-top: 30px;
    margin-left: auto;
}
.kosci-product-wrap .kosci-base-content .more:hover {
    background: #fff;
    color: #000;
    transition: all 0.3s;
}

/* KOSCI 애니메이션 클래스들 (기존 디자인과 충돌하지 않게 추가) */
.kosci-product-section.motion {
    /* 기존 섹션 애니메이션과 호환 */
}

.kosci-product-section.init {
    /* 초기 상태 */
}

/* 모바일 반응형 */
@media all and (max-width: 767px) {
    .kosci-product-wrap .kosci-base-content{
        top: 50% !important;
        /* background: rgba(0, 0, 0, 0.5); */
        padding: 20px;
        border-radius: 10px;
        right: 0;
        opacity: 1;
        transition: opacity 0.5s ease;
    }
    
    .kosci-product-wrap .kosci-base-content.active {
        opacity: 1;
    }

    .kosci-product-wrap .kosci-product-slider {
        padding-top: 60%;
    }
    .kosci-product-wrap .kosci-product-slider .con {
        width: 100%;
        height: 33%;
        padding: 100px 3% 0;
        background: #fff;
        text-align: center;
        display: block;
    }
    .kosci-product-wrap .kosci-product-slider .con h2 {
        font-size: 1.4rem;
        color: #000;
    }
    .kosci-product-wrap .kosci-product-slider .con h3 {
        margin: 10px 0 10px;
        font-size: 3.2rem;
        color: #000;
        font-weight: 700;
    }
    .kosci-product-wrap .kosci-product-slider .con p {
        margin-bottom: 30px;
        font-size: 13px;
        color: #000;

        margin-top: 120px;
    }
    .kosci-product-wrap .kosci-product-slider .con ul {
        position: absolute;
        left: 0;
        top: calc(100% + 80px);
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        box-sizing: border-box;
        width: 100%;
        padding: 0 5%;
        gap: 20px;
    }
    .kosci-product-wrap .kosci-product-slider .con ul li {
        height: 40px;
        padding: 20px;
        margin-bottom: 2%;
        transform: none !important;
        transition: none !important;

        border: 1px solid white;
        text-align: center;
    }
    
    .kosci-product-wrap .kosci-product-slider .con ul li:hover,
    .kosci-product-wrap .kosci-product-slider .con ul li.on,
    .kosci-product-wrap .kosci-product-slider .con ul li.active {
        transform: none !important;
        transition: none !important;
        
    }
    
    .kosci-product-wrap .kosci-product-slider .con ul li .tit {
        font-size: 1rem;
        color: #fff;
        font-weight: 400;
        transform: none !important;
        transition: none !important;

        width: 100%;
    }
    
    .kosci-product-wrap .kosci-product-slider .con ul .on .tit {
        transform: none !important;
        transition: none !important;
        padding-left: 0 !important;
        font-size: 1rem;
        text-align: center;
    }
    
    .kosci-product-wrap .kosci-product-slider .con ul li:before {
        display: none;
    }
  
    .kosci-product-wrap .kosci-base-content .content_title {
        font-size: 1.8rem;
        line-height: 1.4em;
        padding-bottom: 5px;
    }
    .kosci-product-wrap .kosci-base-content .content_data.small {
        font-size: 15px;
        max-width: 400px;
    }
    .kosci-product-wrap .kosci-base-content .more {
        width: 180px;
        height: 47px;
        line-height: 47px;
        font-size: 1.4em !important;
    }


    .kosci-product-wrap .kosci-product-slider .con div{
        margin-top: 0;
    }
}

/* 🆕 태블릿 환경에서도 확대 효과 제거 */
@media all and (max-width: 1024px) and (min-width: 768px) {

        
    .kosci-product-wrap .kosci-product-slider .con h3 {
        opacity: 0;
        transform: none;
        transition: all 0.8s ease-out 0.15s;
    }
    .kosci-product-wrap .kosci-product-slider .con p {
        opacity: 0;
        transform: none;
        transition: all 0.8s ease-out 0.3s;
    }



    .kosci-product-wrap .kosci-product-slider .con p{
        font-size: 20px;
    }

    .kosci-product-wrap .kosci-base-content .content_title{
        font-size: 2rem;
    }

    .kosci-product-wrap .kosci-base-content .content_data.small p{
        font-size: 1.2rem;
    }

    .kosci-product-wrap .kosci-product-slider .con ul li {
        transform: none !important;
        transition: none !important;
    }
    
    .kosci-product-wrap .kosci-product-slider .con ul li:hover,
    .kosci-product-wrap .kosci-product-slider .con ul li.on,
    .kosci-product-wrap .kosci-product-slider .con ul li.active {
        transform: none !important;
        transition: none !important;
    }
    
    .kosci-product-wrap .kosci-product-slider .con ul li .tit {
        transform: none !important;
        transition: none !important;
    }
    
    .kosci-product-wrap .kosci-product-slider .con ul .on .tit {
        transform: none !important;
        transition: none !important;
    }
} 