/*-- 第一組 --*/
.slider-section-1 {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}
.slider-section-1 .container{
    max-width: 1200px;
    margin: 0 auto;
}
.swiper-slider-center {
    width: 100%;
    height: auto;
}
.swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.swiper-text-container {
    position: relative;
    margin-top: 20px;
    text-align: center;
    max-width: 400px;
    height: 153px;
    margin: 0 auto 80px;
}
.lead-text {
    display: none;
}
.lead-text.active {
    display: block;
}

.lead-text h3 {
  margin-top: 40px;
  color: #3072A8;
  text-align: center;
  font-family: "Noto Serif TC";
  font-size: 24px;
  font-weight: 700;
  line-height: 160%;
  margin-bottom: 0px;
}

.lead-text .bar{
    background: #B19D7F;
    width: 36px;
    height: 1px;
    margin:12px auto;
}
/* 描述樣式 */
.lead-text p {
  color: #384743;
  text-align: center;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

/* 手機版方向鍵樣式 */
.text-btn-next, .text-btn-prev{
    background-color: #3072A8;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
    margin: 20px 12px;

}

.text-btn-prev {left: 0; }
.text-btn-next {right: 0;  }
.text-btn-prev:hover,
.text-btn-next:hover {
    background-color: #2B6696;
}

.swiper-text-container .swiper-text-btn {
    display: none;

}
/* 導航按鈕樣式*/ 
.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
    z-index: 10;
}
.swiper-button-prev, .swiper-button-next {
    display: flex !important;
    width: 48px !important;
    height: 48px !important;
    padding: 10px 15px !important;
    gap: 10px;
    flex-shrink: 0;
    background: #3072A8 !important;
    align-items: center;
    justify-content: center !important;
    border-radius: 50% !important; 

}

.swiper-button-prev:after, .swiper-button-next:after {
    content: '' !important; 
}
.swiper-button-next {
    background-image: url('../img/right.svg') !important;
    background-size: 35% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}
.swiper-button-prev {
    background-image: url('../img/left.svg') !important;
    background-size: 35% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;t;
}



@media (max-width: 769px) {
    .lead-text h3 {
        font-size: 20px;
    }

    .slider-section-1 .swiper-button-next,
    .slider-section-1 .swiper-button-prev {
        display: none !important;
    }

    .swiper-text-container .swiper-text-btn {
        display: flex;
        justify-content: center;
        margin-bottom: -50px;
    }

    .slider-section-1 .container {
        padding: 0px;

    }

    .swiper-text-container {
        width: 90%;
        height: 235px;
  

    }
}

@media (max-width: 480px) {
    .swiper-slide img {
        height: 208px;
    }
}



/*
.swiper-pagination-bullet {
    background: #333;
    opacity: 0.7;
}
.swiper-pagination-bullet-active {
    background: #007bff;
}*/


/* 第二組輪播樣式 */
.slider-section-2 {
    max-width: 1200px;
    margin: 40px auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.slider-section-2 .container{
    max-width: 1200px;
    margin: 0 auto;
}

.swiper-slider-second {
    width: 100%;
    height: 250px;
}
.swiper-slide {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

/* 圓形樣式 */
.circle {
    width: 15vw;
    aspect-ratio: 1; 
    border: 1px solid #3072A8;
    background: #F4F4F4;
    border-radius: 50%; 
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #3072A8;
    font-size: 1.5vw; 
    transition: background-color 0.3s ease;
    max-width: 164px; 
    max-height: 164px; 
}
@media (max-width: 992px) {
    .circle {
        width: 36vw; 
        font-size: 3vw; 
    }
}
@media (max-width: 576px) {
    .circle {
        width: 100%; 
        font-size: 3vw; 
    }
}

.circle P{
    color: #3072A8;
    text-align: center;
    font-family: "Noto Serif TC";
    font-size: 16px;
    font-weight: 700;
    line-height: 160%;
}
.swiper-slide-active .circle{
    border: 1px solid #3072A8;
    background: #3072A8;
    position: relative;
}
.swiper-slide-active .circle P{
    color: #fff;

}
/* 文字區塊容器樣式 */
.swiper-text-container-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 20px;
    width: 100%;
}
.lead-text-2 {
    display: none; 
    text-align: center;
    margin: 0 20px;
}
.lead-text-2.active {
    display: block;
}
.lead-text-2 h3 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}
.lead-text-2 p {
    font-size: 16px;
    color: #000;
    line-height: 1.5;
}
/* 文字區塊方向鍵樣式 */
.text-button-prev,
.text-button-next {
    background-color: #3072A8;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

/* 水平並排按鈕 */
.swiper-text-container-2 .button-container {
    display: flex;
    justify-content: space-around;
    width: 70%;
    position: absolute;
    top: 50%; 
    transform: translateY(-50%); 
    padding: 0 20px; 
    z-index: 10;
}

.text-button-prev {left: 0; }
.text-button-next {right: 0;  }
.text-button-prev:hover,
.text-button-next:hover {
    background-color: #2B6696;
}


/* 垂直線樣式 */
.vertical-box {
    display: flex;
    justify-content: center; 
    position: relative;
    padding-right: 5px;
/*    height: 100%;   */
}

.vertical-line {
    width: 1px;            
    background-color: #3072A8;  
    flex-grow: 1;        
    position: relative;   
    height: 150px;
}

.vertical-line::before {
    content: "左派     ◀▶     右派"; 
    position: absolute;
    top: -20%;               
    left: 50%;                 
    transform: translate(-50%, -50%);      
    color: #3072A8;
    text-align: center;
    font-family: "Noto Serif TC";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;         
    white-space: nowrap;    
    z-index: 2;            
}


@media (max-width: 992px) {
    .swiper-text-container-2 {
    display: flex;
    flex-direction: column;
    }
    .swiper-text-container-2 .button-container {
        position: static; 
        display: flex;
        justify-content: center;
        gap: 25px;
        margin-top: -15px;
    }

    .text-button-prev, .text-button-next {
        width: 35px; 
        height: 35px;
        font-size: 16px; 
    }
}


@media (max-width: 767px) {
    .slider-section-2 .container {width: 100%;margin: 0 auto;padding: 0;}
    .text-button-prev img,.text-button-next img {width: 33%;}
}
@media (max-width: 480px) {
    .swiper-slider-second {width: 100%;}
    .line-text{font-size: 14px;}
    .line-text svg{width: 15px;height: 15px;vertical-align: sub;}
    .circle P {width: 130px;}
}
