/* 롤링 섹션 스타일 */
.rolling-section {
    width: 95vw;
    max-width:1800px;
    background-color: #003366;
    color: white;
    position: sticky;
    top:calc(100px + 2.5vh);
    overflow: hidden;
    height: calc(95vh - 100px);
    border-radius:20px;
    margin:auto;
}

.rolling-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.rolling-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    position: absolute;
    top: 0;
    left: 0;


}

.rolling-slide.active {
    opacity: 1;
    z-index: 2;
}

.rolling-text-container {
    width: 50%;
    margin-left: 6%;
    z-index: 2;
    visibility:hidden;
    transition:all 0.5s ease;
    opacity:0;
    transform:translateY(100%);
    overflow:hidden;
    height:70%;
    display:Flex;
    flex-direction: column;

}

.rolling-text-container .rolling-sub-image{
    display:flex;
    gap:12px;
    width:fit-content;
    animation: rollingImage 15s linear infinite;
    flex:1;
    align-items:end;
}

@keyframes rollingImage{
    from {
        /* opacity: 0; */
        transform: translateX(0%);
    }
    to {
        /* opacity: 1; */
        transform: translateX(-50%);
    }
}

.rolling-slide.active .rolling-text-container{
    transform:translateY(0);
    visibility:visible;
    opacity:1;

}
.rolling-slide .rolling-text-container .rolling-image-items {

width:248px;
height:187px;
    flex-shrink:0;
    border-radius:12px;
    border: 1px solid #fff;
    overflow:hidden;
}
.rolling-slide .rolling-text-container .rolling-image-items img{
    width:100%;
    height:100%;
    object-fit:Cover;
}
.rolling-image-container {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.rolling-image {
    width: 80%;
    height: 70%;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.rolling-subtitle {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 400;
    opacity: 0.8;
    position: relative;
    padding-left: 20px;
    display: inline-block;
}

.rolling-subtitle:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background-color: #fff;
}

.rolling-title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
}

.rolling-description {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
}

.rolling-navigation {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rolling-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.rolling-nav-dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* 캐러셀 허버 지시자 */
.carousel-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-size:20px;
}

.carousel-hint::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="8 12 12 16 16 12"/><line x1="12" y1="8" x2="12" y2="16"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    margin-right: 8px;
    animation: scrollHint 1.5s infinite;
}

@keyframes scrollHint {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.rolling-section:hover .carousel-hint {
    opacity: 0;
    pointer-events: none;
}

/* 마지맅 텍스트 섹션 스타일 */
.final-text-section {
    background-color: #003366;
    color: white;
    padding: 120px 0;
    text-align: center;
    height:100%;
    justify-content: center;
    align-items: center;
    display:flex;
    flex-direction: column;
}

.final-text-container {
    max-width:100%;
    transform: translateY(150px);
    transition:all 0.5s ease;
    margin: 0 auto;
    padding: 0 20px;
}

.final-text-section.active .final-text-container {
    transform: translateY(0);
}

.final-text {
    font-size: 60px;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight:700;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.final-text.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* 반응형 스타일 */
@media (max-width: 992px) {
    .rolling-slide {
        flex-direction: column;
    }
    
    .rolling-text-container, 
    .rolling-image-container {
        width: 100%;
        padding: 20px;
    }
    
    .rolling-text-container {
        padding-top: 80px;
        padding-bottom: 30px;
    }
    
    .rolling-image-container {
        height: auto;
    }
    
    .rolling-title {
        font-size: 28px;
    }
    
    .rolling-description {
        font-size: 16px;
    }
    
    .final-text {
        font-size: 22px;
    }
}