/*影片專區標題*/
.title-range {
    padding-top: 10%;
    margin-right: 70%;
    background-color: rgb(255, 255, 255);
}

.title-range .title {
    text-align: right;
}

.line {
    width: 30%; /* 底線寬度為頁面三分之一 */
    height: 3px;
    background-color: #000;
    margin-bottom: 5% ;
}

/*影片內容移動區塊*/
/* 外圍容器 */
.slider-container {
    position: relative;
    width: 80%; /* 佔頁面的一半寬度 */
    overflow: hidden;
    margin-left: 10%;
    margin-right: 10%;
    margin-bottom: 30px;
}

/* 按鈕樣式 */
button {
    position: absolute;
    top: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    margin: 10px 30px;
    cursor: pointer;
    z-index: 10;
}

.prev-btn {
    left: 10px;
    transform: translateY(-50%);
}

.next-btn {
    right: 10px;
    transform: translateY(-50%);
}

/* 區塊的外層容器 */
.slider-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 區塊列表 */
.slider-track {
    display: flex;
}

/* 單個區塊 */
.slider-item {
    min-width: 100%;  /* 區塊寬度為容器的100% */
    height: 600px;
    padding: 50px 0px;
    background-color: #f4f4f4;
    border-radius: 10px;
    text-align: center;
    

}

/* 垂直置中內容 */
.slider-item .h2-range {
    width: 40%;
    margin-top: 40px;
    text-align: center;
    float: left;
}

.slider-item .p-range {
    width: 40%;
    background-color: #ffffff;
    margin-top: 50px;
    padding: 10% ;
    text-align: justify;
    float: left;
    border-radius: 10px;
}

/*影片設置*/
.slider-item .video-range {
    width: 50%;
    height:100%;
    padding-left: 50px;
    padding-top: 30px;
    float:left;

}

.video-range video {
    float: left;
    margin-left: 30%;
    border: 1px solid #e7e4e4; /* 設定邊框 */
    border-radius: 15px;
}

.video-thumbnail {
    width: 100%;
    max-width: 250px;
    height: auto;
}

/*指示器樣式*/
.indicators {
    text-align: center;
    margin-top: 5px;
    margin-bottom: 50px;
}

/*小圓點的基本樣式*/
.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: gray;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

/*當前選中的小圓點*/
.dot.active {
    background: rgb(0, 0, 0);
}


@media (max-width: 1024px) {
    .slider-container {
        height:850px;
        
    }

    .slider-wrapper {
        height: 100vh;
        
    }

    .slider-item {
        height:auto;

    }

    .slider-item .video-range{
        width: 100%;
        height: 500px;
        display: flex;
        justify-content: center;  /* 水平置中 */
        align-items: center;      /* 垂直置中 */
        padding-left: 0px;
        margin-top: 20px;
    }

    .slider-item .h2-range {
        width: 100%;
        margin-top: 20%;
    }

    .slider-item .p-range {
        width: 80%;
        margin-left: 10%;
        margin-bottom: 10%;

    }

    .video-range video {
        margin-left: 0%;
        margin-right: 0%;
        margin-top: 40%;
        margin-bottom: 10%;
    }

    .prev-btn {
        left: 0px;     
    }
    
    .next-btn {
        right: 0px;
    }

}