/* * MODULE: RESPONSIVE RULES
 * Description: Mobile First Breakpoints & Overrides
 */

/* ==========================================================================
   5. RESPONSIVE RULES (MOBILE FIRST STRATEGY)
   Breakpoint: 768px
   ========================================================================== */

@media (max-width: 767px) {
    
    /* ... (Giữ nguyên các rule cũ: hide-on-mobile...) ... */

    /* --- 1. MOBILE MENU UPGRADE (UX POLISH) --- */
    /* Container chính của Menu Mobile */
    .wp-block-navigation__responsive-container {
        background-color: var(--wp--preset--color--primary) !important; /* Xanh Navy */
        color: #ffffff !important;
        
        /* Hiệu ứng Slide-in (Ghi đè animation mặc định nếu có thể) */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* Nội dung bên trong menu */
    .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content {
        padding-top: 40px;
    }

    /* Link Menu trên Mobile */
    .wp-block-navigation__responsive-container a {
        font-family: 'Barlow', sans-serif !important;
        font-size: 24px !important; /* Chữ to dễ bấm */
        font-weight: 700 !important;
        text-transform: uppercase;
        color: #ffffff !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 15px 0;
    }

    /* Nút đóng (X) */
    .wp-block-navigation__responsive-container-close {
        color: #ffffff !important;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
    }


    /* --- 2. FOOTER STACKING FIX --- */
    /* Sửa lỗi các cột footer bị dính chùm hoặc bé tí */
    .footer-columns-wrapper {
        display: flex;
        flex-direction: column; /* Xếp chồng dọc */
    }

    .wp-block-column.footer-column {
        flex-basis: 100% !important; /* Chiếm hết chiều ngang */
        width: 100% !important;
        margin-bottom: 40px !important; /* Khoảng cách giữa các khối */
        margin-left: 0 !important;
        margin-right: 0 !important;
        
        /* Căn giữa text cho đẹp trên mobile */
        text-align: center;
        align-items: center;
    }

    /* Riêng cột cuối cùng không cần margin bottom */
    .wp-block-column.footer-column:last-child {
        margin-bottom: 0 !important;
    }
}

/* Desktop Only: Ẩn các phần tử mobile */
@media (min-width: 768px) {
    .show-on-mobile {
        display: none !important;
    }
}