/* Unify subpage footer with homepage footer visuals */
body:not(.home) .vmt-site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(135deg, #047983 0%, #01666f 100%);
    padding: 26px 0 0;
    box-shadow: 0 -20px 36px rgba(0, 0, 0, 0.22);
}

body:not(.home) .vmt-site-footer::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    background-color: transparent;
    background-image: url("../images/hinh-chim-khong-mau.png");
    background-position: center 62%;
    background-size: 100vw auto;
    background-repeat: no-repeat;
    opacity: 0.14;
    filter: brightness(1.35) contrast(0.86);
    z-index: 1;
    pointer-events: none;
}

body:not(.home) .vmt-site-footer::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 56px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

body:not(.home) .vmt-site-footer .vmt-container,
body:not(.home) .vmt-site-footer .vmt-footer-bottom {
    position: relative;
    z-index: 3;
}

body:not(.home) .vmt-site-footer .vmt-footer-grid {
    padding-top: 14px;
}

@media (min-width: 1025px) {
    body:not(.home) .vmt-site-footer .vmt-footer-grid {
        grid-template-columns: fit-content(360px) fit-content(320px) fit-content(220px) fit-content(286px);
        align-items: start;
        justify-content: space-between;
        column-gap: 64px;
        row-gap: 20px;
    }

    body:not(.home) .vmt-site-footer .vmt-footer-col {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-width: 0;
    }

    body:not(.home) .vmt-site-footer .vmt-footer-col:nth-child(2),
    body:not(.home) .vmt-site-footer .vmt-footer-col:nth-child(3),
    body:not(.home) .vmt-site-footer .vmt-footer-col:nth-child(4) {
        padding-top: 6px;
    }

    body:not(.home) .vmt-site-footer .vmt-footer-col:first-child .vmt-license-info {
        display: flex;
        flex-direction: column;
    }

    body:not(.home) .vmt-site-footer .vmt-footer-col:first-child .vmt-license-info p,
    body:not(.home) .vmt-site-footer .vmt-footer-col:first-child .vmt-footer-hotline {
        margin: 0;
    }

    body:not(.home) .vmt-site-footer .vmt-footer-col:nth-child(2) .vmt-contact-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    body:not(.home) .vmt-site-footer .vmt-footer-col:nth-child(2) .vmt-contact-info p {
        margin: 0;
    }

    body:not(.home) .vmt-site-footer .vmt-footer-col:nth-child(3) .vmt-footer-links {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 8px;
    }

    body:not(.home) .vmt-site-footer .vmt-footer-col:nth-child(3) .vmt-footer-links li {
        margin: 0;
    }

    body:not(.home) .vmt-site-footer .vmt-footer-col:nth-child(4) {
        align-items: stretch;
        width: min(100%, 286px);
    }

    body:not(.home) .vmt-site-footer .vmt-footer-col:nth-child(4) .vmt-newsletter-form {
        flex: 0 0 auto;
        justify-content: flex-start;
        min-height: 0;
        gap: 8px;
    }
}

body:not(.home) .vmt-site-footer .vmt-footer-logo {
    display: block;
    width: min(100%, 228px);
    max-width: 228px;
    height: auto;
    margin-bottom: 14px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.34));
}

body:not(.home) .vmt-site-footer .vmt-company-name {
    margin: 0 0 12px;
    max-width: 300px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: left;
}

body:not(.home) .vmt-site-footer .vmt-footer-heading {
    margin: 0 0 20px;
    line-height: 1.2;
    font-size: 18px;
}

body:not(.home) .vmt-site-footer .vmt-contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

body:not(.home) .vmt-site-footer .vmt-contact-info p {
    margin: 0;
    font-size: 14px;
    line-height: 1.42;
    text-align: justify;
    text-align-last: left;
}

body:not(.home) .vmt-site-footer .vmt-footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body:not(.home) .vmt-site-footer .vmt-footer-links li {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}

body:not(.home) .vmt-site-footer .vmt-footer-links a {
    font-size: 14px;
    line-height: 1.35;
}

body:not(.home) .vmt-site-footer .vmt-footer-hotline {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 0;
    font-size: 14px;
    line-height: 1.45;
}

body:not(.home) .vmt-site-footer .vmt-license-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body:not(.home) .vmt-site-footer .vmt-footer-info-row {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;
}

body:not(.home) .vmt-site-footer .vmt-license-info p {
    margin: 0;
    max-width: 195px;
    font-size: 14px;
    line-height: 1.35;
    display: block;
    text-align: justify;
    text-align-last: left;
}

body:not(.home) .vmt-site-footer .vmt-license-label,
body:not(.home) .vmt-site-footer .vmt-license-number {
    display: block;
}

body:not(.home) .vmt-site-footer .vmt-license-number {
    margin-top: 2px;
}

body:not(.home) .vmt-site-footer .vmt-footer-icon {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.96);
}

body:not(.home) .vmt-site-footer .vmt-footer-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

body:not(.home) .vmt-site-footer .vmt-footer-hotline-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

body:not(.home) .vmt-site-footer .vmt-footer-hotline-content p {
    font-size: 14px;
    font-weight: 500;
}

body:not(.home) .vmt-site-footer .vmt-footer-hotline .vmt-contact-value {
    display: block;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

body:not(.home) .vmt-site-footer .vmt-footer-social-bottom {
    margin: 44px auto 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

body:not(.home) .vmt-site-footer .vmt-footer-social-bottom h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

body:not(.home) .vmt-site-footer .vmt-footer-social-bottom .vmt-footer-social-list {
    justify-content: center;
}

body:not(.home) .vmt-site-footer .vmt-footer-social-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body:not(.home) .vmt-site-footer .vmt-footer-social-list a svg {
    width: 18px;
    height: 18px;
    display: block;
}

body:not(.home) .vmt-site-footer .vmt-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
}

body:not(.home) .vmt-site-footer .vmt-newsletter-field input {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14px;
    color: #1a1a1a;
    background: #ffffff;
}

body:not(.home) .vmt-site-footer .vmt-newsletter-field input::placeholder {
    color: #8a8f94;
}

body:not(.home) .vmt-site-footer .vmt-newsletter-submit {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #fff;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ef4c42 0%, #c82920 100%);
    box-shadow: 0 8px 18px rgba(138, 18, 12, 0.35);
    cursor: pointer;
}

body:not(.home) .vmt-site-footer .vmt-newsletter-submit:hover {
    filter: brightness(1.03);
}

@media (max-width: 1024px) {
    body:not(.home) .vmt-site-footer {
        box-shadow: 0 -14px 28px rgba(0, 0, 0, 0.2);
    }

    body:not(.home) .vmt-site-footer .vmt-footer-logo {
        max-width: 196px;
    }
}

@media (max-width: 767px) {
    body:not(.home) .vmt-site-footer {
        padding-top: 20px;
    }

    body:not(.home) .vmt-site-footer::after {
        height: 36px;
    }

    body:not(.home) .vmt-site-footer .vmt-footer-logo {
        max-width: 180px;
    }

    body:not(.home) .vmt-site-footer .vmt-footer-social-bottom {
        margin-bottom: 16px;
    }

    body:not(.home) .vmt-site-footer .vmt-footer-heading {
        font-size: 16px;
    }

    body:not(.home) .vmt-site-footer .vmt-company-name,
    body:not(.home) .vmt-site-footer .vmt-license-info p,
    body:not(.home) .vmt-site-footer .vmt-contact-info p,
    body:not(.home) .vmt-site-footer .vmt-footer-hotline {
        font-size: 14px;
    }

    body:not(.home) .vmt-site-footer .vmt-footer-links li,
    body:not(.home) .vmt-site-footer .vmt-footer-links a {
        font-size: 12px;
    }

    body:not(.home) .vmt-site-footer .vmt-company-name,
    body:not(.home) .vmt-site-footer .vmt-license-info p,
    body:not(.home) .vmt-site-footer .vmt-footer-hotline {
        font-size: 14px;
    }

    body:not(.home) .vmt-site-footer .vmt-company-name {
        max-width: 100%;
        margin-bottom: 16px;
        font-size: 13px;
        line-height: 1.1;
        white-space: nowrap;
    }

    body:not(.home) .vmt-site-footer .vmt-company-break {
        display: none;
    }

    body:not(.home) .vmt-site-footer .vmt-license-info {
        gap: 14px;
    }

    body:not(.home) .vmt-site-footer .vmt-footer-info-row {
        grid-template-columns: 18px minmax(0, 1fr);
        column-gap: 14px;
        align-items: start;
    }

    body:not(.home) .vmt-site-footer .vmt-footer-icon {
        width: 18px;
        height: 18px;
        margin-top: 1px;
    }

    body:not(.home) .vmt-site-footer .vmt-license-info p {
        max-width: none;
        line-height: 1.4;
        display: block;
        text-align: left;
    }

    body:not(.home) .vmt-site-footer .vmt-license-number {
        margin-top: 4px;
    }

    body:not(.home) .vmt-site-footer .vmt-footer-hotline-content p,
    body:not(.home) .vmt-site-footer .vmt-footer-hotline .vmt-contact-value {
        font-size: 14px;
    }

    body:not(.home) .vmt-site-footer .vmt-footer-hotline {
        gap: 14px;
        line-height: 1.35;
    }

    body:not(.home) .vmt-site-footer .vmt-footer-hotline-content {
        gap: 4px;
    }
}
