.AdvertContent .bandohc .header {
    padding: 17px;
    font-family: Merriweather;
    font-style: normal;
    font-weight: bold;
    font-size: 17px;
    line-height: 21px;
    text-align: center;
    text-transform: uppercase;
    color: #182940;
}

.AdvertContent .category-content {
    display: flex;
    gap: 5px;
    margin: 1px 0;
}

.AdvertContent .gui-phan-anh-main {
    width: 300px;
    padding: 12px 40px 12px 40px;
    border-radius: 4px;
    background: #F3F6FB;
    border: 1px solid #E2E7ED;
    margin: 20px 0;
    cursor: pointer;
}

.AdvertContent .gui-phan-anh label {
    margin: 0;
    cursor: pointer;
    font-family: Roboto;
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 16px;
    letter-spacing: 0.01em;
    color: #FFFFFF;
}

.AdvertContent .gui-phan-anh {
    text-align: center;
}

.AdvertContent .gui-phan-anh a {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.AdvertContent .gui-phan-anh a em {
    content: url(images/guicauhoi.png);
}

.AdvertContent .gui-phan-anh label {
    font-family: Merriweather;
    font-size: 14px;
    font-weight: 700;
    line-height: 23px;
    text-align: center;
    color: #1259A0;
}

.AdvertContent .pmitemlist .item a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

@container AdvertContent (max-width: 1200px) {
    .AdvertContent>.SubMenuLink {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1px;
    }
}

.AdvertContent>.SubMenuLink {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
}

.AdvertContent .banner-images>div {
    position: relative;
}

.AdvertContent .banner-images>div div.text .Text2 {
    font-family: Roboto;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
    color: #f2f2f2;
}

.AdvertContent .banner-images>div div.text .Text1 {
    font-family: Merriweather;
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.AdvertContent .banner-images>div img {
    width: 100%;
    max-width: 400px;
}

.AdvertContent .banner-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}

.AdvertContent .banner-images>div div.text {
    position: absolute;
    padding: 20px;
    height: 100%;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.AdvertContent .bandohc {
    width: 100%;
    text-align: center;
    float: right;
    margin-top: 0;
    background: #F9F9F9;
    border: 1px solid #EEEEEE;
    box-sizing: border-box;
    margin-top: 23px;
}

.AdvertContent .bandohc .footer {
    padding: 12px;
    font-family: Roboto;
    font-style: normal;
    font-weight: normal;
    font-size: 13px;
    line-height: 15px;
    text-align: center;
    color: #3B4E68;
}

.AdvertContent .cn_links_relate .title a {
    color: #DC0000;
    font-family: Roboto;
    font-size: 16px;
    font-weight: 400;
    line-height: 21px;
    letter-spacing: 0em;
    text-align: left;
}

.AdvertContent .cn_links_relate .link {
    font-family: Roboto;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0em;
    text-align: left;
}

.AdvertContent .cn_links_relate .seperator {
    width: 1px;
    height: 26px;
    background: #E2E2E2;
}

.AdvertContent .cn_links_relate {
    display: flex;
    justify-content: center;
    gap: 30px;
    border-top: 1px solid #DDDDDD;
    padding: 20px;
}

.AdvertContent .links_relate {
    display: flex;
    gap: 40px;
}

/*default*/
.pmitemlist1 {
    padding: 20px;
    display: flex;
    gap: 15px;
    height: 140px;
    border: 1px solid #F2F2F2;
    margin-bottom: 15px;
}

.pmitemlist1 .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    background: #F9F9F9;
    border: 1px solid #F2F2F2;
    gap: 10px;
    flex: 1;
}

/*cto edited*/
.pmitemlist {
    padding: 20px;
    display: flex;
    gap: 15px;
    height: 100px;
    border: 1px solid #F2F2F2;
    margin-bottom: 15px;
    align-content: left;
    justify-content: left;
    flex-direction: row;
    align-items: left;
}

.pmitemlist .item {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    padding: 16px 12px;
    background: #F9F9F9;
    border: 1px solid #F2F2F2;
    gap: 10px;
    flex: 1;
    align-items: flex-start;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
}

.pmitemlist .item span {
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    font-family: Merriweather;
    color: #031739;
    text-wrap: nowrap;
}

.pmitemlist .item img {
    width: 32px;
    height: 32px;
}

/* --- PHẦN CHỈNH SỬA MOBILE Ở ĐÂY --- */
@media only screen and (max-width: 768px) {
    .AdvertContent .pmitemlist .item a {
        flex-direction: row;
    }

    .AdvertContent .cn_links_relate .seperator {
        display: none;
    }

    .AdvertContent .cn_links_relate {
        gap: 0;
    }

    .AdvertContent .links_relate {
        gap: 0;
    }

    .AdvertisementBottomRight {
        width: 100vw;
    }

    .pmitemlist {
        flex-direction: column;
        height: auto;
        background: #f9f9f9;
        padding: 12px;
    }

    .AdvertContent .rectangle-gray {
        display: none;
    }

    .pmitemlist .item {
        flex-direction: row;
        align-items: center;
        background: #ffffff;
        padding: 12px;
        gap: 8px;
    }

    /* Đã sửa phần này: Thêm !important để ghi đè style inline trong HTML */
    .pmitemlist .item img {
        width: 20px !important;  /* Kích thước nhỏ cho mobile */
        height: 20px !important; /* Kích thước nhỏ cho mobile */
        flex-shrink: 0;          /* Giữ nguyên tỉ lệ, không bị co lại */
        object-fit: contain;     /* Đảm bảo ảnh hiển thị đẹp trong khung */
    }

    .pmitemlist .item span {
        font-size: 13px;
        line-height: 18px;
        flex: 1;
        white-space: normal;
    }

    .AdvertContent .img-300-600 {
        display: none;
    }

    .AdvertContent .gray-bg {
        display: none;
    }

    .AdvertContent .category-content {
        flex-wrap: wrap;
        margin: 20px 0;
        display: block;
    }

    .AdvertContent .category-content>a {
        width: calc((100% - 20px) / 2);
    }

    .AdvertContent>div>img,
    .AdvertContent>div>a>img {
        width: 100%;
    }

    .AdvertContent .category-content img {
        width: 100% !important;
        height: 100% !important;
    }
}

@media only screen and (min-width: 769px) and (max-width: 1179px) {
    .pmitemlist .item span {
        text-wrap: auto;
        text-align: center;
        font-size: 14px;
    }

    .pmitemlist .item img {
        width: 28px;
        height: 28px;
    }
}

.chiacot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    max-width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
}

.chiacot a {
    flex: 1 1 50%;
    text-align: center;
}

.chiacot img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .chiacot a {
        flex: 1 1 100%;
    }
}