/* Hệ thống khung lưới kéo thả gọn nhẹ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.text-center {
    text-align: center;
}
/* Hệ thống lưới co giãn Responsive */
.law-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.law-col {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    width: 100%; /* Mặc định trên di động luôn bung 100% full chiều rộng */
}

/* Màn hình máy tính bảng & Desktop (từ 768px trở lên) */
@media (min-width: 768px) {
    .law-col-12 { flex: 0 0 100%; max-width: 100%; }
    .law-col-6  { flex: 0 0 50%; max-width: 50%; }
    .law-col-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .law-col-3  { flex: 0 0 25%; max-width: 25%; }
}

/* Tối ưu giao diện thẻ dịch vụ trên Mobile */
@media (max-width: 767px) {
    .law-service-box, .lawyer-card {
        margin-bottom: 20px; /* Cách đều các ô khi xếp chồng lên nhau */
    }
    
    .top-bar .flex-between {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .main-header .flex-between {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .law-hero-banner h1 {
        font-size: 24px !important; /* Hạ cỡ chữ tiêu đề trên màn hình nhỏ */
    }
}