/* --- MODULE TIN TỨC - TỔNG CHIỀU CAO 460PX --- */

/* 1. Khung bao ngoài cùng */
.UIHotnewsModule_bluehotnews .HotnewsControl {
    margin-top: 20px;
    padding: 5px;
    box-shadow: var(--box-category);
    border-radius: 4px;
    height: 460px; /* Chiều cao cố định theo yêu cầu */
    box-sizing: border-box; /* Đảm bảo padding không làm tăng kích thước khung */
    display: flex;
    flex-direction: column; /* Sắp xếp Header và nội dung theo chiều dọc */
    background-color: #fff;
    overflow: hidden; /* Cắt bỏ bất kỳ phần nào tràn ra khỏi 460px */
}

/* 2. Tiêu đề (Header) */
.UIHotnewsModule_bluehotnews .HotnewsControl .Header {
    font-weight: bold;
    text-transform: uppercase;
    background-color: #0856BB;
    padding: 0 15px;
    line-height: 30px;
    height: 30px; /* Khóa chiều cao tiêu đề */
    color: #fff;
    font-size: 13px;
    flex-shrink: 0; /* Giữ nguyên chiều cao, không bị co ép */
}

.UIHotnewsModule_bluehotnews .HotnewsControl .Header span {
    font-size: 13px;
    font-weight: 700;
    line-height: 30px;
    color: #ffffff;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-block;
    font-family: Arial, sans-serif;
}

/* 3. Khung cuộn tin (Scroll Area) */
.UIHotnewsModule_bluehotnews .HotnewsControl .HotnewsScroll {
    margin-top: 5px;
    overflow-y: auto; /* Kích hoạt thanh cuộn dọc */
    overflow-x: hidden;
    border: 1px solid #f2f2f2;
    /* Tính toán: 460px - 30px(header) - 10px(padding dọc) - 5px(margin) = 415px */
    height: calc(460px - 45px) !important; 
    position: relative;
    box-sizing: border-box;
}

/* 4. Danh sách tin (List) */
.UIHotnewsModule_bluehotnews .HotnewsControl .HotnewsList {
    padding: 0 5px !important;
    margin: 0;
    height: auto; /* Để nội dung tự giãn nở bên trong khung cuộn */
    display: block;
}

/* 5. Từng mục tin tức (Item) */
.UIHotnewsModule_bluehotnews .HotnewsControl .HotnewsList .HotnewsItem {
    background: rgba(0, 0, 0, 0) url("https://storage-vnportal.vnpt.vn/cto-chinhquyen/4972/Banner/i1.png") no-repeat scroll left center;
    font-size: 15px;
    padding: 10px 15px;
    clear: both;
    display: block;
    position: relative;
    border-bottom: 1px solid #f2f2f2;
}

.UIHotnewsModule_bluehotnews .HotnewsControl .HotnewsList .HotnewsItem:last-child {
    border-bottom: none; /* Bỏ viền dưới cho mục cuối cùng */
}

/* Ảnh trong tin (nếu có hiển thị lại) */
.UIHotnewsModule_bluehotnews .HotnewsControl .HotnewsList .HotnewsItem img {
    display: none; /* Đang để ẩn theo code cũ của bạn */
    float: left;
    height: 50px;
    margin-right: 6px;
    vertical-align: top;
    width: 65px;
}

/* Link và Tiêu đề bài viết */
.UIHotnewsModule_bluehotnews .HotnewsControl .HotnewsList .HotnewsItem a {
    text-decoration: none;
}

.UIHotnewsModule_bluehotnews .HotnewsControl .HotnewsList .HotnewsItem .ArticleTitle {      
    color: #333;
    font-family: 'Roboto', Arial, sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 15px;
    line-height: 22px;
    text-align: left;
    display: block;
}

.UIHotnewsModule_bluehotnews .HotnewsControl .HotnewsList .HotnewsItem .ArticleTitle:hover {
    color: #0856BB;
}

/* Trạng thái active và Ngày đăng */
.UIHotnewsModule_bluehotnews .HotnewsControl .HotnewsList .active {
    background-color: #f2f2f2;
}

.UIHotnewsModule_bluehotnews .HotnewsControl .ArticlePostDate {
    font-size: 12px;
    color: #6c757d;
    text-align: right;
    margin-top: 5px;
    display: block;
}

/* Tùy chỉnh thanh cuộn cho đẹp hơn (scrollbar) */
.UIHotnewsModule_bluehotnews .HotnewsControl .HotnewsScroll::-webkit-scrollbar {
    width: 3px;
}
.UIHotnewsModule_bluehotnews .HotnewsControl .HotnewsScroll::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 10px;
}
.UIHotnewsModule_bluehotnews .HotnewsControl .HotnewsScroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}