.news-page{
    max-width:1400px;
    margin:30px auto;
    padding:0 20px;
}

.news-header{
    margin-bottom:25px;
}

.news-header h1{
    font-size:42px;
    color:#0d47a1;
    margin-bottom:10px;
}

.news-header p{
    color:#666;
}

.news-layout{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:25px;
}

.news-sidebar{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.news-box{
    background:#fff;
    border-radius:12px;
    padding:20px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.news-box h3{
    margin-bottom:15px;
    color:#0d47a1;
}

.news-categories{
    list-style:none;
}

.news-categories li{
    padding:12px;
    cursor:pointer;
    border-radius:8px;
}

.news-categories li:hover,
.news-categories li.active{
    background:#eef5ff;
    color:#0d47a1;
    font-weight:700;
}

.featured-item{
    display:flex;
    gap:10px;
    margin-bottom:15px;
}

.featured-item img{
    width:70px;
    height:70px;
    object-fit:cover;
    border-radius:8px;
}

.featured-item h4{
    font-size:14px;
    margin-bottom:5px;
}

.featured-item span{
    font-size:12px;
    color:#888;
}

.news-main{
    background:#fff;
    padding:20px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.news-toolbar{
    display:flex;
    justify-content:space-between;
    margin-bottom:25px;
    gap:15px;
}

.news-toolbar input,
.news-toolbar select{
    padding:12px;
    border:1px solid #ddd;
    border-radius:8px;
}

.news-toolbar input{
    flex:1;
}

.news-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.news-card{
    background:#fff;
    border:1px solid #eee;
    border-radius:12px;
    overflow:hidden;
    transition:.25s;
}

.news-card:hover{
    transform:translateY(-4px);
}

.news-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.news-body{
    padding:18px;
}

.news-date{
    color:#888;
    font-size:13px;
}

.news-body h3{
    margin:10px 0;
    color:#0d47a1;
}

.news-body p{
    color:#666;
    line-height:1.6;
}

.news-body a{
    display:inline-block;
    margin-top:15px;
    color:#0d47a1;
    font-weight:700;
    text-decoration:none;
}

@media(max-width:992px){

    .news-layout{
        grid-template-columns:1fr;
    }

    .news-grid{
        grid-template-columns:1fr;
    }

}
/* =========================
   NEWS DETAIL
========================= */

.news-detail-page{

    padding:40px 20px;
}

.news-detail-container{

    max-width:1000px;

    margin:auto;

    background:#fff;

    padding:30px;

    border-radius:12px;

    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.news-detail-date{

    color:#777;

    font-size:14px;
}

.news-detail-header h1{

    margin-top:10px;

    color:#1565c0;

    font-size:34px;

    line-height:1.4;
}

.news-detail-content{

    margin-top:30px;

    line-height:1.8;

    font-size:16px;
}

.news-detail-content img{

    width:100%;

    border-radius:12px;

    margin:25px 0;
}
/* =========================
   NEWS SLIDER - BALANCED VIEW (NO CROP)
========================= */

.news-slider{
    max-width:780px;     /* nhỏ hơn nữa để gọn */
    margin:20px auto;
}

.news-main-image{
    width:100%;
    height:auto;
    max-height:420px;
    object-fit:cover;
    display:block;

    border-radius:12px;

    background:transparent;
    padding:0;
    box-shadow:none;
}
.news-content-image{
    display:block;
    width:100%;
    max-width:780px;      /* giống kích thước slider */
    height:auto;
    max-height:420px;     /* giống slider */
    object-fit:contain;
    margin:25px auto;
    border-radius:12px;
}

/* Ẩn thumbnail */
.news-thumb-list{
    display:none !important;
}
/* SCROLL BAR */

.news-thumb-list::-webkit-scrollbar{

    height:6px;
}

.news-thumb-list::-webkit-scrollbar-thumb{

    background:#ccc;

    border-radius:10px;
}
/* =========================
   YOUTUBE VIDEO COVER
========================= */

.news-video-cover{

    position:relative;

    display:block;

    width:fit-content;

    max-width:780px;

    margin:20px auto;

    border-radius:12px;

    overflow:hidden;

    text-decoration:none;

    cursor:pointer;
}

/* Ảnh thumbnail */

.news-video-cover img{

    display:block;

    width:100%;

    height:420px;

    object-fit:cover;

    border-radius:12px;

    background:transparent;

    transition:.35s;
}

/* Lớp phủ tối nhẹ */

.news-video-cover::after{

    content:"";

    position:absolute;

    top:0;

    left:0;

    right:0;

    bottom:0;

    background:rgba(0,0,0,.18);

    transition:.3s;
}

/* =========================
   YOUTUBE PLAY BUTTON
========================= */

.news-play-btn{

    position:absolute;

    top:50%;

    left:50%;

    width:90px;

    height:64px;

    background:#ff0000;

    border-radius:18px;

    display:flex;

    justify-content:center;

    align-items:center;

    transform:translate(-50%,-50%);

    z-index:100;

    pointer-events:none;

    box-shadow:0 10px 30px rgba(0,0,0,.35);

    transition:.25s;
}

/* Tam giác trắng */

.news-play-btn .play-icon{

    width:0;

    height:0;

    border-top:12px solid transparent;

    border-bottom:12px solid transparent;

    border-left:20px solid #fff;

    margin-left:5px;
}

/* Hover */

.news-video-cover:hover::after{

    background:rgba(0,0,0,.08);
}

.news-video-cover:hover img{

    transform:scale(1.02);
}

.news-video-cover:hover .news-play-btn{

    transform:translate(-50%,-50%) scale(1.12);

    background:#e60000;
}

.news-video-cover:active .news-play-btn{

    transform:translate(-50%,-50%) scale(.96);
}
/* =========================
   NO NEWS
========================= */

.no-news{

    text-align:center;

    padding:50px;

    color:#888;

    font-size:18px;
}
