/* ===== CSS TỔNG THỂ ===== */

.hmf-footer {
    width: 100%;
    background: linear-gradient(135deg, #06265b, #073c80);
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

.hmf-footer * {
    box-sizing: border-box;
}

.hmf-footer a {
    display: inline;
    margin: 0;
    font-size: inherit;
    color: #ffffff;
    text-decoration: none;
    transition: color .2s ease;
}

.hmf-footer a:hover {
    color: #ffdc00;
}

.hmf-footer a:focus-visible {
    outline: 2px solid #ffdc00;
    outline-offset: 4px;
}

.hmf-footer p {
    font-size: inherit;
    line-height: inherit;
    margin: 0 0 10px;
}

.hmf-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ===== DẢI CAM KẾT ===== */

.hmf-benefits {
    background: linear-gradient(90deg, #003b91, #0877d5, #003b91);
    border-bottom: 3px solid #36c5ff;
}

.hmf-benefits-inner {
    max-width: 1600px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding: 20px 15px;
    gap: 10px;
}

.hmf-benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px;
    border-right: 1px solid rgba(255,255,255,.3);
}

.hmf-benefit:last-child {
    border-right: none;
}

.hmf-benefit svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    stroke: #ffffff;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hmf-benefit strong {
    font-size: 14px;
    line-height: 1.5;
}

/* ===== BỐ CỤC 5 CỘT ===== */

.hmf-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(0, 1.1fr)
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, 1.2fr);
    gap: 25px;
}

.hmf-column {
    min-width: 0;
}

.hmf-heading {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 20px;
    padding: 0 0 12px;
    position: relative;
    text-transform: uppercase;
}

.hmf-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 65px;
    height: 3px;
    background: #ed1c24;
    border-radius: 3px;
}

/* ===== LOGO VÀ THÔNG TIN CÔNG TY ===== */

.hmf-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.hmf-logo {
    display: block;
    width: 100px;
    height: auto;
    background: #ffffff;
    border-radius: 6px;
    padding: 5px;
}

.hmf-brand-name {
    color: #ffffff;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.2;
}

.hmf-brand-group {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-top: 6px;
    border-bottom: 3px solid #ed1c24;
    padding-bottom: 6px;
}

.hmf-company-name {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 15px;
}

.hmf-contact {
    font-style: normal;
    overflow-wrap: anywhere;
}

.hmf-contact strong {
    color: #ffffff;
}

.hmf-contact a {
    overflow-wrap: anywhere;
}

/* ===== DANH SÁCH LIÊN KẾT ===== */

.hmf-links {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hmf-links li {
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.hmf-links li a,
.hmf-links li span {
    display: block;
    position: relative;
    padding-left: 13px;
    font-size: 14px;
    line-height: 1.6;
}

.hmf-links li span {
    color: #e4eeff;
    overflow-wrap: anywhere;
}

.hmf-links li a::before {
    content: "›";
    position: absolute;
    left: 0;
    top: 0;
    color: #65d4ff;
    font-weight: bold;
}

.hmf-links li a:hover {
    color: #ffdc00;
}

/* ===== MẠNG XÃ HỘI ===== */

.hmf-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
}

.hmf-footer .hmf-social a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
}

.hmf-social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-weight: bold;
}

.hmf-facebook {
    background: #1877f2;
    font-size: 30px;
}

.hmf-youtube {
    background: #ff0000;
    font-size: 20px;
}

.hmf-zalo {
    background: #ffffff;
    color: #0068ff;
    font-size: 13px;
}

/* ===== MÃ QR ===== */

.hmf-qr-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hmf-qr-item > a {
    display: block;
}

.hmf-qr-item {
    text-align: center;
    min-width: 0;
}

.hmf-qr-image {
    display: block;
    width: 100%;
    max-width: 150px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #ffffff;
    border: 5px solid #ffffff;
    border-radius: 8px;
    margin: 0 auto;
}

.hmf-qr-caption {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-top: 7px;
}

/* ===== HOTLINE ===== */

.hmf-footer .hmf-hotline {
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 25px auto 0;
    padding: 12px 15px;
    background: linear-gradient(180deg, #ff2633, #c50000);
    color: #ffffff !important;
    border: 2px solid #ffffff;
    border-radius: 40px;
    text-align: center;
    font-size: 25px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.hmf-hotline strong {
    color: #ffeb00;
}

.hmf-footer .hmf-hotline:hover {
    background: #b90000;
}

/* ===== BỘ CÔNG THƯƠNG ===== */

.hmf-bct {
    margin-top: 20px;
    text-align: center;
}

.hmf-bct img {
    display: block;
    width: 155px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ===== BẢN QUYỀN ===== */

.hmf-bottom {
    background: #031b42;
    border-top: 2px solid #168edb;
    padding: 18px 15px;
    text-align: center;
    color: #ffffff;
    font-size: 13px;
}

.hmf-bottom p {
    margin: 0;
}

/* ===== MÁY TÍNH BẢNG ===== */

@media (max-width: 1199px) {

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

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

    .hmf-benefit:nth-child(3n) {
        border-right: none;
    }

}

/* ===== ĐIỆN THOẠI ===== */

@media (max-width: 767px) {
    .hmf-footer {
        padding-bottom: max(72px, env(safe-area-inset-bottom));
    }

    .hmf-benefit strong,
    .hmf-links a {
        overflow-wrap: anywhere;
    }


    .hmf-container {
        padding: 25px 15px;
    }

    .hmf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 15px;
    }

    .hmf-company-column,
    .hmf-social-column {
        grid-column: 1 / -1;
    }

    .hmf-benefits-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 12px 8px;
    }

    .hmf-benefit {
        justify-content: flex-start;
        border-right: none;
        padding: 8px;
        gap: 8px;
    }

    .hmf-benefit svg {
        width: 28px;
        height: 28px;
    }

    .hmf-benefit strong {
        font-size: 12px;
    }

    .hmf-heading {
        font-size: 14px;
    }

    .hmf-links li a,
    .hmf-links li span {
        font-size: 13px;
    }

    .hmf-brand-name {
        font-size: 23px;
    }

    .hmf-qr-grid {
        max-width: 340px;
        margin: auto;
    }

    .hmf-footer .hmf-hotline {
        font-size: 21px;
    }

}

@media (max-width: 359px) {

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

    .hmf-footer .hmf-hotline {
        font-size: 18px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .hmf-footer a {
        transition: none;
    }
}
