@charset "utf-8";
/* CSS Document */
/* 기본 초기화 (이전과 동일) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    overflow-x: hidden;
}

/* ------------------------------------------- */
/* --- 🎯 메인 배너 스타일 수정 --- */
/* ------------------------------------------- */

.main-banner-container {
    position: relative;
    width: 100%;
    /* 🚨🚨🚨 수정된 부분: 100vh 대신 700px로 높이 변경 */
    height: 500px; 
    /* 원하는 높이로 변경 가능 (예: 600px, 80vh 등) */
    overflow: hidden;
    /* 🚨🚨🚨 수정된 부분: z-index를 낮춰서 다른 요소(네비게이션)가 위에 보이게 함 */
    z-index: 0;
}

.banner-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* 부모 컨테이너(700px)에 맞춰짐 */
}

/* 슬라이드 내부 스타일 (이전과 동일) */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 10;
}

.slide-active {
    opacity: 1;
    z-index: 20;
}

/* 배경 비디오/이미지 스타일 (이전과 동일) */
.slide-video, .slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 25;
}

/* 텍스트 내용 컨테이너 (중앙 정렬은 유지) */
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    z-index: 30;
    width: 80%;
    max-width: 800px;
}

/* 텍스트 및 애니메이션 스타일 (이전과 동일) */
.slide-content .sub-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-content .main-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content .description {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slide-active .text-effect {
    opacity: 0;
    animation: text-fade-in 1s ease-out forwards;
}

.slide-active .sub-title.text-effect {
    animation-delay: 0.3s; 
}

.slide-active .main-title.text-effect {
    animation-delay: 0.6s;
}

.slide-active .description.text-effect {
    animation-delay: 0.9s;
}

.slide-active .cta-button {
    opacity: 0;
    animation: text-fade-in 1s ease-out forwards;
    animation-delay: 1.2s; 
}

@keyframes text-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* CTA 버튼 스타일 (이전과 동일) */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.cta-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}


/* 페이지네이션 (이전과 동일) */
.banner-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
}

.dot {
    display: block;
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.dot-active {
    background-color: #fff;
    transform: scale(1.2);
}

/* 미디어 쿼리: 모바일 최적화 (이전과 동일) */
@media (max-width: 768px) {
    /* 🚨🚨🚨 수정된 부분: 모바일 환경에서도 높이를 조정할 수 있습니다. */
    .main-banner-container {
        height: 500px; /* 모바일에서는 500px로 더 줄일 수 있습니다. */
    }

    .slide-content .sub-title {
        font-size: 1.5rem;
    }
    
    .slide-content .main-title {
        font-size: 3rem;
    }
    
    .slide-content .description {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 1.5rem;
    }
}