/* ============================================================
   THS Group (site_id 3341) - fix header / hotline
   Chỉ load cho site 3341, không ảnh hưởng các site khác
   dùng chung theme w3ni677.
   ============================================================ */

/* Hiện hotline (header.php ẩn cứng display:none cho mọi site) */
#hotline {
    display: block !important;
}

/* Mail trong hotline luôn màu đỏ */
#hotline a[href^="mailto"] {
    color: #ff0000 !important;
}

/* banner + hotline cùng hàng từ 481px trở lên */
@media screen and (min-width: 481px) {
    .htc-right {
        display: flex;
        align-items: center;
    }
    .htc-right .banner {
        flex: 1;
        width: auto;
        margin: 0;
    }
    #hotline {
        flex-shrink: 0;
        margin-left: auto;
        text-align: right;
        white-space: nowrap;
    }
}

/* desktop: override position/float/transform từ style.css */
@media screen and (min-width: 993px) {
    #hotline {
        position: static !important;
        float: none !important;
        transform: none !important;
    }
    #hotline label {
        color: red;
    }
}

/* layout mobile/tablet (<=992px) */
@media screen and (max-width: 992px) {
    /* thanh địa chỉ cao tự động khi địa chỉ wrap 2 dòng, tránh tràn đẩy logo */
    .header-top {
        height: auto !important;
    }
    .hearder-center-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    .logo {
        width: auto !important;
        float: none !important;
        flex-shrink: 0;
        padding-left: 10px;
    }
    .logo .box-img-1 {
        height: auto !important;
        padding: 8px 0;
    }
    .logo .box-img-1 img {
        width: 60px !important;
        height: auto !important;
    }
    .htc-right {
        position: relative !important;
        width: auto !important;
        float: none !important;
        flex: 1;
    }
    #hotline {
        position: static !important;
        top: auto !important;
        right: auto !important;
        float: none !important;
        text-align: right;
        white-space: nowrap;
        padding: 5px 50px 5px 5px;
    }
    #hotline label {
        display: none !important;
    }
    .box-nav {
        top: -55px;
    }
}
