/* 全域 */

a, p, span, div, .navbar button{
    color: #5F8FC7;
}

.parent_navbar{
    background-color: white;
}

.parent_navbar .navbar-brand{
    color: #5F8FC7;
}

.top_carousel > *{
    padding-left: 0.5%;
    padding-right: 0.5%;
}

.nav-item > a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out;
}

.nav-item > a[class="active"]{
    font-weight:bold;
    border-bottom: solid;
}

a {
    text-decoration: none;
}

footer {
    background-color: #5F8FC7;
    color: white;
}

.footer_school_title{
    border-bottom: 1px solid #dee2e6;
    font-size: 20px;
    padding-bottom: 20px;
}

.footer_school_title > div{
    height: 100%;
}


@media (min-width: 768px) {
    .footer_school_title{
        font-size: 16px;
        border-right: 1px solid #dee2e6;
        border-bottom: 0;
    }
}

@media (min-width: 768px) {
    .footer_policy_text{
        text-align: right;
    }
}

.login-message{
    font-size: 14px;
    color: red;
}

.body_card_tab{
    overflow-x: scroll;
    white-space: nowrap;
}

.body_card_tab2{
    margin-bottom:10px;
    white-space: nowrap;
}

.body_card_tab a, .body_card_tab2 a {
    display: inline-block;
    text-decoration: none;
    margin-right: 30px;
}

.body_card_tab a[class="active"], .body_card_tab2 a[class="active"] {
    border-bottom: solid 3px;
    font-weight:bold;
}

.nav_icon{
    height: 35px;
    width: auto;
}


@media (max-width: 767.98px) {
    .navbar-brand{
        font-size: 16px;
    }
}

.body_card_body{
    min-height: 400px;
    background-color: rgb(232, 232, 238);
    border-top: solid #5F8FC7;
    padding: 30px;
    border-radius: 0 0 20px 20px;
}

.card_content_text{
    overflow-wrap: break-word;
}

.footer_company_logo{
    max-height: 32px;
}

/* 頁面式列表 */

.pagination_control{
    display: flex;
    justify-content: center;
}

.pagination_group button{
    background-color: rgb(28, 64, 126);
    border-radius: 20px;
    
}

@media (min-width: 768px) {
    .pagination_group button{
        margin-left: 20px;
        margin-right: 20px;
    }
}

.pagination_group button.disabled{
    background-color: #a0bbda;
}

.pagination_group > button > a, .pagination_group > button > a > span{
    color: white;
}

@media (max-width: 767.98px) {
    .pagination_group .label{
        display: none;
    }
}

#district_select, #committee_select{
    float: right;
}

.pwd_content{
    margin-top: 100px;
}
/* 首頁 */

.marquee {
    overflow: hidden;
    height: 200px; /* 设置容器高度 */
  }
  
  .marquee ul {
    list-style: none;
    padding: 0;
    margin: 0;
    animation: marquee 10s linear infinite;
  }
  
  .marquee li {
    margin: 10px 0; /* 设置每个节目的上下间距 */
    white-space: nowrap; /* 不换行 */
    overflow: hidden; /* 超出部分隐藏 */
    text-overflow: ellipsis; /* 显示省略号 */
  }
  
  @keyframes marquee {
    0% { transform: translateY(150%); }
    100% { transform: translateY(-150%); }
  }

.top_carousel > .carousel img, .sub_banner > .carousel img, .rwd_sub_banner > .carousel img{
    width: 100%;
    /* aspect-ratio: 4 / 3; */
    object-position: center center;
    object-fit: cover;
    border: solid #dee2e6;
}

.top_carousel > .carousel img{
    border-radius: 10px;
}

#waitting_live{
    width: 100%;
    height: 250px;
    background-color: gray;
    display: flex;
    justify-content: center;
    align-items: center;
}

#waitting_live span{
    color: white;
    font-size: 24px;
}

@media (min-width: 768px) {
    .top_carousel > .carousel img{
        border-radius: 30px;
    }
}

.rwd_sub_banner > .carousel img{
    border-radius: 0 2vh 2vh 2vh;
}

.sub_banner{
    display: none;
}

@media (min-width: 768px) {
    .sub_banner > .carousel img{
        border-radius: 0 2vh 2vh 2vh;
    }

    .rwd_sub_banner{
        display: none;
    }

    .sub_banner{
        display: flex;
    }

}

.main_banner #carouselExampleIndicators{
    background-color: #e2e2e2;
    border-radius: 30px 30px 30px 0;
}

.main_banner .carousel img{
    aspect-ratio: 2 / 1;
    width: 100%;
    object-position: center center;
    object-fit: contain;
}

.main_banner {
    float: right;
}

.home_side, .home_side_inline{
    text-align:center;
    margin-top: 30px;
    border-top: 1px solid rgb(32, 73, 143);
}

@media (min-width: 768px) {
    .home_side{
        align-items: center;
        display: flex;
        border-top: 0;
        border-right: 1px solid #dee2e6;
    }

    .home_side_inline{
        text-align:justify;
        border-top: 0;
    }

    .home_side_inline > div{
        display: inline;
    }
}

.home_side_title{
    font-size: 60px;
    font-weight: bold;
    padding-right: 20px;
}

.home_side_sub_title{
    font-size: 24px;
    font-weight: bold;
}

.member_block{
    position: relative;
}

@media (min-width: 768px) {
    .member_item, .home_cadre_link_group{
        min-height: 320px;
        /* position: absolute; */
    }
    .member_item{
        order: 4;
    }
    .member_item:nth-child(1){
        order: 1;
    }
    .member_item:nth-child(2){
        order: 2;
    }
    .home_cadre_link_group{
        order: 3;
    }
    
}

.home_cadre_link_group  a {
    color: white;
    border-radius: 10px;
    padding: 15px;
    font-size: 24px;
}

@media (max-width: 767.98px) {
    .home_cadre_link_group a{
        width: 100%;
        border-radius: 50vh;
    }
}

.home_cadre_tag {
    display: inline;
    position: absolute;
    bottom: 0;
    right: 0;
    border-radius: 10em;
    padding: 0px 16px 10px;
    text-decoration: none;
    font: 700 60px/60px sans-serif;
    background: rgb(205, 103, 100);
    border: rgb(205, 103, 100);
    color: #FFF;
}

@media (min-width: 768px) {
    .home_cadre_tag{
        display: none;
    }
}


.home_about_association p{
    color: rgb(32, 73, 143);
    font-weight: bold;
}

.home_1999_link {
    color: #fff;
    background-color: rgb(32, 73, 143);
    border-color: rgb(32, 73, 143);
    border-radius: 24px;
    padding-left: 20%;
    padding-right: 20%;
}

.child_img{
    display: none;
}

@media (min-width: 768px) {
    .child_img {
      display: block;
    }
}

/* 跑馬燈 */

.onoffswitch3
{
    position: relative; 
    -webkit-user-select:none; 
    -moz-user-select:none; 
    -ms-user-select: none;
}

.onoffswitch3-checkbox {
    display: none;
}

.onoffswitch3-label {
    display: block; 
    overflow: hidden; 
    cursor: pointer;
    border: 0px solid #999999; 
    border-radius: 0px;
}

.onoffswitch3-inner {
    display: block; 
    width: 200%; 
    margin-left: -100%;
    -moz-transition: margin 0.3s ease-in 0s; 
    -webkit-transition: margin 0.3s ease-in 0s;
    -o-transition: margin 0.3s ease-in 0s; 
    transition: margin 0.3s ease-in 0s;
}

.onoffswitch3-inner > span {
    display: block; 
    float: left; 
    position: relative; 
    width: 50%; 
    height: 42px; 
    padding: 0; 
    line-height: 42px;
    font-size: 28px; 
    color: white; 
    font-weight: bold;
    -moz-box-sizing: border-box; 
    -webkit-box-sizing: border-box; 
    box-sizing: border-box;
}

.onoffswitch3-inner .onoffswitch3-active {
    padding-left: 10px;
    background-color: #EEEEEE; 
    color: #FFFFFF;
}

.onoffswitch3-checkbox:checked + .onoffswitch3-label .onoffswitch3-inner {
    margin-left: 0;
}

.scroll-text{
    color: rgb(32, 73, 143);
}

/* 公告 */

.news_list{
    height: 400px;
}

.news_date{
    width: 120px;
    height: auto;
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: #a0bbda;
    border-radius: 30px;
    text-align:center;
}

@media (min-width: 768px) {
    .news_date{
        width: 60px;
        height: 60px;
        background-color: #a0bbda;
        border-radius: 100%;
    }
}

.news_date_year{
    display: inline;
    
}

.news_date_mon_day{
    display: inline;
    
}

@media (min-width: 768px) {
    .news_date_year{
        display: flex;
        /* 水平置中 */
        justify-content: center;    
        /* 垂直置中 */
        align-items: center;
        height: 30px;
    }
    
    .news_date_mon_day{
        text-align: center;
        height: 30px;
    }
}

.news_date div{
    color: white;
}

.news_list_item{
    cursor: pointer;
}

.news_list_item .news_title{
    font-weight:bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 10px
}

.news_item{
    padding: 50px;
}

.news_item .news_title{
    font-weight:bold;
    font-size: 24px;
    overflow-wrap: break-word;
}

.news_item .news_content{
    overflow-wrap: break-word;
}



/* 幹部 */

.card_content_img img{
    width: 100%;
    height: auto;
}

.member_card{
    margin-top: 30px;
    background-color: white;
    border-radius: 20px;
    margin-left: 5%;
    margin-right: 5%;
    font-size: 20px;
}

@media (min-width: 768px) {
    .member_card {
        margin-top:0;
        font-size: 16px;
    }
}

.member_card_photo_area{
    position: relative;
    width: 70%;
}

@media (min-width: 768px) {
    .member_card_photo_area {
        width: 60%;
    }
}

.member_card_photo img{
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 100%;
    object-position: center top;
    object-fit: cover;
}

.member_card_photo{
    display: flex;
    justify-content: center!important;
}

.member_title{
    margin:20px;
}

.member_title span{
    background-color: #5F8FC7;
    color: white;
    border-radius: 30px;
    font-size: 24px;
    font-weight:bold;
    padding:10px;
    padding-left: 30px;
    padding-right: 30px;
}

@media (min-width: 768px) {
    .member_title{
        margin:0;
    }

    .member_title span{
        border-radius: 20px;
        font-size: 16px;
        padding:0;
        padding-left: 20px;
        padding-right: 20px;
    }
}

.member_name{
    font-weight:bold;
}

.member_desc{
    min-height: 100px;
    border: 1px solid #5F8FC7;
    border-radius: 15px;
    color: #5F8FC7;
    padding: 10px;
}

/* 學校 */

.school_card{
    background-color: white;
    border-radius: 20px;
    margin-left: 10px;
    margin-right: 10px;
}

.school_card_icon{
    display: flex;
    justify-content: center!important;
}

.school_card_icon img{
    width: 200px;
    height: 200px;
    object-position: center center;
    object-fit: cover;
}

.school_card_body{
    padding: 30px;
}

@media (max-width: 767.98px){
    .school_card_body a{
        width: 100%;
        border-radius: 50vh;
    }
}


.school_name{
    text-align: center!important;
    font-weight: bold;
}

/* 人物介紹(本屆總會長) */

.people_introduction_content{
    background-color: white;
    margin: 50px;
    border-radius: 250px;
    display: none;
}

.people_introduction_content_rwd{
    margin-top: 30px;
    border-radius: 30px;
    background-color: white;
    margin-left: 5%;
    margin-right: 5%;
    font-size: 16px;
}

.people_introduction_content_rwd .title{
    text-align: center;
    padding: 10px;
}

.people_introduction_content_rwd .title > span{
    border-bottom: 1px dashed #a5a9ad;
    padding: 10px;
}

.people_introduction_content_rwd .sub_title{
    color: black;
    font-size: 28px;
    text-align: center;
    padding: 10px;
}

@media (min-width: 992px) {
    .people_introduction_content_rwd{
        display: none;
    }

    .people_introduction_content{
        display:block;
    }
}

.people_introduction_content img{
    width: 25%;
    aspect-ratio: 1 / 1;
    object-position: center top;
    object-fit: cover;
    border-radius: 50% 50% 50% 50%;
}

.people_introduction_content_rwd img{
    border-radius: 30px 30px 0 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-position: center top;
    object-fit: cover;
}

.people_introduction_text_odd,.people_introduction_text_event{
    width: 75%;
}

.people_introduction_text_odd{
    float: right;
}

.people_introduction_text_event{
    float: left;
}

.people_introduction_text_odd > .title, .people_introduction_text_event > .title{
    padding-top: 75px;
    font-size: 24px;
    font-weight: bold;
    color: #094A94;
    text-align: center!important;
}

.people_introduction_text_odd > .sub_title, .people_introduction_text_event > .sub_title{
    font-size: 44px;
    color: #222222;
    text-align: center!important;
}

/* 行事曆 */

.calendar_content{
    padding: 5%;
}

.calendar_content > img{
    width: 100%;
    height: auto;
}

/* 活動花絮 */

.campaign_content{
    margin-bottom: 30px;
}
.campaign_content > img{
    border-radius: 20px;
    object-position: center center;
    object-fit: cover;
}

.campaign_album, .campaign_album_photo{
    width: 100%;
    aspect-ratio: 5 / 3;
    border-radius: 20px;
    cursor: pointer;
}
.campaign_album{
    background-color: rgb(210, 231, 255);
    padding: 20px;
}
.campaign_album h4 {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.campaign_album_photo img{
    width: 100%;
    aspect-ratio: 4 / 3;
    object-position: center center;
    object-fit: cover;
}

.campaign_album_photo:hover {opacity: 0.7;}

/* The Modal (background) */
.album_modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (Image) */
.album_modal .modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}


/* Add Animation - Zoom in the Modal */
.album_modal .modal-content, .album_modal #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

/* The Close Button */
.album_modal .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 99;
}

.album_modal .close:hover,
.album_modal .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
    .album_modal .modal-content {
        width: 100%;
    }
}

.campaign_content > img, .yt_iframe{
    margin-bottom: 25px;
    width: 100%;
    aspect-ratio: 5 / 3;
}

.yt_iframe > iframe{
    width: 100%;
    height: 100%;
}

.campaign_description_odd, .campaign_description_event, .campaign_video_desc_odd, .campaign_video_desc_event{
    padding: 50px;
    line-height: 30px;
    background-color: rgb(210, 231, 255);
    border-radius: 20px;
}

@media (min-width: 768px) {
    .campaign_content > img, .yt_iframe{
        width: 40%;
    }
    
    .campaign_description_odd, .campaign_video_desc_odd{
        float: right;
        margin-left: 3%;
    }
    
    .campaign_description_event, .campaign_video_desc_event{
        float: left;
        margin-right: 3%;
    }

    .campaign_description_odd, .campaign_description_event, .campaign_video_desc_odd, .campaign_video_desc_event{
        width: 57%;
    }
}

/* 刊物、畢冊 */
.publication_image_area{
    border: 1px solid #a5a9ad;
    margin: 15px;
    aspect-ratio: 1 / 1;
}

.publication_image_area > img{
    width: 100%;
    height: 100%;
    object-position: center center;
    object-fit: contain;
}

/* 教育1999 */
.page_title p, .page_description p{
    text-align: center!important;
}
.title_name{
    font-size: 24px;
    font-weight: bold;
}

.page_title hr{
    border: 2px;
}

.required_label{
    background-color: rgb(105, 142, 192);
    color: white;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: 10px;
    border-radius: 20px;
    font-size: 12px;
}

.button_group button{
    padding-left: 100px;
    margin-left: 20px;
    padding-right: 100px;
    margin-right: 20px;
    border-radius: 20px;
}

@media (max-width: 767.98px){
    .button_group button{
        margin-left: 0px;
        margin-right: 0px;
        width: 100%;
        margin-bottom: 10px;
    }
}

.err_msg{
    color: red;
    display: none;
}

/* policy */
.policy_title{
    font-size: 24px;
    font-weight: bold;
}

.policy_sub_title{
    font-size: 20px;
    font-weight: bold;
}