/* 原本的 style.css 已經被寫爛了，因此透過此 css 覆蓋過去 */
.white-bg {
    background-color: whitesmoke;
}
.flex {
    display: flex;
}
.flex-wrap {
    display: flex;
    flex-wrap: wrap;
}
/* 480 px 以下，才會打開 */
.mobile-container {
    display: none;
}
.news-type {
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 30px 0 0 0;
    font-size: 15px;
}
.news-type__menu {
    padding: 10px 20px;
    border-left: 1px solid white;
    text-shadow: black 0px 1px 0.5px
}
.news-type__menu:last-child {
    border-right: 1px solid white;
}
.news-type__menu:hover {
    color: #ffae00;
}
.news-type__menu--actived {
    color: #ffae00;
}

/* ESG 總覽頁面 */
.esg {
    /* background-color: blanchedalmond; */
    color: black;
    font-size: 16px;
}
.esg__year {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px 15px;
    color: cornflowerblue;
    width: 50px;
    height: 50px;
    border: 3px solid cornflowerblue;
    border-radius: 50%;
}
.esg__title {
    position: relative;
    margin: 0px 40px 0px 25px;
    padding: 0px 0px 15px 35px;
    border-left: 3px solid cornflowerblue;
}
.esg__title::before {
    content: '●一';
    font-size: 22px;
    color: cornflowerblue;
    position: absolute;
    top: -3px;
    left: -8px;
}
.esg a {
    color: black;
    text-decoration: none;
}
.esg a:hover {
    color: cornflowerblue;
}

.news__hr {
    width: 100%;
    margin: 0px 0px 70px 0px;
    border: 1px solid rgba(0, 0, 0, 0);
    box-shadow: 0px 10px 5px 0px rgba(0, 0, 0, .5);
}
.news__hr:last-child {
    opacity: 0;
}
.back-btn {
    display: inline-block;
    height: 22px;
    width: 80px;
    background: url(../images/back.png) no-repeat center center;
    margin-bottom: 30px;
}
.back-btn:hover {
    background: url(../images/back_2.png) no-repeat center center;
}

/* 以下是過去 style.css 內的 css 透過檔案引入順序強蓋過去並重置 */
#project_list {
    margin-top: 110px;
    padding: 0;
}
.pro_content {
    padding: 0;
}
.proj_detail_wrap {
    padding: 0;
}
/* style.css 強蓋重置結束 */

/* 以下斷點基本是跟隨舊的設計跑，所以可能會有點怪異 */
@media screen and (max-width: 1024px) {
    .news-type__menu {
        background: rgb(225, 225, 225);
        border-color: rgb(133, 133, 133);
        color: black;
        text-shadow: none;
    }
    .news-type__menu:last-child {
        border-right: none;
    }
    .news-type__menu:first-child {
        border-left: none;
    }
    .news-type__menu:hover {
        background: #ffae00;
        color: black;
    }
    .news-type__menu--actived {
        background: #ffae00;
    }

    #project_list {
        margin-top: 60px;
    }
}

/* 手機版 480 px 以下，才會打開 */
@media screen and (max-width: 480px) {
    a:hover {
        color: unset;
        text-decoration: none;
    }
    .mobile-container {
        display: block;
        margin-top: 60px;
    }
    /* 手機版首頁區塊 */
    .index-news-type {
        display: flex;
    }
    .index-news-type__menu {
        flex: auto;
        margin-bottom: 30px;
        padding: 10px 7px;
        border-right: 1px solid rgb(133, 133, 133);
        background: rgb(225, 225, 225);
        text-align: center;
        color: black;
        font-size: 2rem;
    }
    .index-news-type__menu:last-child {
        border-right: none;
    }
    .index-news-type__menu--actived {
        background: rgba(255, 174, 0, 0.9);
        border-right: none;
    }

    /* 首頁卡片 */
    .container-480 {
        display: flex;
        flex-wrap: wrap;
    }
    .card {
        width: 100%;
        margin: 0px 10% 30px 10%;
    }
    .card__img {
        width: 100%;
    }
    .card__title {
        margin-top: 5px;
        font-size: 24px;
        color: white;
    }
    /* 最新消息頁面 */
    .news-type__menu {
        padding: 10px;
    }
    
}