.bg{
    padding-bottom: 20px;
    background: url(https://www.utsc.com.tw/material-alias/opinion/bg.jpg) no-repeat center;
    background-size: cover;
    background-attachment: fixed;
}

.school-list{
    width: 1200px;
    margin: 0 auto;
    background: #fff;
}

.school-list img { 
    width: 100%;
}

.school-list .kv img:nth-child(2),
.school-list .kv img:last-child{
    display: none;
}


@media(max-width:1250px){
.school-list{
    width: 992px;
}
}

@media(max-width:1024px){
.school-list{
    width:768px;
}
}

@media screen and (max-width: 798px){
.service_box ul {
    width: 100%;
    margin: 0;
}
    
.back{
    width: 50%;
}
    
.back li {
    width: 50%;
    float: left;
}
    
.service_box {
    width: 50%;
    margin-left: 50%;
}
    
.back li:first-child {
    border-right: 1px solid #f1e5d8;
}
    
.school-list {
    width:98%;
}
    
.school-list .kv img:first-child{
    display: none;
}
    
.school-list .kv img:nth-child(2){
    display: block;
}
}

@media screen and (max-width: 576px){
.school-list .kv img:nth-child(2){
    display: none;
}
    
.school-list .kv img:last-child{
    display: block;
}    
}

@media screen and (max-width: 400px){
.back a, .back a:hover {
    font-size: 16.5px;
    line-height: 40px;
}
}




/*上方選單*/
.breadcrumb {
    width: auto;
    margin-left: 25px;
}

#hi-tab{  
    display: block;
    width: 1200px;
    padding: 5px 25px;
    white-space: nowrap;
    background: #fff;
}

#hi-tab ul{  
    margin: 0;
    margin-top: -40px;
}

#hi-tab ul li{
    display: inline-block;
    margin-right: 5px;
    background: #e5e5e5;
    border-radius: 4px;
}


#hi-tab ul li:hover{
    background: #46a3c7;
}

#hi-tab ul li:first-child{
    background: none;
}

#hi-tab ul li a{
    display: block;
    width: 120px;
    color: #000;
    text-align: center;
    line-height: 44px;
    cursor: pointer;
    border-radius: 4px;
}

#hi-tab ul li a:hover{
    color: #ffffff;
    text-decoration: none;
}

#hi-tab ul li:first-child a,
#hi-tab ul li:first-child .hi-select-btn.hi-selected-full{
    display: inline-block;
    width: auto;
    font-size: 22px;
    font-weight: 400;
    color: #237494;
    padding-right: 10px;
    background: #fff
}


#hi-tab .title{
    font-size: 22px;
}



@media(max-width:1250px){
#hi-tab {
    width: 992px;
}
}

@media(max-width:1024px){
#hi-tab {
    width: 768px;
}
}

@media(max-width:798px){
#hi-tab {
    width: 100%;
    white-space: normal;
}
    
#hi-tab ul li:first-child{
    width: 100%;
    text-align: left;
    margin-bottom: 5px;
}
}

@media(max-width:576px){
.breadcrumb {
    margin-left: 3%;
    margin-bottom: 0;
}
    
#hi-tab {
    padding: 5px 3%;
}
}

@media(max-width:400px){
#hi-tab ul li a {
    width: 110px;
}
}







/*地圖*/
.school-list .map {
    position: sticky;
    width: 40%;
    float: right;
    top: 30px;
    margin-right: 25px;
    z-index: 89;
}

.school-list.usa .map {
    top: 120px;
}

.school-list.canada .map {
    top: 70px;
}

.school-list.australia .map {
    top: 70px;
}

.school-list.newzealand .map {
    top: 5px;
}

.school-list .map-m {
    display: none;
}

@media(max-width:1250px){
.school-list .map {
    width: 38%;
}
}

@media(max-width:1024px){
.school-list .map {
    top: 60px;
    margin-top: 60px;
}
}

@media(max-width:798px){
.school-list .map {
    position: relative;
    width: 90%;
    float: none;
    top: auto;
    margin: 10px auto 20px;
    z-index: auto;
}
    
.school-list.usa .map,
.school-list.canada .map,
.school-list.australia .map,
.school-list.newzealand .map{
    top: auto;
}
}

@media(max-width:576px){

}



/*學校列表*/
.school-list .item {
    padding: 0 25px;
    margin-top: 15px;
}

.school-list .item h2{
    font-size: 20px;
    color: #fff;
    font-weight: 400;
    padding: 9px 20px 18px;
    background: url(https://www.utsc.com.tw/material-alias/individual-study/title-bg.png) no-repeat left top;
}

.school-list .item ul{
    margin-left: 35px;
    list-style-type: decimal-leading-zero;
}

.school-list .item ul li{
    margin-top: 10px;
}

.school-list .item ul li a{
    color: #000;
}

.school-list .item ul li a:hover{
    color: #237494;
    text-decoration: none;
}

.school-list .item ul li a:visited { 
    color: #606;
}

.school-list .item ul li a h3{
    display: inline-block;
    font-size: 18px;
    margin-right: 5px;
}

@media(max-width:1024px){
.school-list .item ul li a span{
    display: block;
    margin-top: -5px;
}
}
    
@media(max-width:576px){
.school-list .item {
    padding: 0 3%;
}
}





/*計畫留遊學的國家*/
.school-list .more-country {
    padding: 25px;
    margin-top: 25px;
    border-top: 1px solid #ddd;
}

.school-list .more-country h2.sub-title{
    font-size: 28px;
    margin-bottom: 20px;
}

.school-list .more-country ul{
    margin: 0;;
}

.school-list .more-country li{
    display: inline-block;
    width: 15.5%;
    margin-right: 0.9%;
    text-align: center;
}

.school-list .more-country li:last-child{
    margin-right: 0;
}

.school-list .more-country li a h4{
    color: #000;
    font-size: 18px;
    font-weight: 300;
    margin-top: 8px;
}

.school-list .more-country li a:hover{
    text-decoration: none;
}

@media(max-width:1250px){
.school-list .more-country li{
    width: 15.4%;
}
}

@media(max-width:1024px){
.school-list h2.sub-title{
    font-size: 24px;
}
    
.school-list .more-country li {
    width: 15.3%;
} 
}

@media screen and (max-width: 798px){
.school-list .more-country { 
    margin: 20px auto 0;
}
    
.school-list h2.sub-title{
    font-size: 22px;
}
    
.school-list .more-country li{
    width: 15%;
}  
    
.school-list .more-country li a h4{
    font-weight: 500;
}
}

@media screen and (max-width: 576px){
.school-list h2.sub-title{
    font-size: 20px;
}
    
.school-list .more-country li{
    width: 31.1%;
}  
}
/* LINE button: matching individual-study.css. */
.back.study-country-back li.tour-line {
    background: #00c51f;
}

.back.study-country-back li.tour-line:hover, .back.study-country-back li.tour-line:active {
    background: #00a91b;
}

.back.study-country-back li.tour-line a {
    display: block;
}

.back.study-country-back li.tour-line img {
    width: 35px;
    margin: 0 2px 4px 4px;
    vertical-align: baseline;
}

/* 手機底列：48px，兼容原有 tour 與 btn 按鈕類別。 */
@media (max-width: 798px) {
    html body:has(ul.back.study-country-back) ul.back, html body:has(ul.back.study-country-back) .service_box {
        position: fixed !important;
        top: auto !important;
        right: auto !important;
        bottom: 0 !important;
        width: 50% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        z-index: 99999 !important;
        transform: none !important;
    }

    html body:has(ul.back.study-country-back) ul.back {
        left: 0 !important;
    }

    html body:has(ul.back.study-country-back) .service_box {
        left: 50% !important;
    }

    html body:has(ul.back.study-country-back) .service_box > ul {
        display: flex !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html body:has(ul.back.study-country-back) ul.back, html body:has(ul.back.study-country-back) ul.back > li, html body:has(ul.back.study-country-back) ul.back > li > a, html body:has(ul.back.study-country-back) .service_box, html body:has(ul.back.study-country-back) .service_box > ul, html body:has(ul.back.study-country-back) .service_box ul li, html body:has(ul.back.study-country-back) .service_box ul li button {
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        box-sizing: border-box !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    html body:has(ul.back.study-country-back) ul.back > li, html body:has(ul.back.study-country-back) .service_box ul li {
        display: block !important;
        float: none !important;
        flex: 0 0 50% !important;
        width: 50% !important;
        min-width: 0 !important;
        max-width: 50% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html body:has(ul.back.study-country-back) ul.back > li > a, html body:has(ul.back.study-country-back) .service_box ul li button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        font-family: "Noto Sans TC", Arial, sans-serif !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 48px !important;
        letter-spacing: 0px !important;
        word-spacing: 0px !important;
        text-indent: 0 !important;
        white-space: nowrap !important;
        writing-mode: horizontal-tb !important;
        text-decoration: none !important;
    }

    html body:has(ul.back.study-country-back) ul.back > li > a, html body:has(ul.back.study-country-back) .service_box ul li:first-child > button {
        box-shadow: inset -1px 0 rgba(255,255,255,.9) !important;
    }

    html body:has(ul.back.study-country-back) ul.back > li::before, html body:has(ul.back.study-country-back) ul.back > li::after, html body:has(ul.back.study-country-back) .service_box ul li::before, html body:has(ul.back.study-country-back) .service_box ul li::after {
        display: none !important;
    }

    html body:has(ul.back.study-country-back) ul.back > li:is(.tour-line, .btn-line) > a > img {
        display: block !important;
        flex: 0 0 36px !important;
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        margin: 0 !important;
        padding: 0 !important;
        object-fit: contain !important;
        transform: translateY(1px) !important;
    }

    html body:has(ul.back.study-country-back) ul.back > li:is(.tour-line, .btn-line) > a > span, html body:has(ul.back.study-country-back) ul.back > li:is(.tour-home, .btn-home) img {
        display: none !important;
    }

    html body:has(ul.back.study-country-back) ul.back > li:is(.tour-home, .btn-home) > a span {
        font: inherit !important;
        letter-spacing: 0px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html body:has(ul.back.study-country-back) .back-to-top {
        bottom: 76px !important;
    }
}
