@import url('https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css');

.wt2-wrap{
    padding:15px 0 0 !important;
    background:#f5f5f5;
}

.wt2-hero{
    padding:0 0 14px !important;
}

.wt2-container{
    width:100%;
    max-width:1200px;
    margin:0 auto;
    padding-left:18px;
    padding-right:18px;
    box-sizing:border-box;
}

.kc_row::after,
.kc-row-container::after,
.kc-wrap-columns::after {
    content: "";
    display: block;
    clear: both;
}

/* ===== Thanh marquee + tieude ===== */
.wt2-trending-bar{
    display:grid;
    grid-template-columns:120px minmax(0,1fr);
    align-items:center;
    background: var(--wt2-trending-bg) !important;
    color: var(--text-light-color);
    min-height:34px;
    border-radius:5px;
    overflow:hidden;
    width:100%;
    position:relative;
    z-index:1;
}

.wt2-trending-label{
    padding:6px 12px;
    font-weight:700;
    font-size:12px;
    text-transform:uppercase;
    background:var(--wt2-trending-bg);
}

.wt2-trending-slider{
    padding:0 10px;
    white-space:nowrap;
    overflow:hidden;
    background:var(--wt2-trending-bg);
}

.wt2-trending-slider marquee a{
    color: var(--text-light-color);
    text-decoration:none;
    margin-right:20px;
}

/* quan trọng: section tin tức không được đè form */
.wt2-wrap{
    position:relative;
    z-index:1;
    clear:both;
}

/* mobile: ưu tiên form đặt xe nổi lên trên */


@media (max-width: 991px){
    .wt2-wrap{
        margin-top:8px !important;
    }
}

@media (max-width: 991px){
    .home_datxe,
    #form_datxe,
    .form_main{
        margin-top: 20px !important;

    }
}

.wt2-trending-bar,
.wt2-wrap,
.wt2-hero,
.wt2-cats,
.wt2-video,
.wt2-latest {
  z-index: 1 !important;
}

@media (max-width: 991px) {
  .modal,
  .modal-backdrop,
  .modal.modal_xacnhan,
  #bookingModal,
  #errorModal,
  #successModal {
    z-index: 200000 !important;
  }

  .modal.modal_xacnhan .modal-dialog,
  .modal.modal_xacnhan .modal-content {
    z-index: 200001 !important;
  }

  .wt2-trending-bar {
    z-index: 1 !important;
  }
}

/* ===== Hero 3 tin nổi bật ===== */
.wt2-hero{
    display:grid;
    grid-template-columns:1.15fr .85fr;
    gap:12px;
    padding:10px 0 14px;
}
.wt2-card{
    position:relative;
    display:block;
    overflow:hidden;
    background:#111;
    color: var(--text-light-color);
    text-decoration:none;
    border-radius:12px;
}
.wt2-card img{
    width:100%;
    height:400px;
    object-fit:cover;
    display:block;
    transition:transform .35s ease;
    border-radius:12px;
}
.wt2-card:hover img{
    transform:scale(1.04);
}
.wt2-overlay{
    position:absolute;
    inset:auto 0 0 0;
    padding:10px;
    background:linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.08));
    border-radius:0 0 12px 12px;
}
.wt2-overlay h3{
    margin:0 0 6px;
    font-size:18px;
    line-height:1.3;
    color: var(--text-light-color);
}
.wt2-overlay p{
    margin:0;
    color:#eee;
    font-size:12px;
    line-height:1.4;
}
.wt2-meta{
    margin-top:6px;
    font-size:11px;
    color:#ddd;
    text-transform:uppercase;
}
.wt2-hero-right{
    display:grid;
    gap:12px;
}
.wt2-hero-right .wt2-card img{
    height:195px;
}
.wt2-hero-right .wt2-overlay h3{
    font-size:14px;
    line-height:1.3;
}

/* ===== Category blocks - SWIPER ===== */
.wt2-cats{
    padding-bottom:20px;
}
.wt2-cats-swiper{
    overflow:hidden;
    padding-bottom:42px;
}
.wt2-cats-swiper .swiper-wrapper{
    align-items:stretch;
}
.wt2-cats-swiper .swiper-slide{
    height:auto;
}
.wt2-cats-swiper .wt2-cat{
    height:100%;
}
.wt2-cats-pagination{
    bottom:0 !important;
}
.wt2-cats-pagination .swiper-pagination-bullet{
    width:10px;
    height:10px;
    opacity:.6;
    background:#ff4b43;
}
.wt2-cats-pagination .swiper-pagination-bullet-active{
    opacity:1;
}
.wt2-cat{
    background:#fff;
    border:1px solid #ececec;
    border-radius:12px;
    overflow:hidden;
}
.wt2-cat-title{
    background:var(--wt2-cat-title-bg);
    color: var(--text-light-color);
    padding:10px 14px;
    font-size:15px;
    font-weight:700;
    text-transform:uppercase;
}
.wt2-cat-title a{
    color: var(--text-light-color);
    text-decoration:none;
}
.wt2-cat-top{
    padding:14px;
}
.wt2-cat-top img{
    width:100%;
    height:180px;
    object-fit:cover;
    display:block;
    margin-bottom:10px;
}
.wt2-cat-top a{
    color:#111;
    text-decoration:none;
}
.wt2-cat-top h4{
    font-size:18px;
    line-height:1.4;
    margin:0 0 8px;
}
.wt2-cat-list{
    padding:0 14px 14px;
}
.wt2-cat-item{
    display:grid;
    grid-template-columns:88px minmax(0,1fr);
    gap:10px;
    padding:10px 0;
    border-top:1px solid #f0f0f0;
}
.wt2-cat-item img{
    width:88px;
    height:62px;
    object-fit:cover;
    display:block;
}
.wt2-cat-item a{
    color:#111;
    text-decoration:none;
    font-size:14px;
    line-height:1.45;
    font-weight:600;
}

/* ===== Video ===== */
.wt2-video{
    background:#0d0d0d;
    padding:26px 0;
    margin:6px 0 0;
}

/* PC: 1 video trái + 2 video phải */
.wt2-video-grid{
    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:18px;
    align-items:stretch;
}
.wt2-video-main,
.wt2-video-mini{
    position:relative;
    display:block;
    overflow:hidden;
    background:#111;
    text-decoration:none;
    color: var(--text-light-color);
    border-radius:12px;
}
.wt2-video-main img,
.wt2-video-mini img{
    width:100%;
    object-fit:cover;
    display:block;
}
.wt2-video-main img{
    height:420px;
}
.wt2-video-side{
    display:grid;
    gap:18px;
}
.wt2-video-mini{
    height:calc((420px - 18px)/2);
}
.wt2-video-mini img{
    height:100%;
}
.wt2-video-overlay{
    position:absolute;
    inset:auto 0 0 0;
    padding:18px;
    background:linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.08));
}
.wt2-video-overlay h3{
    margin:0;
    font-size:24px;
    line-height:1.35;
    color: var(--text-light-color);
}
.wt2-video-mini .wt2-video-overlay h3{
    font-size:16px;
}
.wt2-play{
    position:absolute;
    left:18px;
    top:18px;
    width:54px;
    height:54px;
    border-radius:50%;
    background:rgba(236,32,41,.92);
    display:flex;
    align-items:center;
    justify-content:center;
    color: var(--text-light-color);
    font-size:22px;
    box-shadow:0 8px 18px rgba(0,0,0,.22);
}
.wt2-video-note{
    padding:12px 0 0;
    color:#bbb;
    text-align:center;
    font-size:13px;
}

/* mobile video swiper */
.wt2-video-swiper{
    display:none;
}
.wt2-video-pagination{
    margin-top:14px;
    position:relative !important;
    bottom:auto !important;
    text-align:center;
}
.wt2-video-pagination .swiper-pagination-bullet{
    width:10px;
    height:10px;
    background:#fff;
    opacity:.45;
}
.wt2-video-pagination .swiper-pagination-bullet-active{
    opacity:1;
    background:#ff4b43;
}

/* ===== Tin mới nhất ===== */
.wt2-latest{
    padding:35px 0;
}
.wt2-ad{
    margin-bottom:20px;
}
.wt2-ad img{
    width:100%;
    height:120px;
    object-fit:cover;
    display:block;
}
.wt2-section-head{
    text-align:center;
    margin-bottom:20px;
}
.wt2-section-head h2{
    font-size:28px;
    margin:6px;
    color:#222;
}
.wt2-section-head p{
    margin:6px 0 0;
    color:#777;
}
.wt2-latest-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px;
}
.wt2-latest-card{
    background:#fff;
    border:1px solid #eee;
    border-radius:12px;
    overflow:hidden;
}
.wt2-latest-card img{
    width:100%;
    height:200px;
    object-fit:cover;
    display:block;
}
.wt2-latest-body{
    padding:10px 0;
}
.wt2-latest-card a{
    text-decoration:none;
    color:#111;
}
.wt2-latest-card h3{
    font-size:18px;
    line-height:1.45;
    margin:0 0 8px;
}

/* ===== Footer news ===== */
.wt2-foot-banner img{
    width:100%;
    height:120px;
    object-fit:cover;
    display:block;
    border-radius:12px;
}
.wt2-footer{
    background:#111;
    color:#ddd;
    padding:28px 0 18px;
}
.wt2-footer-grid{
    display:grid;
    grid-template-columns:1.1fr 1fr 1fr;
    gap:24px;
}
.wt2-footer h3{
    font-size:16px;
    color: var(--text-light-color);
    margin:0 0 14px;
    text-transform:uppercase;
}
.wt2-footer-logo{
    font-size:30px;
    font-weight:800;
    color: var(--text-light-color);
    margin-bottom:10px;
}
.wt2-footer-logo span{
    color:#ff4b43;
}
.wt2-footer-item{
    display:grid;
    grid-template-columns:76px minmax(0,1fr);
    gap:10px;
    margin-bottom:12px;
}
.wt2-footer-item img{
    width:76px;
    height:56px;
    object-fit:cover;
}
.wt2-footer-item a{
    color:#ddd;
    text-decoration:none;
    font-size:13px;
    line-height:1.5;
}
.wt2-copy{
    margin-top:16px;
    padding-top:14px;
    border-top:1px solid rgba(255,255,255,.08);
    font-size:13px;
    color:#999;
    display:flex;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
}

/* ===== Mobile ===== */
@media (max-width:991px){
    .wt2-hero,
    .wt2-footer-grid,
    .wt2-latest-grid{
        grid-template-columns:1fr;
    }

    /* hero mobile: 3 tin bằng nhau */
    .wt2-hero{
        display:grid;
        grid-template-columns:1fr;
        gap:12px;
    }
    .wt2-hero .wt2-card{
        height:220px;
    }
    .wt2-hero .wt2-card img{
        height:100%;
        object-fit:cover;
    }
    .wt2-hero-right{
        display:grid;
        grid-template-columns:1fr;
        gap:12px;
    }
    .wt2-hero-right .wt2-card img{
        height:100% !important;
    }

    /* video mobile: ẩn PC, hiện swiper */
    .wt2-video-grid{
        display:none;
    }
    .wt2-video-swiper{
        display:block;
    }
    .wt2-video-swiper .wt2-video-main img{
        height:220px;
        object-fit:cover;
    }
    .wt2-video-swiper .wt2-video-overlay h3{
        font-size:14px;
        line-height:1.45;
    }
}
	


.dc_home_slider,
.dc_home_slider .item {
    width: 100%;
}

.dc_home_slider .item img {
    width: 100%;

    object-fit: cover;
    display: block;
}

.home_slider {
    position: relative;
}

.home_slider .dc_datxe {
    margin-top: 10px;
    clear: both;
}



@media (max-width: 767px) {
    .kc-css-698619 {
        display: block !important;
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .home_slider {
        display: block !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important;
    }

    .home_slider .kc-css-19381,
    .home_slider .kc-carousel-images,
    .home_slider .owl-carousel-images,
    .home_slider .dc_home_slider,
    .home_slider .owl-wrapper-outer,
    .home_slider .owl-stage-outer,
    .home_slider .owl-stage,
    .home_slider .item {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 180px !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: hidden !important;
    }

    .home_slider .item img,
    .home_slider .item img[data-lazy-src] {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .home_slider .dc_datxe {
        display: none !important;
    }
}





@media (max-width: 767px) {

    .kc-css-698619,
    .home_slider,
    .dc_home_slider,
    .owl-carousel-images {
        display: block !important;
    }

    .home_slider .dc_datxe {
        display: none !important;
    }

}








/* ===== BẢNG GIÁ SWIPER FINAL ===== */
.home_price_section{
    padding: 20px 0 10px;
    background: #f3f3f3;
    clear: both;
    position: relative;
    z-index: 1;
}



.home_price_page{
    display: grid;
    gap: 20px;
    align-items: stretch;
}

.home_price_page_pc{
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home_price_page_mb{
    grid-template-columns: 1fr;
}

.home_price_card{
    width: 100%;
    min-width: 0;
}

.home_price_card_inner{
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--wt2-cat-title-bg, #17a2b8) 16%, #ffffff 84%) 0%,
        #ffffff 100%
    );
    border: 2px solid var(--wt2-trending-bg, #17a2b8);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: inherit;
}

.home_price_card_inner:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}

.home_price_card_head{
    background: var(--wt2-cat-title-bg, #17a2b8);
    padding: 10px 12px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.home_price_card_head h3{
    margin: 0;
    color: var(--text-light-color) !important;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
}

.home_price_card_body{
    padding: 14px 16px;
    background: transparent;
    flex: 1;
}

.home_price_card_time{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    color: #5f6b7a;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 10px;
    padding: 9px 10px;
    white-space: nowrap;
}

.home_price_text{
    font-size: 15px;
    line-height: 1.9;
    text-align: left;
    color: #333;
}

.home_price_list{
    list-style: none;
    margin: 0;
    padding: 0;
}

.home_price_time_icon{
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1;
}

.home_price_list li{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.home_price_vehicle{
    min-width: 0;
    flex: 1 1 auto;
    white-space: nowrap;
}

.home_price_list li strong{
    white-space: nowrap;
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
}

.home_price_text strong{
    color: #d91c1c;
    font-weight: 800;
}

.home_price_pagination_pc,
.home_price_pagination_mb{
    bottom: 0 !important;
}

.home_price_pagination_pc .swiper-pagination-bullet,
.home_price_pagination_mb .swiper-pagination-bullet{
    width: 10px;
    height: 10px;
    background: var(--wt2-trending-bg, #17a2b8);
    opacity: .45;
}

.home_price_pagination_pc .swiper-pagination-bullet-active,
.home_price_pagination_mb .swiper-pagination-bullet-active{
    opacity: 1;
}

/* desktop show pc swiper only */


/* tablet */
@media (max-width: 991px){
    .home_price_page_pc{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .home_price_card_head h3{
        font-size: 18px;
    }

    .home_price_text{
        font-size: 14px;
        line-height: 1.8;
    }
}

/* mobile */
@media (max-width: 767px){
    .home_price_section{
        padding: 18px 0 8px;
    }

    .home_price_swiper_pc{
        display: none;
    }



    .home_price_swiper_mb .swiper-wrapper{
        box-sizing: border-box;
    }

    .home_price_swiper_mb .swiper-slide{
        box-sizing: border-box;
    }

    .home_price_page_mb{
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home_price_card{
        width: 100%;
        min-width: 0;
    }

    .home_price_card_inner{
        width: 100%;
        box-sizing: border-box;
    }

    .home_price_card_head h3{
        font-size: 16px;
    }

    .home_price_card_body{
        padding: 12px;
    }

    .home_price_card_time{
        font-size: 12px;
        gap: 5px;
    }

    .home_price_time_icon{
        font-size: 12px;
    }

    .home_price_text{
        font-size: 12px;
        line-height: 1.7;
    }

    .home_price_list li{
        gap: 6px;
        font-size: 12px;
    }

    .home_price_list li strong{
        font-size: 12px;
    }
}



.home_price_swiper_mb .swiper-slide{
    width: auto;
}

.home_price_page_mb{
    grid-template-columns: 1fr;
    gap: 12px;
}

.home_price_swiper_mb .home_price_card{
    width: 100%;
}

.home_price_swiper_mb .home_price_card_inner{
    margin-right: 4px;
}




.home_price_swiper_pc{
    display: block !important;
}

.home_price_swiper_mb{
    display: none !important;
}

@media (max-width: 767px){
    .home_price_swiper_pc{
        display: none !important;
    }

    .home_price_swiper_mb{
        display: block !important;
    }
}




.home_price_swiper_pc .swiper-wrapper{
    align-items: stretch;
}

.home_price_swiper_pc .swiper-slide{
    height: auto;
}

.home_price_swiper_pc .home_price_card{
    width: 100%;
    height: 100%;
}

.home_price_swiper_pc .home_price_card_inner{
    height: 100%;
}

/* không dùng grid page kiểu cũ cho PC nữa */
.home_price_page_pc{
    display: block;
}



/* HEADER luôn nằm trên */
.navbar,
.main-header {
    position: relative;
    z-index: 20000;
}

/* DROPDOWN bootstrap */
.navbar .dropdown-menu {
    position: absolute !important;
    z-index: 20001 !important;
}

/* CHỈNH riêng nút ngôn ngữ nếu có */
.navbar .nav-item.dropdown {
    position: relative;
    z-index: 20002;
}

/* MARQUEE luôn thấp */
.wt2-trending-bar {
    position: relative;
    z-index: 1 !important;
}


.wt2-video-main,
.wt2-video-mini {
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 4px;
}

.wt2-video-main iframe,
.wt2-video-mini iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.wt2-video-main {
    min-height: 420px;
}

.wt2-video-main iframe {
    min-height: 420px;
}

.wt2-video-side .wt2-video-mini {
    min-height: 130px;
}

.wt2-video-side .wt2-video-mini iframe {
    min-height: 130px;
}

@media (max-width: 991px) {
    .wt2-video-main,
    .wt2-video-main iframe {
        min-height: 260px;
    }
}

@media (max-width: 767px) {
    .wt2-video-side .wt2-video-mini,
    .wt2-video-side .wt2-video-mini iframe {
        min-height: 150px;
    }
}

.wt2-video-main iframe,
.wt2-video-mini iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78%;
    height: 100%;
    transform: translate(-50%, -50%);
    border: 0;
}


.wt2-banner-after-price {
    margin-top: 10px;
    margin-bottom: 10px;
}

.wt2-banner-after-price .wt2-ad {
    margin: 0;
}

.wt2-banner-after-price .wt2-ad img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}


.wt2-banner-after-price {
    margin-top: 24px;
}

.wt2-ad--animated {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.wt2-ad--animated .wt2-ad-bg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.wt2-ad--animated .wt2-car-run {
    position: absolute;
    left: -180px;
    bottom: -10px; /* 👈 hạ thấp xuống */
    width: 140px;
    height: auto;
    z-index: 3;
    pointer-events: none;
    will-change: transform;
}

@media (max-width: 991px) {
    .wt2-ad--animated .wt2-car-run {
        width: 110px;
        bottom: 8px;
    }
}

@media (max-width: 767px) {
    .wt2-ad--animated .wt2-car-run {
 width: 120px;
        bottom: 14px;
    }
}


.wt2-car-run {
    transform-origin: bottom left;
}


.wt2-banner-after-price {
    margin-top: 24px;
}

.wt2-ad--animated {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.wt2-ad--animated .wt2-ad-bg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.wt2-ad--animated .wt2-car-run {
    position: absolute;
    left: -180px;
    bottom: -15px;
    width: 140px;
    height: auto;
    z-index: 3;
    pointer-events: none;
    will-change: transform;
    transform-origin: bottom left;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.wt2-ad--animated .wt2-car-run-1 {
    z-index: 3;
}

.wt2-ad--animated .wt2-car-run-2 {
    z-index: 2;
    opacity: 0.95;
}

@media (max-width: 991px) {
    .wt2-ad--animated .wt2-car-run {
        width: 120px;
        bottom: -10px;
    }
}

@media (max-width: 767px) {
    .wt2-ad--animated .wt2-car-run {
        width: 95px;
        bottom: -8px;
    }
}



.wt2-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.wt2-latest-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.wt2-latest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.wt2-latest-card > a {
    display: block;
    overflow: hidden;
}

.wt2-latest-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.wt2-latest-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 16px 16px;
}

.wt2-latest-body a {
    text-decoration: none;
    color: inherit;
}

.wt2-latest-body h3 {
    font-size: 17px;
    line-height: 1.45;
    font-weight: 700;
    margin: 0 0 10px;
    color: #111827;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    min-height: 49px;
}

.wt2-meta {
    margin-top: auto;
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
    padding-top: 8px;
    
}




@media (max-width: 767px){
    .wt2-latest-grid{
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .wt2-latest-card{
        width: 100% !important;
    }
}



@media (max-width: 991px){
    .post-thumb,
    .news-thumb,
    .article-thumb,
    .blog-thumb {
        height: auto !important;
        min-height: 0 !important;
    }

    .post-thumb img,
    .news-thumb img,
    .article-thumb img,
    .blog-thumb img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: cover !important;
    }
}

.home_price_card_head h3 a {
    color: var(--text-light-color) !important;
}

.home_price_card_head h3 a {
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}





/* =========================================================
   AUTO TEXT COLOR THEO BACKGROUND
   DÁN CUỐI public/css/home-news.css
========================================================= */

/* Marquee / trending */
.wt2-trending-bar,
.wt2-trending-slider,
.wt2-trending-slider marquee a,
.wt2-marquee-track a{
    color: var(--text-on-trending-bg) !important;
}

/* Header bảng giá */
.home_price_card_head,
.home_price_card_head h3,
.home_price_card_head h3 a,
.home_price_card_head h3 span{
    color: var(--text-on-cat-title-bg) !important;
}

.home_price_card_head h3 a{
    text-decoration: none;
    transition: opacity .2s ease, filter .2s ease;
}

.home_price_card_head h3 a:hover{
    color: var(--text-on-cat-title-bg) !important;
    filter: brightness(1.15) contrast(1.05);
    text-decoration: underline;
}

/* Phần thân bảng giá */
.home_price_card_body,
.home_price_card_body *{
    color: #111111;
}

.home_price_text{
    color: #111111 !important;
}

.home_price_list li{
    border-bottom: 1px dashed rgba(17,17,17,0.08);
}

.home_price_list li:last-child{
    border-bottom: 0;
}

.home_price_text strong{
    color: #d91c1c !important;
    font-weight: 800;
}

/* Nếu muốn thời gian di chuyển luôn dễ đọc */
.home_price_card_time,
.home_price_card_time span{
    color: #374151 !important;
}

/* Category title */
.wt2-cat-title,
.wt2-cat-title a{
    color: var(--text-on-cat-title-bg) !important;
}

/* Video / overlay text */
.wt2-card,
.wt2-overlay h2,
.wt2-overlay h3,
.wt2-video-main,
.wt2-video-mini,
.wt2-video-overlay h3,
.wt2-play{
    color: #ffffff !important;
}

/* Footer */
.wt2-footer h3,
.wt2-footer-logo{
    color: var(--text-on-footer-bg) !important;
}

.footer-merge-main,
.footer-merge-title,
.footer-merge-item-title{
    color: var(--text-on-footer-bg) !important;
}

.footer-merge-brand p,
.footer-merge-nav a,
.footer-merge-copy,
.wt2-footer,
.wt2-footer-item a,
.wt2-copy{
    color: var(--text-on-footer-bg) !important;
    opacity: .82;
}

.footer-merge-nav a:hover,
.footer-merge-item-title:hover{
    color: var(--ui-text-hover, var(--hover-primary-color, #ec2029)) !important;
    opacity: 1 !important;
}

/* Hotline / nút nổi nếu CSS file này có chạm tới */
.gx-hotline,
.gx-hotline:hover,
.gx-mobile-call,
.gx-mobile-call:hover{
    color: var(--text-on-hotline-bg) !important;
}

.gx-store-btn,
.gx-store-btn:hover{
    color: var(--text-on-btn-booking-bg) !important;
}

/* Hover chung cho text đang chạy theo nền */
.wt2-trending-slider marquee a:hover,
.wt2-marquee-track a:hover,
.wt2-cat-title a:hover{
    filter: brightness(1.15) contrast(1.05);
}

/* Phòng trường hợp rule cũ còn đè */
.home_price_card_head h3{
    color: var(--text-on-cat-title-bg) !important;
}

.home_price_card_head h3 a{
    color: var(--text-on-cat-title-bg) !important;
}





/* Hover auto tối hơn */
.gx-navbar a:hover,
.gx-store-btn:hover,
.gx-hotline:hover,
button:hover,
.btn:hover {
    filter: brightness(85%);
}

/* Nếu nền sáng thì hover sáng hơn */
.bg-dark a:hover,
.bg-dark .btn:hover {
    filter: brightness(115%);
}




@media (max-width: 768px) {
    .wt2-card h2 {
        font-size: 14px !important;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* giới hạn 2 dòng giống các tin khác */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}