/* ===============================
   BLOG CARD IMAGE
================================ */
.related_co{
background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.related_co h3{
    height: 100px;

}
.related_co h3{
   
    padding: 0px 10px 10px 10px !important;
}
    .lq_articles h2{
        font-weight: bold;
        font-size: 20px;
        border-bottom: 1px solid #ccc;
        padding-bottom: 10px;
    }
.image-new:hover{
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.10);
    border-color: #22c55e;
}

.image-new img {
    border-radius: 12px 12px 0px 0px;
    transition: all 0.3s ease;
}

.image-new:hover img {
    transform: scale(1.03);
}

/* ================================
   BLOG CARD CAPTION
================================ */

.caption-catenew {
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden;
    box-sizing: border-box;
    padding: 10px 12px 0px 12px;
}

/* Ngày đăng bài viết */
.kito-article-date {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    height: 22px;
    margin-bottom: 8px;
    overflow: hidden;
}

.kito-article-date i {
    color: #16a34a;
    font-size: 14px;
    flex: 0 0 auto;
}

/* Title bài viết */
.list-news-title {
    display: block;
    height: 72px;
    overflow: hidden;
}

.list-news-title h3 {
    margin: 0 !important;
    padding: 0 !important;
    height: 72px;
    overflow: hidden;
    line-height: 1.35 !important;
}

.list-news-title h3 a {
    color: #1f2937 !important;
   
    font-weight: 600 !important;
    text-decoration: none !important;
    line-height: 1.35 !important;

    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;

    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word;
    max-height: 60px;
}

.list-news-title h3 a:hover {
    color: #16a34a !important;
}

/* ================================
   RESPONSIVE BLOG CARD
================================ */

@media(max-width: 768px) {
    .image-new {
        border-radius: 12px 12px 0 0;
        padding: 8px;
    }

    .image-new img {
        border-radius: 10px;
    }

    .caption-catenew {
        height: 112px;
        padding: 10px 10px 12px;
        border-radius: 0 0 12px 12px;
    }

    .kito-article-date {
        font-size: 12px;
        height: 18px;
        margin-bottom: 6px;
    }

    .kito-article-date i {
        font-size: 12px;
    }

    .list-news-title {
        height: 58px;
    }

    .list-news-title h3 {
        height: 58px;
    }

    .list-news-title h3 a {
        font-size: 16px !important;
        line-height: 1.35 !important;
        max-height: 44px;
        -webkit-line-clamp: 2 !important;
    }
}

@media(max-width: 480px) {
    .caption-catenew {
        height: 105px;
    }

    .list-news-title h3 a {
        font-size: 15px !important;
    }
}

/* ================================
   FIX SIDEBAR BLOG - KITO
================================ */

#column-right,
.kito-blog-sidebar {
    display: block;
    position: relative;
}

/* Clear float toàn sidebar */
#column-right:after,
.kito-sidebar-block:after {
    content: "";
    display: block;
    clear: both;
}

/* Mỗi box trong sidebar là 1 khối riêng */
.kito-sidebar-block {
    display: block;
    width: 100%;
    clear: both;
    float: none;
    margin-bottom: 24px;
    box-sizing: border-box;
}

/* Box sản phẩm mới nhất phía trên */
.kito-latest-product-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

/* Ép toàn bộ module sản phẩm bên trong sidebar không bị chia cột */
#column-right .kito-latest-product-box .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#column-right .kito-latest-product-box [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Ảnh sản phẩm trong sidebar */
#column-right .kito-latest-product-box img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Chống box phía trên tràn xuống box dưới */
#column-right .kito-latest-product-box,
#column-right .kito-latest-product-box * {
    box-sizing: border-box;
}

/* Box TOP tìm kiếm */
.tab_box {
    display: block;
    width: 100%;
    clear: both;
    float: none;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 0;
    margin-top: 26px;
    margin-bottom: 24px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* Tiêu đề TOP tìm kiếm */
.tab_box .tab_title {
    background: #0b7f13;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    padding: 13px 10px;
    text-transform: uppercase;
    line-height: 1.4;
}

/* Nội dung tag */
.tab_box .tab {
    padding: 16px;
    line-height: 1.8;
    background: #ffffff;
}

/* Link trong TOP tìm kiếm */
.tab_box .tab a {
    display: inline-block;
    color: #2563eb;
    font-size: 15px;
    line-height: 1.7;
    padding: 2px 4px 2px 0;
    text-decoration: none;
}

.tab_box .tab a:hover {
    color: #0b7f13;
    text-decoration: underline;
}

/* Mobile sidebar */
@media (max-width: 767px) {
    #column-right {
        margin-top: 20px;
    }

    .kito-sidebar-block {
        margin-bottom: 18px;
    }

    .tab_box {
        margin-top: 20px;
    }

    .tab_box .tab_title {
        font-size: 15px;
        padding: 12px 8px;
    }

    .tab_box .tab {
        padding: 14px;
    }

    .tab_box .tab a {
        font-size: 14px;
    }
}
/* Nút bấm chia sẻ chính ngoài bài viết */
.btn-kito-share {
    background-color: #009245;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

/* Khung nền đen mờ phủ toàn màn hình */
.kito-share-modal {
    display: none; 
    position: fixed;
    z-index: 999999 !important; /* Đảm bảo nổi lên trên mọi thành phần khác */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
}

/* Thiết kế chuẩn Box màu trắng ở chính giữa */
.share-modal-content {
    background-color: #ffffff;
    margin: 0;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%); /* Căn giữa màn hình tuyệt đối */
    padding: 24px 35px; 
    border: 1px solid #eaeaea;
    border-radius: 4px;
    width: 92%;
    max-width: 540px; /* Tỷ lệ chiều rộng chuẩn theo ảnh */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

/* Tiêu đề màu xanh lục đặc trưng */
.share-modal-header h3 {
    margin: 0;
    color: #009245; 
    font-size: 18px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    line-height: 1.4;
}

/* Nút dấu X đóng hộp thoại mảnh và nhỏ ở góc phải */
.close-share-modal {
    position: absolute;
    right: 20px;
    top: 18px;
    font-size: 36px; /* Cỡ nhỏ và thanh mảnh chuẩn 24h */
    color: #009245;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
}
.close-share-modal:hover { color: #333; }

/* Khu vực hàng ngang chứa 5 icon */
.share-networks {
    display: flex !important;
    justify-content: space-between !important; /* Dàn đều khoảng cách giữa 5 cột */
    align-items: flex-start;
    padding: 24px 0;
    margin: 0;
}

/* Từng khối icon */
.share-item {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 75px; 
    text-align: center;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

/* Định dạng hình ảnh icon tròn */
.share-item img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 10px;
    display: block;
}

/* Chữ mô tả dưới icon */
.share-item span {
    font-size: 13px;
    color: #333;
    font-family: Arial, sans-serif;
    line-height: 1.3;
    display: block;
}

/* Nút bấm COPY LINK bo góc viền xám mảnh */
.btn-copy-link {
    width: 100%;
    background-color: #f5f5f5; /* Màu nền xám nhạt */
    border: 1px solid #e0e0e0; /* Đường viền mảnh */
    padding: 11px;
    font-size: 14px;
    font-weight: bold;
    color: #009245; /* Chữ xanh lục giống ảnh mẫu */
    cursor: pointer;
    border-radius: 4px;
    letter-spacing: 0.5px;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.btn-copy-link:hover {
    background-color: #009245;
    color: #fff;
    border-color: #009245;
}
/* Định dạng chung cho khung chứa icon sử dụng ảnh gộp (Sprite) */
.share-icon-sprite {
    width: 52px;
    height: 52px;
    display: block;
    margin: 0 auto 10px auto;
    background-image: url("../image/social-2026.png") !important; /* <--- THAY LINK ẢNH GỘP CỦA BẠN VÀO ĐÂY */
    background-repeat: no-repeat;
    background-size: 52px auto; /* Ép chiều rộng ảnh gộp bằng đúng chiều rộng icon */
}

/* Tọa độ dịch chuyển theo chiều dọc cho từng mạng xã hội */
.icon-zalo { background-position: 0 0; }
.icon-facebook { background-position: 0 -52px; }
/* Vị trí dấu X (nếu có) nằm ở -104px */
.icon-messenger { background-position: 0 -156px; }
/* Vị trí nút chia sẻ xanh lá nằm ở -208px */
/* Vị trí Skype nằm ở -260px */
.icon-telegram { background-position: 0 -293px; }
.icon-x { background-position: 0 -342px; }
.product_xem_them_tt{
    background: linear-gradient(135deg,#f8fafc,#e2e8f0);
    border: 1px solid #22c55e;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    font-family: Arial, sans-serif;
    overflow: hidden;
    position: relative;
}

.product_xem_them_tt::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: #22c55e;
}

.product_xem_them_tt .title{
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product_xem_them_tt .title span{
    color: #16a34a;
}

.product_xem_them_tt a{
    display: block;
    color: #1e293b;
    text-decoration: none;
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.25s ease;
    font-size: 15px;
    line-height: 1.6;
    border: 1px solid #dbeafe;
    cursor: pointer;
}

.product_xem_them_tt a:hover{
    background: #22c55e;
    color: #ffffff;
    transform: translateX(6px);
    border-color: #22c55e;
    box-shadow: 0 5px 15px rgba(34,197,94,0.25);
}

.product_xem_them_tt a:last-child{
    margin-bottom: 0;
}

@media(max-width:768px){
    .product_xem_them_tt{
        padding: 16px;
        border-radius: 12px;
    }

    .product_xem_them_tt .title{
        font-size: 17px;
    }

    .product_xem_them_tt a{
        font-size: 14px;
        padding: 10px 12px;
    }
}
 .td-post-content ul{
        padding-left: 15px;
        list-style: outside;
    }

    .lq-box{
        padding-bottom: 20px !important;
    }

    .lq_articles{
    display:flex;
    justify-content:space-between;
    align-items:center;
   
}

.lq_articles h2{
    padding: 15px 0px;
}

.view-more-news{
    font-size:14px;
    color:#22c55e;
    font-weight:600;
    text-decoration:none;
}

.view-more-news:hover{
    text-decoration:underline;
}

.special-price-box {
    background: #fff7df;
    border: 4px dashed orange;
    border-radius: 12px;
    padding: 10px;
    /* margin-top: 20px; */
    margin-bottom: 10px;
    box-sizing: border-box;
    display: inline-block;
    text-align: center;
}

.special-price-box h3 {
  color: #d62828;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.special-price-box p {
  color: #6c4c3b;
  font-size: 18px;
  margin-bottom: 15px;
}

.btn-get-deal {
  display: inline-block;
  padding: 12px 24px;
  background-color: red;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  font-size: 18px;
}

/* ==================================================
   

/* Blog small patches */
.cate-blog-info{padding-bottom:10px;}
