/* V96 - FIX THẬT KHỐI TIN NỔI BẬT
   File này phải được load SAU home-pro-clean-2026.css.
   Mục tiêu: slide không còn thay đổi chiều cao, chữ trên ảnh nằm trong vùng cố định.
*/

@media (min-width: 769px){
  body .lx-home .lx-top-pair{
    align-items:start!important;
  }

  body .lx-home .lx-v29-slider.lx-sync-slider-card,
  body .lx-home .lx-v29-slider{
    height:520px!important;
    min-height:520px!important;
    max-height:520px!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    contain:layout paint!important;
  }

  body .lx-home .lx-v29-slider > .lx-section-head{
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
    flex:0 0 34px!important;
    padding:0 14px!important;
    display:flex!important;
    align-items:center!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    box-sizing:border-box!important;
  }

  body .lx-home .lx-v29-slider .lx-hero-slider,
  body .lx-home .lx-v29-slider .lx-hero-slider.v29-hero,
  body .lx-home .lx-v29-slider .v29-hero{
    position:relative!important;
    height:270px!important;
    min-height:270px!important;
    max-height:270px!important;
    flex:0 0 270px!important;
    overflow:hidden!important;
    margin:0!important;
    padding:0!important;
    background:#eaf1f7!important;
    box-sizing:border-box!important;
  }

  body .lx-home .lx-v29-slider .lx-hero-slide{
    position:absolute!important;
    inset:0!important;
    display:block!important;
    width:100%!important;
    height:270px!important;
    min-height:270px!important;
    max-height:270px!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    overflow:hidden!important;
    transform:none!important;
    margin:0!important;
    padding:0!important;
    transition:opacity .32s ease!important;
    box-sizing:border-box!important;
  }

  body .lx-home .lx-v29-slider .lx-hero-slide.active{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    z-index:2!important;
  }

  body .lx-home .lx-v29-slider .lx-hero-slide img{
    display:block!important;
    width:100%!important;
    height:270px!important;
    min-height:270px!important;
    max-height:270px!important;
    object-fit:cover!important;
    object-position:center center!important;
    border:0!important;
    transform:none!important;
    box-sizing:border-box!important;
  }

  body .lx-home .lx-v29-slider .lx-hero-slide::after{
    content:""!important;
    position:absolute!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    height:96px!important;
    z-index:3!important;
    pointer-events:none!important;
    background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.76))!important;
  }

  /* Chữ trên ảnh được cố định trong vùng 2 dòng, không còn làm giật khung */
  body .lx-home .lx-v29-slider .lx-hero-slide > span{
    position:absolute!important;
    left:18px!important;
    right:92px!important;
    bottom:14px!important;
    height:58px!important;
    min-height:58px!important;
    max-height:58px!important;
    padding:0!important;
    margin:0!important;
    z-index:4!important;
    color:#fff!important;
    background:transparent!important;
    font-size:24px!important;
    line-height:1.18!important;
    font-weight:900!important;
    text-shadow:0 3px 12px rgba(0,0,0,.55)!important;
    overflow:hidden!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    max-width:none!important;
    transform:none!important;
    box-sizing:border-box!important;
  }

  body .lx-home .lx-v29-slider .lx-hero-dots{
    position:absolute!important;
    right:14px!important;
    bottom:20px!important;
    left:auto!important;
    z-index:8!important;
    display:flex!important;
    gap:6px!important;
    align-items:center!important;
  }

  body .lx-home .lx-v29-slider .lx-hero-dot{
    flex:0 0 auto!important;
    width:12px!important;
    height:12px!important;
    min-width:12px!important;
    min-height:12px!important;
    max-width:12px!important;
    max-height:12px!important;
    border-radius:999px!important;
    padding:0!important;
    border:1px solid rgba(255,255,255,.9)!important;
    background:rgba(255,255,255,.45)!important;
    box-sizing:border-box!important;
    font-size:0!important;
    line-height:0!important;
    color:transparent!important;
    overflow:hidden!important;
  }

  body .lx-home .lx-v29-slider .lx-hero-dot.active{
    width:24px!important;
    max-width:24px!important;
    background:#fff!important;
  }

  /* Caption dưới ảnh cũng bị khóa, tiêu đề dài/ngắn không kéo card */
  body .lx-home .lx-v29-feature-caption,
  body .lx-home #lxHeroCaption{
    height:216px!important;
    min-height:216px!important;
    max-height:216px!important;
    flex:0 0 216px!important;
    overflow:hidden!important;
    padding:16px 18px 14px!important;
    background:#fff!important;
    box-sizing:border-box!important;
  }

  body .lx-home .lx-v29-feature-caption h2{
    height:58px!important;
    min-height:58px!important;
    max-height:58px!important;
    margin:0 0 8px!important;
    overflow:hidden!important;
    font-size:22px!important;
    line-height:1.28!important;
  }

  body .lx-home .lx-v29-feature-caption h2 a{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
  }

  body .lx-home .lx-v29-feature-caption__excerpt,
  body .lx-home .lx-v29-feature-caption p{
    height:76px!important;
    max-height:76px!important;
    margin:0!important;
    overflow:hidden!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:3!important;
    font-size:14px!important;
    line-height:1.55!important;
  }

  body .lx-home .lx-v29-feature-caption__meta{
    display:block!important;
    height:20px!important;
    max-height:20px!important;
    margin-top:8px!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
  }

  /* Cột Tin mới cập nhật khóa bằng Tin nổi bật */
  body .lx-home .lx-v29-latest.lx-sync-latest-card,
  body .lx-home .lx-v29-latest{
    height:520px!important;
    min-height:520px!important;
    max-height:520px!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  body .lx-home .lx-v29-latest > .lx-section-head{
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
    flex:0 0 34px!important;
    padding:0 12px!important;
    display:flex!important;
    align-items:center!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    box-sizing:border-box!important;
  }

  body .lx-home .lx-v29-latest__list,
  body .lx-home #lxLatestSyncList{
    height:486px!important;
    min-height:486px!important;
    max-height:486px!important;
    flex:0 0 486px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    box-sizing:border-box!important;
  }
}

@media (max-width:768px){
  body .lx-home .lx-v29-slider,
  body .lx-home .lx-v29-latest{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }

  body .lx-home .lx-v29-slider .lx-hero-slider,
  body .lx-home .lx-v29-slider .lx-hero-slider.v29-hero,
  body .lx-home .lx-v29-slider .v29-hero,
  body .lx-home .lx-v29-slider .lx-hero-slide,
  body .lx-home .lx-v29-slider .lx-hero-slide img{
    height:220px!important;
    min-height:220px!important;
    max-height:220px!important;
  }

  body .lx-home .lx-v29-slider .lx-hero-slide > span{
    left:14px!important;
    right:14px!important;
    bottom:12px!important;
    height:46px!important;
    max-height:46px!important;
    font-size:17px!important;
    line-height:1.25!important;
    -webkit-line-clamp:2!important;
  }
}
