/* ============================================
   HERO SECTION STYLES
   ============================================ */

.intro {
    clear: both;
    position: relative;
    width: 100%;
    padding: 0;
    overflow: hidden;
    z-index: 2;
    height: 100vh;
}

.intro_contents {
    position: relative;
    z-index: 10;
    width: 100%;
}

.intro_text {
    width: 100%;
}

/* Bootstrap container z-index */
.container-fluid {
    position: relative;
    z-index: 10;
    max-width: none !important;
    width: 100% !important;
}

.logo-container {
    margin-top: 2rem;
}

.hero-logo {
    max-width: 300px;
    height: auto;
}

.movie {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    overflow: hidden;
    z-index: 1;
}

/* 유튜브 비디오 배경 기본 설정 */
.movie > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Mobile responsive styles */
@media (max-width: 750px) {
    .intro {
        height: 500px;
    }
    
    .intro_contents {
        padding: 0 20px;
    }
    
    .intro_text li {
        font-size: 14px !important;
        line-height: 20px !important;
    }
    
    .movie {
        height: 500px !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        overflow: hidden !important;
        z-index: 1 !important;
    }
    
    .hero-logo {
        max-width: 200px;
    }
    
    .logo-container {
        margin-top: 1rem;
    }
    
    /* 모바일에서 컨테이너 전체 너비 보장 */
    .container-fluid {
        max-width: none !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    
    .col-12 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* 유튜브 영상 풀 화면 설정 - 세로 영역에 완전히 가득 차도록 */
    .movie > div,
    .movie div[data-vbg],
    .movie iframe,
    .movie video,
    .movie embed,
    .movie object,
    .movie .vbg-video,
    .movie .vbg-container,
    .movie .vbg-video-wrapper,
    .movie .ytp-cued-thumbnail-overlay,
    .movie .html5-video-container {
        height: 100% !important;
        width: 100% !important;
        min-height: 100% !important;
        min-width: 100% !important;
        max-height: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
        object-position: center center !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        outline: none !important;
        transform: scale(1.2) !important;
        z-index: 1 !important;
    }
    
    /* iframe 특별 처리 - 세로를 기준으로 가로 크기 조정 */
    .movie iframe {
        height: 100% !important;
        width: 178vh !important;
        min-width: 100% !important;
        max-width: none !important;
        left: 50% !important;
        transform: translateX(-50%) scale(1.2) !important;
        object-fit: cover !important;
        pointer-events: none !important;
        background: transparent !important;
        border: none !important;
    }
    
    /* 유튜브 플러그인 컨테이너 강제 설정 */
    .movie > div[data-vbg] {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .intro {
        height: 500px !important;
    }
    
    .movie {
        height: 500px !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 1 !important;
    }
    
    /* 작은 모바일에서도 동일한 풀화면 설정 */
    .movie > div,
    .movie div[data-vbg],
    .movie iframe,
    .movie video,
    .movie embed,
    .movie object,
    .movie .vbg-video,
    .movie .vbg-container,
    .movie .vbg-video-wrapper {
        height: 100% !important;
        width: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        transform: scale(1.2) !important;
    }
    
    .movie iframe {
        width: 178vh !important;
        left: 50% !important;
        transform: translateX(-50%) scale(1.2) !important;
    }
    
    .intro_text li {
        font-size: 12px !important;
        line-height: 18px !important;
    }
}

@media (max-width: 320px) {
    .intro {
        height: 500px !important;
    }
    
    .movie {
        height: 500px !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 1 !important;
    }
    
    /* 매우 작은 모바일에서도 동일한 풀화면 설정 */
    .movie > div,
    .movie div[data-vbg],
    .movie iframe,
    .movie video,
    .movie embed,
    .movie object,
    .movie .vbg-video,
    .movie .vbg-container,
    .movie .vbg-video-wrapper {
        height: 100% !important;
        width: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        transform: scale(1.2) !important;
    }
    
    .movie iframe {
        width: 178vh !important;
        left: 50% !important;
        transform: translateX(-50%) scale(1.2) !important;
    }
    
    .intro_text li {
        font-size: 10px !important;
        line-height: 16px !important;
    }
}
