/**
 * Snippet: Overflow & Responsive Fix + Footer Styling
 */

/* 1. Global Viewport Overflow Protection */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

/* 2. Responsive Bricks Boxed Container */
.boxed-container.brxe-container {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* 3. Scoping Header & Footer Containers */
#brx-header, 
#brx-footer {
    overflow-x: hidden;
}

/* 4. Footer 4-Column Responsive Layout */
#brxe-cjjwep {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    width: 100% !important;
    color: #ffffff !important;
    box-sizing: border-box !important;
}

/* Column 1: Logo */
#brxe-epdtue {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    box-sizing: border-box !important;
    padding-right: 20px !important;
}
#brxe-cozhnv {
    background-color: #ffffff !important;
    border-radius: 10px !important;
    padding: 10px !important;
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Column 2: Quick Links */
#brxe-mluxns {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    box-sizing: border-box !important;
    padding-right: 15px !important;
}

/* Column 3: Industries */
#brxe-elemdc {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    box-sizing: border-box !important;
    padding-right: 15px !important;
}

/* Column 4: Contact & Factory */
#brxe-nzluzg {
    flex: 0 0 40% !important;
    max-width: 40% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
}

/* High Contrast Typography & Link Styling in Footer */
#brxe-cjjwep .brxe-text-basic {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 14px !important;
    letter-spacing: 0.3px !important;
}
#brxe-cjjwep a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease, color 0.2s ease !important;
    font-size: 14px !important;
    opacity: 0.95 !important;
}
#brxe-cjjwep a:hover {
    opacity: 1 !important;
    color: #fdc20f !important;
}
#brxe-cjjwep .brxe-text p {
    color: #ffffff !important;
    line-height: 1.7 !important;
    margin: 0 0 10px 0 !important;
    font-size: 13.5px !important;
}
#brxe-cjjwep strong {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Social icons in Column 4 */
#brxe-dirppe {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
    margin-top: 15px !important;
    padding: 0 !important;
    list-style: none !important;
}
#brxe-dirppe li {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Bottom Bar Copyright */
#brxe-ikchzs {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 40px !important;
    margin-bottom: 25px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding-top: 20px !important;
}
#brxe-dtvetv {
    color: #ffffff !important;
    font-size: 12.5px !important;
    text-align: center !important;
    opacity: 0.9 !important;
}

/* Mobile Responsive Layout: 1 Cột (Logo) -> 2 Cột (Links + Industries) -> 1 Cột (Contact) */
@media (max-width: 767px) {
    #brxe-cjjwep {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        row-gap: 25px !important;
    }

    /* 1. Logo full 100% căn giữa */
    #brxe-epdtue {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        padding-right: 0 !important;
        margin-bottom: 10px !important;
    }
    #brxe-cozhnv {
        max-width: 200px !important;
        margin: 0 auto !important;
    }

    /* 2. Hai cột song song (Links & Industries): mỗi cột 50% */
    #brxe-mluxns {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-right: 8px !important;
    }
    #brxe-elemdc {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 8px !important;
        padding-right: 0 !important;
    }

    /* 3. Cột Contact full 100% */
    #brxe-nzluzg {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        margin-top: 10px !important;
    }

    #brxe-ikchzs {
        margin-bottom: 75px !important; /* Tránh cấn language bar nổi góc dưới */
    }
}
