/* --- Main Container --- */
.mib-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
}

/* --- Headers Wrapper --- */
.mib-headers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* --- Header Item --- */
.mib-header-item {
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    padding: 15px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, border-width 0.2s ease;
    flex: 1;
    min-width: 200px;
    background-color: #fff;
}

.mib-header-item:hover {
    border-color: #888;
}

/* --- Active Header Item --- */
.mib-header-item.active {
    border: 2px solid #000;
    padding: 14px; /* Giảm 1px padding để giữ nguyên kích thước tổng thể */
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* --- Icon --- */
.mib-header-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mib-header-icon img {
    max-width: 100%;
    height: auto;
}
.mib-header-icon i {
    font-size: 28px;
    color: #555;
}

/* --- Text in Header --- */
.mib-header-text {
    display: flex;
    flex-direction: column;
}
.mib-header-title {
    font-weight: 600;
    color: #111;
    font-size: 13px; /* ĐÃ THAY ĐỔI: Giảm từ 16px */
    line-height: 1.3;
}
.mib-header-description {
    font-size: 11px; /* ĐÃ THAY ĐỔI: Giảm từ 14px */
    color: #555;
    line-height: 1.4;
}

/* --- Content Wrapper (ĐÃ CẬP NHẬT THEO YÊU CẦU) --- */
.mib-content {
    margin-top: 15px; 
    padding: 0; /* Bỏ toàn bộ padding */
    border-radius: 4px;
    background-color: #fff; /* Chuyển nền thành màu trắng */
    border: none;
}

/* --- Content Pane --- */
.mib-content-pane {
    display: none;
}
.mib-content-pane.active {
    display: block;
}

/* === MÃ MỚI ĐỂ ẨN KHUNG VIỀN LỖI === */
.mib-container:not(.mib-is-active) .mib-content {
    display: none;
}

/* === MÃ MỚI ĐỂ BỎ KHOẢNG CÁCH DƯỚI CÙNG TRONG NỘI DUNG === */
.mib-content-pane p:last-child {
    margin-bottom: 0;
}

/* === MÃ MỚI CHO GIAO DIỆN MOBILE === */
@media (max-width: 768px) {
    .mib-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .mib-header-item {
        /* Đặt chiều rộng cơ bản là 50% và trừ đi một nửa khoảng cách (gap là 10px) */
        flex-basis: calc(50% - 5px); 
        /* Ghi đè min-width để bố cục 2 cột hoạt động đúng */
        min-width: 0; 
    }
}