/* Video Background Styles */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background-color: #343a40;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    display: block;
}

/* 针对不同屏幕尺寸的响应式调整 */
@media (max-width: 768px) {
    .video-background video {
        width: 100%;
        height: auto;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .video-background video {
        width: 100%;
        height: auto;
    }
}

@media (min-width: 1025px) {
    .video-background video {
        width: auto;
        height: 100%;
    }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.masthead {
    position: relative;
    background-color: #343a40;
    padding-top: 8rem;
    padding-bottom: 8rem;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.masthead .container {
    position: relative;
    z-index: 2;
}

/* Video Showcase Styles */
#video-showcase .video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 宽高比 */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#video-showcase .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#video-showcase .row {
    margin-top: 2rem;
}

#video-showcase h2 {
    margin-bottom: 2rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #video-showcase .video-container {
        margin-bottom: 1rem;
    }
}