﻿/* ==========================
   Reset
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#f5f5f5;
    font-family:"Microsoft JhengHei",sans-serif;
    color:#333;
}

/* ==========================
   Container
========================== */

.container{
    width:100%;
    max-width:1200px;
    margin:auto;
    padding:20px;
}

/* ==========================
   Tabs
========================== */

.tabs{
    display:flex;
    gap:10px;
    overflow-x:auto;
    white-space:nowrap;
    padding-bottom:15px;
    margin-bottom:20px;
    scrollbar-width:none;
}

.tabs::-webkit-scrollbar{
    display:none;
}

.tab{

    border:none;
    background:#ffffff;

    color:#444;

    padding:10px 20px;

    border-radius:30px;

    cursor:pointer;

    font-size:16px;

    transition:.25s;

    box-shadow:0 2px 5px rgba(0,0,0,.08);

}

.tab:hover{

    background:#0d6efd;

    color:#fff;

}

.tab.active{

    background:#0d6efd;

    color:#fff;

}

/* ==========================
   News List
========================== */

.news-list{

    display:flex;

    flex-direction:column;

    gap:12px;

}

.news-item{

    background:#fff;

    border-radius:10px;

    padding:18px;

    transition:.25s;

    cursor:pointer;

    box-shadow:0 1px 5px rgba(0,0,0,.08);

}

.news-item:hover{

    transform:translateX(6px);

    box-shadow:0 8px 20px rgba(0,0,0,.12);

}

.news-title{

    font-size:20px;

    font-weight:bold;

    margin-bottom:10px;

    line-height:1.5;

}

.news-info{

    display:flex;

    justify-content:space-between;

    color:#777;

    font-size:14px;

}

.category{

    color:#0d6efd;

    font-weight:bold;

}

/* ==========================
   Mobile
========================== */

@media(max-width:768px){

.news-title{

    font-size:17px;

}

.news-info{

    flex-direction:column;

    gap:5px;

}

}