/* 匯入外部CSS--------------------------- */
@import url("../style_latest_news/style_latest_news.css");


/* 大圖news ------------------------------- */

.news-card.big_news{
    background-color: unset;
}
.news-card.big_news::before{
    background: #00000085;
    z-index: 1;
    
    transition-timing-function: unset;
    -webkit-transform: unset;
    transform: unset;
}
.news-card.big_news a{
    position: relative;
    padding: unset;
}
.news-card.big_news a:hover{
    
}


/* 左側圖片-------------------- */
.news-card_left.big_news_left{
    max-width: unset;
}
.big_news_left .news_img{
    padding-top: unset;
    aspect-ratio: 125 / 54;
    z-index: 0;
}
.big_news_left .news_img img{}


/* 右側資訊-------------------- */
.big_news .news-card_right.big_news_right{
    padding: clamp(1.875rem, 1.208rem + 1.08vw, 2.5rem);
    /* padding-right: unset; */
    position: absolute;
    bottom: 0;

    flex-direction: column;
    align-items: start;
}

.news-card_right.big_news_right .news-title{
    font-size: clamp(1.5rem, 0.967rem + 0.86vw, 2rem);
    font-weight: bold;
    color: var(--white_color);
}

/* 電腦版隱藏區塊 */
/* .news-card_right.big_news_right .news-date,
.news-card_right.big_news_right .news-brief, */
.news-card_right.big_news_right .views{
    display: none;
}

.news-card.big_news:hover .news-date, 
.news-card.big_news:hover .news-title, 
.news-card.big_news:hover .news-brief {
    color: #fff;
}


@media (max-width: 480px) {

    /* 外層區塊------------------ */
    .news-card.big_news{
        background-color: var(--dark_color);
    }
    .news-card.big_news::before {
        background: var(--primary_color);
        transition-timing-function: ease-out;
        -webkit-transform: scaleX(0);
        transform: scaleX(0);
    }
    .news-card.big_news:hover:before {
        -webkit-transform: scaleX(1);
        transform: scaleX(1);
        -webkit-transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66);
        transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66);
        z-index: 0;
    }
    .news-card.big_news a{
        position: unset;
        padding: 1.5rem;
    }




    /* 圖片區塊---------------------*/
    .news-card_left.big_news_left{
    }
    .big_news_left .news_img{
        padding-top: 100%;
        aspect-ratio: unset;
    }
    .big_news_left .news_img {
        z-index: 1;
    }



    /* 資訊區塊---------------------*/
    .big_news .news-card_right.big_news_right{
        padding: unset;
        position: unset;
        bottom: unset;
    }
    .news-card_right.big_news_right .news-title{
        font-size: clamp(1rem, 0.867rem + 0.22vw, 1.125rem); /* 16 18 */
        font-weight: normal;
        color: inherit;
    }
    .news-card.big_news:hover  .news-title{
        color: var(--black_color);
    }
    .big_news .news-card_right.big_news_right .news-date,
    .big_news .news-card_right.big_news_right .views{
        display: -webkit-box;
        color: var(--white_color);
    }

    .big_news .news-card_right.big_news_right .news-brief{
        color: rgba(255 255 255 / 0.4);
    }


}



/* List----------------------------------- */
.news-card {
    padding: unset;
    display: flex;
}

.news-card:hover .views {
    color: var(--dark_color);
}

.news-card a {
    flex-wrap: nowrap;
    align-items: center;
    padding: 1.5rem;
    flex: 1;
}

.news-card a .news-card_content{
    display: flex;
}

.news-card .news-card_right{
    width: 100%;
    color: #fff;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    row-gap: 0.25rem;
    column-gap: 1.5rem;
    text-decoration: none;
}

.news-info {
    display: flex;
    flex-direction: column;
    gap: clamp(0.625rem, 0.492rem + 0.22vw, 0.75rem); /* 10 12 */
    position: relative;
    z-index: 2;
}

/* 列表圖片---------------------------- */

.news-card_left{
    width: 100%;
    max-width: 7.5rem; /* 120 */
    overflow: hidden;
    border-radius: 15px;
}

.news_img{
    position: relative;
    /* padding-top: 100%; */
    aspect-ratio: 3 / 2;
    overflow: hidden;
    transform: scale(1);
    transition: all .3s ease;
}

.news_img img{
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* 標籤區塊---------------------------- */
.news-info_top{
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 5px;
}

.news_tag{
    padding: 3px 15px;
    box-sizing: border-box;
    border-radius: 25px;
    font-size: .8125rem;
    word-break: keep-all;

    display: flex;
    justify-content: center;

    min-width: 3.75rem;
}

/* 置頂--- */
.top_tag {
    border: 0.5px solid var(--primary_color);
    background-color: var(--black_color);
    color: var(--primary_color);
}

/* 熱門--- */
.hot_tag {
    border: 0.5px solid var(--black_color);
    background-color: var(--primary_color);
    color: var(--black_color);
}

/* 觀看人數 */
.views{
    font-size: clamp(0.75rem, 0.617rem + 0.22vw, 0.875rem);
    font-family: var(--foreign_font);
}


/* 資訊區塊文字調整-------------------------------- */

/* 日期 */
.news-date{
    font-size: clamp(0.875rem, 0.742rem + 0.22vw, 1rem); /* 14 16 */
}

/* 標題 */
.news-title{
    font-size: clamp(1rem, 0.867rem + 0.22vw, 1.125rem); /* 16 18 */
}

/* 內文簡述 */
.news-brief{
    font-size: clamp(0.75rem, 0.617rem + 0.22vw, 0.875rem); /* 12 14 */
}



@media (max-width: 760px) {

    .news-card {
        width: 100%;
    }

    .news-card .news-card_right {
        flex-direction: column;
        align-items: start;
        /*gap: clamp(0.313rem, -0.021rem + 0.54vw, 0.625rem);*/ /* 5 10 */
        gap: .625rem; /* 10 */
    }

    .news-card a {
        /*gap: clamp(0.625rem, -0.042rem + 1.08vw, 1.25rem);*/ /* 10 20 */
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
        .news-card a {
            flex-direction: column;
        }
        .news-card_left{
            max-width: unset;
        }
        .news-card .news-card_right {
            width: 100%;
        }
}

