/* =============================================================
   iHOS - Footer chung (.new-footer)
   Thiết kế: Figma Website-iHOS node 2584:21840 (Footer)
   Dùng bởi a.html (trang ihos-tai-san) và footer.php
   ============================================================= */

/* Reset thừa hưởng .section-temp (padding-top 96px không hợp footer) */
.footer{
    display: none !important
}
.new-footer,
.new-footer *,
.new-footer *::before,
.new-footer *::after {
    box-sizing: border-box;
}

.new-footer.section-temp {
    padding-top: 0;
    background: #f5f5f5;
    overflow-x: hidden;
    overflow-wrap: break-word;
}

.new-footer .nf-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    min-width: 0; /* cho phép co nhỏ theo viewport */
}

/* ---------- Hàng 1: logo thương hiệu ---------- */
.nf-logos {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 48px 0 24px;
}

.nf-logos a.nf-logo {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    line-height: 0;
}

.nf-logo img {
    width: auto;
    height: 44px;
}

/* ---------- Hàng 2: nội dung (info trái + 3 cột liên kết phải) ---------- */
.nf-main {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 48px;
    padding-bottom: 48px;
    text-align: left;
}

.nf-info {
    flex: 1 1 500px;
    min-width: 0;
    overflow-wrap: break-word;
}

.nf-company {
    font-family: Inter SemiBold;
    font-size: 20px;
    line-height: 28px;
    color: #181d27;
    margin: 0 0 16px !important;
}

.nf-info-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nf-info-row {
    display: flex;
    gap: 8px;
    align-items: baseline;
    font-size: 14px;
    line-height: 18px;
    color: #252b37;
    word-break: break-word;
    flex-wrap: wrap;
}

.nf-info-row span:last-child {
    min-width: 0;
    flex: 1 1 auto;
}

.nf-info-label {
    min-width: 100px;
    flex: none;
    font-family: Inter SemiBold;
    color: #181d27;
}

.nf-contact-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.nf-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 18px;
    color: #2662ff;
    text-decoration: none;
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
}

.nf-contact img {
    width: 24px;
    height: 24px;
    flex: none;
    object-fit: contain;
}

.nf-contact strong {
    font-family: Inter Bold;
    color: #2662ff;
}

.nf-reg {
    font-size: 14px;
    line-height: 18px;
    color: #252b37;
    margin: 0;
    max-width: 560px;
}

/* ---------- Cột liên kết ---------- */
.nf-links {
    display: flex;
    gap: 40px;
    flex: 1 1 620px;
    min-width: 0;
    justify-content: space-between;
}

.nf-links-col {
    min-width: 0;
    overflow-wrap: break-word;
}

.nf-links-title {
    font-family: Inter SemiBold;
    font-size: 16px;
    line-height: 22px;
    color: #181d27;
    margin: 0 0 16px !important;
}

.nf-links-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nf-links-col li {
    margin: 0;
    line-height: 17px;
}

.nf-links-col a {
    font-size: 14px;
    line-height: 18px;
    color: #181d27;
    text-decoration: none;
    transition: color .2s ease;
}

.nf-links-col a:hover {
    color: #2662ff;
}

/* ---------- Hàng 3: social (trái) + chứng nhận (phải) ---------- */
.nf-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    border-top: 1px solid #d5d7da;
    border-bottom: 1px solid #d5d7da;
    padding: 16px 0;
    width: 100%;
}

.nf-social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.nf-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    flex: none;
    max-width: 100%;
}

.nf-social img {
    width: auto;
    height: 42px;
    object-fit: contain;
    display: block;
}

.nf-certs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-end;
    max-width: 100%;
    min-width: 0;
}

.nf-certs img {
    height: 32px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    flex: none;
    display: block;
}

/* ---------- Hàng 4: bản quyền ---------- */
.nf-copyright {
    padding: 24px 0 32px;
}

.nf-copyright-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.nf-copyright p {
    font-size: 13px;
    line-height: 22.4px;
    color: #181d27;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.nf-copyright a {
    font-size: 13px;
    line-height: 22.4px;
    color: #181d27;
    text-decoration: none;
    white-space: nowrap;
    flex: none;
}

.nf-copyright a:hover {
    color: #2662ff;
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 991.98px) {
    .nf-main {
        flex-direction: column;
        gap: 40px;
    }
    .nf-links {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        row-gap: 32px;
        flex: 1 1 0;
    }
    .nf-links-col {
        flex: 1 1 220px;
    }
    .nf-info{
        flex: 1 1 0;
    }
}

@media (max-width: 767.98px) {
    .nf-logos {
        padding: 48px 0 32px;
        justify-content: flex-start;
        gap: 24px;
    }
    .nf-logos a.nf-logo img {
        height: 36px;
    }
    .nf-company {
        text-align: left;
        font-size: 18px;
    }
    .nf-main {
        padding-bottom: 32px;
    }
    /* Nội dung liên hệ căn giữa trên mobile */
    .nf-info-detail,
    .nf-contact-list,
    .nf-contact,
    .nf-reg,
    .nf-container {
        text-align: left;
    }
    .nf-contact {
        width: auto;
        justify-content: flex-start;
    }
    .nf-info-row {
        justify-content: flex-start;
    }
    .nf-links {
        justify-content: flex-start;
    }
    .nf-links-col {
        flex: 1 1 45%;
        min-width: 140px;
        text-align: left;
    }
    .nf-links-title {
        text-align: left;
    }
    .nf-links-col ul {
        align-items: flex-start;
    }
    .nf-bottom {
        flex-direction: column;
        gap: 16px;
        justify-content: flex-start;
    }
    .nf-social {
        justify-content: center;
    }
    .nf-certs {
        justify-content: center;
    }
    .nf-copyright-inner {
        flex-direction: column;
        gap: 8px;
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 400.98px) {
    .nf-links {
        gap: 24px;
    }
    .nf-links-col {
        flex: 1 1 100%;
    }
}
