﻿body {
}
#MainContent {
    
    padding: 10px 5px !important;
}

.container, .container-fluid, .menu-main, .sticky-top, .container-fluid.qiMenuTime_flex, div#banner, footer, .left_detail_content .list-unstyled {
    max-width: 100% !important;
}
    .container main {
        /*width: 95%;*/
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
.hntexttop
{
    width:70% !important
}
.hnimgtop
{
        width:30% !important
}
.item-ratio {
    object-fit: cover !important;
}
.fit-obj {
    object-fit: cover !important;
}
.img-lv2 {
    width: 100%;
    height: auto;
    max-height: 83px;
}
/* Slideshow homegd131:
   - BỎ ép "#amazingslider-12 { height:max-content }": max-content làm container co ~0 (slide
     là ABSOLUTE) -> slide tràn xuống ĐÈ khối "Tin tức sự kiện". Bỏ đi để amazingslider tự set
     chiều cao thật, chứa slide -> hết đè.
   - .demo-slider-3: BỎ margin-bottom 8em (128px) thừa (nguồn KHOẢNG TRẮNG phải: cột slideshow
     cao 638 trong khi cột "Tin mới nhất" chỉ ~498). min-height chỉ còn floor an toàn, height auto
     -> cột ôm SÁT slider thật. */
/* Reservation CO GIÃN cho slider: ảnh (#amazingslider-12, in-flow) tự co giãn theo bề rộng
   cột (JS set, vd 324px@628 / 484px@938...); dải THUMBNAILS là ABSOLUTE, cao CỐ ĐỊNH ~204px,
   không tính vào chiều cao -> dùng padding-bottom (KHÔNG min-height cố định) để chừa chỗ cho
   thumbnails ở MỌI khổ màn -> khối tin dưới không bị đè. (min-height cố định sai ở màn rộng.) */
.demo-slider-3 {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 210px !important;
    margin: 0 auto 8px !important;
}
div#amazingslider-12, .left_detail_content .list-unstyled {
    width: 100% !important;
}
/* "Tin mới nhất" (cột phải row đầu) GIÃN đầy chiều cao cột = cao slideshow -> hết khoảng trắng
   giữa nó và "Văn bản" (khối bên dưới). */
.col-sm-4.Content_right { display: flex; flex-direction: column; }
.col-sm-4.Content_right > .qiContainer { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
/* Bỏ padding-left mặc định của qiContainer_border (~14px) -> text SÁT MÉP như khối Văn bản. */
.col-sm-4.Content_right > .qiContainer > .qiContainer_border { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 0 !important; }
/* Danh sách tin: mỗi tin CÁCH NHAU 10px (gap), text SÁT MÉP (~6px, như Văn bản),
   CUỘN DỌC (overflow-y:auto) nếu tin nhiều hơn chiều cao khung. min-height:0 để scroll chạy
   đúng trong flex. */
.col-sm-4.Content_right > .qiContainer > .qiContainer_border > ul.qiheightTop {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 6px 0 !important;
    margin: 0 !important;
}
/* Giữ nguyên chiều cao tin (không để flex bóp méo) -> tràn thì CUỘN, không cắt lem nhem.
   padding NGANG 10px -> chữ cách mép 10px, nền/viền full. */
.col-sm-4.Content_right ul.qiheightTop > li { flex: 0 0 auto !important; padding-left: 10px !important; padding-right: 10px !important; }

/* ===== Khối VĂN BẢN: bỏ chiều cao cố định gây THỪA khoảng trắng =====
   qistyleall ép .mq13{height:600px} + block bị fix height:638 nhưng chỉ vài tin -> trắng đáy.
   Cho co theo nội dung (max-height 420 + scroll khi nhiều tin). */
.rightitem.van-ban { height: auto !important; min-height: 0 !important; }
.rightitem.van-ban .mq13 { height: auto !important; max-height: 420px !important; overflow-y: auto !important; }
.rightitem.van-ban .mq13 .slick-list { height: auto !important; }
/* Slick (rows:10) set inline width ~310px cho track/slide/li (HẸP hơn khối 475) -> HỞ mép PHẢI.
   Ép full-width + padding 5px 10px (chữ cách mép 10px, các dòng cách nhau 10px = 5+5). */
.rightitem.van-ban .mq13 .slick-track,
.rightitem.van-ban .mq13 .slick-slide,
.rightitem.van-ban .mq13 .slick-slide > div { width: 100% !important; }
.rightitem.van-ban .mq13 ul li {
    width: 100% !important;
    display: block !important;
    padding: 5px 10px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* (Clamp 3 dòng + đồng nhất cỡ/màu tiêu đề tin: ĐÃ chuyển sang skin qistyleall-modern.css,
   bản SCOPE trong .qiContainer_border để không cắt tiêu đề trang chi tiết. Không lặp ở đây.) */

/* ===== Khối tin dạng LIST: CHỮ cách mép ~10px, nhưng NỀN hover + ĐƯỜNG PHÂN CÁCH FULL =====
   Đặt padding NGANG trên LI (nền/border của li full theo mép; nội dung thụt 10px). Container
   bỏ padding. :has(>ul) để CHỈ áp cho khối dạng list, KHÔNG đụng khối featured 2-cột (>.row). */
.qiContainer_border:has(> ul) { padding: 0 !important; }
.qiContainer_border > ul > li { padding: 5px 10px !important; }
/* Font tiêu đề trong .listitem ĐỒNG ĐỀU: item MỚI NHẤT render <a> KHÔNG có class qitieudechinh
   nên thiếu font-weight -> đậm/nhạt lệch. Ép 500 = đúng như .qitieudechinh (qistyleall). */
.listitem > a { font-weight: 500 !important; }
.big_item .item:last-child {
    width: 350px;
}

.bgwhite{
    padding: 0 !important;
}

.width1200 {
    max-width: 100% !important;
}

.w-1300{
    max-width: 100% !important;
}

.right_gallery_home {
    /*right: 0;
    position: relative;
    z-index: 9999;
    pointer-events: auto;*/
}

.left_gallery_home {
    /*left: 0;
    position: relative;
    z-index: 9999;
    pointer-events: auto;*/
}

.adsRight {
    display: none;
}

.adsLeft {
    display: none;
}

article.itemhome {
    padding-left: 30px;
    padding-right: 30px;
}

.right_detail_content {
    width: 100% !important;
}