/* ==========================================================================
   MAXBEN LED - FOOTER LUXURY MODERN STYLING (footer.css)
   - Khối 3 Action: Nền màu TRẮNG tinh khôi, rộng tràn khung 1440px
   - Khối Footer Content: Nền tối Deep Luxury Slate với viền đỏ Maxben ở đỉnh
   - Bố cục 3 Cột: Hiển thị rộng hết khung (max-width: 1440px), loại bỏ cột trống
   - Chi nhánh & Chính sách: Căn chỉnh khoảng cách chuẩn xác, chuyên nghiệp
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --------------------------------------------------------------------------
   1. KHUNG CHÍNH FOOTER WRAPPER
   -------------------------------------------------------------------------- */
#footer.footer-wrapper {
    background: transparent !important;
    border-top: none !important;
    box-shadow: none !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    position: relative !important;
    z-index: 10 !important;
}

/* --------------------------------------------------------------------------
   2. KHỐI 3 ACTION (1900 8664 / TRỞ THÀNH ĐẠI LÝ / TÌM ĐẠI LÝ): NỀN MÀU TRẮNG
   -------------------------------------------------------------------------- */
#footer #section_1214123390,
#footer #section_1796796064,
#section_1214123390,
#section_1796796064,
#footer .section:not(.dark):first-of-type,
.home-support-section {
    background: #ffffff !important;
    position: relative !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
    border-top: none !important;
    border-bottom: none !important;
}

#footer #section_1214123390 .section-bg,
#footer #section_1796796064 .section-bg,
#section_1214123390 .section-bg,
#section_1796796064 .section-bg {
    background: #ffffff !important;
    opacity: 1 !important;
}

/* Row 3 Action cards: Rộng hết khung (1440px) */
#footer #section_1214123390 > .section-content,
#footer #section_1796796064 > .section-content,
#section_1214123390 > .section-content,
#section_1796796064 > .section-content {
    max-width: 1440px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

#footer #row-1807187777,
#footer #row-1241499676,
#row-1807187777,
#row-1241499676,
#row-1847721057,
#row-352313121 {
    max-width: 1440px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* --------------------------------------------------------------------------
   3. KHỐI FOOTER CONTENT: NỀN TỐI SANG TRỌNG & VIỀN ĐỎ Ở ĐỈNH
   -------------------------------------------------------------------------- */
#footer #section_599059967,
#footer #section_1238707651,
#footer .section.dark,
#footer section.dark,
#section_599059967,
#section_1238707651 {
    background: linear-gradient(180deg, #111827 0%, #0b0f19 100%) !important;
    border-top: 3px solid #ed1c24 !important;
    color: #ffffff !important;
    padding-top: 48px !important;
    padding-bottom: 40px !important;
    position: relative !important;
}

#footer #section_599059967 .section-bg,
#footer #section_1238707651 .section-bg,
#footer .section.dark .section-bg,
#section_599059967 .section-bg,
#section_1238707651 .section-bg {
    display: none !important;
}

/* Container Footer Content: Rộng hết khung (1440px) */
#footer #section_599059967 > .section-content,
#footer #section_1238707651 > .section-content,
#footer .section.dark > .section-content {
    max-width: 1440px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* --------------------------------------------------------------------------
   4. BỐ CỤC LƯỚI 3 CỘT (LOẠI BỎ CỘT TRỐNG MEDIUM-2, CHIA TỶ LỆ CHUẨN)
   -------------------------------------------------------------------------- */
/* Row 3 cột Footer: Dàn hàng ngang đều, căn đỉnh flex-start */
#footer #row-1486788031,
#footer #row-1058584675,
#footer .section.dark .row,
#footer section.dark .row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    max-width: 1440px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Ẩn hoàn toàn cột trống ngăn giữa (col medium-2) trong Flatsome builder */
#footer #col-1584740716,
#footer #col-877346184,
#footer .section.dark .col.medium-2,
#footer .section.dark .col.large-2,
#footer section.dark .col.medium-2,
#footer section.dark .col.large-2 {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    flex: 0 0 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Reset padding mặc định của col-inner trong Flatsome */
#footer .section.dark .col-inner,
#footer section.dark .col-inner {
    padding: 0 !important;
    margin: 0 !important;
}

/* CỘT 1: Logo & 3 Chi nhánh toàn quốc (Rộng rãi 46% - Không bị rớt chữ) */
#footer #col-1893126180,
#footer #col-519332022,
#footer .section.dark .col:first-child,
#footer section.dark .col:first-child {
    flex: 0 0 46% !important;
    width: 46% !important;
    max-width: 46% !important;
    padding: 0 35px 0 0 !important;
    box-sizing: border-box !important;
}

/* CỘT 2: Danh mục Chính sách (.footer-3, 24%) */
#footer #col-318849716,
#footer #col-811497535,
#footer .footer-3,
#footer .section.dark .footer-3 {
    flex: 0 0 24% !important;
    width: 24% !important;
    max-width: 24% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

/* CỘT 3: Facebook Widget, MXH & Bộ Công Thương (.footer-4, 30%) */
#footer #col-1952511516,
#footer #col-893753243,
#footer .footer-4,
#footer .section.dark .footer-4 {
    flex: 0 0 30% !important;
    width: 30% !important;
    max-width: 30% !important;
    padding: 0 0 0 20px !important;
    box-sizing: border-box !important;
}

/* --------------------------------------------------------------------------
   5. CỘT 1: LOGO & HỆ THỐNG CHI NHÁNH TOÀN QUỐC (ĐỒNG BỘ, GỌN GÀNG, KHOA HỌC)
   -------------------------------------------------------------------------- */
/* Khung chứa Logo Maxben LED */
#footer .section.dark .col:first-child p:first-child,
#footer #col-1893126180 p:first-child,
#footer #col-519332022 p:first-child {
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

#footer .section.dark .col:first-child a img.wp-image-4090,
#footer #col-1893126180 a img,
#footer #col-519332022 a img,
#footer img[alt*="logo footer"] {
    max-width: 290px !important;
    width: 290px !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5)) !important;
}

/* --------------------------------------------------------------------------
   BỐ CỤC CHI NHÁNH KIỂU ICON GIỌT NƯỚC (TỶ LỆ CÂN ĐỐI CHUẨN XÁC)
   - Khoảng cách giữa các dòng trong cùng miền: 8px (thoáng đãng, dễ đọc)
   - Khoảng cách giữa các miền: 16px (gọn gàng, loại bỏ khoảng hở thừa do wpautop)
   -------------------------------------------------------------------------- */
.maxben-branch-list,
#footer .maxben-branch-list,
.cotlienhe,
#footer .cotlienhe {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin-top: 8px !important;
}

/* Loại bỏ triệt để các thẻ p rỗng và br do WordPress tự sinh */
.maxben-branch-list > p,
.maxben-branch-list p,
#footer .maxben-branch-list > p {
    margin: 0 !important;
    padding: 0 !important;
}

.maxben-branch-list > p:empty,
.maxben-branch-list p:empty,
.maxben-branch-list br,
#footer .maxben-branch-list br {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    line-height: 0 !important;
}

/* Khối từng miền: Phân cách nhau 16px chuẩn xác */
.maxben-branch-list .branch-block,
#footer .maxben-branch-list .branch-block,
.cotlienhe ul,
#footer .cotlienhe ul {
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.maxben-branch-list .branch-block:last-child,
#footer .maxben-branch-list .branch-block:last-child,
.cotlienhe ul:last-child,
#footer .cotlienhe ul:last-child {
    margin-bottom: 0 !important;
}

/* Tiêu đề miền: Miền bắc, Miền trung, Miền nam */
.maxben-branch-list .branch-name,
#footer .maxben-branch-list .branch-name,
.item-title1,
#footer .item-title1 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
}

/* Dòng thông tin: Icon + Text (Cách nhau 8px thoáng đãng) */
.maxben-branch-list .branch-row,
#footer .maxben-branch-list .branch-row,
.cotlienhe ul li,
#footer .cotlienhe ul li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
    font-weight: 400 !important;
    list-style: none !important;
}

/* Icon Badge hình giọt nước ĐỎ ĐỒNG BỘ MAXBEN */
.maxben-branch-list .branch-icon,
#footer .maxben-branch-list .branch-icon,
.cotlienhe ul li i,
#footer .cotlienhe ul li i {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    background: #ed1c24 !important;
    background: linear-gradient(135deg, #ed1c24 0%, #c41219 100%) !important;
    border-radius: 50% 50% 50% 3px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 1px !important;
    box-shadow: 0 3px 8px rgba(237, 28, 36, 0.38) !important;
    flex-shrink: 0 !important;
    font-style: normal !important;
}

.maxben-branch-list .branch-icon svg,
#footer .maxben-branch-list .branch-icon svg {
    width: 13px !important;
    height: 13px !important;
    fill: #ffffff !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Text & Link */
.maxben-branch-list .branch-text,
#footer .maxben-branch-list .branch-text {
    flex: 1 !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    line-height: 1.45 !important;
}

.maxben-branch-list .branch-text a,
#footer .maxben-branch-list .branch-text a,
.cotlienhe ul li a,
#footer .cotlienhe ul li a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.maxben-branch-list .branch-text a:hover,
#footer .maxben-branch-list .branch-text a:hover,
.cotlienhe ul li a:hover,
#footer .cotlienhe ul li a:hover {
    color: #ff4d4f !important;
}

/* Hỗ trợ thêm cho cấu trúc cũ .desc_form nếu chưa đổi */
#footer .desc_form {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin-top: 14px !important;
    padding: 0 !important;
}

#footer .desc_form p:nth-child(odd) {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    color: #ffffff !important;
    font-weight: 400 !important;
}

#footer .desc_form p:nth-child(odd) > strong,
#footer .desc_form p:nth-child(odd) strong {
    display: inline !important;
    color: #ffffff !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    margin-right: 6px !important;
}

#footer .desc_form p:nth-child(even) {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.84rem !important;
    color: #ffffff !important;
    margin: 4px 0 16px 0 !important;
    line-height: 1.4 !important;
}

#footer .desc_form p:nth-child(even)::before {
    content: '☎' !important;
    color: #ed1c24 !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    margin-right: 2px !important;
}

/* Icon điện thoại đỏ Maxben trước Hotline */
#footer .desc_form p:nth-child(even)::before {
    content: '☎' !important;
    color: #ed1c24 !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

/* Chi nhánh cuối cùng: Bỏ margin-bottom thừa */
#footer .desc_form p:last-child,
#footer .desc_form p:nth-child(6) {
    margin-bottom: 0 !important;
}

/* --------------------------------------------------------------------------
   6. CỘT 2: DANH MỤC THÔNG TIN & CHÍNH SÁCH (.footer-3)
   -------------------------------------------------------------------------- */
/* Tiêu đề Cột "THÔNG TIN": Chữ hoa trắng đậm, gạch chân đỏ Maxben */
#footer .footer-3 .col-inner > p:first-child,
#footer .footer-3 > p:first-child,
#footer .footer-3 p:first-child strong,
#footer #col-318849716 p:first-child strong {
    display: block !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    margin: 0 0 18px 0 !important;
    position: relative !important;
    padding-bottom: 9px !important;
    line-height: 1.25 !important;
}

/* Vạch gạch chân đỏ Maxben dưới tiêu đề */
#footer .footer-3 .col-inner > p:first-child::after,
#footer .footer-3 > p:first-child::after,
#footer #col-318849716 p:first-child::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 32px !important;
    height: 3px !important;
    background: #ed1c24 !important;
    border-radius: 2px !important;
}

/* Danh sách link chính sách: Khoảng cách đều 11px, căn chỉnh chuẩn xác */
#footer .footer-3 .textwidget ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 11px !important;
}

#footer .footer-3 .textwidget ul li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#footer .footer-3 .textwidget ul li h5,
#footer .footer-3 .textwidget ul li h5.post-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

#footer .footer-3 .textwidget ul li a,
#footer .footer-3 .textwidget ul li a.plain {
    color: #ffffff !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Mũi tên đỏ phía trước từng chính sách */
#footer .footer-3 .textwidget ul li a::before {
    content: '›' !important;
    font-size: 1.15rem !important;
    line-height: 1 !important;
    color: #ed1c24 !important;
    font-weight: 700 !important;
    transition: transform 0.2s ease !important;
}

/* Hover link chính sách: Chuyển màu đỏ Maxben và trượt nhẹ sang phải */
#footer .footer-3 .textwidget ul li a:hover {
    color: #ed1c24 !important;
    transform: translateX(4px) !important;
}

#footer .footer-3 .textwidget ul li a:hover::before {
    transform: translateX(2px) !important;
}

/* --------------------------------------------------------------------------
   7. CỘT 3: KẾT NỐI, MẠNG XÃ HỘI & BỘ CÔNG THƯƠNG (.footer-4)
   -------------------------------------------------------------------------- */
#footer .footer-4 .col-inner {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

/* Iframe Fanpage Facebook bo góc tinh tế */
#footer .footer-4 iframe {
    width: 100% !important;
    max-width: 340px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: #ffffff !important;
}

/* Khối Mạng Xã Hội */
#footer .footer-4 .social-icons.follow-icons {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 0 !important;
}

#footer .footer-4 .social-icons > span {
    display: block !important;
    width: 100% !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    margin-bottom: 2px !important;
}

/* Nút icon MXH dạng glassmorphism */
#footer .footer-4 .social-icons a.icon.button.circle {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#footer .footer-4 .social-icons a.icon.button.circle:hover {
    transform: translateY(-3px) !important;
    color: #ffffff !important;
}

/* Hover từng mạng xã hội */
#footer .footer-4 .social-icons a.facebook:hover {
    background: #1877f2 !important;
    border-color: #1877f2 !important;
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.45) !important;
}

#footer .footer-4 .social-icons a.email:hover {
    background: #ed1c24 !important;
    border-color: #ed1c24 !important;
    box-shadow: 0 6px 16px rgba(237, 28, 36, 0.45) !important;
}

#footer .footer-4 .social-icons a.phone:hover {
    background: #10b981 !important;
    border-color: #10b981 !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45) !important;
}

/* Logo Đã Thông Báo Bộ Công Thương */
#footer .footer-4 img.wp-image-5017,
#footer .footer-4 img[src*="logoSaleNoti"] {
    max-width: 155px !important;
    height: auto !important;
    display: block !important;
    margin-top: 2px !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3)) !important;
    transition: transform 0.25s ease !important;
}

#footer .footer-4 img.wp-image-5017:hover,
#footer .footer-4 img[src*="logoSaleNoti"]:hover {
    transform: scale(1.04) !important;
}

/* --------------------------------------------------------------------------
   8. ABSOLUTE FOOTER (THANH CHÂN TRANG BẢN QUYỀN & GPKD - NỀN ĐẬM MƯỢT MÀ, DÒNG GỌN)
   -------------------------------------------------------------------------- */
.absolute-footer,
.absolute-footer.light,
.absolute-footer.dark,
#footer .absolute-footer,
#footer .absolute-footer.light,
.footer-wrapper .absolute-footer {
    background: #060911 !important;
    background-color: #060911 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 10px 0 12px 0 !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
}

.absolute-footer .container,
#footer .absolute-footer .container {
    max-width: 1440px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 3px !important;
}

.absolute-footer .footer-secondary,
.absolute-footer .footer-primary,
#footer .absolute-footer .footer-secondary,
#footer .absolute-footer .footer-primary {
    float: none !important;
    display: block !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.35 !important;
    color: #ffffff !important;
}

.absolute-footer .footer-text,
.absolute-footer .copyright-footer,
#footer .absolute-footer .footer-text,
#footer .absolute-footer .copyright-footer {
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    text-align: center !important;
    opacity: 0.98 !important;
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE MOBILE (< 850px)
   -------------------------------------------------------------------------- */
@media (max-width: 849px) {
    #footer #section_1214123390,
    #footer #section_1796796064,
    #section_1214123390,
    #section_1796796064 {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }

    #footer #section_599059967,
    #footer #section_1238707651,
    #footer .section.dark,
    #footer section.dark,
    #section_599059967,
    #section_1238707651 {
        padding-top: 32px !important;
        padding-bottom: 24px !important;
    }

    #footer #row-1486788031,
    #footer #row-1058584675,
    #footer .section.dark .row {
        flex-direction: column !important;
        gap: 26px !important;
    }

    #footer #col-1893126180,
    #footer #col-519332022,
    #footer .section.dark .col:first-child,
    #footer #col-318849716,
    #footer #col-811497535,
    #footer .footer-3,
    #footer #col-1952511516,
    #footer #col-893753243,
    #footer .footer-4 {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    #footer .section.dark .col:first-child a img.wp-image-4090,
    #footer img[alt*="logo footer"] {
        max-width: 190px !important;
        margin-bottom: 16px !important;
    }

    #footer .footer-4 iframe {
        max-width: 100% !important;
    }

    #footer .absolute-footer .container {
        flex-direction: column !important;
        text-align: center !important;
        justify-content: center !important;
        gap: 6px !important;
    }
}
