.AdvertisementTopLeft {
    left: 0;
    position: fixed;
    top: 20px;
    z-index: 5;
}
.AdvertisementTopRight {
    position: fixed;
    right: 0;
    top: 20px;
    z-index: 5;
}

.AdvertisementCenter {
    position: relative;
    top: 0!important;
    left: 0!important;
}
.AdvertisementBG {
    width: 0!important;
    height: 0!important;
}
.AdvertisementCenter a {
    color: #424242;
    font: 12px arial;
    text-decoration: none;
}
.AdvertContent .qc-content{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
    justify-content: space-between;
}
.AdvertContent .qc-content img{
   object-fit: fill;
    border-radius: .5rem;
}
.AdvertContent .qc-content>div{
    width: calc(50% - 10px);
}
.AdvertContent .qc-content .col2{
    display: flex;
    gap: 20px;
    flex-direction: column;
    height: 100%;
}
.AdvertContent .qc-right img{
     width: 100%;   
}
.AdvertContent .qc-right div img{
     margin: 5px 0;
}
.AdvertContent  .banhohanhchinh img{
        width: 100%;
}
.AdvertContent .title-bando span{
    color: #fff;
    min-height: 40px;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    font-size: 16px;
    font-weight: 500;
    background-color: #d21f1f;
}
.AdvertContent .qc-left{
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}
.AdvertContent .qc-left img{
    width: 100%;
}
@media only screen and (max-width: 768px){
    .AdvertContent .qc-content>div {
    width: 100%;
}
} 

/* --- CẤU TRÚC CHUNG (PC) --- */
.ads2 {
    width: 100%;
    padding: 20px 0;
    box-sizing: border-box;
}

/* Flexbox căn giữa */
.ads2 .textwidget > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Căn giữa màn hình */
    gap: 15px;
    margin-bottom: 15px;
}

/* Xóa style text-align cũ */
.ads2 .textwidget > div {
    text-align: inherit !important;
}

/* Style cho khung ảnh (Desktop) */
.ads2 .textwidget a {
    display: block;
    width: 250px;   /* Kích thước PC */
    height: 137px;  /* Kích thước PC */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.ads2 .textwidget a:hover {
    transform: translateY(-3px);
}

.ads2 img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Ép ảnh vừa khít khung */
    display: block;
}

/* --- RESPONSIVE MOBILE (Dưới 768px) --- */
@media only screen and (max-width: 768px) {
    .ads2 {
        padding: 10px 0;
    }

    /* KÍCH HOẠT CHẾ ĐỘ LƯỚI (GRID) */
    .ads2 .textwidget > div {
        display: grid !important;
        
        /* QUAN TRỌNG: Tạo 2 cột, mỗi cột rộng đúng 150px */
        grid-template-columns: 150px 150px !important; 
        
        /* Căn giữa toàn bộ khối lưới vào giữa màn hình điện thoại */
        justify-content: center !important;
        
        /* Khoảng cách giữa các ô */
        gap: 10px !important; 
        
        margin-bottom: 10px;
    }

    /* Thiết lập kích thước cho từng ô */
    .ads2 .textwidget a {
        width: 150px !important;  /* Bắt buộc rộng 150px */
        height: 80px !important;  /* Bắt buộc cao 80px */
        margin: 0 !important;     /* Xóa mọi căn lề thừa */
        display: block;
    }

    .ads2 img {
        width: 100%;
        height: 100%;
        object-fit: fill; /* Ép ảnh giãn đầy khung */
        border-radius: 5px;
    }
}